yj
2026-03-31 4becf7b5eba5de2d9889f379eb88aeb6cb16f760
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
269
§
ãóЗdZddlZddlZddlZddlZddlZddlZejjr ej    rd„Z
nd„Z
d„Z da ej ¦«Zdad„ZgZej ej¦«Ze e¦«ej e¦«Zej e¦«ej e¦«kre e¦«dZejdkr­e d    ¦«r˜d
Zej ej e¦«d ¦«Ze e¦«ej ej e¦«d ¦«Z e ekre e ¦«d „Z!Gd „d¦«Z"d„Z#Gd„d¦«Z$Gd„d¦«Z%Gd„d¦«Z&d„Z'd„Z(d„Z)dS)z8
PEP-302 and PEP-451 importers for frozen applications.
éNcóˆ—tj ||z¦«tj d¦«dS)Nú
)ÚsysÚstderrÚwrite)ÚmsgÚas  úpyimod02_importers.pyÚtracer s8€Ý Œ
×Ò˜˜q™Ñ!Ô!Ð!Ý Œ
×Ò˜ÑÔÐÐÐócó—dS)N©)rr    s  r
r r $s€Ø ˆr cóޗddlm}tj|¦«j}||¦«}tjdd¬¦«}| | |d¦«¦«S)a
    Decode bytes representing source code and return the string. Universal newline support is used in the decoding.
    Based on CPython's implementation of the same functionality:
    https://github.com/python/cpython/blob/3.9/Lib/importlib/_bootstrap_external.py#L679-L688
    r)Údetect_encodingNT)ÚdecoderÚ    translate)ÚtokenizerÚioÚBytesIOÚreadlineÚIncrementalNewlineDecoderÚdecode)Ú source_bytesrÚsource_bytes_readlineÚencodingÚnewline_decoders     r
Ú_decode_sourcer(st€ð)Ð(Ð(Ð(Ð(Ð(ÝœJ |Ñ4Ô4Ô=ÐØˆÐ4Ñ5Ô5€HÝÔ2¸4È4ÐPÑPÔP€OØ × !Ò ! ,×"5Ò"5°h¸q´kÑ"BÔ"BÑ CÔ CÐCr cóˆ—t5t€tt¦«atcddd¦«S#1swxYwYdS)N)Ú_pyz_tree_lockÚ    _pyz_treeÚ_build_pyz_prefix_treeÚ pyz_archiverr r
Úget_pyz_toc_treer#@s„€õ
ððÝ Ð Ý.­{Ñ;Ô;ˆIÝððððñôððððððøøøððððððs ˆ"7·;¾;FÚdarwinzContents/FrameworksTÚ    Resourcescóf—t¦«}|j ¦«D]ˆ\}}| d¦«}|d}|}|tjtjhvr|D]}| |i¦«}ŒŒZ|dd…D]}| |i¦«}Œd||d<Œ‰|S)Nú.réÿÿÿÿÚ)ÚdictÚtocÚitemsÚsplitÚpyimod01_archiveÚ PYZ_ITEM_PKGÚPYZ_ITEM_NSPKGÚ
setdefault)r"ÚtreeÚ
entry_nameÚ
entry_dataÚname_componentsÚtypecodeÚcurrentÚname_components        r
r!r!ksÞ€Ý ‰6Œ6€DØ"-¤/×"7Ò"7Ñ"9Ô"9ð .ð .ш
JØ$×*Ò*¨3Ñ/Ô/ˆØ˜a”=ˆØˆØ Õ(Ô5Õ7GÔ7VÐWÐ WÐ Wà"1ð Að AØ!×,Ò,¨^¸RÑ@Ô@ð Að#2°#°2°#Ô"6ð Að AØ!×,Ò,¨^¸RÑ@Ô@Ø+-ˆGO BÔ'Ñ (Ð (Ø €Kr cóš—eZdZdZd„Zed„¦«Zd„Zd„Ze    d„¦«Z
d„Z d„Z dd
„Z ejd    d …d krd „Zd„Zd    Sd    S)ÚPyiFrozenFinderaG
    PyInstaller's frozen path entry finder for specific search path.
 
    Per-path instances allow us to properly translate the given module name ("fullname") into full PYZ entry name.
    For example, with search path being `sys._MEIPASS`, the module "mypackage.mod" would translate to "mypackage.mod"
    in the PYZ archive. However, if search path was `sys._MEIPASS/myotherpackage/_vendored` (for example, if
    `myotherpacakge` added this path to `sys.path`), then "mypackage.mod" would need to translate to
    "myotherpackage._vendored.mypackage.mod" in the PYZ archive.
    có0—|jj›d|j›dS)Nú(ú))Ú    __class__Ú__name__Ú_path)Úselfs r
Ú__repr__zPyiFrozenFinder.__repr__‡s €Ø”.Ô)Ð9Ð9¨D¬JÐ9Ð9Ð9Ð9r cóª—td|›¦«    ||¦«}td¦«|S#t$r}td|›¦«‚d}~wwxYw)Nz0PyInstaller: running path finder hook for path: zPyInstaller: hook succeededzPyInstaller: hook failed: )r Ú    Exception)ÚclsÚpathÚfinderÚes    r
Ú    path_hookzPyiFrozenFinder.path_hookŠsx€å ÐIÀÐIÐIÑJÔJÐJð    ØS˜‘Y”YˆFÝ Ð/Ñ 0Ô 0Ð 0؈MøÝð    ð    ð    Ý Ð2¨qÐ2Ð2Ñ 3Ô 3Ð 3Ø øøøøð    øøøs”0°
AºA Á Acóâ—||_t|_tD]K}    tj ||¦«}n#t$rYŒ0wxYw| d¦«rŒJntd¦«‚tj 
|¦«rtd¦«‚|dkr    d|_ dSd  |  tjj¦«¦«|_ dS)Nz..zIFailed to determine relative path w.r.t. top-level application directory.zonly directories are supportedr'r))r@r"Ú _pyz_archiveÚ_TOP_LEVEL_DIRECTORY_PATHSÚosrFÚrelpathÚ
ValueErrorÚ
startswithÚ ImportErrorÚisfileÚ_pyz_entry_prefixÚjoinr-Úsep)rArFÚtop_level_pathÚ relative_paths    r
Ú__init__zPyiFrozenFinder.__init__•sü€ØˆŒ
Ý'ˆÔõ9ð     kð     kˆNð Ý "¤§¢°°nÑ EÔ E  øÝð ð ð Øð øøøð×'Ò'¨Ñ-Ô-ð Øà ˆEåÐiÑjÔjÐ jõ
Œ7>Š>˜$Ñ Ô ð    @ÝÐ>Ñ?Ô?Ð ?à ˜CÒ Ð Ø%'ˆDÔ "Ð "Ð "à%(§X¢X¨m×.AÒ.AÅ"Ä'Ä+Ñ.NÔ.NÑ%OÔ%OˆDÔ "Ð "Ð "sž ?¿
A Á A cód—| d¦«d}|jr |jdz|zS|S)zz
        Convert module fullname into PYZ entry name, subject to the prefix implied by this finder's search path.
        r'é)Ú
rpartitionrS)rAÚfullnameÚ tail_modules   r
Ú_compute_pyz_entry_namez'PyiFrozenFinder._compute_pyz_entry_name¶s@€ð×)Ò)¨#Ñ.Ô.¨qÔ1ˆ à Ô !ð    ØÔ)¨CÑ/°+Ñ=Ð =àÐ r cóþ—t|d¦«r|jSd}d|_ttj¦«D]=\}}||jkrd}Œ|sŒ    ||j¦«|_n#t$rYŒ:wxYw|jS)aB
        Opportunistically create a *fallback finder* using `sys.path_hooks` entries that are located *after* our hook.
        The main goal of this exercise is to obtain an instance of python's FileFinder, but in theory any other hook
        that comes after ours is eligible to be a fallback.
 
        Having this fallback allows our finder to "cooperate" with python's FileFinder, as if the two were a single
        finder, which allows us to work around the python's PathFinder permitting only one finder instance per path
        without subclassing FileFinder.
        Ú_fallback_finderFNT)Úhasattrr`Ú    enumeraterÚ
path_hooksrIr@rQ)rAÚour_hook_foundÚidxÚhooks    r
Úfallback_finderzPyiFrozenFinder.fallback_finderÁsµ€õ 4Ð+Ñ ,Ô ,ð    )ØÔ(Ð (ðˆà $ˆÔÝ"¥3¤>Ñ2Ô2ð     ð     ‰IˆCØt”~Ò%Ð%Ø!%Øà!ð Øð Ø(,¨¨T¬ZÑ(8Ô(8Ô%ؐøÝð ð ð Øð øøøðÔ$Ð$sÁA(Á(
A5Á4A5cóœ—t|d¦«s| ¦«|_|j€dS|j ||¦«S)a@
        Attempt to find the spec using fallback finder, which is opportunistically created here. Typically, this would
        be python's FileFinder, which can discover specs for on-filesystem modules, such as extension modules and
        modules that are collected only as source .py files.
 
        Having this fallback allows our finder to "cooperate" with python's FileFinder, as if the two were a single
        finder, which allows us to work around the python's PathFinder permitting only one finder instance per path
        without subclassing FileFinder.
        r`N)raÚ_get_fallback_finderr`Ú    find_spec)rAr\Útargets   r
Ú_find_fallback_specz#PyiFrozenFinder._find_fallback_specãsS€õtÐ/Ñ0Ô0ð    @Ø$(×$=Ò$=Ñ$?Ô$?ˆDÔ !à Ô  Ð (ؐ4àÔ$×.Ò.¨x¸Ñ@Ô@Ð@r có|—t|dd¦«}|&t|d¦«r| ¦«dSdSdS)a<
        A method which, when called, should invalidate any internal cache used by the finder. Used by
        importlib.invalidate_caches() when invalidating the caches of all finders on sys.meta_path.
 
        https://docs.python.org/3/library/importlib.html#importlib.abc.MetaPathFinder.invalidate_caches
        r`NÚinvalidate_caches)Úgetattrrarn)rArgs  r
rnz!PyiFrozenFinder.invalidate_caches÷sY€õ" $Ð(:¸DÑAÔAˆØ Ð &ݐÐ(;Ñ<Ô<ð 4Ø×1Ò1Ñ3Ô3Ð3Ð3Ð3ð 'Ð &ð 4ð 4r Nc    óº—t|›d|›d|›¦«| |¦«}|jj |¦«}|€|t|›d|›d¦«|jLt|›d|j›d¦«|j ||¦«}t|›d|›d¦«|St|›d    ¦«dS|d
}t|›d |›d |›d |›¦«|tjkrjtj
|d¦«}tj   tj| dtj j¦«¦«g|_|S|tjk}t)||j||¬¦«}    |    j }
tj
||    ||
¬¦«}d|_|r%tj  |
¦«g|_|S)a»
        A method for finding a spec for the specified module. The finder will search for the module only within the
        path entry to which it is assigned. If a spec cannot be found, None is returned. When passed in, target is a
        module object that the finder may use to make a more educated guess about what spec to return.
 
        https://docs.python.org/3/library/importlib.html#importlib.abc.PathEntryFinder.find_spec
        z": find_spec: called with fullname=z    , target=Nz : find_spec: z not found in PYZ...z6: find_spec: attempting resolve using fallback finder r'z,: find_spec: fallback finder returned spec: z.: find_spec: fallback finder is not available.rz: find_spec: found z  in PYZ as z , typecode=)Únamer"Úpyz_entry_nameÚ
is_package)rsÚoriginT)r r^rKr+Úgetrgrjr.r0Ú_frozen_importlibÚ
ModuleSpecrMrFrTrÚ_MEIPASSÚreplacerUÚsubmodule_search_locationsr/ÚPyiFrozenLoaderÚ has_locationÚdirname) rAr\rkrrr4Ú fallback_specr6ÚspecrsÚloaderrts            r
rjzPyiFrozenFinder.find_specs/€õ    ÐZÐZ¸ÐZÐZÈhÐZÐZÑ[Ô[Ð[ð×5Ò5°hÑ?Ô?ˆðÔ&Ô*×.Ò.¨~Ñ>Ô>ˆ
Ø Ð õ TÐHÐH¨ÐHÐHÐHÑ IÔ IÐ IàÔ#Ð/ݘÐnÐnÐUYÔUiÐnÐnÐnÑoÔoÐoØ $Ô 4× >Ò >¸xÈÑ PÔ P ݘÐ]Ð]È=Ð]Ð]Ð]Ñ^Ô^Ð^Ø$Ð$å˜ÐMÐMÐMÑNÔNÐNà4ð˜a”=ˆÝ ÐhÐh¨(ÐhÐhÀÐhÐhÐ^fÐhÐhÑiÔiÐià Õ'Ô6Ò 6Ð 6õ%Ô/°¸$Ñ?Ô?ˆDõ”— ’ Sœ\¨>×+AÒ+AÀ#ÅrÄwÄ{Ñ+SÔ+SÑTÔTð/ˆDÔ +ð
ˆKàÕ!1Ô!>Ò>ˆ
õ!ØØÔ)Ø)Ø!ð    
ñ
ô
ˆð”ˆõ!Ô+Ø Ø Ø!Øð    
ñ
ô
ˆð!ˆÔð ð    HÝ/1¬w¯ª¸vÑ/FÔ/FÐ.GˆDÔ +àˆ r rZ)éé cóX—| |¦«}|€dgfS|j|jpgfS)a×
            A legacy method for finding a loader for the specified module. Returns a 2-tuple of (loader, portion) where
            portion is a sequence of file system locations contributing to part of a namespace package. The loader may
            be None while specifying portion to signify the contribution of the file system locations to a namespace
            package. An empty list can be used for portion to signify the loader is not part of a namespace package. If
            loader is None and portion is the empty list then no loader or location for a namespace package were found
            (i.e. failure to find anything for the module).
 
            Deprecated since python 3.4, removed in 3.12.
            N)rjr€rz)rAr\rs   r
Ú find_loaderzPyiFrozenFinder.find_loaderZs8€ð—>’> (Ñ+Ô+ˆD؈|ؘRxØ”; Ô ?РEÀ2ÐEÐ Er có6—| |¦«\}}|S)z¼
            A concrete implementation of Finder.find_module() which is equivalent to self.find_loader(fullname)[0].
 
            Deprecated since python 3.4, removed in 3.12.
            )r„)rAr\r€Úportionss    r
Ú find_modulezPyiFrozenFinder.find_modulels!€ð $×/Ò/°Ñ9Ô9Ñ ˆFH؈Mr )N)r?Ú
__module__Ú __qualname__Ú__doc__rBÚ classmethodrIrXr^ÚpropertyrgrlrnrjrÚ version_infor„r‡rr r
r:r:}s€€€€€ððð:ð:ð:ðððñ„[ððPðPðPðB    ð    ð    ðð%ð%ñ„Xð%ðBAðAðAð( 4ð 4ð 4ðNðNðNðNðd Ô˜˜˜Ô˜gÒ%Ð%ð    Fð    Fð    Fð$     ð     ð     ð     ð     ð)&Ð%r r:có‡—ˆfd„}|S)Ncól•—|j|krtd|j›d|›|¬¦«‚‰||g|¢Ri|¤ŽS)Nz loader for z cannot handle ©rq)rqrQ)rArqÚargsÚkwargsÚmethods    €r
Ú_check_name_wrapperz(_check_name.<locals>._check_name_wrapper|sYø€Ø Œ9˜Ò Ð ÝÐL¨D¬IÐLÐLÀdÐLÐLÐSWÐXÑXÔXÐ X؈vd˜DÐ2 4Ð2Ð2Ð2¨6Ð2Ð2Ð2r r)r“r”s` r
Ú _check_namer•{s$ø€ð3ð3ð3ð3ð3ð
Ðr có°—eZdZdZd„Zd„Zd„Z    ed„¦«Zed„¦«Z    ed„¦«Z
ed    „¦«Z ed
„¦«Z d „Z ed „¦«Zd S)r{aº
    PyInstaller's frozen loader for modules in the PYZ archive, which are discovered by PyiFrozenFinder.
 
    Since this loader is instantiated only from PyiFrozenFinder and since each loader instance is tied to a specific
    module, the fact that the loader was instantiated serves as the proof that the module exists in the PYZ archive.
    Hence, we can avoid any additional validation in the implementation of the loader's methods.
    cóŽ—||_||_||_|rOtj t j| dtjj    ¦«d¦«}nPtj t j| dtjj    ¦«dz¦«}||_
||_dS)Nr'ú __init__.pyú.py) rKÚ_pyz_entry_nameÚ _is_packagerMrFrTrrxryrUrq)rArqr"rrrsÚ module_files      r
rXzPyiFrozenLoader.__init__Œs¢€ð(ˆÔØ-ˆÔØ%ˆÔð ð    gÝœ'Ÿ,š,¥s¤|°^×5KÒ5KÈCÕQSÔQXÔQ\Ñ5]Ô5]Ð_lÑmÔmˆKˆKåœ'Ÿ,š,¥s¤|°^×5KÒ5KÈCÕQSÔQXÔQ\Ñ5]Ô5]Ð`eÑ5eÑfÔfˆKð
ˆŒ    ØˆŒ    ˆ    ˆ    r có—dS)a 
        A method that returns the module object to use when importing a module. This method may return None, indicating
        that default module creation semantics should take place.
 
        https://docs.python.org/3/library/importlib.html#importlib.abc.Loader.create_module
        Nr)rArs  r
Ú create_modulezPyiFrozenLoader.create_module¬s    €ðˆtr cóð—|j}| |j¦«}|€td|j›d¦«‚t    |d¦«sJ‚|j |j|_t||j¦«dS)a[
        A method that executes the module in its own namespace when a module is imported or reloaded. The module
        should already be initialized when exec_module() is called. When this method exists, create_module()
        must be defined.
 
        https://docs.python.org/3/library/importlib.html#importlib.abc.Loader.exec_module
        Nz Failed to retrieve bytecode for ú!Ú__file__)    Ú__spec__Úget_coderqÚ RuntimeErrorrarzÚ__path__ÚexecÚ__dict__)rAÚmodulerÚbytecodes    r
Ú exec_modulezPyiFrozenLoader.exec_moduleµs…€ðŒˆØ—=’= ¤Ñ+Ô+ˆØ Ð ÝÐPÀ$Ä)ÐPÐPÐPÑQÔQÐ Qõv˜zÑ*Ô*Ð*Ð*Ð*ð Ô *Ð 6Ø"Ô=ˆFŒOå ˆXv”Ñ'Ô'Ð'Ð'Ð'r Tcó:—ddlm}| ||¦«S)aK
            A legacy method for loading a module. If the module cannot be loaded, ImportError is raised, otherwise the
            loaded module is returned.
 
            Deprecated since python 3.4, slated for removal in 3.12 (but still present in python's own FileLoader in
            both v3.12.4 and v3.13.0rc1).
            rN)Úimportlib._bootstrapÚ
_bootstrapÚ_load_module_shim)rAr\r­s   r
Ú load_modulezPyiFrozenLoader.load_moduleÐs,€ð 6Ð 5Ð 5Ð 5Ð 5Ð 5Ø×/Ò/°°hÑ?Ô?Ð ?r có—|jS)a 
        A method that is to return the value of __file__ for the specified module. If no path is available, ImportError
        is raised.
 
        If source code is available, then the method should return the path to the source file, regardless of whether a
        bytecode was used to load the module.
 
        https://docs.python.org/3/library/importlib.html#importlib.abc.ExecutionLoader.get_filename
        ©rF)rAr\s  r
Ú get_filenamezPyiFrozenLoader.get_filenameàs €ðŒyÐr có@—|j |j¦«S)aL
        Return the code object for a module, or None if the module does not have a code object (as would be the case,
        for example, for a built-in module). Raise an ImportError if loader cannot find the requested module.
 
        https://docs.python.org/3/library/importlib.html#importlib.abc.InspectLoader.get_code
        )rKÚextractrš)rAr\s  r
r£zPyiFrozenLoader.get_codeïs€ðÔ ×(Ò(¨Ô)=Ñ>Ô>Ð>r có̗|j}    t|d¦«5}| ¦«}ddd¦«n #1swxYwYt|¦«S#t$rYnwxYwdS)a«
        A method to return the source of a module. It is returned as a text string using universal newlines, translating
        all recognized line separators into '
' characters. Returns None if no source is available (e.g. a built-in
        module). Raises ImportError if the loader cannot find the module specified.
 
        https://docs.python.org/3/library/importlib.html#importlib.abc.InspectLoader.get_source
        ÚrbN)rFÚopenÚreadrÚFileNotFoundError)rAr\ÚfilenameÚfprs     r
Ú
get_sourcezPyiFrozenLoader.get_sourceùs´€ð”9ˆð    åh Ñ%Ô%ð )¨Ø!Ÿwšw™yœy ð )ð )ð )ñ )ô )ð )ð )ð )ð )ð )ð )øøøð )ð )ð )ð )å! ,Ñ/Ô/Ð /øÝ ð    ð    ð    Ø ˆDð    øøøðˆts.‰A™:® Aº>¾AÁ>ÁAÁ
A!Á A!có—|jS)a 
        A method to return a true value if the module is a package, a false value otherwise. ImportError is raised if
        the loader cannot find the module.
 
        https://docs.python.org/3/library/importlib.html#importlib.abc.InspectLoader.is_package
        )r›)rAr\s  r
rszPyiFrozenLoader.is_packages €ðÔÐr có~—t|d¦«5}| ¦«cddd¦«S#1swxYwYdS)u 
        A method to return the bytes for the data located at path. Loaders that have a file-like storage back-end that
        allows storing arbitrary data can implement this abstract method to give direct access to the data stored.
        OSError is to be raised if the path cannot be found. The path is expected to be constructed using a module’s
        __file__ attribute or an item from a package’s __path__.
 
        https://docs.python.org/3/library/importlib.html#importlib.abc.ResourceLoader.get_data
        r¶N)r·r¸)rArFr»s   r
Úget_datazPyiFrozenLoader.get_datas€€õ$˜Ñ Ô ð     Ø—7’7‘9”9ð    ð    ð    ð    ñ    ô    ð    ð    ð    ð    ð    ð    øøøð    ð    ð    ð    ð    ð    s ‘2²6¹6có —t|¦«S)zO
        Return resource reader compatible with `importlib.resources`.
        )ÚPyiFrozenResourceReader)rAr\s  r
Úget_resource_readerz#PyiFrozenLoader.get_resource_reader,s€õ
' tÑ,Ô,Ð,r N)r?rˆr‰rŠrXržrªr•r¯r²r£r¼rsr¿rÂrr r
r{r{„s€€€€€ððð ð ð ð@ððð(ð(ð(ð2@à    ð     @ð     @ñ
Œð     @ðð
ð
ñ„[ð
ðð?ð?ñ„[ð?ðððñ„[ðð.ð ð ñ„[ð ð ð ð ðð-ð-ñ„[ð-ð-ð-r r{có6—eZdZdZd„Zd„Zd„Zd„Zd„Zd„Z    dS)    rÁa®
    Resource reader for importlib.resources / importlib_resources support.
 
    Supports only on-disk resources, which should cover the typical use cases, i.e., the access to data files;
    PyInstaller collects data files onto filesystem, and as of v6.0.0, the embedded PYZ archive is guaranteed
    to contain only .pyc modules.
 
    When listing resources, source .py files will not be listed as they are not collected by default. Similarly,
    sub-directories that contained only .py files are not reconstructed on filesystem, so they will not be listed,
    either. If access to .py files is required for whatever reason, they need to be explicitly collected as data files
    anyway, which will place them on filesystem and make them appear as resources.
 
    For on-disk resources, we *must* return path compatible with pathlib.Path() in order to avoid copy to a temporary
    file, which might break under some circumstances, e.g., metpy with importlib_resources back-port, due to:
    https://github.com/Unidata/MetPy/blob/a3424de66a44bf3a92b0dcacf4dff82ad7b86712/src/metpy/plots/wx_symbols.py#L24-L25
    (importlib_resources tries to use 'fonts/wx_symbols.ttf' as a temporary filename suffix, which fails as it contains
    a separator).
 
    Furthermore, some packages expect files() to return either pathlib.Path or zipfile.Path, e.g.,
    https://github.com/tensorflow/datasets/blob/master/tensorflow_datasets/core/utils/resource_utils.py#L81-L97
    This makes implementation of mixed support for on-disk and embedded resources using importlib.abc.Traversable
    protocol rather difficult.
 
    So in order to maximize compatibility with unfrozen behavior, the below implementation is basically equivalent of
    importlib.readers.FileReader from python 3.10:
      https://github.com/python/cpython/blob/839d7893943782ee803536a47f1d4de160314f85/Lib/importlib/readers.py#L11
    and its underlying classes, importlib.abc.TraversableResources and importlib.abc.ResourceReader:
      https://github.com/python/cpython/blob/839d7893943782ee803536a47f1d4de160314f85/Lib/importlib/abc.py#L422
      https://github.com/python/cpython/blob/839d7893943782ee803536a47f1d4de160314f85/Lib/importlib/abc.py#L312
    cóV—ddl}| |j¦«j|_dS)Nr)ÚpathlibÚPathrFÚparent)rAr€rÅs   r
rXz PyiFrozenResourceReader.__init__Ss)€àˆˆˆð—L’L ¤Ñ-Ô-Ô4ˆŒ    ˆ    ˆ    r cóv—| ¦« |¦« d¦«S)Nr¶)ÚfilesÚjoinpathr·)rAÚresources  r
Ú open_resourcez%PyiFrozenResourceReader.open_resourceZs,€ØzŠz‰|Œ|×$Ò$ XÑ.Ô.×3Ò3°DÑ9Ô9Ð9r cóP—t|j |¦«¦«S)N)ÚstrrFrÊ)rArËs  r
Ú resource_pathz%PyiFrozenResourceReader.resource_path]s €Ý4”9×%Ò% hÑ/Ô/Ñ0Ô0Ð0r cót—| ¦« |¦« ¦«S)N)rÉrÊÚis_file)rArFs  r
Ú is_resourcez#PyiFrozenResourceReader.is_resource`s*€ØzŠz‰|Œ|×$Ò$ TÑ*Ô*×2Ò2Ñ4Ô4Ð4r cób—d„| ¦« ¦«D¦«S)Nc3ó$K—|] }|jV—Œ dS)Nr)Ú.0Úitems  r
ú    <genexpr>z3PyiFrozenResourceReader.contents.<locals>.<genexpr>ds$èè€Ð=Ð=˜d”    Ð=Ð=Ð=Ð=Ð=Ð=r )rÉÚiterdir)rAs r
Úcontentsz PyiFrozenResourceReader.contentscs*€Ø=Ð= d§j¢j¡l¤l×&:Ò&:Ñ&<Ô&<Ð=Ñ=Ô=Ð=r có—|jS)Nr±)rAs r
rÉzPyiFrozenResourceReader.filesfs
€ØŒyÐr N)
r?rˆr‰rŠrXrÌrÏrÒrÙrÉrr r
rÁrÁ4sx€€€€€ððð<5ð5ð5ð:ð:ð:ð1ð1ð1ð5ð5ð5ð>ð>ð>ðððððr rÁcó—eZdZdZd„Zd„ZdS)ÚPyiFrozenEntryPointLoaderz]
    A special loader that enables retrieval of the code-object for the __main__ module.
    có—|jjS)N)r>r?)rAs r
rBz"PyiFrozenEntryPointLoader.__repr__ns €ØŒ~Ô&Ð&r cód—|dkrtjdjSt|›d|›¦«‚)NÚ__main__z cannot handle module )rÚmodulesÚ _pyi_main_corQ)rAr\s  r
r£z"PyiFrozenEntryPointLoader.get_codeqs;€Ø zÒ !Ð !õ”;˜zÔ*Ô7Ð 7å˜TÐEÐE¸ÐEÐEÑFÔFÐFr N)r?rˆr‰rŠrBr£rr r
rÜrÜjsA€€€€€ððð'ð'ð'ðGðGðGðGðGr rÜcó—ttd¦«std¦«‚    tjtjd¬¦«an"#t$r}td¦«|‚d}~wwxYwttd¦«tj    D]8}t|dd¦«dkr!tj      |¦«nŒ9ttj ¦«D]_\}}t|dd¦«d    krEtd
|d z›d ¦«tj  |d zt j¦«n:Œ`td ¦«tj  dt j¦«t%¦«tj tjd¦«    t-¦«tjd_n#t$rYnwxYwtjdkrt5¦«dSdS)z`
    Install PyInstaller's frozen finders/loaders/importers into python's import machinery.
    Ú_pyinstaller_pyzz,Bootloader did not set sys._pyinstaller_pyz!T)Ú check_pymagicz#Failed to setup PYZ archive reader!Nr?ÚWindowsRegistryFinderÚ zipimporterz0PyInstaller: inserting our finder hook at index éz in sys.path_hooks.zbPyInstaller: zipimporter hook not found in sys.path_hooks! Prepending our finder hook to the list.rrß)ré )rarr¤r.ÚZlibArchiveReaderrãr"rDÚdelattrÚ    meta_pathroÚremoverbrcr Úinsertr:rIÚ_patch_zipimporter_get_sourceÚpath_importer_cacheÚpoprxrÜràÚ
__loader__rÚ_fixup_frozen_stdlib)rHÚentryres   r
Úinstallrôzs€õ •3Ð*Ñ +Ô +ðKÝÐIÑJÔJÐJðIÝ&Ô8½Ô9MÐ]aÐbÑbÔbˆ ˆ øÝ ðIðIðIÝÐ@ÑAÔAÀqÐHøøøøðIøøøõ CÐ#Ñ$Ô$Ð$õ
”ððˆÝ 5˜* dÑ +Ô +Ð/FÒ FÐ FÝ ŒM×  Ò   Ñ 'Ô 'Ð 'Ø ˆEð Gõ
 ¥¤Ñ/Ô/ð<ð<‰
ˆˆUÝ 5˜* dÑ +Ô +¨}Ò <Ð <Ý ÐaÀSÈ1ÁWÐaÐaÐaÑ bÔ bÐ bÝ ŒN× !Ò ! #¨¡'­?Ô+DÑ EÔ EÐ EØ ˆEð =õ
    ÐrÑsÔsÐsÝ Œ×Ò˜a¥Ô!:Ñ;Ô;Ð;õ"Ñ#Ô#Ð#õ
Ô×Ò¥¤ ¨dÑ3Ô3Ð3ð Ý-FÑ-HÔ-HŒ JÔÔ*Ð*øÝ ð ð ð Ø ˆð øøøõ Ô˜7Ò"Ð"ÝÑÔÐÐÐð#Ð"s)¦ AÁ
A&ÁA!Á!A&Æ.#GÇ
GÇGcó0—ddl}tjs(    tjt_n#t$rYnwxYwtj ¦«D]¾\}}| |¦«sŒ| |¦«}|j    j
}|j }|r|dz }tj jtjg| d¦«¢RŽdz}t!|d¦«s    ||_n#t$rYnwxYw|j€ |dkr||_Œ¿dS)Nrz    .__init__r'z.pycr¡zimportlib._bootstrap)Ú_imprÚ _stdlib_dirrxÚAttributeErrorràr,Ú    is_frozenÚis_frozen_packager¢Ú loader_stateÚorignamerMrFrTr-rar¡rº)röÚ module_namer¨Úis_pkgrûÚ    orig_namerºs       r
ròròºsT€Ø€K€K€Kõ Œ?ðð    Ý!œlCŒOˆOøÝð    ð    ð    Ø ˆDð    øøøõ  #œ{×0Ò0Ñ2Ô2ð-ð-ш V؏~Š~˜kÑ*Ô*ð    Ø à×'Ò'¨ Ñ4Ô4ˆð”Ô3ˆ à Ô)ˆ    Ø ð    %Ø ˜Ñ $ˆIõ”7”<¥¤ ÐD¨y¯ª¸sÑ/CÔ/CÐDÐDÐDÀvÑMˆõv˜zÑ*Ô*ð    ð Ø"*”øÝ!ð ð ð Øð øøøð Ô  Ð (¨YÐ:PÒ-PÐ-PØ$,ˆLÔ !øð7-ð-s’)©
6µ6Ã)C1Ã1
C>Ã=C>cóJ‡—ddl}|jjŠˆfd„}||j_dS)NrcóR•—‰||¦«}||Stj |j¦«dkrdS| |¦«r,tjjg| d¦«¢d‘RŽ}n)tjj| d¦«Ždz}tj t|¦«}    t|d¦«5}|     ¦«}ddd¦«n #1swxYwYt|¦«S#t$rYnwxYwdS)Nzbase_library.zipr'r˜r™r¶) rMrFÚbasenameÚarchiversrTr-Ú_RESOLVED_TOP_LEVEL_DIRECTORYr·r¸rr¹)rAr\Úsourcerºr»rÚ_orig_get_sources      €r
Ú _get_sourcez2_patch_zipimporter_get_source.<locals>._get_sourceîsfø€ð
"Ð! $¨Ñ1Ô1ˆØ Р؈Mõ Œ7× Ò ˜DœLÑ )Ô )Ð-?Ò ?Ð ?ؐ4ð ?Š?˜8Ñ $Ô $ð    BÝ”w”|ÐH X§^¢^°CÑ%8Ô%8ÐH¸-ÐHÐHÐHˆHˆHå”w”| X§^¢^°CÑ%8Ô%8Ð9¸EÑAˆHÝ”7—<’<Õ =¸xÑHÔHˆð    åh Ñ%Ô%ð )¨Ø!Ÿwšw™yœy ð )ð )ð )ñ )ô )ð )ð )ð )ð )ð )ð )øøøð )ð )ð )ð )å! ,Ñ/Ô/Ð /øÝ ð    ð    ð    Ø ˆDð    øøøðˆts6à DÃC=Ã1 DÃ=DÄDÄDÄDÄ
D$Ä#D$)Ú    zipimportrær¼)rrrs  @r
rîrîésGø€ØÐÐÐà Ô,Ô7Ððððððð>(3€IÔÔ$Ð$Ð$r )*rŠrrMrrvÚ_threadr.ÚflagsÚverboserr rr"ÚRLockrr r#rLrFÚnormpathrxÚ_TOP_LEVEL_DIRECTORYÚappendÚrealpathrÚnormcaseÚ_is_macos_app_bundleÚplatformÚendswithrTr}Ú _ALTERNATIVE_TOP_LEVEL_DIRECTORYÚ)_RESOLVED_ALTERNATIVE_TOP_LEVEL_DIRECTORYr!r:r•r{rÁrÜrôròrîrr r
ú<module>rs&ðððð €
€
€
Ø    €    €    €    Ø    €    €    €    àÐÐÐØ€€€àÐÐÐà„9Ô𠘜ð ððððð
 ð ð ð Dð Dð Dð€ ð
”‘”€Ø €    ðððð Ðð”w×'Ò'¨¬ Ñ5Ô5ÐØ×!Ò!Ð"6Ñ7Ô7Ð7ð!#¤× 0Ò 0Ð1EÑ FÔ FÐØ„7×ÒÐ1Ñ2Ô2°b´g×6FÒ6FÐG[Ñ6\Ô6\Ò\Ð\Ø×%Ò%Ð&CÑDÔDÐDðÐØ„<8ÒÐР4× =Ò =Ð>SÑ TÔ TÐØÐà')¤w§|¢|Ø
ŒŠÐ,Ñ-Ô-Øñ(ô(Ð$ð×%Ò%Ð&FÑGÔGÐGà02´· ² Ø
ŒŠÐ5Ñ6Ô6Øñ1ô1Ð-ð1Ð4TÒTÐTØ"×)Ò)Ð*SÑTÔTÐTðððð$zðzðzðzðzñzôzðzð|ðððm-ðm-ðm-ðm-ðm-ñm-ôm-ðm-ð`3ð3ð3ð3ð3ñ3ô3ð3ðl Gð Gð Gð Gð Gñ Gô Gð Gð 9ð9ð9ð@(-ð(-ð(-ð^$3ð$3ð$3ð$3ð$3r