zmc
2023-08-08 e792e9a60d958b93aef96050644f369feb25d61b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
U
Þ=®d{ã @s UdZddlZddlZddlZddlmZddlmZddlm    Z    ddl
m Z ddl m Z dd    l mZdd
lmZdd lmZdd lmZdd lmZddlmZejrddlZddlmZddlmZddlmZGdd„dejƒZGdd„deƒZ ej!ee fZ"dZ#ej$e%dfe&d<e 'd¡Z(Gdd„dƒZ)eeej*ej*ej!ej*efdœdd„ƒZ+ej,e%ge%fej,de%fdœd d!„Z-ej,e%e%e.ge%fej,de%fdœd"d#„Z/ej,e%e%ge%fej,de%fdœd$d%„Z0ej,e%e%e%e.ge%fej,de%fdœd&d'„Z1Gd(d)„d)e)ƒZ2Gd*d+„d+e)ƒZ3Gd,d-„d-e)ƒZ4Gd.d/„d/e)ƒZ5e#d0fe    j6ej7e%e8ej9ej$e.e%ej!ej:e%ej$ej:e%dfffd1œd2d3„Z;Gd4d5„d5ƒZ<ej=ej7e%ej7e%ej>e%ej*fej9ej$e.e%ej!ej:e%ej$ej:e%dffej?e%fd6œd7d8„Z@e2ZAe3ZBe4ZCe5ZDdS)9z2Extension API for adding custom tags and behavior.éN)ÚMarkupé)Údefaults)Únodes)Ú Environment)ÚTemplateAssertionError)ÚTemplateSyntaxError)Úconcat)ÚContext)Ú    Undefined)Ú import_string)Ú pass_context)ÚToken)Ú TokenStream)ÚParserc@s0eZdZeedœdd„Zeeeedœdd„ZdS)Ú_TranslationsBasic)ÚmessageÚreturncCsdS©N©)ÚselfrrrúAd:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\jinja2/ext.pyÚgettextsz_TranslationsBasic.gettext)ÚsingularÚpluralÚnrcCsdSrr)rrrrrrrÚngettextsz_TranslationsBasic.ngettextN)Ú__name__Ú
__module__Ú __qualname__ÚstrrÚintrrrrrrsrc@s4eZdZeeedœdd„Zeeeeedœdd„ZdS)Ú_TranslationsContext)ÚcontextrrcCsdSrr)rr#rrrrÚpgettext!sz_TranslationsContext.pgettext)r#rrrrcCsdSrr)rr#rrrrrrÚ    npgettext$sz_TranslationsContext.npgettextN)rrrr r$r!r%rrrrr" sr")Ú_rrr$r%.ÚGETTEXT_FUNCTIONSz\s*\n\s*c    @s8eZdZUdZejeed<ddœdd„Ze    ƒZ
ej eed<dZ e dd    œd
d „Ze dd    œd d „Zd eejeejeedœdd„Zdejdejdfdœdd„Zdejejejejfdœdd„Zd!eejeejdœdd„Zd"eejejejejejejejejejejejeejdœdd„ZdS)#Ú    ExtensionagExtensions can be used to add extra functionality to the Jinja template
    system at the parser level.  Custom extensions are bound to an environment
    but may not store environment specific data on `self`.  The reason for
    this is that an extension can be bound to another environment (for
    overlays) by creating a copy and reassigning the `environment` attribute.
 
    As extensions are created by the environment they cannot accept any
    arguments for configuration.  One may want to work around that by using
    a factory function, but that is not possible as extensions are identified
    by their import name.  The correct way to configure the extension is
    storing the configuration values on the environment.  Because this way the
    environment ends up acting as central configuration storage the
    attributes may clash which is why extensions have to ensure that the names
    they choose for configuration are not too generic.  ``prefix`` for example
    is a terrible name, ``fragment_cache_prefix`` on the other hand is a good
    name as includes the name of the extension (fragment cache).
    Ú
identifierN)rcCs|j›d|j›|_dS)NÚ.)rrr))ÚclsrrrÚ__init_subclass__KszExtension.__init_subclass__Útagséd©Ú environmentrcCs
||_dSr)r0©rr0rrrÚ__init__XszExtension.__init__cCs$t |j¡}|j |j¡||_|S)z=Create a copy of this extension bound to another environment.)ÚobjectÚ__new__Ú    __class__Ú__dict__Úupdater0)rr0ÚrvrrrÚbind[s zExtension.bind)ÚsourceÚnameÚfilenamercCs|S)zÁThis method is called before the actual lexing and can be used to
        preprocess the source.  The `filename` is optional.  The return value
        must be the preprocessed source.
        r)rr:r;r<rrrÚ
preprocessbszExtension.preprocessrr)ÚstreamrcCs|S)a It's passed a :class:`~jinja2.lexer.TokenStream` that can be used
        to filter tokens returned.  This method has to return an iterable of
        :class:`~jinja2.lexer.Token`\s, but it doesn't have to return a
        :class:`~jinja2.lexer.TokenStream`.
        r)rr>rrrÚ filter_streamkszExtension.filter_streamr©ÚparserrcCs
tƒ‚dS)aIf any of the :attr:`tags` matched this method is called with the
        parser as first argument.  The token the parser stream is pointing at
        is the name token that matched.  This method has to return one or a
        list of multiple nodes.
        N)ÚNotImplementedError)rrArrrÚparseuszExtension.parse)r;ÚlinenorcCstj|j||dS)zÓReturn an attribute node for the current extension.  This is useful
        to pass constants on extensions to generated template code.
 
        ::
 
            self.attr('_my_attribute', lineno=lineno)
        ©rD)rÚExtensionAttributer))rr;rDrrrÚattr}s
zExtension.attr)r;ÚargsÚkwargsÚdyn_argsÚ
dyn_kwargsrDrcCs8|dkr g}|dkrg}tj|j||d|||||dS)zsCall a method of the extension.  This is a shortcut for
        :meth:`attr` + :class:`jinja2.nodes.Call`.
        NrE)rÚCallrG)rr;rHrIrJrKrDrrrÚ call_method‰s  úzExtension.call_method)N)N)NNNNN) rrrÚ__doc__ÚtÚClassVarr Ú__annotations__r,Úsetr-ÚSetÚpriorityrr2r9ÚOptionalr=ÚUnionÚIterabler?rÚNodeÚListrCr!rFrGÚExprÚKeywordrLrMrrrrr(6sL
ÿþ
þ
$    ÿþ ù
 
ør()Ú    __contextrHrIrcOs|j| d¡f|ž|ŽS)Nr)ÚcallÚresolve)r\rHrIrrrÚ_gettext_alias£sr_)Úfuncrcs"ttttjtdœ‡fdd„ ƒ}|S)N)r\Ú__stringÚ    variablesrcs$| ˆ|¡}|jjrt|ƒ}||Sr)r]Úeval_ctxÚ
autoescaper)r\rarbr8©r`rrr«s z"_make_new_gettext.<locals>.gettext©r r
r rOÚAny)r`rrrerÚ_make_new_gettextªs    rhcs&ttttttjtdœ‡fdd„ ƒ}|S)N)r\Ú
__singularÚ__pluralÚ__numrbrcs4| d|¡| ˆ|||¡}|jjr,t|ƒ}||S)NÚnum©Ú
setdefaultr]rcrdr)r\rirjrkrbr8rerrr¹s
 z$_make_new_ngettext.<locals>.ngettext©r r
r r!rOrg)r`rrrerÚ_make_new_ngettext¸súrpcs$tttttjtdœ‡fdd„ ƒ}|S)N)r\Ú __string_ctxrarbrcs2| d|¡| ˆ||¡}|jjr*t|ƒ}||S)Nr#rm)r\rqrarbr8rerrr$Ìs
 z$_make_new_pgettext.<locals>.pgettextrf)r`r$rrerÚ_make_new_pgettextËsþ rrc    s(tttttttjtdœ‡fdd„ ƒ}|S)N)r\rqrirjrkrbrcsB| d|¡| d|¡| ˆ||||¡}|jjr:t|ƒ}||S)Nr#rlrm)r\rqrirjrkrbr8rerrr%ßs       z&_make_new_npgettext.<locals>.npgettextro)r`r%rrerÚ_make_new_npgettextÜsùrsc sÒeZdZdZdhZeddœ‡fdd„ Zd%deje    ddœd    d
„Z
d&eje    dd œd d „Z d'ej e ge fej e e ege feje    ejej e e ge fejej e e e ege fddœdd„Zdddœdd„Zefeje ejfeje ejejee ejeje ejeje dfffdœdd„Zdejejejejfdœdd„Zefe eje e dœdd„Zde    ejeje e fdœd d!„Ze eje eje ej e ej!fejej!e    e    ej"d"œd#d$„Z#‡Z$S)(ÚInternationalizationExtensionz-This extension adds gettext support to Jinja.ZtransNr/cs:tƒ |¡t|jd<|j|j|j|j|j|j    dddS)Nr&F)Zinstall_gettext_translationsZinstall_null_translationsZinstall_gettext_callablesZuninstall_gettext_translationsZextract_translationsÚnewstyle_gettext)
Úsuperr2r_ÚglobalsÚextendÚ_installÚ _install_nullÚ_install_callablesÚ
_uninstallÚ_extractr1©r5rrr2s 
úz&InternationalizationExtension.__init__Ú_SupportedTranslations)Ú translationsÚnewstylercCsdt|ddƒ}|dkr|j}t|ddƒ}|dkr4|j}t|ddƒ}t|ddƒ}|j|||||ddS)NZugettextZ    ungettextr$r%)rr$r%)Úgetattrrrr{)rr€rrrr$r%rrrry s    ÿz&InternationalizationExtension._install)rrcCsxddl}| ¡}t|dƒr"|j}ntttdœdd„}t|dƒrF|j}ntttttdœdd    „}|j|j|j|||d
dS) Nrr$)ÚcÚsrcSs|Srr)rƒr„rrrr$)sz=InternationalizationExtension._install_null.<locals>.pgettextr%)rƒr„ÚprrcSs|dkr |S|S)Nrr)rƒr„r…rrrrr%0sz>InternationalizationExtension._install_null.<locals>.npgettext)rrrr$r%)    rÚNullTranslationsÚhasattrr$r r%r!r{r)rrrr€r$r%rrrrzs
 
ûz+InternationalizationExtension._install_null)rrrr$r%rcCsb|dk    r||j_|jjrHt|ƒ}t|ƒ}|dk    r8t|ƒ}|dk    rHt|ƒ}|jjj||||ddS©N)rrr$r%)r0rurhrprrrsrwr7)rrrrr$r%rrrr{;sÿz0InternationalizationExtension._install_callables)r€rcCsdD]}|jj |d¡qdSrˆ)r0rwÚpop)rr€Úkeyrrrr|Ssz(InternationalizationExtension._uninstall.)r:Úgettext_functionsrcCs t|tƒr|j |¡}t||ƒSr)Ú
isinstancer r0rCÚextract_from_ast)rr:r‹rrrr}Ws
 z&InternationalizationExtension._extractrr@c    Cs*t|jƒj}d}|j d¡}|dk    r*|j}d}d}d}i}d}    |jjjdkrV|r^|j d¡|j d¡rnqV|j d¡}
|
j|kr |j    d|
j›d    |
jt
d
|jjjd krÌt|jƒ|  ¡||
j<} n8|    dkrì|
jd krì|
jd k}    q>nt   |
jd¡||
j<} |dkr>t| t jƒrFt   dd¡}|||
j<t  t   dd¡| ¡}n| }|
jdk}q>|j d¡d} d} tƒ}| |d¡\}}|r¶| |¡|dkr¶t   |dd¡}|ddk}|jj d¡r^d} t|jƒ|jjjdkr,|j d¡}
|
j|kr|j    d|
j›d|
jt
d
||
j}|
jdk}|j d¡| |d¡\}} t|jƒ| |¡n
t|jƒ|D] }||krlt   |d¡||<ql| sšd}n|dkr°|     d|¡|    dkrÆ|jjd}    |    ræ| |¡}| ræ| | ¡} | || |||t|ƒ|o| ¡}| |¡|dk    r"||gS|SdS)zParse a translatable tag.NÚstringFZ    block_endÚcommaÚcolonr;ztranslatable variable z defined twice.)ÚexcZassign)ÚtrimmedZ    notrimmedr’ÚloadZ_transÚstorerlTrúname:pluralizezunknown variable z for pluralizationzpluralize without variablesúext.i18n.trimmed)Únextr>rDZnext_ifÚvalueÚcurrentÚtypeÚexpectZskip_ifÚfailrZparse_expressionrÚNamerŒrLZAssignrRÚ _parse_blockr7Útestr0ÚpoliciesÚ_trim_whitespaceÚ
_make_nodeÚboolZ
set_lineno)rrArDr#Z context_tokenÚ plural_exprZplural_expr_assignmentÚnum_called_numrbr’ÚtokenÚvarrZ have_pluralÚ
referencedZsingular_namesrZ plural_namesr;ÚnoderrrrCbsº     
 ý
 
 
 
ÿ  
 
 
   ý
 
 
 
 
 
 
 
 
ù    
 
z#InternationalizationExtension.parse)rŽÚ_ws_rercCs| d| ¡¡S)Nú )ÚsubÚstrip)rrŽrªrrrr¡Üsz.InternationalizationExtension._trim_whitespace)rAÚallow_pluralizercCsg}g}|jjjdkr:| |jjj dd¡¡t|jƒq|jjjdkrŠt|jƒ|j d¡j}| |¡| d|›d¡|j d¡q|jjjd    krÞt|jƒ|jj d
¡r´qün|jj d ¡rÒ|rÈqü|     d ¡|     d ¡q|jj
rò|     d¡qt dƒ‚q|t |ƒfS)z1Parse until the next block tag with a given name.Údataú%ú%%Zvariable_beginr;z%(z)sZ variable_endZ block_beginz name:endtransr•z:a translatable section can have only one pluralize sectionz;control structures in translatable sections are not allowedzunclosed translation blockzinternal parser error) r>r™ršÚappendr˜Úreplacer—r›rŸrœZeosÚ RuntimeErrorr    )rrAr®r¨Úbufr;rrrržßs8 
 
 
ÿÿ 
z*InternationalizationExtension._parse_block)rrr#rbr¤Úvars_referencedr¥rcCs|jj}|s,|s,| dd¡}|r,| dd¡}d}    t |¡g}
|dk    r`|
 dt |¡¡d|    ›}    |dk    r†d|    ›}    |
 t |¡|f¡t t |    d¡|
gdd¡} |rÚ|     ¡D]*\} } |rÂ| d    krÂq¬| j
  t  | | ¡¡q¬n0t  | ¡} |r
t | t d
d „|     ¡Dƒ¡¡} t | g¡S) z/Generates a useful node from the data provided.r±r°rNrr…rr“rlcSs"g|]\}}t t |¡|¡‘qSr)rZPairÚConst)Ú.0rŠr˜rrrÚ
<listcomp>:sÿz<InternationalizationExtension._make_node.<locals>.<listcomp>)r0rur³rr·ÚinsertrxrLrÚitemsrIr²r[ZMarkSafeIfAutoescapeZModÚDictÚOutput)rrrr#rbr¤r¶r¥rÚ    func_nameÚ    func_argsr©rŠr˜rrrr¢s<    
 
 
þÿþ    z(InternationalizationExtension._make_node)N)N)NNN)%rrrrNr-rr2rOrUr£ryrzÚCallabler r!r{r|r'rVrÚTemplateÚSequenceÚIteratorÚTupler}rXrYrCrªÚPatternr¡ržr¼rZr½r¢Ú __classcell__rrr~rrtõsZ     ÿþ  úù ý.ÿü $zþ '
÷rtc@s(eZdZdZdhZdejdœdd„ZdS)ÚExprStmtExtensionzrAdds a `do` tag to Jinja that works like the print statement just
    that it doesn't print the return value.
    Údorr@cCs"tjt|jƒjd}| ¡|_|S)NrE)rÚExprStmtr—r>rDZ parse_tupler©)rrAr©rrrrCJs
zExprStmtExtension.parseN)rrrrNr-rrÉrCrrrrrÇCsrÇc@s6eZdZdZddhZdejejej    fdœdd„Z
dS)    ÚLoopControlExtensionz/Adds break and continue to the template engine.ÚbreakÚcontinuerr@cCs0t|jƒ}|jdkr"tj|jdStj|jdS)NrËrE)r—r>r˜rÚBreakrDÚContinue)rrAr¦rrrrCUs
 
zLoopControlExtension.parseN) rrrrNr-rOrVrrÍrÎrCrrrrrÊPsrÊc@s8eZdZdZdhZdejdœdd„Zee    dœdd    „Z
d
S) ÚDebugExtensiona·A ``{% debug %}`` tag that dumps the available variables,
    filters, and tests.
 
    .. code-block:: html+jinja
 
        <pre>{% debug %}</pre>
 
    .. code-block:: text
 
        {'context': {'cycler': <class 'jinja2.utils.Cycler'>,
                     ...,
                     'namespace': <class 'jinja2.utils.Namespace'>},
         'filters': ['abs', 'attr', 'batch', 'capitalize', 'center', 'count', 'd',
                     ..., 'urlencode', 'urlize', 'wordcount', 'wordwrap', 'xmlattr'],
         'tests': ['!=', '<', '<=', '==', '>', '>=', 'callable', 'defined',
                   ..., 'odd', 'sameas', 'sequence', 'string', 'undefined', 'upper']}
 
    .. versionadded:: 2.11.0
    Údebugrr@cCs8|j d¡j}t ¡}|jd|g|d}tj|g|dS)Nz
name:debugÚ_renderrE)r>r›rDrZContextReferencerMr½)rrArDr#ÚresultrrrrCsszDebugExtension.parse)r#rcCs8| ¡t|jj ¡ƒt|jj ¡ƒdœ}tj|dddS)N)r#ÚfiltersÚtestséT)ÚdepthÚcompact)Úget_allÚsortedr0rÓÚkeysrÔÚpprintÚpformat)rr#rÒrrrrÑys
ýzDebugExtension._renderN) rrrrNr-rr½rCr
r rÑrrrrrÏ\srÏT)Úastr‹Ú babel_stylerccsþ| tj¡D]ì}t|jtjƒr |jj|kr,q g}|jD]4}t|tjƒr`t|j    t
ƒr`|  |j    ¡q6|  d¡q6|j D]}|  d¡qr|j dk    r–|  d¡|jdk    rª|  d¡|sÈtdd„|Dƒƒ}|sæq nt|ƒdkrÞ|d}nt|ƒ}|j|jj|fVq dS)aÇExtract localizable strings from the given template node.  Per
    default this function returns matches in babel style that means non string
    parameters as well as keyword arguments are returned as `None`.  This
    allows Babel to figure out what you really meant if you are using
    gettext functions that allow keyword arguments for placeholder expansion.
    If you don't want that behavior set the `babel_style` parameter to `False`
    which causes only strings to be returned and parameters are always stored
    in tuples.  As a consequence invalid gettext calls (calls without a single
    string parameter or string parameters after non-string parameters) are
    skipped.
 
    This example explains the behavior:
 
    >>> from jinja2 import Environment
    >>> env = Environment()
    >>> node = env.parse('{{ (_("foo"), _(), ngettext("foo", "bar", 42)) }}')
    >>> list(extract_from_ast(node))
    [(1, '_', 'foo'), (1, '_', ()), (1, 'ngettext', ('foo', 'bar', None))]
    >>> list(extract_from_ast(node, babel_style=False))
    [(1, '_', ('foo',)), (1, 'ngettext', ('foo', 'bar'))]
 
    For every string found this function yields a ``(lineno, function,
    message)`` tuple, where:
 
    * ``lineno`` is the number of the line on which the string was found,
    * ``function`` is the name of the ``gettext`` function used (if the
      string was extracted from embedded Python code), and
    *   ``message`` is the string, or a tuple of strings for functions
         with multiple string arguments.
 
    This extraction function operates on the AST and is because of that unable
    to extract any comments.  For comment support you have to use the babel
    extraction interface or extract comments yourself.
    Ncss|]}|dk    r|VqdSrr)r¸ÚxrrrÚ    <genexpr>Æsz#extract_from_ast.<locals>.<genexpr>rr)Zfind_allrrLrŒr©rr;rHr·r˜r r²rIrJrKÚtupleÚlenrD)rÝr‹rÞr©ÚstringsÚargr&Úoutrrrr„s2+ ÿ
þ
 
 
 
 
 
 
rc@sfeZdZdZejejeeefejeddœdd„Z    eej
edœdd„Z eej
ed    œd
d „Z dS) Ú_CommentFinderzÒHelper class to find comments in a token stream.  Can only
    find comments for gettext calls forwards.  Once the comment
    from line 4 is found, a comment for line 1 will not return a
    usable value.
    N)ÚtokensÚ comment_tagsrcCs||_||_d|_d|_dS)Nr)rçrèÚoffsetÚ last_lineno)rrçrèrrrr2Úsz_CommentFinder.__init__)rérc    Csˆzzt|j|j|…ƒD]\\}}}|dkrz| dd¡\}}Wntk
rTYqYnX||jkr| ¡gW¢ SqgW¢S||_XdS)N)ÚcommentZ linecommentr)réÚreversedrçÚsplitÚ
ValueErrorrèÚrstrip)rrér&Ú
token_typeZ token_valueÚprefixrërrrÚfind_backwardsâsÿ
 
z_CommentFinder.find_backwards)rDrcCsd|jr|j|krgSt|j|jd…ƒD]*\}\}}}||kr(| |j|¡Sq(| t|jƒ¡Sr)rèrêÚ    enumeraterçréròrâ)rrDÚidxZ token_linenor&rrrÚ find_commentsòs "z_CommentFinder.find_comments) rrrrNrOrÂrÄr!r r2rYròrõrrrrræÓsþ ræ)ÚfileobjÚkeywordsrèÚoptionsrccsÌi}| dd¡ d¡D]}| ¡}|s(qd|t|ƒ<qt|krFd|t<dtjttftttdœdd„}||d    d
ƒ}t    | d t
j ¡| d t
j ¡| d t
j ¡| dt
j¡| dt
j¡| dt
j¡| d¡pÊt
j| d¡pØt
j||dt
jƒ||dt
jƒt
j||dt
jƒt|ƒddd}||dƒr&d
|jd<||dƒr8d
|_| ¡ | dd¡¡}    z"| |    ¡}
t| | |    ¡¡ƒ} Wn t k
r|sŠ‚YdSXt!| |ƒ} t"|
|ƒD] \} }}| |||  #| ¡fVq¦dS)aBabel extraction method for Jinja templates.
 
    .. versionchanged:: 2.3
       Basic support for translation comments was added.  If `comment_tags`
       is now set to a list of keywords for extraction, the extractor will
       try to find the best preceding comment that begins with one of the
       keywords.  For best results, make sure to not have more than one
       gettext call in one line of code and the matching comment in the
       same line or the line before.
 
    .. versionchanged:: 2.5.1
       The `newstyle_gettext` flag can be set to `True` to enable newstyle
       gettext calls.
 
    .. versionchanged:: 2.7
       A `silent` option can now be provided.  If set to `False` template
       syntax errors are propagated instead of being ignored.
 
    :param fileobj: the file-like object the messages should be extracted from
    :param keywords: a list of keywords (i.e. function names) that should be
                     recognized as translation functions
    :param comment_tags: a list of translator tags to search for and include
                         in the results.
    :param options: a dictionary of additional options (optional)
    :return: an iterator over ``(lineno, funcname, message, comments)`` tuples.
             (comments will be empty currently)
    Ú
extensionsÚú,NF)rørŠÚdefaultrcSs| |t|ƒ¡ ¡dkS)N>ÚonÚyesÚ1Útrue)Úgetr Úlower)rørŠrürrrÚgetbool-szbabel_extract.<locals>.getboolÚsilentTZblock_start_stringZblock_end_stringZvariable_start_stringZvariable_end_stringZcomment_start_stringZcomment_end_stringZline_statement_prefixZline_comment_prefixZ trim_blocksZ lstrip_blocksZkeep_trailing_newliner)Z
cache_sizeZ auto_reloadr’r–ruÚencodingzutf-8)F)$rrír­r rtrOÚMappingr r£rrZBLOCK_START_STRINGZBLOCK_END_STRINGZVARIABLE_START_STRINGZVARIABLE_END_STRINGZCOMMENT_START_STRINGZCOMMENT_END_STRINGZLINE_STATEMENT_PREFIXZLINE_COMMENT_PREFIXZ TRIM_BLOCKSZ LSTRIP_BLOCKSZNEWLINE_SEQUENCEZKEEP_TRAILING_NEWLINErár ruÚreadÚdecoderCÚlistÚlexr=rrærrõ)rör÷rèrørùZextension_namerrr0r:r©rçÚfinderrDr`rrrrÚ babel_extractûsT%           ñ 
 
 
r )ErNrÛÚreÚtypingrOZ
markupsaferrúrrr0rÚ
exceptionsrrZruntimer    r
r Úutilsr r Ú TYPE_CHECKINGZtyping_extensionsÚteÚlexerrrrArÚProtocolrr"rVrr'rÄr rQÚcompilerªr(rgr_rÀrhr!rprrrsrtrÇrÊrÏrÁrÂr£rÃrUrræÚBinaryIOr¼rYr Zi18nrÈZ loopcontrolsrÐrrrrÚ<module>sˆ              
mþ&*( þ P  *ý.ÿü O)0ÿÿû ]