@pyscript/core 0.5.4 → 0.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/{codemirror-BBnQ0LtX.js → codemirror-jVwF0Nvq.js} +2 -2
- package/dist/{codemirror-BBnQ0LtX.js.map → codemirror-jVwF0Nvq.js.map} +1 -1
- package/dist/{codemirror_commands-CaIwHoAf.js → codemirror_commands-DbitAX-b.js} +2 -2
- package/dist/{codemirror_commands-CaIwHoAf.js.map → codemirror_commands-DbitAX-b.js.map} +1 -1
- package/dist/{codemirror_lang-python-2HrDgj8s.js → codemirror_lang-python-BFQ6m-eH.js} +2 -2
- package/dist/{codemirror_lang-python-2HrDgj8s.js.map → codemirror_lang-python-BFQ6m-eH.js.map} +1 -1
- package/dist/{codemirror_language-DVNAhaKA.js → codemirror_language-DADyF0Bo.js} +2 -2
- package/dist/{codemirror_language-DVNAhaKA.js.map → codemirror_language-DADyF0Bo.js.map} +1 -1
- package/dist/codemirror_view-Dlz0Kbbt.js +2 -0
- package/dist/codemirror_view-Dlz0Kbbt.js.map +1 -0
- package/dist/{core-DgBZe1hs.js → core-CTEtvlA4.js} +2 -2
- package/dist/{core-DgBZe1hs.js.map → core-CTEtvlA4.js.map} +1 -1
- package/dist/core.js +1 -1
- package/dist/{deprecations-manager-DAjcp9Ks.js → deprecations-manager-CM6Wb8Rc.js} +2 -2
- package/dist/{deprecations-manager-DAjcp9Ks.js.map → deprecations-manager-CM6Wb8Rc.js.map} +1 -1
- package/dist/{error-BufXjGgq.js → error-l5R-P7f3.js} +2 -2
- package/dist/{error-BufXjGgq.js.map → error-l5R-P7f3.js.map} +1 -1
- package/dist/{index-BZvYCKeH.js → index-B4WHjyIA.js} +2 -2
- package/dist/{index-BZvYCKeH.js.map → index-B4WHjyIA.js.map} +1 -1
- package/dist/{mpy-BiOv4Pgw.js → mpy-BNvtf9__.js} +2 -2
- package/dist/{mpy-BiOv4Pgw.js.map → mpy-BNvtf9__.js.map} +1 -1
- package/dist/{py-B48qHSuV.js → py-BAQCFqly.js} +2 -2
- package/dist/{py-B48qHSuV.js.map → py-BAQCFqly.js.map} +1 -1
- package/dist/{py-editor-CyZA5xXK.js → py-editor-DGWcFYn9.js} +2 -2
- package/dist/{py-editor-CyZA5xXK.js.map → py-editor-DGWcFYn9.js.map} +1 -1
- package/dist/{py-terminal-CyYWBE4G.js → py-terminal-C7Chu5Tz.js} +2 -2
- package/dist/{py-terminal-CyYWBE4G.js.map → py-terminal-C7Chu5Tz.js.map} +1 -1
- package/env/bin/Activate.ps1 +247 -0
- package/env/bin/activate +70 -0
- package/env/bin/activate.csh +27 -0
- package/env/bin/activate.fish +69 -0
- package/env/bin/pip +8 -0
- package/env/bin/pip3 +8 -0
- package/env/bin/pip3.12 +8 -0
- package/env/bin/pyminify +8 -0
- package/env/lib/python3.12/site-packages/_distutils_hack/__init__.py +240 -0
- package/env/lib/python3.12/site-packages/_distutils_hack/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/_distutils_hack/__pycache__/override.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/_distutils_hack/override.py +1 -0
- package/env/lib/python3.12/site-packages/distutils-precedence.pth +1 -0
- package/env/lib/python3.12/site-packages/pip/__init__.py +13 -0
- package/env/lib/python3.12/site-packages/pip/__main__.py +24 -0
- package/env/lib/python3.12/site-packages/pip/__pip-runner__.py +50 -0
- package/env/lib/python3.12/site-packages/pip/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/__pycache__/__main__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/__pycache__/__pip-runner__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/__init__.py +18 -0
- package/env/lib/python3.12/site-packages/pip/_internal/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/__pycache__/build_env.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/__pycache__/cache.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/__pycache__/configuration.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/__pycache__/exceptions.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/__pycache__/main.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/__pycache__/pyproject.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/__pycache__/self_outdated_check.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/__pycache__/wheel_builder.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/build_env.py +315 -0
- package/env/lib/python3.12/site-packages/pip/_internal/cache.py +290 -0
- package/env/lib/python3.12/site-packages/pip/_internal/cli/__init__.py +4 -0
- package/env/lib/python3.12/site-packages/pip/_internal/cli/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/cli/__pycache__/autocompletion.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/cli/__pycache__/base_command.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/cli/__pycache__/cmdoptions.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/cli/__pycache__/command_context.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/cli/__pycache__/index_command.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/cli/__pycache__/main.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/cli/__pycache__/main_parser.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/cli/__pycache__/parser.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/cli/__pycache__/progress_bars.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/cli/__pycache__/req_command.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/cli/__pycache__/spinners.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/cli/__pycache__/status_codes.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/cli/autocompletion.py +176 -0
- package/env/lib/python3.12/site-packages/pip/_internal/cli/base_command.py +231 -0
- package/env/lib/python3.12/site-packages/pip/_internal/cli/cmdoptions.py +1075 -0
- package/env/lib/python3.12/site-packages/pip/_internal/cli/command_context.py +27 -0
- package/env/lib/python3.12/site-packages/pip/_internal/cli/index_command.py +170 -0
- package/env/lib/python3.12/site-packages/pip/_internal/cli/main.py +80 -0
- package/env/lib/python3.12/site-packages/pip/_internal/cli/main_parser.py +134 -0
- package/env/lib/python3.12/site-packages/pip/_internal/cli/parser.py +294 -0
- package/env/lib/python3.12/site-packages/pip/_internal/cli/progress_bars.py +94 -0
- package/env/lib/python3.12/site-packages/pip/_internal/cli/req_command.py +329 -0
- package/env/lib/python3.12/site-packages/pip/_internal/cli/spinners.py +159 -0
- package/env/lib/python3.12/site-packages/pip/_internal/cli/status_codes.py +6 -0
- package/env/lib/python3.12/site-packages/pip/_internal/commands/__init__.py +132 -0
- package/env/lib/python3.12/site-packages/pip/_internal/commands/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/commands/__pycache__/cache.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/commands/__pycache__/check.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/commands/__pycache__/completion.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/commands/__pycache__/configuration.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/commands/__pycache__/debug.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/commands/__pycache__/download.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/commands/__pycache__/freeze.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/commands/__pycache__/hash.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/commands/__pycache__/help.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/commands/__pycache__/index.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/commands/__pycache__/inspect.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/commands/__pycache__/install.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/commands/__pycache__/list.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/commands/__pycache__/search.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/commands/__pycache__/show.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/commands/__pycache__/uninstall.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/commands/__pycache__/wheel.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/commands/cache.py +225 -0
- package/env/lib/python3.12/site-packages/pip/_internal/commands/check.py +67 -0
- package/env/lib/python3.12/site-packages/pip/_internal/commands/completion.py +130 -0
- package/env/lib/python3.12/site-packages/pip/_internal/commands/configuration.py +280 -0
- package/env/lib/python3.12/site-packages/pip/_internal/commands/debug.py +201 -0
- package/env/lib/python3.12/site-packages/pip/_internal/commands/download.py +146 -0
- package/env/lib/python3.12/site-packages/pip/_internal/commands/freeze.py +109 -0
- package/env/lib/python3.12/site-packages/pip/_internal/commands/hash.py +59 -0
- package/env/lib/python3.12/site-packages/pip/_internal/commands/help.py +41 -0
- package/env/lib/python3.12/site-packages/pip/_internal/commands/index.py +139 -0
- package/env/lib/python3.12/site-packages/pip/_internal/commands/inspect.py +92 -0
- package/env/lib/python3.12/site-packages/pip/_internal/commands/install.py +783 -0
- package/env/lib/python3.12/site-packages/pip/_internal/commands/list.py +375 -0
- package/env/lib/python3.12/site-packages/pip/_internal/commands/search.py +172 -0
- package/env/lib/python3.12/site-packages/pip/_internal/commands/show.py +217 -0
- package/env/lib/python3.12/site-packages/pip/_internal/commands/uninstall.py +114 -0
- package/env/lib/python3.12/site-packages/pip/_internal/commands/wheel.py +182 -0
- package/env/lib/python3.12/site-packages/pip/_internal/configuration.py +383 -0
- package/env/lib/python3.12/site-packages/pip/_internal/distributions/__init__.py +21 -0
- package/env/lib/python3.12/site-packages/pip/_internal/distributions/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/distributions/__pycache__/base.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/distributions/__pycache__/installed.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/distributions/__pycache__/sdist.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/distributions/__pycache__/wheel.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/distributions/base.py +53 -0
- package/env/lib/python3.12/site-packages/pip/_internal/distributions/installed.py +29 -0
- package/env/lib/python3.12/site-packages/pip/_internal/distributions/sdist.py +158 -0
- package/env/lib/python3.12/site-packages/pip/_internal/distributions/wheel.py +42 -0
- package/env/lib/python3.12/site-packages/pip/_internal/exceptions.py +777 -0
- package/env/lib/python3.12/site-packages/pip/_internal/index/__init__.py +2 -0
- package/env/lib/python3.12/site-packages/pip/_internal/index/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/index/__pycache__/collector.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/index/__pycache__/package_finder.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/index/__pycache__/sources.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/index/collector.py +494 -0
- package/env/lib/python3.12/site-packages/pip/_internal/index/package_finder.py +1020 -0
- package/env/lib/python3.12/site-packages/pip/_internal/index/sources.py +285 -0
- package/env/lib/python3.12/site-packages/pip/_internal/locations/__init__.py +456 -0
- package/env/lib/python3.12/site-packages/pip/_internal/locations/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/locations/__pycache__/_distutils.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/locations/__pycache__/_sysconfig.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/locations/__pycache__/base.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/locations/_distutils.py +172 -0
- package/env/lib/python3.12/site-packages/pip/_internal/locations/_sysconfig.py +214 -0
- package/env/lib/python3.12/site-packages/pip/_internal/locations/base.py +81 -0
- package/env/lib/python3.12/site-packages/pip/_internal/main.py +12 -0
- package/env/lib/python3.12/site-packages/pip/_internal/metadata/__init__.py +128 -0
- package/env/lib/python3.12/site-packages/pip/_internal/metadata/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/metadata/__pycache__/_json.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/metadata/__pycache__/base.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/metadata/__pycache__/pkg_resources.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/metadata/_json.py +84 -0
- package/env/lib/python3.12/site-packages/pip/_internal/metadata/base.py +688 -0
- package/env/lib/python3.12/site-packages/pip/_internal/metadata/importlib/__init__.py +6 -0
- package/env/lib/python3.12/site-packages/pip/_internal/metadata/importlib/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/metadata/importlib/__pycache__/_compat.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/metadata/importlib/__pycache__/_dists.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/metadata/importlib/__pycache__/_envs.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/metadata/importlib/_compat.py +85 -0
- package/env/lib/python3.12/site-packages/pip/_internal/metadata/importlib/_dists.py +221 -0
- package/env/lib/python3.12/site-packages/pip/_internal/metadata/importlib/_envs.py +189 -0
- package/env/lib/python3.12/site-packages/pip/_internal/metadata/pkg_resources.py +301 -0
- package/env/lib/python3.12/site-packages/pip/_internal/models/__init__.py +2 -0
- package/env/lib/python3.12/site-packages/pip/_internal/models/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/models/__pycache__/candidate.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/models/__pycache__/direct_url.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/models/__pycache__/format_control.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/models/__pycache__/index.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/models/__pycache__/installation_report.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/models/__pycache__/link.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/models/__pycache__/scheme.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/models/__pycache__/search_scope.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/models/__pycache__/selection_prefs.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/models/__pycache__/target_python.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/models/__pycache__/wheel.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/models/candidate.py +25 -0
- package/env/lib/python3.12/site-packages/pip/_internal/models/direct_url.py +224 -0
- package/env/lib/python3.12/site-packages/pip/_internal/models/format_control.py +78 -0
- package/env/lib/python3.12/site-packages/pip/_internal/models/index.py +28 -0
- package/env/lib/python3.12/site-packages/pip/_internal/models/installation_report.py +56 -0
- package/env/lib/python3.12/site-packages/pip/_internal/models/link.py +590 -0
- package/env/lib/python3.12/site-packages/pip/_internal/models/scheme.py +25 -0
- package/env/lib/python3.12/site-packages/pip/_internal/models/search_scope.py +127 -0
- package/env/lib/python3.12/site-packages/pip/_internal/models/selection_prefs.py +53 -0
- package/env/lib/python3.12/site-packages/pip/_internal/models/target_python.py +121 -0
- package/env/lib/python3.12/site-packages/pip/_internal/models/wheel.py +93 -0
- package/env/lib/python3.12/site-packages/pip/_internal/network/__init__.py +2 -0
- package/env/lib/python3.12/site-packages/pip/_internal/network/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/network/__pycache__/auth.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/network/__pycache__/cache.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/network/__pycache__/download.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/network/__pycache__/lazy_wheel.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/network/__pycache__/session.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/network/__pycache__/utils.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/network/__pycache__/xmlrpc.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/network/auth.py +566 -0
- package/env/lib/python3.12/site-packages/pip/_internal/network/cache.py +106 -0
- package/env/lib/python3.12/site-packages/pip/_internal/network/download.py +187 -0
- package/env/lib/python3.12/site-packages/pip/_internal/network/lazy_wheel.py +210 -0
- package/env/lib/python3.12/site-packages/pip/_internal/network/session.py +522 -0
- package/env/lib/python3.12/site-packages/pip/_internal/network/utils.py +98 -0
- package/env/lib/python3.12/site-packages/pip/_internal/network/xmlrpc.py +62 -0
- package/env/lib/python3.12/site-packages/pip/_internal/operations/__init__.py +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/operations/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/operations/__pycache__/check.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/operations/__pycache__/freeze.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/operations/__pycache__/prepare.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/operations/build/__init__.py +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/operations/build/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/operations/build/__pycache__/build_tracker.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/operations/build/__pycache__/metadata.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/operations/build/__pycache__/metadata_editable.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/operations/build/__pycache__/metadata_legacy.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/operations/build/__pycache__/wheel.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/operations/build/__pycache__/wheel_editable.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/operations/build/__pycache__/wheel_legacy.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/operations/build/build_tracker.py +138 -0
- package/env/lib/python3.12/site-packages/pip/_internal/operations/build/metadata.py +39 -0
- package/env/lib/python3.12/site-packages/pip/_internal/operations/build/metadata_editable.py +41 -0
- package/env/lib/python3.12/site-packages/pip/_internal/operations/build/metadata_legacy.py +74 -0
- package/env/lib/python3.12/site-packages/pip/_internal/operations/build/wheel.py +37 -0
- package/env/lib/python3.12/site-packages/pip/_internal/operations/build/wheel_editable.py +46 -0
- package/env/lib/python3.12/site-packages/pip/_internal/operations/build/wheel_legacy.py +102 -0
- package/env/lib/python3.12/site-packages/pip/_internal/operations/check.py +181 -0
- package/env/lib/python3.12/site-packages/pip/_internal/operations/freeze.py +258 -0
- package/env/lib/python3.12/site-packages/pip/_internal/operations/install/__init__.py +2 -0
- package/env/lib/python3.12/site-packages/pip/_internal/operations/install/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/operations/install/__pycache__/editable_legacy.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/operations/install/__pycache__/wheel.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/operations/install/editable_legacy.py +47 -0
- package/env/lib/python3.12/site-packages/pip/_internal/operations/install/wheel.py +741 -0
- package/env/lib/python3.12/site-packages/pip/_internal/operations/prepare.py +732 -0
- package/env/lib/python3.12/site-packages/pip/_internal/pyproject.py +185 -0
- package/env/lib/python3.12/site-packages/pip/_internal/req/__init__.py +90 -0
- package/env/lib/python3.12/site-packages/pip/_internal/req/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/req/__pycache__/constructors.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/req/__pycache__/req_file.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/req/__pycache__/req_install.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/req/__pycache__/req_set.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/req/__pycache__/req_uninstall.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/req/constructors.py +560 -0
- package/env/lib/python3.12/site-packages/pip/_internal/req/req_file.py +551 -0
- package/env/lib/python3.12/site-packages/pip/_internal/req/req_install.py +934 -0
- package/env/lib/python3.12/site-packages/pip/_internal/req/req_set.py +82 -0
- package/env/lib/python3.12/site-packages/pip/_internal/req/req_uninstall.py +633 -0
- package/env/lib/python3.12/site-packages/pip/_internal/resolution/__init__.py +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/resolution/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/resolution/__pycache__/base.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/resolution/base.py +20 -0
- package/env/lib/python3.12/site-packages/pip/_internal/resolution/legacy/__init__.py +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/resolution/legacy/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/resolution/legacy/__pycache__/resolver.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/resolution/legacy/resolver.py +597 -0
- package/env/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/__init__.py +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/__pycache__/base.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/__pycache__/candidates.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/__pycache__/factory.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/__pycache__/found_candidates.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/__pycache__/provider.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/__pycache__/reporter.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/__pycache__/requirements.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/__pycache__/resolver.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/base.py +139 -0
- package/env/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/candidates.py +569 -0
- package/env/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/factory.py +817 -0
- package/env/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py +174 -0
- package/env/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/provider.py +258 -0
- package/env/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/reporter.py +81 -0
- package/env/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/requirements.py +245 -0
- package/env/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/resolver.py +317 -0
- package/env/lib/python3.12/site-packages/pip/_internal/self_outdated_check.py +244 -0
- package/env/lib/python3.12/site-packages/pip/_internal/utils/__init__.py +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/utils/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/utils/__pycache__/_jaraco_text.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/utils/__pycache__/_log.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/utils/__pycache__/appdirs.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/utils/__pycache__/compat.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/utils/__pycache__/compatibility_tags.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/utils/__pycache__/datetime.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/utils/__pycache__/deprecation.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/utils/__pycache__/direct_url_helpers.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/utils/__pycache__/egg_link.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/utils/__pycache__/encoding.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/utils/__pycache__/entrypoints.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/utils/__pycache__/filesystem.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/utils/__pycache__/filetypes.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/utils/__pycache__/glibc.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/utils/__pycache__/hashes.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/utils/__pycache__/logging.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/utils/__pycache__/misc.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/utils/__pycache__/packaging.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/utils/__pycache__/retry.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/utils/__pycache__/setuptools_build.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/utils/__pycache__/subprocess.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/utils/__pycache__/temp_dir.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/utils/__pycache__/unpacking.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/utils/__pycache__/urls.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/utils/__pycache__/virtualenv.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/utils/__pycache__/wheel.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/utils/_jaraco_text.py +109 -0
- package/env/lib/python3.12/site-packages/pip/_internal/utils/_log.py +38 -0
- package/env/lib/python3.12/site-packages/pip/_internal/utils/appdirs.py +52 -0
- package/env/lib/python3.12/site-packages/pip/_internal/utils/compat.py +79 -0
- package/env/lib/python3.12/site-packages/pip/_internal/utils/compatibility_tags.py +165 -0
- package/env/lib/python3.12/site-packages/pip/_internal/utils/datetime.py +11 -0
- package/env/lib/python3.12/site-packages/pip/_internal/utils/deprecation.py +124 -0
- package/env/lib/python3.12/site-packages/pip/_internal/utils/direct_url_helpers.py +87 -0
- package/env/lib/python3.12/site-packages/pip/_internal/utils/egg_link.py +80 -0
- package/env/lib/python3.12/site-packages/pip/_internal/utils/encoding.py +36 -0
- package/env/lib/python3.12/site-packages/pip/_internal/utils/entrypoints.py +84 -0
- package/env/lib/python3.12/site-packages/pip/_internal/utils/filesystem.py +149 -0
- package/env/lib/python3.12/site-packages/pip/_internal/utils/filetypes.py +27 -0
- package/env/lib/python3.12/site-packages/pip/_internal/utils/glibc.py +101 -0
- package/env/lib/python3.12/site-packages/pip/_internal/utils/hashes.py +147 -0
- package/env/lib/python3.12/site-packages/pip/_internal/utils/logging.py +347 -0
- package/env/lib/python3.12/site-packages/pip/_internal/utils/misc.py +777 -0
- package/env/lib/python3.12/site-packages/pip/_internal/utils/packaging.py +57 -0
- package/env/lib/python3.12/site-packages/pip/_internal/utils/retry.py +42 -0
- package/env/lib/python3.12/site-packages/pip/_internal/utils/setuptools_build.py +146 -0
- package/env/lib/python3.12/site-packages/pip/_internal/utils/subprocess.py +245 -0
- package/env/lib/python3.12/site-packages/pip/_internal/utils/temp_dir.py +296 -0
- package/env/lib/python3.12/site-packages/pip/_internal/utils/unpacking.py +337 -0
- package/env/lib/python3.12/site-packages/pip/_internal/utils/urls.py +55 -0
- package/env/lib/python3.12/site-packages/pip/_internal/utils/virtualenv.py +104 -0
- package/env/lib/python3.12/site-packages/pip/_internal/utils/wheel.py +134 -0
- package/env/lib/python3.12/site-packages/pip/_internal/vcs/__init__.py +15 -0
- package/env/lib/python3.12/site-packages/pip/_internal/vcs/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/vcs/__pycache__/bazaar.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/vcs/__pycache__/git.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/vcs/__pycache__/mercurial.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/vcs/__pycache__/subversion.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/vcs/__pycache__/versioncontrol.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_internal/vcs/bazaar.py +112 -0
- package/env/lib/python3.12/site-packages/pip/_internal/vcs/git.py +527 -0
- package/env/lib/python3.12/site-packages/pip/_internal/vcs/mercurial.py +163 -0
- package/env/lib/python3.12/site-packages/pip/_internal/vcs/subversion.py +324 -0
- package/env/lib/python3.12/site-packages/pip/_internal/vcs/versioncontrol.py +688 -0
- package/env/lib/python3.12/site-packages/pip/_internal/wheel_builder.py +354 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/__init__.py +116 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/__pycache__/typing_extensions.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/cachecontrol/__init__.py +28 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/cachecontrol/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/cachecontrol/__pycache__/_cmd.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/cachecontrol/__pycache__/adapter.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/cachecontrol/__pycache__/cache.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/cachecontrol/__pycache__/controller.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/cachecontrol/__pycache__/filewrapper.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/cachecontrol/__pycache__/heuristics.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/cachecontrol/__pycache__/serialize.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/cachecontrol/__pycache__/wrapper.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/cachecontrol/_cmd.py +70 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/cachecontrol/adapter.py +161 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/cachecontrol/cache.py +74 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/cachecontrol/caches/__init__.py +8 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/cachecontrol/caches/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/cachecontrol/caches/__pycache__/file_cache.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/cachecontrol/caches/__pycache__/redis_cache.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/cachecontrol/caches/file_cache.py +182 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/cachecontrol/caches/redis_cache.py +48 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/cachecontrol/controller.py +499 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/cachecontrol/filewrapper.py +119 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/cachecontrol/heuristics.py +154 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/cachecontrol/py.typed +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/cachecontrol/serialize.py +146 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/cachecontrol/wrapper.py +43 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/certifi/__init__.py +4 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/certifi/__main__.py +12 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/certifi/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/certifi/__pycache__/__main__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/certifi/__pycache__/core.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/certifi/cacert.pem +4798 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/certifi/core.py +114 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/certifi/py.typed +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/distlib/__init__.py +33 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/distlib/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/distlib/__pycache__/compat.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/distlib/__pycache__/database.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/distlib/__pycache__/index.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/distlib/__pycache__/locators.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/distlib/__pycache__/manifest.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/distlib/__pycache__/markers.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/distlib/__pycache__/metadata.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/distlib/__pycache__/resources.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/distlib/__pycache__/scripts.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/distlib/__pycache__/util.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/distlib/__pycache__/version.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/distlib/__pycache__/wheel.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/distlib/compat.py +1138 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/distlib/database.py +1359 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/distlib/index.py +508 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/distlib/locators.py +1303 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/distlib/manifest.py +384 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/distlib/markers.py +167 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/distlib/metadata.py +1068 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/distlib/resources.py +358 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/distlib/scripts.py +466 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/distlib/t32.exe +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/distlib/t64-arm.exe +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/distlib/t64.exe +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/distlib/util.py +2025 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/distlib/version.py +751 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/distlib/w32.exe +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/distlib/w64-arm.exe +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/distlib/w64.exe +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/distlib/wheel.py +1099 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/distro/__init__.py +54 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/distro/__main__.py +4 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/distro/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/distro/__pycache__/__main__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/distro/__pycache__/distro.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/distro/distro.py +1403 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/distro/py.typed +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/idna/__init__.py +44 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/idna/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/idna/__pycache__/codec.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/idna/__pycache__/compat.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/idna/__pycache__/core.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/idna/__pycache__/idnadata.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/idna/__pycache__/intranges.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/idna/__pycache__/package_data.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/idna/__pycache__/uts46data.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/idna/codec.py +118 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/idna/compat.py +13 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/idna/core.py +395 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/idna/idnadata.py +4245 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/idna/intranges.py +54 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/idna/package_data.py +2 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/idna/py.typed +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/idna/uts46data.py +8598 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/msgpack/__init__.py +55 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/msgpack/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/msgpack/__pycache__/exceptions.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/msgpack/__pycache__/ext.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/msgpack/__pycache__/fallback.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/msgpack/exceptions.py +48 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/msgpack/ext.py +168 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/msgpack/fallback.py +951 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/packaging/__init__.py +15 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/packaging/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/packaging/__pycache__/_elffile.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/packaging/__pycache__/_manylinux.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/packaging/__pycache__/_musllinux.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/packaging/__pycache__/_parser.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/packaging/__pycache__/_structures.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/packaging/__pycache__/_tokenizer.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/packaging/__pycache__/markers.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/packaging/__pycache__/metadata.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/packaging/__pycache__/requirements.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/packaging/__pycache__/specifiers.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/packaging/__pycache__/tags.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/packaging/__pycache__/utils.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/packaging/__pycache__/version.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/packaging/_elffile.py +110 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/packaging/_manylinux.py +262 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/packaging/_musllinux.py +85 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/packaging/_parser.py +354 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/packaging/_structures.py +61 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/packaging/_tokenizer.py +194 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/packaging/markers.py +325 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/packaging/metadata.py +804 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/packaging/py.typed +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/packaging/requirements.py +91 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/packaging/specifiers.py +1009 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/packaging/tags.py +568 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/packaging/utils.py +174 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/packaging/version.py +563 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pkg_resources/__init__.py +3676 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pkg_resources/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/platformdirs/__init__.py +627 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/platformdirs/__main__.py +55 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/platformdirs/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/platformdirs/__pycache__/__main__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/platformdirs/__pycache__/android.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/platformdirs/__pycache__/api.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/platformdirs/__pycache__/macos.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/platformdirs/__pycache__/unix.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/platformdirs/__pycache__/version.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/platformdirs/__pycache__/windows.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/platformdirs/android.py +249 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/platformdirs/api.py +292 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/platformdirs/macos.py +130 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/platformdirs/py.typed +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/platformdirs/unix.py +275 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/platformdirs/version.py +16 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/platformdirs/windows.py +272 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/__init__.py +82 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/__main__.py +17 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/__pycache__/__main__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/__pycache__/cmdline.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/__pycache__/console.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/__pycache__/filter.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/__pycache__/formatter.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/__pycache__/lexer.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/__pycache__/modeline.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/__pycache__/plugin.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/__pycache__/regexopt.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/__pycache__/scanner.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/__pycache__/sphinxext.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/__pycache__/style.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/__pycache__/token.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/__pycache__/unistring.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/__pycache__/util.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/cmdline.py +668 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/console.py +70 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/filter.py +70 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/filters/__init__.py +940 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/filters/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/formatter.py +129 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/__init__.py +157 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/__pycache__/_mapping.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/__pycache__/bbcode.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/__pycache__/groff.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/__pycache__/html.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/__pycache__/img.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/__pycache__/irc.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/__pycache__/latex.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/__pycache__/other.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/__pycache__/pangomarkup.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/__pycache__/rtf.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/__pycache__/svg.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/__pycache__/terminal.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/__pycache__/terminal256.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/_mapping.py +23 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/bbcode.py +108 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/groff.py +170 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/html.py +987 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/img.py +685 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/irc.py +154 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/latex.py +518 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/other.py +160 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/pangomarkup.py +83 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/rtf.py +349 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/svg.py +185 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/terminal.py +127 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/terminal256.py +338 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/lexer.py +963 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/lexers/__init__.py +362 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/lexers/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/lexers/__pycache__/_mapping.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/lexers/__pycache__/python.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/lexers/_mapping.py +589 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/lexers/python.py +1198 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/modeline.py +43 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/plugin.py +72 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/regexopt.py +91 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/scanner.py +104 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/sphinxext.py +247 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/style.py +203 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/styles/__init__.py +61 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/styles/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/styles/__pycache__/_mapping.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/styles/_mapping.py +54 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/token.py +214 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/unistring.py +153 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pygments/util.py +324 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/__init__.py +23 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/__pycache__/_compat.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/__pycache__/_impl.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_compat.py +8 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_impl.py +330 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/__init__.py +18 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/__pycache__/_in_process.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py +353 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/requests/__init__.py +179 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/requests/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/requests/__pycache__/__version__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/requests/__pycache__/_internal_utils.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/requests/__pycache__/adapters.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/requests/__pycache__/api.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/requests/__pycache__/auth.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/requests/__pycache__/certs.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/requests/__pycache__/compat.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/requests/__pycache__/cookies.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/requests/__pycache__/exceptions.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/requests/__pycache__/help.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/requests/__pycache__/hooks.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/requests/__pycache__/models.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/requests/__pycache__/packages.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/requests/__pycache__/sessions.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/requests/__pycache__/status_codes.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/requests/__pycache__/structures.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/requests/__pycache__/utils.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/requests/__version__.py +14 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/requests/_internal_utils.py +50 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/requests/adapters.py +719 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/requests/api.py +157 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/requests/auth.py +314 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/requests/certs.py +24 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/requests/compat.py +78 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/requests/cookies.py +561 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/requests/exceptions.py +151 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/requests/help.py +127 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/requests/hooks.py +33 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/requests/models.py +1037 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/requests/packages.py +25 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/requests/sessions.py +831 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/requests/status_codes.py +128 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/requests/structures.py +99 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/requests/utils.py +1096 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/resolvelib/__init__.py +26 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/resolvelib/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/resolvelib/__pycache__/providers.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/resolvelib/__pycache__/reporters.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/resolvelib/__pycache__/resolvers.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/resolvelib/__pycache__/structs.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/resolvelib/compat/__init__.py +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/resolvelib/compat/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/resolvelib/compat/__pycache__/collections_abc.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/resolvelib/compat/collections_abc.py +6 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/resolvelib/providers.py +133 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/resolvelib/py.typed +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/resolvelib/reporters.py +43 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/resolvelib/resolvers.py +547 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/resolvelib/structs.py +170 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__init__.py +177 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__main__.py +273 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/__main__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/_cell_widths.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/_emoji_codes.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/_emoji_replace.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/_export_format.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/_extension.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/_fileno.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/_inspect.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/_log_render.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/_loop.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/_null_file.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/_palettes.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/_pick.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/_ratio.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/_spinners.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/_stack.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/_timer.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/_win32_console.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/_windows.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/_windows_renderer.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/_wrap.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/abc.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/align.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/ansi.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/bar.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/box.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/cells.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/color.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/color_triplet.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/columns.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/console.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/constrain.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/containers.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/control.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/default_styles.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/diagnose.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/emoji.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/errors.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/file_proxy.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/filesize.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/highlighter.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/json.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/jupyter.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/layout.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/live.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/live_render.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/logging.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/markup.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/measure.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/padding.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/pager.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/palette.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/panel.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/pretty.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/progress.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/progress_bar.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/prompt.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/protocol.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/region.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/repr.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/rule.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/scope.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/screen.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/segment.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/spinner.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/status.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/style.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/styled.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/syntax.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/table.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/terminal_theme.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/text.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/theme.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/themes.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/traceback.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/tree.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/_cell_widths.py +454 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/_emoji_codes.py +3610 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/_emoji_replace.py +32 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/_export_format.py +76 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/_extension.py +10 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/_fileno.py +24 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/_inspect.py +270 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/_log_render.py +94 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/_loop.py +43 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/_null_file.py +69 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/_palettes.py +309 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/_pick.py +17 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/_ratio.py +159 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/_spinners.py +482 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/_stack.py +16 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/_timer.py +19 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/_win32_console.py +662 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/_windows.py +71 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/_windows_renderer.py +56 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/_wrap.py +93 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/abc.py +33 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/align.py +311 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/ansi.py +240 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/bar.py +93 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/box.py +480 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/cells.py +167 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/color.py +621 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/color_triplet.py +38 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/columns.py +187 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/console.py +2633 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/constrain.py +37 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/containers.py +167 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/control.py +225 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/default_styles.py +190 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/diagnose.py +37 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/emoji.py +96 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/errors.py +34 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/file_proxy.py +57 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/filesize.py +89 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/highlighter.py +232 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/json.py +139 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/jupyter.py +101 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/layout.py +442 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/live.py +375 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/live_render.py +112 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/logging.py +289 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/markup.py +251 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/measure.py +151 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/padding.py +141 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/pager.py +34 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/palette.py +100 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/panel.py +312 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/pretty.py +995 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/progress.py +1699 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/progress_bar.py +223 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/prompt.py +375 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/protocol.py +42 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/py.typed +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/region.py +10 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/repr.py +149 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/rule.py +130 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/scope.py +86 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/screen.py +54 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/segment.py +738 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/spinner.py +137 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/status.py +131 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/style.py +796 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/styled.py +42 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/syntax.py +958 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/table.py +1000 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/terminal_theme.py +153 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/text.py +1357 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/theme.py +115 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/themes.py +5 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/traceback.py +753 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/rich/tree.py +249 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/tomli/__init__.py +11 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/tomli/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/tomli/__pycache__/_parser.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/tomli/__pycache__/_re.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/tomli/__pycache__/_types.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/tomli/_parser.py +691 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/tomli/_re.py +107 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/tomli/_types.py +10 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/tomli/py.typed +1 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/truststore/__init__.py +13 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/truststore/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/truststore/__pycache__/_api.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/truststore/__pycache__/_macos.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/truststore/__pycache__/_openssl.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/truststore/__pycache__/_ssl_constants.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/truststore/__pycache__/_windows.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/truststore/_api.py +313 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/truststore/_macos.py +499 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/truststore/_openssl.py +66 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/truststore/_ssl_constants.py +31 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/truststore/_windows.py +564 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/truststore/py.typed +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/typing_extensions.py +3641 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/__init__.py +102 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/__pycache__/_collections.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/__pycache__/_version.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/__pycache__/connection.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/__pycache__/connectionpool.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/__pycache__/exceptions.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/__pycache__/fields.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/__pycache__/filepost.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/__pycache__/poolmanager.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/__pycache__/request.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/__pycache__/response.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/_collections.py +355 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/_version.py +2 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/connection.py +572 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/connectionpool.py +1137 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/contrib/__init__.py +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/contrib/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/contrib/__pycache__/_appengine_environ.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/contrib/__pycache__/appengine.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/contrib/__pycache__/ntlmpool.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/contrib/__pycache__/pyopenssl.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/contrib/__pycache__/securetransport.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/contrib/__pycache__/socks.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/contrib/_appengine_environ.py +36 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/contrib/_securetransport/__init__.py +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/contrib/_securetransport/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/contrib/_securetransport/__pycache__/bindings.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/contrib/_securetransport/__pycache__/low_level.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/contrib/_securetransport/bindings.py +519 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/contrib/_securetransport/low_level.py +397 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/contrib/appengine.py +314 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/contrib/ntlmpool.py +130 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/contrib/pyopenssl.py +518 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/contrib/securetransport.py +920 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/contrib/socks.py +216 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/exceptions.py +323 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/fields.py +274 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/filepost.py +98 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/packages/__init__.py +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/packages/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/packages/__pycache__/six.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/packages/backports/__init__.py +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/packages/backports/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/packages/backports/__pycache__/makefile.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/packages/backports/__pycache__/weakref_finalize.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/packages/backports/makefile.py +51 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/packages/backports/weakref_finalize.py +155 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/packages/six.py +1076 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/poolmanager.py +540 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/request.py +191 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/response.py +879 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/util/__init__.py +49 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/util/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/util/__pycache__/connection.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/util/__pycache__/proxy.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/util/__pycache__/queue.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/util/__pycache__/request.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/util/__pycache__/response.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/util/__pycache__/retry.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/util/__pycache__/ssl_.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/util/__pycache__/ssl_match_hostname.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/util/__pycache__/ssltransport.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/util/__pycache__/timeout.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/util/__pycache__/url.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/util/__pycache__/wait.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/util/connection.py +149 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/util/proxy.py +57 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/util/queue.py +22 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/util/request.py +137 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/util/response.py +107 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/util/retry.py +620 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/util/ssl_.py +495 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/util/ssl_match_hostname.py +159 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/util/ssltransport.py +221 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/util/timeout.py +271 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/util/url.py +435 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/urllib3/util/wait.py +152 -0
- package/env/lib/python3.12/site-packages/pip/_vendor/vendor.txt +18 -0
- package/env/lib/python3.12/site-packages/pip/py.typed +4 -0
- package/env/lib/python3.12/site-packages/pip-24.2.dist-info/AUTHORS.txt +796 -0
- package/env/lib/python3.12/site-packages/pip-24.2.dist-info/INSTALLER +1 -0
- package/env/lib/python3.12/site-packages/pip-24.2.dist-info/LICENSE.txt +20 -0
- package/env/lib/python3.12/site-packages/pip-24.2.dist-info/METADATA +89 -0
- package/env/lib/python3.12/site-packages/pip-24.2.dist-info/RECORD +853 -0
- package/env/lib/python3.12/site-packages/pip-24.2.dist-info/REQUESTED +0 -0
- package/env/lib/python3.12/site-packages/pip-24.2.dist-info/WHEEL +5 -0
- package/env/lib/python3.12/site-packages/pip-24.2.dist-info/entry_points.txt +3 -0
- package/env/lib/python3.12/site-packages/pip-24.2.dist-info/top_level.txt +1 -0
- package/env/lib/python3.12/site-packages/pkg_resources/__init__.py +3709 -0
- package/env/lib/python3.12/site-packages/pkg_resources/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/pkg_resources/api_tests.txt +424 -0
- package/env/lib/python3.12/site-packages/pkg_resources/py.typed +0 -0
- package/env/lib/python3.12/site-packages/python_minifier/__init__.py +231 -0
- package/env/lib/python3.12/site-packages/python_minifier/__init__.pyi +34 -0
- package/env/lib/python3.12/site-packages/python_minifier/__main__.py +262 -0
- package/env/lib/python3.12/site-packages/python_minifier/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/python_minifier/__pycache__/__main__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/python_minifier/__pycache__/ast_compare.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/python_minifier/__pycache__/expression_printer.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/python_minifier/__pycache__/f_string.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/python_minifier/__pycache__/ministring.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/python_minifier/__pycache__/module_printer.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/python_minifier/__pycache__/token_printer.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/python_minifier/__pycache__/util.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/python_minifier/ast_compare.py +104 -0
- package/env/lib/python3.12/site-packages/python_minifier/expression_printer.py +748 -0
- package/env/lib/python3.12/site-packages/python_minifier/f_string.py +426 -0
- package/env/lib/python3.12/site-packages/python_minifier/ministring.py +175 -0
- package/env/lib/python3.12/site-packages/python_minifier/module_printer.py +794 -0
- package/env/lib/python3.12/site-packages/python_minifier/py.typed +0 -0
- package/env/lib/python3.12/site-packages/python_minifier/rename/__init__.py +6 -0
- package/env/lib/python3.12/site-packages/python_minifier/rename/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/python_minifier/rename/__pycache__/bind_names.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/python_minifier/rename/__pycache__/binding.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/python_minifier/rename/__pycache__/mapper.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/python_minifier/rename/__pycache__/name_generator.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/python_minifier/rename/__pycache__/rename_literals.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/python_minifier/rename/__pycache__/renamer.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/python_minifier/rename/__pycache__/resolve_names.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/python_minifier/rename/__pycache__/util.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/python_minifier/rename/bind_names.py +174 -0
- package/env/lib/python3.12/site-packages/python_minifier/rename/binding.py +450 -0
- package/env/lib/python3.12/site-packages/python_minifier/rename/mapper.py +160 -0
- package/env/lib/python3.12/site-packages/python_minifier/rename/name_generator.py +51 -0
- package/env/lib/python3.12/site-packages/python_minifier/rename/rename_literals.py +234 -0
- package/env/lib/python3.12/site-packages/python_minifier/rename/renamer.py +230 -0
- package/env/lib/python3.12/site-packages/python_minifier/rename/resolve_names.py +88 -0
- package/env/lib/python3.12/site-packages/python_minifier/rename/util.py +193 -0
- package/env/lib/python3.12/site-packages/python_minifier/token_printer.py +297 -0
- package/env/lib/python3.12/site-packages/python_minifier/transforms/__init__.py +0 -0
- package/env/lib/python3.12/site-packages/python_minifier/transforms/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/python_minifier/transforms/__pycache__/combine_imports.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/python_minifier/transforms/__pycache__/remove_annotations.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/python_minifier/transforms/__pycache__/remove_asserts.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/python_minifier/transforms/__pycache__/remove_debug.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/python_minifier/transforms/__pycache__/remove_explicit_return_none.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/python_minifier/transforms/__pycache__/remove_literal_statements.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/python_minifier/transforms/__pycache__/remove_object_base.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/python_minifier/transforms/__pycache__/remove_pass.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/python_minifier/transforms/__pycache__/remove_posargs.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/python_minifier/transforms/__pycache__/suite_transformer.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/python_minifier/transforms/combine_imports.py +73 -0
- package/env/lib/python3.12/site-packages/python_minifier/transforms/remove_annotations.py +110 -0
- package/env/lib/python3.12/site-packages/python_minifier/transforms/remove_asserts.py +26 -0
- package/env/lib/python3.12/site-packages/python_minifier/transforms/remove_debug.py +53 -0
- package/env/lib/python3.12/site-packages/python_minifier/transforms/remove_explicit_return_none.py +38 -0
- package/env/lib/python3.12/site-packages/python_minifier/transforms/remove_literal_statements.py +61 -0
- package/env/lib/python3.12/site-packages/python_minifier/transforms/remove_object_base.py +21 -0
- package/env/lib/python3.12/site-packages/python_minifier/transforms/remove_pass.py +26 -0
- package/env/lib/python3.12/site-packages/python_minifier/transforms/remove_posargs.py +13 -0
- package/env/lib/python3.12/site-packages/python_minifier/transforms/suite_transformer.py +193 -0
- package/env/lib/python3.12/site-packages/python_minifier/util.py +48 -0
- package/env/lib/python3.12/site-packages/python_minifier-2.9.0.dist-info/INSTALLER +1 -0
- package/env/lib/python3.12/site-packages/python_minifier-2.9.0.dist-info/LICENSE +21 -0
- package/env/lib/python3.12/site-packages/python_minifier-2.9.0.dist-info/METADATA +169 -0
- package/env/lib/python3.12/site-packages/python_minifier-2.9.0.dist-info/RECORD +70 -0
- package/env/lib/python3.12/site-packages/python_minifier-2.9.0.dist-info/REQUESTED +0 -0
- package/env/lib/python3.12/site-packages/python_minifier-2.9.0.dist-info/WHEEL +6 -0
- package/env/lib/python3.12/site-packages/python_minifier-2.9.0.dist-info/entry_points.txt +2 -0
- package/env/lib/python3.12/site-packages/python_minifier-2.9.0.dist-info/top_level.txt +1 -0
- package/env/lib/python3.12/site-packages/python_minifier-2.9.0.dist-info/zip-safe +1 -0
- package/env/lib/python3.12/site-packages/setuptools/__init__.py +282 -0
- package/env/lib/python3.12/site-packages/setuptools/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/__pycache__/_core_metadata.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/__pycache__/_entry_points.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/__pycache__/_imp.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/__pycache__/_importlib.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/__pycache__/_itertools.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/__pycache__/_normalization.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/__pycache__/_path.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/__pycache__/_reqs.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/__pycache__/archive_util.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/__pycache__/build_meta.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/__pycache__/depends.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/__pycache__/discovery.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/__pycache__/dist.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/__pycache__/errors.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/__pycache__/extension.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/__pycache__/glob.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/__pycache__/installer.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/__pycache__/launch.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/__pycache__/logging.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/__pycache__/modified.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/__pycache__/monkey.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/__pycache__/msvc.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/__pycache__/namespaces.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/__pycache__/package_index.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/__pycache__/sandbox.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/__pycache__/unicode_utils.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/__pycache__/version.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/__pycache__/warnings.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/__pycache__/wheel.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/__pycache__/windows_support.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_core_metadata.py +286 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/__init__.py +14 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/__pycache__/_collections.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/__pycache__/_functools.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/__pycache__/_itertools.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/__pycache__/_log.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/__pycache__/_macos_compat.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/__pycache__/_modified.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/__pycache__/_msvccompiler.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/__pycache__/archive_util.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/__pycache__/bcppcompiler.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/__pycache__/ccompiler.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/__pycache__/cmd.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/__pycache__/config.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/__pycache__/core.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/__pycache__/cygwinccompiler.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/__pycache__/debug.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/__pycache__/dep_util.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/__pycache__/dir_util.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/__pycache__/dist.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/__pycache__/errors.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/__pycache__/extension.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/__pycache__/fancy_getopt.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/__pycache__/file_util.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/__pycache__/filelist.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/__pycache__/log.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/__pycache__/msvc9compiler.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/__pycache__/msvccompiler.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/__pycache__/spawn.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/__pycache__/sysconfig.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/__pycache__/text_file.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/__pycache__/unixccompiler.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/__pycache__/util.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/__pycache__/version.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/__pycache__/versionpredicate.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/__pycache__/zosccompiler.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/_collections.py +58 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/_functools.py +73 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/_itertools.py +52 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/_log.py +3 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/_macos_compat.py +12 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/_modified.py +72 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/_msvccompiler.py +568 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/_vendor/__init__.py +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/_vendor/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/_vendor/packaging/__init__.py +15 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/_vendor/packaging/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/_vendor/packaging/__pycache__/_elffile.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/_vendor/packaging/__pycache__/_manylinux.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/_vendor/packaging/__pycache__/_musllinux.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/_vendor/packaging/__pycache__/_parser.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/_vendor/packaging/__pycache__/_structures.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/_vendor/packaging/__pycache__/_tokenizer.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/_vendor/packaging/__pycache__/markers.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/_vendor/packaging/__pycache__/metadata.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/_vendor/packaging/__pycache__/requirements.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/_vendor/packaging/__pycache__/specifiers.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/_vendor/packaging/__pycache__/tags.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/_vendor/packaging/__pycache__/utils.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/_vendor/packaging/__pycache__/version.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/_vendor/packaging/_elffile.py +108 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/_vendor/packaging/_manylinux.py +260 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/_vendor/packaging/_musllinux.py +83 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/_vendor/packaging/_parser.py +356 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/_vendor/packaging/_structures.py +61 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/_vendor/packaging/_tokenizer.py +192 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/_vendor/packaging/markers.py +252 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/_vendor/packaging/metadata.py +825 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/_vendor/packaging/py.typed +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/_vendor/packaging/requirements.py +90 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/_vendor/packaging/specifiers.py +1017 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/_vendor/packaging/tags.py +571 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/_vendor/packaging/utils.py +172 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/_vendor/packaging/version.py +563 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/_vendor/packaging-24.0.dist-info/LICENSE +3 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/_vendor/packaging-24.0.dist-info/LICENSE.APACHE +177 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/_vendor/packaging-24.0.dist-info/LICENSE.BSD +23 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/archive_util.py +283 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/bcppcompiler.py +396 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/ccompiler.py +1255 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/cmd.py +439 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/command/__init__.py +25 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/command/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/command/__pycache__/_framework_compat.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/command/__pycache__/bdist.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/command/__pycache__/bdist_dumb.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/command/__pycache__/bdist_rpm.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/command/__pycache__/build.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/command/__pycache__/build_clib.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/command/__pycache__/build_ext.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/command/__pycache__/build_py.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/command/__pycache__/build_scripts.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/command/__pycache__/check.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/command/__pycache__/clean.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/command/__pycache__/config.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/command/__pycache__/install.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/command/__pycache__/install_data.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/command/__pycache__/install_egg_info.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/command/__pycache__/install_headers.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/command/__pycache__/install_lib.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/command/__pycache__/install_scripts.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/command/__pycache__/register.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/command/__pycache__/sdist.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/command/__pycache__/upload.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/command/_framework_compat.py +54 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/command/bdist.py +155 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/command/bdist_dumb.py +140 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/command/bdist_rpm.py +597 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/command/build.py +156 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/command/build_clib.py +208 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/command/build_ext.py +797 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/command/build_py.py +406 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/command/build_scripts.py +170 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/command/check.py +154 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/command/clean.py +76 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/command/config.py +369 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/command/install.py +810 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/command/install_data.py +94 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/command/install_egg_info.py +92 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/command/install_headers.py +44 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/command/install_lib.py +234 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/command/install_scripts.py +61 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/command/register.py +322 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/command/sdist.py +527 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/command/upload.py +208 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/command/wininst-10.0-amd64.exe +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/command/wininst-10.0.exe +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/command/wininst-14.0-amd64.exe +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/command/wininst-14.0.exe +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/command/wininst-6.0.exe +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/command/wininst-7.1.exe +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/command/wininst-8.0.exe +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/command/wininst-9.0-amd64.exe +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/command/wininst-9.0.exe +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/compat/__init__.py +15 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/compat/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/compat/__pycache__/py38.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/compat/__pycache__/py39.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/compat/py38.py +34 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/compat/py39.py +66 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/config.py +151 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/core.py +287 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/cygwinccompiler.py +334 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/debug.py +5 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/dep_util.py +14 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/dir_util.py +238 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/dist.py +1298 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/errors.py +127 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/extension.py +247 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/fancy_getopt.py +469 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/file_util.py +235 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/filelist.py +369 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/log.py +56 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/msvc9compiler.py +822 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/msvccompiler.py +687 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/spawn.py +117 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/sysconfig.py +582 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/text_file.py +286 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/unixccompiler.py +402 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/util.py +504 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/version.py +349 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/versionpredicate.py +175 -0
- package/env/lib/python3.12/site-packages/setuptools/_distutils/zosccompiler.py +229 -0
- package/env/lib/python3.12/site-packages/setuptools/_entry_points.py +90 -0
- package/env/lib/python3.12/site-packages/setuptools/_imp.py +87 -0
- package/env/lib/python3.12/site-packages/setuptools/_importlib.py +12 -0
- package/env/lib/python3.12/site-packages/setuptools/_itertools.py +23 -0
- package/env/lib/python3.12/site-packages/setuptools/_normalization.py +144 -0
- package/env/lib/python3.12/site-packages/setuptools/_path.py +87 -0
- package/env/lib/python3.12/site-packages/setuptools/_reqs.py +43 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/__pycache__/typing_extensions.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/autocommand/__init__.py +27 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/autocommand/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/autocommand/__pycache__/autoasync.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/autocommand/__pycache__/autocommand.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/autocommand/__pycache__/automain.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/autocommand/__pycache__/autoparse.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/autocommand/__pycache__/errors.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/autocommand/autoasync.py +142 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/autocommand/autocommand.py +70 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/autocommand/automain.py +59 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/autocommand/autoparse.py +333 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/autocommand/errors.py +23 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/autocommand-2.2.2.dist-info/INSTALLER +1 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/autocommand-2.2.2.dist-info/LICENSE +166 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/autocommand-2.2.2.dist-info/METADATA +420 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/autocommand-2.2.2.dist-info/RECORD +18 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/autocommand-2.2.2.dist-info/WHEEL +5 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/autocommand-2.2.2.dist-info/top_level.txt +1 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/backports/__init__.py +1 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/backports/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/backports/tarfile/__init__.py +2937 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/backports/tarfile/__main__.py +5 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/backports/tarfile/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/backports/tarfile/__pycache__/__main__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/backports/tarfile/compat/__init__.py +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/backports/tarfile/compat/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/backports/tarfile/compat/__pycache__/py38.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/backports/tarfile/compat/py38.py +24 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/backports.tarfile-1.2.0.dist-info/INSTALLER +1 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/backports.tarfile-1.2.0.dist-info/LICENSE +17 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/backports.tarfile-1.2.0.dist-info/METADATA +46 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/backports.tarfile-1.2.0.dist-info/RECORD +17 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/backports.tarfile-1.2.0.dist-info/REQUESTED +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/backports.tarfile-1.2.0.dist-info/WHEEL +5 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/backports.tarfile-1.2.0.dist-info/top_level.txt +1 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/importlib_metadata/__init__.py +1083 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/importlib_metadata/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/importlib_metadata/__pycache__/_adapters.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/importlib_metadata/__pycache__/_collections.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/importlib_metadata/__pycache__/_compat.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/importlib_metadata/__pycache__/_functools.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/importlib_metadata/__pycache__/_itertools.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/importlib_metadata/__pycache__/_meta.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/importlib_metadata/__pycache__/_text.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/importlib_metadata/__pycache__/diagnose.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/importlib_metadata/_adapters.py +83 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/importlib_metadata/_collections.py +30 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/importlib_metadata/_compat.py +57 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/importlib_metadata/_functools.py +104 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/importlib_metadata/_itertools.py +73 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/importlib_metadata/_meta.py +67 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/importlib_metadata/_text.py +99 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/importlib_metadata/compat/__init__.py +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/importlib_metadata/compat/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/importlib_metadata/compat/__pycache__/py311.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/importlib_metadata/compat/__pycache__/py39.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/importlib_metadata/compat/py311.py +22 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/importlib_metadata/compat/py39.py +36 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/importlib_metadata/diagnose.py +21 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/importlib_metadata/py.typed +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/importlib_metadata-8.0.0.dist-info/INSTALLER +1 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/importlib_metadata-8.0.0.dist-info/LICENSE +202 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/importlib_metadata-8.0.0.dist-info/METADATA +129 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/importlib_metadata-8.0.0.dist-info/RECORD +32 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/importlib_metadata-8.0.0.dist-info/REQUESTED +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/importlib_metadata-8.0.0.dist-info/WHEEL +5 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/importlib_metadata-8.0.0.dist-info/top_level.txt +1 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/importlib_resources/__init__.py +36 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/importlib_resources/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/importlib_resources/__pycache__/_adapters.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/importlib_resources/__pycache__/_common.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/importlib_resources/__pycache__/_itertools.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/importlib_resources/__pycache__/abc.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/importlib_resources/__pycache__/functional.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/importlib_resources/__pycache__/readers.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/importlib_resources/__pycache__/simple.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/importlib_resources/_adapters.py +168 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/importlib_resources/_common.py +210 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/importlib_resources/_itertools.py +38 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/importlib_resources/abc.py +171 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/importlib_resources/compat/__init__.py +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/importlib_resources/compat/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/importlib_resources/compat/__pycache__/py38.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/importlib_resources/compat/__pycache__/py39.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/importlib_resources/compat/py38.py +11 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/importlib_resources/compat/py39.py +10 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/importlib_resources/functional.py +81 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/importlib_resources/future/__init__.py +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/importlib_resources/future/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/importlib_resources/future/__pycache__/adapters.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/importlib_resources/future/adapters.py +95 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/importlib_resources/py.typed +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/importlib_resources/readers.py +194 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/importlib_resources/simple.py +106 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/importlib_resources-6.4.0.dist-info/INSTALLER +1 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/importlib_resources-6.4.0.dist-info/LICENSE +202 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/importlib_resources-6.4.0.dist-info/METADATA +100 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/importlib_resources-6.4.0.dist-info/RECORD +89 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/importlib_resources-6.4.0.dist-info/REQUESTED +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/importlib_resources-6.4.0.dist-info/WHEEL +5 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/importlib_resources-6.4.0.dist-info/top_level.txt +1 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/inflect/__init__.py +3986 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/inflect/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/inflect/compat/__init__.py +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/inflect/compat/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/inflect/compat/__pycache__/py38.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/inflect/compat/py38.py +7 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/inflect/py.typed +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/inflect-7.3.1.dist-info/INSTALLER +1 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/inflect-7.3.1.dist-info/LICENSE +17 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/inflect-7.3.1.dist-info/METADATA +591 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/inflect-7.3.1.dist-info/RECORD +13 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/inflect-7.3.1.dist-info/WHEEL +5 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/inflect-7.3.1.dist-info/top_level.txt +1 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/jaraco/__pycache__/context.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/jaraco/context.py +361 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/jaraco/functools/__init__.py +633 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/jaraco/functools/__init__.pyi +125 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/jaraco/functools/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/jaraco/functools/py.typed +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/jaraco/text/Lorem ipsum.txt +2 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/jaraco/text/__init__.py +624 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/jaraco/text/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/jaraco/text/__pycache__/layouts.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/jaraco/text/__pycache__/show-newlines.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/jaraco/text/__pycache__/strip-prefix.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/jaraco/text/__pycache__/to-dvorak.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/jaraco/text/__pycache__/to-qwerty.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/jaraco/text/layouts.py +25 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/jaraco/text/show-newlines.py +33 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/jaraco/text/strip-prefix.py +21 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/jaraco/text/to-dvorak.py +6 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/jaraco/text/to-qwerty.py +6 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/jaraco.context-5.3.0.dist-info/INSTALLER +1 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/jaraco.context-5.3.0.dist-info/LICENSE +17 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/jaraco.context-5.3.0.dist-info/METADATA +75 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/jaraco.context-5.3.0.dist-info/RECORD +8 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/jaraco.context-5.3.0.dist-info/WHEEL +5 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/jaraco.context-5.3.0.dist-info/top_level.txt +1 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/jaraco.functools-4.0.1.dist-info/INSTALLER +1 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/jaraco.functools-4.0.1.dist-info/LICENSE +17 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/jaraco.functools-4.0.1.dist-info/METADATA +64 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/jaraco.functools-4.0.1.dist-info/RECORD +10 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/jaraco.functools-4.0.1.dist-info/WHEEL +5 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/jaraco.functools-4.0.1.dist-info/top_level.txt +1 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/jaraco.text-3.12.1.dist-info/INSTALLER +1 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/jaraco.text-3.12.1.dist-info/LICENSE +17 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/jaraco.text-3.12.1.dist-info/METADATA +95 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/jaraco.text-3.12.1.dist-info/RECORD +20 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/jaraco.text-3.12.1.dist-info/REQUESTED +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/jaraco.text-3.12.1.dist-info/WHEEL +5 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/jaraco.text-3.12.1.dist-info/top_level.txt +1 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/more_itertools/__init__.py +6 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/more_itertools/__init__.pyi +2 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/more_itertools/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/more_itertools/__pycache__/more.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/more_itertools/__pycache__/recipes.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/more_itertools/more.py +4806 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/more_itertools/more.pyi +709 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/more_itertools/py.typed +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/more_itertools/recipes.py +1046 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/more_itertools/recipes.pyi +136 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/more_itertools-10.3.0.dist-info/INSTALLER +1 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/more_itertools-10.3.0.dist-info/LICENSE +19 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/more_itertools-10.3.0.dist-info/METADATA +266 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/more_itertools-10.3.0.dist-info/RECORD +16 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/more_itertools-10.3.0.dist-info/REQUESTED +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/more_itertools-10.3.0.dist-info/WHEEL +4 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/packaging/__init__.py +15 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/packaging/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/packaging/__pycache__/_elffile.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/packaging/__pycache__/_manylinux.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/packaging/__pycache__/_musllinux.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/packaging/__pycache__/_parser.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/packaging/__pycache__/_structures.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/packaging/__pycache__/_tokenizer.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/packaging/__pycache__/markers.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/packaging/__pycache__/metadata.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/packaging/__pycache__/requirements.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/packaging/__pycache__/specifiers.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/packaging/__pycache__/tags.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/packaging/__pycache__/utils.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/packaging/__pycache__/version.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/packaging/_elffile.py +110 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/packaging/_manylinux.py +262 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/packaging/_musllinux.py +85 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/packaging/_parser.py +354 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/packaging/_structures.py +61 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/packaging/_tokenizer.py +194 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/packaging/markers.py +325 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/packaging/metadata.py +804 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/packaging/py.typed +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/packaging/requirements.py +91 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/packaging/specifiers.py +1009 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/packaging/tags.py +568 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/packaging/utils.py +174 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/packaging/version.py +563 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/packaging-24.1.dist-info/INSTALLER +1 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/packaging-24.1.dist-info/LICENSE +3 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/packaging-24.1.dist-info/LICENSE.APACHE +177 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/packaging-24.1.dist-info/LICENSE.BSD +23 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/packaging-24.1.dist-info/METADATA +102 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/packaging-24.1.dist-info/RECORD +37 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/packaging-24.1.dist-info/REQUESTED +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/packaging-24.1.dist-info/WHEEL +4 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/platformdirs/__init__.py +627 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/platformdirs/__main__.py +55 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/platformdirs/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/platformdirs/__pycache__/__main__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/platformdirs/__pycache__/android.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/platformdirs/__pycache__/api.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/platformdirs/__pycache__/macos.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/platformdirs/__pycache__/unix.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/platformdirs/__pycache__/version.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/platformdirs/__pycache__/windows.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/platformdirs/android.py +249 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/platformdirs/api.py +292 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/platformdirs/macos.py +130 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/platformdirs/py.typed +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/platformdirs/unix.py +275 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/platformdirs/version.py +16 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/platformdirs/windows.py +272 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/platformdirs-4.2.2.dist-info/INSTALLER +1 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/platformdirs-4.2.2.dist-info/METADATA +319 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/platformdirs-4.2.2.dist-info/RECORD +23 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/platformdirs-4.2.2.dist-info/REQUESTED +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/platformdirs-4.2.2.dist-info/WHEEL +4 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/platformdirs-4.2.2.dist-info/licenses/LICENSE +21 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/ruff.toml +1 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/tomli/__init__.py +11 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/tomli/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/tomli/__pycache__/_parser.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/tomli/__pycache__/_re.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/tomli/__pycache__/_types.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/tomli/_parser.py +691 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/tomli/_re.py +107 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/tomli/_types.py +10 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/tomli/py.typed +1 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/tomli-2.0.1.dist-info/INSTALLER +1 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/tomli-2.0.1.dist-info/LICENSE +21 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/tomli-2.0.1.dist-info/METADATA +206 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/tomli-2.0.1.dist-info/RECORD +15 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/tomli-2.0.1.dist-info/REQUESTED +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/tomli-2.0.1.dist-info/WHEEL +4 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/typeguard/__init__.py +48 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/typeguard/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/typeguard/__pycache__/_checkers.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/typeguard/__pycache__/_config.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/typeguard/__pycache__/_decorators.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/typeguard/__pycache__/_exceptions.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/typeguard/__pycache__/_functions.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/typeguard/__pycache__/_importhook.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/typeguard/__pycache__/_memo.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/typeguard/__pycache__/_pytest_plugin.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/typeguard/__pycache__/_suppression.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/typeguard/__pycache__/_transformer.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/typeguard/__pycache__/_union_transformer.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/typeguard/__pycache__/_utils.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/typeguard/_checkers.py +993 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/typeguard/_config.py +108 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/typeguard/_decorators.py +235 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/typeguard/_exceptions.py +42 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/typeguard/_functions.py +308 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/typeguard/_importhook.py +213 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/typeguard/_memo.py +48 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/typeguard/_pytest_plugin.py +127 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/typeguard/_suppression.py +86 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/typeguard/_transformer.py +1229 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/typeguard/_union_transformer.py +55 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/typeguard/_utils.py +173 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/typeguard/py.typed +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/typeguard-4.3.0.dist-info/INSTALLER +1 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/typeguard-4.3.0.dist-info/LICENSE +19 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/typeguard-4.3.0.dist-info/METADATA +81 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/typeguard-4.3.0.dist-info/RECORD +34 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/typeguard-4.3.0.dist-info/WHEEL +5 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/typeguard-4.3.0.dist-info/entry_points.txt +2 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/typeguard-4.3.0.dist-info/top_level.txt +1 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/typing_extensions-4.12.2.dist-info/INSTALLER +1 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/typing_extensions-4.12.2.dist-info/LICENSE +279 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/typing_extensions-4.12.2.dist-info/METADATA +67 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/typing_extensions-4.12.2.dist-info/RECORD +7 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/typing_extensions-4.12.2.dist-info/WHEEL +4 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/typing_extensions.py +3641 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/wheel/__init__.py +3 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/wheel/__main__.py +23 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/wheel/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/wheel/__pycache__/__main__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/wheel/__pycache__/_setuptools_logging.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/wheel/__pycache__/bdist_wheel.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/wheel/__pycache__/macosx_libfile.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/wheel/__pycache__/metadata.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/wheel/__pycache__/util.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/wheel/__pycache__/wheelfile.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/wheel/_setuptools_logging.py +26 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/wheel/bdist_wheel.py +595 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/wheel/cli/__init__.py +155 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/wheel/cli/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/wheel/cli/__pycache__/convert.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/wheel/cli/__pycache__/pack.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/wheel/cli/__pycache__/tags.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/wheel/cli/__pycache__/unpack.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/wheel/cli/convert.py +273 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/wheel/cli/pack.py +85 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/wheel/cli/tags.py +139 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/wheel/cli/unpack.py +30 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/wheel/macosx_libfile.py +469 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/wheel/metadata.py +180 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/wheel/util.py +26 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/wheel/vendored/__init__.py +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/wheel/vendored/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/wheel/vendored/packaging/__init__.py +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/wheel/vendored/packaging/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/wheel/vendored/packaging/__pycache__/_elffile.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/wheel/vendored/packaging/__pycache__/_manylinux.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/wheel/vendored/packaging/__pycache__/_musllinux.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/wheel/vendored/packaging/__pycache__/_parser.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/wheel/vendored/packaging/__pycache__/_structures.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/wheel/vendored/packaging/__pycache__/_tokenizer.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/wheel/vendored/packaging/__pycache__/markers.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/wheel/vendored/packaging/__pycache__/requirements.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/wheel/vendored/packaging/__pycache__/specifiers.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/wheel/vendored/packaging/__pycache__/tags.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/wheel/vendored/packaging/__pycache__/utils.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/wheel/vendored/packaging/__pycache__/version.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/wheel/vendored/packaging/_elffile.py +108 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/wheel/vendored/packaging/_manylinux.py +260 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/wheel/vendored/packaging/_musllinux.py +83 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/wheel/vendored/packaging/_parser.py +356 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/wheel/vendored/packaging/_structures.py +61 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/wheel/vendored/packaging/_tokenizer.py +192 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/wheel/vendored/packaging/markers.py +253 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/wheel/vendored/packaging/requirements.py +90 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/wheel/vendored/packaging/specifiers.py +1011 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/wheel/vendored/packaging/tags.py +571 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/wheel/vendored/packaging/utils.py +172 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/wheel/vendored/packaging/version.py +561 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/wheel/vendored/vendor.txt +1 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/wheel/wheelfile.py +196 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/wheel-0.43.0.dist-info/INSTALLER +1 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/wheel-0.43.0.dist-info/LICENSE.txt +21 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/wheel-0.43.0.dist-info/METADATA +61 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/wheel-0.43.0.dist-info/RECORD +63 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/wheel-0.43.0.dist-info/REQUESTED +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/wheel-0.43.0.dist-info/WHEEL +4 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/wheel-0.43.0.dist-info/entry_points.txt +6 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/zipp/__init__.py +501 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/zipp/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/zipp/__pycache__/glob.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/zipp/compat/__init__.py +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/zipp/compat/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/zipp/compat/__pycache__/py310.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/zipp/compat/py310.py +11 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/zipp/glob.py +106 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/zipp-3.19.2.dist-info/INSTALLER +1 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/zipp-3.19.2.dist-info/LICENSE +17 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/zipp-3.19.2.dist-info/METADATA +102 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/zipp-3.19.2.dist-info/RECORD +15 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/zipp-3.19.2.dist-info/REQUESTED +0 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/zipp-3.19.2.dist-info/WHEEL +5 -0
- package/env/lib/python3.12/site-packages/setuptools/_vendor/zipp-3.19.2.dist-info/top_level.txt +1 -0
- package/env/lib/python3.12/site-packages/setuptools/archive_util.py +217 -0
- package/env/lib/python3.12/site-packages/setuptools/build_meta.py +529 -0
- package/env/lib/python3.12/site-packages/setuptools/cli-32.exe +0 -0
- package/env/lib/python3.12/site-packages/setuptools/cli-64.exe +0 -0
- package/env/lib/python3.12/site-packages/setuptools/cli-arm64.exe +0 -0
- package/env/lib/python3.12/site-packages/setuptools/cli.exe +0 -0
- package/env/lib/python3.12/site-packages/setuptools/command/__init__.py +13 -0
- package/env/lib/python3.12/site-packages/setuptools/command/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/command/__pycache__/_requirestxt.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/command/__pycache__/alias.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/command/__pycache__/bdist_egg.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/command/__pycache__/bdist_rpm.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/command/__pycache__/bdist_wheel.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/command/__pycache__/build.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/command/__pycache__/build_clib.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/command/__pycache__/build_ext.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/command/__pycache__/build_py.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/command/__pycache__/develop.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/command/__pycache__/dist_info.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/command/__pycache__/easy_install.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/command/__pycache__/editable_wheel.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/command/__pycache__/egg_info.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/command/__pycache__/install.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/command/__pycache__/install_egg_info.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/command/__pycache__/install_lib.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/command/__pycache__/install_scripts.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/command/__pycache__/register.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/command/__pycache__/rotate.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/command/__pycache__/saveopts.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/command/__pycache__/sdist.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/command/__pycache__/setopt.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/command/__pycache__/test.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/command/__pycache__/upload.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/command/__pycache__/upload_docs.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/command/_requirestxt.py +131 -0
- package/env/lib/python3.12/site-packages/setuptools/command/alias.py +78 -0
- package/env/lib/python3.12/site-packages/setuptools/command/bdist_egg.py +465 -0
- package/env/lib/python3.12/site-packages/setuptools/command/bdist_rpm.py +42 -0
- package/env/lib/python3.12/site-packages/setuptools/command/bdist_wheel.py +621 -0
- package/env/lib/python3.12/site-packages/setuptools/command/build.py +129 -0
- package/env/lib/python3.12/site-packages/setuptools/command/build_clib.py +108 -0
- package/env/lib/python3.12/site-packages/setuptools/command/build_ext.py +462 -0
- package/env/lib/python3.12/site-packages/setuptools/command/build_py.py +404 -0
- package/env/lib/python3.12/site-packages/setuptools/command/develop.py +195 -0
- package/env/lib/python3.12/site-packages/setuptools/command/dist_info.py +107 -0
- package/env/lib/python3.12/site-packages/setuptools/command/easy_install.py +2364 -0
- package/env/lib/python3.12/site-packages/setuptools/command/editable_wheel.py +899 -0
- package/env/lib/python3.12/site-packages/setuptools/command/egg_info.py +727 -0
- package/env/lib/python3.12/site-packages/setuptools/command/install.py +165 -0
- package/env/lib/python3.12/site-packages/setuptools/command/install_egg_info.py +58 -0
- package/env/lib/python3.12/site-packages/setuptools/command/install_lib.py +134 -0
- package/env/lib/python3.12/site-packages/setuptools/command/install_scripts.py +73 -0
- package/env/lib/python3.12/site-packages/setuptools/command/launcher manifest.xml +15 -0
- package/env/lib/python3.12/site-packages/setuptools/command/register.py +22 -0
- package/env/lib/python3.12/site-packages/setuptools/command/rotate.py +65 -0
- package/env/lib/python3.12/site-packages/setuptools/command/saveopts.py +21 -0
- package/env/lib/python3.12/site-packages/setuptools/command/sdist.py +207 -0
- package/env/lib/python3.12/site-packages/setuptools/command/setopt.py +141 -0
- package/env/lib/python3.12/site-packages/setuptools/command/test.py +42 -0
- package/env/lib/python3.12/site-packages/setuptools/command/upload.py +20 -0
- package/env/lib/python3.12/site-packages/setuptools/command/upload_docs.py +221 -0
- package/env/lib/python3.12/site-packages/setuptools/compat/__init__.py +0 -0
- package/env/lib/python3.12/site-packages/setuptools/compat/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/compat/__pycache__/py310.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/compat/__pycache__/py311.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/compat/__pycache__/py39.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/compat/py310.py +9 -0
- package/env/lib/python3.12/site-packages/setuptools/compat/py311.py +27 -0
- package/env/lib/python3.12/site-packages/setuptools/compat/py39.py +9 -0
- package/env/lib/python3.12/site-packages/setuptools/config/NOTICE +10 -0
- package/env/lib/python3.12/site-packages/setuptools/config/__init__.py +43 -0
- package/env/lib/python3.12/site-packages/setuptools/config/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/config/__pycache__/_apply_pyprojecttoml.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/config/__pycache__/expand.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/config/__pycache__/pyprojecttoml.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/config/__pycache__/setupcfg.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/config/_apply_pyprojecttoml.py +439 -0
- package/env/lib/python3.12/site-packages/setuptools/config/_validate_pyproject/NOTICE +438 -0
- package/env/lib/python3.12/site-packages/setuptools/config/_validate_pyproject/__init__.py +34 -0
- package/env/lib/python3.12/site-packages/setuptools/config/_validate_pyproject/__pycache__/__init__.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/config/_validate_pyproject/__pycache__/error_reporting.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/config/_validate_pyproject/__pycache__/extra_validations.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/config/_validate_pyproject/__pycache__/fastjsonschema_exceptions.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/config/_validate_pyproject/__pycache__/fastjsonschema_validations.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/config/_validate_pyproject/__pycache__/formats.cpython-312.pyc +0 -0
- package/env/lib/python3.12/site-packages/setuptools/config/_validate_pyproject/error_reporting.py +336 -0
- package/env/lib/python3.12/site-packages/setuptools/config/_validate_pyproject/extra_validations.py +52 -0
- package/env/lib/python3.12/site-packages/setuptools/config/_validate_pyproject/fastjsonschema_exceptions.py +51 -0
- package/env/lib/python3.12/site-packages/setuptools/config/_validate_pyproject/fastjsonschema_validations.py +1104 -0
- package/env/lib/python3.12/site-packages/setuptools/config/_validate_pyproject/formats.py +375 -0
- package/env/lib/python3.12/site-packages/setuptools/config/distutils.schema.json +26 -0
- package/env/lib/python3.12/site-packages/setuptools/config/expand.py +436 -0
- package/env/lib/python3.12/site-packages/setuptools/config/pyprojecttoml.py +453 -0
- package/env/lib/python3.12/site-packages/setuptools/config/setupcfg.py +777 -0
- package/env/lib/python3.12/site-packages/setuptools/config/setuptools.schema.json +352 -0
- package/env/lib/python3.12/site-packages/setuptools/depends.py +166 -0
- package/env/lib/python3.12/site-packages/setuptools/discovery.py +607 -0
- package/env/lib/python3.12/site-packages/setuptools/dist.py +953 -0
- package/env/lib/python3.12/site-packages/setuptools/errors.py +65 -0
- package/env/lib/python3.12/site-packages/setuptools/extension.py +163 -0
- package/env/lib/python3.12/site-packages/setuptools/glob.py +165 -0
- package/env/lib/python3.12/site-packages/setuptools/gui-32.exe +0 -0
- package/env/lib/python3.12/site-packages/setuptools/gui-64.exe +0 -0
- package/env/lib/python3.12/site-packages/setuptools/gui-arm64.exe +0 -0
- package/env/lib/python3.12/site-packages/setuptools/gui.exe +0 -0
- package/env/lib/python3.12/site-packages/setuptools/installer.py +145 -0
- package/env/lib/python3.12/site-packages/setuptools/launch.py +36 -0
- package/env/lib/python3.12/site-packages/setuptools/logging.py +40 -0
- package/env/lib/python3.12/site-packages/setuptools/modified.py +8 -0
- package/env/lib/python3.12/site-packages/setuptools/monkey.py +156 -0
- package/env/lib/python3.12/site-packages/setuptools/msvc.py +1748 -0
- package/env/lib/python3.12/site-packages/setuptools/namespaces.py +105 -0
- package/env/lib/python3.12/site-packages/setuptools/package_index.py +1148 -0
- package/env/lib/python3.12/site-packages/setuptools/sandbox.py +514 -0
- package/env/lib/python3.12/site-packages/setuptools/script (dev).tmpl +6 -0
- package/env/lib/python3.12/site-packages/setuptools/script.tmpl +3 -0
- package/env/lib/python3.12/site-packages/setuptools/unicode_utils.py +102 -0
- package/env/lib/python3.12/site-packages/setuptools/version.py +6 -0
- package/env/lib/python3.12/site-packages/setuptools/warnings.py +107 -0
- package/env/lib/python3.12/site-packages/setuptools/wheel.py +236 -0
- package/env/lib/python3.12/site-packages/setuptools/windows_support.py +30 -0
- package/env/lib/python3.12/site-packages/setuptools-73.0.1.dist-info/INSTALLER +1 -0
- package/env/lib/python3.12/site-packages/setuptools-73.0.1.dist-info/LICENSE +17 -0
- package/env/lib/python3.12/site-packages/setuptools-73.0.1.dist-info/METADATA +136 -0
- package/env/lib/python3.12/site-packages/setuptools-73.0.1.dist-info/RECORD +1007 -0
- package/env/lib/python3.12/site-packages/setuptools-73.0.1.dist-info/REQUESTED +0 -0
- package/env/lib/python3.12/site-packages/setuptools-73.0.1.dist-info/WHEEL +5 -0
- package/env/lib/python3.12/site-packages/setuptools-73.0.1.dist-info/entry_points.txt +52 -0
- package/env/lib/python3.12/site-packages/setuptools-73.0.1.dist-info/top_level.txt +3 -0
- package/env/pyvenv.cfg +5 -0
- package/package.json +9 -8
- package/src/stdlib/pyscript/websocket.py +4 -1
- package/src/stdlib/pyscript.js +5 -5
- package/dist/codemirror_view-CT67V3cG.js +0 -2
- package/dist/codemirror_view-CT67V3cG.js.map +0 -1
- package/pyscript-core-0.5.3-rc1.tgz +0 -0
@@ -1,2 +1,2 @@
|
|
1
|
-
const e=(e,t,n=globalThis)=>{const r=Symbol.for(e),s=r in n;return[s?n[r]:Object.defineProperty(n,r,{value:t})[r],s]};Promise.withResolvers||(Promise.withResolvers=function(){var e,t,n=new this((function(n,r){e=n,t=r}));return{resolve:e,reject:t,promise:n}});const t=(e,t=document)=>[...t.querySelectorAll(e)],n=(e,t=document)=>{const n=(new XPathEvaluator).createExpression(e).evaluate(t,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE),r=[];for(let e=0,{snapshotLength:t}=n;e<t;e++)r.push(n.snapshotItem(e));return r},r=Object.getOwnPropertyDescriptors(Response.prototype),s=e=>"function"==typeof e,o={get:(e,t)=>r.hasOwnProperty(t)?((e,t,{get:n,value:r})=>n||!s(r)?e.then((e=>e[t])):(...n)=>e.then((e=>e[t](...n))))(e,t,r[t]):((e,t)=>s(t)?t.bind(e):t)(e,e[t])};var a=(e,...t)=>new Proxy(fetch(e,...t),o);const i=new Proxy(new Map,{get:(e,t)=>(e.has(t)||e.set(t,Promise.withResolvers()),e.get(t))}),l=new Set(["__dict__","constructor","get","has","includes","next","set","then"]),c=new Proxy(Object.freeze({}),{get:(e,t)=>"string"!=typeof t||l.has(t)?void 0:i[t].promise.then((e=>e.sync))}),p="object"==typeof self?self:globalThis,d=e=>((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=s=>{if(e.has(s))return e.get(s);const[o,a]=t[s];switch(o){case 0:case-1:return n(a,s);case 1:{const e=n([],s);for(const t of a)e.push(r(t));return e}case 2:{const e=n({},s);for(const[t,n]of a)e[r(t)]=r(n);return e}case 3:return n(new Date(a),s);case 4:{const{source:e,flags:t}=a;return n(new RegExp(e,t),s)}case 5:{const e=n(new Map,s);for(const[t,n]of a)e.set(r(t),r(n));return e}case 6:{const e=n(new Set,s);for(const t of a)e.add(r(t));return e}case 7:{const{name:e,message:t}=a;return n(new p[e](t),s)}case 8:return n(BigInt(a),s);case"BigInt":return n(Object(BigInt(a)),s)}return n(new p[o](a),s)};return r})(new Map,e)(0),u="",{toString:f}={},{keys:m}=Object,h=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=f.call(e).slice(8,-1);switch(n){case"Array":return[1,u];case"Object":return[2,u];case"Date":return[3,u];case"RegExp":return[4,u];case"Map":return[5,u];case"Set":return[6,u]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},_=([e,t])=>0===e&&("function"===t||"symbol"===t),g=(e,{json:t,lossy:n}={})=>{const r=[];return((e,t,n,r)=>{const s=(e,t)=>{const s=r.push(e)-1;return n.set(t,s),s},o=r=>{if(n.has(r))return n.get(r);let[a,i]=h(r);switch(a){case 0:{let t=r;switch(i){case"bigint":a=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+i);t=null;break;case"undefined":return s([-1],r)}return s([a,t],r)}case 1:{if(i)return s([i,[...r]],r);const e=[],t=s([a,e],r);for(const t of r)e.push(o(t));return t}case 2:{if(i)switch(i){case"BigInt":return s([i,r.toString()],r);case"Boolean":case"Number":case"String":return s([i,r.valueOf()],r)}if(t&&"toJSON"in r)return o(r.toJSON());const n=[],l=s([a,n],r);for(const t of m(r))!e&&_(h(r[t]))||n.push([o(t),o(r[t])]);return l}case 3:return s([a,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return s([a,{source:e,flags:t}],r)}case 5:{const t=[],n=s([a,t],r);for(const[n,s]of r)(e||!_(h(n))&&!_(h(s)))&&t.push([o(n),o(s)]);return n}case 6:{const t=[],n=s([a,t],r);for(const n of r)!e&&_(h(n))||t.push(o(n));return n}}const{message:l}=r;return s([a,{name:i,message:l}],r)};return o})(!(t||n),!!t,new Map,r)(e),r},{parse:y,stringify:w}=JSON,A={json:!0,lossy:!0};var E=Object.freeze({__proto__:null,parse:e=>d(y(e)),stringify:e=>w(g(e,A))});const b="array",v="function",R="null",T="number",k="object",S="string",C="symbol",x="undefined";let j=0;const B=new Map,M=new Map,O=e=>M.get(e),W=e=>{if(!B.has(e)){let t;for(;M.has(t=j++););B.set(e,t),M.set(t,e)}return B.get(e)},{ArrayBuffer:$,Atomics:N,Promise:H}=globalThis,{isArray:L}=Array,{create:P,getPrototypeOf:I,values:U}=Object,D=I(Int32Array),F=P(N),z=()=>H.withResolvers();let q=0;const G=new Map,J=(e,t)=>class extends e{constructor(e,...n){super(e,...n),e instanceof t&&G.set(this,[q++,0,z()])}},Y=new WeakSet,K=e=>(Y.add(e),e),X=(e,t)=>{const{data:n}=e,r=L(n)&&(n.at(0)===t||0===n.at(1)&&!t);return r&&(e.stopImmediatePropagation(),e.preventDefault()),r},V=e=>null!==e&&"object"==typeof e&&!Y.has(e),Z=new WeakMap,Q=(e,t,n)=>{if(G.has(e))t.set(e,G.get(e)[0]);else if(!(e instanceof D||e instanceof $))for(const r of U(e))V(r)&&!n.has(r)&&(n.add(r),Q(r,t,n))},ee=(...e)=>({value:new H((t=>{let n=new Worker("data:application/javascript,onmessage%3De%3D%3EpostMessage(!Atomics.wait(...e.data))");n.onmessage=()=>t("ok"),n.postMessage(e)}))}),te=(e,t,n)=>{for(const[n,r]of t)Z.set(n,[r,e.currentTarget]);(({currentTarget:e,type:t,origin:n,lastEventId:r,source:s,ports:o},a)=>{e.dispatchEvent(new MessageEvent(t,{data:a,origin:n,lastEventId:r,source:s,ports:o}))})(e,n)};let{BigInt64Array:ne,Int32Array:re,SharedArrayBuffer:se,Worker:oe}=globalThis,ae=e=>e,ie=!1;const le=e=>({...e,type:"module"});try{new se(4),oe=class extends oe{constructor(e,t){super(e,le(t))}},F.waitAsync||(F.waitAsync=ee)}catch(e){const t=crypto.randomUUID(),n=new Map,r=(e,t,n,...r)=>{e.addEventListener(t,n,...r)},s=({serviceWorker:e},s,o)=>{let a,i=!0;r(e,"message",(e=>{if(X(e,t)){const[r,s,o]=e.data,i=[s,o].join(","),l=e=>{n.delete(i),a.postMessage([t,s,o,e])},c=n.get(i);if(c)l(c);else{const{promise:e,resolve:t}=z();n.set(i,t),e.then(l)}}})),e.getRegistration(s).then((t=>t??e.register(s))).then((function t(n){i=i&&!!e.controller,a=n.installing||n.waiting||n.active,"activated"===a.state?i?o():location.reload():r(a,"statechange",(()=>t(n)),{once:!0})}))};ae=K,ie=!0,F.notify=(e,r)=>{const[s,o]=(e=>Z.get(e))(e),a=[s,r].join(","),i=n.get(a);return i?i(e):n.set(a,e),o.postMessage([t,1,e,s,r]),0},F.waitAsync=(e,...t)=>{const[n,r]=((e,t)=>{const n=G.get(e),[r,s,{promise:o}]=n;return n[1]=t,[r,o]})(e,...t);return{value:r}},se=class extends ${},ne=J(ne,se),re=J(re,se);let o=null;oe=class extends oe{constructor(e,n){let a=n?.serviceWorker||"";if(a){if(a=new URL(a,location.href).href,n={...n,serviceWorker:a},!o){const{promise:e,resolve:t}=z();s(navigator,a,t),o=e}o.then((()=>super.postMessage([t,3])))}super(e,le(n)),super.postMessage([t,0,n]),r(this,"message",(e=>{if(X(e,t)){const[t,n,...r]=e.data;switch(n){case 1:((e,t,n)=>{for(const[r,[s,o,{resolve:a}]]of G)if(t===s&&n===o){for(let t=0;t<e.length;t++)r[t]=e[t];G.delete(r),a("ok");break}})(...r);break;case 2:te(e,...r)}}}))}postMessage(e,...n){return super.postMessage(((e,t)=>{const n=new Map;return V(t)&&Q(t,n,new Set),n.size?[e,2,n,t]:t})(t,e),...n)}}}const{BYTES_PER_ELEMENT:ce}=Int32Array,{BYTES_PER_ELEMENT:pe}=Uint16Array,{notify:de}=F,ue=new TextDecoder("utf-16"),fe=new WeakSet,me=(...e)=>(fe.add(e),e);let he="";let _e=0;const ge=([e,t,n,r,s,o,a,i,l],c)=>(...p)=>{let d=""!==he,u=0;d&&"="!==he[0]&&"-"!==he[0]&&(u=((e,t)=>setTimeout(console.warn,3e3,`💀🔒 - proxy.${e}() in proxy.${t}()`))(c,he));const f=_e++,m=[];fe.has(p.at(-1)||m)&&fe.delete(m=p.pop());const h=n(i?p.map(i):p);let _=t(2*ce);return a([e,2,c,f,_,h,r],{transfer:m}),l(_,0).value.then((()=>{d&&clearTimeout(u);const n=_[1];if(!n)return;const r=pe*n;return _=t(r+r%ce),a([e,1,f,_]),l(_,0).value.then((()=>{const e=new Uint16Array(_.buffer),t=o?e.subarray(0,n):e.slice(0,n);return s(ue.decode(t))}))}))};var ye=({parse:e,stringify:t,transform:n}=JSON)=>{const r=((e,t)=>async(n,r,[s,o,a,i,l])=>{l&&(he=s);try{const s=await n(...i);if(void 0!==s){const n=e(t?t(s):s);r.set(o,n),a[1]=n.length}}finally{l&&(he=""),a[0]=1,de(a,0)}})(t,n),s=crypto.randomUUID();return{Worker:class extends oe{constructor(t,o){const a=new Map,i=new Map;super(t,o),this.proxy=((e,t)=>new Proxy(t,{get:(t,n)=>{let r;return"then"!==n&&(r=t.get(n),r||(r=ge(e,n),t.set(n,r))),r},set:(e,t,n)=>"then"!==t&&!!e.set(t,n)}))([s,e=>new re(new se(e)),ae,!1,e,ie,(...e)=>this.postMessage(...e),n,F.waitAsync],a),this.postMessage(ae([s,0,o])),this.addEventListener("message",(e=>{if(X(e,s)){const[t,n,...s]=e.data;switch(n){case 2:((e,t,n,r)=>{const[s]=r,o=n.get(s);if(!o)throw new Error(`Unknown proxy.${s}()`);e(o,t,r)})(r,i,a,s);break;case 1:((e,[t,n])=>{const r=e.get(t);e.delete(t);for(let e=new Uint16Array(n.buffer),t=0,{length:s}=r;t<s;t++)e[t]=r.charCodeAt(t);de(n,0)})(i,s)}}}))}},polyfill:ie,transfer:me}},we=Object.fromEntries([b,"bigint","boolean",v,R,T,k,S,C,x].map(((e,t)=>[e,t])));const Ae="ownKeys",Ee="destruct",{[Ae]:be}=Reflect,ve=new Map(be(Symbol).filter((e=>typeof Symbol[e]===C)).map((e=>[Symbol[e],e]))),Re=e=>ve.get(e)||`.${Symbol.keyFor(e)||""}`,Te="960fd6fe-ad03-40d1-a314-e58d84bce14f",ke="="+Te,Se="-"+Te,Ce=new FinalizationRegistry((([e,t,n])=>{n&&console.debug(`%c${String(t)}`,"font-weight:bold","collected"),e(t)})),xe=Object.create(null),je=(e,t,{debug:n,handler:r,return:s,token:o=e}=xe)=>{const a=s||new Proxy(e,r||xe),i=[a,[t,e,!!n]];return!1!==o&&i.push(o),Ce.register(...i),a},{addEventListener:Be}=EventTarget.prototype,Me=new WeakMap;Reflect.defineProperty(EventTarget.prototype,"addEventListener",{value(e,t,...n){const r=n.at(0)?.invoke;if(r){let t=Me.get(this);t||(t=new Map,Me.set(this,t)),t.set(e,[].concat(r)),delete n[0].invoke}return Be.call(this,e,t,...n)}});const{isArray:Oe}=Array;const{url:We}=import.meta,$e=/import\((['"])([^)]+?\.js)\1\)/g,Ne=(e,t,n)=>`import(${t}${new URL(n,We).href}${t})`,{Worker:He}=(e=>{const t=ye(e),n=e=>{const t=typeof e;switch(t){case k:return null===e?[we[R],e]:e===globalThis?[we[k],null]:Oe(e)?[we[b],W(e)]:[we[k],e instanceof D?e:W(e)];case v:return[we[v],W(e)];case C:return[we[C],Re(e)];default:return[we[t],e]}};class r extends t.Worker{constructor(e,t){const{proxy:r}=super(e,t),{[Se]:s}=r,o=new Map,a=e=>{o.delete(e),s(Ee,e)},i=([e,t])=>{switch(e){case we[k]:if(null===t)return globalThis;if(typeof t===T)return O(t);if(!(t instanceof D))for(const e in t)t[e]=i(t[e]);return t;case we[b]:return typeof t===T?O(t):t.map(i);case we[v]:switch(typeof t){case T:return O(t);case S:{let e=o.get(t)?.deref();return e||(e=je(t,a,{token:!1,return:function(...e){return e.length&&e[0]instanceof Event&&(e=>{const{currentTarget:t,target:n,type:r}=e,s=Me.get(t||n)?.get(r);if(s)for(const t of s)e[t]()})(e[0]),s("apply",t,n(this),e.map(n)).then(i)}}),o.set(t,new WeakRef(e))),e}}case we[C]:return(e=>{if(e.startsWith("."))return Symbol.for(e.slice(1));for(const[t,n]of ve)if(n===e)return t})(t);default:return t}};r[ke]=(e,t,...r)=>{if(e===Ee)(e=>{const[t,n]=typeof e===T?[M,B]:[B,M],r=t.has(e);r&&(n.delete(t.get(e)),t.delete(e))})(t);else{const s=Reflect[e],o=null==t?globalThis:O(t);switch(e){case"defineProperty":{const[e,t]=r.map(i);return n(s(o,e,t))}case"getOwnPropertyDescriptor":{const e=s(o,...r.map(i));if(e){const{get:t,set:r,value:s}=e;t&&(e.get=n(t)),r&&(e.set=n(r)),s&&(e.value=n(s))}return[we[e?k:x],e]}case Ae:return[we[b],s(o).map(n)];default:return((e,t,r)=>n(e(t,...r.map(i))))(s,o,r)}}}}}return{...t,Worker:r}})(E);const Le=new WeakMap,Pe=e=>{const t=e||console,n={buffered:Ue,stderr:(t.stderr||console.error).bind(t),stdout:(t.stdout||console.log).bind(t)};return{stderr:(...e)=>n.stderr(...e),stdout:(...e)=>n.stdout(...e),async get(e){const t=await e;return Le.set(t,n),t}}},Ie=new TextDecoder,Ue=(e,t=10)=>{const n=[];return r=>{if(r instanceof Uint8Array)for(const s of r)s===t?e(Ie.decode(new Uint8Array(n.splice(0)))):n.push(s);else e(r)}},De=new Map,Fe=e=>De.get(e),ze=(e,t)=>{try{return Function("require",t)(Fe)}catch(t){Le.get(e).stderr(t)}};var qe={type:"dummy",module:()=>"data:application/javascript,",engine:e=>Pe().get(e),registerJSModule(e,t,n){De.set(t,n)},run:ze,runAsync:ze,runEvent:async(e,t,n)=>{try{await Function("require","e",`return ${t}(e)`)(Fe,n)}catch(t){Le.get(e).stderr(t)}},transform:(e,t)=>t,writeFile(){}};const Ge={object(...e){return this.string(function(e){for(var t=e[0],n=1,r=arguments.length;n<r;n++)t+=arguments[n]+e[n];return t}(...e))},string(e){for(const t of e.split(/[\r\n]+/))if(t.trim().length){/^(\s+)/.test(t)&&(e=e.replace(new RegExp("^"+RegExp.$1,"gm"),""));break}return e}},{replace:Je}="",Ye=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34);/g,Ke={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'},Xe=e=>Ke[e],Ve=(e,...t)=>Ge[typeof e](e,...t),Ze=e=>Je.call(e,Ye,Xe),{isArray:Qe}=Array,{assign:et,create:tt,defineProperties:nt,defineProperty:rt,entries:st}=Object,{all:ot,resolve:at}=new Proxy(Promise,{get:(e,t)=>e[t].bind(e)}),it=(e,t=location.href)=>new URL(e,t.replace(/^blob:/,"")).href;let lt=0;const ct=(e,t)=>({id:e.id||(e.id=`${t}-w${lt++}`),tag:e.tagName}),pt=(e,t,n,r=!1,s=CustomEvent)=>{e.dispatchEvent(new s(`${t}:${n}`,{bubbles:!0,detail:{worker:r}}))},dt=(e,t,n,r)=>({type:t,config:n,interpreter:r,io:Le.get(r),run:(t,...n)=>e.run(r,t,...n),runAsync:(t,...n)=>e.runAsync(r,t,...n),runEvent:(...t)=>e.runEvent(r,...t)}),ut=e=>e.replace(/^(?:\n|\r\n)/,""),ft=(e,t,n,r)=>{const s=e[t].bind(e);e[t]="run"===t?(e,t,...o)=>{n&&s(e,n,...o);const a=s(e,ut(t),...o);return r&&s(e,r,...o),a}:async(e,t,...o)=>{n&&await s(e,n,...o);const a=await s(e,ut(t),...o);return r&&await s(e,r,...o),a}},mt=Symbol.for("polyscript.js_modules"),ht=new Map;rt(globalThis,mt,{value:ht});const _t=new Proxy(ht,{get:(e,t)=>e.get(t),has:(e,t)=>e.has(t),ownKeys:e=>[...e.keys()]}),gt=(e,t)=>!t.startsWith("_"),yt=(e,t)=>new Proxy(e,{has:gt,get:(e,n)=>e[t][n]}),wt=(e,t,n,r)=>{if("pyodide"===e)return;const s="polyscript.js_modules";for(const e of Reflect.ownKeys(r))t.registerJSModule(n,`${s}.${e}`,yt(r,e));t.registerJSModule(n,s,r)},At=(e,t)=>import(e).then((e=>{ht.set(t,{...e})})),Et=e=>new Promise(((t,n)=>{document.querySelector(`link[rel="stylesheet"][href="${e}"]`)?t():document.head.append(et(document.createElement("link"),{rel:"stylesheet",href:e,onload:t,onerror:n}))})),bt=e=>/\.css$/i.test(new URL(e).pathname),vt=e=>/^(?:false|0|no)$/i.test(e.getAttribute("async")),Rt=!globalThis.window,Tt=({FS:e,PATH:t,PATH_FS:n},r,s)=>{const o=n.resolve(r),a=t.dirname(o);return e.mkdirTree?e.mkdirTree(a):St(e,a),e.writeFile(o,new Uint8Array(s),{canOwn:!0})},kt=e=>{const t=e.split("/");return t.pop(),t.join("/")},St=(e,t)=>{const n=[];for(const r of t.split("/"))"."!==r&&".."!==r&&(n.push(r),r&&e.mkdir(n.join("/")))},Ct=(e,t)=>{const n=[];for(const e of t.split("/"))switch(e){case"":case".":break;case"..":n.pop();break;default:n.push(e)}return[e.cwd()].concat(n).join("/").replace(/^\/+/,"/")},xt=e=>{const t=e.map((e=>e.trim().replace(/(^[/]*|[/]*$)/g,""))).filter((e=>""!==e&&"."!==e)).join("/");return e[0].startsWith("/")?`/${t}`:t},jt=(e,t)=>a(it(e,t)).arrayBuffer(),Bt=(e,t,n,r)=>ot((e=>{for(const{files:t,to_file:n,from:r=""}of e){if(void 0!==t&&void 0!==n)throw new Error("Cannot use 'to_file' and 'files' parameters together!");if(void 0===t&&void 0===n&&r.endsWith("/"))throw new Error(`Couldn't determine the filename from the path ${r}, please supply 'to_file' parameter.`)}return e.flatMap((({from:e="",to_folder:t=".",to_file:n,files:r})=>{if(Qe(r))return r.map((n=>({url:xt([e,n]),path:xt([t,n])})));const s=n||e.slice(1+e.lastIndexOf("/"));return[{url:e,path:xt([t,s])}]}))})(n).map((({url:n,path:s})=>jt(n,r).then((n=>e.writeFile(t,s,n)))))),Mt=(e,t)=>t.endsWith("/")?`${t}${e.split("/").pop()}`:t,Ot=(e,t)=>e.replace(/\{.+?\}/g,(e=>{if(!t.has(e))throw new SyntaxError(`Invalid template: ${e}`);return t.get(e)})),Wt=(e,t,n,r)=>ot((e=>{const t=new Map,n=new Set,r=[];for(const[s,o]of st(e))if(/^\{.+\}$/.test(s)){if(t.has(s))throw new SyntaxError(`Duplicated template: ${s}`);t.set(s,Ot(o,t))}else{const e=Ot(s,t),a=Mt(e,Ot(o||"./",t));if(n.has(a))throw new SyntaxError(`Duplicated destination: ${a}`);n.add(a),r.push({url:e,path:a})}return r})(n).map((({url:n,path:s})=>jt(n,r).then((r=>e.writeFile(t,s,r,n)))))),$t=({main:e,worker:t},n)=>{const r=[];if(t&&Rt)for(let[e,s]of st(t))e=it(e,n),r.push(At(e,s));if(e&&!Rt)for(let[t,s]of st(e))t=it(t,n),bt(t)?Et(t):r.push(At(t,s));return ot(r)},{assign:Nt}=Object,Ht="entries",Lt="readonly",Pt="readwrite",It={durability:"default",prefix:"IDBMap"},Ut=({target:{result:e}})=>e;class Dt extends EventTarget{#e;#t;#n;async#r(e,t){const n=(await this.#e).transaction(Ht,t,this.#t);return new Promise(((t,r)=>Nt(e(n.objectStore(Ht)),{onsuccess:t,onerror:r})))}constructor(e,{durability:t=It.durability,prefix:n=It.prefix}=It){super(),this.#n=n,this.#t={durability:t},this.#e=new Promise(((t,n)=>{Nt(indexedDB.open(`${this.#n}/${e}`),{onupgradeneeded({target:{result:e,transaction:n}}){e.objectStoreNames.length||e.createObjectStore(Ht),n.oncomplete=()=>t(e)},onsuccess(e){t(Ut(e))},onerror(e){n(e),this.dispatchEvent(e)}})})).then((e=>{const t=this.dispatchEvent.bind(this);for(const n in e)n.startsWith("on")&&(e[n]=t);return e}))}dispatchEvent(e){const{type:t,message:n,isTrusted:r}=e;return super.dispatchEvent(r?Nt(new Event(t),{message:n}):e)}async close(){(await this.#e).close()}get size(){return this.#r((e=>e.count()),Lt).then(Ut)}async clear(){await this.#r((e=>e.clear()),Pt)}async delete(e){await this.#r((t=>t.delete(e)),Pt)}async entries(){const e=await this.keys();return Promise.all(e.map((e=>this.get(e).then((t=>[e,t])))))}async forEach(e,t=this){for(const[n,r]of await this.entries())await e.call(t,r,n,this)}async get(e){return await this.#r((t=>t.get(e)),Lt).then(Ut)}async has(e){return void 0!==await this.#r((t=>t.getKey(e)),Lt).then(Ut)}async keys(){return await this.#r((e=>e.getAllKeys()),Lt).then(Ut)}async set(e,t){return await this.#r((n=>n.put(t,e)),Pt),this}async values(){const e=await this.keys();return Promise.all(e.map((e=>this.get(e))))}get[Symbol.toStringTag](){return this.#n}}class Ft extends Map{#s;#o;constructor(...e){super(),this.#s=new Dt(...e),this.#o=this.#s.entries().then((e=>{for(const[t,n]of e)super.set(t,n)}))}async sync(){await this.#o}clear(){return this.#o=this.#o.then((()=>this.#s.clear())),super.clear()}delete(e){return this.#o=this.#o.then((()=>this.#s.delete(e))),super.delete(e)}set(e,t){return this.#o=this.#o.then((()=>this.#s.set(e,t))),super.set(e,t)}}const zt=new WeakMap,qt=(e,t,n)=>{"polyscript"===t&&(n.lazy_py_modules=async(...t)=>(await zt.get(e)(t),t.map((t=>e.pyimport(t)))),n.storage=async e=>{const t=new Ft(e);return await t.sync(),t},n.JSON=E),e.registerJsModule(t,n)},Gt=(e,t)=>{if(e.endsWith("/*")){if(/\.(zip|whl|tgz|tar(?:\.gz)?)$/.test(t))return RegExp.$1;throw new Error(`Unsupported archive ${t}`)}return""},Jt=(e,t,...n)=>{try{return e.runPython(Ve(t),...n)}catch(t){Le.get(e).stderr(t)}},Yt=async(e,t,...n)=>{try{return await e.runPythonAsync(Ve(t),...n)}catch(t){Le.get(e).stderr(t)}},Kt=async(e,t,n)=>{const[r,...s]=t.split(".");let o,a=e.globals.get(r);for(const e of s)[o,a]=[a,a[e]];try{await a.call(o,n)}catch(t){Le.get(e).stderr(t)}};var Xt=(new TextEncoder).encode('from uio import StringIO\nimport sys\n\nclass Response:\n def __init__(self, f):\n self.raw = f\n self.encoding = "utf-8"\n self._cached = None\n\n def close(self):\n if self.raw:\n self.raw.close()\n self.raw = None\n self._cached = None\n\n @property\n def content(self):\n if self._cached is None:\n try:\n self._cached = self.raw.read()\n finally:\n self.raw.close()\n self.raw = None\n return self._cached\n\n @property\n def text(self):\n return str(self.content, self.encoding)\n\n def json(self):\n import ujson\n\n return ujson.loads(self.content)\n\n\n# TODO try to support streaming xhr requests, a-la pyodide-http\nHEADERS_TO_IGNORE = ("user-agent",)\n\n\ntry:\n import js\nexcept Exception as err:\n raise OSError("This version of urequests can only be used in the browser")\n\n# TODO try to support streaming xhr requests, a-la pyodide-http\n\nHEADERS_TO_IGNORE = ("user-agent",)\n\n\ndef request(\n method,\n url,\n data=None,\n json=None,\n headers={},\n stream=None,\n auth=None,\n timeout=None,\n parse_headers=True,\n):\n from js import XMLHttpRequest\n\n xhr = XMLHttpRequest.new()\n xhr.withCredentials = False\n\n if auth is not None:\n import ubinascii\n\n username, password = auth\n xhr.open(method, url, False, username, password)\n else:\n xhr.open(method, url, False)\n\n for name, value in headers.items():\n if name.lower() not in HEADERS_TO_IGNORE:\n xhr.setRequestHeader(name, value)\n\n if timeout:\n xhr.timeout = int(timeout * 1000)\n\n if json is not None:\n assert data is None\n import ujson\n\n data = ujson.dumps(json)\n # s.write(b"Content-Type: application/json\\r\\n")\n xhr.setRequestHeader("Content-Type", "application/json")\n\n xhr.send(data)\n\n # Emulates the construction process in the original urequests\n resp = Response(StringIO(xhr.responseText))\n resp.status_code = xhr.status\n resp.reason = xhr.statusText\n resp.headers = xhr.getAllResponseHeaders()\n\n return resp\n\n\n# Other methods - head, post, put, patch, delete - are not used by\n# mip and therefore not included\n\n\ndef get(url, **kw):\n return request("GET", url, **kw)\n\n\n# Content below this line is from the Micropython MIP package and is covered\n# by the applicable MIT license:\n# \n# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, \n# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER \n# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING \n# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER \n# DEALINGS IN THE SOFTWARE.\n\n# MicroPython package installer\n# MIT license; Copyright (c) 2022 Jim Mussared\n\n\n_PACKAGE_INDEX = const("https://micropython.org/pi/v2")\n_CHUNK_SIZE = 128\n\n\n# This implements os.makedirs(os.dirname(path))\ndef _ensure_path_exists(path):\n import os\n\n split = path.split("/")\n\n # Handle paths starting with "/".\n if not split[0]:\n split.pop(0)\n split[0] = "/" + split[0]\n\n prefix = ""\n for i in range(len(split) - 1):\n prefix += split[i]\n try:\n os.stat(prefix)\n except:\n os.mkdir(prefix)\n prefix += "/"\n\n\n# Copy from src (stream) to dest (function-taking-bytes)\ndef _chunk(src, dest):\n buf = memoryview(bytearray(_CHUNK_SIZE))\n while True:\n n = src.readinto(buf)\n if n == 0:\n break\n dest(buf if n == _CHUNK_SIZE else buf[:n])\n\n\n# Check if the specified path exists and matches the hash.\ndef _check_exists(path, short_hash):\n import os\n\n try:\n import binascii\n import hashlib\n\n with open(path, "rb") as f:\n hs256 = hashlib.sha256()\n _chunk(f, hs256.update)\n existing_hash = str(binascii.hexlify(hs256.digest())[: len(short_hash)], "utf-8")\n return existing_hash == short_hash\n except:\n return False\n\n\ndef _rewrite_url(url, branch=None):\n if not branch:\n branch = "HEAD"\n if url.startswith("github:"):\n url = url[7:].split("/")\n url = (\n "https://raw.githubusercontent.com/"\n + url[0]\n + "/"\n + url[1]\n + "/"\n + branch\n + "/"\n + "/".join(url[2:])\n )\n return url\n\n\ndef _download_file(url, dest):\n response = get(url)\n try:\n if response.status_code != 200:\n print("Error", response.status_code, "requesting", url)\n return False\n\n print("Copying:", dest)\n _ensure_path_exists(dest)\n with open(dest, "wb") as f:\n _chunk(response.raw, f.write)\n\n return True\n finally:\n response.close()\n\n\ndef _install_json(package_json_url, index, target, version, mpy):\n response = get(_rewrite_url(package_json_url, version))\n try:\n if response.status_code != 200:\n print("Package not found:", package_json_url)\n return False\n\n package_json = response.json()\n finally:\n response.close()\n for target_path, short_hash in package_json.get("hashes", ()):\n fs_target_path = target + "/" + target_path\n if _check_exists(fs_target_path, short_hash):\n print("Exists:", fs_target_path)\n else:\n file_url = "{}/file/{}/{}".format(index, short_hash[:2], short_hash)\n if not _download_file(file_url, fs_target_path):\n print("File not found: {} {}".format(target_path, short_hash))\n return False\n for target_path, url in package_json.get("urls", ()):\n fs_target_path = target + "/" + target_path\n if not _download_file(_rewrite_url(url, version), fs_target_path):\n print("File not found: {} {}".format(target_path, url))\n return False\n for dep, dep_version in package_json.get("deps", ()):\n if not _install_package(dep, index, target, dep_version, mpy):\n return False\n return True\n\n\ndef _install_package(package, index, target, version, mpy):\n if (\n package.startswith("http://")\n or package.startswith("https://")\n or package.startswith("github:")\n ):\n if package.endswith(".py") or package.endswith(".mpy"):\n print("Downloading {} to {}".format(package, target))\n return _download_file(\n _rewrite_url(package, version), target + "/" + package.rsplit("/")[-1]\n )\n else:\n if not package.endswith(".json"):\n if not package.endswith("/"):\n package += "/"\n package += "package.json"\n print("Installing {} to {}".format(package, target))\n else:\n if not version:\n version = "latest"\n print("Installing {} ({}) from {} to {}".format(package, version, index, target))\n\n mpy_version = (\n sys.implementation._mpy & 0xFF if mpy and hasattr(sys.implementation, "_mpy") else "py"\n )\n\n # WARNING: mpy_version fails miserably with 1.22.0-380\n package = "{}/package/{}/{}/{}.json".format(index, "py", package, version)\n\n return _install_json(package, index, target, version, mpy)\n\n\ndef install(package, index=None, target=None, version=None, mpy=True):\n if not target:\n for p in sys.path:\n if p.endswith("/lib"):\n target = p\n break\n else:\n print("Unable to find lib dir in sys.path")\n return\n\n if not index:\n index = _PACKAGE_INDEX\n\n if _install_package(package, index.rstrip("/"), target, version, mpy):\n print("Done")\n else:\n print("Package may be partially installed")\n');const Vt=async e=>(await import("./toml-DiUM0_qs.js")).parse(e),Zt=(e,t)=>{try{e.mkdir(t)}catch(e){}};var Qt={type:"micropython",module:(e="1.24.0-preview-114")=>`https://cdn.jsdelivr.net/npm/@micropython/micropython-webassembly-pyscript@${e}/micropython.mjs`,async engine({loadMicroPython:e},t,n,r){const{stderr:s,stdout:o,get:a}=Pe({stderr:Ue(console.error),stdout:Ue(console.log)});n=n.replace(/\.m?js$/,".wasm");const i=await a(e({linebuffer:!1,stderr:s,stdout:o,url:n})),l=en.bind(this,i,r);return zt.set(i,l),t.files&&await Wt(this,i,t.files,r),t.fetch&&await Bt(this,i,t.fetch,r),t.js_modules&&await $t(t.js_modules,r),this.writeFile(i,"./mip.py",Xt),t.packages&&await l(t.packages),i},registerJSModule:qt,run:Jt,runAsync:Yt,runEvent:Kt,transform:(e,t)=>e.PyProxy.toJs(t),writeFile:(e,t,n,r)=>{const{FS:s,_module:{PATH:o,PATH_FS:a}}=e,i={FS:s,PATH:o,PATH_FS:a},l=Gt(t,r);if(l){const r=t.slice(0,-1);switch("./"!==r&&s.mkdir(r),l){case"whl":case"zip":{const e=new Blob([n],{type:"application/zip"});return import("./zip-C10rja2G.js").then((async({BlobReader:t,Uint8ArrayWriter:n,ZipReader:a})=>{const i=new a(new t(e));for(const e of await i.getEntries()){const{directory:t,filename:a}=e,i=r+a;if(t)Zt(s,i);else{Zt(s,o.dirname(i));const t=await e.getData(new n);s.writeFile(i,t,{canOwn:!0})}}i.close()}))}case"tgz":case"tar.gz":{const t="./_.tar.gz";return Tt(i,t,n),void e.runPython(`\n import os, gzip, tarfile\n tar = tarfile.TarFile(fileobj=gzip.GzipFile(fileobj=open("${t}", "rb")))\n for f in tar:\n name = f"${r}{f.name}"\n if f.type == tarfile.DIRTYPE:\n if f.name != "./":\n os.mkdir(name.strip("/"))\n else:\n dir = os.path.dirname(name)\n if not os.path.exists(dir):\n os.mkdir(dir)\n source = tar.extractfile(f)\n with open(name, "wb") as dest:\n dest.write(source.read())\n dest.close()\n tar.close()\n os.remove("${t}")\n `)}}}return Tt(i,t,n)}};async function en(e,t,n){let r;for(const s of n)if(s.endsWith(".whl")){const n=it(s,t),r=await a(n).arrayBuffer();await this.writeFile(e,"./*",r,n)}else r||(r=e.pyimport("mip")),r.install(s)}const tn={dict_converter:Object.fromEntries};let nn=!1;const rn=e=>(...t)=>{try{return nn=!0,e(...t)}finally{nn=!1}};let sn=!1;const on=()=>{if(sn)return;sn=!0;const e=new WeakMap,t=e=>e.destroy(),n=n=>{for(let r=0;r<n.length;r++){const s=n[r];if("function"==typeof s&&"copy"in s){nn=!1;let o=e.get(s)?.deref();if(!o)try{o=je(s.copy(),t),e.set(s,new WeakRef(o))}catch(e){console.error(e)}o&&(n[r]=o),nn=!0}}},{call:r}=Function,s=r.bind(r,r.apply);Object.defineProperties(Function.prototype,{apply:{value(e,t){return nn&&n(t),s(this,e,t)}},call:{value(e,...t){return nn&&n(t),s(this,e,t)}}})};var an={type:"pyodide",module:(e="0.26.2")=>`https://cdn.jsdelivr.net/pyodide/v${e}/full/pyodide.mjs`,async engine({loadPyodide:e},t,n,r){Rt||"auto"!==t.experimental_create_proxy||on();const{stderr:s,stdout:o,get:a}=Pe(),i=n.slice(0,n.lastIndexOf("/")),l=await a(e({stderr:s,stdout:o,indexURL:i})),c=cn.bind(l);return zt.set(l,c),t.files&&await Wt(this,l,t.files,r),t.fetch&&await Bt(this,l,t.fetch,r),t.js_modules&&await $t(t.js_modules,r),t.packages&&await c(t.packages),l},registerJSModule:qt,run:rn(Jt),runAsync:rn(Yt),runEvent:rn(Kt),transform:(e,t)=>ln.call(e,t),writeFile:(e,t,n,r)=>{const s=Gt(t,r);if(s)return e.unpackArchive(n,s,{extractDir:t.slice(0,-1)});const{FS:o,PATH:a,_module:{PATH_FS:i}}=e;return Tt({FS:o,PATH:a,PATH_FS:i},t,n)}};function ln(e){const{ffi:{PyProxy:t}}=this;if(e&&"object"==typeof e){if(e instanceof t)return e.toJs(tn);if(e instanceof Map)return new Map([...e.entries()]);if(Qe(e))return e.map(ln,this)}return e}async function cn(e){await this.loadPackage("micropip");const t=this.pyimport("micropip");await t.install(e,{keep_going:!0}),t.destroy()}const pn="ruby-wasm-wasi",dn=pn.replace(/\W+/g,"_");var un={type:pn,experimental:!0,module:(e="2.6.2")=>`https://cdn.jsdelivr.net/npm/@ruby/3.2-wasm-wasi@${e}/dist/browser/+esm`,async engine({DefaultRubyVM:e},t,n,r){n=n.replace(/\/browser\/\+esm$/,"/ruby.wasm");const s=await a(n).arrayBuffer(),o=await WebAssembly.compile(s),{vm:i}=await e(o);return t.files&&await Wt(this,i,t.files,r),t.fetch&&await Bt(this,i,t.fetch,r),t.js_modules&&await $t(t.js_modules,r),i},registerJSModule(e,t,n){t=t.replace(/\W+/g,"__");const r=`__module_${dn}_${t}`;globalThis[r]=n,this.run(e,`require "js";$${t}=JS.global[:${r}]`),delete globalThis[r]},run:(e,t,...n)=>e.eval(Ve(t),...n),runAsync:(e,t,...n)=>e.evalAsync(Ve(t),...n),async runEvent(e,t,n){if(/^xworker\.(on\w+)$/.test(t)){const{$1:t}=RegExp,r=`__module_${dn}_event`;globalThis[r]=n,this.run(e,`require "js";$xworker.call("${t}",JS.global[:${r}])`),delete globalThis[r]}else{const r=this.run(e,`method(:${t})`);await r.call(t,e.wrap(n))}},transform:(e,t)=>t,writeFile:()=>{throw new Error(`writeFile is not supported in ${pn}`)}};var fn={type:"wasmoon",module:(e="1.16.0")=>`https://cdn.jsdelivr.net/npm/wasmoon@${e}/+esm`,async engine({LuaFactory:e,LuaLibraries:t},n,r,s){const{stderr:o,stdout:a,get:i}=Pe(),l=await i((new e).createEngine());return l.global.getTable(t.Base,(e=>{l.global.setField(e,"print",a),l.global.setField(e,"printErr",o)})),n.files&&await Wt(this,l,n.files,s),n.fetch&&await Bt(this,l,n.fetch,s),n.js_modules&&await $t(n.js_modules,s),l},registerJSModule:(e,t,n)=>{e.global.set(t,n)},run:(e,t,...n)=>{try{return e.doStringSync(Ve(t),...n)}catch(t){Le.get(e).stderr(t)}},runAsync:async(e,t,...n)=>{try{return await e.doString(Ve(t),...n)}catch(t){Le.get(e).stderr(t)}},runEvent:async(e,t,n)=>{const[r,...s]=t.split(".");let o,a=e.global.get(r);for(const e of s)[o,a]=[a,a[e]];try{await a.call(o,n)}catch(t){Le.get(e).stderr(t)}},transform:(e,t)=>t,writeFile:({cmodule:{module:{FS:e}}},t,n)=>((e,t,n)=>(St(e,kt(t)),t=Ct(e,t),e.writeFile(t,new Uint8Array(n),{canOwn:!0})))(e,t,n)};const mn=new WeakMap,hn=async(e,t)=>{const{shelter:n,destroy:r,io:s}=mn.get(e),{output:o,result:a}=await n.captureR(Ve(t));for(const{type:e,data:t}of o)s[e](t);return je(a,r,{token:!1})};var _n={type:"webr",experimental:!0,module:(e="0.4.0")=>`https://cdn.jsdelivr.net/npm/webr@${e}/dist/webr.mjs`,async engine(e,t,n,r){const{get:s}=Pe(),o=new e.WebR;await s(o.init().then((()=>o)));const a=await new o.Shelter;return mn.set(o,{module:e,shelter:a,destroy:a.destroy.bind(a),io:Le.get(o)}),t.files&&await Wt(this,o,t.files,r),t.fetch&&await Bt(this,o,t.fetch,r),t.js_modules&&await $t(t.js_modules,r),o},registerJSModule(e,t){console.warn(`Experimental interpreter: module ${t} is not supported (yet)`)},run:hn,runAsync:hn,async runEvent(e,t,n){await e.evalRVoid(`${t}(event)`,{env:{event:{type:[n.type]}}})},transform:(e,t)=>(console.log("transforming",t),t),writeFile:()=>{}};const gn=new Map,yn=new Map,wn=[],An=[],En=new Proxy(new Map,{get(e,t){if(!e.has(t)){const[n,...r]=t.split("@"),s=gn.get(n),o=/^(?:\.?\.?\/|https?:\/\/)/i.test(r)?r.join("@"):s.module(...r);e.set(t,{url:o,module:import(o),engine:s.engine.bind(s)})}const{url:n,module:r,engine:s}=e.get(t);return(e,o)=>r.then((r=>(yn.set(t,e),s(r,e,n,o))))}}),bn=e=>{for(const t of[].concat(e.type))gn.set(t,e),wn.push(`script[type="${t}"]`),An.push(`${t}-`)};for(const e of[qe,Qt,an,un,fn,_n])bn(e);const{parse:vn}=JSON,Rn=(e,t="./config.txt")=>{let n=typeof e;return"string"===n&&/\.(json|toml|txt)$/.test(e)?n=RegExp.$1:e=t,[it(e),n]},Tn=e=>{try{return vn(e)}catch(t){return Vt(e)}},kn=(e,t,n,r={})=>{if(t){const[e,s]=Rn(t,n);"json"===s?r=a(e).json():"toml"===s?r=a(e).text().then(Vt):"string"===s?r=Tn(t):"object"===s&&t?r=t:"txt"===s&&"string"==typeof r&&(r=Tn(r)),t=e}return at(r).then((n=>En[e](n,t)))},Sn=(e,t="")=>`${e}@${t}`.replace(/@$/,"");function Cn(e=this){return String(e).replace(/^(async\s*)?(\bfunction\b)?(.*?)\(/,((e,t,n,r)=>r&&!n?`${t||""}function ${r}(`:e))}const xn="BeforeRun",jn="AfterRun",Bn=[`code${xn}`,`code${xn}Async`,`code${jn}`,`code${jn}Async`],Mn=["onWorker","onReady",`on${xn}`,`on${xn}Async`,`on${jn}`,`on${jn}Async`];function On(e,t){const{run:n,runAsync:r}=gn.get(this.type);return{...e,run:n.bind(this,t),runAsync:r.bind(this,t)}}const Wn=(e,t,n,r,s,o)=>{if(s||o){const a=On.bind(e,t),i=r?"runAsync":"run",l=e[i];e[i]=r?async function(e,t,...r){s&&await s.call(this,a(e),n);const i=await l.call(this,e,t,...r);return o&&await o.call(this,a(e),n),i}:function(e,t,...r){s&&s.call(this,a(e),n);const i=l.call(this,e,t,...r);return o&&o.call(this,a(e),n),i}}};let $n=class{constructor(e,t={}){const{main:n,worker:r}=t;this.interpreter=e,this.onWorker=n?.onWorker;for(const e of Mn.slice(1))this[e]=r?.[e];for(const e of Bn)this[e]=r?.[e]}toJSON(){const e={};for(const t of Mn.slice(1))this[t]&&(e[t]=Cn(this[t]));for(const t of Bn)this[t]&&(e[t]=Ve(this[t]()));return e}};var Nn=(...e)=>function(t,n){if(e.length){const[t,r]=e;(n=et({},n||{type:t,version:r})).type||(n.type=t)}const[r]=Rn(n.config,n.configURL),s=((...e)=>new He(URL.createObjectURL(new Blob(['const e="object"==typeof self?self:globalThis,t=t=>((t,n)=>{const r=(e,n)=>(t.set(n,e),e),s=o=>{if(t.has(o))return t.get(o);const[a,i]=n[o];switch(a){case 0:case-1:return r(i,o);case 1:{const e=r([],o);for(const t of i)e.push(s(t));return e}case 2:{const e=r({},o);for(const[t,n]of i)e[s(t)]=s(n);return e}case 3:return r(new Date(i),o);case 4:{const{source:e,flags:t}=i;return r(new RegExp(e,t),o)}case 5:{const e=r(new Map,o);for(const[t,n]of i)e.set(s(t),s(n));return e}case 6:{const e=r(new Set,o);for(const t of i)e.add(s(t));return e}case 7:{const{name:t,message:n}=i;return r(new e[t](n),o)}case 8:return r(BigInt(i),o);case"BigInt":return r(Object(BigInt(i)),o)}return r(new e[a](i),o)};return s})(new Map,t)(0),n="",{toString:r}={},{keys:s}=Object,o=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const s=r.call(e).slice(8,-1);switch(s){case"Array":return[1,n];case"Object":return[2,n];case"Date":return[3,n];case"RegExp":return[4,n];case"Map":return[5,n];case"Set":return[6,n]}return s.includes("Array")?[1,s]:s.includes("Error")?[7,s]:[2,s]},a=([e,t])=>0===e&&("function"===t||"symbol"===t),i=(e,{json:t,lossy:n}={})=>{const r=[];return((e,t,n,r)=>{const i=(e,t)=>{const s=r.push(e)-1;return n.set(t,s),s},c=r=>{if(n.has(r))return n.get(r);let[l,u]=o(r);switch(l){case 0:{let t=r;switch(u){case"bigint":l=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+u);t=null;break;case"undefined":return i([-1],r)}return i([l,t],r)}case 1:{if(u)return i([u,[...r]],r);const e=[],t=i([l,e],r);for(const t of r)e.push(c(t));return t}case 2:{if(u)switch(u){case"BigInt":return i([u,r.toString()],r);case"Boolean":case"Number":case"String":return i([u,r.valueOf()],r)}if(t&&"toJSON"in r)return c(r.toJSON());const n=[],p=i([l,n],r);for(const t of s(r))!e&&a(o(r[t]))||n.push([c(t),c(r[t])]);return p}case 3:return i([l,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return i([l,{source:e,flags:t}],r)}case 5:{const t=[],n=i([l,t],r);for(const[n,s]of r)(e||!a(o(n))&&!a(o(s)))&&t.push([c(n),c(s)]);return n}case 6:{const t=[],n=i([l,t],r);for(const n of r)!e&&a(o(n))||t.push(c(n));return n}}const{message:p}=r;return i([l,{name:u,message:p}],r)};return c})(!(t||n),!!t,new Map,r)(e),r},{parse:c,stringify:l}=JSON,u={json:!0,lossy:!0};var p=Object.freeze({__proto__:null,parse:e=>t(c(e)),stringify:e=>l(i(e,u))});const f="array",d="function",h="null",y="number",g="object",w="symbol",m="undefined",_="apply",b="construct",E="defineProperty",v="deleteProperty",T="get",x="getOwnPropertyDescriptor",k="getPrototypeOf",S="has",O="isExtensible",A="ownKeys",j="preventExtensions",R="set",P="setPrototypeOf";var $=Object.freeze({__proto__:null,APPLY:_,CONSTRUCT:b,DEFINE_PROPERTY:E,DELETE_PROPERTY:v,GET:T,GET_OWN_PROPERTY_DESCRIPTOR:x,GET_PROTOTYPE_OF:k,HAS:S,IS_EXTENSIBLE:O,OWN_KEYS:A,PREVENT_EXTENSION:j,SET:R,SET_PROTOTYPE_OF:P});function I(){return this}const N=new FinalizationRegistry((([e,t,n])=>{n&&console.debug(`Held value ${String(t)} not relevant anymore`),e(t)})),M=Object.create(null),{Object:F,Proxy:H,Reflect:W}=globalThis,{isArray:D}=Array,{ownKeys:C}=W,{create:L,hasOwn:B,values:q}=F,U=(e,t)=>t===f?e[0]:t===d?e():t===g?e.$:e,J=(e,t,n,r)=>{const s={type:{value:t}},o=B(e,"valueOf");for(const a of q($)){let i=r(e[a]||W[a]);if(o&&a===T){const{valueOf:r}=e,{value:s}=i;i={value(e,o,...a){return o===n?r.call(this,U(e,t)):s.call(this,e,o,...a)}}}s[a]=i}return L(e,s)},z=(e,t,n,r=e)=>{if(r===e)switch(typeof e){case g:case m:r||(r=!1);case d:break;default:r=!1,t===e&&(t=F(e))}const s=new H(t,n),{destruct:o}=n;return o?((e,t,{debug:n,handler:r,return:s,token:o=e}=M)=>{const a=s||new Proxy(e,r||M),i=[a,[t,e,!!n]];return!1!==o&&i.push(o),N.register(...i),a})(e,o,{token:r,return:s}):s},G=e=>t=>{const n=typeof t;return n===g?t?e.get(t)?.[0]??(e=>D(e)?f:g)(t):h:n},Y=e=>t=>{let n=typeof t;switch(n){case g:if(!t){n=h;break}case d:const r=e.get(t);r&&([n,t]=r)}return[n,t]},K=e=>((e=>{N.unregister(e)})(e),e);var X=e=>{const t=new WeakMap,n=Symbol(),r={},s=(e,n,r)=>(t.set(e,[n,r]),e),o={proxy:r,release:K,pair:Y(t),typeOf:G(t),isProxy:e=>t.has(e),valueOf:e=>e[n]??e.valueOf()};for(const t of C(e)){if(B(o,t))continue;const a=e[t];switch(t){case f:{const e=J(a,t,n,(e=>({value([t],...n){return e.call(this,t,...n)}})));r[t]=(t,...n)=>s(z(t,[t],e,...n),f,t);break}case d:{const e=J(a,t,n,(e=>({value(t,...n){return e.call(this,t(),...n)}})));r[t]=(t,...n)=>{return s(z(t,(r=t,I.bind(r)),e,...n),d,t);var r};break}case g:{const e=J(a,t,n,(e=>({value({$:t},...n){return e.call(this,t,...n)}})));r[t]=(t,...n)=>s(z(t,{$:t},e,...n),g,t);break}default:{const e=J(a,t,n,(e=>({value:e})));r[t]=(n,...r)=>s(z(n,n,e,...r),t,n);break}}}return o};let V=0;const Z=new Map,Q=new Map,ee=e=>Q.get(e),te=e=>{if(!Z.has(e)){let t;for(;Q.has(t=V++););Z.set(e,t),Q.set(t,e)}return Z.get(e)},{ArrayBuffer:ne,Atomics:re,Promise:se}=globalThis,{isArray:oe}=Array,{create:ae,getPrototypeOf:ie,values:ce}=Object,le=ie(Int32Array),ue=ae(re),pe=({currentTarget:e,type:t,origin:n,lastEventId:r,source:s,ports:o},a)=>e.dispatchEvent(new MessageEvent(t,{data:a,origin:n,lastEventId:r,source:s,ports:o})),fe=()=>se.withResolvers();let de=0;const he=new Map,ye=(e,t)=>class extends e{constructor(e,...n){super(e,...n),e instanceof t&&he.set(this,[de++,0,fe()])}},ge=new WeakSet,we=e=>(ge.add(e),e),me=(e,t)=>{const{data:n}=e,r=oe(n)&&(n.at(0)===t||0===n.at(1)&&!t);return r&&(e.stopImmediatePropagation(),e.preventDefault()),r},_e=e=>null!==e&&"object"==typeof e&&!ge.has(e),be=new WeakMap,Ee=(e,t,n)=>{if(he.has(e))t.set(e,he.get(e)[0]);else if(!(e instanceof le||e instanceof ne))for(const r of ce(e))_e(r)&&!n.has(r)&&(n.add(r),Ee(r,t,n))},ve=(...e)=>({value:new se((t=>{let n=new Worker("data:application/javascript,onmessage%3De%3D%3EpostMessage(!Atomics.wait(...e.data))");n.onmessage=()=>t("ok"),n.postMessage(e)}))}),Te=(e,t)=>{const n=he.get(e),[r,s,{promise:o}]=n;return n[1]=t,[r,o]};let{BigInt64Array:xe,Int32Array:ke,SharedArrayBuffer:Se,addEventListener:Oe,postMessage:Ae}=globalThis,je=!0,Re=e=>e,Pe=!1;const $e=fe();try{new Se(4),ue.waitAsync||(ue.waitAsync=ve),$e.resolve()}catch(e){const t=Ae,n=Oe,r=[];let s="",o="";Se=class extends ne{},xe=ye(xe,Se),ke=ye(ke,Se),Re=we,Pe=!0,ue.notify=(e,n)=>{const[r]=(e=>be.get(e))(e);return t([s,1,e,r,n]),0},ue.waitAsync=(...e)=>{const[t,n]=Te(...e);return{value:n}},ue.wait=(e,t,...n)=>{const[r]=Te(e,t,...n),a=new XMLHttpRequest;a.responseType="json",a.open("POST",`${o}?sabayon`,!1),a.setRequestHeader("Content-Type","application/json"),a.send(`["${s}",${r},${t}]`);const{response:i}=a;he.delete(e);for(let t=0;t<i.length;t++)e[t]=i[t];return"ok"},n("message",(e=>{if(me(e,s)){const[t,n,...r]=e.data;switch(n){case 0:s=t,o=r.at(0)?.serviceWorker||"",o||(ue.wait=null,$e.resolve());break;case 1:((e,t,n)=>{for(const[r,[s,o,{resolve:a}]]of he)if(t===s&&n===o){for(let t=0;t<e.length;t++)r[t]=e[t];he.delete(r),a("ok");break}})(...r);break;case 2:((e,t,n)=>{for(const[n,r]of t)be.set(n,[r,e.currentTarget]);pe(e,n)})(e,...r);break;case 3:$e.resolve()}}else if(je){const{currentTarget:t,type:n,origin:s,lastEventId:o,source:a,ports:i}=e;r.push([{currentTarget:t,type:n,origin:s,lastEventId:o,source:a,ports:i},e.data])}})),Oe=(e,...t)=>{if(n(e,...t),r.length)for(const e of r.splice(0))pe(...e)},Ae=(e,...n)=>t(((e,t)=>{const n=new Map;return _e(t)&&Ee(t,n,new Set),n.size?[e,2,n,t]:t})(s,e),...n)}await $e.promise,je=!1;const{BYTES_PER_ELEMENT:Ie}=Int32Array,{BYTES_PER_ELEMENT:Ne}=Uint16Array,{notify:Me}=ue,Fe=new TextDecoder("utf-16"),He=new WeakSet,We=(...e)=>(He.add(e),e);let De="";const Ce=(e,t,n,r)=>{const[s]=r,o=n.get(s);if(!o)throw new Error(`Unknown proxy.${s}()`);e(o,t,r)};let Le=0;const Be=([e,t,n,r,s,o,a,i,c],l)=>(...u)=>{let p=""!==De,f=0;p&&"="!==De[0]&&"-"!==De[0]&&(f=((e,t)=>setTimeout(console.warn,3e3,`💀🔒 - proxy.${e}() in proxy.${t}()`))(l,De));const d=Le++,h=[];He.has(u.at(-1)||h)&&He.delete(h=u.pop());const y=n(i?u.map(i):u);let g=t(2*Ie);return a([e,2,l,d,g,y,r],{transfer:h}),c(g,0).value.then((()=>{p&&clearTimeout(f);const n=g[1];if(!n)return;const r=Ne*n;return g=t(r+r%Ie),a([e,1,d,g]),c(g,0).value.then((()=>{const e=new Uint16Array(g.buffer),t=o?e.subarray(0,n):e.slice(0,n);return s(Fe.decode(t))}))}))},qe=(e,t)=>new Proxy(t,{get:(t,n)=>{let r;return"then"!==n&&(r=t.get(n),r||(r=Be(e,n),t.set(n,r))),r},set:(e,t,n)=>"then"!==t&&!!e.set(t,n)}),{wait:Ue,waitAsync:Je}=ue;var ze=({parse:e,stringify:t,transform:n,interrupt:r}=JSON)=>{const s=((e,t)=>async(n,r,[s,o,a,i,c])=>{c&&(De=s);try{const s=await n(...i);if(void 0!==s){const n=e(t?t(s):s);r.set(o,n),a[1]=n.length}}finally{c&&(De=""),a[0]=1,Me(a,0)}})(t,n),o=fe(),a=new Map,i=new Map;let c="",l=Ue;if(Ue&&r){const{handler:e,timeout:t=42}=r;l=(n,r,s)=>{for(;"timed-out"===(s=Ue(n,r,0,t));)e();return s}}return Oe("message",(t=>{if(me(t,c)){const[r,u,...p]=t.data;switch(u){case 0:{const t=!!Ue;c=r,o.resolve({polyfill:Pe,sync:t,transfer:We,proxy:qe([c,e=>new ke(new Se(e)),Re,t,e,Pe,Ae,n,t?(...e)=>({value:{then:t=>t(l(...e))}}):Je],a)});break}case 2:a.size?Ce(s,i,a,p):setTimeout(Ce,0,s,i,a,p);break;case 1:((e,[t,n])=>{const r=e.get(t);e.delete(t);for(let e=new Uint16Array(n.buffer),t=0,{length:s}=r;t<s;t++)e[t]=r.charCodeAt(t);Me(n,0)})(i,p)}}})),o.promise},Ge=Object.fromEntries([f,"bigint","boolean",d,h,y,g,"string",w,m].map(((e,t)=>[e,t])));const Ye="destruct",{[A]:Ke}=Reflect,Xe=new Map(Ke(Symbol).filter((e=>typeof Symbol[e]===w)).map((e=>[Symbol[e],e]))),Ve=e=>Xe.get(e)||`.${Symbol.keyFor(e)||""}`,Ze="960fd6fe-ad03-40d1-a314-e58d84bce14f",Qe="="+Ze,et="-"+Ze,{[_]:tt}=Reflect;const nt={object(...e){return this.string(function(e){for(var t=e[0],n=1,r=arguments.length;n<r;n++)t+=arguments[n]+e[n];return t}(...e))},string(e){for(const t of e.split(/[\\r\\n]+/))if(t.trim().length){/^(\\s+)/.test(t)&&(e=e.replace(new RegExp("^"+RegExp.$1,"gm"),""));break}return e}},rt=new WeakMap,st=e=>{const t=e||console,n={buffered:at,stderr:(t.stderr||console.error).bind(t),stdout:(t.stdout||console.log).bind(t)};return{stderr:(...e)=>n.stderr(...e),stdout:(...e)=>n.stdout(...e),async get(e){const t=await e;return rt.set(t,n),t}}},ot=new TextDecoder,at=(e,t=10)=>{const n=[];return r=>{if(r instanceof Uint8Array)for(const s of r)s===t?e(ot.decode(new Uint8Array(n.splice(0)))):n.push(s);else e(r)}},it=(e,...t)=>nt[typeof e](e,...t),{isArray:ct}=Array,{assign:lt,create:ut,defineProperties:pt,defineProperty:ft,entries:dt}=Object,{all:ht,resolve:yt}=new Proxy(Promise,{get:(e,t)=>e[t].bind(e)}),gt=(e,t=location.href)=>new URL(e,t.replace(/^blob:/,"")).href,wt=(e,t,n,r=!1,s=CustomEvent)=>{e.dispatchEvent(new s(`${t}:${n}`,{bubbles:!0,detail:{worker:r}}))},mt=e=>Function(`\'use strict\';return (${e})`)(),_t=e=>e.replace(/^(?:\\n|\\r\\n)/,""),bt=Symbol.for("polyscript.js_modules"),Et=new Map;ft(globalThis,bt,{value:Et}),new Proxy(Et,{get:(e,t)=>e.get(t),has:(e,t)=>e.has(t),ownKeys:e=>[...e.keys()]});const vt=(e,t)=>!t.startsWith("_"),Tt=(e,t)=>new Proxy(e,{has:vt,get:(e,n)=>e[t][n]}),xt=(e,t)=>import(e).then((e=>{Et.set(t,{...e})})),kt=e=>new Promise(((t,n)=>{document.querySelector(`link[rel="stylesheet"][href="${e}"]`)?t():document.head.append(lt(document.createElement("link"),{rel:"stylesheet",href:e,onload:t,onerror:n}))})),St=e=>/\\.css$/i.test(new URL(e).pathname),Ot=(e,t)=>e.has(t),At=e=>[...e.keys()];var jt=(e,t,n,r)=>{const s=globalThis[bt];if(n)for(let[e,t]of dt(n)){let n=s.get(t);n&&!ct(n)||(s.set(t,n||(n=[])),n.push(e))}return((e,t,n,r)=>new Proxy(e,{has:Ot,ownKeys:At,get:(e,s)=>{let o=e.get(s);if(ct(o)){let a=o;o=null;for(let e of a)e=gt(e,r),St(e)?n.importCSS(e):(n.importJS(e,s),o=t[bt].get(s));e.set(s,o)}return o}}))(s,e,t,r)};const Rt=new Map,Pt=e=>Rt.get(e),$t=(e,t)=>{try{return Function("require",t)(Pt)}catch(t){rt.get(e).stderr(t)}};var It={type:"dummy",module:()=>"data:application/javascript,",engine:e=>st().get(e),registerJSModule(e,t,n){Rt.set(t,n)},run:$t,runAsync:$t,runEvent:async(e,t,n)=>{try{await Function("require","e",`return ${t}(e)`)(Pt,n)}catch(t){rt.get(e).stderr(t)}},transform:(e,t)=>t,writeFile(){}};const Nt=Object.getOwnPropertyDescriptors(Response.prototype),Mt=e=>"function"==typeof e,Ft={get:(e,t)=>Nt.hasOwnProperty(t)?((e,t,{get:n,value:r})=>n||!Mt(r)?e.then((e=>e[t])):(...n)=>e.then((e=>e[t](...n))))(e,t,Nt[t]):((e,t)=>Mt(t)?t.bind(e):t)(e,e[t])};var Ht=(e,...t)=>new Proxy(fetch(e,...t),Ft);Promise.withResolvers||(Promise.withResolvers=function(){var e,t,n=new this((function(n,r){e=n,t=r}));return{resolve:e,reject:t,promise:n}});const Wt=!globalThis.window,Dt=({FS:e,PATH:t,PATH_FS:n},r,s)=>{const o=n.resolve(r),a=t.dirname(o);return e.mkdirTree?e.mkdirTree(a):Lt(e,a),e.writeFile(o,new Uint8Array(s),{canOwn:!0})},Ct=e=>{const t=e.split("/");return t.pop(),t.join("/")},Lt=(e,t)=>{const n=[];for(const r of t.split("/"))"."!==r&&".."!==r&&(n.push(r),r&&e.mkdir(n.join("/")))},Bt=(e,t)=>{const n=[];for(const e of t.split("/"))switch(e){case"":case".":break;case"..":n.pop();break;default:n.push(e)}return[e.cwd()].concat(n).join("/").replace(/^\\/+/,"/")},qt=e=>{const t=e.map((e=>e.trim().replace(/(^[/]*|[/]*$)/g,""))).filter((e=>""!==e&&"."!==e)).join("/");return e[0].startsWith("/")?`/${t}`:t},Ut=(e,t)=>Ht(gt(e,t)).arrayBuffer(),Jt=(e,t,n,r)=>ht((e=>{for(const{files:t,to_file:n,from:r=""}of e){if(void 0!==t&&void 0!==n)throw new Error("Cannot use \'to_file\' and \'files\' parameters together!");if(void 0===t&&void 0===n&&r.endsWith("/"))throw new Error(`Couldn\'t determine the filename from the path ${r}, please supply \'to_file\' parameter.`)}return e.flatMap((({from:e="",to_folder:t=".",to_file:n,files:r})=>{if(ct(r))return r.map((n=>({url:qt([e,n]),path:qt([t,n])})));const s=n||e.slice(1+e.lastIndexOf("/"));return[{url:e,path:qt([t,s])}]}))})(n).map((({url:n,path:s})=>Ut(n,r).then((n=>e.writeFile(t,s,n)))))),zt=(e,t)=>t.endsWith("/")?`${t}${e.split("/").pop()}`:t,Gt=(e,t)=>e.replace(/\\{.+?\\}/g,(e=>{if(!t.has(e))throw new SyntaxError(`Invalid template: ${e}`);return t.get(e)})),Yt=(e,t,n,r)=>ht((e=>{const t=new Map,n=new Set,r=[];for(const[s,o]of dt(e))if(/^\\{.+\\}$/.test(s)){if(t.has(s))throw new SyntaxError(`Duplicated template: ${s}`);t.set(s,Gt(o,t))}else{const e=Gt(s,t),a=zt(e,Gt(o||"./",t));if(n.has(a))throw new SyntaxError(`Duplicated destination: ${a}`);n.add(a),r.push({url:e,path:a})}return r})(n).map((({url:n,path:s})=>Ut(n,r).then((r=>e.writeFile(t,s,r,n)))))),Kt=({main:e,worker:t},n)=>{const r=[];if(t&&Wt)for(let[e,s]of dt(t))e=gt(e,n),r.push(xt(e,s));if(e&&!Wt)for(let[t,s]of dt(e))t=gt(t,n),St(t)?kt(t):r.push(xt(t,s));return ht(r)},{assign:Xt}=Object,Vt="entries",Zt="readonly",Qt="readwrite",en={durability:"default",prefix:"IDBMap"},tn=({target:{result:e}})=>e;class nn extends EventTarget{#e;#t;#n;async#r(e,t){const n=(await this.#e).transaction(Vt,t,this.#t);return new Promise(((t,r)=>Xt(e(n.objectStore(Vt)),{onsuccess:t,onerror:r})))}constructor(e,{durability:t=en.durability,prefix:n=en.prefix}=en){super(),this.#n=n,this.#t={durability:t},this.#e=new Promise(((t,n)=>{Xt(indexedDB.open(`${this.#n}/${e}`),{onupgradeneeded({target:{result:e,transaction:n}}){e.objectStoreNames.length||e.createObjectStore(Vt),n.oncomplete=()=>t(e)},onsuccess(e){t(tn(e))},onerror(e){n(e),this.dispatchEvent(e)}})})).then((e=>{const t=this.dispatchEvent.bind(this);for(const n in e)n.startsWith("on")&&(e[n]=t);return e}))}dispatchEvent(e){const{type:t,message:n,isTrusted:r}=e;return super.dispatchEvent(r?Xt(new Event(t),{message:n}):e)}async close(){(await this.#e).close()}get size(){return this.#r((e=>e.count()),Zt).then(tn)}async clear(){await this.#r((e=>e.clear()),Qt)}async delete(e){await this.#r((t=>t.delete(e)),Qt)}async entries(){const e=await this.keys();return Promise.all(e.map((e=>this.get(e).then((t=>[e,t])))))}async forEach(e,t=this){for(const[n,r]of await this.entries())await e.call(t,r,n,this)}async get(e){return await this.#r((t=>t.get(e)),Zt).then(tn)}async has(e){return void 0!==await this.#r((t=>t.getKey(e)),Zt).then(tn)}async keys(){return await this.#r((e=>e.getAllKeys()),Zt).then(tn)}async set(e,t){return await this.#r((n=>n.put(t,e)),Qt),this}async values(){const e=await this.keys();return Promise.all(e.map((e=>this.get(e))))}get[Symbol.toStringTag](){return this.#n}}class rn extends Map{#s;#o;constructor(...e){super(),this.#s=new nn(...e),this.#o=this.#s.entries().then((e=>{for(const[t,n]of e)super.set(t,n)}))}async sync(){await this.#o}clear(){return this.#o=this.#o.then((()=>this.#s.clear())),super.clear()}delete(e){return this.#o=this.#o.then((()=>this.#s.delete(e))),super.delete(e)}set(e,t){return this.#o=this.#o.then((()=>this.#s.set(e,t))),super.set(e,t)}}const sn=new WeakMap,on=(e,t,n)=>{"polyscript"===t&&(n.lazy_py_modules=async(...t)=>(await sn.get(e)(t),t.map((t=>e.pyimport(t)))),n.storage=async e=>{const t=new rn(e);return await t.sync(),t},n.JSON=p),e.registerJsModule(t,n)},an=(e,t)=>{if(e.endsWith("/*")){if(/\\.(zip|whl|tgz|tar(?:\\.gz)?)$/.test(t))return RegExp.$1;throw new Error(`Unsupported archive ${t}`)}return""},cn=(e,t,...n)=>{try{return e.runPython(it(t),...n)}catch(t){rt.get(e).stderr(t)}},ln=async(e,t,...n)=>{try{return await e.runPythonAsync(it(t),...n)}catch(t){rt.get(e).stderr(t)}},un=async(e,t,n)=>{const[r,...s]=t.split(".");let o,a=e.globals.get(r);for(const e of s)[o,a]=[a,a[e]];try{await a.call(o,n)}catch(t){rt.get(e).stderr(t)}};var pn=(new TextEncoder).encode(\'from uio import StringIO\\nimport sys\\n\\nclass Response:\\n def __init__(self, f):\\n self.raw = f\\n self.encoding = "utf-8"\\n self._cached = None\\n\\n def close(self):\\n if self.raw:\\n self.raw.close()\\n self.raw = None\\n self._cached = None\\n\\n @property\\n def content(self):\\n if self._cached is None:\\n try:\\n self._cached = self.raw.read()\\n finally:\\n self.raw.close()\\n self.raw = None\\n return self._cached\\n\\n @property\\n def text(self):\\n return str(self.content, self.encoding)\\n\\n def json(self):\\n import ujson\\n\\n return ujson.loads(self.content)\\n\\n\\n# TODO try to support streaming xhr requests, a-la pyodide-http\\nHEADERS_TO_IGNORE = ("user-agent",)\\n\\n\\ntry:\\n import js\\nexcept Exception as err:\\n raise OSError("This version of urequests can only be used in the browser")\\n\\n# TODO try to support streaming xhr requests, a-la pyodide-http\\n\\nHEADERS_TO_IGNORE = ("user-agent",)\\n\\n\\ndef request(\\n method,\\n url,\\n data=None,\\n json=None,\\n headers={},\\n stream=None,\\n auth=None,\\n timeout=None,\\n parse_headers=True,\\n):\\n from js import XMLHttpRequest\\n\\n xhr = XMLHttpRequest.new()\\n xhr.withCredentials = False\\n\\n if auth is not None:\\n import ubinascii\\n\\n username, password = auth\\n xhr.open(method, url, False, username, password)\\n else:\\n xhr.open(method, url, False)\\n\\n for name, value in headers.items():\\n if name.lower() not in HEADERS_TO_IGNORE:\\n xhr.setRequestHeader(name, value)\\n\\n if timeout:\\n xhr.timeout = int(timeout * 1000)\\n\\n if json is not None:\\n assert data is None\\n import ujson\\n\\n data = ujson.dumps(json)\\n # s.write(b"Content-Type: application/json\\\\r\\\\n")\\n xhr.setRequestHeader("Content-Type", "application/json")\\n\\n xhr.send(data)\\n\\n # Emulates the construction process in the original urequests\\n resp = Response(StringIO(xhr.responseText))\\n resp.status_code = xhr.status\\n resp.reason = xhr.statusText\\n resp.headers = xhr.getAllResponseHeaders()\\n\\n return resp\\n\\n\\n# Other methods - head, post, put, patch, delete - are not used by\\n# mip and therefore not included\\n\\n\\ndef get(url, **kw):\\n return request("GET", url, **kw)\\n\\n\\n# Content below this line is from the Micropython MIP package and is covered\\n# by the applicable MIT license:\\n# \\n# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\\n# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, \\n# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\\n# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER \\n# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING \\n# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER \\n# DEALINGS IN THE SOFTWARE.\\n\\n# MicroPython package installer\\n# MIT license; Copyright (c) 2022 Jim Mussared\\n\\n\\n_PACKAGE_INDEX = const("https://micropython.org/pi/v2")\\n_CHUNK_SIZE = 128\\n\\n\\n# This implements os.makedirs(os.dirname(path))\\ndef _ensure_path_exists(path):\\n import os\\n\\n split = path.split("/")\\n\\n # Handle paths starting with "/".\\n if not split[0]:\\n split.pop(0)\\n split[0] = "/" + split[0]\\n\\n prefix = ""\\n for i in range(len(split) - 1):\\n prefix += split[i]\\n try:\\n os.stat(prefix)\\n except:\\n os.mkdir(prefix)\\n prefix += "/"\\n\\n\\n# Copy from src (stream) to dest (function-taking-bytes)\\ndef _chunk(src, dest):\\n buf = memoryview(bytearray(_CHUNK_SIZE))\\n while True:\\n n = src.readinto(buf)\\n if n == 0:\\n break\\n dest(buf if n == _CHUNK_SIZE else buf[:n])\\n\\n\\n# Check if the specified path exists and matches the hash.\\ndef _check_exists(path, short_hash):\\n import os\\n\\n try:\\n import binascii\\n import hashlib\\n\\n with open(path, "rb") as f:\\n hs256 = hashlib.sha256()\\n _chunk(f, hs256.update)\\n existing_hash = str(binascii.hexlify(hs256.digest())[: len(short_hash)], "utf-8")\\n return existing_hash == short_hash\\n except:\\n return False\\n\\n\\ndef _rewrite_url(url, branch=None):\\n if not branch:\\n branch = "HEAD"\\n if url.startswith("github:"):\\n url = url[7:].split("/")\\n url = (\\n "https://raw.githubusercontent.com/"\\n + url[0]\\n + "/"\\n + url[1]\\n + "/"\\n + branch\\n + "/"\\n + "/".join(url[2:])\\n )\\n return url\\n\\n\\ndef _download_file(url, dest):\\n response = get(url)\\n try:\\n if response.status_code != 200:\\n print("Error", response.status_code, "requesting", url)\\n return False\\n\\n print("Copying:", dest)\\n _ensure_path_exists(dest)\\n with open(dest, "wb") as f:\\n _chunk(response.raw, f.write)\\n\\n return True\\n finally:\\n response.close()\\n\\n\\ndef _install_json(package_json_url, index, target, version, mpy):\\n response = get(_rewrite_url(package_json_url, version))\\n try:\\n if response.status_code != 200:\\n print("Package not found:", package_json_url)\\n return False\\n\\n package_json = response.json()\\n finally:\\n response.close()\\n for target_path, short_hash in package_json.get("hashes", ()):\\n fs_target_path = target + "/" + target_path\\n if _check_exists(fs_target_path, short_hash):\\n print("Exists:", fs_target_path)\\n else:\\n file_url = "{}/file/{}/{}".format(index, short_hash[:2], short_hash)\\n if not _download_file(file_url, fs_target_path):\\n print("File not found: {} {}".format(target_path, short_hash))\\n return False\\n for target_path, url in package_json.get("urls", ()):\\n fs_target_path = target + "/" + target_path\\n if not _download_file(_rewrite_url(url, version), fs_target_path):\\n print("File not found: {} {}".format(target_path, url))\\n return False\\n for dep, dep_version in package_json.get("deps", ()):\\n if not _install_package(dep, index, target, dep_version, mpy):\\n return False\\n return True\\n\\n\\ndef _install_package(package, index, target, version, mpy):\\n if (\\n package.startswith("http://")\\n or package.startswith("https://")\\n or package.startswith("github:")\\n ):\\n if package.endswith(".py") or package.endswith(".mpy"):\\n print("Downloading {} to {}".format(package, target))\\n return _download_file(\\n _rewrite_url(package, version), target + "/" + package.rsplit("/")[-1]\\n )\\n else:\\n if not package.endswith(".json"):\\n if not package.endswith("/"):\\n package += "/"\\n package += "package.json"\\n print("Installing {} to {}".format(package, target))\\n else:\\n if not version:\\n version = "latest"\\n print("Installing {} ({}) from {} to {}".format(package, version, index, target))\\n\\n mpy_version = (\\n sys.implementation._mpy & 0xFF if mpy and hasattr(sys.implementation, "_mpy") else "py"\\n )\\n\\n # WARNING: mpy_version fails miserably with 1.22.0-380\\n package = "{}/package/{}/{}/{}.json".format(index, "py", package, version)\\n\\n return _install_json(package, index, target, version, mpy)\\n\\n\\ndef install(package, index=None, target=None, version=None, mpy=True):\\n if not target:\\n for p in sys.path:\\n if p.endswith("/lib"):\\n target = p\\n break\\n else:\\n print("Unable to find lib dir in sys.path")\\n return\\n\\n if not index:\\n index = _PACKAGE_INDEX\\n\\n if _install_package(package, index.rstrip("/"), target, version, mpy):\\n print("Done")\\n else:\\n print("Package may be partially installed")\\n\');const fn=async e=>(await import("./toml-DiUM0_qs.js")).parse(e),dn=(e,t)=>{try{e.mkdir(t)}catch(e){}};var hn={type:"micropython",module:(e="1.24.0-preview-114")=>`https://cdn.jsdelivr.net/npm/@micropython/micropython-webassembly-pyscript@${e}/micropython.mjs`,async engine({loadMicroPython:e},t,n,r){const{stderr:s,stdout:o,get:a}=st({stderr:at(console.error),stdout:at(console.log)});n=n.replace(/\\.m?js$/,".wasm");const i=await a(e({linebuffer:!1,stderr:s,stdout:o,url:n})),c=yn.bind(this,i,r);return sn.set(i,c),t.files&&await Yt(this,i,t.files,r),t.fetch&&await Jt(this,i,t.fetch,r),t.js_modules&&await Kt(t.js_modules,r),this.writeFile(i,"./mip.py",pn),t.packages&&await c(t.packages),i},registerJSModule:on,run:cn,runAsync:ln,runEvent:un,transform:(e,t)=>e.PyProxy.toJs(t),writeFile:(e,t,n,r)=>{const{FS:s,_module:{PATH:o,PATH_FS:a}}=e,i={FS:s,PATH:o,PATH_FS:a},c=an(t,r);if(c){const r=t.slice(0,-1);switch("./"!==r&&s.mkdir(r),c){case"whl":case"zip":{const e=new Blob([n],{type:"application/zip"});return import("./zip-C10rja2G.js").then((async({BlobReader:t,Uint8ArrayWriter:n,ZipReader:a})=>{const i=new a(new t(e));for(const e of await i.getEntries()){const{directory:t,filename:a}=e,i=r+a;if(t)dn(s,i);else{dn(s,o.dirname(i));const t=await e.getData(new n);s.writeFile(i,t,{canOwn:!0})}}i.close()}))}case"tgz":case"tar.gz":{const t="./_.tar.gz";return Dt(i,t,n),void e.runPython(`\\n import os, gzip, tarfile\\n tar = tarfile.TarFile(fileobj=gzip.GzipFile(fileobj=open("${t}", "rb")))\\n for f in tar:\\n name = f"${r}{f.name}"\\n if f.type == tarfile.DIRTYPE:\\n if f.name != "./":\\n os.mkdir(name.strip("/"))\\n else:\\n dir = os.path.dirname(name)\\n if not os.path.exists(dir):\\n os.mkdir(dir)\\n source = tar.extractfile(f)\\n with open(name, "wb") as dest:\\n dest.write(source.read())\\n dest.close()\\n tar.close()\\n os.remove("${t}")\\n `)}}}return Dt(i,t,n)}};async function yn(e,t,n){let r;for(const s of n)if(s.endsWith(".whl")){const n=gt(s,t),r=await Ht(n).arrayBuffer();await this.writeFile(e,"./*",r,n)}else r||(r=e.pyimport("mip")),r.install(s)}const gn=new FinalizationRegistry((([e,t,n])=>{n&&console.debug(`%c${String(t)}`,"font-weight:bold","collected"),e(t)})),wn=Object.create(null),mn=(e,t,{debug:n,handler:r,return:s,token:o=e}=wn)=>{const a=s||new Proxy(e,r||wn),i=[a,[t,e,!!n]];return!1!==o&&i.push(o),gn.register(...i),a},_n={dict_converter:Object.fromEntries};let bn=!1;const En=e=>(...t)=>{try{return bn=!0,e(...t)}finally{bn=!1}};let vn=!1;const Tn=()=>{if(vn)return;vn=!0;const e=new WeakMap,t=e=>e.destroy(),n=n=>{for(let r=0;r<n.length;r++){const s=n[r];if("function"==typeof s&&"copy"in s){bn=!1;let o=e.get(s)?.deref();if(!o)try{o=mn(s.copy(),t),e.set(s,new WeakRef(o))}catch(e){console.error(e)}o&&(n[r]=o),bn=!0}}},{call:r}=Function,s=r.bind(r,r.apply);Object.defineProperties(Function.prototype,{apply:{value(e,t){return bn&&n(t),s(this,e,t)}},call:{value(e,...t){return bn&&n(t),s(this,e,t)}}})};var xn={type:"pyodide",module:(e="0.26.2")=>`https://cdn.jsdelivr.net/pyodide/v${e}/full/pyodide.mjs`,async engine({loadPyodide:e},t,n,r){Wt||"auto"!==t.experimental_create_proxy||Tn();const{stderr:s,stdout:o,get:a}=st(),i=n.slice(0,n.lastIndexOf("/")),c=await a(e({stderr:s,stdout:o,indexURL:i})),l=Sn.bind(c);return sn.set(c,l),t.files&&await Yt(this,c,t.files,r),t.fetch&&await Jt(this,c,t.fetch,r),t.js_modules&&await Kt(t.js_modules,r),t.packages&&await l(t.packages),c},registerJSModule:on,run:En(cn),runAsync:En(ln),runEvent:En(un),transform:(e,t)=>kn.call(e,t),writeFile:(e,t,n,r)=>{const s=an(t,r);if(s)return e.unpackArchive(n,s,{extractDir:t.slice(0,-1)});const{FS:o,PATH:a,_module:{PATH_FS:i}}=e;return Dt({FS:o,PATH:a,PATH_FS:i},t,n)}};function kn(e){const{ffi:{PyProxy:t}}=this;if(e&&"object"==typeof e){if(e instanceof t)return e.toJs(_n);if(e instanceof Map)return new Map([...e.entries()]);if(ct(e))return e.map(kn,this)}return e}async function Sn(e){await this.loadPackage("micropip");const t=this.pyimport("micropip");await t.install(e,{keep_going:!0}),t.destroy()}const On="ruby-wasm-wasi",An=On.replace(/\\W+/g,"_");var jn={type:On,experimental:!0,module:(e="2.6.2")=>`https://cdn.jsdelivr.net/npm/@ruby/3.2-wasm-wasi@${e}/dist/browser/+esm`,async engine({DefaultRubyVM:e},t,n,r){n=n.replace(/\\/browser\\/\\+esm$/,"/ruby.wasm");const s=await Ht(n).arrayBuffer(),o=await WebAssembly.compile(s),{vm:a}=await e(o);return t.files&&await Yt(this,a,t.files,r),t.fetch&&await Jt(this,a,t.fetch,r),t.js_modules&&await Kt(t.js_modules,r),a},registerJSModule(e,t,n){t=t.replace(/\\W+/g,"__");const r=`__module_${An}_${t}`;globalThis[r]=n,this.run(e,`require "js";$${t}=JS.global[:${r}]`),delete globalThis[r]},run:(e,t,...n)=>e.eval(it(t),...n),runAsync:(e,t,...n)=>e.evalAsync(it(t),...n),async runEvent(e,t,n){if(/^xworker\\.(on\\w+)$/.test(t)){const{$1:t}=RegExp,r=`__module_${An}_event`;globalThis[r]=n,this.run(e,`require "js";$xworker.call("${t}",JS.global[:${r}])`),delete globalThis[r]}else{const r=this.run(e,`method(:${t})`);await r.call(t,e.wrap(n))}},transform:(e,t)=>t,writeFile:()=>{throw new Error(`writeFile is not supported in ${On}`)}};var Rn={type:"wasmoon",module:(e="1.16.0")=>`https://cdn.jsdelivr.net/npm/wasmoon@${e}/+esm`,async engine({LuaFactory:e,LuaLibraries:t},n,r,s){const{stderr:o,stdout:a,get:i}=st(),c=await i((new e).createEngine());return c.global.getTable(t.Base,(e=>{c.global.setField(e,"print",a),c.global.setField(e,"printErr",o)})),n.files&&await Yt(this,c,n.files,s),n.fetch&&await Jt(this,c,n.fetch,s),n.js_modules&&await Kt(n.js_modules,s),c},registerJSModule:(e,t,n)=>{e.global.set(t,n)},run:(e,t,...n)=>{try{return e.doStringSync(it(t),...n)}catch(t){rt.get(e).stderr(t)}},runAsync:async(e,t,...n)=>{try{return await e.doString(it(t),...n)}catch(t){rt.get(e).stderr(t)}},runEvent:async(e,t,n)=>{const[r,...s]=t.split(".");let o,a=e.global.get(r);for(const e of s)[o,a]=[a,a[e]];try{await a.call(o,n)}catch(t){rt.get(e).stderr(t)}},transform:(e,t)=>t,writeFile:({cmodule:{module:{FS:e}}},t,n)=>((e,t,n)=>(Lt(e,Ct(t)),t=Bt(e,t),e.writeFile(t,new Uint8Array(n),{canOwn:!0})))(e,t,n)};const Pn=new WeakMap,$n=async(e,t)=>{const{shelter:n,destroy:r,io:s}=Pn.get(e),{output:o,result:a}=await n.captureR(it(t));for(const{type:e,data:t}of o)s[e](t);return mn(a,r,{token:!1})};var In={type:"webr",experimental:!0,module:(e="0.4.0")=>`https://cdn.jsdelivr.net/npm/webr@${e}/dist/webr.mjs`,async engine(e,t,n,r){const{get:s}=st(),o=new e.WebR;await s(o.init().then((()=>o)));const a=await new o.Shelter;return Pn.set(o,{module:e,shelter:a,destroy:a.destroy.bind(a),io:rt.get(o)}),t.files&&await Yt(this,o,t.files,r),t.fetch&&await Jt(this,o,t.fetch,r),t.js_modules&&await Kt(t.js_modules,r),o},registerJSModule(e,t){console.warn(`Experimental interpreter: module ${t} is not supported (yet)`)},run:$n,runAsync:$n,async runEvent(e,t,n){await e.evalRVoid(`${t}(event)`,{env:{event:{type:[n.type]}}})},transform:(e,t)=>(console.log("transforming",t),t),writeFile:()=>{}};const Nn=new Map,Mn=new Map,Fn=new Proxy(new Map,{get(e,t){if(!e.has(t)){const[n,...r]=t.split("@"),s=Nn.get(n),o=/^(?:\\.?\\.?\\/|https?:\\/\\/)/i.test(r)?r.join("@"):s.module(...r);e.set(t,{url:o,module:import(o),engine:s.engine.bind(s)})}const{url:n,module:r,engine:s}=e.get(t);return(e,o)=>r.then((r=>(Mn.set(t,e),s(r,e,n,o))))}}),Hn=e=>{for(const t of[].concat(e.type))Nn.set(t,e)};for(const e of[It,hn,xn,jn,Rn,In])Hn(e);const{parse:Wn}=JSON,Dn=e=>{try{return Wn(e)}catch(t){return fn(e)}},Cn=(e,t,n,r={})=>{if(t){const[e,s]=((e,t="./config.txt")=>{let n=typeof e;return"string"===n&&/\\.(json|toml|txt)$/.test(e)?n=RegExp.$1:e=t,[gt(e),n]})(t,n);"json"===s?r=Ht(e).json():"toml"===s?r=Ht(e).text().then(fn):"string"===s?r=Dn(t):"object"===s&&t?r=t:"txt"===s&&"string"==typeof r&&(r=Dn(r)),t=e}return yt(r).then((n=>Fn[e](n,t)))},Ln="BeforeRun",Bn="AfterRun",qn=[`code${Ln}`,`code${Ln}Async`,`code${Bn}`,`code${Bn}Async`],Un=["onWorker","onReady",`on${Ln}`,`on${Ln}Async`,`on${Bn}`,`on${Bn}Async`];function Jn(e,t){const{run:n,runAsync:r}=Nn.get(this.type);return{...e,run:n.bind(this,t),runAsync:r.bind(this,t)}}const zn=(e,t,n,r,s,o)=>{if(s||o){const a=Jn.bind(e,t),i=r?"runAsync":"run",c=e[i];e[i]=r?async function(e,t,...r){s&&await s.call(this,a(e),n);const i=await c.call(this,e,t,...r);return o&&await o.call(this,a(e),n),i}:function(e,t,...r){s&&s.call(this,a(e),n);const i=c.call(this,e,t,...r);return o&&o.call(this,a(e),n),i}}};let Gn,Yn,Kn;const Xn=(e,t)=>{addEventListener(e,t||(async t=>{try{await Gn,Yn(`xworker.on${e}`,t)}catch(e){postMessage(e)}}),!!t&&{once:!0})},{parse:Vn,stringify:Zn}=p,{proxy:Qn,sync:er,polyfill:tr,window:nr,isWindowProxy:rr}=await(async e=>{const t=await ze(e),n=e?.transform||(e=>e),{[Qe]:r}=t.proxy,s=new Map,o=(e,t)=>{let n=s.get(e)?.deref();return n||s.set(e,new WeakRef(n=t(e))),n},a=([e,t])=>{switch(e){case Ge[g]:return null==t?globalThis:typeof t===y?o(t,p.object):t;case Ge[f]:return typeof t===y?o(t,p.array):t;case Ge[d]:return typeof t===y?o(t,p.function):ee(parseInt(t));case Ge[w]:return(e=>{if(e.startsWith("."))return Symbol.for(e.slice(1));for(const[t,n]of Xe)if(n===e)return t})(t);default:return t}},i=e=>{let[t,r]=m(e);switch(t){case g:if(r==globalThis||null==r)r=null;else if(typeof r===g&&!(r instanceof le)){r=n(r);for(const e in r)r[e]=i(r[e])}return[Ge[g],r];case f:return[Ge[f],typeof r===y?r:n(r).map(i)];case d:return[Ge[d],typeof r===d?String(te(n(r))):r];case w:return[Ge[w],Ve(e)];default:return[Ge[t],r]}},c=(...e)=>a(r(...e)),l={[E]:(e,t,n)=>c(E,e,i(t),i(n)),[v]:(e,t)=>c(v,e,i(t)),[T]:(e,t)=>c(T,e,i(t)),[k]:e=>c(k,e),[x]:(e,t)=>{const n=c(x,e,i(t));if(n){const{get:e,set:t,value:r}=n;e&&(n.get=a(e)),t&&(n.set=a(t)),r&&(n.value=a(r))}return n},[S]:(e,t)=>c(S,e,i(t)),[O]:e=>c(O,e),[A]:e=>c(A,e).map(a),[j]:e=>c(j,e),[R]:(e,t,n)=>c(R,e,i(t),i(n)),[P]:(e,t)=>c(P,e,i(t)),[Ye](e){s.delete(e),r(Ye,e)}},u={object:l,array:l,function:{...l,[_]:(e,...t)=>c(_,e,...t.map(i)),[b]:(e,...t)=>c(b,e,...t.map(i))}},{proxy:p,isProxy:h,pair:m}=X(u),$=p.object(null);return t.proxy[et]=async(e,t,...n)=>{const r=parseInt(t);switch(e){case _:{const[e,t]=n;return i(await tt(ee(r),a(e),t.map(a)))}case Ye:(e=>{const[t,n]=typeof e===y?[Q,Z]:[Z,Q],r=t.has(e);r&&(n.delete(t.get(e)),t.delete(e))})(r)}},{...t,window:$,isWindowProxy:h}})({parse:Vn,stringify:Zn,transform:e=>Kn?Kn(e):e}),sr={polyfill:tr,sync:Qn,window:er?nr:null,isWindowProxy:rr,onmessage:console.info,onerror:console.error,onmessageerror:console.warn,postMessage:postMessage.bind(self)};Xn("message",(({data:{options:e,config:t,configURL:n,code:r,hooks:s}})=>{Gn=(async()=>{try{const{id:o,tag:a,type:i,custom:c,version:l,config:u,async:p}=e,f=((e,t="")=>`${e}@${t}`.replace(/@$/,""))(i,l),d=await Cn(f,t,n,u),{js_modules:h}=Mn.get(f),y=h?.main,g=ut(Nn.get(i)),w=((e,t,n,r)=>({type:t,config:n,interpreter:r,io:rt.get(r),run:(t,...n)=>e.run(r,t,...n),runAsync:(t,...n)=>e.runAsync(r,t,...n),runEvent:(...t)=>e.runEvent(r,...t)}))(g,c||i,u||{},d);let m="run";if(p&&(m+="Async"),s){let e,t,n="",r="";for(const e of qn){const t=s[e];if(t){const s=e.endsWith("Async");(s&&p||!s&&!p)&&(e.startsWith("codeBefore")?n=t:r=t)}}(n||r)&&((e,t,n,r)=>{const s=e[t].bind(e);e[t]="run"===t?(e,t,...o)=>{n&&s(e,n,...o);const a=s(e,_t(t),...o);return r&&s(e,r,...o),a}:async(e,t,...o)=>{n&&await s(e,n,...o);const a=await s(e,_t(t),...o);return r&&await s(e,r,...o),a}})(g,m,n,r);for(const n of Un.slice(2)){const r=s[n];if(r){const s=n.endsWith("Async");if(s&&p||!s&&!p){const s=mt(r);n.startsWith("onBefore")?e=s:t=s}}}zn(g,w,sr,p,e,t)}let _,b,E,v=null,T="";er&&(({CustomEvent:_,document:b}=nr),v=o&&b.getElementById(o)||null,E=e=>wt(v,c||i,e,!0,_));const x=jt(nr,Qn,y,t);if(((e,t,n,r)=>{if("pyodide"===e)return;const s="polyscript.js_modules";for(const e of Reflect.ownKeys(r))t.registerJSModule(n,`${s}.${e}`,Tt(r,e));t.registerJSModule(n,s,r)})(i,g,d,x),g.registerJSModule(d,"polyscript",{xworker:sr,currentScript:v,config:w.config,js_modules:x,get target(){return!T&&v&&("SCRIPT"===a?v.after(lt(b.createElement(`script-${c||i}`),{id:T=`${o}-target`})):(T=o,v.replaceChildren(),v.style.display="block")),T}}),Yn=g.runEvent.bind(g,d),Kn=g.transform.bind(g,d),v&&E("ready"),s?.onReady&&mt(s?.onReady).call(g,Jn.call(g,w,d),sr),await g[m](d,r),["micropython","pyodide"].includes(g.type)){const e="polyscript",t=`__${e}_workers__`,n="__export__";d.runPython([`import js as ${t}`,`${t}.${t} = "${n}" in locals() and ${n} or []`,`del ${t}`].join("\\n"));const r=[...globalThis[t]];delete globalThis[t],r.length&&d.runPython([`from ${e} import xworker as ${t}`,...r.map((e=>`${t}.sync.${e} = ${e}`)),`del ${t}`].join("\\n"))}return v&&E("done"),postMessage("polyscript:done"),d}catch(e){postMessage(e)}})(),Xn("error"),Xn("message"),Xn("messageerror")}));\n'.replace($e,Ne)],{type:"application/javascript"})),...e))({serviceWorker:n?.serviceWorker||n?.service_worker}),{postMessage:o}=s,i=this instanceof $n,l=et(s.proxy,{importJS:At,importCSS:Et}),c=Promise.withResolvers();let p=a(t).text().then((e=>{const t=i?this.toJSON():void 0;o.call(s,{options:n,config:r,code:e,hooks:t})})).then((()=>{p={then:e=>e()}}));return nt(s,{sync:{value:l},ready:{value:c.promise},postMessage:{value:(e,...t)=>p.then((()=>o.call(s,e,...t)))},onerror:{writable:!0,configurable:!0,value:console.error}}),s.addEventListener("message",(e=>{const{data:t}=e,n=t instanceof Error;(n||"polyscript:done"===t)&&(e.stopImmediatePropagation(),n?(c.reject(t),s.onerror(tt(e,{type:{value:"error"},error:{value:t}}))):c.resolve(s))})),i&&this.onWorker?.(this.interpreter,s),s};const Hn="Invalid content";var Ln=e=>{const{src:t,worker:n}=e.attributes;if(n){let{value:r}=n;if(r)throw new SyntaxError("Invalid worker attribute");if(r=t?.value,!r){if(t)throw new SyntaxError("Invalid worker attribute");if(e.childElementCount){const{innerHTML:t,localName:n,type:s}=e,o=s||n.replace(/-script$/,"");r=Ze(t),console.warn(`Deprecated: use <script type="${o}"> for an always safe content parsing:\n`,r)}else r=e.textContent;return URL.createObjectURL(new Blob([Ve(r)],{type:"text/plain"}))}return r}if(t&&e.textContent.replace(/\/\*[\s\S]*?\*\//g,"").replace(/^\s*(?:\/\/|#).*/gm,"").trim())throw new SyntaxError(Hn)};const Pn=(e,t)=>{const n=(e=>{let t=e;for(;t.parentNode;)t=t.parentNode;return t})(e);return n.getElementById(t)||((e,t=document)=>t.querySelector(e))(t,n)},In=new WeakMap,Un={get(){let e=In.get(this);return e||(e=document.createElement(`${this.type}-script`),In.set(this,e),Gn(this)),e},set(e){"string"==typeof e?In.set(this,Pn(this,e)):(In.set(this,e),Gn(this))}},Dn=new WeakMap,Fn=new Map,zn=(e,t)=>{const n=e?.value;return n?t+n:""},qn=(e,t,n,r,s,o,a=e)=>{if(!Fn.has(t)){const i={interpreter:kn(n,s,o),queue:at(),XWorker:Nn(e,r)};Fn.set(t,i),Fn.has(e)||Fn.set(e,i),Fn.has(a)||Fn.set(a,i)}return Fn.get(t)},Gn=async e=>{if(Dn.has(e)){const{target:t}=e;t&&(e.closest("head")?document.body.append(t):e.after(t))}else{const{attributes:{config:t,env:n,name:r,target:s,version:o,"service-worker":l},src:p,type:d}=e,u=!vt(e),f=o?.value,m=Sn(d,f);let h=zn(t,"|");const _=zn(n,"")||`${m}${h}`;h=h.slice(1);const g=Ln(e);if(g){const t=new(Nn(d,f))(g,{...ct(e,d),async:u,config:h,serviceWorker:l?.value});Dn.set(rt(e,"xworker",{value:t}),{xworker:t});const n=r?.value;return void(n&&i[n].resolve(t.ready))}const y=zn(s,""),w=qn(d,_,m,f,h);Dn.set(rt(e,"target",Un),w),y&&In.set(e,Pn(e,y));const A=p?a(p).text():e.textContent;w.queue=w.queue.then((()=>(async(e,t,n,r)=>{const{type:s}=e,o=gn.get(s);o.experimental&&console.warn(`The ${s} interpreter is experimental`);const[a,i]=await ot([Dn.get(e).interpreter,t]);try{wt(s,o,a,_t),o.registerJSModule(a,"polyscript",{XWorker:n,currentScript:e,js_modules:_t,workers:c}),pt(e,s,"ready"),rt(document,"currentScript",{configurable:!0,get:()=>e});const t=pt.bind(null,e,s,"done");let l=o[r?"runAsync":"run"](a,i);return r&&(l=await l),t(),l}finally{delete document.currentScript}})(e,A,w.XWorker,u)))}},Jn=new Proxy(tt(null),{get:(e,t)=>new Promise(queueMicrotask).then((()=>Yn(t)))}),Yn=async e=>{if(Fn.has(e)){const{interpreter:t,queue:n}=Fn.get(e);return(await ot([t,n]))[0]}const t=Fn.size?`Available interpreters are: ${[...Fn.keys()].map((e=>`"${e}"`)).join(", ")}.`:"There are no interpreters in this page.";throw new Error(`The interpreter "${e}" was not found. ${t}`)},Kn=async e=>{const{type:t,currentTarget:r}=e;if(An.length)for(let{name:s,value:o,ownerElement:a}of n(`./@*[${An.map((e=>`name()="${e}${t}"`)).join(" or ")}]`,r)){s=s.slice(0,-(t.length+1));const n=await Yn(a.getAttribute(`${s}-env`)||s);gn.get(s).runEvent(n,o,e)}},Xn=e=>{if(An.length)for(let{name:t,ownerElement:r}of n(`.//@*[${An.map((e=>`starts-with(name(),"${e}")`)).join(" or ")}]`,e)){const e=t.lastIndexOf("-"),n=t.slice(e+1);"env"!==n&&(r.addEventListener(n,Kn),"disabled"in r&&!r.disabled&&(r.disabled=!0,Jn[t.slice(0,e)].then((()=>{r.disabled=!1}))))}},Vn=Nn(),Zn=[],Qn=new Map,er=new Map,tr=new Map,nr=async e=>{for(const t of Zn)if(e.matches(t)){const n=er.get(t),r=rr.get(n),{resolve:s}=tr.get(n),{options:o,known:a}=r;if(a.has(e))return;a.add(e);for(const[t,n]of Qn)e.matches(t)&&await n(e);const{interpreter:l,configURL:p,config:d,version:u,env:f,onerror:m,hooks:h}=o;let _;try{const t=Ln(e);if(t){const r=Vn.call(new $n(null,h),t,{...ct(e,n),version:u,configURL:p,type:l,custom:n,config:e.getAttribute("config")||d||{},async:!vt(e),serviceWorker:e.getAttribute("service-worker")});rt(e,"xworker",{value:r}),s({type:n,xworker:r});const o=e.getAttribute("name");return void(o&&i[o].resolve(r.ready))}}catch(e){_=e}const g=Sn(l,u),y=f||`${g}${d?`|${d}`:""}`,{interpreter:w,XWorker:A}=qn(n,y,g,u,d,p,l),E=await w,b=tt(gn.get(l)),v=new $n(E,h),R=function(...e){return A.apply(v,e)},T={...dt(b,n,structuredClone(yn.get(g)),E),XWorker:R};wt(l,b,E,_t),b.registerJSModule(E,"polyscript",{XWorker:R,config:T.config,currentScript:n.startsWith("_")?null:e,js_modules:_t,workers:c});for(const t of["Run","RunAsync"]){let n,r,s="",o="";for(const e of Bn){const n=h?.main?.[e];n&&e.endsWith(t)&&(e.startsWith("codeBefore")?s=Ve(n()):o=Ve(n()))}(s||o)&&ft(b,`r${t.slice(1)}`,s,o);for(let e=2;e<Mn.length;e++){const s=Mn[e],o=h?.main?.[s];o&&s.endsWith(t)&&(s.startsWith("onBefore")?n=o:r=o)}Wn(b,T,e,t.endsWith("Async"),n,r)}r.queue=r.queue.then((()=>(s(T),_&&m?.(_,e),h?.main?.onReady?.(T,e))))}},rr=new Map;let sr=0;const or=e=>(tr.has(e)||tr.set(e,Promise.withResolvers()),tr.get(e).promise),[{customObserver:ar,define:ir,whenDefined:lr,env:cr,Hook:pr,XWorker:dr},ur]=e("polyscript",{customObserver:Qn,define:(e,n)=>{let r=null==e;if(r)e="_ps"+sr++;else if(gn.has(e)||rr.has(e))throw new Error(`<script type="${e}"> already registered`);if(!gn.has(n?.interpreter))throw new Error("Unspecified interpreter");gn.set(e,gn.get(n.interpreter));const s=[`script[type="${e}"]`];if(or(e),r){const{hooks:t}=n,r=t?.main?.onReady;n={...n,hooks:{...t,main:{...t?.main,onReady(t,n){Zn.splice(Zn.indexOf(e),1),gn.delete(e),rr.delete(e),tr.delete(e),n.remove(),r?.(t)}}}},document.head.append(et(document.createElement("script"),{type:e}))}else s.push(`${e}-script`),An.push(`${e}-`);for(const t of s)er.set(t,e);Zn.push(...s),rr.set(e,{options:et({env:e},n),known:new WeakSet,queue:Promise.resolve()}),r||Xn(document),t(s.join(",")).forEach(nr)},whenDefined:or,env:Jn,Hook:$n,XWorker:Vn});if(!ur){const e=new MutationObserver((e=>{const t=wn.join(",");for(const{type:r,target:s,attributeName:o,addedNodes:a}of e)if("attributes"!==r)for(const e of a)1===e.nodeType&&(Xn(e),t&&e.matches(t)?Gn(e):n(t,e,!0));else{const e=o.lastIndexOf("-")+1;if(e){const t=o.slice(0,e);for(const n of An)if(t===n){const t=o.slice(e);if("env"!==t){const e=s.hasAttribute(o)?"add":"remove";s[`${e}EventListener`](t,Kn)}break}}}})),n=(e,n,r)=>{e&&t(e,n).forEach(Gn),(e=Zn.join(","))&&(r&&nr(n),t(e,n).forEach(nr))},r=t=>(e.observe(t,{childList:!0,subtree:!0,attributes:!0}),t),{attachShadow:s}=Element.prototype;et(Element.prototype,{attachShadow(e){return r(s.call(this,e))}}),queueMicrotask((()=>{Xn(r(document)),n(wn.join(","),document,!1)}))}var fr=new Map([["py","pyodide"],["mpy","micropython"]]);const mr=[];for(const[e]of fr){const t=[`script[type="${e}"]`,`${e}-script`];for(const n of document.querySelectorAll(t.join(","))){const{promise:t,resolve:r}=Promise.withResolvers();mr.push(t),n.addEventListener(`${e}:done`,r,{once:!0})}}Promise.all(mr).then((()=>{dispatchEvent(new Event("py:all-done"))}));var hr={"deprecations-manager":()=>import("./deprecations-manager-DAjcp9Ks.js"),error:()=>import("./error-BufXjGgq.js"),"py-editor":()=>import("./py-editor-CyZA5xXK.js"),"py-terminal":()=>import("./py-terminal-CyYWBE4G.js")};const _r={GENERIC:"PY0000",CONFLICTING_CODE:"PY0409",BAD_CONFIG:"PY1000",MICROPIP_INSTALL_ERROR:"PY1001",BAD_PLUGIN_FILE_EXTENSION:"PY2000",NO_DEFAULT_EXPORT:"PY2001",TOP_LEVEL_AWAIT:"PY9000",FETCH_ERROR:"PY0001",FETCH_NAME_ERROR:"PY0002",FETCH_UNAUTHORIZED_ERROR:"PY0401",FETCH_FORBIDDEN_ERROR:"PY0403",FETCH_NOT_FOUND_ERROR:"PY0404",FETCH_SERVER_ERROR:"PY0500",FETCH_UNAVAILABLE_ERROR:"PY0503"};class gr extends Error{constructor(e,t="",n="text"){super(`(${e}): ${t}`),this.errorCode=e,this.messageType=n,this.name="UserError"}}class yr extends gr{constructor(e,t){super(e,t),this.name="FetchError"}}const wr=e=>e.text();async function Ar(e,t){let n;try{n=await fetch(e,t)}catch(t){const n=t;let r;throw r=e.startsWith("http")?`Fetching from URL ${e} failed with error '${n.message}'. Are your filename and path correct?`:'Polyscript: Access to local files\n (using [[fetch]] configurations in <py-config>)\n is not available when directly opening a HTML file;\n you must use a webserver to serve the additional files.\n See <a style="text-decoration: underline;" href="https://github.com/pyscript/pyscript/issues/257#issuecomment-1119595062">this reference</a>\n on starting a simple webserver with Python.\n ',new yr(_r.FETCH_ERROR,r)}if(!n.ok){const t=`Fetching from URL ${e} failed with error ${n.status} (${n.statusText}). Are your filename and path correct?`;switch(n.status){case 404:throw new yr(_r.FETCH_NOT_FOUND_ERROR,t);case 401:throw new yr(_r.FETCH_UNAUTHORIZED_ERROR,t);case 403:throw new yr(_r.FETCH_FORBIDDEN_ERROR,t);case 500:throw new yr(_r.FETCH_SERVER_ERROR,t);case 503:throw new yr(_r.FETCH_UNAVAILABLE_ERROR,t);default:throw new yr(_r.FETCH_ERROR,t)}}return n}const{BAD_CONFIG:Er,CONFLICTING_CODE:br}=_r,vr=async(e,t)=>{let n=e?.trim(),r="",s=!1,o=/^{/.test(n)&&/}$/.test(n);if(!o&&/\.(\w+)(?:\?\S*)?$/.test(n)){const e=RegExp.$1;"json"===e&&"toml"!==t?o=!0:"toml"===e&&"json"!==t?s=!0:((e,t="")=>{let n=`(${Er}): Invalid URL: ${e}`;throw t&&(n+=`\nexpected ${t} content`),new Error(n)})(n,t),r=n,n=(await Ar(r).then(wr)).trim()}return{json:o,toml:s||!o&&!!n,text:n,url:r}},Rr=e=>new Error(`(${br}): ${e}`),Tr=(e,t=location.href)=>new URL(e,t).href,kr=(e,t,{message:n})=>{let r=`(${Er}): Invalid ${e}`;return t&&(r+=` @ ${t}`),new SyntaxError(`${r}\n${n}`)},Sr=new Map;for(const[e]of fr){let n,r,s,o,a,i,l,c=t(`${e}-config`),p=t([`script[type="${e}"][config]:not([worker])`,`${e}-script[config]:not([worker])`].join(","));if(c.length>1?s=Rr(`Too many ${e}-config`):c.length&&p.length?s=Rr(`Ambiguous ${e}-config VS config attribute`):c.length?([l]=c,a=l.getAttribute("src")||l.textContent,i=l.getAttribute("type")):p.length&&([l,...p]=p,a=l.getAttribute("config"),p.some((e=>e.getAttribute("config")!==a))&&(s=Rr("Unable to use different configs on main"))),!s&&a)try{const{json:e,toml:t,text:n,url:l}=await vr(a,i);if(l&&(o=Tr(l)),a=n,e||"json"===i)try{r=JSON.parse(n)}catch(e){s=kr("JSON",l,e)}else if(t||"toml"===i)try{const{parse:e}=await import("./toml-CvAfdf9_.js");r=e(n)}catch(e){s=kr("TOML",l,e)}}catch(e){s=e}const d=[];for(const[e,t]of Object.entries(hr))s?"error"===e&&t().then((({notify:e})=>e(s.message))):r?.plugins?.includes(`!${e}`)||d.push(t().then((({default:e})=>e)));n=Promise.all(d),Sr.set(e,{config:r,configURL:o,plugins:n,error:s})}var Cr={is_pyterminal:()=>!1,sleep:e=>new Promise((t=>setTimeout(t,1e3*e)))};const xr=e=>{rt(document,"currentScript",{configurable:!0,get:()=>e})},jr=()=>{delete document.currentScript};var Br=async(e,t,n,r)=>{const s=r.endsWith("Async");(r.startsWith("onBefore")?xr:jr)(n);for(const o of e(r))s?await o(t,n):o(t,n)};const Mr=()=>!0,Or=e=>{throw new TypeError(e)},Wr=(e,t)=>{const n=[];if(e)for(const t of e.split(/\s*\|\s*/))"object"===t?n.push((e=>null!==e&&typeof e===t)):"null"===t?n.push((e=>null===e)):n.push((e=>typeof e===t));if(t)for(const e of[].concat(t))n.push((t=>t instanceof e));switch(n.length){case 0:return Mr;case 1:return n[0];default:return e=>n.some((t=>t(e)))}},$r=(e,t,n,r=Or)=>s=>{const o=[`Invalid ${typeof s} ${n}: expected `];e&&(o.push(e),t&&o.push(" or ")),t&&(o.push("an instanceof "),o.push([].concat(t).map((({name:e})=>e)).join(" | "))),r(o.join(""),s)},Nr=(e=>t=>{const[n,r]=((e,t="value")=>{const n=e?.typeof,r=e?.instanceof;return[Wr(n,r),$r(n,r,t,e?.onerror)]})(t);return class extends e{add(e){return n(e)?super.add(e):r(e)}}})(Set);const{entries:Hr}=Object,Lr=["import os as _os","from pathlib import Path as _Path","_path = None"],Pr=new class extends Array{#a=!1;#i;#l;constructor(e,...t){super(),this.#l=e,this.#i=t}push(...e){return this.#a&&super.push(...e),this.#l.push(...e)}path(e){for(const t of this.#i)if(this.#a=e.startsWith(t))break}}(Lr,"-"),Ir=(e,t)=>{for(const[n,r]of Hr(t))if(Pr.path(`${e}/${n}`),Pr.push(`_path = _Path("${e}/${n}")`),"string"==typeof r){const e=JSON.stringify(r);Pr.push(`_path.write_text(${e},encoding="utf-8")`)}else Pr.push(`if not _os.path.exists("${e}/${n}"):`),Pr.push(" _path.mkdir(parents=True, exist_ok=True)"),Ir(`${e}/${n}`,r)};Ir(".",{pyscript:{"__init__.py":"from polyscript import lazy_py_modules as py_import\nfrom pyscript.display import HTML,display\nfrom pyscript.fetch import fetch\nfrom pyscript.magic_js import RUNNING_IN_WORKER,PyWorker,config,current_target,document,js_import,js_modules,sync,window\nfrom pyscript.storage import Storage,storage\nfrom pyscript.websocket import WebSocket\nif not RUNNING_IN_WORKER:from pyscript.workers import create_named_worker,workers\ntry:from pyscript.event_handling import when\nexcept:from pyscript.util import NotSupported;when=NotSupported('pyscript.when','pyscript.when currently not available with this interpreter')","display.py":"_L='_repr_mimebundle_'\n_K='image/svg+xml'\n_J='application/json'\n_I='__repr__'\n_H='savefig'\n_G='text/html'\n_F='image/jpeg'\n_E='application/javascript'\n_D='utf-8'\n_C='text/plain'\n_B='image/png'\n_A=None\nimport base64,html,io,re\nfrom pyscript.magic_js import current_target,document,window\n_MIME_METHODS={_H:_B,'_repr_javascript_':_E,'_repr_json_':_J,'_repr_latex':'text/latex','_repr_png_':_B,'_repr_jpeg_':_F,'_repr_pdf_':'application/pdf','_repr_svg_':_K,'_repr_markdown_':'text/markdown','_repr_html_':_G,_I:_C}\ndef _render_image(mime,value,meta):\n\tA=value\n\tif isinstance(A,bytes):A=base64.b64encode(A).decode(_D)\n\tB=re.compile('^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?$')\n\tif len(A)>0 and not B.match(A):A=base64.b64encode(A.encode(_D)).decode(_D)\n\tC=f\"data:{mime};charset=utf-8;base64,{A}\";D=' '.join(['{k}=\"{v}\"'for(A,B)in meta.items()]);return f'<img src=\"{C}\" {D}></img>'\ndef _identity(value,meta):return value\n_MIME_RENDERERS={_C:html.escape,_G:_identity,_B:lambda value,meta:_render_image(_B,value,meta),_F:lambda value,meta:_render_image(_F,value,meta),_K:_identity,_J:_identity,_E:lambda value,meta:f\"<script>{value}<\\\\/script>\"}\nclass HTML:\n\t'\\n Wrap a string so that display() can render it as plain HTML\\n '\n\tdef __init__(A,html):A._html=html\n\tdef _repr_html_(A):return A._html\ndef _eval_formatter(obj,print_method):\n\t'\\n Evaluates a formatter method.\\n ';B=obj;A=print_method\n\tif A==_I:return repr(B)\n\telif hasattr(B,A):\n\t\tif A==_H:C=io.BytesIO();B.savefig(C,format='png');C.seek(0);return base64.b64encode(C.read()).decode(_D)\n\t\treturn getattr(B,A)()\n\telif A==_L:return{},{}\ndef _format_mime(obj):\n\t'\\n Formats object using _repr_x_ methods.\\n ';C=obj\n\tif isinstance(C,str):return html.escape(C),_C\n\tD=_eval_formatter(C,_L)\n\tif isinstance(D,tuple):E,I=D\n\telse:E=D\n\tA,F=_A,[]\n\tfor(H,B)in _MIME_METHODS.items():\n\t\tif B in E:A=E[B]\n\t\telse:A=_eval_formatter(C,H)\n\t\tif A is _A:continue\n\t\telif B not in _MIME_RENDERERS:F.append(B);continue\n\t\tbreak\n\tif A is _A:\n\t\tif F:window.console.warn(f\"Rendered object requested unavailable MIME renderers: {F}\")\n\t\tA=repr(A);B=_C\n\telif isinstance(A,tuple):A,G=A\n\telse:G={}\n\treturn _MIME_RENDERERS[B](A,G),B\ndef _write(element,value,append=False):\n\tB=element;C,D=_format_mime(value)\n\tif C=='\\\\n':return\n\tif append:A=document.createElement('div');B.append(A)\n\telse:\n\t\tA=B.lastElementChild\n\t\tif A is _A:A=B\n\tif D in(_E,_G):E=document.createRange().createContextualFragment(C);A.append(E)\n\telse:A.innerHTML=C\ndef display(*D,target=_A,append=True):\n\tC=append;A=target\n\tif A is _A:A=current_target()\n\telif not isinstance(A,str):raise TypeError(f\"target must be str or None, not {A.__class__.__name__}\")\n\telif A=='':raise ValueError('Cannot have an empty target')\n\telif A.startswith('#'):A=A[1:]\n\tB=document.getElementById(A)\n\tif B is _A:raise ValueError(f\"Invalid selector with id={A}. Cannot be found in the page.\")\n\tif B.tagName=='SCRIPT'and hasattr(B,'target'):B=B.target\n\tfor E in D:\n\t\tif not C:B.replaceChildren()\n\t\t_write(B,E,append=C)","event_handling.py":"import inspect\ntry:from pyodide.ffi.wrappers import add_event_listener\nexcept ImportError:\n\tdef add_event_listener(el,event_type,func):el.addEventListener(event_type,func)\nfrom pyscript.magic_js import document\ndef when(event_type=None,selector=None):\n\t'\\n Decorates a function and passes py-* events to the decorated function\\n The events might or not be an argument of the decorated function\\n ';A=selector\n\tdef B(func):\n\t\tB=func;from pyscript.web import Element as E,ElementCollection as F\n\t\tif isinstance(A,str):C=document.querySelectorAll(A)\n\t\telif isinstance(A,E):C=[A._dom_element]\n\t\telif isinstance(A,F):C=[A._dom_element for A in A]\n\t\telif isinstance(A,list):C=A\n\t\telse:C=[A]\n\t\ttry:\n\t\t\tG=inspect.signature(B)\n\t\t\tif not G.parameters:\n\t\t\t\tdef D(*A,**C):B()\n\t\t\telse:D=B\n\t\texcept AttributeError:\n\t\t\tdef D(*C,**D):\n\t\t\t\ttry:return B(*C,**D)\n\t\t\t\texcept TypeError as A:\n\t\t\t\t\tif'takes'in str(A)and'positional arguments'in str(A):return B()\n\t\t\t\t\traise\n\t\tfor H in C:add_event_listener(H,event_type,D)\n\t\treturn B\n\treturn B","fetch.py":"import json,js\nfrom pyscript.util import as_bytearray\nclass _Response:\n\tdef __init__(A,response):A._response=response\n\tdef __getattr__(A,attr):return getattr(A._response,attr)\n\tasync def arrayBuffer(B):\n\t\tA=await B._response.arrayBuffer()\n\t\tif hasattr(A,'to_py'):return A.to_py()\n\t\treturn memoryview(as_bytearray(A))\n\tasync def blob(A):return await A._response.blob()\n\tasync def bytearray(A):B=await A._response.arrayBuffer();return as_bytearray(B)\n\tasync def json(A):return json.loads(await A.text())\n\tasync def text(A):return await A._response.text()\nclass _DirectResponse:\n\t@staticmethod\n\tdef setup(promise,response):A=promise;A._response=_Response(response);return A._response\n\tdef __init__(B,promise):A=promise;B._promise=A;A._response=None;A.arrayBuffer=B.arrayBuffer;A.blob=B.blob;A.bytearray=B.bytearray;A.json=B.json;A.text=B.text\n\tasync def _response(A):\n\t\tif not A._promise._response:await A._promise\n\t\treturn A._promise._response\n\tasync def arrayBuffer(A):B=await A._response();return await B.arrayBuffer()\n\tasync def blob(A):B=await A._response();return await B.blob()\n\tasync def bytearray(A):B=await A._response();return await B.bytearray()\n\tasync def json(A):B=await A._response();return await B.json()\n\tasync def text(A):B=await A._response();return await B.text()\ndef fetch(url,**B):C=js.JSON.parse(json.dumps(B));D=lambda response,*B:_DirectResponse.setup(A,response);A=js.fetch(url,C).then(D);_DirectResponse(A);return A","ffi.py":"try:\n\timport js;from pyodide.ffi import create_proxy as _cp,to_js as _py_tjs;from_entries=js.Object.fromEntries\n\tdef _tjs(value,**A):\n\t\tB='dict_converter'\n\t\tif not hasattr(A,B):A[B]=from_entries\n\t\treturn _py_tjs(value,**A)\nexcept:from jsffi import create_proxy as _cp;from jsffi import to_js as _tjs\ncreate_proxy=_cp\nto_js=_tjs","flatted.py":"import json as _json\nclass _Known:\n\tdef __init__(A):A.key=[];A.value=[]\nclass _String:\n\tdef __init__(A,value):A.value=value\ndef _array_keys(value):\n\tA=[];B=0\n\tfor C in value:A.append(B);B+=1\n\treturn A\ndef _object_keys(value):\n\tA=[]\n\tfor B in value:A.append(B)\n\treturn A\ndef _is_array(value):A=value;return isinstance(A,list)or isinstance(A,tuple)\ndef _is_object(value):return isinstance(value,dict)\ndef _is_string(value):return isinstance(value,str)\ndef _index(known,input,value):B=value;A=known;input.append(B);C=str(len(input)-1);A.key.append(B);A.value.append(C);return C\ndef _loop(keys,input,known,output):\n\tA=output\n\tfor B in keys:\n\t\tC=A[B]\n\t\tif isinstance(C,_String):_ref(B,input[int(C.value)],input,known,A)\n\treturn A\ndef _ref(key,value,input,known,output):\n\tB=known;A=value\n\tif _is_array(A)and not A in B:B.append(A);A=_loop(_array_keys(A),input,B,A)\n\telif _is_object(A)and not A in B:B.append(A);A=_loop(_object_keys(A),input,B,A)\n\toutput[key]=A\ndef _relate(known,input,value):\n\tB=known;A=value\n\tif _is_string(A)or _is_array(A)or _is_object(A):\n\t\ttry:return B.value[B.key.index(A)]\n\t\texcept:return _index(B,input,A)\n\treturn A\ndef _transform(known,input,value):\n\tB=known;A=value\n\tif _is_array(A):\n\t\tC=[]\n\t\tfor F in A:C.append(_relate(B,input,F))\n\t\treturn C\n\tif _is_object(A):\n\t\tD={}\n\t\tfor E in A:D[E]=_relate(B,input,A[E])\n\t\treturn D\n\treturn A\ndef _wrap(value):\n\tA=value\n\tif _is_string(A):return _String(A)\n\tif _is_array(A):\n\t\tB=0\n\t\tfor D in A:A[B]=_wrap(D);B+=1\n\telif _is_object(A):\n\t\tfor C in A:A[C]=_wrap(A[C])\n\treturn A\ndef parse(value,*C,**D):\n\tA=value;E=_json.loads(A,*C,**D);B=[]\n\tfor A in E:B.append(_wrap(A))\n\tinput=[]\n\tfor A in B:\n\t\tif isinstance(A,_String):input.append(A.value)\n\t\telse:input.append(A)\n\tA=input[0]\n\tif _is_array(A):return _loop(_array_keys(A),input,[A],A)\n\tif _is_object(A):return _loop(_object_keys(A),input,[A],A)\n\treturn A\ndef stringify(value,*D,**E):\n\tB=_Known();input=[];C=[];A=int(_index(B,input,value))\n\twhile A<len(input):C.append(_transform(B,input,input[A]));A+=1\n\treturn _json.dumps(C,*D,**E)","magic_js.py":"import json,sys,js as globalThis\nfrom polyscript import config as _config,js_modules\nfrom pyscript.util import NotSupported\nRUNNING_IN_WORKER=not hasattr(globalThis,'document')\nconfig=json.loads(globalThis.JSON.stringify(_config))\nclass JSModule:\n\tdef __init__(A,name):A.name=name\n\tdef __getattr__(B,field):\n\t\tA=field\n\t\tif not A.startswith('_'):return getattr(getattr(js_modules,B.name),A)\nfor name in globalThis.Reflect.ownKeys(js_modules):sys.modules[f\"pyscript.js_modules.{name}\"]=JSModule(name)\nsys.modules['pyscript.js_modules']=js_modules\nif RUNNING_IN_WORKER:\n\timport polyscript;PyWorker=NotSupported('pyscript.PyWorker','pyscript.PyWorker works only when running in the main thread')\n\ttry:import js;window=polyscript.xworker.window;document=window.document;js.document=document;js_import=window.Function('return (...urls) => Promise.all(urls.map((url) => import(url)))')()\n\texcept:message='Unable to use `window` or `document` -> https://docs.pyscript.net/latest/faq/#sharedarraybuffer';globalThis.console.warn(message);window=NotSupported('pyscript.window',message);document=NotSupported('pyscript.document',message);js_import=None\n\tsync=polyscript.xworker.sync\n\tdef current_target():return polyscript.target\nelse:\n\timport _pyscript;from _pyscript import PyWorker,js_import;window=globalThis;document=globalThis.document;sync=NotSupported('pyscript.sync','pyscript.sync works only when running in a worker')\n\tdef current_target():return _pyscript.target","storage.py":"_C='memoryview'\n_B='bytearray'\n_A='generic'\nfrom polyscript import storage as _storage\nfrom pyscript.flatted import parse as _parse\nfrom pyscript.flatted import stringify as _stringify\ndef _to_idb(value):\n\tA=value\n\tif A is None:return _stringify(['null',0])\n\tif isinstance(A,(bool,float,int,str,list,dict,tuple)):return _stringify([_A,A])\n\tif isinstance(A,bytearray):return _stringify([_B,[A for A in A]])\n\tif isinstance(A,memoryview):return _stringify([_C,[A for A in A]])\n\traise TypeError(f\"Unexpected value: {A}\")\ndef _from_idb(value):\n\tC=value;A,B=_parse(C)\n\tif A=='null':return\n\tif A==_A:return B\n\tif A==_B:return bytearray(B)\n\tif A==_C:return memoryview(bytearray(B))\n\treturn C\nclass Storage(dict):\n\tdef __init__(B,store):A=store;super().__init__({A:_from_idb(B)for(A,B)in A.entries()});B.__store__=A\n\tdef __delitem__(A,attr):A.__store__.delete(attr);super().__delitem__(attr)\n\tdef __setitem__(B,attr,value):A=value;B.__store__.set(attr,_to_idb(A));super().__setitem__(attr,A)\n\tdef clear(A):A.__store__.clear();super().clear()\n\tasync def sync(A):await A.__store__.sync()\nasync def storage(name='',storage_class=Storage):\n\tif not name:raise ValueError('The storage name must be defined')\n\treturn storage_class(await _storage(f\"@pyscript/{name}\"))","util.py":"import js\ndef as_bytearray(buffer):\n\tA=js.Uint8Array.new(buffer);B=A.length;C=bytearray(B)\n\tfor D in range(0,B):C[D]=A[D]\n\treturn C\nclass NotSupported:\n\t'\\n Small helper that raises exceptions if you try to get/set any attribute on\\n it.\\n '\n\tdef __init__(A,name,error):object.__setattr__(A,'name',name);object.__setattr__(A,'error',error)\n\tdef __repr__(A):return f\"<NotSupported {A.name} [{A.error}]>\"\n\tdef __getattr__(A,attr):raise AttributeError(A.error)\n\tdef __setattr__(A,attr,value):raise AttributeError(A.error)\n\tdef __call__(A,*B):raise TypeError(A.error)","web.py":"'Lightweight interface to the DOM and HTML elements.'\n_A=None\nfrom pyscript import document,when\ndef wrap_dom_element(dom_element):'Wrap an existing DOM element in an instance of a subclass of `Element`.\\n\\n This is just a convenience function to avoid having to import the `Element` class\\n and use its class method.\\n ';return Element.wrap_dom_element(dom_element)\nclass Element:\n\telement_classes_by_tag_name={}\n\t@classmethod\n\tdef get_tag_name(A):'Return the HTML tag name for the class.\\n\\n For classes that have a trailing underscore (because they clash with a Python\\n keyword or built-in), we remove it to get the tag name. e.g. for the `input_`\\n class, the tag name is `input`.\\n\\n ';return A.__name__.replace('_','')\n\t@classmethod\n\tdef register_element_classes(B,element_classes):\n\t\t'Register an iterable of element classes.'\n\t\tfor A in element_classes:C=A.get_tag_name();B.element_classes_by_tag_name[C]=A\n\t@classmethod\n\tdef unregister_element_classes(A,element_classes):\n\t\t'Unregister an iterable of element classes.'\n\t\tfor B in element_classes:C=B.get_tag_name();A.element_classes_by_tag_name.pop(C,_A)\n\t@classmethod\n\tdef wrap_dom_element(A,dom_element):\"Wrap an existing DOM element in an instance of a subclass of `Element`.\\n\\n We look up the `Element` subclass by the DOM element's tag name. For any unknown\\n elements (custom tags etc.) use *this* class (`Element`).\\n \";B=dom_element;C=A.element_classes_by_tag_name.get(B.tagName.lower(),A);return C(dom_element=B)\n\tdef __init__(A,dom_element=_A,classes=_A,style=_A,**B):'Create a new, or wrap an existing DOM element.\\n\\n If `dom_element` is None we are being called to *create* a new element.\\n Otherwise, we are being called to *wrap* an existing DOM element.\\n ';A._dom_element=dom_element or document.createElement(type(A).get_tag_name());A._classes=Classes(A);A._style=Style(A);A.update(classes=classes,style=style,**B)\n\tdef __eq__(A,obj):'Check for equality by comparing the underlying DOM element.';return isinstance(obj,Element)and obj._dom_element==A._dom_element\n\tdef __getitem__(B,key):\n\t\t\"Get an item within the element's children.\\n\\n If `key` is an integer or a slice we use it to index/slice the element's\\n children. Otherwise, we use `key` as a query selector.\\n \";A=key\n\t\tif isinstance(A,int)or isinstance(A,slice):return B.children[A]\n\t\treturn B.find(A)\n\tdef __getattr__(B,name):\n\t\tA=name\n\t\tif A.endswith('_'):A=A[:-1]\n\t\treturn getattr(B._dom_element,A)\n\tdef __setattr__(C,name,value):\n\t\tB=value;A=name\n\t\tif A.startswith('_'):super().__setattr__(A,B)\n\t\telse:\n\t\t\tif A.endswith('_'):A=A[:-1]\n\t\t\tsetattr(C._dom_element,A,B)\n\t@property\n\tdef children(self):\"Return the element's children as an `ElementCollection`.\";return ElementCollection.wrap_dom_elements(self._dom_element.children)\n\t@property\n\tdef classes(self):\"Return the element's `classList` as a `Classes` instance.\";return self._classes\n\t@property\n\tdef parent(self):\n\t\t\"Return the element's `parent `Element`.\"\n\t\tif self._dom_element.parentElement is _A:return\n\t\treturn Element.wrap_dom_element(self._dom_element.parentElement)\n\t@property\n\tdef style(self):\"Return the element's `style` attribute as a `Style` instance.\";return self._style\n\tdef append(B,*C):\n\t\t'Append the specified items to the element.'\n\t\tfor A in C:\n\t\t\tif isinstance(A,Element):B._dom_element.appendChild(A._dom_element)\n\t\t\telif isinstance(A,ElementCollection):\n\t\t\t\tfor D in A:B._dom_element.appendChild(D._dom_element)\n\t\t\telif isinstance(A,list)or isinstance(A,tuple):\n\t\t\t\tfor E in A:B.append(E)\n\t\t\telse:\n\t\t\t\ttry:A.tagName;B._dom_element.appendChild(A)\n\t\t\t\texcept AttributeError:\n\t\t\t\t\ttry:\n\t\t\t\t\t\tA.length\n\t\t\t\t\t\tfor F in A:B._dom_element.appendChild(F)\n\t\t\t\t\texcept AttributeError:raise TypeError(f'Element \"{A}\" is a proxy object, \"but not a valid element or a NodeList.')\n\tdef clone(B,clone_id=_A):'Make a clone of the element (clones the underlying DOM object too).';A=Element.wrap_dom_element(B._dom_element.cloneNode(True));A.id=clone_id;return A\n\tdef find(A,selector):'Find all elements that match the specified selector.\\n\\n Return the results as a (possibly empty) `ElementCollection`.\\n ';return ElementCollection.wrap_dom_elements(A._dom_element.querySelectorAll(selector))\n\tdef show_me(A):\"Convenience method for 'element.scrollIntoView()'.\";A._dom_element.scrollIntoView()\n\tdef update(A,classes=_A,style=_A,**D):\n\t\t'Update the element with the specified classes, styles, and DOM properties.';C=style;B=classes\n\t\tif B:A.classes.add(B)\n\t\tif C:A.style.set(**C)\n\t\tfor(E,F)in D.items():setattr(A,E,F)\nclass Classes:\n\t\"A set-like interface to an element's `classList`.\"\n\tdef __init__(A,element):A._element=element;A._class_list=A._element._dom_element.classList\n\tdef __contains__(A,item):return item in A._class_list\n\tdef __eq__(C,other):\n\t\tA=other\n\t\tif isinstance(A,Classes):B=list(A._class_list)\n\t\telse:\n\t\t\ttry:B=iter(A)\n\t\t\texcept TypeError:return False\n\t\treturn set(C._class_list)==set(B)\n\tdef __iter__(A):return iter(A._class_list)\n\tdef __len__(A):return A._class_list.length\n\tdef __repr__(A):return f\"Classes({', '.join(A._class_list)})\"\n\tdef __str__(A):return' '.join(A._class_list)\n\tdef add(B,*C):\n\t\t'Add one or more classes to the element.'\n\t\tfor A in C:\n\t\t\tif isinstance(A,list):\n\t\t\t\tfor D in A:B.add(D)\n\t\t\telse:B._class_list.add(A)\n\tdef contains(A,class_name):'Check if the element has the specified class.';return class_name in A\n\tdef remove(B,*C):\n\t\t'Remove one or more classes from the element.'\n\t\tfor A in C:\n\t\t\tif isinstance(A,list):\n\t\t\t\tfor D in A:B.remove(D)\n\t\t\telse:B._class_list.remove(A)\n\tdef replace(A,old_class,new_class):\"Replace one of the element's classes with another.\";A.remove(old_class);A.add(new_class)\n\tdef toggle(A,*C):\n\t\t\"Toggle one or more of the element's classes.\"\n\t\tfor B in C:\n\t\t\tif B in A:A.remove(B)\n\t\t\telse:A.add(B)\nclass HasOptions:\n\t'Mix-in for elements that have an options attribute.\\n\\n The elements that support options are: <datalist>, <optgroup>, and <select>.\\n '\n\t@property\n\tdef options(self):\n\t\t\"Return the element's options as an `Options\";A=self\n\t\tif not hasattr(A,'_options'):A._options=Options(A)\n\t\treturn A._options\nclass Options:\n\t'This class represents the <option>s of a <datalist>, <optgroup> or <select>.\\n\\n It allows access to add and remove <option>s by using the `add`, `remove` and\\n `clear` methods.\\n '\n\tdef __init__(A,element):A._element=element\n\tdef __getitem__(A,key):return A.options[key]\n\tdef __iter__(A):yield from A.options\n\tdef __len__(A):return len(A.options)\n\tdef __repr__(A):return f\"{A.__class__.__name__} (length: {len(A)}) {A.options}\"\n\t@property\n\tdef options(self):'Return the list of options.';return[Element.wrap_dom_element(A)for A in self._element._dom_element.options]\n\t@property\n\tdef selected(self):'Return the selected option.';return self.options[self._element._dom_element.selectedIndex]\n\tdef add(D,value=_A,html=_A,text=_A,before=_A,**B):\n\t\t'Add a new option to the element';C=value;A=before\n\t\tif C is not _A:B['value']=C\n\t\tif html is not _A:B['innerHTML']=html\n\t\tif text is not _A:B['text']=text\n\t\tE=option(**B)\n\t\tif A:\n\t\t\tif isinstance(A,Element):A=A._dom_element\n\t\tD._element._dom_element.add(E._dom_element,A)\n\tdef clear(A):\n\t\t'Remove all options.'\n\t\twhile len(A)>0:A.remove(0)\n\tdef remove(A,index):'Remove the option at the specified index.';A._element._dom_element.remove(index)\nclass Style:\n\t\"A dict-like interface to an element's `style` attribute.\"\n\tdef __init__(A,element):A._element=element;A._style=A._element._dom_element.style\n\tdef __getitem__(A,key):return A._style.getPropertyValue(key)\n\tdef __setitem__(A,key,value):A._style.setProperty(key,value)\n\tdef remove(A,key):'Remove a CSS property from the element.';A._style.removeProperty(key)\n\tdef set(A,**B):\n\t\t'Set one or more CSS properties on the element.'\n\t\tfor(C,D)in B.items():A._element._dom_element.style.setProperty(C,D)\n\t@property\n\tdef visible(self):return self._element._dom_element.style.visibility\n\t@visible.setter\n\tdef visible(self,value):self._element._dom_element.style.visibility=value\nclass ContainerElement(Element):\n\t'Base class for elements that can contain other elements.'\n\tdef __init__(B,*C,children=_A,dom_element=_A,style=_A,classes=_A,**D):\n\t\tsuper().__init__(dom_element=dom_element,style=style,classes=classes,**D)\n\t\tfor A in list(C)+(children or[]):\n\t\t\tif isinstance(A,Element)or isinstance(A,ElementCollection):B.append(A)\n\t\t\telse:B.innerHTML+=A\n\tdef __iter__(A):yield from A.children\nclass ClassesCollection:\n\t'A set-like interface to the classes of the elements in a collection.'\n\tdef __init__(A,collection):A._collection=collection\n\tdef __contains__(A,class_name):\n\t\tfor B in A._collection:\n\t\t\tif class_name in B.classes:return True\n\t\treturn False\n\tdef __eq__(B,other):A=other;return isinstance(A,ClassesCollection)and B._collection==A._collection\n\tdef __iter__(A):\n\t\tfor B in A._all_class_names():yield B\n\tdef __len__(A):return len(A._all_class_names())\n\tdef __repr__(A):return f\"ClassesCollection({repr(A._collection)})\"\n\tdef __str__(A):return' '.join(A._all_class_names())\n\tdef add(A,*B):\n\t\t'Add one or more classes to the elements in the collection.'\n\t\tfor C in A._collection:C.classes.add(*B)\n\tdef contains(A,class_name):'Check if any element in the collection has the specified class.';return class_name in A\n\tdef remove(A,*B):\n\t\t'Remove one or more classes from the elements in the collection.'\n\t\tfor C in A._collection:C.classes.remove(*B)\n\tdef replace(A,old_class,new_class):\n\t\t'Replace one of the classes in the elements in the collection with another.'\n\t\tfor B in A._collection:B.classes.replace(old_class,new_class)\n\tdef toggle(A,*B):\n\t\t'Toggle one or more classes on the elements in the collection.'\n\t\tfor C in A._collection:C.classes.toggle(*B)\n\tdef _all_class_names(B):\n\t\tA=set()\n\t\tfor C in B._collection:\n\t\t\tfor D in C.classes:A.add(D)\n\t\treturn A\nclass StyleCollection:\n\t'A dict-like interface to the styles of the elements in a collection.'\n\tdef __init__(A,collection):A._collection=collection\n\tdef __getitem__(A,key):return[A.style[key]for A in A._collection._elements]\n\tdef __setitem__(A,key,value):\n\t\tfor B in A._collection._elements:B.style[key]=value\n\tdef __repr__(A):return f\"StyleCollection({repr(A._collection)})\"\n\tdef remove(A,key):\n\t\t'Remove a CSS property from the elements in the collection.'\n\t\tfor B in A._collection._elements:B.style.remove(key)\nclass ElementCollection:\n\t@classmethod\n\tdef wrap_dom_elements(A,dom_elements):'Wrap an iterable of dom_elements in an `ElementCollection`.';return A([Element.wrap_dom_element(A)for A in dom_elements])\n\tdef __init__(A,elements):A._elements=elements;A._classes=ClassesCollection(A);A._style=StyleCollection(A)\n\tdef __eq__(A,obj):'Check for equality by comparing the underlying DOM elements.';return isinstance(obj,ElementCollection)and obj._elements==A._elements\n\tdef __getitem__(B,key):\n\t\t'Get an item in the collection.\\n\\n If `key` is an integer or a slice we use it to index/slice the collection.\\n Otherwise, we use `key` as a query selector.\\n ';A=key\n\t\tif isinstance(A,int):return B._elements[A]\n\t\telif isinstance(A,slice):return ElementCollection(B._elements[A])\n\t\treturn B.find(A)\n\tdef __iter__(A):yield from A._elements\n\tdef __len__(A):return len(A._elements)\n\tdef __repr__(A):return f\"{A.__class__.__name__} (length: {len(A._elements)}) {A._elements}\"\n\tdef __getattr__(A,name):return[getattr(A,name)for A in A._elements]\n\tdef __setattr__(C,name,value):\n\t\tB=value;A=name\n\t\tif A.startswith('_'):super().__setattr__(A,B)\n\t\telse:\n\t\t\tfor D in C._elements:setattr(D,A,B)\n\t@property\n\tdef classes(self):'Return the classes of the elements in the collection as a `ClassesCollection`.';return self._classes\n\t@property\n\tdef elements(self):'Return the elements in the collection as a list.';return self._elements\n\t@property\n\tdef style(self):'';return self._style\n\tdef find(B,selector):\n\t\t'Find all elements that match the specified selector.\\n\\n Return the results as a (possibly empty) `ElementCollection`.\\n ';A=[]\n\t\tfor C in B._elements:A.extend(C.find(selector))\n\t\treturn ElementCollection(A)\nclass a(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a'\nclass abbr(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/abbr'\nclass address(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/address'\nclass area(Element):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/area'\nclass article(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/article'\nclass aside(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/aside'\nclass audio(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio'\nclass b(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/b'\nclass base(Element):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base'\nclass blockquote(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/blockquote'\nclass body(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/body'\nclass br(Element):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/br'\nclass button(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button'\nclass canvas(ContainerElement):\n\t'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas'\n\tdef download(A,filename='snapped.png'):'Download the current element with the filename provided in input.\\n\\n Inputs:\\n * filename (str): name of the file being downloaded\\n\\n Output:\\n None\\n ';B=a(download=filename,href=A._dom_element.toDataURL());A.append(B);B._dom_element.click()\n\tdef draw(E,what,width=_A,height=_A):\n\t\t'Draw `what` on the current element\\n\\n Inputs:\\n\\n * what (canvas image source): An element to draw into the context. The\\n specification permits any canvas image source, specifically, an\\n HTMLImageElement, an SVGImageElement, an HTMLVideoElement,\\n an HTMLCanvasElement, an ImageBitmap, an OffscreenCanvas, or a\\n VideoFrame.\\n ';C=height;B=width;A=what\n\t\tif isinstance(A,Element):A=A._dom_element\n\t\tD=E._dom_element.getContext('2d')\n\t\tif B or C:D.drawImage(A,0,0,B,C)\n\t\telse:D.drawImage(A,0,0)\nclass caption(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/caption'\nclass cite(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/cite'\nclass code(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/code'\nclass col(Element):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col'\nclass colgroup(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/colgroup'\nclass data(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/data'\nclass datalist(ContainerElement,HasOptions):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/datalist'\nclass dd(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dd'\nclass del_(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/del'\nclass details(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details'\nclass dialog(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog'\nclass div(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/div'\nclass dl(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dl'\nclass dt(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dt'\nclass em(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/em'\nclass embed(Element):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/embed'\nclass fieldset(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/fieldset'\nclass figcaption(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/figcaption'\nclass figure(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/figure'\nclass footer(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/footer'\nclass form(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form'\nclass h1(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/h1'\nclass h2(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/h2'\nclass h3(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/h3'\nclass h4(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/h4'\nclass h5(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/h5'\nclass h6(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/h6'\nclass head(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/head'\nclass header(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/header'\nclass hgroup(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/hgroup'\nclass hr(Element):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/hr'\nclass html(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/html'\nclass i(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/i'\nclass iframe(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe'\nclass img(Element):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img'\nclass input_(Element):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input'\nclass ins(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ins'\nclass kbd(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/kbd'\nclass label(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/label'\nclass legend(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/legend'\nclass li(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/li'\nclass link(Element):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link'\nclass main(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/main'\nclass map_(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/map'\nclass mark(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/mark'\nclass menu(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/menu'\nclass meta(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta'\nclass meter(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meter'\nclass nav(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/nav'\nclass object_(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/object'\nclass ol(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ol'\nclass optgroup(ContainerElement,HasOptions):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/optgroup'\nclass option(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/option'\nclass output(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/output'\nclass p(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/p'\nclass param(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/param'\nclass picture(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture'\nclass pre(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/pre'\nclass progress(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/progress'\nclass q(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/q'\nclass s(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/s'\nclass script(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script'\nclass section(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/section'\nclass select(ContainerElement,HasOptions):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select'\nclass small(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/small'\nclass source(Element):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/source'\nclass span(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/span'\nclass strong(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/strong'\nclass style(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/style'\nclass sub(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/sub'\nclass summary(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/summary'\nclass sup(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/sup'\nclass table(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/table'\nclass tbody(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tbody'\nclass td(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td'\nclass template(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/template'\nclass textarea(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea'\nclass tfoot(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tfoot'\nclass th(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th'\nclass thead(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/thead'\nclass time(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/time'\nclass title(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/title'\nclass tr(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tr'\nclass track(Element):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/track'\nclass u(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/u'\nclass ul(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ul'\nclass var(ContainerElement):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/var'\nclass video(ContainerElement):\n\t'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video'\n\tdef snap(D,to=_A,width=_A,height=_A):\n\t\t'\\n Capture a snapshot (i.e. a single frame) of a video to a canvas.\\n\\n Inputs:\\n\\n * to: the canvas to save the video frame to (if None, one is created).\\n * width: width of the snapshot (defaults to the video width).\\n * height: height of the snapshot (defaults to the video height).\\n\\n Output:\\n (Element) canvas element where the video frame snapshot was drawn into\\n ';G='CANVAS';F='Element to snap to must be a canvas.';C=height;B=width;A=to;B=B if B is not _A else D.videoWidth;C=C if C is not _A else D.videoHeight\n\t\tif A is _A:A=canvas(width=B,height=C)\n\t\telif isinstance(A,Element):\n\t\t\tif A.tag!='canvas':raise TypeError(F)\n\t\telif getattr(A,'tagName','')==G:A=canvas(dom_element=A)\n\t\telif isinstance(A,str):\n\t\t\tE=document.querySelectorAll(A)\n\t\t\tif E.length==0:raise TypeError('No element with selector {to} to snap to.')\n\t\t\tif E[0].tagName!=G:raise TypeError(F)\n\t\t\tA=canvas(dom_element=E[0])\n\t\tA.draw(D,B,C);return A\nclass wbr(Element):'Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/wbr'\nELEMENT_CLASSES=[a,abbr,address,area,article,aside,audio,b,base,blockquote,body,br,button,canvas,caption,cite,code,col,colgroup,data,datalist,dd,del_,details,dialog,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,i,iframe,img,input_,ins,kbd,label,legend,li,link,main,map_,mark,menu,meta,meter,nav,object_,ol,optgroup,option,output,p,param,picture,pre,progress,q,s,script,section,select,small,source,span,strong,style,sub,summary,sup,table,tbody,td,template,textarea,tfoot,th,thead,time,title,tr,track,u,ul,var,video,wbr]\nElement.register_element_classes(ELEMENT_CLASSES)\nclass Page:\n\t'Represents the whole page.'\n\tdef __init__(A):A.html=Element.wrap_dom_element(document.documentElement);A.body=Element.wrap_dom_element(document.body);A.head=Element.wrap_dom_element(document.head)\n\tdef __getitem__(A,selector):\"Get an item on the page.\\n\\n We don't index/slice the page like we do with `Element` and `ElementCollection`\\n as it is a bit muddier what the ideal behavior should be. Instead, we simply\\n use this as a convenience method to `find` elements on the page.\\n \";return A.find(selector)\n\t@property\n\tdef title(self):'Return the page title.';return document.title\n\t@title.setter\n\tdef title(self,value):'Set the page title.';document.title=value\n\tdef append(A,*B):'Shortcut for `page.body.append`.';A.body.append(*B)\n\tdef find(A,selector):'Find all elements that match the specified selector.\\n\\n Return the results as a (possibly empty) `ElementCollection`.\\n ';return ElementCollection.wrap_dom_elements(document.querySelectorAll(selector))\npage=Page()","websocket.py":"_A='onmessage'\nimport js\nfrom pyscript.util import as_bytearray\ncode='code'\nprotocols='protocols'\nreason='reason'\nclass EventMessage:\n\tdef __init__(A,event):A._event=event\n\tdef __getattr__(B,attr):\n\t\tA=getattr(B._event,attr)\n\t\tif attr=='data'and not isinstance(A,str):\n\t\t\tif hasattr(A,'to_py'):return A.to_py()\n\t\t\treturn memoryview(as_bytearray(A))\n\t\treturn A\nclass WebSocket:\n\tCONNECTING=0;OPEN=1;CLOSING=2;CLOSED=3\n\tdef __init__(E,**A):\n\t\tD=A['url']\n\t\tif protocols in A:B=js.WebSocket.new(D,A[protocols])\n\t\telse:B=js.WebSocket.new(D)\n\t\tobject.__setattr__(E,'_ws',B)\n\t\tfor C in['onclose','onerror',_A,'onopen']:\n\t\t\tif C in A:B[C]=A[C]\n\tdef __getattr__(A,attr):return getattr(A._ws,attr)\n\tdef __setattr__(B,attr,value):\n\t\tC=value;A=attr\n\t\tif A==_A:B._ws[A]=lambda e:C(EventMessage(e))\n\t\telse:B._ws[A]=C\n\tdef close(B,**A):\n\t\tif code in A and reason in A:B._ws.close(A[code],A[reason])\n\t\telif code in A:B._ws.close(A[code])\n\t\telse:B._ws.close()\n\tdef send(B,data):\n\t\tA=data\n\t\tif isinstance(A,str):B._ws.send(A)\n\t\telse:\n\t\t\tC=js.Uint8Array.new(len(A))\n\t\t\tfor(D,E)in enumerate(A):C[D]=E\n\t\t\tB._ws.send(C)","workers.py":"import js as _js\nfrom polyscript import workers as _workers\n_get=_js.Reflect.get\ndef _set(script,name,value=''):script.setAttribute(name,value)\nclass _ReadOnlyProxy:\n\tdef __getitem__(A,name):return _get(_workers,name)\n\tdef __getattr__(A,name):return _get(_workers,name)\nworkers=_ReadOnlyProxy()\nasync def create_named_worker(src='',name='',config=None,type='py'):\n\tC=name;B=config;from json import dumps\n\tif not src:raise ValueError('Named workers require src')\n\tif not C:raise ValueError('Named workers require a name')\n\tA=_js.document.createElement('script');A.type=type;A.src=src;_set(A,'worker');_set(A,'name',C)\n\tif B:_set(A,'config',isinstance(B,str)and B or dumps(B))\n\t_js.document.body.append(A);return await workers[C]"}}),Lr.push("import pyscript as _pyscript"),Lr.push(...["_Path","_path","_os","_pyscript"].map((e=>`del ${e}`))),Lr.push("\n");const Ur=Lr.join("\n"),Dr=Pr.join("\n"),Fr=e=>Vr.main[e],zr=e=>Vr.worker[e],qr=(e,t,n,r)=>{e[n]=()=>{const e=r?[r]:[];return e.push(...t(n)),e.map(Ve).join("\n")}},Gr=(e,t)=>{const n="mpy"===t?Ur.replace(Dr,""):Ur,r={};return qr(r,e,"codeBeforeRun",n),qr(r,e,"codeBeforeRunAsync",n),qr(r,e,"codeAfterRun"),qr(r,e,"codeAfterRunAsync"),r},Jr=(e,t)=>{const n=[...zr(t)];if(n.length){const r=Cn(e[`_${t}`]||(t.endsWith("Async")?async(e,t,...n)=>{for(const r of n)await r(e,t)}:(e,t,...n)=>{for(const r of n)r(e,t)})),s=n.map(Cn).join(", ");return Function(`return(w,x)=>(${r})(w,x,...[${s}])`)()}},Yr=Nr({typeof:"function"}),Kr=Nr({typeof:"string"}),Xr='\n import builtins\n def input(prompt=""):\n raise Exception("\\n ".join([\n "input() doesn\'t work when PyScript runs in the main thread.",\n "Consider using the worker attribute: https://pyscript.github.io/docs/2023.11.2/user-guide/workers/"\n ]))\n\n builtins.input = input\n del builtins\n del input\n',Vr={main:{onWorker:new Yr,onReady:new Yr,onBeforeRun:new Yr,onBeforeRunAsync:new Yr,onAfterRun:new Yr,onAfterRunAsync:new Yr,codeBeforeRun:new Kr([Xr]),codeBeforeRunAsync:new Kr,codeAfterRun:new Kr,codeAfterRunAsync:new Kr},worker:{onReady:new Yr,onBeforeRun:new Yr,onBeforeRunAsync:new Yr,onAfterRun:new Yr,onAfterRunAsync:new Yr,codeBeforeRun:new Kr,codeBeforeRunAsync:new Kr,codeAfterRun:new Kr,codeAfterRunAsync:new Kr}},Zr=({tagName:e})=>"SCRIPT"===e,[Qr,es]=[...fr.entries()].map((([e,t])=>async function(n,r){await Sr.get(e).plugins;const s=dr.call(new pr(null,ls.get(e)),n,{...r,type:t});return et(s.sync,Cr),s.ready})),[{PyWorker:ts,MPWorker:ns,hooks:rs,config:ss,whenDefined:os},as]=e("@pyscript/core",{PyWorker:Qr,MPWorker:es,hooks:Vr,config:{},whenDefined:lr}),is=e=>e?.interpreter&&Tr(e.interpreter),ls=new Map;for(const[e,t]of fr){if(as)break;const n=(t,n,r)=>{n?r.then((()=>pt(t,e,"done"))):pt(t,e,"done")},{config:r,configURL:s,plugins:o,error:a}=Sr.get(e);let i=0;const l=(t=e)=>`${t}-${i++}`,c=async(t,n,r)=>{if(t.hasAttribute("src"))try{return await Ar(t.getAttribute("src")).then(wr)}catch(e){n.stderr(e)}if(r)return Ve(t.textContent);const s=Ve(Ze(t.innerHTML));return console.warn(`Deprecated: use <script type="${e}"> for an always safe content parsing:\n`,s),s};let p,d=!1;const u=({XWorker:e,interpreter:t,io:n})=>{d||(d=!0,t.registerJsModule("_pyscript",{PyWorker:function(...t){const r=e(...t);return r.onerror=({error:e})=>n.stderr(e),r},js_import:(...e)=>Promise.all(e.map((e=>import(e)))),get target(){return Zr(p)?p.target.id:p.id}}))};a||o.then((()=>{const o=new Map,a={main:{...Gr(Fr,e),async onReady(t,r){u(t);for(const e of Fr("onReady"))await e(t,r);if(o.has(r)){let{message:e}=o.get(r);o.delete(r);const n=e===Hn;return e=`(${_r.CONFLICTING_CODE}) ${e} for `,e+=r.cloneNode(n).outerHTML,void t.io.stderr(e)}if(Zr(r)){const s=!vt(r),o=r.getAttribute("target"),a=o?Pn(r,o):document.createElement("script-py");if(!o){const{head:e,body:t}=document;e.contains(r)?t.append(a):r.after(a)}a.id||(a.id=l()),rt(r,"target",{value:a}),pt(r,e,"ready"),n(r,s,t["run"+(s?"Async":"")](await c(r,t.io,!0)))}else r._wrap.resolve(t);console.debug("[pyscript/main] PyScript Ready")},onWorker(e,t){et(t.sync,Cr);for(const n of Fr("onWorker"))n(e,t)},onBeforeRun(e,t){p=t,Br(Fr,e,t,"onBeforeRun")},onBeforeRunAsync:(e,t)=>(p=t,Br(Fr,e,t,"onBeforeRunAsync")),onAfterRun(e,t){Br(Fr,e,t,"onAfterRun")},onAfterRunAsync:(e,t)=>Br(Fr,e,t,"onAfterRunAsync")},worker:{...Gr(zr,e),get onReady(){return Jr(this,"onReady")},get onBeforeRun(){return Jr(this,"onBeforeRun")},get onBeforeRunAsync(){return Jr(this,"onBeforeRunAsync")},get onAfterRun(){return Jr(this,"onAfterRun")},get onAfterRunAsync(){return Jr(this,"onAfterRunAsync")}}};ls.set(e,a),ir(e,{config:r,configURL:s,interpreter:t,hooks:a,env:`${e}-script`,version:is(r),onerror(e,t){o.set(t,e)}}),customElements.define(`${e}-script`,class extends HTMLElement{constructor(){et(super(),{_wrap:Promise.withResolvers(),srcCode:"",executed:!1})}get id(){return super.id||(super.id=l())}set id(e){super.id=e}async connectedCallback(){if(!this.executed){this.executed=!0;const t=!vt(this),{io:r,run:s,runAsync:o}=await this._wrap.promise;this.srcCode=await c(this,r,!this.childElementCount),this.replaceChildren(),this.style.display="block",pt(this,e,"ready"),n(this,t,(t?o:s)(this.srcCode))}}})})),ss[e]=structuredClone(r)}export{pr as H,fr as T,dr as X,Ve as a,Dr as b,ar as c,nt as d,rs as e,ts as f,ns as g,ss as h,Xr as i,os as j,is as o,Tr as r,Ur as s};
|
2
|
-
//# sourceMappingURL=core-
|
1
|
+
const e=(e,t,n=globalThis)=>{const r=Symbol.for(e),s=r in n;return[s?n[r]:Object.defineProperty(n,r,{value:t})[r],s]};Promise.withResolvers||(Promise.withResolvers=function(){var e,t,n=new this((function(n,r){e=n,t=r}));return{resolve:e,reject:t,promise:n}});const t=(e,t=document)=>[...t.querySelectorAll(e)],n=(e,t=document)=>{const n=(new XPathEvaluator).createExpression(e).evaluate(t,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE),r=[];for(let e=0,{snapshotLength:t}=n;e<t;e++)r.push(n.snapshotItem(e));return r},r=Object.getOwnPropertyDescriptors(Response.prototype),s=e=>"function"==typeof e,o={get:(e,t)=>r.hasOwnProperty(t)?((e,t,{get:n,value:r})=>n||!s(r)?e.then((e=>e[t])):(...n)=>e.then((e=>e[t](...n))))(e,t,r[t]):((e,t)=>s(t)?t.bind(e):t)(e,e[t])};var a=(e,...t)=>new Proxy(fetch(e,...t),o);const i=new Proxy(new Map,{get:(e,t)=>(e.has(t)||e.set(t,Promise.withResolvers()),e.get(t))}),l=new Set(["__dict__","constructor","get","has","includes","next","set","then"]),c=new Proxy(Object.freeze({}),{get:(e,t)=>"string"!=typeof t||l.has(t)?void 0:i[t].promise.then((e=>e.sync))}),p="object"==typeof self?self:globalThis,u=e=>((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=s=>{if(e.has(s))return e.get(s);const[o,a]=t[s];switch(o){case 0:case-1:return n(a,s);case 1:{const e=n([],s);for(const t of a)e.push(r(t));return e}case 2:{const e=n({},s);for(const[t,n]of a)e[r(t)]=r(n);return e}case 3:return n(new Date(a),s);case 4:{const{source:e,flags:t}=a;return n(new RegExp(e,t),s)}case 5:{const e=n(new Map,s);for(const[t,n]of a)e.set(r(t),r(n));return e}case 6:{const e=n(new Set,s);for(const t of a)e.add(r(t));return e}case 7:{const{name:e,message:t}=a;return n(new p[e](t),s)}case 8:return n(BigInt(a),s);case"BigInt":return n(Object(BigInt(a)),s)}return n(new p[o](a),s)};return r})(new Map,e)(0),f="",{toString:d}={},{keys:_}=Object,m=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=d.call(e).slice(8,-1);switch(n){case"Array":return[1,f];case"Object":return[2,f];case"Date":return[3,f];case"RegExp":return[4,f];case"Map":return[5,f];case"Set":return[6,f]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},h=([e,t])=>0===e&&("function"===t||"symbol"===t),y=(e,{json:t,lossy:n}={})=>{const r=[];return((e,t,n,r)=>{const s=(e,t)=>{const s=r.push(e)-1;return n.set(t,s),s},o=r=>{if(n.has(r))return n.get(r);let[a,i]=m(r);switch(a){case 0:{let t=r;switch(i){case"bigint":a=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+i);t=null;break;case"undefined":return s([-1],r)}return s([a,t],r)}case 1:{if(i)return s([i,[...r]],r);const e=[],t=s([a,e],r);for(const t of r)e.push(o(t));return t}case 2:{if(i)switch(i){case"BigInt":return s([i,r.toString()],r);case"Boolean":case"Number":case"String":return s([i,r.valueOf()],r)}if(t&&"toJSON"in r)return o(r.toJSON());const n=[],l=s([a,n],r);for(const t of _(r))!e&&h(m(r[t]))||n.push([o(t),o(r[t])]);return l}case 3:return s([a,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return s([a,{source:e,flags:t}],r)}case 5:{const t=[],n=s([a,t],r);for(const[n,s]of r)(e||!h(m(n))&&!h(m(s)))&&t.push([o(n),o(s)]);return n}case 6:{const t=[],n=s([a,t],r);for(const n of r)!e&&h(m(n))||t.push(o(n));return n}}const{message:l}=r;return s([a,{name:i,message:l}],r)};return o})(!(t||n),!!t,new Map,r)(e),r},{parse:g,stringify:w}=JSON,A={json:!0,lossy:!0};var E=Object.freeze({__proto__:null,parse:e=>u(g(e)),stringify:e=>w(y(e,A))});const b="array",v="function",k="null",C="number",R="object",x="string",B="symbol",j="undefined";let T=0;const S=new Map,O=new Map,$=e=>O.get(e),N=e=>{if(!S.has(e)){let t;for(;O.has(t=T++););S.set(e,t),O.set(t,e)}return S.get(e)},{ArrayBuffer:P,Atomics:I,Promise:M}=globalThis,{isArray:D}=Array,{create:F,getPrototypeOf:W,values:H}=Object,L=W(Int32Array),U=F(I),q=()=>M.withResolvers();let G=0;const J=new Map,z=(e,t)=>class extends e{constructor(e,...n){super(e,...n),e instanceof t&&J.set(this,[G++,0,q()])}},Y=new WeakSet,K=e=>(Y.add(e),e),X=(e,t)=>{const{data:n}=e,r=D(n)&&(n.at(0)===t||0===n.at(1)&&!t);return r&&(e.stopImmediatePropagation(),e.preventDefault()),r},V=e=>null!==e&&"object"==typeof e&&!Y.has(e),Z=new WeakMap,Q=(e,t,n)=>{if(J.has(e))t.set(e,J.get(e)[0]);else if(!(e instanceof L||e instanceof P))for(const r of H(e))V(r)&&!n.has(r)&&(n.add(r),Q(r,t,n))},ee=(...e)=>({value:new M((t=>{let n=new Worker("data:application/javascript,onmessage%3De%3D%3EpostMessage(!Atomics.wait(...e.data))");n.onmessage=()=>t("ok"),n.postMessage(e)}))}),te=(e,t,n)=>{for(const[n,r]of t)Z.set(n,[r,e.currentTarget]);(({currentTarget:e,type:t,origin:n,lastEventId:r,source:s,ports:o},a)=>{e.dispatchEvent(new MessageEvent(t,{data:a,origin:n,lastEventId:r,source:s,ports:o}))})(e,n)};let{BigInt64Array:ne,Int32Array:re,SharedArrayBuffer:se,Worker:oe}=globalThis,ae=e=>e,ie=!1;const le=e=>({...e,type:"module"});try{new se(4),oe=class extends oe{constructor(e,t){super(e,le(t))}},U.waitAsync||(U.waitAsync=ee)}catch(e){const t=crypto.randomUUID(),n=new Map,r=(e,t,n,...r)=>{e.addEventListener(t,n,...r)},s=({serviceWorker:e},s,o)=>{let a,i=!0;r(e,"message",(e=>{if(X(e,t)){const[r,s,o]=e.data,i=[s,o].join(","),l=e=>{n.delete(i),a.postMessage([t,s,o,e])},c=n.get(i);if(c)l(c);else{const{promise:e,resolve:t}=q();n.set(i,t),e.then(l)}}})),e.getRegistration(s).then((t=>t??e.register(s))).then((function t(n){i=i&&!!e.controller,a=n.installing||n.waiting||n.active,"activated"===a.state?i?o():location.reload():r(a,"statechange",(()=>t(n)),{once:!0})}))};ae=K,ie=!0,U.notify=(e,r)=>{const[s,o]=(e=>Z.get(e))(e),a=[s,r].join(","),i=n.get(a);return i?i(e):n.set(a,e),o.postMessage([t,1,e,s,r]),0},U.waitAsync=(e,...t)=>{const[n,r]=((e,t)=>{const n=J.get(e),[r,s,{promise:o}]=n;return n[1]=t,[r,o]})(e,...t);return{value:r}},se=class extends P{},ne=z(ne,se),re=z(re,se);let o=null;oe=class extends oe{constructor(e,n){let a=n?.serviceWorker||"";if(a){if(a=new URL(a,location.href).href,n={...n,serviceWorker:a},!o){const{promise:e,resolve:t}=q();s(navigator,a,t),o=e}o.then((()=>super.postMessage([t,3])))}super(e,le(n)),super.postMessage([t,0,n]),r(this,"message",(e=>{if(X(e,t)){const[t,n,...r]=e.data;switch(n){case 1:((e,t,n)=>{for(const[r,[s,o,{resolve:a}]]of J)if(t===s&&n===o){for(let t=0;t<e.length;t++)r[t]=e[t];J.delete(r),a("ok");break}})(...r);break;case 2:te(e,...r)}}}))}postMessage(e,...n){return super.postMessage(((e,t)=>{const n=new Map;return V(t)&&Q(t,n,new Set),n.size?[e,2,n,t]:t})(t,e),...n)}}}const{BYTES_PER_ELEMENT:ce}=Int32Array,{BYTES_PER_ELEMENT:pe}=Uint16Array,{notify:ue}=U,fe=new TextDecoder("utf-16"),de=new WeakSet,_e=(...e)=>(de.add(e),e);let me="";let he=0;const ye=([e,t,n,r,s,o,a,i,l],c)=>(...p)=>{let u=""!==me,f=0;u&&"="!==me[0]&&"-"!==me[0]&&(f=((e,t)=>setTimeout(console.warn,3e3,`💀🔒 - proxy.${e}() in proxy.${t}()`))(c,me));const d=he++,_=[];de.has(p.at(-1)||_)&&de.delete(_=p.pop());const m=n(i?p.map(i):p);let h=t(2*ce);return a([e,2,c,d,h,m,r],{transfer:_}),l(h,0).value.then((()=>{u&&clearTimeout(f);const n=h[1];if(!n)return;const r=pe*n;return h=t(r+r%ce),a([e,1,d,h]),l(h,0).value.then((()=>{const e=new Uint16Array(h.buffer),t=o?e.subarray(0,n):e.slice(0,n);return s(fe.decode(t))}))}))};var ge=({parse:e,stringify:t,transform:n}=JSON)=>{const r=((e,t)=>async(n,r,[s,o,a,i,l])=>{l&&(me=s);try{const s=await n(...i);if(void 0!==s){const n=e(t?t(s):s);r.set(o,n),a[1]=n.length}}finally{l&&(me=""),a[0]=1,ue(a,0)}})(t,n),s=crypto.randomUUID();return{Worker:class extends oe{constructor(t,o){const a=new Map,i=new Map;super(t,o),this.proxy=((e,t)=>new Proxy(t,{get:(t,n)=>{let r;return"then"!==n&&(r=t.get(n),r||(r=ye(e,n),t.set(n,r))),r},set:(e,t,n)=>"then"!==t&&!!e.set(t,n)}))([s,e=>new re(new se(e)),ae,!1,e,ie,(...e)=>this.postMessage(...e),n,U.waitAsync],a),this.postMessage(ae([s,0,o])),this.addEventListener("message",(e=>{if(X(e,s)){const[t,n,...s]=e.data;switch(n){case 2:((e,t,n,r)=>{const[s]=r,o=n.get(s);if(!o)throw new Error(`Unknown proxy.${s}()`);e(o,t,r)})(r,i,a,s);break;case 1:((e,[t,n])=>{const r=e.get(t);e.delete(t);for(let e=new Uint16Array(n.buffer),t=0,{length:s}=r;t<s;t++)e[t]=r.charCodeAt(t);ue(n,0)})(i,s)}}}))}},polyfill:ie,transfer:_e}},we=Object.fromEntries([b,"bigint","boolean",v,k,C,R,x,B,j].map(((e,t)=>[e,t])));const Ae="ownKeys",Ee="destruct",{[Ae]:be}=Reflect,ve=new Map(be(Symbol).filter((e=>typeof Symbol[e]===B)).map((e=>[Symbol[e],e]))),ke=e=>ve.get(e)||`.${Symbol.keyFor(e)||""}`,Ce="960fd6fe-ad03-40d1-a314-e58d84bce14f",Re="="+Ce,xe="-"+Ce,Be=new FinalizationRegistry((([e,t,n])=>{n&&console.debug(`%c${String(t)}`,"font-weight:bold","collected"),e(t)})),je=Object.create(null),Te=(e,t,{debug:n,handler:r,return:s,token:o=e}=je)=>{const a=s||new Proxy(e,r||je),i=[a,[t,e,!!n]];return!1!==o&&i.push(o),Be.register(...i),a},{addEventListener:Se}=EventTarget.prototype,Oe=new WeakMap;Reflect.defineProperty(EventTarget.prototype,"addEventListener",{value(e,t,...n){const r=n.at(0)?.invoke;if(r){let t=Oe.get(this);t||(t=new Map,Oe.set(this,t)),t.set(e,[].concat(r)),delete n[0].invoke}return Se.call(this,e,t,...n)}});const{isArray:$e}=Array;const{url:Ne}=import.meta,Pe=/import\((['"])([^)]+?\.js)\1\)/g,Ie=(e,t,n)=>`import(${t}${new URL(n,Ne).href}${t})`,{Worker:Me}=(e=>{const t=ge(e),n=e=>{const t=typeof e;switch(t){case R:return null===e?[we[k],e]:e===globalThis?[we[R],null]:$e(e)?[we[b],N(e)]:[we[R],e instanceof L?e:N(e)];case v:return[we[v],N(e)];case B:return[we[B],ke(e)];default:return[we[t],e]}};class r extends t.Worker{constructor(e,t){const{proxy:r}=super(e,t),{[xe]:s}=r,o=new Map,a=e=>{o.delete(e),s(Ee,e)},i=([e,t])=>{switch(e){case we[R]:if(null===t)return globalThis;if(typeof t===C)return $(t);if(!(t instanceof L))for(const e in t)t[e]=i(t[e]);return t;case we[b]:return typeof t===C?$(t):t.map(i);case we[v]:switch(typeof t){case C:return $(t);case x:{let e=o.get(t)?.deref();return e||(e=Te(t,a,{token:!1,return:function(...e){return e.length&&e[0]instanceof Event&&(e=>{const{currentTarget:t,target:n,type:r}=e,s=Oe.get(t||n)?.get(r);if(s)for(const t of s)e[t]()})(e[0]),s("apply",t,n(this),e.map(n)).then(i)}}),o.set(t,new WeakRef(e))),e}}case we[B]:return(e=>{if(e.startsWith("."))return Symbol.for(e.slice(1));for(const[t,n]of ve)if(n===e)return t})(t);default:return t}};r[Re]=(e,t,...r)=>{if(e===Ee)(e=>{const[t,n]=typeof e===C?[O,S]:[S,O],r=t.has(e);r&&(n.delete(t.get(e)),t.delete(e))})(t);else{const s=Reflect[e],o=null==t?globalThis:$(t);switch(e){case"defineProperty":{const[e,t]=r.map(i);return n(s(o,e,t))}case"getOwnPropertyDescriptor":{const e=s(o,...r.map(i));if(e){const{get:t,set:r,value:s}=e;t&&(e.get=n(t)),r&&(e.set=n(r)),s&&(e.value=n(s))}return[we[e?R:j],e]}case Ae:return[we[b],s(o).map(n)];default:return((e,t,r)=>n(e(t,...r.map(i))))(s,o,r)}}}}}return{...t,Worker:r}})(E);const De=new WeakMap,Fe=e=>{const t=e||console,n={buffered:He,stderr:(t.stderr||console.error).bind(t),stdout:(t.stdout||console.log).bind(t)};return{stderr:(...e)=>n.stderr(...e),stdout:(...e)=>n.stdout(...e),async get(e){const t=await e;return De.set(t,n),t}}},We=new TextDecoder,He=(e,t=10)=>{const n=[];return r=>{if(r instanceof Uint8Array)for(const s of r)s===t?e(We.decode(new Uint8Array(n.splice(0)))):n.push(s);else e(r)}},Le=new Map,Ue=e=>Le.get(e),qe=(e,t)=>{try{return Function("require",t)(Ue)}catch(t){De.get(e).stderr(t)}};var Ge={type:"dummy",module:()=>"data:application/javascript,",engine:e=>Fe().get(e),registerJSModule(e,t,n){Le.set(t,n)},run:qe,runAsync:qe,runEvent:async(e,t,n)=>{try{await Function("require","e",`return ${t}(e)`)(Ue,n)}catch(t){De.get(e).stderr(t)}},transform:(e,t)=>t,writeFile(){}};const Je={object(...e){return this.string(function(e){for(var t=e[0],n=1,r=arguments.length;n<r;n++)t+=arguments[n]+e[n];return t}(...e))},string(e){for(const t of e.split(/[\r\n]+/))if(t.trim().length){/^(\s+)/.test(t)&&(e=e.replace(new RegExp("^"+RegExp.$1,"gm"),""));break}return e}},{replace:ze}="",Ye=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34);/g,Ke={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'},Xe=e=>Ke[e],Ve=(e,...t)=>Je[typeof e](e,...t),Ze=e=>ze.call(e,Ye,Xe),{isArray:Qe}=Array,{assign:et,create:tt,defineProperties:nt,defineProperty:rt,entries:st}=Object,{all:ot,resolve:at}=new Proxy(Promise,{get:(e,t)=>e[t].bind(e)}),it=(e,t=location.href)=>new URL(e,t.replace(/^blob:/,"")).href;let lt=0;const ct=(e,t)=>({id:e.id||(e.id=`${t}-w${lt++}`),tag:e.tagName}),pt=(e,t,n,r=!1,s=CustomEvent)=>{e.dispatchEvent(new s(`${t}:${n}`,{bubbles:!0,detail:{worker:r}}))},ut=(e,t,n,r)=>({type:t,config:n,interpreter:r,io:De.get(r),run:(t,...n)=>e.run(r,t,...n),runAsync:(t,...n)=>e.runAsync(r,t,...n),runEvent:(...t)=>e.runEvent(r,...t)}),ft=e=>e.replace(/^(?:\n|\r\n)/,""),dt=(e,t,n,r)=>{const s=e[t].bind(e);e[t]="run"===t?(e,t,...o)=>{n&&s(e,n,...o);const a=s(e,ft(t),...o);return r&&s(e,r,...o),a}:async(e,t,...o)=>{n&&await s(e,n,...o);const a=await s(e,ft(t),...o);return r&&await s(e,r,...o),a}},_t=Symbol.for("polyscript.js_modules"),mt=new Map;rt(globalThis,_t,{value:mt});const ht=new Proxy(mt,{get:(e,t)=>e.get(t),has:(e,t)=>e.has(t),ownKeys:e=>[...e.keys()]}),yt=(e,t)=>!t.startsWith("_"),gt=(e,t)=>new Proxy(e,{has:yt,get:(e,n)=>e[t][n]}),wt=(e,t,n,r)=>{if("pyodide"===e)return;const s="polyscript.js_modules";for(const e of Reflect.ownKeys(r))t.registerJSModule(n,`${s}.${e}`,gt(r,e));t.registerJSModule(n,s,r)},At=(e,t)=>import(e).then((e=>{mt.set(t,{...e})})),Et=e=>new Promise(((t,n)=>{document.querySelector(`link[rel="stylesheet"][href="${e}"]`)?t():document.head.append(et(document.createElement("link"),{rel:"stylesheet",href:e,onload:t,onerror:n}))})),bt=e=>/\.css$/i.test(new URL(e).pathname),vt=e=>/^(?:false|0|no)$/i.test(e.getAttribute("async")),kt=!globalThis.window,Ct=({FS:e,PATH:t,PATH_FS:n},r,s)=>{const o=n.resolve(r),a=t.dirname(o);return e.mkdirTree?e.mkdirTree(a):xt(e,a),e.writeFile(o,new Uint8Array(s),{canOwn:!0})},Rt=e=>{const t=e.split("/");return t.pop(),t.join("/")},xt=(e,t)=>{const n=[];for(const r of t.split("/"))"."!==r&&".."!==r&&(n.push(r),r&&e.mkdir(n.join("/")))},Bt=(e,t)=>{const n=[];for(const e of t.split("/"))switch(e){case"":case".":break;case"..":n.pop();break;default:n.push(e)}return[e.cwd()].concat(n).join("/").replace(/^\/+/,"/")},jt=e=>{const t=e.map((e=>e.trim().replace(/(^[/]*|[/]*$)/g,""))).filter((e=>""!==e&&"."!==e)).join("/");return e[0].startsWith("/")?`/${t}`:t},Tt=(e,t)=>a(it(e,t)).arrayBuffer(),St=(e,t,n,r)=>ot((e=>{for(const{files:t,to_file:n,from:r=""}of e){if(void 0!==t&&void 0!==n)throw new Error("Cannot use 'to_file' and 'files' parameters together!");if(void 0===t&&void 0===n&&r.endsWith("/"))throw new Error(`Couldn't determine the filename from the path ${r}, please supply 'to_file' parameter.`)}return e.flatMap((({from:e="",to_folder:t=".",to_file:n,files:r})=>{if(Qe(r))return r.map((n=>({url:jt([e,n]),path:jt([t,n])})));const s=n||e.slice(1+e.lastIndexOf("/"));return[{url:e,path:jt([t,s])}]}))})(n).map((({url:n,path:s})=>Tt(n,r).then((n=>e.writeFile(t,s,n)))))),Ot=(e,t)=>t.endsWith("/")?`${t}${e.split("/").pop()}`:t,$t=(e,t)=>e.replace(/\{.+?\}/g,(e=>{if(!t.has(e))throw new SyntaxError(`Invalid template: ${e}`);return t.get(e)})),Nt=(e,t,n,r)=>ot((e=>{const t=new Map,n=new Set,r=[];for(const[s,o]of st(e))if(/^\{.+\}$/.test(s)){if(t.has(s))throw new SyntaxError(`Duplicated template: ${s}`);t.set(s,$t(o,t))}else{const e=$t(s,t),a=Ot(e,$t(o||"./",t));if(n.has(a))throw new SyntaxError(`Duplicated destination: ${a}`);n.add(a),r.push({url:e,path:a})}return r})(n).map((({url:n,path:s})=>Tt(n,r).then((r=>e.writeFile(t,s,r,n)))))),Pt=({main:e,worker:t},n)=>{const r=[];if(t&&kt)for(let[e,s]of st(t))e=it(e,n),r.push(At(e,s));if(e&&!kt)for(let[t,s]of st(e))t=it(t,n),bt(t)?Et(t):r.push(At(t,s));return ot(r)},{assign:It}=Object,Mt="entries",Dt="readonly",Ft="readwrite",Wt={durability:"default",prefix:"IDBMap"},Ht=({target:{result:e}})=>e;class Lt extends EventTarget{#e;#t;#n;async#r(e,t){const n=(await this.#e).transaction(Mt,t,this.#t);return new Promise(((t,r)=>It(e(n.objectStore(Mt)),{onsuccess:t,onerror:r})))}constructor(e,{durability:t=Wt.durability,prefix:n=Wt.prefix}=Wt){super(),this.#n=n,this.#t={durability:t},this.#e=new Promise(((t,n)=>{It(indexedDB.open(`${this.#n}/${e}`),{onupgradeneeded({target:{result:e,transaction:n}}){e.objectStoreNames.length||e.createObjectStore(Mt),n.oncomplete=()=>t(e)},onsuccess(e){t(Ht(e))},onerror(e){n(e),this.dispatchEvent(e)}})})).then((e=>{const t=this.dispatchEvent.bind(this);for(const n in e)n.startsWith("on")&&(e[n]=t);return e}))}dispatchEvent(e){const{type:t,message:n,isTrusted:r}=e;return super.dispatchEvent(r?It(new Event(t),{message:n}):e)}async close(){(await this.#e).close()}get size(){return this.#r((e=>e.count()),Dt).then(Ht)}async clear(){await this.#r((e=>e.clear()),Ft)}async delete(e){await this.#r((t=>t.delete(e)),Ft)}async entries(){const e=await this.keys();return Promise.all(e.map((e=>this.get(e).then((t=>[e,t])))))}async forEach(e,t=this){for(const[n,r]of await this.entries())await e.call(t,r,n,this)}async get(e){return await this.#r((t=>t.get(e)),Dt).then(Ht)}async has(e){return void 0!==await this.#r((t=>t.getKey(e)),Dt).then(Ht)}async keys(){return await this.#r((e=>e.getAllKeys()),Dt).then(Ht)}async set(e,t){return await this.#r((n=>n.put(t,e)),Ft),this}async values(){const e=await this.keys();return Promise.all(e.map((e=>this.get(e))))}get[Symbol.toStringTag](){return this.#n}}class Ut extends Map{#s;#o;constructor(...e){super(),this.#s=new Lt(...e),this.#o=this.#s.entries().then((e=>{for(const[t,n]of e)super.set(t,n)}))}async sync(){await this.#o}clear(){return this.#o=this.#o.then((()=>this.#s.clear())),super.clear()}delete(e){return this.#o=this.#o.then((()=>this.#s.delete(e))),super.delete(e)}set(e,t){return this.#o=this.#o.then((()=>this.#s.set(e,t))),super.set(e,t)}}const qt=new WeakMap,Gt=(e,t,n)=>{"polyscript"===t&&(n.lazy_py_modules=async(...t)=>(await qt.get(e)(t),t.map((t=>e.pyimport(t)))),n.storage=async e=>{const t=new Ut(e);return await t.sync(),t},n.JSON=E),e.registerJsModule(t,n)},Jt=(e,t)=>{if(e.endsWith("/*")){if(/\.(zip|whl|tgz|tar(?:\.gz)?)$/.test(t))return RegExp.$1;throw new Error(`Unsupported archive ${t}`)}return""},zt=(e,t,...n)=>{try{return e.runPython(Ve(t),...n)}catch(t){De.get(e).stderr(t)}},Yt=async(e,t,...n)=>{try{return await e.runPythonAsync(Ve(t),...n)}catch(t){De.get(e).stderr(t)}},Kt=async(e,t,n)=>{const[r,...s]=t.split(".");let o,a=e.globals.get(r);for(const e of s)[o,a]=[a,a[e]];try{await a.call(o,n)}catch(t){De.get(e).stderr(t)}};var Xt=(new TextEncoder).encode('from uio import StringIO\nimport sys\n\nclass Response:\n def __init__(self, f):\n self.raw = f\n self.encoding = "utf-8"\n self._cached = None\n\n def close(self):\n if self.raw:\n self.raw.close()\n self.raw = None\n self._cached = None\n\n @property\n def content(self):\n if self._cached is None:\n try:\n self._cached = self.raw.read()\n finally:\n self.raw.close()\n self.raw = None\n return self._cached\n\n @property\n def text(self):\n return str(self.content, self.encoding)\n\n def json(self):\n import ujson\n\n return ujson.loads(self.content)\n\n\n# TODO try to support streaming xhr requests, a-la pyodide-http\nHEADERS_TO_IGNORE = ("user-agent",)\n\n\ntry:\n import js\nexcept Exception as err:\n raise OSError("This version of urequests can only be used in the browser")\n\n# TODO try to support streaming xhr requests, a-la pyodide-http\n\nHEADERS_TO_IGNORE = ("user-agent",)\n\n\ndef request(\n method,\n url,\n data=None,\n json=None,\n headers={},\n stream=None,\n auth=None,\n timeout=None,\n parse_headers=True,\n):\n from js import XMLHttpRequest\n\n xhr = XMLHttpRequest.new()\n xhr.withCredentials = False\n\n if auth is not None:\n import ubinascii\n\n username, password = auth\n xhr.open(method, url, False, username, password)\n else:\n xhr.open(method, url, False)\n\n for name, value in headers.items():\n if name.lower() not in HEADERS_TO_IGNORE:\n xhr.setRequestHeader(name, value)\n\n if timeout:\n xhr.timeout = int(timeout * 1000)\n\n if json is not None:\n assert data is None\n import ujson\n\n data = ujson.dumps(json)\n # s.write(b"Content-Type: application/json\\r\\n")\n xhr.setRequestHeader("Content-Type", "application/json")\n\n xhr.send(data)\n\n # Emulates the construction process in the original urequests\n resp = Response(StringIO(xhr.responseText))\n resp.status_code = xhr.status\n resp.reason = xhr.statusText\n resp.headers = xhr.getAllResponseHeaders()\n\n return resp\n\n\n# Other methods - head, post, put, patch, delete - are not used by\n# mip and therefore not included\n\n\ndef get(url, **kw):\n return request("GET", url, **kw)\n\n\n# Content below this line is from the Micropython MIP package and is covered\n# by the applicable MIT license:\n# \n# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, \n# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER \n# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING \n# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER \n# DEALINGS IN THE SOFTWARE.\n\n# MicroPython package installer\n# MIT license; Copyright (c) 2022 Jim Mussared\n\n\n_PACKAGE_INDEX = const("https://micropython.org/pi/v2")\n_CHUNK_SIZE = 128\n\n\n# This implements os.makedirs(os.dirname(path))\ndef _ensure_path_exists(path):\n import os\n\n split = path.split("/")\n\n # Handle paths starting with "/".\n if not split[0]:\n split.pop(0)\n split[0] = "/" + split[0]\n\n prefix = ""\n for i in range(len(split) - 1):\n prefix += split[i]\n try:\n os.stat(prefix)\n except:\n os.mkdir(prefix)\n prefix += "/"\n\n\n# Copy from src (stream) to dest (function-taking-bytes)\ndef _chunk(src, dest):\n buf = memoryview(bytearray(_CHUNK_SIZE))\n while True:\n n = src.readinto(buf)\n if n == 0:\n break\n dest(buf if n == _CHUNK_SIZE else buf[:n])\n\n\n# Check if the specified path exists and matches the hash.\ndef _check_exists(path, short_hash):\n import os\n\n try:\n import binascii\n import hashlib\n\n with open(path, "rb") as f:\n hs256 = hashlib.sha256()\n _chunk(f, hs256.update)\n existing_hash = str(binascii.hexlify(hs256.digest())[: len(short_hash)], "utf-8")\n return existing_hash == short_hash\n except:\n return False\n\n\ndef _rewrite_url(url, branch=None):\n if not branch:\n branch = "HEAD"\n if url.startswith("github:"):\n url = url[7:].split("/")\n url = (\n "https://raw.githubusercontent.com/"\n + url[0]\n + "/"\n + url[1]\n + "/"\n + branch\n + "/"\n + "/".join(url[2:])\n )\n return url\n\n\ndef _download_file(url, dest):\n response = get(url)\n try:\n if response.status_code != 200:\n print("Error", response.status_code, "requesting", url)\n return False\n\n print("Copying:", dest)\n _ensure_path_exists(dest)\n with open(dest, "wb") as f:\n _chunk(response.raw, f.write)\n\n return True\n finally:\n response.close()\n\n\ndef _install_json(package_json_url, index, target, version, mpy):\n response = get(_rewrite_url(package_json_url, version))\n try:\n if response.status_code != 200:\n print("Package not found:", package_json_url)\n return False\n\n package_json = response.json()\n finally:\n response.close()\n for target_path, short_hash in package_json.get("hashes", ()):\n fs_target_path = target + "/" + target_path\n if _check_exists(fs_target_path, short_hash):\n print("Exists:", fs_target_path)\n else:\n file_url = "{}/file/{}/{}".format(index, short_hash[:2], short_hash)\n if not _download_file(file_url, fs_target_path):\n print("File not found: {} {}".format(target_path, short_hash))\n return False\n for target_path, url in package_json.get("urls", ()):\n fs_target_path = target + "/" + target_path\n if not _download_file(_rewrite_url(url, version), fs_target_path):\n print("File not found: {} {}".format(target_path, url))\n return False\n for dep, dep_version in package_json.get("deps", ()):\n if not _install_package(dep, index, target, dep_version, mpy):\n return False\n return True\n\n\ndef _install_package(package, index, target, version, mpy):\n if (\n package.startswith("http://")\n or package.startswith("https://")\n or package.startswith("github:")\n ):\n if package.endswith(".py") or package.endswith(".mpy"):\n print("Downloading {} to {}".format(package, target))\n return _download_file(\n _rewrite_url(package, version), target + "/" + package.rsplit("/")[-1]\n )\n else:\n if not package.endswith(".json"):\n if not package.endswith("/"):\n package += "/"\n package += "package.json"\n print("Installing {} to {}".format(package, target))\n else:\n if not version:\n version = "latest"\n print("Installing {} ({}) from {} to {}".format(package, version, index, target))\n\n mpy_version = (\n sys.implementation._mpy & 0xFF if mpy and hasattr(sys.implementation, "_mpy") else "py"\n )\n\n # WARNING: mpy_version fails miserably with 1.22.0-380\n package = "{}/package/{}/{}/{}.json".format(index, "py", package, version)\n\n return _install_json(package, index, target, version, mpy)\n\n\ndef install(package, index=None, target=None, version=None, mpy=True):\n if not target:\n for p in sys.path:\n if p.endswith("/lib"):\n target = p\n break\n else:\n print("Unable to find lib dir in sys.path")\n return\n\n if not index:\n index = _PACKAGE_INDEX\n\n if _install_package(package, index.rstrip("/"), target, version, mpy):\n print("Done")\n else:\n print("Package may be partially installed")\n');const Vt=async e=>(await import("./toml-DiUM0_qs.js")).parse(e),Zt=(e,t)=>{try{e.mkdir(t)}catch(e){}};var Qt={type:"micropython",module:(e="1.24.0-preview-114")=>`https://cdn.jsdelivr.net/npm/@micropython/micropython-webassembly-pyscript@${e}/micropython.mjs`,async engine({loadMicroPython:e},t,n,r){const{stderr:s,stdout:o,get:a}=Fe({stderr:He(console.error),stdout:He(console.log)});n=n.replace(/\.m?js$/,".wasm");const i=await a(e({linebuffer:!1,stderr:s,stdout:o,url:n})),l=en.bind(this,i,r);return qt.set(i,l),t.files&&await Nt(this,i,t.files,r),t.fetch&&await St(this,i,t.fetch,r),t.js_modules&&await Pt(t.js_modules,r),this.writeFile(i,"./mip.py",Xt),t.packages&&await l(t.packages),i},registerJSModule:Gt,run:zt,runAsync:Yt,runEvent:Kt,transform:(e,t)=>e.PyProxy.toJs(t),writeFile:(e,t,n,r)=>{const{FS:s,_module:{PATH:o,PATH_FS:a}}=e,i={FS:s,PATH:o,PATH_FS:a},l=Jt(t,r);if(l){const r=t.slice(0,-1);switch("./"!==r&&s.mkdir(r),l){case"whl":case"zip":{const e=new Blob([n],{type:"application/zip"});return import("./zip-C10rja2G.js").then((async({BlobReader:t,Uint8ArrayWriter:n,ZipReader:a})=>{const i=new a(new t(e));for(const e of await i.getEntries()){const{directory:t,filename:a}=e,i=r+a;if(t)Zt(s,i);else{Zt(s,o.dirname(i));const t=await e.getData(new n);s.writeFile(i,t,{canOwn:!0})}}i.close()}))}case"tgz":case"tar.gz":{const t="./_.tar.gz";return Ct(i,t,n),void e.runPython(`\n import os, gzip, tarfile\n tar = tarfile.TarFile(fileobj=gzip.GzipFile(fileobj=open("${t}", "rb")))\n for f in tar:\n name = f"${r}{f.name}"\n if f.type == tarfile.DIRTYPE:\n if f.name != "./":\n os.mkdir(name.strip("/"))\n else:\n dir = os.path.dirname(name)\n if not os.path.exists(dir):\n os.mkdir(dir)\n source = tar.extractfile(f)\n with open(name, "wb") as dest:\n dest.write(source.read())\n dest.close()\n tar.close()\n os.remove("${t}")\n `)}}}return Ct(i,t,n)}};async function en(e,t,n){let r;for(const s of n)if(s.endsWith(".whl")){const n=it(s,t),r=await a(n).arrayBuffer();await this.writeFile(e,"./*",r,n)}else r||(r=e.pyimport("mip")),r.install(s)}const tn={dict_converter:Object.fromEntries};let nn=!1;const rn=e=>(...t)=>{try{return nn=!0,e(...t)}finally{nn=!1}};let sn=!1;const on=()=>{if(sn)return;sn=!0;const e=new WeakMap,t=e=>e.destroy(),n=n=>{for(let r=0;r<n.length;r++){const s=n[r];if("function"==typeof s&&"copy"in s){nn=!1;let o=e.get(s)?.deref();if(!o)try{o=Te(s.copy(),t),e.set(s,new WeakRef(o))}catch(e){console.error(e)}o&&(n[r]=o),nn=!0}}},{call:r}=Function,s=r.bind(r,r.apply);Object.defineProperties(Function.prototype,{apply:{value(e,t){return nn&&n(t),s(this,e,t)}},call:{value(e,...t){return nn&&n(t),s(this,e,t)}}})};var an={type:"pyodide",module:(e="0.26.2")=>`https://cdn.jsdelivr.net/pyodide/v${e}/full/pyodide.mjs`,async engine({loadPyodide:e},t,n,r){kt||"auto"!==t.experimental_create_proxy||on();const{stderr:s,stdout:o,get:a}=Fe(),i=n.slice(0,n.lastIndexOf("/")),l=await a(e({stderr:s,stdout:o,indexURL:i})),c=cn.bind(l);return qt.set(l,c),t.files&&await Nt(this,l,t.files,r),t.fetch&&await St(this,l,t.fetch,r),t.js_modules&&await Pt(t.js_modules,r),t.packages&&await c(t.packages),l},registerJSModule:Gt,run:rn(zt),runAsync:rn(Yt),runEvent:rn(Kt),transform:(e,t)=>ln.call(e,t),writeFile:(e,t,n,r)=>{const s=Jt(t,r);if(s)return e.unpackArchive(n,s,{extractDir:t.slice(0,-1)});const{FS:o,PATH:a,_module:{PATH_FS:i}}=e;return Ct({FS:o,PATH:a,PATH_FS:i},t,n)}};function ln(e){const{ffi:{PyProxy:t}}=this;if(e&&"object"==typeof e){if(e instanceof t)return e.toJs(tn);if(e instanceof Map)return new Map([...e.entries()]);if(Qe(e))return e.map(ln,this)}return e}async function cn(e){await this.loadPackage("micropip");const t=this.pyimport("micropip");await t.install(e,{keep_going:!0}),t.destroy()}const pn="ruby-wasm-wasi",un=pn.replace(/\W+/g,"_");var fn={type:pn,experimental:!0,module:(e="2.6.2")=>`https://cdn.jsdelivr.net/npm/@ruby/3.2-wasm-wasi@${e}/dist/browser/+esm`,async engine({DefaultRubyVM:e},t,n,r){n=n.replace(/\/browser\/\+esm$/,"/ruby.wasm");const s=await a(n).arrayBuffer(),o=await WebAssembly.compile(s),{vm:i}=await e(o);return t.files&&await Nt(this,i,t.files,r),t.fetch&&await St(this,i,t.fetch,r),t.js_modules&&await Pt(t.js_modules,r),i},registerJSModule(e,t,n){t=t.replace(/\W+/g,"__");const r=`__module_${un}_${t}`;globalThis[r]=n,this.run(e,`require "js";$${t}=JS.global[:${r}]`),delete globalThis[r]},run:(e,t,...n)=>e.eval(Ve(t),...n),runAsync:(e,t,...n)=>e.evalAsync(Ve(t),...n),async runEvent(e,t,n){if(/^xworker\.(on\w+)$/.test(t)){const{$1:t}=RegExp,r=`__module_${un}_event`;globalThis[r]=n,this.run(e,`require "js";$xworker.call("${t}",JS.global[:${r}])`),delete globalThis[r]}else{const r=this.run(e,`method(:${t})`);await r.call(t,e.wrap(n))}},transform:(e,t)=>t,writeFile:()=>{throw new Error(`writeFile is not supported in ${pn}`)}};var dn={type:"wasmoon",module:(e="1.16.0")=>`https://cdn.jsdelivr.net/npm/wasmoon@${e}/+esm`,async engine({LuaFactory:e,LuaLibraries:t},n,r,s){const{stderr:o,stdout:a,get:i}=Fe(),l=await i((new e).createEngine());return l.global.getTable(t.Base,(e=>{l.global.setField(e,"print",a),l.global.setField(e,"printErr",o)})),n.files&&await Nt(this,l,n.files,s),n.fetch&&await St(this,l,n.fetch,s),n.js_modules&&await Pt(n.js_modules,s),l},registerJSModule:(e,t,n)=>{e.global.set(t,n)},run:(e,t,...n)=>{try{return e.doStringSync(Ve(t),...n)}catch(t){De.get(e).stderr(t)}},runAsync:async(e,t,...n)=>{try{return await e.doString(Ve(t),...n)}catch(t){De.get(e).stderr(t)}},runEvent:async(e,t,n)=>{const[r,...s]=t.split(".");let o,a=e.global.get(r);for(const e of s)[o,a]=[a,a[e]];try{await a.call(o,n)}catch(t){De.get(e).stderr(t)}},transform:(e,t)=>t,writeFile:({cmodule:{module:{FS:e}}},t,n)=>((e,t,n)=>(xt(e,Rt(t)),t=Bt(e,t),e.writeFile(t,new Uint8Array(n),{canOwn:!0})))(e,t,n)};const _n=new WeakMap,mn=async(e,t)=>{const{shelter:n,destroy:r,io:s}=_n.get(e),{output:o,result:a}=await n.captureR(Ve(t));for(const{type:e,data:t}of o)s[e](t);return Te(a,r,{token:!1})};var hn={type:"webr",experimental:!0,module:(e="0.4.0")=>`https://cdn.jsdelivr.net/npm/webr@${e}/dist/webr.mjs`,async engine(e,t,n,r){const{get:s}=Fe(),o=new e.WebR;await s(o.init().then((()=>o)));const a=await new o.Shelter;return _n.set(o,{module:e,shelter:a,destroy:a.destroy.bind(a),io:De.get(o)}),t.files&&await Nt(this,o,t.files,r),t.fetch&&await St(this,o,t.fetch,r),t.js_modules&&await Pt(t.js_modules,r),o},registerJSModule(e,t){console.warn(`Experimental interpreter: module ${t} is not supported (yet)`)},run:mn,runAsync:mn,async runEvent(e,t,n){await e.evalRVoid(`${t}(event)`,{env:{event:{type:[n.type]}}})},transform:(e,t)=>(console.log("transforming",t),t),writeFile:()=>{}};const yn=new Map,gn=new Map,wn=[],An=[],En=new Proxy(new Map,{get(e,t){if(!e.has(t)){const[n,...r]=t.split("@"),s=yn.get(n),o=/^(?:\.?\.?\/|https?:\/\/)/i.test(r)?r.join("@"):s.module(...r);e.set(t,{url:o,module:import(o),engine:s.engine.bind(s)})}const{url:n,module:r,engine:s}=e.get(t);return(e,o)=>r.then((r=>(gn.set(t,e),s(r,e,n,o))))}}),bn=e=>{for(const t of[].concat(e.type))yn.set(t,e),wn.push(`script[type="${t}"]`),An.push(`${t}-`)};for(const e of[Ge,Qt,an,fn,dn,hn])bn(e);const{parse:vn}=JSON,kn=(e,t="./config.txt")=>{let n=typeof e;return"string"===n&&/\.(json|toml|txt)$/.test(e)?n=RegExp.$1:e=t,[it(e),n]},Cn=e=>{try{return vn(e)}catch(t){return Vt(e)}},Rn=(e,t,n,r={})=>{if(t){const[e,s]=kn(t,n);"json"===s?r=a(e).json():"toml"===s?r=a(e).text().then(Vt):"string"===s?r=Cn(t):"object"===s&&t?r=t:"txt"===s&&"string"==typeof r&&(r=Cn(r)),t=e}return at(r).then((n=>En[e](n,t)))},xn=(e,t="")=>`${e}@${t}`.replace(/@$/,"");function Bn(e=this){return String(e).replace(/^(async\s*)?(\bfunction\b)?(.*?)\(/,((e,t,n,r)=>r&&!n?`${t||""}function ${r}(`:e))}const jn="BeforeRun",Tn="AfterRun",Sn=[`code${jn}`,`code${jn}Async`,`code${Tn}`,`code${Tn}Async`],On=["onWorker","onReady",`on${jn}`,`on${jn}Async`,`on${Tn}`,`on${Tn}Async`];function $n(e,t){const{run:n,runAsync:r}=yn.get(this.type);return{...e,run:n.bind(this,t),runAsync:r.bind(this,t)}}const Nn=(e,t,n,r,s,o)=>{if(s||o){const a=$n.bind(e,t),i=r?"runAsync":"run",l=e[i];e[i]=r?async function(e,t,...r){s&&await s.call(this,a(e),n);const i=await l.call(this,e,t,...r);return o&&await o.call(this,a(e),n),i}:function(e,t,...r){s&&s.call(this,a(e),n);const i=l.call(this,e,t,...r);return o&&o.call(this,a(e),n),i}}};let Pn=class{constructor(e,t={}){const{main:n,worker:r}=t;this.interpreter=e,this.onWorker=n?.onWorker;for(const e of On.slice(1))this[e]=r?.[e];for(const e of Sn)this[e]=r?.[e]}toJSON(){const e={};for(const t of On.slice(1))this[t]&&(e[t]=Bn(this[t]));for(const t of Sn)this[t]&&(e[t]=Ve(this[t]()));return e}};var In=(...e)=>function(t,n){if(e.length){const[t,r]=e;(n=et({},n||{type:t,version:r})).type||(n.type=t)}const[r]=kn(n.config,n.configURL),s=((...e)=>new Me(URL.createObjectURL(new Blob(['const e="object"==typeof self?self:globalThis,t=t=>((t,n)=>{const r=(e,n)=>(t.set(n,e),e),s=o=>{if(t.has(o))return t.get(o);const[a,i]=n[o];switch(a){case 0:case-1:return r(i,o);case 1:{const e=r([],o);for(const t of i)e.push(s(t));return e}case 2:{const e=r({},o);for(const[t,n]of i)e[s(t)]=s(n);return e}case 3:return r(new Date(i),o);case 4:{const{source:e,flags:t}=i;return r(new RegExp(e,t),o)}case 5:{const e=r(new Map,o);for(const[t,n]of i)e.set(s(t),s(n));return e}case 6:{const e=r(new Set,o);for(const t of i)e.add(s(t));return e}case 7:{const{name:t,message:n}=i;return r(new e[t](n),o)}case 8:return r(BigInt(i),o);case"BigInt":return r(Object(BigInt(i)),o)}return r(new e[a](i),o)};return s})(new Map,t)(0),n="",{toString:r}={},{keys:s}=Object,o=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const s=r.call(e).slice(8,-1);switch(s){case"Array":return[1,n];case"Object":return[2,n];case"Date":return[3,n];case"RegExp":return[4,n];case"Map":return[5,n];case"Set":return[6,n]}return s.includes("Array")?[1,s]:s.includes("Error")?[7,s]:[2,s]},a=([e,t])=>0===e&&("function"===t||"symbol"===t),i=(e,{json:t,lossy:n}={})=>{const r=[];return((e,t,n,r)=>{const i=(e,t)=>{const s=r.push(e)-1;return n.set(t,s),s},c=r=>{if(n.has(r))return n.get(r);let[l,u]=o(r);switch(l){case 0:{let t=r;switch(u){case"bigint":l=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+u);t=null;break;case"undefined":return i([-1],r)}return i([l,t],r)}case 1:{if(u)return i([u,[...r]],r);const e=[],t=i([l,e],r);for(const t of r)e.push(c(t));return t}case 2:{if(u)switch(u){case"BigInt":return i([u,r.toString()],r);case"Boolean":case"Number":case"String":return i([u,r.valueOf()],r)}if(t&&"toJSON"in r)return c(r.toJSON());const n=[],p=i([l,n],r);for(const t of s(r))!e&&a(o(r[t]))||n.push([c(t),c(r[t])]);return p}case 3:return i([l,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return i([l,{source:e,flags:t}],r)}case 5:{const t=[],n=i([l,t],r);for(const[n,s]of r)(e||!a(o(n))&&!a(o(s)))&&t.push([c(n),c(s)]);return n}case 6:{const t=[],n=i([l,t],r);for(const n of r)!e&&a(o(n))||t.push(c(n));return n}}const{message:p}=r;return i([l,{name:u,message:p}],r)};return c})(!(t||n),!!t,new Map,r)(e),r},{parse:c,stringify:l}=JSON,u={json:!0,lossy:!0};var p=Object.freeze({__proto__:null,parse:e=>t(c(e)),stringify:e=>l(i(e,u))});const f="array",d="function",h="null",y="number",g="object",w="symbol",m="undefined",_="apply",b="construct",E="defineProperty",v="deleteProperty",T="get",x="getOwnPropertyDescriptor",k="getPrototypeOf",S="has",O="isExtensible",A="ownKeys",j="preventExtensions",R="set",P="setPrototypeOf";var $=Object.freeze({__proto__:null,APPLY:_,CONSTRUCT:b,DEFINE_PROPERTY:E,DELETE_PROPERTY:v,GET:T,GET_OWN_PROPERTY_DESCRIPTOR:x,GET_PROTOTYPE_OF:k,HAS:S,IS_EXTENSIBLE:O,OWN_KEYS:A,PREVENT_EXTENSION:j,SET:R,SET_PROTOTYPE_OF:P});function I(){return this}const N=new FinalizationRegistry((([e,t,n])=>{n&&console.debug(`Held value ${String(t)} not relevant anymore`),e(t)})),M=Object.create(null),{Object:F,Proxy:H,Reflect:W}=globalThis,{isArray:D}=Array,{ownKeys:C}=W,{create:L,hasOwn:B,values:q}=F,U=(e,t)=>t===f?e[0]:t===d?e():t===g?e.$:e,J=(e,t,n,r)=>{const s={type:{value:t}},o=B(e,"valueOf");for(const a of q($)){let i=r(e[a]||W[a]);if(o&&a===T){const{valueOf:r}=e,{value:s}=i;i={value(e,o,...a){return o===n?r.call(this,U(e,t)):s.call(this,e,o,...a)}}}s[a]=i}return L(e,s)},z=(e,t,n,r=e)=>{if(r===e)switch(typeof e){case g:case m:r||(r=!1);case d:break;default:r=!1,t===e&&(t=F(e))}const s=new H(t,n),{destruct:o}=n;return o?((e,t,{debug:n,handler:r,return:s,token:o=e}=M)=>{const a=s||new Proxy(e,r||M),i=[a,[t,e,!!n]];return!1!==o&&i.push(o),N.register(...i),a})(e,o,{token:r,return:s}):s},G=e=>t=>{const n=typeof t;return n===g?t?e.get(t)?.[0]??(e=>D(e)?f:g)(t):h:n},Y=e=>t=>{let n=typeof t;switch(n){case g:if(!t){n=h;break}case d:const r=e.get(t);r&&([n,t]=r)}return[n,t]},K=e=>((e=>{N.unregister(e)})(e),e);var X=e=>{const t=new WeakMap,n=Symbol(),r={},s=(e,n,r)=>(t.set(e,[n,r]),e),o={proxy:r,release:K,pair:Y(t),typeOf:G(t),isProxy:e=>t.has(e),valueOf:e=>e[n]??e.valueOf()};for(const t of C(e)){if(B(o,t))continue;const a=e[t];switch(t){case f:{const e=J(a,t,n,(e=>({value([t],...n){return e.call(this,t,...n)}})));r[t]=(t,...n)=>s(z(t,[t],e,...n),f,t);break}case d:{const e=J(a,t,n,(e=>({value(t,...n){return e.call(this,t(),...n)}})));r[t]=(t,...n)=>{return s(z(t,(r=t,I.bind(r)),e,...n),d,t);var r};break}case g:{const e=J(a,t,n,(e=>({value({$:t},...n){return e.call(this,t,...n)}})));r[t]=(t,...n)=>s(z(t,{$:t},e,...n),g,t);break}default:{const e=J(a,t,n,(e=>({value:e})));r[t]=(n,...r)=>s(z(n,n,e,...r),t,n);break}}}return o};let V=0;const Z=new Map,Q=new Map,ee=e=>Q.get(e),te=e=>{if(!Z.has(e)){let t;for(;Q.has(t=V++););Z.set(e,t),Q.set(t,e)}return Z.get(e)},{ArrayBuffer:ne,Atomics:re,Promise:se}=globalThis,{isArray:oe}=Array,{create:ae,getPrototypeOf:ie,values:ce}=Object,le=ie(Int32Array),ue=ae(re),pe=({currentTarget:e,type:t,origin:n,lastEventId:r,source:s,ports:o},a)=>e.dispatchEvent(new MessageEvent(t,{data:a,origin:n,lastEventId:r,source:s,ports:o})),fe=()=>se.withResolvers();let de=0;const he=new Map,ye=(e,t)=>class extends e{constructor(e,...n){super(e,...n),e instanceof t&&he.set(this,[de++,0,fe()])}},ge=new WeakSet,we=e=>(ge.add(e),e),me=(e,t)=>{const{data:n}=e,r=oe(n)&&(n.at(0)===t||0===n.at(1)&&!t);return r&&(e.stopImmediatePropagation(),e.preventDefault()),r},_e=e=>null!==e&&"object"==typeof e&&!ge.has(e),be=new WeakMap,Ee=(e,t,n)=>{if(he.has(e))t.set(e,he.get(e)[0]);else if(!(e instanceof le||e instanceof ne))for(const r of ce(e))_e(r)&&!n.has(r)&&(n.add(r),Ee(r,t,n))},ve=(...e)=>({value:new se((t=>{let n=new Worker("data:application/javascript,onmessage%3De%3D%3EpostMessage(!Atomics.wait(...e.data))");n.onmessage=()=>t("ok"),n.postMessage(e)}))}),Te=(e,t)=>{const n=he.get(e),[r,s,{promise:o}]=n;return n[1]=t,[r,o]};let{BigInt64Array:xe,Int32Array:ke,SharedArrayBuffer:Se,addEventListener:Oe,postMessage:Ae}=globalThis,je=!0,Re=e=>e,Pe=!1;const $e=fe();try{new Se(4),ue.waitAsync||(ue.waitAsync=ve),$e.resolve()}catch(e){const t=Ae,n=Oe,r=[];let s="",o="";Se=class extends ne{},xe=ye(xe,Se),ke=ye(ke,Se),Re=we,Pe=!0,ue.notify=(e,n)=>{const[r]=(e=>be.get(e))(e);return t([s,1,e,r,n]),0},ue.waitAsync=(...e)=>{const[t,n]=Te(...e);return{value:n}},ue.wait=(e,t,...n)=>{const[r]=Te(e,t,...n),a=new XMLHttpRequest;a.responseType="json",a.open("POST",`${o}?sabayon`,!1),a.setRequestHeader("Content-Type","application/json"),a.send(`["${s}",${r},${t}]`);const{response:i}=a;he.delete(e);for(let t=0;t<i.length;t++)e[t]=i[t];return"ok"},n("message",(e=>{if(me(e,s)){const[t,n,...r]=e.data;switch(n){case 0:s=t,o=r.at(0)?.serviceWorker||"",o||(ue.wait=null,$e.resolve());break;case 1:((e,t,n)=>{for(const[r,[s,o,{resolve:a}]]of he)if(t===s&&n===o){for(let t=0;t<e.length;t++)r[t]=e[t];he.delete(r),a("ok");break}})(...r);break;case 2:((e,t,n)=>{for(const[n,r]of t)be.set(n,[r,e.currentTarget]);pe(e,n)})(e,...r);break;case 3:$e.resolve()}}else if(je){const{currentTarget:t,type:n,origin:s,lastEventId:o,source:a,ports:i}=e;r.push([{currentTarget:t,type:n,origin:s,lastEventId:o,source:a,ports:i},e.data])}})),Oe=(e,...t)=>{if(n(e,...t),r.length)for(const e of r.splice(0))pe(...e)},Ae=(e,...n)=>t(((e,t)=>{const n=new Map;return _e(t)&&Ee(t,n,new Set),n.size?[e,2,n,t]:t})(s,e),...n)}await $e.promise,je=!1;const{BYTES_PER_ELEMENT:Ie}=Int32Array,{BYTES_PER_ELEMENT:Ne}=Uint16Array,{notify:Me}=ue,Fe=new TextDecoder("utf-16"),He=new WeakSet,We=(...e)=>(He.add(e),e);let De="";const Ce=(e,t,n,r)=>{const[s]=r,o=n.get(s);if(!o)throw new Error(`Unknown proxy.${s}()`);e(o,t,r)};let Le=0;const Be=([e,t,n,r,s,o,a,i,c],l)=>(...u)=>{let p=""!==De,f=0;p&&"="!==De[0]&&"-"!==De[0]&&(f=((e,t)=>setTimeout(console.warn,3e3,`💀🔒 - proxy.${e}() in proxy.${t}()`))(l,De));const d=Le++,h=[];He.has(u.at(-1)||h)&&He.delete(h=u.pop());const y=n(i?u.map(i):u);let g=t(2*Ie);return a([e,2,l,d,g,y,r],{transfer:h}),c(g,0).value.then((()=>{p&&clearTimeout(f);const n=g[1];if(!n)return;const r=Ne*n;return g=t(r+r%Ie),a([e,1,d,g]),c(g,0).value.then((()=>{const e=new Uint16Array(g.buffer),t=o?e.subarray(0,n):e.slice(0,n);return s(Fe.decode(t))}))}))},qe=(e,t)=>new Proxy(t,{get:(t,n)=>{let r;return"then"!==n&&(r=t.get(n),r||(r=Be(e,n),t.set(n,r))),r},set:(e,t,n)=>"then"!==t&&!!e.set(t,n)}),{wait:Ue,waitAsync:Je}=ue;var ze=({parse:e,stringify:t,transform:n,interrupt:r}=JSON)=>{const s=((e,t)=>async(n,r,[s,o,a,i,c])=>{c&&(De=s);try{const s=await n(...i);if(void 0!==s){const n=e(t?t(s):s);r.set(o,n),a[1]=n.length}}finally{c&&(De=""),a[0]=1,Me(a,0)}})(t,n),o=fe(),a=new Map,i=new Map;let c="",l=Ue;if(Ue&&r){const{handler:e,timeout:t=42}=r;l=(n,r,s)=>{for(;"timed-out"===(s=Ue(n,r,0,t));)e();return s}}return Oe("message",(t=>{if(me(t,c)){const[r,u,...p]=t.data;switch(u){case 0:{const t=!!Ue;c=r,o.resolve({polyfill:Pe,sync:t,transfer:We,proxy:qe([c,e=>new ke(new Se(e)),Re,t,e,Pe,Ae,n,t?(...e)=>({value:{then:t=>t(l(...e))}}):Je],a)});break}case 2:a.size?Ce(s,i,a,p):setTimeout(Ce,0,s,i,a,p);break;case 1:((e,[t,n])=>{const r=e.get(t);e.delete(t);for(let e=new Uint16Array(n.buffer),t=0,{length:s}=r;t<s;t++)e[t]=r.charCodeAt(t);Me(n,0)})(i,p)}}})),o.promise},Ge=Object.fromEntries([f,"bigint","boolean",d,h,y,g,"string",w,m].map(((e,t)=>[e,t])));const Ye="destruct",{[A]:Ke}=Reflect,Xe=new Map(Ke(Symbol).filter((e=>typeof Symbol[e]===w)).map((e=>[Symbol[e],e]))),Ve=e=>Xe.get(e)||`.${Symbol.keyFor(e)||""}`,Ze="960fd6fe-ad03-40d1-a314-e58d84bce14f",Qe="="+Ze,et="-"+Ze,{[_]:tt}=Reflect;const nt={object(...e){return this.string(function(e){for(var t=e[0],n=1,r=arguments.length;n<r;n++)t+=arguments[n]+e[n];return t}(...e))},string(e){for(const t of e.split(/[\\r\\n]+/))if(t.trim().length){/^(\\s+)/.test(t)&&(e=e.replace(new RegExp("^"+RegExp.$1,"gm"),""));break}return e}},rt=new WeakMap,st=e=>{const t=e||console,n={buffered:at,stderr:(t.stderr||console.error).bind(t),stdout:(t.stdout||console.log).bind(t)};return{stderr:(...e)=>n.stderr(...e),stdout:(...e)=>n.stdout(...e),async get(e){const t=await e;return rt.set(t,n),t}}},ot=new TextDecoder,at=(e,t=10)=>{const n=[];return r=>{if(r instanceof Uint8Array)for(const s of r)s===t?e(ot.decode(new Uint8Array(n.splice(0)))):n.push(s);else e(r)}},it=(e,...t)=>nt[typeof e](e,...t),{isArray:ct}=Array,{assign:lt,create:ut,defineProperties:pt,defineProperty:ft,entries:dt}=Object,{all:ht,resolve:yt}=new Proxy(Promise,{get:(e,t)=>e[t].bind(e)}),gt=(e,t=location.href)=>new URL(e,t.replace(/^blob:/,"")).href,wt=(e,t,n,r=!1,s=CustomEvent)=>{e.dispatchEvent(new s(`${t}:${n}`,{bubbles:!0,detail:{worker:r}}))},mt=e=>Function(`\'use strict\';return (${e})`)(),_t=e=>e.replace(/^(?:\\n|\\r\\n)/,""),bt=Symbol.for("polyscript.js_modules"),Et=new Map;ft(globalThis,bt,{value:Et}),new Proxy(Et,{get:(e,t)=>e.get(t),has:(e,t)=>e.has(t),ownKeys:e=>[...e.keys()]});const vt=(e,t)=>!t.startsWith("_"),Tt=(e,t)=>new Proxy(e,{has:vt,get:(e,n)=>e[t][n]}),xt=(e,t)=>import(e).then((e=>{Et.set(t,{...e})})),kt=e=>new Promise(((t,n)=>{document.querySelector(`link[rel="stylesheet"][href="${e}"]`)?t():document.head.append(lt(document.createElement("link"),{rel:"stylesheet",href:e,onload:t,onerror:n}))})),St=e=>/\\.css$/i.test(new URL(e).pathname),Ot=(e,t)=>e.has(t),At=e=>[...e.keys()];var jt=(e,t,n,r)=>{const s=globalThis[bt];if(n)for(let[e,t]of dt(n)){let n=s.get(t);n&&!ct(n)||(s.set(t,n||(n=[])),n.push(e))}return((e,t,n,r)=>new Proxy(e,{has:Ot,ownKeys:At,get:(e,s)=>{let o=e.get(s);if(ct(o)){let a=o;o=null;for(let e of a)e=gt(e,r),St(e)?n.importCSS(e):(n.importJS(e,s),o=t[bt].get(s));e.set(s,o)}return o}}))(s,e,t,r)};const Rt=new Map,Pt=e=>Rt.get(e),$t=(e,t)=>{try{return Function("require",t)(Pt)}catch(t){rt.get(e).stderr(t)}};var It={type:"dummy",module:()=>"data:application/javascript,",engine:e=>st().get(e),registerJSModule(e,t,n){Rt.set(t,n)},run:$t,runAsync:$t,runEvent:async(e,t,n)=>{try{await Function("require","e",`return ${t}(e)`)(Pt,n)}catch(t){rt.get(e).stderr(t)}},transform:(e,t)=>t,writeFile(){}};const Nt=Object.getOwnPropertyDescriptors(Response.prototype),Mt=e=>"function"==typeof e,Ft={get:(e,t)=>Nt.hasOwnProperty(t)?((e,t,{get:n,value:r})=>n||!Mt(r)?e.then((e=>e[t])):(...n)=>e.then((e=>e[t](...n))))(e,t,Nt[t]):((e,t)=>Mt(t)?t.bind(e):t)(e,e[t])};var Ht=(e,...t)=>new Proxy(fetch(e,...t),Ft);Promise.withResolvers||(Promise.withResolvers=function(){var e,t,n=new this((function(n,r){e=n,t=r}));return{resolve:e,reject:t,promise:n}});const Wt=!globalThis.window,Dt=({FS:e,PATH:t,PATH_FS:n},r,s)=>{const o=n.resolve(r),a=t.dirname(o);return e.mkdirTree?e.mkdirTree(a):Lt(e,a),e.writeFile(o,new Uint8Array(s),{canOwn:!0})},Ct=e=>{const t=e.split("/");return t.pop(),t.join("/")},Lt=(e,t)=>{const n=[];for(const r of t.split("/"))"."!==r&&".."!==r&&(n.push(r),r&&e.mkdir(n.join("/")))},Bt=(e,t)=>{const n=[];for(const e of t.split("/"))switch(e){case"":case".":break;case"..":n.pop();break;default:n.push(e)}return[e.cwd()].concat(n).join("/").replace(/^\\/+/,"/")},qt=e=>{const t=e.map((e=>e.trim().replace(/(^[/]*|[/]*$)/g,""))).filter((e=>""!==e&&"."!==e)).join("/");return e[0].startsWith("/")?`/${t}`:t},Ut=(e,t)=>Ht(gt(e,t)).arrayBuffer(),Jt=(e,t,n,r)=>ht((e=>{for(const{files:t,to_file:n,from:r=""}of e){if(void 0!==t&&void 0!==n)throw new Error("Cannot use \'to_file\' and \'files\' parameters together!");if(void 0===t&&void 0===n&&r.endsWith("/"))throw new Error(`Couldn\'t determine the filename from the path ${r}, please supply \'to_file\' parameter.`)}return e.flatMap((({from:e="",to_folder:t=".",to_file:n,files:r})=>{if(ct(r))return r.map((n=>({url:qt([e,n]),path:qt([t,n])})));const s=n||e.slice(1+e.lastIndexOf("/"));return[{url:e,path:qt([t,s])}]}))})(n).map((({url:n,path:s})=>Ut(n,r).then((n=>e.writeFile(t,s,n)))))),zt=(e,t)=>t.endsWith("/")?`${t}${e.split("/").pop()}`:t,Gt=(e,t)=>e.replace(/\\{.+?\\}/g,(e=>{if(!t.has(e))throw new SyntaxError(`Invalid template: ${e}`);return t.get(e)})),Yt=(e,t,n,r)=>ht((e=>{const t=new Map,n=new Set,r=[];for(const[s,o]of dt(e))if(/^\\{.+\\}$/.test(s)){if(t.has(s))throw new SyntaxError(`Duplicated template: ${s}`);t.set(s,Gt(o,t))}else{const e=Gt(s,t),a=zt(e,Gt(o||"./",t));if(n.has(a))throw new SyntaxError(`Duplicated destination: ${a}`);n.add(a),r.push({url:e,path:a})}return r})(n).map((({url:n,path:s})=>Ut(n,r).then((r=>e.writeFile(t,s,r,n)))))),Kt=({main:e,worker:t},n)=>{const r=[];if(t&&Wt)for(let[e,s]of dt(t))e=gt(e,n),r.push(xt(e,s));if(e&&!Wt)for(let[t,s]of dt(e))t=gt(t,n),St(t)?kt(t):r.push(xt(t,s));return ht(r)},{assign:Xt}=Object,Vt="entries",Zt="readonly",Qt="readwrite",en={durability:"default",prefix:"IDBMap"},tn=({target:{result:e}})=>e;class nn extends EventTarget{#e;#t;#n;async#r(e,t){const n=(await this.#e).transaction(Vt,t,this.#t);return new Promise(((t,r)=>Xt(e(n.objectStore(Vt)),{onsuccess:t,onerror:r})))}constructor(e,{durability:t=en.durability,prefix:n=en.prefix}=en){super(),this.#n=n,this.#t={durability:t},this.#e=new Promise(((t,n)=>{Xt(indexedDB.open(`${this.#n}/${e}`),{onupgradeneeded({target:{result:e,transaction:n}}){e.objectStoreNames.length||e.createObjectStore(Vt),n.oncomplete=()=>t(e)},onsuccess(e){t(tn(e))},onerror(e){n(e),this.dispatchEvent(e)}})})).then((e=>{const t=this.dispatchEvent.bind(this);for(const n in e)n.startsWith("on")&&(e[n]=t);return e}))}dispatchEvent(e){const{type:t,message:n,isTrusted:r}=e;return super.dispatchEvent(r?Xt(new Event(t),{message:n}):e)}async close(){(await this.#e).close()}get size(){return this.#r((e=>e.count()),Zt).then(tn)}async clear(){await this.#r((e=>e.clear()),Qt)}async delete(e){await this.#r((t=>t.delete(e)),Qt)}async entries(){const e=await this.keys();return Promise.all(e.map((e=>this.get(e).then((t=>[e,t])))))}async forEach(e,t=this){for(const[n,r]of await this.entries())await e.call(t,r,n,this)}async get(e){return await this.#r((t=>t.get(e)),Zt).then(tn)}async has(e){return void 0!==await this.#r((t=>t.getKey(e)),Zt).then(tn)}async keys(){return await this.#r((e=>e.getAllKeys()),Zt).then(tn)}async set(e,t){return await this.#r((n=>n.put(t,e)),Qt),this}async values(){const e=await this.keys();return Promise.all(e.map((e=>this.get(e))))}get[Symbol.toStringTag](){return this.#n}}class rn extends Map{#s;#o;constructor(...e){super(),this.#s=new nn(...e),this.#o=this.#s.entries().then((e=>{for(const[t,n]of e)super.set(t,n)}))}async sync(){await this.#o}clear(){return this.#o=this.#o.then((()=>this.#s.clear())),super.clear()}delete(e){return this.#o=this.#o.then((()=>this.#s.delete(e))),super.delete(e)}set(e,t){return this.#o=this.#o.then((()=>this.#s.set(e,t))),super.set(e,t)}}const sn=new WeakMap,on=(e,t,n)=>{"polyscript"===t&&(n.lazy_py_modules=async(...t)=>(await sn.get(e)(t),t.map((t=>e.pyimport(t)))),n.storage=async e=>{const t=new rn(e);return await t.sync(),t},n.JSON=p),e.registerJsModule(t,n)},an=(e,t)=>{if(e.endsWith("/*")){if(/\\.(zip|whl|tgz|tar(?:\\.gz)?)$/.test(t))return RegExp.$1;throw new Error(`Unsupported archive ${t}`)}return""},cn=(e,t,...n)=>{try{return e.runPython(it(t),...n)}catch(t){rt.get(e).stderr(t)}},ln=async(e,t,...n)=>{try{return await e.runPythonAsync(it(t),...n)}catch(t){rt.get(e).stderr(t)}},un=async(e,t,n)=>{const[r,...s]=t.split(".");let o,a=e.globals.get(r);for(const e of s)[o,a]=[a,a[e]];try{await a.call(o,n)}catch(t){rt.get(e).stderr(t)}};var pn=(new TextEncoder).encode(\'from uio import StringIO\\nimport sys\\n\\nclass Response:\\n def __init__(self, f):\\n self.raw = f\\n self.encoding = "utf-8"\\n self._cached = None\\n\\n def close(self):\\n if self.raw:\\n self.raw.close()\\n self.raw = None\\n self._cached = None\\n\\n @property\\n def content(self):\\n if self._cached is None:\\n try:\\n self._cached = self.raw.read()\\n finally:\\n self.raw.close()\\n self.raw = None\\n return self._cached\\n\\n @property\\n def text(self):\\n return str(self.content, self.encoding)\\n\\n def json(self):\\n import ujson\\n\\n return ujson.loads(self.content)\\n\\n\\n# TODO try to support streaming xhr requests, a-la pyodide-http\\nHEADERS_TO_IGNORE = ("user-agent",)\\n\\n\\ntry:\\n import js\\nexcept Exception as err:\\n raise OSError("This version of urequests can only be used in the browser")\\n\\n# TODO try to support streaming xhr requests, a-la pyodide-http\\n\\nHEADERS_TO_IGNORE = ("user-agent",)\\n\\n\\ndef request(\\n method,\\n url,\\n data=None,\\n json=None,\\n headers={},\\n stream=None,\\n auth=None,\\n timeout=None,\\n parse_headers=True,\\n):\\n from js import XMLHttpRequest\\n\\n xhr = XMLHttpRequest.new()\\n xhr.withCredentials = False\\n\\n if auth is not None:\\n import ubinascii\\n\\n username, password = auth\\n xhr.open(method, url, False, username, password)\\n else:\\n xhr.open(method, url, False)\\n\\n for name, value in headers.items():\\n if name.lower() not in HEADERS_TO_IGNORE:\\n xhr.setRequestHeader(name, value)\\n\\n if timeout:\\n xhr.timeout = int(timeout * 1000)\\n\\n if json is not None:\\n assert data is None\\n import ujson\\n\\n data = ujson.dumps(json)\\n # s.write(b"Content-Type: application/json\\\\r\\\\n")\\n xhr.setRequestHeader("Content-Type", "application/json")\\n\\n xhr.send(data)\\n\\n # Emulates the construction process in the original urequests\\n resp = Response(StringIO(xhr.responseText))\\n resp.status_code = xhr.status\\n resp.reason = xhr.statusText\\n resp.headers = xhr.getAllResponseHeaders()\\n\\n return resp\\n\\n\\n# Other methods - head, post, put, patch, delete - are not used by\\n# mip and therefore not included\\n\\n\\ndef get(url, **kw):\\n return request("GET", url, **kw)\\n\\n\\n# Content below this line is from the Micropython MIP package and is covered\\n# by the applicable MIT license:\\n# \\n# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\\n# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, \\n# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\\n# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER \\n# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING \\n# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER \\n# DEALINGS IN THE SOFTWARE.\\n\\n# MicroPython package installer\\n# MIT license; Copyright (c) 2022 Jim Mussared\\n\\n\\n_PACKAGE_INDEX = const("https://micropython.org/pi/v2")\\n_CHUNK_SIZE = 128\\n\\n\\n# This implements os.makedirs(os.dirname(path))\\ndef _ensure_path_exists(path):\\n import os\\n\\n split = path.split("/")\\n\\n # Handle paths starting with "/".\\n if not split[0]:\\n split.pop(0)\\n split[0] = "/" + split[0]\\n\\n prefix = ""\\n for i in range(len(split) - 1):\\n prefix += split[i]\\n try:\\n os.stat(prefix)\\n except:\\n os.mkdir(prefix)\\n prefix += "/"\\n\\n\\n# Copy from src (stream) to dest (function-taking-bytes)\\ndef _chunk(src, dest):\\n buf = memoryview(bytearray(_CHUNK_SIZE))\\n while True:\\n n = src.readinto(buf)\\n if n == 0:\\n break\\n dest(buf if n == _CHUNK_SIZE else buf[:n])\\n\\n\\n# Check if the specified path exists and matches the hash.\\ndef _check_exists(path, short_hash):\\n import os\\n\\n try:\\n import binascii\\n import hashlib\\n\\n with open(path, "rb") as f:\\n hs256 = hashlib.sha256()\\n _chunk(f, hs256.update)\\n existing_hash = str(binascii.hexlify(hs256.digest())[: len(short_hash)], "utf-8")\\n return existing_hash == short_hash\\n except:\\n return False\\n\\n\\ndef _rewrite_url(url, branch=None):\\n if not branch:\\n branch = "HEAD"\\n if url.startswith("github:"):\\n url = url[7:].split("/")\\n url = (\\n "https://raw.githubusercontent.com/"\\n + url[0]\\n + "/"\\n + url[1]\\n + "/"\\n + branch\\n + "/"\\n + "/".join(url[2:])\\n )\\n return url\\n\\n\\ndef _download_file(url, dest):\\n response = get(url)\\n try:\\n if response.status_code != 200:\\n print("Error", response.status_code, "requesting", url)\\n return False\\n\\n print("Copying:", dest)\\n _ensure_path_exists(dest)\\n with open(dest, "wb") as f:\\n _chunk(response.raw, f.write)\\n\\n return True\\n finally:\\n response.close()\\n\\n\\ndef _install_json(package_json_url, index, target, version, mpy):\\n response = get(_rewrite_url(package_json_url, version))\\n try:\\n if response.status_code != 200:\\n print("Package not found:", package_json_url)\\n return False\\n\\n package_json = response.json()\\n finally:\\n response.close()\\n for target_path, short_hash in package_json.get("hashes", ()):\\n fs_target_path = target + "/" + target_path\\n if _check_exists(fs_target_path, short_hash):\\n print("Exists:", fs_target_path)\\n else:\\n file_url = "{}/file/{}/{}".format(index, short_hash[:2], short_hash)\\n if not _download_file(file_url, fs_target_path):\\n print("File not found: {} {}".format(target_path, short_hash))\\n return False\\n for target_path, url in package_json.get("urls", ()):\\n fs_target_path = target + "/" + target_path\\n if not _download_file(_rewrite_url(url, version), fs_target_path):\\n print("File not found: {} {}".format(target_path, url))\\n return False\\n for dep, dep_version in package_json.get("deps", ()):\\n if not _install_package(dep, index, target, dep_version, mpy):\\n return False\\n return True\\n\\n\\ndef _install_package(package, index, target, version, mpy):\\n if (\\n package.startswith("http://")\\n or package.startswith("https://")\\n or package.startswith("github:")\\n ):\\n if package.endswith(".py") or package.endswith(".mpy"):\\n print("Downloading {} to {}".format(package, target))\\n return _download_file(\\n _rewrite_url(package, version), target + "/" + package.rsplit("/")[-1]\\n )\\n else:\\n if not package.endswith(".json"):\\n if not package.endswith("/"):\\n package += "/"\\n package += "package.json"\\n print("Installing {} to {}".format(package, target))\\n else:\\n if not version:\\n version = "latest"\\n print("Installing {} ({}) from {} to {}".format(package, version, index, target))\\n\\n mpy_version = (\\n sys.implementation._mpy & 0xFF if mpy and hasattr(sys.implementation, "_mpy") else "py"\\n )\\n\\n # WARNING: mpy_version fails miserably with 1.22.0-380\\n package = "{}/package/{}/{}/{}.json".format(index, "py", package, version)\\n\\n return _install_json(package, index, target, version, mpy)\\n\\n\\ndef install(package, index=None, target=None, version=None, mpy=True):\\n if not target:\\n for p in sys.path:\\n if p.endswith("/lib"):\\n target = p\\n break\\n else:\\n print("Unable to find lib dir in sys.path")\\n return\\n\\n if not index:\\n index = _PACKAGE_INDEX\\n\\n if _install_package(package, index.rstrip("/"), target, version, mpy):\\n print("Done")\\n else:\\n print("Package may be partially installed")\\n\');const fn=async e=>(await import("./toml-DiUM0_qs.js")).parse(e),dn=(e,t)=>{try{e.mkdir(t)}catch(e){}};var hn={type:"micropython",module:(e="1.24.0-preview-114")=>`https://cdn.jsdelivr.net/npm/@micropython/micropython-webassembly-pyscript@${e}/micropython.mjs`,async engine({loadMicroPython:e},t,n,r){const{stderr:s,stdout:o,get:a}=st({stderr:at(console.error),stdout:at(console.log)});n=n.replace(/\\.m?js$/,".wasm");const i=await a(e({linebuffer:!1,stderr:s,stdout:o,url:n})),c=yn.bind(this,i,r);return sn.set(i,c),t.files&&await Yt(this,i,t.files,r),t.fetch&&await Jt(this,i,t.fetch,r),t.js_modules&&await Kt(t.js_modules,r),this.writeFile(i,"./mip.py",pn),t.packages&&await c(t.packages),i},registerJSModule:on,run:cn,runAsync:ln,runEvent:un,transform:(e,t)=>e.PyProxy.toJs(t),writeFile:(e,t,n,r)=>{const{FS:s,_module:{PATH:o,PATH_FS:a}}=e,i={FS:s,PATH:o,PATH_FS:a},c=an(t,r);if(c){const r=t.slice(0,-1);switch("./"!==r&&s.mkdir(r),c){case"whl":case"zip":{const e=new Blob([n],{type:"application/zip"});return import("./zip-C10rja2G.js").then((async({BlobReader:t,Uint8ArrayWriter:n,ZipReader:a})=>{const i=new a(new t(e));for(const e of await i.getEntries()){const{directory:t,filename:a}=e,i=r+a;if(t)dn(s,i);else{dn(s,o.dirname(i));const t=await e.getData(new n);s.writeFile(i,t,{canOwn:!0})}}i.close()}))}case"tgz":case"tar.gz":{const t="./_.tar.gz";return Dt(i,t,n),void e.runPython(`\\n import os, gzip, tarfile\\n tar = tarfile.TarFile(fileobj=gzip.GzipFile(fileobj=open("${t}", "rb")))\\n for f in tar:\\n name = f"${r}{f.name}"\\n if f.type == tarfile.DIRTYPE:\\n if f.name != "./":\\n os.mkdir(name.strip("/"))\\n else:\\n dir = os.path.dirname(name)\\n if not os.path.exists(dir):\\n os.mkdir(dir)\\n source = tar.extractfile(f)\\n with open(name, "wb") as dest:\\n dest.write(source.read())\\n dest.close()\\n tar.close()\\n os.remove("${t}")\\n `)}}}return Dt(i,t,n)}};async function yn(e,t,n){let r;for(const s of n)if(s.endsWith(".whl")){const n=gt(s,t),r=await Ht(n).arrayBuffer();await this.writeFile(e,"./*",r,n)}else r||(r=e.pyimport("mip")),r.install(s)}const gn=new FinalizationRegistry((([e,t,n])=>{n&&console.debug(`%c${String(t)}`,"font-weight:bold","collected"),e(t)})),wn=Object.create(null),mn=(e,t,{debug:n,handler:r,return:s,token:o=e}=wn)=>{const a=s||new Proxy(e,r||wn),i=[a,[t,e,!!n]];return!1!==o&&i.push(o),gn.register(...i),a},_n={dict_converter:Object.fromEntries};let bn=!1;const En=e=>(...t)=>{try{return bn=!0,e(...t)}finally{bn=!1}};let vn=!1;const Tn=()=>{if(vn)return;vn=!0;const e=new WeakMap,t=e=>e.destroy(),n=n=>{for(let r=0;r<n.length;r++){const s=n[r];if("function"==typeof s&&"copy"in s){bn=!1;let o=e.get(s)?.deref();if(!o)try{o=mn(s.copy(),t),e.set(s,new WeakRef(o))}catch(e){console.error(e)}o&&(n[r]=o),bn=!0}}},{call:r}=Function,s=r.bind(r,r.apply);Object.defineProperties(Function.prototype,{apply:{value(e,t){return bn&&n(t),s(this,e,t)}},call:{value(e,...t){return bn&&n(t),s(this,e,t)}}})};var xn={type:"pyodide",module:(e="0.26.2")=>`https://cdn.jsdelivr.net/pyodide/v${e}/full/pyodide.mjs`,async engine({loadPyodide:e},t,n,r){Wt||"auto"!==t.experimental_create_proxy||Tn();const{stderr:s,stdout:o,get:a}=st(),i=n.slice(0,n.lastIndexOf("/")),c=await a(e({stderr:s,stdout:o,indexURL:i})),l=Sn.bind(c);return sn.set(c,l),t.files&&await Yt(this,c,t.files,r),t.fetch&&await Jt(this,c,t.fetch,r),t.js_modules&&await Kt(t.js_modules,r),t.packages&&await l(t.packages),c},registerJSModule:on,run:En(cn),runAsync:En(ln),runEvent:En(un),transform:(e,t)=>kn.call(e,t),writeFile:(e,t,n,r)=>{const s=an(t,r);if(s)return e.unpackArchive(n,s,{extractDir:t.slice(0,-1)});const{FS:o,PATH:a,_module:{PATH_FS:i}}=e;return Dt({FS:o,PATH:a,PATH_FS:i},t,n)}};function kn(e){const{ffi:{PyProxy:t}}=this;if(e&&"object"==typeof e){if(e instanceof t)return e.toJs(_n);if(e instanceof Map)return new Map([...e.entries()]);if(ct(e))return e.map(kn,this)}return e}async function Sn(e){await this.loadPackage("micropip");const t=this.pyimport("micropip");await t.install(e,{keep_going:!0}),t.destroy()}const On="ruby-wasm-wasi",An=On.replace(/\\W+/g,"_");var jn={type:On,experimental:!0,module:(e="2.6.2")=>`https://cdn.jsdelivr.net/npm/@ruby/3.2-wasm-wasi@${e}/dist/browser/+esm`,async engine({DefaultRubyVM:e},t,n,r){n=n.replace(/\\/browser\\/\\+esm$/,"/ruby.wasm");const s=await Ht(n).arrayBuffer(),o=await WebAssembly.compile(s),{vm:a}=await e(o);return t.files&&await Yt(this,a,t.files,r),t.fetch&&await Jt(this,a,t.fetch,r),t.js_modules&&await Kt(t.js_modules,r),a},registerJSModule(e,t,n){t=t.replace(/\\W+/g,"__");const r=`__module_${An}_${t}`;globalThis[r]=n,this.run(e,`require "js";$${t}=JS.global[:${r}]`),delete globalThis[r]},run:(e,t,...n)=>e.eval(it(t),...n),runAsync:(e,t,...n)=>e.evalAsync(it(t),...n),async runEvent(e,t,n){if(/^xworker\\.(on\\w+)$/.test(t)){const{$1:t}=RegExp,r=`__module_${An}_event`;globalThis[r]=n,this.run(e,`require "js";$xworker.call("${t}",JS.global[:${r}])`),delete globalThis[r]}else{const r=this.run(e,`method(:${t})`);await r.call(t,e.wrap(n))}},transform:(e,t)=>t,writeFile:()=>{throw new Error(`writeFile is not supported in ${On}`)}};var Rn={type:"wasmoon",module:(e="1.16.0")=>`https://cdn.jsdelivr.net/npm/wasmoon@${e}/+esm`,async engine({LuaFactory:e,LuaLibraries:t},n,r,s){const{stderr:o,stdout:a,get:i}=st(),c=await i((new e).createEngine());return c.global.getTable(t.Base,(e=>{c.global.setField(e,"print",a),c.global.setField(e,"printErr",o)})),n.files&&await Yt(this,c,n.files,s),n.fetch&&await Jt(this,c,n.fetch,s),n.js_modules&&await Kt(n.js_modules,s),c},registerJSModule:(e,t,n)=>{e.global.set(t,n)},run:(e,t,...n)=>{try{return e.doStringSync(it(t),...n)}catch(t){rt.get(e).stderr(t)}},runAsync:async(e,t,...n)=>{try{return await e.doString(it(t),...n)}catch(t){rt.get(e).stderr(t)}},runEvent:async(e,t,n)=>{const[r,...s]=t.split(".");let o,a=e.global.get(r);for(const e of s)[o,a]=[a,a[e]];try{await a.call(o,n)}catch(t){rt.get(e).stderr(t)}},transform:(e,t)=>t,writeFile:({cmodule:{module:{FS:e}}},t,n)=>((e,t,n)=>(Lt(e,Ct(t)),t=Bt(e,t),e.writeFile(t,new Uint8Array(n),{canOwn:!0})))(e,t,n)};const Pn=new WeakMap,$n=async(e,t)=>{const{shelter:n,destroy:r,io:s}=Pn.get(e),{output:o,result:a}=await n.captureR(it(t));for(const{type:e,data:t}of o)s[e](t);return mn(a,r,{token:!1})};var In={type:"webr",experimental:!0,module:(e="0.4.0")=>`https://cdn.jsdelivr.net/npm/webr@${e}/dist/webr.mjs`,async engine(e,t,n,r){const{get:s}=st(),o=new e.WebR;await s(o.init().then((()=>o)));const a=await new o.Shelter;return Pn.set(o,{module:e,shelter:a,destroy:a.destroy.bind(a),io:rt.get(o)}),t.files&&await Yt(this,o,t.files,r),t.fetch&&await Jt(this,o,t.fetch,r),t.js_modules&&await Kt(t.js_modules,r),o},registerJSModule(e,t){console.warn(`Experimental interpreter: module ${t} is not supported (yet)`)},run:$n,runAsync:$n,async runEvent(e,t,n){await e.evalRVoid(`${t}(event)`,{env:{event:{type:[n.type]}}})},transform:(e,t)=>(console.log("transforming",t),t),writeFile:()=>{}};const Nn=new Map,Mn=new Map,Fn=new Proxy(new Map,{get(e,t){if(!e.has(t)){const[n,...r]=t.split("@"),s=Nn.get(n),o=/^(?:\\.?\\.?\\/|https?:\\/\\/)/i.test(r)?r.join("@"):s.module(...r);e.set(t,{url:o,module:import(o),engine:s.engine.bind(s)})}const{url:n,module:r,engine:s}=e.get(t);return(e,o)=>r.then((r=>(Mn.set(t,e),s(r,e,n,o))))}}),Hn=e=>{for(const t of[].concat(e.type))Nn.set(t,e)};for(const e of[It,hn,xn,jn,Rn,In])Hn(e);const{parse:Wn}=JSON,Dn=e=>{try{return Wn(e)}catch(t){return fn(e)}},Cn=(e,t,n,r={})=>{if(t){const[e,s]=((e,t="./config.txt")=>{let n=typeof e;return"string"===n&&/\\.(json|toml|txt)$/.test(e)?n=RegExp.$1:e=t,[gt(e),n]})(t,n);"json"===s?r=Ht(e).json():"toml"===s?r=Ht(e).text().then(fn):"string"===s?r=Dn(t):"object"===s&&t?r=t:"txt"===s&&"string"==typeof r&&(r=Dn(r)),t=e}return yt(r).then((n=>Fn[e](n,t)))},Ln="BeforeRun",Bn="AfterRun",qn=[`code${Ln}`,`code${Ln}Async`,`code${Bn}`,`code${Bn}Async`],Un=["onWorker","onReady",`on${Ln}`,`on${Ln}Async`,`on${Bn}`,`on${Bn}Async`];function Jn(e,t){const{run:n,runAsync:r}=Nn.get(this.type);return{...e,run:n.bind(this,t),runAsync:r.bind(this,t)}}const zn=(e,t,n,r,s,o)=>{if(s||o){const a=Jn.bind(e,t),i=r?"runAsync":"run",c=e[i];e[i]=r?async function(e,t,...r){s&&await s.call(this,a(e),n);const i=await c.call(this,e,t,...r);return o&&await o.call(this,a(e),n),i}:function(e,t,...r){s&&s.call(this,a(e),n);const i=c.call(this,e,t,...r);return o&&o.call(this,a(e),n),i}}};let Gn,Yn,Kn;const Xn=(e,t)=>{addEventListener(e,t||(async t=>{try{await Gn,Yn(`xworker.on${e}`,t)}catch(e){postMessage(e)}}),!!t&&{once:!0})},{parse:Vn,stringify:Zn}=p,{proxy:Qn,sync:er,polyfill:tr,window:nr,isWindowProxy:rr}=await(async e=>{const t=await ze(e),n=e?.transform||(e=>e),{[Qe]:r}=t.proxy,s=new Map,o=(e,t)=>{let n=s.get(e)?.deref();return n||s.set(e,new WeakRef(n=t(e))),n},a=([e,t])=>{switch(e){case Ge[g]:return null==t?globalThis:typeof t===y?o(t,p.object):t;case Ge[f]:return typeof t===y?o(t,p.array):t;case Ge[d]:return typeof t===y?o(t,p.function):ee(parseInt(t));case Ge[w]:return(e=>{if(e.startsWith("."))return Symbol.for(e.slice(1));for(const[t,n]of Xe)if(n===e)return t})(t);default:return t}},i=e=>{let[t,r]=m(e);switch(t){case g:if(r==globalThis||null==r)r=null;else if(typeof r===g&&!(r instanceof le)){r=n(r);for(const e in r)r[e]=i(r[e])}return[Ge[g],r];case f:return[Ge[f],typeof r===y?r:n(r).map(i)];case d:return[Ge[d],typeof r===d?String(te(n(r))):r];case w:return[Ge[w],Ve(e)];default:return[Ge[t],r]}},c=(...e)=>a(r(...e)),l={[E]:(e,t,n)=>c(E,e,i(t),i(n)),[v]:(e,t)=>c(v,e,i(t)),[T]:(e,t)=>c(T,e,i(t)),[k]:e=>c(k,e),[x]:(e,t)=>{const n=c(x,e,i(t));if(n){const{get:e,set:t,value:r}=n;e&&(n.get=a(e)),t&&(n.set=a(t)),r&&(n.value=a(r))}return n},[S]:(e,t)=>c(S,e,i(t)),[O]:e=>c(O,e),[A]:e=>c(A,e).map(a),[j]:e=>c(j,e),[R]:(e,t,n)=>c(R,e,i(t),i(n)),[P]:(e,t)=>c(P,e,i(t)),[Ye](e){s.delete(e),r(Ye,e)}},u={object:l,array:l,function:{...l,[_]:(e,...t)=>c(_,e,...t.map(i)),[b]:(e,...t)=>c(b,e,...t.map(i))}},{proxy:p,isProxy:h,pair:m}=X(u),$=p.object(null);return t.proxy[et]=async(e,t,...n)=>{const r=parseInt(t);switch(e){case _:{const[e,t]=n;return i(await tt(ee(r),a(e),t.map(a)))}case Ye:(e=>{const[t,n]=typeof e===y?[Q,Z]:[Z,Q],r=t.has(e);r&&(n.delete(t.get(e)),t.delete(e))})(r)}},{...t,window:$,isWindowProxy:h}})({parse:Vn,stringify:Zn,transform:e=>Kn?Kn(e):e}),sr={polyfill:tr,sync:Qn,window:er?nr:null,isWindowProxy:rr,onmessage:console.info,onerror:console.error,onmessageerror:console.warn,postMessage:postMessage.bind(self)};Xn("message",(({data:{options:e,config:t,configURL:n,code:r,hooks:s}})=>{Gn=(async()=>{try{const{id:o,tag:a,type:i,custom:c,version:l,config:u,async:p}=e,f=((e,t="")=>`${e}@${t}`.replace(/@$/,""))(i,l),d=await Cn(f,t,n,u),{js_modules:h}=Mn.get(f),y=h?.main,g=ut(Nn.get(i)),w=((e,t,n,r)=>({type:t,config:n,interpreter:r,io:rt.get(r),run:(t,...n)=>e.run(r,t,...n),runAsync:(t,...n)=>e.runAsync(r,t,...n),runEvent:(...t)=>e.runEvent(r,...t)}))(g,c||i,u||{},d);let m="run";if(p&&(m+="Async"),s){let e,t,n="",r="";for(const e of qn){const t=s[e];if(t){const s=e.endsWith("Async");(s&&p||!s&&!p)&&(e.startsWith("codeBefore")?n=t:r=t)}}(n||r)&&((e,t,n,r)=>{const s=e[t].bind(e);e[t]="run"===t?(e,t,...o)=>{n&&s(e,n,...o);const a=s(e,_t(t),...o);return r&&s(e,r,...o),a}:async(e,t,...o)=>{n&&await s(e,n,...o);const a=await s(e,_t(t),...o);return r&&await s(e,r,...o),a}})(g,m,n,r);for(const n of Un.slice(2)){const r=s[n];if(r){const s=n.endsWith("Async");if(s&&p||!s&&!p){const s=mt(r);n.startsWith("onBefore")?e=s:t=s}}}zn(g,w,sr,p,e,t)}let _,b,E,v=null,T="";er&&(({CustomEvent:_,document:b}=nr),v=o&&b.getElementById(o)||null,E=e=>wt(v,c||i,e,!0,_));const x=jt(nr,Qn,y,t);if(((e,t,n,r)=>{if("pyodide"===e)return;const s="polyscript.js_modules";for(const e of Reflect.ownKeys(r))t.registerJSModule(n,`${s}.${e}`,Tt(r,e));t.registerJSModule(n,s,r)})(i,g,d,x),g.registerJSModule(d,"polyscript",{xworker:sr,currentScript:v,config:w.config,js_modules:x,get target(){return!T&&v&&("SCRIPT"===a?v.after(lt(b.createElement(`script-${c||i}`),{id:T=`${o}-target`})):(T=o,v.replaceChildren(),v.style.display="block")),T}}),Yn=g.runEvent.bind(g,d),Kn=g.transform.bind(g,d),v&&E("ready"),s?.onReady&&mt(s?.onReady).call(g,Jn.call(g,w,d),sr),await g[m](d,r),["micropython","pyodide"].includes(g.type)){const e="polyscript",t=`__${e}_workers__`,n="__export__";d.runPython([`import js as ${t}`,`${t}.${t} = "${n}" in locals() and ${n} or []`,`del ${t}`].join("\\n"));const r=[...globalThis[t]];delete globalThis[t],r.length&&d.runPython([`from ${e} import xworker as ${t}`,...r.map((e=>`${t}.sync.${e} = ${e}`)),`del ${t}`].join("\\n"))}return v&&E("done"),postMessage("polyscript:done"),d}catch(e){postMessage(e)}})(),Xn("error"),Xn("message"),Xn("messageerror")}));\n'.replace(Pe,Ie)],{type:"application/javascript"})),...e))({serviceWorker:n?.serviceWorker||n?.service_worker}),{postMessage:o}=s,i=this instanceof Pn,l=et(s.proxy,{importJS:At,importCSS:Et}),c=Promise.withResolvers();let p=a(t).text().then((e=>{const t=i?this.toJSON():void 0;o.call(s,{options:n,config:r,code:e,hooks:t})})).then((()=>{p={then:e=>e()}}));return nt(s,{sync:{value:l},ready:{value:c.promise},postMessage:{value:(e,...t)=>p.then((()=>o.call(s,e,...t)))},onerror:{writable:!0,configurable:!0,value:console.error}}),s.addEventListener("message",(e=>{const{data:t}=e,n=t instanceof Error;(n||"polyscript:done"===t)&&(e.stopImmediatePropagation(),n?(c.reject(t),s.onerror(tt(e,{type:{value:"error"},error:{value:t}}))):c.resolve(s))})),i&&this.onWorker?.(this.interpreter,s),s};const Mn="Invalid content";var Dn=e=>{const{src:t,worker:n}=e.attributes;if(n){let{value:r}=n;if(r)throw new SyntaxError("Invalid worker attribute");if(r=t?.value,!r){if(t)throw new SyntaxError("Invalid worker attribute");if(e.childElementCount){const{innerHTML:t,localName:n,type:s}=e,o=s||n.replace(/-script$/,"");r=Ze(t),console.warn(`Deprecated: use <script type="${o}"> for an always safe content parsing:\n`,r)}else r=e.textContent;return URL.createObjectURL(new Blob([Ve(r)],{type:"text/plain"}))}return r}if(t&&e.textContent.replace(/\/\*[\s\S]*?\*\//g,"").replace(/^\s*(?:\/\/|#).*/gm,"").trim())throw new SyntaxError(Mn)};const Fn=(e,t)=>{const n=(e=>{let t=e;for(;t.parentNode;)t=t.parentNode;return t})(e);return n.getElementById(t)||((e,t=document)=>t.querySelector(e))(t,n)},Wn=new WeakMap,Hn={get(){let e=Wn.get(this);return e||(e=document.createElement(`${this.type}-script`),Wn.set(this,e),Jn(this)),e},set(e){"string"==typeof e?Wn.set(this,Fn(this,e)):(Wn.set(this,e),Jn(this))}},Ln=new WeakMap,Un=new Map,qn=(e,t)=>{const n=e?.value;return n?t+n:""},Gn=(e,t,n,r,s,o,a=e)=>{if(!Un.has(t)){const i={interpreter:Rn(n,s,o),queue:at(),XWorker:In(e,r)};Un.set(t,i),Un.has(e)||Un.set(e,i),Un.has(a)||Un.set(a,i)}return Un.get(t)},Jn=async e=>{if(Ln.has(e)){const{target:t}=e;t&&(e.closest("head")?document.body.append(t):e.after(t))}else{const{attributes:{config:t,env:n,name:r,target:s,version:o,"service-worker":l},src:p,type:u}=e,f=!vt(e),d=o?.value,_=xn(u,d);let m=qn(t,"|");const h=qn(n,"")||`${_}${m}`;m=m.slice(1);const y=Dn(e);if(y){const t=new(In(u,d))(y,{...ct(e,u),async:f,config:m,serviceWorker:l?.value});Ln.set(rt(e,"xworker",{value:t}),{xworker:t});const n=r?.value;return void(n&&i[n].resolve(t.ready))}const g=qn(s,""),w=Gn(u,h,_,d,m);Ln.set(rt(e,"target",Hn),w),g&&Wn.set(e,Fn(e,g));const A=p?a(p).text():e.textContent;w.queue=w.queue.then((()=>(async(e,t,n,r)=>{const{type:s}=e,o=yn.get(s);o.experimental&&console.warn(`The ${s} interpreter is experimental`);const[a,i]=await ot([Ln.get(e).interpreter,t]);try{wt(s,o,a,ht),o.registerJSModule(a,"polyscript",{XWorker:n,currentScript:e,js_modules:ht,workers:c}),pt(e,s,"ready"),rt(document,"currentScript",{configurable:!0,get:()=>e});const t=pt.bind(null,e,s,"done");let l=o[r?"runAsync":"run"](a,i);return r&&(l=await l),t(),l}finally{delete document.currentScript}})(e,A,w.XWorker,f)))}},zn=new Proxy(tt(null),{get:(e,t)=>new Promise(queueMicrotask).then((()=>Yn(t)))}),Yn=async e=>{if(Un.has(e)){const{interpreter:t,queue:n}=Un.get(e);return(await ot([t,n]))[0]}const t=Un.size?`Available interpreters are: ${[...Un.keys()].map((e=>`"${e}"`)).join(", ")}.`:"There are no interpreters in this page.";throw new Error(`The interpreter "${e}" was not found. ${t}`)},Kn=async e=>{const{type:t,currentTarget:r}=e;if(An.length)for(let{name:s,value:o,ownerElement:a}of n(`./@*[${An.map((e=>`name()="${e}${t}"`)).join(" or ")}]`,r)){s=s.slice(0,-(t.length+1));const n=await Yn(a.getAttribute(`${s}-env`)||s);yn.get(s).runEvent(n,o,e)}},Xn=e=>{if(An.length)for(let{name:t,ownerElement:r}of n(`.//@*[${An.map((e=>`starts-with(name(),"${e}")`)).join(" or ")}]`,e)){const e=t.lastIndexOf("-"),n=t.slice(e+1);"env"!==n&&(r.addEventListener(n,Kn),"disabled"in r&&!r.disabled&&(r.disabled=!0,zn[t.slice(0,e)].then((()=>{r.disabled=!1}))))}},Vn=In(),Zn=[],Qn=new Map,er=new Map,tr=new Map,nr=async e=>{for(const t of Zn)if(e.matches(t)){const n=er.get(t),r=rr.get(n),{resolve:s}=tr.get(n),{options:o,known:a}=r;if(a.has(e))return;a.add(e);for(const[t,n]of Qn)e.matches(t)&&await n(e);const{interpreter:l,configURL:p,config:u,version:f,env:d,onerror:_,hooks:m}=o;let h;try{const t=Dn(e);if(t){const r=Vn.call(new Pn(null,m),t,{...ct(e,n),version:f,configURL:p,type:l,custom:n,config:e.getAttribute("config")||u||{},async:!vt(e),serviceWorker:e.getAttribute("service-worker")});rt(e,"xworker",{value:r}),s({type:n,xworker:r});const o=e.getAttribute("name");return void(o&&i[o].resolve(r.ready))}}catch(e){h=e}const y=xn(l,f),g=d||`${y}${u?`|${u}`:""}`,{interpreter:w,XWorker:A}=Gn(n,g,y,f,u,p,l),E=await w,b=tt(yn.get(l)),v=new Pn(E,m),k=function(...e){return A.apply(v,e)},C={...ut(b,n,structuredClone(gn.get(y)),E),XWorker:k};wt(l,b,E,ht),b.registerJSModule(E,"polyscript",{XWorker:k,config:C.config,currentScript:n.startsWith("_")?null:e,js_modules:ht,workers:c});for(const t of["Run","RunAsync"]){let n,r,s="",o="";for(const e of Sn){const n=m?.main?.[e];n&&e.endsWith(t)&&(e.startsWith("codeBefore")?s=Ve(n()):o=Ve(n()))}(s||o)&&dt(b,`r${t.slice(1)}`,s,o);for(let e=2;e<On.length;e++){const s=On[e],o=m?.main?.[s];o&&s.endsWith(t)&&(s.startsWith("onBefore")?n=o:r=o)}Nn(b,C,e,t.endsWith("Async"),n,r)}r.queue=r.queue.then((()=>(s(C),h&&_?.(h,e),m?.main?.onReady?.(C,e))))}},rr=new Map;let sr=0;const or=e=>(tr.has(e)||tr.set(e,Promise.withResolvers()),tr.get(e).promise),[{customObserver:ar,define:ir,whenDefined:lr,env:cr,Hook:pr,XWorker:ur},fr]=e("polyscript",{customObserver:Qn,define:(e,n)=>{let r=null==e;if(r)e="_ps"+sr++;else if(yn.has(e)||rr.has(e))throw new Error(`<script type="${e}"> already registered`);if(!yn.has(n?.interpreter))throw new Error("Unspecified interpreter");yn.set(e,yn.get(n.interpreter));const s=[`script[type="${e}"]`];if(or(e),r){const{hooks:t}=n,r=t?.main?.onReady;n={...n,hooks:{...t,main:{...t?.main,onReady(t,n){Zn.splice(Zn.indexOf(e),1),yn.delete(e),rr.delete(e),tr.delete(e),n.remove(),r?.(t)}}}},document.head.append(et(document.createElement("script"),{type:e}))}else s.push(`${e}-script`),An.push(`${e}-`);for(const t of s)er.set(t,e);Zn.push(...s),rr.set(e,{options:et({env:e},n),known:new WeakSet,queue:Promise.resolve()}),r||Xn(document),t(s.join(",")).forEach(nr)},whenDefined:or,env:zn,Hook:Pn,XWorker:Vn});if(!fr){const e=new MutationObserver((e=>{const t=wn.join(",");for(const{type:r,target:s,attributeName:o,addedNodes:a}of e)if("attributes"!==r)for(const e of a)1===e.nodeType&&(Xn(e),t&&e.matches(t)?Jn(e):n(t,e,!0));else{const e=o.lastIndexOf("-")+1;if(e){const t=o.slice(0,e);for(const n of An)if(t===n){const t=o.slice(e);if("env"!==t){const e=s.hasAttribute(o)?"add":"remove";s[`${e}EventListener`](t,Kn)}break}}}})),n=(e,n,r)=>{e&&t(e,n).forEach(Jn),(e=Zn.join(","))&&(r&&nr(n),t(e,n).forEach(nr))},r=t=>(e.observe(t,{childList:!0,subtree:!0,attributes:!0}),t),{attachShadow:s}=Element.prototype;et(Element.prototype,{attachShadow(e){return r(s.call(this,e))}}),queueMicrotask((()=>{Xn(r(document)),n(wn.join(","),document,!1)}))}var dr=new Map([["py","pyodide"],["mpy","micropython"]]);const _r=[];for(const[e]of dr){const t=[`script[type="${e}"]`,`${e}-script`];for(const n of document.querySelectorAll(t.join(","))){const{promise:t,resolve:r}=Promise.withResolvers();_r.push(t),n.addEventListener(`${e}:done`,r,{once:!0})}}Promise.all(_r).then((()=>{dispatchEvent(new Event("py:all-done"))}));var mr={"deprecations-manager":()=>import("./deprecations-manager-CM6Wb8Rc.js"),error:()=>import("./error-l5R-P7f3.js"),"py-editor":()=>import("./py-editor-DGWcFYn9.js"),"py-terminal":()=>import("./py-terminal-C7Chu5Tz.js")};const hr={GENERIC:"PY0000",CONFLICTING_CODE:"PY0409",BAD_CONFIG:"PY1000",MICROPIP_INSTALL_ERROR:"PY1001",BAD_PLUGIN_FILE_EXTENSION:"PY2000",NO_DEFAULT_EXPORT:"PY2001",TOP_LEVEL_AWAIT:"PY9000",FETCH_ERROR:"PY0001",FETCH_NAME_ERROR:"PY0002",FETCH_UNAUTHORIZED_ERROR:"PY0401",FETCH_FORBIDDEN_ERROR:"PY0403",FETCH_NOT_FOUND_ERROR:"PY0404",FETCH_SERVER_ERROR:"PY0500",FETCH_UNAVAILABLE_ERROR:"PY0503"};class yr extends Error{constructor(e,t="",n="text"){super(`(${e}): ${t}`),this.errorCode=e,this.messageType=n,this.name="UserError"}}class gr extends yr{constructor(e,t){super(e,t),this.name="FetchError"}}const wr=e=>e.text();async function Ar(e,t){let n;try{n=await fetch(e,t)}catch(t){const n=t;let r;throw r=e.startsWith("http")?`Fetching from URL ${e} failed with error '${n.message}'. Are your filename and path correct?`:'Polyscript: Access to local files\n (using [[fetch]] configurations in <py-config>)\n is not available when directly opening a HTML file;\n you must use a webserver to serve the additional files.\n See <a style="text-decoration: underline;" href="https://github.com/pyscript/pyscript/issues/257#issuecomment-1119595062">this reference</a>\n on starting a simple webserver with Python.\n ',new gr(hr.FETCH_ERROR,r)}if(!n.ok){const t=`Fetching from URL ${e} failed with error ${n.status} (${n.statusText}). Are your filename and path correct?`;switch(n.status){case 404:throw new gr(hr.FETCH_NOT_FOUND_ERROR,t);case 401:throw new gr(hr.FETCH_UNAUTHORIZED_ERROR,t);case 403:throw new gr(hr.FETCH_FORBIDDEN_ERROR,t);case 500:throw new gr(hr.FETCH_SERVER_ERROR,t);case 503:throw new gr(hr.FETCH_UNAVAILABLE_ERROR,t);default:throw new gr(hr.FETCH_ERROR,t)}}return n}const{BAD_CONFIG:Er,CONFLICTING_CODE:br}=hr,vr=async(e,t)=>{let n=e?.trim(),r="",s=!1,o=/^{/.test(n)&&/}$/.test(n);if(!o&&/\.(\w+)(?:\?\S*)?$/.test(n)){const e=RegExp.$1;"json"===e&&"toml"!==t?o=!0:"toml"===e&&"json"!==t?s=!0:((e,t="")=>{let n=`(${Er}): Invalid URL: ${e}`;throw t&&(n+=`\nexpected ${t} content`),new Error(n)})(n,t),r=n,n=(await Ar(r).then(wr)).trim()}return{json:o,toml:s||!o&&!!n,text:n,url:r}},kr=e=>new Error(`(${br}): ${e}`),Cr=(e,t=location.href)=>new URL(e,t).href,Rr=(e,t,{message:n})=>{let r=`(${Er}): Invalid ${e}`;return t&&(r+=` @ ${t}`),new SyntaxError(`${r}\n${n}`)},xr=new Map;for(const[e]of dr){let n,r,s,o,a,i,l,c=t(`${e}-config`),p=t([`script[type="${e}"][config]:not([worker])`,`${e}-script[config]:not([worker])`].join(","));if(c.length>1?s=kr(`Too many ${e}-config`):c.length&&p.length?s=kr(`Ambiguous ${e}-config VS config attribute`):c.length?([l]=c,a=l.getAttribute("src")||l.textContent,i=l.getAttribute("type")):p.length&&([l,...p]=p,a=l.getAttribute("config"),p.some((e=>e.getAttribute("config")!==a))&&(s=kr("Unable to use different configs on main"))),!s&&a)try{const{json:e,toml:t,text:n,url:l}=await vr(a,i);if(l&&(o=Cr(l)),a=n,e||"json"===i)try{r=JSON.parse(n)}catch(e){s=Rr("JSON",l,e)}else if(t||"toml"===i)try{const{parse:e}=await import("./toml-CvAfdf9_.js");r=e(n)}catch(e){s=Rr("TOML",l,e)}}catch(e){s=e}const u=[];for(const[e,t]of Object.entries(mr))s?"error"===e&&t().then((({notify:e})=>e(s.message))):r?.plugins?.includes(`!${e}`)||u.push(t().then((({default:e})=>e)));n=Promise.all(u),xr.set(e,{config:r,configURL:o,plugins:n,error:s})}var Br={is_pyterminal:()=>!1,sleep:e=>new Promise((t=>setTimeout(t,1e3*e)))};const jr=e=>{rt(document,"currentScript",{configurable:!0,get:()=>e})},Tr=()=>{delete document.currentScript};var Sr=async(e,t,n,r)=>{const s=r.endsWith("Async");(r.startsWith("onBefore")?jr:Tr)(n);for(const o of e(r))s?await o(t,n):o(t,n)};const Or=()=>!0,$r=e=>{throw new TypeError(e)},Nr=(e,t)=>{const n=[];if(e)for(const t of e.split(/\s*\|\s*/))"object"===t?n.push((e=>null!==e&&typeof e===t)):"null"===t?n.push((e=>null===e)):n.push((e=>typeof e===t));if(t)for(const e of[].concat(t))n.push((t=>t instanceof e));switch(n.length){case 0:return Or;case 1:return n[0];default:return e=>n.some((t=>t(e)))}},Pr=(e,t,n,r=$r)=>s=>{const o=[`Invalid ${typeof s} ${n}: expected `];e&&(o.push(e),t&&o.push(" or ")),t&&(o.push("an instanceof "),o.push([].concat(t).map((({name:e})=>e)).join(" | "))),r(o.join(""),s)},Ir=(e=>t=>{const[n,r]=((e,t="value")=>{const n=e?.typeof,r=e?.instanceof;return[Nr(n,r),Pr(n,r,t,e?.onerror)]})(t);return class extends e{add(e){return n(e)?super.add(e):r(e)}}})(Set);const{entries:Mr}=Object,Dr=["import os as _os","from pathlib import Path as _Path","_path = None"],Fr=new class extends Array{#a=!1;#i;#l;constructor(e,...t){super(),this.#l=e,this.#i=t}push(...e){return this.#a&&super.push(...e),this.#l.push(...e)}path(e){for(const t of this.#i)if(this.#a=e.startsWith(t))break}}(Dr,"-"),Wr=(e,t)=>{for(const[n,r]of Mr(t))if(Fr.path(`${e}/${n}`),Fr.push(`_path = _Path("${e}/${n}")`),"string"==typeof r){const e=JSON.stringify(r);Fr.push(`_path.write_text(${e},encoding="utf-8")`)}else Fr.push(`if not _os.path.exists("${e}/${n}"):`),Fr.push(" _path.mkdir(parents=True, exist_ok=True)"),Wr(`${e}/${n}`,r)};Wr(".",{pyscript:{"__init__.py":"from polyscript import lazy_py_modules as py_import\nfrom pyscript.display import HTML,display\nfrom pyscript.fetch import fetch\nfrom pyscript.magic_js import RUNNING_IN_WORKER,PyWorker,config,current_target,document,js_import,js_modules,sync,window\nfrom pyscript.storage import Storage,storage\nfrom pyscript.websocket import WebSocket\nif not RUNNING_IN_WORKER:from pyscript.workers import create_named_worker,workers\ntry:from pyscript.event_handling import when\nexcept:from pyscript.util import NotSupported;when=NotSupported('pyscript.when','pyscript.when currently not available with this interpreter')","display.py":"_L='_repr_mimebundle_'\n_K='image/svg+xml'\n_J='application/json'\n_I='__repr__'\n_H='savefig'\n_G='text/html'\n_F='image/jpeg'\n_E='application/javascript'\n_D='utf-8'\n_C='text/plain'\n_B='image/png'\n_A=None\nimport base64,html,io,re\nfrom pyscript.magic_js import current_target,document,window\n_MIME_METHODS={_H:_B,'_repr_javascript_':_E,'_repr_json_':_J,'_repr_latex':'text/latex','_repr_png_':_B,'_repr_jpeg_':_F,'_repr_pdf_':'application/pdf','_repr_svg_':_K,'_repr_markdown_':'text/markdown','_repr_html_':_G,_I:_C}\ndef _render_image(mime,value,meta):\n\tA=value\n\tif isinstance(A,bytes):A=base64.b64encode(A).decode(_D)\n\tB=re.compile('^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?$')\n\tif len(A)>0 and not B.match(A):A=base64.b64encode(A.encode(_D)).decode(_D)\n\tC=f\"data:{mime};charset=utf-8;base64,{A}\";D=' '.join(['{k}=\"{v}\"'for(A,B)in meta.items()]);return f'<img src=\"{C}\" {D}></img>'\ndef _identity(value,meta):return value\n_MIME_RENDERERS={_C:html.escape,_G:_identity,_B:lambda value,meta:_render_image(_B,value,meta),_F:lambda value,meta:_render_image(_F,value,meta),_K:_identity,_J:_identity,_E:lambda value,meta:f\"<script>{value}<\\\\/script>\"}\nclass HTML:\n\tdef __init__(A,html):A._html=html\n\tdef _repr_html_(A):return A._html\ndef _eval_formatter(obj,print_method):\n\tB=obj;A=print_method\n\tif A==_I:return repr(B)\n\telif hasattr(B,A):\n\t\tif A==_H:C=io.BytesIO();B.savefig(C,format='png');C.seek(0);return base64.b64encode(C.read()).decode(_D)\n\t\treturn getattr(B,A)()\n\telif A==_L:return{},{}\ndef _format_mime(obj):\n\tC=obj\n\tif isinstance(C,str):return html.escape(C),_C\n\tD=_eval_formatter(C,_L)\n\tif isinstance(D,tuple):E,I=D\n\telse:E=D\n\tA,F=_A,[]\n\tfor(H,B)in _MIME_METHODS.items():\n\t\tif B in E:A=E[B]\n\t\telse:A=_eval_formatter(C,H)\n\t\tif A is _A:continue\n\t\telif B not in _MIME_RENDERERS:F.append(B);continue\n\t\tbreak\n\tif A is _A:\n\t\tif F:window.console.warn(f\"Rendered object requested unavailable MIME renderers: {F}\")\n\t\tA=repr(A);B=_C\n\telif isinstance(A,tuple):A,G=A\n\telse:G={}\n\treturn _MIME_RENDERERS[B](A,G),B\ndef _write(element,value,append=False):\n\tB=element;C,D=_format_mime(value)\n\tif C=='\\\\n':return\n\tif append:A=document.createElement('div');B.append(A)\n\telse:\n\t\tA=B.lastElementChild\n\t\tif A is _A:A=B\n\tif D in(_E,_G):E=document.createRange().createContextualFragment(C);A.append(E)\n\telse:A.innerHTML=C\ndef display(*D,target=_A,append=True):\n\tC=append;A=target\n\tif A is _A:A=current_target()\n\telif not isinstance(A,str):raise TypeError(f\"target must be str or None, not {A.__class__.__name__}\")\n\telif A=='':raise ValueError('Cannot have an empty target')\n\telif A.startswith('#'):A=A[1:]\n\tB=document.getElementById(A)\n\tif B is _A:raise ValueError(f\"Invalid selector with id={A}. Cannot be found in the page.\")\n\tif B.tagName=='SCRIPT'and hasattr(B,'target'):B=B.target\n\tfor E in D:\n\t\tif not C:B.replaceChildren()\n\t\t_write(B,E,append=C)","event_handling.py":"import inspect\ntry:from pyodide.ffi.wrappers import add_event_listener\nexcept ImportError:\n\tdef add_event_listener(el,event_type,func):el.addEventListener(event_type,func)\nfrom pyscript.magic_js import document\ndef when(event_type=None,selector=None):\n\tA=selector\n\tdef B(func):\n\t\tB=func;from pyscript.web import Element as E,ElementCollection as F\n\t\tif isinstance(A,str):C=document.querySelectorAll(A)\n\t\telif isinstance(A,E):C=[A._dom_element]\n\t\telif isinstance(A,F):C=[A._dom_element for A in A]\n\t\telif isinstance(A,list):C=A\n\t\telse:C=[A]\n\t\ttry:\n\t\t\tG=inspect.signature(B)\n\t\t\tif not G.parameters:\n\t\t\t\tdef D(*A,**C):B()\n\t\t\telse:D=B\n\t\texcept AttributeError:\n\t\t\tdef D(*C,**D):\n\t\t\t\ttry:return B(*C,**D)\n\t\t\t\texcept TypeError as A:\n\t\t\t\t\tif'takes'in str(A)and'positional arguments'in str(A):return B()\n\t\t\t\t\traise\n\t\tfor H in C:add_event_listener(H,event_type,D)\n\t\treturn B\n\treturn B","fetch.py":"import json,js\nfrom pyscript.util import as_bytearray\nclass _Response:\n\tdef __init__(A,response):A._response=response\n\tdef __getattr__(A,attr):return getattr(A._response,attr)\n\tasync def arrayBuffer(B):\n\t\tA=await B._response.arrayBuffer()\n\t\tif hasattr(A,'to_py'):return A.to_py()\n\t\treturn memoryview(as_bytearray(A))\n\tasync def blob(A):return await A._response.blob()\n\tasync def bytearray(A):B=await A._response.arrayBuffer();return as_bytearray(B)\n\tasync def json(A):return json.loads(await A.text())\n\tasync def text(A):return await A._response.text()\nclass _DirectResponse:\n\t@staticmethod\n\tdef setup(promise,response):A=promise;A._response=_Response(response);return A._response\n\tdef __init__(B,promise):A=promise;B._promise=A;A._response=None;A.arrayBuffer=B.arrayBuffer;A.blob=B.blob;A.bytearray=B.bytearray;A.json=B.json;A.text=B.text\n\tasync def _response(A):\n\t\tif not A._promise._response:await A._promise\n\t\treturn A._promise._response\n\tasync def arrayBuffer(A):B=await A._response();return await B.arrayBuffer()\n\tasync def blob(A):B=await A._response();return await B.blob()\n\tasync def bytearray(A):B=await A._response();return await B.bytearray()\n\tasync def json(A):B=await A._response();return await B.json()\n\tasync def text(A):B=await A._response();return await B.text()\ndef fetch(url,**B):C=js.JSON.parse(json.dumps(B));D=lambda response,*B:_DirectResponse.setup(A,response);A=js.fetch(url,C).then(D);_DirectResponse(A);return A","ffi.py":"try:\n\timport js;from pyodide.ffi import create_proxy as _cp,to_js as _py_tjs;from_entries=js.Object.fromEntries\n\tdef _tjs(value,**A):\n\t\tB='dict_converter'\n\t\tif not hasattr(A,B):A[B]=from_entries\n\t\treturn _py_tjs(value,**A)\nexcept:from jsffi import create_proxy as _cp;from jsffi import to_js as _tjs\ncreate_proxy=_cp\nto_js=_tjs","flatted.py":"import json as _json\nclass _Known:\n\tdef __init__(A):A.key=[];A.value=[]\nclass _String:\n\tdef __init__(A,value):A.value=value\ndef _array_keys(value):\n\tA=[];B=0\n\tfor C in value:A.append(B);B+=1\n\treturn A\ndef _object_keys(value):\n\tA=[]\n\tfor B in value:A.append(B)\n\treturn A\ndef _is_array(value):A=value;return isinstance(A,list)or isinstance(A,tuple)\ndef _is_object(value):return isinstance(value,dict)\ndef _is_string(value):return isinstance(value,str)\ndef _index(known,input,value):B=value;A=known;input.append(B);C=str(len(input)-1);A.key.append(B);A.value.append(C);return C\ndef _loop(keys,input,known,output):\n\tA=output\n\tfor B in keys:\n\t\tC=A[B]\n\t\tif isinstance(C,_String):_ref(B,input[int(C.value)],input,known,A)\n\treturn A\ndef _ref(key,value,input,known,output):\n\tB=known;A=value\n\tif _is_array(A)and not A in B:B.append(A);A=_loop(_array_keys(A),input,B,A)\n\telif _is_object(A)and not A in B:B.append(A);A=_loop(_object_keys(A),input,B,A)\n\toutput[key]=A\ndef _relate(known,input,value):\n\tB=known;A=value\n\tif _is_string(A)or _is_array(A)or _is_object(A):\n\t\ttry:return B.value[B.key.index(A)]\n\t\texcept:return _index(B,input,A)\n\treturn A\ndef _transform(known,input,value):\n\tB=known;A=value\n\tif _is_array(A):\n\t\tC=[]\n\t\tfor F in A:C.append(_relate(B,input,F))\n\t\treturn C\n\tif _is_object(A):\n\t\tD={}\n\t\tfor E in A:D[E]=_relate(B,input,A[E])\n\t\treturn D\n\treturn A\ndef _wrap(value):\n\tA=value\n\tif _is_string(A):return _String(A)\n\tif _is_array(A):\n\t\tB=0\n\t\tfor D in A:A[B]=_wrap(D);B+=1\n\telif _is_object(A):\n\t\tfor C in A:A[C]=_wrap(A[C])\n\treturn A\ndef parse(value,*C,**D):\n\tA=value;E=_json.loads(A,*C,**D);B=[]\n\tfor A in E:B.append(_wrap(A))\n\tinput=[]\n\tfor A in B:\n\t\tif isinstance(A,_String):input.append(A.value)\n\t\telse:input.append(A)\n\tA=input[0]\n\tif _is_array(A):return _loop(_array_keys(A),input,[A],A)\n\tif _is_object(A):return _loop(_object_keys(A),input,[A],A)\n\treturn A\ndef stringify(value,*D,**E):\n\tB=_Known();input=[];C=[];A=int(_index(B,input,value))\n\twhile A<len(input):C.append(_transform(B,input,input[A]));A+=1\n\treturn _json.dumps(C,*D,**E)","magic_js.py":"import json,sys,js as globalThis\nfrom polyscript import config as _config,js_modules\nfrom pyscript.util import NotSupported\nRUNNING_IN_WORKER=not hasattr(globalThis,'document')\nconfig=json.loads(globalThis.JSON.stringify(_config))\nclass JSModule:\n\tdef __init__(A,name):A.name=name\n\tdef __getattr__(B,field):\n\t\tA=field\n\t\tif not A.startswith('_'):return getattr(getattr(js_modules,B.name),A)\nfor name in globalThis.Reflect.ownKeys(js_modules):sys.modules[f\"pyscript.js_modules.{name}\"]=JSModule(name)\nsys.modules['pyscript.js_modules']=js_modules\nif RUNNING_IN_WORKER:\n\timport polyscript;PyWorker=NotSupported('pyscript.PyWorker','pyscript.PyWorker works only when running in the main thread')\n\ttry:import js;window=polyscript.xworker.window;document=window.document;js.document=document;js_import=window.Function('return (...urls) => Promise.all(urls.map((url) => import(url)))')()\n\texcept:message='Unable to use `window` or `document` -> https://docs.pyscript.net/latest/faq/#sharedarraybuffer';globalThis.console.warn(message);window=NotSupported('pyscript.window',message);document=NotSupported('pyscript.document',message);js_import=None\n\tsync=polyscript.xworker.sync\n\tdef current_target():return polyscript.target\nelse:\n\timport _pyscript;from _pyscript import PyWorker,js_import;window=globalThis;document=globalThis.document;sync=NotSupported('pyscript.sync','pyscript.sync works only when running in a worker')\n\tdef current_target():return _pyscript.target","storage.py":"_C='memoryview'\n_B='bytearray'\n_A='generic'\nfrom polyscript import storage as _storage\nfrom pyscript.flatted import parse as _parse\nfrom pyscript.flatted import stringify as _stringify\ndef _to_idb(value):\n\tA=value\n\tif A is None:return _stringify(['null',0])\n\tif isinstance(A,(bool,float,int,str,list,dict,tuple)):return _stringify([_A,A])\n\tif isinstance(A,bytearray):return _stringify([_B,[A for A in A]])\n\tif isinstance(A,memoryview):return _stringify([_C,[A for A in A]])\n\traise TypeError(f\"Unexpected value: {A}\")\ndef _from_idb(value):\n\tC=value;A,B=_parse(C)\n\tif A=='null':return\n\tif A==_A:return B\n\tif A==_B:return bytearray(B)\n\tif A==_C:return memoryview(bytearray(B))\n\treturn C\nclass Storage(dict):\n\tdef __init__(B,store):A=store;super().__init__({A:_from_idb(B)for(A,B)in A.entries()});B.__store__=A\n\tdef __delitem__(A,attr):A.__store__.delete(attr);super().__delitem__(attr)\n\tdef __setitem__(B,attr,value):A=value;B.__store__.set(attr,_to_idb(A));super().__setitem__(attr,A)\n\tdef clear(A):A.__store__.clear();super().clear()\n\tasync def sync(A):await A.__store__.sync()\nasync def storage(name='',storage_class=Storage):\n\tif not name:raise ValueError('The storage name must be defined')\n\treturn storage_class(await _storage(f\"@pyscript/{name}\"))","util.py":"import js\ndef as_bytearray(buffer):\n\tA=js.Uint8Array.new(buffer);B=A.length;C=bytearray(B)\n\tfor D in range(0,B):C[D]=A[D]\n\treturn C\nclass NotSupported:\n\tdef __init__(A,name,error):object.__setattr__(A,'name',name);object.__setattr__(A,'error',error)\n\tdef __repr__(A):return f\"<NotSupported {A.name} [{A.error}]>\"\n\tdef __getattr__(A,attr):raise AttributeError(A.error)\n\tdef __setattr__(A,attr,value):raise AttributeError(A.error)\n\tdef __call__(A,*B):raise TypeError(A.error)","web.py":"_A=None\nfrom pyscript import document,when\ndef wrap_dom_element(dom_element):return Element.wrap_dom_element(dom_element)\nclass Element:\n\telement_classes_by_tag_name={}\n\t@classmethod\n\tdef get_tag_name(A):return A.__name__.replace('_','')\n\t@classmethod\n\tdef register_element_classes(B,element_classes):\n\t\tfor A in element_classes:C=A.get_tag_name();B.element_classes_by_tag_name[C]=A\n\t@classmethod\n\tdef unregister_element_classes(A,element_classes):\n\t\tfor B in element_classes:C=B.get_tag_name();A.element_classes_by_tag_name.pop(C,_A)\n\t@classmethod\n\tdef wrap_dom_element(A,dom_element):B=dom_element;C=A.element_classes_by_tag_name.get(B.tagName.lower(),A);return C(dom_element=B)\n\tdef __init__(A,dom_element=_A,classes=_A,style=_A,**B):A._dom_element=dom_element or document.createElement(type(A).get_tag_name());A._classes=Classes(A);A._style=Style(A);A.update(classes=classes,style=style,**B)\n\tdef __eq__(A,obj):return isinstance(obj,Element)and obj._dom_element==A._dom_element\n\tdef __getitem__(B,key):\n\t\tA=key\n\t\tif isinstance(A,int)or isinstance(A,slice):return B.children[A]\n\t\treturn B.find(A)\n\tdef __getattr__(B,name):\n\t\tA=name\n\t\tif A.endswith('_'):A=A[:-1]\n\t\treturn getattr(B._dom_element,A)\n\tdef __setattr__(C,name,value):\n\t\tB=value;A=name\n\t\tif A.startswith('_'):super().__setattr__(A,B)\n\t\telse:\n\t\t\tif A.endswith('_'):A=A[:-1]\n\t\t\tsetattr(C._dom_element,A,B)\n\t@property\n\tdef children(self):return ElementCollection.wrap_dom_elements(self._dom_element.children)\n\t@property\n\tdef classes(self):return self._classes\n\t@property\n\tdef parent(self):\n\t\tif self._dom_element.parentElement is _A:return\n\t\treturn Element.wrap_dom_element(self._dom_element.parentElement)\n\t@property\n\tdef style(self):return self._style\n\tdef append(B,*C):\n\t\tfor A in C:\n\t\t\tif isinstance(A,Element):B._dom_element.appendChild(A._dom_element)\n\t\t\telif isinstance(A,ElementCollection):\n\t\t\t\tfor D in A:B._dom_element.appendChild(D._dom_element)\n\t\t\telif isinstance(A,list)or isinstance(A,tuple):\n\t\t\t\tfor E in A:B.append(E)\n\t\t\telse:\n\t\t\t\ttry:A.tagName;B._dom_element.appendChild(A)\n\t\t\t\texcept AttributeError:\n\t\t\t\t\ttry:\n\t\t\t\t\t\tA.length\n\t\t\t\t\t\tfor F in A:B._dom_element.appendChild(F)\n\t\t\t\t\texcept AttributeError:raise TypeError(f'Element \"{A}\" is a proxy object, \"but not a valid element or a NodeList.')\n\tdef clone(B,clone_id=_A):A=Element.wrap_dom_element(B._dom_element.cloneNode(True));A.id=clone_id;return A\n\tdef find(A,selector):return ElementCollection.wrap_dom_elements(A._dom_element.querySelectorAll(selector))\n\tdef show_me(A):A._dom_element.scrollIntoView()\n\tdef update(A,classes=_A,style=_A,**D):\n\t\tC=style;B=classes\n\t\tif B:A.classes.add(B)\n\t\tif C:A.style.set(**C)\n\t\tfor(E,F)in D.items():setattr(A,E,F)\nclass Classes:\n\tdef __init__(A,element):A._element=element;A._class_list=A._element._dom_element.classList\n\tdef __contains__(A,item):return item in A._class_list\n\tdef __eq__(C,other):\n\t\tA=other\n\t\tif isinstance(A,Classes):B=list(A._class_list)\n\t\telse:\n\t\t\ttry:B=iter(A)\n\t\t\texcept TypeError:return False\n\t\treturn set(C._class_list)==set(B)\n\tdef __iter__(A):return iter(A._class_list)\n\tdef __len__(A):return A._class_list.length\n\tdef __repr__(A):return f\"Classes({', '.join(A._class_list)})\"\n\tdef __str__(A):return' '.join(A._class_list)\n\tdef add(B,*C):\n\t\tfor A in C:\n\t\t\tif isinstance(A,list):\n\t\t\t\tfor D in A:B.add(D)\n\t\t\telse:B._class_list.add(A)\n\tdef contains(A,class_name):return class_name in A\n\tdef remove(B,*C):\n\t\tfor A in C:\n\t\t\tif isinstance(A,list):\n\t\t\t\tfor D in A:B.remove(D)\n\t\t\telse:B._class_list.remove(A)\n\tdef replace(A,old_class,new_class):A.remove(old_class);A.add(new_class)\n\tdef toggle(A,*C):\n\t\tfor B in C:\n\t\t\tif B in A:A.remove(B)\n\t\t\telse:A.add(B)\nclass HasOptions:\n\t@property\n\tdef options(self):\n\t\tA=self\n\t\tif not hasattr(A,'_options'):A._options=Options(A)\n\t\treturn A._options\nclass Options:\n\tdef __init__(A,element):A._element=element\n\tdef __getitem__(A,key):return A.options[key]\n\tdef __iter__(A):yield from A.options\n\tdef __len__(A):return len(A.options)\n\tdef __repr__(A):return f\"{A.__class__.__name__} (length: {len(A)}) {A.options}\"\n\t@property\n\tdef options(self):return[Element.wrap_dom_element(A)for A in self._element._dom_element.options]\n\t@property\n\tdef selected(self):return self.options[self._element._dom_element.selectedIndex]\n\tdef add(D,value=_A,html=_A,text=_A,before=_A,**B):\n\t\tC=value;A=before\n\t\tif C is not _A:B['value']=C\n\t\tif html is not _A:B['innerHTML']=html\n\t\tif text is not _A:B['text']=text\n\t\tE=option(**B)\n\t\tif A:\n\t\t\tif isinstance(A,Element):A=A._dom_element\n\t\tD._element._dom_element.add(E._dom_element,A)\n\tdef clear(A):\n\t\twhile len(A)>0:A.remove(0)\n\tdef remove(A,index):A._element._dom_element.remove(index)\nclass Style:\n\tdef __init__(A,element):A._element=element;A._style=A._element._dom_element.style\n\tdef __getitem__(A,key):return A._style.getPropertyValue(key)\n\tdef __setitem__(A,key,value):A._style.setProperty(key,value)\n\tdef remove(A,key):A._style.removeProperty(key)\n\tdef set(A,**B):\n\t\tfor(C,D)in B.items():A._element._dom_element.style.setProperty(C,D)\n\t@property\n\tdef visible(self):return self._element._dom_element.style.visibility\n\t@visible.setter\n\tdef visible(self,value):self._element._dom_element.style.visibility=value\nclass ContainerElement(Element):\n\tdef __init__(B,*C,children=_A,dom_element=_A,style=_A,classes=_A,**D):\n\t\tsuper().__init__(dom_element=dom_element,style=style,classes=classes,**D)\n\t\tfor A in list(C)+(children or[]):\n\t\t\tif isinstance(A,Element)or isinstance(A,ElementCollection):B.append(A)\n\t\t\telse:B.innerHTML+=A\n\tdef __iter__(A):yield from A.children\nclass ClassesCollection:\n\tdef __init__(A,collection):A._collection=collection\n\tdef __contains__(A,class_name):\n\t\tfor B in A._collection:\n\t\t\tif class_name in B.classes:return True\n\t\treturn False\n\tdef __eq__(B,other):A=other;return isinstance(A,ClassesCollection)and B._collection==A._collection\n\tdef __iter__(A):\n\t\tfor B in A._all_class_names():yield B\n\tdef __len__(A):return len(A._all_class_names())\n\tdef __repr__(A):return f\"ClassesCollection({repr(A._collection)})\"\n\tdef __str__(A):return' '.join(A._all_class_names())\n\tdef add(A,*B):\n\t\tfor C in A._collection:C.classes.add(*B)\n\tdef contains(A,class_name):return class_name in A\n\tdef remove(A,*B):\n\t\tfor C in A._collection:C.classes.remove(*B)\n\tdef replace(A,old_class,new_class):\n\t\tfor B in A._collection:B.classes.replace(old_class,new_class)\n\tdef toggle(A,*B):\n\t\tfor C in A._collection:C.classes.toggle(*B)\n\tdef _all_class_names(B):\n\t\tA=set()\n\t\tfor C in B._collection:\n\t\t\tfor D in C.classes:A.add(D)\n\t\treturn A\nclass StyleCollection:\n\tdef __init__(A,collection):A._collection=collection\n\tdef __getitem__(A,key):return[A.style[key]for A in A._collection._elements]\n\tdef __setitem__(A,key,value):\n\t\tfor B in A._collection._elements:B.style[key]=value\n\tdef __repr__(A):return f\"StyleCollection({repr(A._collection)})\"\n\tdef remove(A,key):\n\t\tfor B in A._collection._elements:B.style.remove(key)\nclass ElementCollection:\n\t@classmethod\n\tdef wrap_dom_elements(A,dom_elements):return A([Element.wrap_dom_element(A)for A in dom_elements])\n\tdef __init__(A,elements):A._elements=elements;A._classes=ClassesCollection(A);A._style=StyleCollection(A)\n\tdef __eq__(A,obj):return isinstance(obj,ElementCollection)and obj._elements==A._elements\n\tdef __getitem__(B,key):\n\t\tA=key\n\t\tif isinstance(A,int):return B._elements[A]\n\t\telif isinstance(A,slice):return ElementCollection(B._elements[A])\n\t\treturn B.find(A)\n\tdef __iter__(A):yield from A._elements\n\tdef __len__(A):return len(A._elements)\n\tdef __repr__(A):return f\"{A.__class__.__name__} (length: {len(A._elements)}) {A._elements}\"\n\tdef __getattr__(A,name):return[getattr(A,name)for A in A._elements]\n\tdef __setattr__(C,name,value):\n\t\tB=value;A=name\n\t\tif A.startswith('_'):super().__setattr__(A,B)\n\t\telse:\n\t\t\tfor D in C._elements:setattr(D,A,B)\n\t@property\n\tdef classes(self):return self._classes\n\t@property\n\tdef elements(self):return self._elements\n\t@property\n\tdef style(self):return self._style\n\tdef find(B,selector):\n\t\tA=[]\n\t\tfor C in B._elements:A.extend(C.find(selector))\n\t\treturn ElementCollection(A)\nclass a(ContainerElement):0\nclass abbr(ContainerElement):0\nclass address(ContainerElement):0\nclass area(Element):0\nclass article(ContainerElement):0\nclass aside(ContainerElement):0\nclass audio(ContainerElement):0\nclass b(ContainerElement):0\nclass base(Element):0\nclass blockquote(ContainerElement):0\nclass body(ContainerElement):0\nclass br(Element):0\nclass button(ContainerElement):0\nclass canvas(ContainerElement):\n\tdef download(A,filename='snapped.png'):B=a(download=filename,href=A._dom_element.toDataURL());A.append(B);B._dom_element.click()\n\tdef draw(E,what,width=_A,height=_A):\n\t\tC=height;B=width;A=what\n\t\tif isinstance(A,Element):A=A._dom_element\n\t\tD=E._dom_element.getContext('2d')\n\t\tif B or C:D.drawImage(A,0,0,B,C)\n\t\telse:D.drawImage(A,0,0)\nclass caption(ContainerElement):0\nclass cite(ContainerElement):0\nclass code(ContainerElement):0\nclass col(Element):0\nclass colgroup(ContainerElement):0\nclass data(ContainerElement):0\nclass datalist(ContainerElement,HasOptions):0\nclass dd(ContainerElement):0\nclass del_(ContainerElement):0\nclass details(ContainerElement):0\nclass dialog(ContainerElement):0\nclass div(ContainerElement):0\nclass dl(ContainerElement):0\nclass dt(ContainerElement):0\nclass em(ContainerElement):0\nclass embed(Element):0\nclass fieldset(ContainerElement):0\nclass figcaption(ContainerElement):0\nclass figure(ContainerElement):0\nclass footer(ContainerElement):0\nclass form(ContainerElement):0\nclass h1(ContainerElement):0\nclass h2(ContainerElement):0\nclass h3(ContainerElement):0\nclass h4(ContainerElement):0\nclass h5(ContainerElement):0\nclass h6(ContainerElement):0\nclass head(ContainerElement):0\nclass header(ContainerElement):0\nclass hgroup(ContainerElement):0\nclass hr(Element):0\nclass html(ContainerElement):0\nclass i(ContainerElement):0\nclass iframe(ContainerElement):0\nclass img(Element):0\nclass input_(Element):0\nclass ins(ContainerElement):0\nclass kbd(ContainerElement):0\nclass label(ContainerElement):0\nclass legend(ContainerElement):0\nclass li(ContainerElement):0\nclass link(Element):0\nclass main(ContainerElement):0\nclass map_(ContainerElement):0\nclass mark(ContainerElement):0\nclass menu(ContainerElement):0\nclass meta(ContainerElement):0\nclass meter(ContainerElement):0\nclass nav(ContainerElement):0\nclass object_(ContainerElement):0\nclass ol(ContainerElement):0\nclass optgroup(ContainerElement,HasOptions):0\nclass option(ContainerElement):0\nclass output(ContainerElement):0\nclass p(ContainerElement):0\nclass param(ContainerElement):0\nclass picture(ContainerElement):0\nclass pre(ContainerElement):0\nclass progress(ContainerElement):0\nclass q(ContainerElement):0\nclass s(ContainerElement):0\nclass script(ContainerElement):0\nclass section(ContainerElement):0\nclass select(ContainerElement,HasOptions):0\nclass small(ContainerElement):0\nclass source(Element):0\nclass span(ContainerElement):0\nclass strong(ContainerElement):0\nclass style(ContainerElement):0\nclass sub(ContainerElement):0\nclass summary(ContainerElement):0\nclass sup(ContainerElement):0\nclass table(ContainerElement):0\nclass tbody(ContainerElement):0\nclass td(ContainerElement):0\nclass template(ContainerElement):0\nclass textarea(ContainerElement):0\nclass tfoot(ContainerElement):0\nclass th(ContainerElement):0\nclass thead(ContainerElement):0\nclass time(ContainerElement):0\nclass title(ContainerElement):0\nclass tr(ContainerElement):0\nclass track(Element):0\nclass u(ContainerElement):0\nclass ul(ContainerElement):0\nclass var(ContainerElement):0\nclass video(ContainerElement):\n\tdef snap(D,to=_A,width=_A,height=_A):\n\t\tG='CANVAS';F='Element to snap to must be a canvas.';C=height;B=width;A=to;B=B if B is not _A else D.videoWidth;C=C if C is not _A else D.videoHeight\n\t\tif A is _A:A=canvas(width=B,height=C)\n\t\telif isinstance(A,Element):\n\t\t\tif A.tag!='canvas':raise TypeError(F)\n\t\telif getattr(A,'tagName','')==G:A=canvas(dom_element=A)\n\t\telif isinstance(A,str):\n\t\t\tE=document.querySelectorAll(A)\n\t\t\tif E.length==0:raise TypeError('No element with selector {to} to snap to.')\n\t\t\tif E[0].tagName!=G:raise TypeError(F)\n\t\t\tA=canvas(dom_element=E[0])\n\t\tA.draw(D,B,C);return A\nclass wbr(Element):0\nELEMENT_CLASSES=[a,abbr,address,area,article,aside,audio,b,base,blockquote,body,br,button,canvas,caption,cite,code,col,colgroup,data,datalist,dd,del_,details,dialog,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,i,iframe,img,input_,ins,kbd,label,legend,li,link,main,map_,mark,menu,meta,meter,nav,object_,ol,optgroup,option,output,p,param,picture,pre,progress,q,s,script,section,select,small,source,span,strong,style,sub,summary,sup,table,tbody,td,template,textarea,tfoot,th,thead,time,title,tr,track,u,ul,var,video,wbr]\nElement.register_element_classes(ELEMENT_CLASSES)\nclass Page:\n\tdef __init__(A):A.html=Element.wrap_dom_element(document.documentElement);A.body=Element.wrap_dom_element(document.body);A.head=Element.wrap_dom_element(document.head)\n\tdef __getitem__(A,selector):return A.find(selector)\n\t@property\n\tdef title(self):return document.title\n\t@title.setter\n\tdef title(self,value):document.title=value\n\tdef append(A,*B):A.body.append(*B)\n\tdef find(A,selector):return ElementCollection.wrap_dom_elements(document.querySelectorAll(selector))\npage=Page()","websocket.py":"_A='onmessage'\nimport js\nfrom pyscript.ffi import create_proxy\nfrom pyscript.util import as_bytearray\ncode='code'\nprotocols='protocols'\nreason='reason'\nclass EventMessage:\n\tdef __init__(A,event):A._event=event\n\tdef __getattr__(B,attr):\n\t\tA=getattr(B._event,attr)\n\t\tif attr=='data'and not isinstance(A,str):\n\t\t\tif hasattr(A,'to_py'):return A.to_py()\n\t\t\treturn memoryview(as_bytearray(A))\n\t\treturn A\nclass WebSocket:\n\tCONNECTING=0;OPEN=1;CLOSING=2;CLOSED=3\n\tdef __init__(E,**A):\n\t\tD=A['url']\n\t\tif protocols in A:B=js.WebSocket.new(D,A[protocols])\n\t\telse:B=js.WebSocket.new(D)\n\t\tobject.__setattr__(E,'_ws',B);F=js.Reflect.set\n\t\tfor C in['onclose','onerror',_A,'onopen']:\n\t\t\tif C in A:F(B,C,create_proxy(A[C]))\n\tdef __getattr__(A,attr):return getattr(A._ws,attr)\n\tdef __setattr__(B,attr,value):\n\t\tC=value;A=attr\n\t\tif A==_A:B._ws[A]=lambda e:C(EventMessage(e))\n\t\telse:B._ws[A]=C\n\tdef close(B,**A):\n\t\tif code in A and reason in A:B._ws.close(A[code],A[reason])\n\t\telif code in A:B._ws.close(A[code])\n\t\telse:B._ws.close()\n\tdef send(B,data):\n\t\tA=data\n\t\tif isinstance(A,str):B._ws.send(A)\n\t\telse:\n\t\t\tC=js.Uint8Array.new(len(A))\n\t\t\tfor(D,E)in enumerate(A):C[D]=E\n\t\t\tB._ws.send(C)","workers.py":"import js as _js\nfrom polyscript import workers as _workers\n_get=_js.Reflect.get\ndef _set(script,name,value=''):script.setAttribute(name,value)\nclass _ReadOnlyProxy:\n\tdef __getitem__(A,name):return _get(_workers,name)\n\tdef __getattr__(A,name):return _get(_workers,name)\nworkers=_ReadOnlyProxy()\nasync def create_named_worker(src='',name='',config=None,type='py'):\n\tC=name;B=config;from json import dumps\n\tif not src:raise ValueError('Named workers require src')\n\tif not C:raise ValueError('Named workers require a name')\n\tA=_js.document.createElement('script');A.type=type;A.src=src;_set(A,'worker');_set(A,'name',C)\n\tif B:_set(A,'config',isinstance(B,str)and B or dumps(B))\n\t_js.document.body.append(A);return await workers[C]"}}),Dr.push("import pyscript as _pyscript"),Dr.push(...["_Path","_path","_os","_pyscript"].map((e=>`del ${e}`))),Dr.push("\n");const Hr=Dr.join("\n"),Lr=Fr.join("\n"),Ur=e=>Vr.main[e],qr=e=>Vr.worker[e],Gr=(e,t,n,r)=>{e[n]=()=>{const e=r?[r]:[];return e.push(...t(n)),e.map(Ve).join("\n")}},Jr=(e,t)=>{const n="mpy"===t?Hr.replace(Lr,""):Hr,r={};return Gr(r,e,"codeBeforeRun",n),Gr(r,e,"codeBeforeRunAsync",n),Gr(r,e,"codeAfterRun"),Gr(r,e,"codeAfterRunAsync"),r},zr=(e,t)=>{const n=[...qr(t)];if(n.length){const r=Bn(e[`_${t}`]||(t.endsWith("Async")?async(e,t,...n)=>{for(const r of n)await r(e,t)}:(e,t,...n)=>{for(const r of n)r(e,t)})),s=n.map(Bn).join(", ");return Function(`return(w,x)=>(${r})(w,x,...[${s}])`)()}},Yr=Ir({typeof:"function"}),Kr=Ir({typeof:"string"}),Xr='\n import builtins\n def input(prompt=""):\n raise Exception("\\n ".join([\n "input() doesn\'t work when PyScript runs in the main thread.",\n "Consider using the worker attribute: https://pyscript.github.io/docs/2023.11.2/user-guide/workers/"\n ]))\n\n builtins.input = input\n del builtins\n del input\n',Vr={main:{onWorker:new Yr,onReady:new Yr,onBeforeRun:new Yr,onBeforeRunAsync:new Yr,onAfterRun:new Yr,onAfterRunAsync:new Yr,codeBeforeRun:new Kr([Xr]),codeBeforeRunAsync:new Kr,codeAfterRun:new Kr,codeAfterRunAsync:new Kr},worker:{onReady:new Yr,onBeforeRun:new Yr,onBeforeRunAsync:new Yr,onAfterRun:new Yr,onAfterRunAsync:new Yr,codeBeforeRun:new Kr,codeBeforeRunAsync:new Kr,codeAfterRun:new Kr,codeAfterRunAsync:new Kr}},Zr=({tagName:e})=>"SCRIPT"===e,[Qr,es]=[...dr.entries()].map((([e,t])=>async function(n,r){await xr.get(e).plugins;const s=ur.call(new pr(null,ls.get(e)),n,{...r,type:t});return et(s.sync,Br),s.ready})),[{PyWorker:ts,MPWorker:ns,hooks:rs,config:ss,whenDefined:os},as]=e("@pyscript/core",{PyWorker:Qr,MPWorker:es,hooks:Vr,config:{},whenDefined:lr}),is=e=>e?.interpreter&&Cr(e.interpreter),ls=new Map;for(const[e,t]of dr){if(as)break;const n=(t,n,r)=>{n?r.then((()=>pt(t,e,"done"))):pt(t,e,"done")},{config:r,configURL:s,plugins:o,error:a}=xr.get(e);let i=0;const l=(t=e)=>`${t}-${i++}`,c=async(t,n,r)=>{if(t.hasAttribute("src"))try{return await Ar(t.getAttribute("src")).then(wr)}catch(e){n.stderr(e)}if(r)return Ve(t.textContent);const s=Ve(Ze(t.innerHTML));return console.warn(`Deprecated: use <script type="${e}"> for an always safe content parsing:\n`,s),s};let p,u=!1;const f=({XWorker:e,interpreter:t,io:n})=>{u||(u=!0,t.registerJsModule("_pyscript",{PyWorker:function(...t){const r=e(...t);return r.onerror=({error:e})=>n.stderr(e),r},js_import:(...e)=>Promise.all(e.map((e=>import(e)))),get target(){return Zr(p)?p.target.id:p.id}}))};a||o.then((()=>{const o=new Map,a={main:{...Jr(Ur,e),async onReady(t,r){f(t);for(const e of Ur("onReady"))await e(t,r);if(o.has(r)){let{message:e}=o.get(r);o.delete(r);const n=e===Mn;return e=`(${hr.CONFLICTING_CODE}) ${e} for `,e+=r.cloneNode(n).outerHTML,void t.io.stderr(e)}if(Zr(r)){const s=!vt(r),o=r.getAttribute("target"),a=o?Fn(r,o):document.createElement("script-py");if(!o){const{head:e,body:t}=document;e.contains(r)?t.append(a):r.after(a)}a.id||(a.id=l()),rt(r,"target",{value:a}),pt(r,e,"ready"),n(r,s,t["run"+(s?"Async":"")](await c(r,t.io,!0)))}else r._wrap.resolve(t);console.debug("[pyscript/main] PyScript Ready")},onWorker(e,t){et(t.sync,Br);for(const n of Ur("onWorker"))n(e,t)},onBeforeRun(e,t){p=t,Sr(Ur,e,t,"onBeforeRun")},onBeforeRunAsync:(e,t)=>(p=t,Sr(Ur,e,t,"onBeforeRunAsync")),onAfterRun(e,t){Sr(Ur,e,t,"onAfterRun")},onAfterRunAsync:(e,t)=>Sr(Ur,e,t,"onAfterRunAsync")},worker:{...Jr(qr,e),get onReady(){return zr(this,"onReady")},get onBeforeRun(){return zr(this,"onBeforeRun")},get onBeforeRunAsync(){return zr(this,"onBeforeRunAsync")},get onAfterRun(){return zr(this,"onAfterRun")},get onAfterRunAsync(){return zr(this,"onAfterRunAsync")}}};ls.set(e,a),ir(e,{config:r,configURL:s,interpreter:t,hooks:a,env:`${e}-script`,version:is(r),onerror(e,t){o.set(t,e)}}),customElements.define(`${e}-script`,class extends HTMLElement{constructor(){et(super(),{_wrap:Promise.withResolvers(),srcCode:"",executed:!1})}get id(){return super.id||(super.id=l())}set id(e){super.id=e}async connectedCallback(){if(!this.executed){this.executed=!0;const t=!vt(this),{io:r,run:s,runAsync:o}=await this._wrap.promise;this.srcCode=await c(this,r,!this.childElementCount),this.replaceChildren(),this.style.display="block",pt(this,e,"ready"),n(this,t,(t?o:s)(this.srcCode))}}})})),ss[e]=structuredClone(r)}export{pr as H,dr as T,ur as X,Ve as a,Lr as b,ar as c,nt as d,rs as e,ts as f,ns as g,ss as h,Xr as i,os as j,is as o,Cr as r,Hr as s};
|
2
|
+
//# sourceMappingURL=core-CTEtvlA4.js.map
|