Re VddlmZddlmZmZddlmZddlmZGddeZ dS)) CharSetProber) ProbingState MachineState)CodingStateMachine) UTF8_SM_MODELcdeZdZdZfdZfdZedZedZdZ dZ xZ S) UTF8Proberg?ctt|tt|_d|_|dS)N)superr __init__rr coding_sm _num_mb_charsresetself __class__s /builddir/build/BUILDROOT/alt-python311-pip-21.3.1-3.el8.x86_64/opt/alt/python311/lib/python3.11/site-packages/pip/_vendor/chardet/utf8prober.pyr zUTF8Prober.__init__&sG j$((***+M::! ctt||jd|_dS)N)r r rr rrs rrzUTF8Prober.reset,sA j$%%''' rcdS)Nzutf-8rs r charset_namezUTF8Prober.charset_name1swrcdS)Nrrs rlanguagezUTF8Prober.language5srrc|D]}|j|}|tjkrtj|_na|tjkrtj|_n>|tj kr-|j dkr|xj dz c_ |j tj kr.||jkrtj|_|j S)Nr)r next_staterERRORrNOT_ME_stateITS_MEFOUND_ITSTARTget_current_charlenrstate DETECTINGget_confidenceSHORTCUT_THRESHOLD)rbyte_strc coding_states rfeedzUTF8Prober.feed9s , ,A>44Q77L|111*1 !444*3 !333>55771<<&&!+&& :/ / /""$$t'>>>*3 zrcNd}|jdkr||j|jzz}d|z S|S)NgGz?g?)r ONE_CHAR_PROB)runlikes rr*zUTF8Prober.get_confidenceLs9   ! ! d(D,>> >F< Mr) __name__ __module__ __qualname__r2r rpropertyrrr/r* __classcell__)rs@rr r #sM  XX&rr N) charsetproberrenumsrrcodingstatemachinermbcssmrr rrrr=s8)(((((--------222222!!!!!!//////////r