L i$*ddlmZddlZedZedZedZejdZejdZ ejd Z ejd Z d Z d e fd e fde fde fde fde fde ffZ dZdefdZy)) EllipticalArcNMmZzLlHhVvCcSsQqTtAaAa MZLHVCSQTAz([MmZzLlHhVvCcSsQqTtAa])z\[-+]?(?:(?:0|[1-9][0-9]*)(?:\.[0-9]+)?(?:[eE][-+]?[0-9]+)?|(?:\.[0-9]+(?:[eE][-+]?[0-9]+)?))z^[01]z[, ]c#*Kd}tj|D]P}|tvr|tvr|nd}||r t |Ed{3t j|D]}|Ry7&#t $r}t d||d|d}~wwxYww)NzInvalid arc command: '') COMMAND_REsplitCOMMANDS ARC_COMMANDS_tokenize_arc_arguments ValueErrorFLOAT_REfindall)pathdefarc_cmdxetokens b/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/fontTools/svgLib/path/parser.py_tokenize_pathr"sG   g &  = ,a$GG   P21555"))!,    6 P #9'1#Q!GHaO Ps:6BA0A.A0 "B.A00 B9B  BBrxryzx-axis-rotationzlarge-arc-flagz sweep-flagryc#Ktj|Dcgc]}|s| }}|std|d|jd}|r|j }t |\}}|j |}|std|d||j\}} ||| || d}|r|j||dk(rd}n|dz }|r|dk7rtd|dycc}ww)NzNot enough arguments: 'r rzInvalid argument for 'z ' parameter: r) SEPARATOR_REr rreversepopARC_ARGUMENT_TYPESsearchspanappend) arcdefsraw_argsiargnamepatternmatchjks rrr?s '--f5;a;H; 26(!<==  A lln*1- gs#5dV=PQ Qzz|1!Ah!"g  OOC  6A FA' * Av26(!<==7 elements) and call a 'pen' object's moveTo, lineTo, curveTo, qCurveTo and closePath methods. If 'current_pos' (2-float tuple) is provided, the initial moveTo will be relative to that instead being absolute. If the pen has an "arcTo" method, it is called with the original values of the elliptical arc curve commands: .. code-block:: pen.arcTo(rx, ry, rotation, arc_large, arc_sweep, (x, y)) Otherwise, the arcs are approximated by series of cubic Bezier segments ("curveTo"), one every 90 degrees. NarcTozUnallowed implicit command in z , position My?LZHVCSCSQTQTA)complexlistrrhasattrr r UPPERCASEupperrlenr floatendPathmoveTorealimaglineTo closePathcurveToqCurveToabsboolintr0draw)rpen current_pos arc_classelements start_poscommand last_control have_arcTo last_commandabsoluterrposcontrol1control2endcontrolrrrotation arc_large arc_sweeparcs r parse_pathrd_s|,;'KN7+,H IGLg&J  B<8 #"LllnG)+HmmoG GMMO 4s8} DF#L c> A A(U1X]*C! s" $ JJ ((+*:*:; < $I G ^i' INNINN;< MMO#KIG ^ A A(U1X]*C{" JJ#((+ ,K ^ A([--22C{''' JJ#((+ ,K ^ A""U1X]2C{''",, JJ#((+ ,K ^X\\^,uX\\^/Dr/IIHX\\^,uX\\^/Dr/IIH '% *?"*DDCK'K'{" KK . .388$  K#L ^4'' '4|CX\\^,uX\\^/Dr/IIH '% *?"*DDCK'{" KK . .388$  K#L ^HLLN+eHLLN.Cb.HHG '% *?"*DDC;&{" LL',, 5#((7K LK"L ^4'& & 3lB '% *?"*DDC{" LL',, 5#((7K LK"L ^U8<<>*+BU8<<>*+BX\\^,HS01IS01I '% *?"*DDC{" XXsxx(  R9i K{ @ )rcrresetr r rAcompiler rBOOL_RErrr!rrdrerrks  % &4y   RZZ2 3  2::   "**W rzzF$ & 8 8!w7(O(O>@*0=cre