zen-temple 0.7.0.dev2__tar.gz → 0.7.2__tar.gz

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.
Files changed (134) hide show
  1. zen_temple-0.7.2/PKG-INFO +126 -0
  2. zen_temple-0.7.2/README.md +103 -0
  3. {zen_temple-0.7.0.dev2 → zen_temple-0.7.2}/pyproject.toml +1 -1
  4. {zen_temple-0.7.0.dev2 → zen_temple-0.7.2}/zen_temple/config.py +2 -2
  5. zen_temple-0.7.2/zen_temple/explorer/_app/immutable/assets/3.BLUK3SDz.css +1 -0
  6. zen_temple-0.7.2/zen_temple/explorer/_app/immutable/assets/6.RyvcvckI.css +1 -0
  7. zen_temple-0.7.2/zen_temple/explorer/_app/immutable/assets/_page.BLUK3SDz.css +1 -0
  8. zen_temple-0.7.2/zen_temple/explorer/_app/immutable/assets/_page.RyvcvckI.css +1 -0
  9. zen_temple-0.7.2/zen_temple/explorer/_app/immutable/chunks/2qELrB5S.js +1 -0
  10. zen_temple-0.7.2/zen_temple/explorer/_app/immutable/chunks/B98B7x2v.js +2 -0
  11. zen_temple-0.7.2/zen_temple/explorer/_app/immutable/chunks/B9BLuPDP.js +1 -0
  12. zen_temple-0.7.2/zen_temple/explorer/_app/immutable/chunks/BIpecMnu.js +2 -0
  13. zen_temple-0.7.2/zen_temple/explorer/_app/immutable/chunks/BNVSwCFn.js +1 -0
  14. zen_temple-0.7.2/zen_temple/explorer/_app/immutable/chunks/BQ1deccM.js +1 -0
  15. zen_temple-0.7.0.dev2/zen_temple/explorer/_app/immutable/chunks/C2qtcxMB.js → zen_temple-0.7.2/zen_temple/explorer/_app/immutable/chunks/BZ0BXH4m.js +1 -1
  16. zen_temple-0.7.2/zen_temple/explorer/_app/immutable/chunks/B_jXps8r.js +22 -0
  17. zen_temple-0.7.0.dev2/zen_temple/explorer/_app/immutable/chunks/BJPOgFfc.js → zen_temple-0.7.2/zen_temple/explorer/_app/immutable/chunks/Bxbeg6fW.js +1 -1
  18. zen_temple-0.7.0.dev2/zen_temple/explorer/_app/immutable/chunks/yfEWpjCL.js → zen_temple-0.7.2/zen_temple/explorer/_app/immutable/chunks/C5ruyaoV.js +1 -1
  19. zen_temple-0.7.2/zen_temple/explorer/_app/immutable/chunks/CBuf8mMG.js +1 -0
  20. zen_temple-0.7.2/zen_temple/explorer/_app/immutable/chunks/CUAkeMiK.js +1 -0
  21. zen_temple-0.7.0.dev2/zen_temple/explorer/_app/immutable/chunks/B-8zjMib.js → zen_temple-0.7.2/zen_temple/explorer/_app/immutable/chunks/Cc44QfDF.js +1 -1
  22. zen_temple-0.7.2/zen_temple/explorer/_app/immutable/chunks/CquIFjLW.js +32 -0
  23. zen_temple-0.7.2/zen_temple/explorer/_app/immutable/chunks/D6s5toP0.js +1 -0
  24. zen_temple-0.7.2/zen_temple/explorer/_app/immutable/chunks/D8Fzd1QO.js +1 -0
  25. zen_temple-0.7.0.dev2/zen_temple/explorer/_app/immutable/chunks/BIZCZdcV.js → zen_temple-0.7.2/zen_temple/explorer/_app/immutable/chunks/DLtGBQZ4.js +1 -1
  26. zen_temple-0.7.0.dev2/zen_temple/explorer/_app/immutable/chunks/BrFYHDjf.js → zen_temple-0.7.2/zen_temple/explorer/_app/immutable/chunks/DQIR6haY.js +1 -1
  27. zen_temple-0.7.0.dev2/zen_temple/explorer/_app/immutable/chunks/C9Pe_d5w.js → zen_temple-0.7.2/zen_temple/explorer/_app/immutable/chunks/DlL-K-u1.js +1 -1
  28. zen_temple-0.7.2/zen_temple/explorer/_app/immutable/chunks/VtU4lcDG.js +1 -0
  29. zen_temple-0.7.2/zen_temple/explorer/_app/immutable/chunks/adaaFKwn.js +1 -0
  30. zen_temple-0.7.2/zen_temple/explorer/_app/immutable/chunks/fIP5WTNy.js +1 -0
  31. zen_temple-0.7.0.dev2/zen_temple/explorer/_app/immutable/chunks/D9uLlCXG.js → zen_temple-0.7.2/zen_temple/explorer/_app/immutable/chunks/kHklRsBK.js +1 -1
  32. zen_temple-0.7.2/zen_temple/explorer/_app/immutable/entry/app.CN14bGJq.js +2 -0
  33. zen_temple-0.7.2/zen_temple/explorer/_app/immutable/entry/start.BhYSXm8Z.js +1 -0
  34. zen_temple-0.7.2/zen_temple/explorer/_app/immutable/nodes/0.DLaT7p7R.js +5 -0
  35. zen_temple-0.7.2/zen_temple/explorer/_app/immutable/nodes/1.CDIfnZOh.js +1 -0
  36. zen_temple-0.7.2/zen_temple/explorer/_app/immutable/nodes/10.sU7isMp_.js +1 -0
  37. zen_temple-0.7.2/zen_temple/explorer/_app/immutable/nodes/11.CBOQEdGS.js +1 -0
  38. zen_temple-0.7.2/zen_temple/explorer/_app/immutable/nodes/12.DRskPBuV.js +1 -0
  39. zen_temple-0.7.2/zen_temple/explorer/_app/immutable/nodes/2.BF__NhCn.js +1 -0
  40. zen_temple-0.7.2/zen_temple/explorer/_app/immutable/nodes/3.CheKxG69.js +1 -0
  41. zen_temple-0.7.2/zen_temple/explorer/_app/immutable/nodes/4.fBBPmIla.js +1 -0
  42. zen_temple-0.7.2/zen_temple/explorer/_app/immutable/nodes/5.DaeCVHBk.js +1 -0
  43. zen_temple-0.7.2/zen_temple/explorer/_app/immutable/nodes/6.WHmvyOX3.js +3 -0
  44. zen_temple-0.7.2/zen_temple/explorer/_app/immutable/nodes/7.Ce2sycv7.js +3 -0
  45. zen_temple-0.7.0.dev2/zen_temple/explorer/_app/immutable/nodes/7.TFp_fnJA.js → zen_temple-0.7.2/zen_temple/explorer/_app/immutable/nodes/8.BQeLnLgp.js +1 -1
  46. zen_temple-0.7.2/zen_temple/explorer/_app/immutable/nodes/9.C5QQT7MV.js +1 -0
  47. zen_temple-0.7.2/zen_temple/explorer/_app/version.json +1 -0
  48. {zen_temple-0.7.0.dev2/zen_temple/explorer → zen_temple-0.7.2/zen_temple/explorer/energy_balance/nodal}/index.html +13 -13
  49. {zen_temple-0.7.0.dev2/zen_temple/explorer/energy_balance/nodal → zen_temple-0.7.2/zen_temple/explorer/energy_balance/storage}/index.html +13 -13
  50. {zen_temple-0.7.0.dev2/zen_temple/explorer/energy_balance/storage → zen_temple-0.7.2/zen_temple/explorer/energy_system}/index.html +13 -13
  51. {zen_temple-0.7.0.dev2/zen_temple/explorer/map → zen_temple-0.7.2/zen_temple/explorer}/index.html +13 -13
  52. zen_temple-0.7.2/zen_temple/explorer/map/index.html +52 -0
  53. zen_temple-0.7.2/zen_temple/explorer/transition/capacity/index.html +52 -0
  54. zen_temple-0.7.2/zen_temple/explorer/transition/costs/index.html +52 -0
  55. zen_temple-0.7.2/zen_temple/explorer/transition/emissions/index.html +52 -0
  56. zen_temple-0.7.2/zen_temple/explorer/transition/index.html +52 -0
  57. zen_temple-0.7.2/zen_temple/explorer/transition/production/index.html +52 -0
  58. {zen_temple-0.7.0.dev2 → zen_temple-0.7.2}/zen_temple/repositories/solution_repository.py +62 -8
  59. {zen_temple-0.7.0.dev2 → zen_temple-0.7.2}/zen_temple/routers/solutions.py +3 -3
  60. zen_temple-0.7.2/zen_temple.egg-info/PKG-INFO +126 -0
  61. zen_temple-0.7.2/zen_temple.egg-info/SOURCES.txt +98 -0
  62. zen_temple-0.7.0.dev2/PKG-INFO +0 -99
  63. zen_temple-0.7.0.dev2/README.md +0 -76
  64. zen_temple-0.7.0.dev2/zen_temple/explorer/_app/immutable/assets/3.CwpohSvM.css +0 -1
  65. zen_temple-0.7.0.dev2/zen_temple/explorer/_app/immutable/assets/_page.CwpohSvM.css +0 -1
  66. zen_temple-0.7.0.dev2/zen_temple/explorer/_app/immutable/chunks/31Q1F_Lr.js +0 -22
  67. zen_temple-0.7.0.dev2/zen_temple/explorer/_app/immutable/chunks/BIHB8bOP.js +0 -2
  68. zen_temple-0.7.0.dev2/zen_temple/explorer/_app/immutable/chunks/BUsVBq35.js +0 -1
  69. zen_temple-0.7.0.dev2/zen_temple/explorer/_app/immutable/chunks/C5eeVdB9.js +0 -1
  70. zen_temple-0.7.0.dev2/zen_temple/explorer/_app/immutable/chunks/CLzCVCsd.js +0 -1
  71. zen_temple-0.7.0.dev2/zen_temple/explorer/_app/immutable/chunks/CUUZcSt3.js +0 -1
  72. zen_temple-0.7.0.dev2/zen_temple/explorer/_app/immutable/chunks/D-PbE5bO.js +0 -1
  73. zen_temple-0.7.0.dev2/zen_temple/explorer/_app/immutable/chunks/DLWF8wRY.js +0 -2
  74. zen_temple-0.7.0.dev2/zen_temple/explorer/_app/immutable/chunks/DOamgyJD.js +0 -32
  75. zen_temple-0.7.0.dev2/zen_temple/explorer/_app/immutable/chunks/DxGKLc-D.js +0 -1
  76. zen_temple-0.7.0.dev2/zen_temple/explorer/_app/immutable/entry/app.BspyQkO4.js +0 -2
  77. zen_temple-0.7.0.dev2/zen_temple/explorer/_app/immutable/entry/start.Cl6dAAYN.js +0 -1
  78. zen_temple-0.7.0.dev2/zen_temple/explorer/_app/immutable/nodes/0.zjQeKbzD.js +0 -5
  79. zen_temple-0.7.0.dev2/zen_temple/explorer/_app/immutable/nodes/1.C1wQhhEd.js +0 -1
  80. zen_temple-0.7.0.dev2/zen_temple/explorer/_app/immutable/nodes/10.Dj7lMDaj.js +0 -1
  81. zen_temple-0.7.0.dev2/zen_temple/explorer/_app/immutable/nodes/11.BDJqmyvT.js +0 -1
  82. zen_temple-0.7.0.dev2/zen_temple/explorer/_app/immutable/nodes/2.DUUgYlm1.js +0 -1
  83. zen_temple-0.7.0.dev2/zen_temple/explorer/_app/immutable/nodes/3.Ctiw58ah.js +0 -1
  84. zen_temple-0.7.0.dev2/zen_temple/explorer/_app/immutable/nodes/4.BN1K9IID.js +0 -1
  85. zen_temple-0.7.0.dev2/zen_temple/explorer/_app/immutable/nodes/5.DOesIXwi.js +0 -1
  86. zen_temple-0.7.0.dev2/zen_temple/explorer/_app/immutable/nodes/6.5OGN6wqH.js +0 -3
  87. zen_temple-0.7.0.dev2/zen_temple/explorer/_app/immutable/nodes/8.pLsxef0R.js +0 -1
  88. zen_temple-0.7.0.dev2/zen_temple/explorer/_app/immutable/nodes/9.BH0Nj_0s.js +0 -1
  89. zen_temple-0.7.0.dev2/zen_temple/explorer/_app/version.json +0 -1
  90. zen_temple-0.7.0.dev2/zen_temple/explorer/transition/capacity/index.html +0 -52
  91. zen_temple-0.7.0.dev2/zen_temple/explorer/transition/costs/index.html +0 -52
  92. zen_temple-0.7.0.dev2/zen_temple/explorer/transition/emissions/index.html +0 -52
  93. zen_temple-0.7.0.dev2/zen_temple/explorer/transition/index.html +0 -52
  94. zen_temple-0.7.0.dev2/zen_temple/explorer/transition/production/index.html +0 -52
  95. zen_temple-0.7.0.dev2/zen_temple.egg-info/PKG-INFO +0 -99
  96. zen_temple-0.7.0.dev2/zen_temple.egg-info/SOURCES.txt +0 -89
  97. {zen_temple-0.7.0.dev2 → zen_temple-0.7.2}/LICENSE +0 -0
  98. {zen_temple-0.7.0.dev2 → zen_temple-0.7.2}/setup.cfg +0 -0
  99. {zen_temple-0.7.0.dev2 → zen_temple-0.7.2}/zen_temple/__init__.py +0 -0
  100. {zen_temple-0.7.0.dev2 → zen_temple-0.7.2}/zen_temple/explorer/_app/env.js +0 -0
  101. {zen_temple-0.7.0.dev2 → zen_temple-0.7.2}/zen_temple/explorer/_app/immutable/assets/0.D1tPPeLD.css +0 -0
  102. /zen_temple-0.7.0.dev2/zen_temple/explorer/_app/immutable/assets/6.B0mkfc-a.css → /zen_temple-0.7.2/zen_temple/explorer/_app/immutable/assets/7.B0mkfc-a.css +0 -0
  103. {zen_temple-0.7.0.dev2 → zen_temple-0.7.2}/zen_temple/explorer/_app/immutable/assets/BarPlot.BovkadW7.css +0 -0
  104. {zen_temple-0.7.0.dev2 → zen_temple-0.7.2}/zen_temple/explorer/_app/immutable/assets/_layout.D1tPPeLD.css +0 -0
  105. {zen_temple-0.7.0.dev2 → zen_temple-0.7.2}/zen_temple/explorer/_app/immutable/assets/_page.B0mkfc-a.css +0 -0
  106. {zen_temple-0.7.0.dev2 → zen_temple-0.7.2}/zen_temple/explorer/_app/immutable/assets/bootstrap-icons.BeopsB42.woff +0 -0
  107. {zen_temple-0.7.0.dev2 → zen_temple-0.7.2}/zen_temple/explorer/_app/immutable/assets/bootstrap-icons.mSm7cUeB.woff2 +0 -0
  108. {zen_temple-0.7.0.dev2 → zen_temple-0.7.2}/zen_temple/explorer/_app/immutable/assets/zen_garden_small.Bbfqs-kl.png +0 -0
  109. {zen_temple-0.7.0.dev2 → zen_temple-0.7.2}/zen_temple/explorer/_app/immutable/chunks/43hnhKVC.js +0 -0
  110. {zen_temple-0.7.0.dev2 → zen_temple-0.7.2}/zen_temple/explorer/_app/immutable/chunks/69_IOA4Y.js +0 -0
  111. {zen_temple-0.7.0.dev2 → zen_temple-0.7.2}/zen_temple/explorer/_app/immutable/chunks/B34HR-o6.js +0 -0
  112. {zen_temple-0.7.0.dev2 → zen_temple-0.7.2}/zen_temple/explorer/_app/immutable/chunks/BGj-pI5n.js +0 -0
  113. {zen_temple-0.7.0.dev2 → zen_temple-0.7.2}/zen_temple/explorer/_app/immutable/chunks/BXl3LOEh.js +0 -0
  114. {zen_temple-0.7.0.dev2 → zen_temple-0.7.2}/zen_temple/explorer/_app/immutable/chunks/CpFZsRVk.js +0 -0
  115. {zen_temple-0.7.0.dev2 → zen_temple-0.7.2}/zen_temple/explorer/_app/immutable/chunks/CqS7hfz2.js +0 -0
  116. {zen_temple-0.7.0.dev2 → zen_temple-0.7.2}/zen_temple/explorer/_app/immutable/chunks/DIeogL5L.js +0 -0
  117. {zen_temple-0.7.0.dev2 → zen_temple-0.7.2}/zen_temple/explorer/_app/immutable/chunks/DsnmJJEf.js +0 -0
  118. {zen_temple-0.7.0.dev2 → zen_temple-0.7.2}/zen_temple/explorer/apple-touch-icon.png +0 -0
  119. {zen_temple-0.7.0.dev2 → zen_temple-0.7.2}/zen_temple/explorer/favicon-96x96.png +0 -0
  120. {zen_temple-0.7.0.dev2 → zen_temple-0.7.2}/zen_temple/explorer/favicon.ico +0 -0
  121. {zen_temple-0.7.0.dev2 → zen_temple-0.7.2}/zen_temple/explorer/favicon.svg +0 -0
  122. {zen_temple-0.7.0.dev2 → zen_temple-0.7.2}/zen_temple/explorer/site.webmanifest +0 -0
  123. {zen_temple-0.7.0.dev2 → zen_temple-0.7.2}/zen_temple/explorer/web-app-manifest-192x192.png +0 -0
  124. {zen_temple-0.7.0.dev2 → zen_temple-0.7.2}/zen_temple/explorer/web-app-manifest-512x512.png +0 -0
  125. {zen_temple-0.7.0.dev2 → zen_temple-0.7.2}/zen_temple/main.py +0 -0
  126. {zen_temple-0.7.0.dev2 → zen_temple-0.7.2}/zen_temple/models/__init__.py +0 -0
  127. {zen_temple-0.7.0.dev2 → zen_temple-0.7.2}/zen_temple/models/solution.py +0 -0
  128. {zen_temple-0.7.0.dev2 → zen_temple-0.7.2}/zen_temple/py.typed +0 -0
  129. {zen_temple-0.7.0.dev2 → zen_temple-0.7.2}/zen_temple/repositories/__init__.py +0 -0
  130. {zen_temple-0.7.0.dev2 → zen_temple-0.7.2}/zen_temple/routers/__init__.py +0 -0
  131. {zen_temple-0.7.0.dev2 → zen_temple-0.7.2}/zen_temple/utils.py +0 -0
  132. {zen_temple-0.7.0.dev2 → zen_temple-0.7.2}/zen_temple.egg-info/dependency_links.txt +0 -0
  133. {zen_temple-0.7.0.dev2 → zen_temple-0.7.2}/zen_temple.egg-info/requires.txt +0 -0
  134. {zen_temple-0.7.0.dev2 → zen_temple-0.7.2}/zen_temple.egg-info/top_level.txt +0 -0
@@ -0,0 +1,126 @@
1
+ Metadata-Version: 2.4
2
+ Name: zen_temple
3
+ Version: 0.7.2
4
+ Summary: The visualization plattform for ZEN-garden
5
+ Author-email: ZEN-garden developers <zen-garden@ethz.ch>
6
+ Project-URL: Homepage, https://github.com/ZEN-universe/ZEN-temple
7
+ Project-URL: Issues, https://github.com/ZEN-universe/ZEN-temple/issues
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Operating System :: OS Independent
11
+ Requires-Python: >=3.10
12
+ Description-Content-Type: text/markdown
13
+ License-File: LICENSE
14
+ Requires-Dist: uvicorn
15
+ Requires-Dist: fastapi[standard]
16
+ Requires-Dist: fastapi-cache2
17
+ Requires-Dist: python-dotenv
18
+ Requires-Dist: zen-garden
19
+ Requires-Dist: mypy>=1.14.1
20
+ Provides-Extra: mypy
21
+ Requires-Dist: pandas-stubs; extra == "mypy"
22
+ Dynamic: license-file
23
+
24
+ # ZEN-temple
25
+
26
+ ZEN-temple is a FastAPI Application that provides a REST API to access results from [ZEN-garden](https://github.com/ZEN-universe/ZEN-garden). It is used as a backend for [ZEN-Explorer](https://github.com/ZEN-universe/ZEN-explorer).
27
+
28
+ [![PyPI - Version](https://img.shields.io/pypi/v/zen-temple?logo=pypi&logoColor=fff&color=0375b5)](https://pypi.org/project/zen-temple/)
29
+ ![Python Version from PEP 621 TOML](https://img.shields.io/python/required-version-toml?tomlFilePath=https%3A%2F%2Fgithub.com%2FZEN-universe%2FZEN-temple%2Fraw%2Frefs%2Fheads%2Fmain%2Fpyproject.toml)
30
+
31
+ [![GitHub Actions: Type checker](https://github.com/ZEN-universe/ZEN-temple/actions/workflows/run-mypy.yml/badge.svg)](https://github.com/ZEN-universe/ZEN-temple/actions/workflows/run-mypy.yml)
32
+
33
+ [![GitHub License](https://img.shields.io/github/license/ZEN-universe/ZEN-temple?label=License)](https://github.com/ZEN-universe/ZEN-temple/blob/main/LICENSE)
34
+
35
+ ## 🛠️ Requirements
36
+
37
+ - Conda (https://docs.conda.io/en/latest/miniconda.html)
38
+ - Python 3.10 or higher
39
+
40
+ ## 📦 Installation
41
+
42
+ Perform the following steps to install ZEN-temple:
43
+
44
+ 1. Clone the repository and navigate into the folder:
45
+
46
+ ```bash
47
+ git clone https://github.com/ZEN-universe/ZEN-temple.git
48
+ cd ZEN-temple
49
+ ```
50
+
51
+ 1. Create a new conda environment, activate it, and install all dependencies:
52
+
53
+ ```bash
54
+ conda create --name <your-env-name> python==3.12
55
+ conda activate <your-env-name>
56
+ pip install -e .[mypy]
57
+ ```
58
+
59
+ 2. Create a new copy of `.env`.
60
+
61
+ ```bash
62
+ cp .env.example .env
63
+ ```
64
+
65
+ Modify the `SOLUTION_FOLDER` variable to the location of your solutions, e.g. `./outputs`. This is the `outputs` folder generated by ZEN-garden.
66
+
67
+ ## ▶️ Usage
68
+
69
+ Open this folder in your terminal. Activate your conda environment for this project and run the application with the following commands:
70
+
71
+ ```bash
72
+ conda activate <your-env-name>
73
+ python -m zen_temple.main --reload
74
+ ```
75
+
76
+ For information about the available command line arguments run:
77
+
78
+ ```bash
79
+ python -m zen_temple.main --help
80
+ ```
81
+
82
+ ## 📤 Release workflow
83
+
84
+ To create a new release of ZEN-temple follow the following steps. The idea is that for each major release (from `v0.4.x` to `v0.5.0`) we sync the version number of ZEN-explorer and ZEN-temple
85
+
86
+ 1. Bump version in ZEN-explorer `bash scripts/bump_version.sh` and update its CHANGELOG.md.
87
+ 2. Commit and upload the updated files to GitHub.
88
+ 3. Create a new release for ZEN-explorer:
89
+ https://github.com/ZEN-universe/ZEN-explorer/releases/new
90
+ 4. Bump version in ZEN-temple `bash scripts/bump_version.sh` and update [CHANGELOG.md](CHANGELOG.md).
91
+ 5. Commit and upload the updated files to GitHub.
92
+ 6. Create a new release for ZEN-temple, e.g. `<version>`. For a pre-release also add a suffix `.dev1`, i.e. `<version>.dev1`, and mark the release as pre-release:
93
+ https://github.com/ZEN-universe/ZEN-temple/releases/new
94
+ 7. (optional) Look at PyPI whether the new release has successfully been created:
95
+ https://pypi.org/project/zen-temple/#history
96
+
97
+ ## 🗂️ Folder structure
98
+
99
+ The folder and file structure is the following:
100
+
101
+ ### Explorer
102
+
103
+ `explorer` contains the HTML files for the frontend.
104
+
105
+ > [!WARNING]
106
+ > Do not edit the files in this folder. This folder is automatically generated by the frontend repository pipeline.
107
+
108
+ ### Models
109
+
110
+ `models` contains the Pydantic-models that are used for the documentation. Some of these models also include generators that create an instance of the model given the path of a solution. See https://fastapi.tiangolo.com/tutorial/body/#create-your-data-model
111
+
112
+ ### Repositories
113
+
114
+ `repositories` contains the repositories for the data access. These provide an abstraction layer for the routers such that the data access is separated from the data source. Arguably, the generators defined in the models should be part of the repository in order to separate the instantiation of the models from the way that the solutions are stored. For more information visit https://www.umlboard.com/design-patterns/repository.html
115
+
116
+ ### Routers
117
+
118
+ `routers` contains the FastAPI routers which define the different paths of the API server. For more information visit https://fastapi.tiangolo.com/tutorial/bigger-applications/
119
+
120
+ ### Config
121
+
122
+ `config.py` contains the config of the application.
123
+
124
+ ### Main
125
+
126
+ `main.py` contains the setup of the FastAPI application. For more information visit https://fastapi.tiangolo.com/tutorial/bigger-applications/
@@ -0,0 +1,103 @@
1
+ # ZEN-temple
2
+
3
+ ZEN-temple is a FastAPI Application that provides a REST API to access results from [ZEN-garden](https://github.com/ZEN-universe/ZEN-garden). It is used as a backend for [ZEN-Explorer](https://github.com/ZEN-universe/ZEN-explorer).
4
+
5
+ [![PyPI - Version](https://img.shields.io/pypi/v/zen-temple?logo=pypi&logoColor=fff&color=0375b5)](https://pypi.org/project/zen-temple/)
6
+ ![Python Version from PEP 621 TOML](https://img.shields.io/python/required-version-toml?tomlFilePath=https%3A%2F%2Fgithub.com%2FZEN-universe%2FZEN-temple%2Fraw%2Frefs%2Fheads%2Fmain%2Fpyproject.toml)
7
+
8
+ [![GitHub Actions: Type checker](https://github.com/ZEN-universe/ZEN-temple/actions/workflows/run-mypy.yml/badge.svg)](https://github.com/ZEN-universe/ZEN-temple/actions/workflows/run-mypy.yml)
9
+
10
+ [![GitHub License](https://img.shields.io/github/license/ZEN-universe/ZEN-temple?label=License)](https://github.com/ZEN-universe/ZEN-temple/blob/main/LICENSE)
11
+
12
+ ## 🛠️ Requirements
13
+
14
+ - Conda (https://docs.conda.io/en/latest/miniconda.html)
15
+ - Python 3.10 or higher
16
+
17
+ ## 📦 Installation
18
+
19
+ Perform the following steps to install ZEN-temple:
20
+
21
+ 1. Clone the repository and navigate into the folder:
22
+
23
+ ```bash
24
+ git clone https://github.com/ZEN-universe/ZEN-temple.git
25
+ cd ZEN-temple
26
+ ```
27
+
28
+ 1. Create a new conda environment, activate it, and install all dependencies:
29
+
30
+ ```bash
31
+ conda create --name <your-env-name> python==3.12
32
+ conda activate <your-env-name>
33
+ pip install -e .[mypy]
34
+ ```
35
+
36
+ 2. Create a new copy of `.env`.
37
+
38
+ ```bash
39
+ cp .env.example .env
40
+ ```
41
+
42
+ Modify the `SOLUTION_FOLDER` variable to the location of your solutions, e.g. `./outputs`. This is the `outputs` folder generated by ZEN-garden.
43
+
44
+ ## ▶️ Usage
45
+
46
+ Open this folder in your terminal. Activate your conda environment for this project and run the application with the following commands:
47
+
48
+ ```bash
49
+ conda activate <your-env-name>
50
+ python -m zen_temple.main --reload
51
+ ```
52
+
53
+ For information about the available command line arguments run:
54
+
55
+ ```bash
56
+ python -m zen_temple.main --help
57
+ ```
58
+
59
+ ## 📤 Release workflow
60
+
61
+ To create a new release of ZEN-temple follow the following steps. The idea is that for each major release (from `v0.4.x` to `v0.5.0`) we sync the version number of ZEN-explorer and ZEN-temple
62
+
63
+ 1. Bump version in ZEN-explorer `bash scripts/bump_version.sh` and update its CHANGELOG.md.
64
+ 2. Commit and upload the updated files to GitHub.
65
+ 3. Create a new release for ZEN-explorer:
66
+ https://github.com/ZEN-universe/ZEN-explorer/releases/new
67
+ 4. Bump version in ZEN-temple `bash scripts/bump_version.sh` and update [CHANGELOG.md](CHANGELOG.md).
68
+ 5. Commit and upload the updated files to GitHub.
69
+ 6. Create a new release for ZEN-temple, e.g. `<version>`. For a pre-release also add a suffix `.dev1`, i.e. `<version>.dev1`, and mark the release as pre-release:
70
+ https://github.com/ZEN-universe/ZEN-temple/releases/new
71
+ 7. (optional) Look at PyPI whether the new release has successfully been created:
72
+ https://pypi.org/project/zen-temple/#history
73
+
74
+ ## 🗂️ Folder structure
75
+
76
+ The folder and file structure is the following:
77
+
78
+ ### Explorer
79
+
80
+ `explorer` contains the HTML files for the frontend.
81
+
82
+ > [!WARNING]
83
+ > Do not edit the files in this folder. This folder is automatically generated by the frontend repository pipeline.
84
+
85
+ ### Models
86
+
87
+ `models` contains the Pydantic-models that are used for the documentation. Some of these models also include generators that create an instance of the model given the path of a solution. See https://fastapi.tiangolo.com/tutorial/body/#create-your-data-model
88
+
89
+ ### Repositories
90
+
91
+ `repositories` contains the repositories for the data access. These provide an abstraction layer for the routers such that the data access is separated from the data source. Arguably, the generators defined in the models should be part of the repository in order to separate the instantiation of the models from the way that the solutions are stored. For more information visit https://www.umlboard.com/design-patterns/repository.html
92
+
93
+ ### Routers
94
+
95
+ `routers` contains the FastAPI routers which define the different paths of the API server. For more information visit https://fastapi.tiangolo.com/tutorial/bigger-applications/
96
+
97
+ ### Config
98
+
99
+ `config.py` contains the config of the application.
100
+
101
+ ### Main
102
+
103
+ `main.py` contains the setup of the FastAPI application. For more information visit https://fastapi.tiangolo.com/tutorial/bigger-applications/
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "zen_temple"
7
- version = "0.7.0.dev2"
7
+ version = "0.7.2"
8
8
  authors = [
9
9
  { name="ZEN-garden developers", email="zen-garden@ethz.ch" },
10
10
  ]
@@ -8,8 +8,8 @@ load_dotenv()
8
8
  class Config:
9
9
  def __init__(self) -> None:
10
10
  self.SOLUTION_FOLDER: str = os.getenv("SOLUTION_FOLDER", "./outputs")
11
- self.EPS = os.getenv("EPS", 1e-6)
12
- self.RESPONSE_SIGNIFICANT_DIGITS = os.getenv("RESPONSE_SIGNIFICANT_DIGITS", 4)
11
+ self.EPS = float(os.getenv("EPS", 1e-6))
12
+ self.RESPONSE_SIGNIFICANT_DIGITS = int(os.getenv("RESPONSE_SIGNIFICANT_DIGITS", 4))
13
13
 
14
14
  self.check()
15
15
 
@@ -0,0 +1 @@
1
+ .menu.svelte-1640grj{position:relative;margin:0 auto;overflow:hidden;border-radius:50%}.quarter.svelte-1640grj{position:absolute;width:50%;height:50%;transition:opacity .2s;cursor:pointer;border:1px solid rgba(0,0,0,.5);font-weight:700;font-size:20px}.quarter:hover.active.svelte-1640grj{opacity:.7}.content.svelte-1640grj{text-align:center;width:100%;transform-origin:center center;position:absolute;top:50%;left:50%}.quarter1.svelte-1640grj{top:0;left:0;color:red;background-color:#ff00004d;border-radius:100% 0 0;border-top:2px solid black;border-left:2px solid black}.quarter1.svelte-1640grj .content:where(.svelte-1640grj){transform:translate(-50%,-50%) rotate(-45deg)}.quarter2.svelte-1640grj{top:0;right:0;color:#00a400;background-color:#00a4004d;border-radius:0 100% 0 0;border-top:2px solid black;border-right:2px solid black}.quarter2.svelte-1640grj .content:where(.svelte-1640grj){transform:translate(-50%,-50%) rotate(45deg)}.quarter3.svelte-1640grj{bottom:0;left:0;color:#0303a2;background-color:#0000ff4d;border-radius:0 0 0 100%;border-bottom:2px solid black;border-left:2px solid black}.quarter3.svelte-1640grj .content:where(.svelte-1640grj){transform:translate(-50%,-50%) rotate(45deg)}.quarter4.svelte-1640grj{bottom:0;right:0;color:#787800;background-color:#7878004d;border-radius:0 0 100%;border-bottom:2px solid black;border-right:2px solid black}.quarter4.svelte-1640grj .content:where(.svelte-1640grj){transform:translate(-50%,-50%) rotate(-45deg)}.logo.svelte-1640grj{position:absolute;width:50%;height:50%;left:50%;top:50%;transform:translate(-50%,-50%);background-color:#fff;border-radius:50%}img.svelte-1640grj{position:relative;width:100%;height:100%;border-radius:50%}.links.svelte-1640grj{font-size:20px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center center;width:0;height:0;background-color:#fffffff2;transition:all .2s ease-out;border-radius:50%;overflow:hidden}.links.active.svelte-1640grj{width:100%;height:100%}.sublink.svelte-1640grj{text-align:center;position:absolute;width:50%;height:50%}.sublink.svelte-1640grj a:where(.svelte-1640grj){position:absolute;top:50%;left:50%;transform-origin:center center}.sublink.l1.svelte-1640grj{top:0;left:0}.sublink.l1.svelte-1640grj a:where(.svelte-1640grj){transform:translate(-50%,-50%) rotate(-45deg)}.sublink.l2.svelte-1640grj{top:0;right:0}.sublink.l2.svelte-1640grj a:where(.svelte-1640grj){transform:translate(-50%,-50%) rotate(45deg)}.sublink.l3.svelte-1640grj{bottom:0;left:0}.sublink.l3.svelte-1640grj a:where(.svelte-1640grj){transform:translate(-50%,-50%) rotate(45deg)}.sublink.l4.svelte-1640grj{bottom:0;right:0}.sublink.l4.svelte-1640grj a:where(.svelte-1640grj){transform:translate(-50%,-50%) rotate(-45deg)}.close.svelte-1640grj{position:absolute;width:10%;height:10%;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:50%;border:none;background-color:#0000001a;transition:background-color .2s;font-size:40px}.close.svelte-1640grj img:where(.svelte-1640grj){position:absolute;width:70%;height:70%;top:50%;left:50%;transform:translate(-50%,-50%)}.close.svelte-1640grj:hover{background-color:#0003}
@@ -0,0 +1 @@
1
+ svg.svelte-1joeiwq{font:9px sans-serif}.node.svelte-1joeiwq{cursor:row-resize}.node.svelte-1joeiwq rect:where(.svelte-1joeiwq){stroke:#000;stroke-width:2px}.link.svelte-1joeiwq{fill:none;stroke:#000;stroke-opacity:.3}.link.svelte-1joeiwq:hover{stroke-opacity:.5}.cycle-link.svelte-1joeiwq{opacity:.3;stroke:none;stroke-linejoin:round}.cycle-link.svelte-1joeiwq:hover{opacity:.5}
@@ -0,0 +1 @@
1
+ .menu.svelte-1640grj{position:relative;margin:0 auto;overflow:hidden;border-radius:50%}.quarter.svelte-1640grj{position:absolute;width:50%;height:50%;transition:opacity .2s;cursor:pointer;border:1px solid rgba(0,0,0,.5);font-weight:700;font-size:20px}.quarter:hover.active.svelte-1640grj{opacity:.7}.content.svelte-1640grj{text-align:center;width:100%;transform-origin:center center;position:absolute;top:50%;left:50%}.quarter1.svelte-1640grj{top:0;left:0;color:red;background-color:#ff00004d;border-radius:100% 0 0;border-top:2px solid black;border-left:2px solid black}.quarter1.svelte-1640grj .content:where(.svelte-1640grj){transform:translate(-50%,-50%) rotate(-45deg)}.quarter2.svelte-1640grj{top:0;right:0;color:#00a400;background-color:#00a4004d;border-radius:0 100% 0 0;border-top:2px solid black;border-right:2px solid black}.quarter2.svelte-1640grj .content:where(.svelte-1640grj){transform:translate(-50%,-50%) rotate(45deg)}.quarter3.svelte-1640grj{bottom:0;left:0;color:#0303a2;background-color:#0000ff4d;border-radius:0 0 0 100%;border-bottom:2px solid black;border-left:2px solid black}.quarter3.svelte-1640grj .content:where(.svelte-1640grj){transform:translate(-50%,-50%) rotate(45deg)}.quarter4.svelte-1640grj{bottom:0;right:0;color:#787800;background-color:#7878004d;border-radius:0 0 100%;border-bottom:2px solid black;border-right:2px solid black}.quarter4.svelte-1640grj .content:where(.svelte-1640grj){transform:translate(-50%,-50%) rotate(-45deg)}.logo.svelte-1640grj{position:absolute;width:50%;height:50%;left:50%;top:50%;transform:translate(-50%,-50%);background-color:#fff;border-radius:50%}img.svelte-1640grj{position:relative;width:100%;height:100%;border-radius:50%}.links.svelte-1640grj{font-size:20px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center center;width:0;height:0;background-color:#fffffff2;transition:all .2s ease-out;border-radius:50%;overflow:hidden}.links.active.svelte-1640grj{width:100%;height:100%}.sublink.svelte-1640grj{text-align:center;position:absolute;width:50%;height:50%}.sublink.svelte-1640grj a:where(.svelte-1640grj){position:absolute;top:50%;left:50%;transform-origin:center center}.sublink.l1.svelte-1640grj{top:0;left:0}.sublink.l1.svelte-1640grj a:where(.svelte-1640grj){transform:translate(-50%,-50%) rotate(-45deg)}.sublink.l2.svelte-1640grj{top:0;right:0}.sublink.l2.svelte-1640grj a:where(.svelte-1640grj){transform:translate(-50%,-50%) rotate(45deg)}.sublink.l3.svelte-1640grj{bottom:0;left:0}.sublink.l3.svelte-1640grj a:where(.svelte-1640grj){transform:translate(-50%,-50%) rotate(45deg)}.sublink.l4.svelte-1640grj{bottom:0;right:0}.sublink.l4.svelte-1640grj a:where(.svelte-1640grj){transform:translate(-50%,-50%) rotate(-45deg)}.close.svelte-1640grj{position:absolute;width:10%;height:10%;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:50%;border:none;background-color:#0000001a;transition:background-color .2s;font-size:40px}.close.svelte-1640grj img:where(.svelte-1640grj){position:absolute;width:70%;height:70%;top:50%;left:50%;transform:translate(-50%,-50%)}.close.svelte-1640grj:hover{background-color:#0003}
@@ -0,0 +1 @@
1
+ svg.svelte-1joeiwq{font:9px sans-serif}.node.svelte-1joeiwq{cursor:row-resize}.node.svelte-1joeiwq rect:where(.svelte-1joeiwq){stroke:#000;stroke-width:2px}.link.svelte-1joeiwq{fill:none;stroke:#000;stroke-opacity:.3}.link.svelte-1joeiwq:hover{stroke-opacity:.5}.cycle-link.svelte-1joeiwq{opacity:.3;stroke:none;stroke-linejoin:round}.cycle-link.svelte-1joeiwq:hover{opacity:.5}
@@ -0,0 +1 @@
1
+ import{s as e,p as t}from"./Cc44QfDF.js";const r={get error(){return t.error},get state(){return t.state},get status(){return t.status},get url(){return t.url}};e.updated.check;const a=r;export{a as p};
@@ -0,0 +1,2 @@
1
+ import{af as M,D as j,aO as F,q as v,ay as T,aP as V,aI as C,ae as p,ad as m,K as _,L,aQ as S,aR as w,E as U,az as z,aS as K,aT as X,aK as Z,aD as q,aU as G,I as Q,p as B,Z as o,G as J,X as ee,i as te,aV as y,u as ae,W as N,aW as ne,V as se,aX as P,d as A,aY as re,aZ as oe,a_ as ie,a$ as le,b0 as ue,b1 as fe,t as de}from"./BZ0BXH4m.js";import{l as ce}from"./DIeogL5L.js";import{a as _e,r as k,h as g}from"./fIP5WTNy.js";import{c as he}from"./DLtGBQZ4.js";const pe=["touchstart","touchmove"];function ve(e){return pe.includes(e)}let r;function ye(){r=void 0}function xe(e){let t=null,a=v;var i;if(v){for(t=_,r===void 0&&(r=L(document.head));r!==null&&(r.nodeType!==T||r.data!==V);)r=C(r);r===null?p(!1):r=m(C(r))}v||(i=document.head.appendChild(M()));try{j(()=>e(i),F)}finally{a&&(p(!0),r=_,m(t))}}let I=!0;function Ne(e,t){var a=t==null?"":typeof t=="object"?t+"":t;a!==(e.__t??=e.nodeValue)&&(e.__t=a,e.nodeValue=a+"")}function $(e,t){return H(e,t)}function ge(e,t){S(),t.intro=t.intro??!1;const a=t.target,i=v,f=_;try{for(var n=L(a);n&&(n.nodeType!==T||n.data!==V);)n=C(n);if(!n)throw w;p(!0),m(n),U();const s=H(e,{...t,anchor:n});if(_===null||_.nodeType!==T||_.data!==z)throw K(),w;return p(!1),s}catch(s){if(s instanceof Error&&s.message.split(`
2
+ `).some(c=>c.startsWith("https://svelte.dev/e/")))throw s;return s!==w&&console.warn("Failed to hydrate: ",s),t.recover===!1&&X(),S(),Z(a),p(!1),$(e,t)}finally{p(i),m(f),ye()}}const h=new Map;function H(e,{target:t,anchor:a,props:i={},events:f,context:n,intro:s=!0}){S();var c=new Set,b=d=>{for(var l=0;l<d.length;l++){var u=d[l];if(!c.has(u)){c.add(u);var R=ve(u);t.addEventListener(u,g,{passive:R});var x=h.get(u);x===void 0?(document.addEventListener(u,g,{passive:R}),h.set(u,1)):h.set(u,x+1)}}};b(q(_e)),k.add(b);var E=void 0,Y=G(()=>{var d=a??t.appendChild(M());return Q(()=>{if(n){B({});var l=o;l.c=n}f&&(i.$$events=f),v&&J(d,null),I=s,E=e(d,i)||{},I=!0,v&&(ee.nodes_end=_),n&&te()}),()=>{for(var l of c){t.removeEventListener(l,g);var u=h.get(l);--u===0?(document.removeEventListener(l,g),h.delete(l)):h.set(l,u)}k.delete(b),d!==a&&d.parentNode?.removeChild(d)}});return D.set(E,Y),E}let D=new WeakMap;function me(e,t){const a=D.get(e);return a?(D.delete(e),a(t)):Promise.resolve()}function be(){return N===null&&ne(),(N.ac??=new AbortController).signal}function W(e){o===null&&y(),ce&&o.l!==null?O(o).m.push(e):ae(()=>{const t=A(e);if(typeof t=="function")return t})}function Ee(e){o===null&&y(),W(()=>()=>A(e))}function we(e,t,{bubbles:a=!1,cancelable:i=!1}={}){return new CustomEvent(e,{detail:t,bubbles:a,cancelable:i})}function Te(){const e=o;return e===null&&y(),(t,a,i)=>{const f=e.s.$$events?.[t];if(f){const n=se(f)?f.slice():[f],s=we(t,a,i);for(const c of n)c.call(e.x,s);return!s.defaultPrevented}return!0}}function Ce(e){o===null&&y(),o.l===null&&P(),O(o).b.push(e)}function Se(e){o===null&&y(),o.l===null&&P(),O(o).a.push(e)}function O(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}const ke=Object.freeze(Object.defineProperty({__proto__:null,afterUpdate:Se,beforeUpdate:Ce,createEventDispatcher:Te,createRawSnippet:he,flushSync:re,getAbortSignal:be,getAllContexts:oe,getContext:ie,hasContext:le,hydrate:ge,mount:$,onDestroy:Ee,onMount:W,setContext:ue,settled:fe,tick:de,unmount:me,untrack:A},Symbol.toStringTag,{value:"Module"}));export{I as a,xe as b,Ee as c,ke as d,ge as h,$ as m,W as o,Ne as s,me as u};
@@ -0,0 +1 @@
1
+ import{V as y,M as le,ax as oe,af as j,D as ce,ad as F,q as M,L as de,E as ve,g as S,ap as _e,aa as he,ab as me,ac as Q,ae as K,K as P,ay as pe,az as Ee,I as k,ai as we,ag as Ae,aA as W,aB as Ie,aC as Z,aD as ee,aE as J,aj as re,ak as Re,aF as q,aG as Te,aH as X,J as ae,aI as Ce,aJ as Ne,aK as ge,aL as Le,X as Me,C as Se,aM as ne,aN as xe,s as De,b as Pe,j as Ue}from"./BZ0BXH4m.js";import{r as be}from"./Cc44QfDF.js";import{p as $}from"./2qELrB5S.js";const He=[];function Oe(e,a=!1){return O(e,new Map,"",He)}function O(e,a,r,f,l=null){if(typeof e=="object"&&e!==null){var o=a.get(e);if(o!==void 0)return o;if(e instanceof Map)return new Map(e);if(e instanceof Set)return new Set(e);if(y(e)){var t=Array(e.length);a.set(e,t),l!==null&&a.set(l,t);for(var c=0;c<e.length;c+=1){var w=e[c];c in e&&(t[c]=O(w,a,r,f))}return t}if(le(e)===oe){t={},a.set(e,t),l!==null&&a.set(l,t);for(var h in e)t[h]=O(e[h],a,r,f);return t}if(e instanceof Date)return structuredClone(e);if(typeof e.toJSON=="function")return O(e.toJSON(),a,r,f,e)}if(e instanceof EventTarget)return e;try{return structuredClone(e)}catch{return e}}function Ke(e,a){return a}function Je(e,a,r){for(var f=e.items,l=[],o=a.length,t=0;t<o;t++)Ne(a[t].e,l,!0);var c=o>0&&l.length===0&&r!==null;if(c){var w=r.parentNode;ge(w),w.append(r),f.clear(),T(e,a[0].prev,a[o-1].next)}Le(l,()=>{for(var h=0;h<o;h++){var v=a[h];c||(f.delete(v.k),T(e,v.prev,v.next)),ae(v.e,!c)}})}function Xe(e,a,r,f,l,o=null){var t=e,c={flags:a,items:new Map,first:null},w=(a&ne)!==0;if(w){var h=e;t=M?F(de(h)):h.appendChild(j())}M&&ve();var v=null,N=!1,A=new Map,g=_e(()=>{var _=r();return y(_)?_:_==null?[]:ee(_)}),s,d;function u(){qe(d,s,c,A,t,l,a,f,r),o!==null&&(s.length===0?v?re(v):v=k(()=>o(t)):v!==null&&Re(v,()=>{v=null}))}ce(()=>{d??=Me,s=S(g);var _=s.length;if(N&&_===0)return;N=_===0;let E=!1;if(M){var I=he(t)===me;I!==(_===0)&&(t=Q(),F(t),K(!1),E=!0)}if(M){for(var C=null,m,n=0;n<_;n++){if(P.nodeType===pe&&P.data===Ee){t=P,E=!0,K(!1);break}var i=s[n],p=f(i,n);m=z(P,c,C,null,i,p,n,l,a,r),c.items.set(p,m),C=m}_>0&&F(Q())}if(M)_===0&&o&&(v=k(()=>o(t)));else if(we()){var x=new Set,b=Ae;for(n=0;n<_;n+=1){i=s[n],p=f(i,n);var L=c.items.get(p)??A.get(p);L?(a&(q|J))!==0&&te(L,i,n,a):(m=z(null,c,null,null,i,p,n,l,a,r,!0),A.set(p,m)),x.add(p)}for(const[R,H]of c.items)x.has(R)||b.skipped_effects.add(H.e);b.add_callback(u)}else u();E&&K(!0),S(g)}),M&&(t=P)}function qe(e,a,r,f,l,o,t,c,w){var h=(t&xe)!==0,v=(t&(q|J))!==0,N=a.length,A=r.items,g=r.first,s=g,d,u=null,_,E=[],I=[],C,m,n,i;if(h)for(i=0;i<N;i+=1)C=a[i],m=c(C,i),n=A.get(m),n!==void 0&&(n.a?.measure(),(_??=new Set).add(n));for(i=0;i<N;i+=1){if(C=a[i],m=c(C,i),n=A.get(m),n===void 0){var p=f.get(m);if(p!==void 0){f.delete(m),A.set(m,p);var x=u?u.next:s;T(r,u,p),T(r,p,x),Y(p,x,l),u=p}else{var b=s?s.e.nodes_start:l;u=z(b,r,u,u===null?r.first:u.next,C,m,i,o,t,w)}A.set(m,u),E=[],I=[],s=u.next;continue}if(v&&te(n,C,i,t),(n.e.f&X)!==0&&(re(n.e),h&&(n.a?.unfix(),(_??=new Set).delete(n))),n!==s){if(d!==void 0&&d.has(n)){if(E.length<I.length){var L=I[0],R;u=L.prev;var H=E[0],B=E[E.length-1];for(R=0;R<E.length;R+=1)Y(E[R],L,l);for(R=0;R<I.length;R+=1)d.delete(I[R]);T(r,H.prev,B.next),T(r,u,H),T(r,B,L),s=L,u=B,i-=1,E=[],I=[]}else d.delete(n),Y(n,s,l),T(r,n.prev,n.next),T(r,n,u===null?r.first:u.next),T(r,u,n),u=n;continue}for(E=[],I=[];s!==null&&s.k!==m;)(s.e.f&X)===0&&(d??=new Set).add(s),I.push(s),s=s.next;if(s===null)continue;n=s}E.push(n),u=n,s=n.next}if(s!==null||d!==void 0){for(var D=d===void 0?[]:ee(d);s!==null;)(s.e.f&X)===0&&D.push(s),s=s.next;var V=D.length;if(V>0){var ie=(t&ne)!==0&&N===0?l:null;if(h){for(i=0;i<V;i+=1)D[i].a?.measure();for(i=0;i<V;i+=1)D[i].a?.fix()}Je(r,D,ie)}}h&&Se(()=>{if(_!==void 0)for(n of _)n.a?.apply()}),e.first=r.first&&r.first.e,e.last=u&&u.e;for(var ue of f.values())ae(ue.e);f.clear()}function te(e,a,r,f){(f&q)!==0&&W(e.v,a),(f&J)!==0?W(e.i,r):e.i=r}function z(e,a,r,f,l,o,t,c,w,h,v){var N=(w&q)!==0,A=(w&Te)===0,g=N?A?Ie(l,!1,!1):Z(l):l,s=(w&J)===0?t:Z(t),d={i:s,v:g,k:o,a:null,e:null,prev:r,next:f};try{if(e===null){var u=document.createDocumentFragment();u.append(e=j())}return d.e=k(()=>c(e,g,s,h),M),d.e.prev=r&&r.e,d.e.next=f&&f.e,r===null?v||(a.first=d):(r.next=d,r.e.next=d.e),f!==null&&(f.prev=d,f.e.prev=d.e),d}finally{}}function Y(e,a,r){for(var f=e.next?e.next.e.nodes_start:r,l=a?a.e.nodes_start:r,o=e.e.nodes_start;o!==null&&o!==f;){var t=Ce(o);l.before(o),o=t}}function T(e,a,r){a===null?e.first=r:(a.next=r,a.e.next=r&&r.e),r!==null&&(r.prev=a,r.e.prev=a&&a.e)}const Ye=globalThis.__sveltekit_19s489k.env;let U=De(Pe({}));function se(e){const a=$.state,r=$.url.searchParams;return a[e]??r.get(e)}function G(e){const a=se(e);return a?decodeURIComponent(a):null}function ke(e){const a=se(e);return a===null?null:a.split("~").map(r=>parseInt(r)).filter(r=>!isNaN(r))}function ze(e,a){const r=G(e);return r===null?a:r==="1"||r==="true"}function fe(e,a){a||(a=window.location.href);const r=new URL(a,window.location.origin);for(const f in e)e[f]!==null?r.searchParams.set(f,e[f]):r.searchParams.delete(f);return r}function Ge(e){return fe({solution:S(U).solution||G("solution")||"",scenario:S(U).scenario||G("scenario")||""},e).href}function Qe(e){Ue(U,{...S(U),...e},!0),be(fe(e),Oe(S(U)))}export{ze as a,ke as b,Ye as c,Ge as d,Xe as e,G as g,Ke as i,Oe as s,Qe as u};
@@ -0,0 +1,2 @@
1
+ function p(n){var i,f,r="";if(typeof n=="string"||typeof n=="number")r+=n;else if(typeof n=="object")if(Array.isArray(n)){var t=n.length;for(i=0;i<t;i++)n[i]&&(f=p(n[i]))&&(r&&(r+=" "),r+=f)}else for(f in n)n[f]&&(r&&(r+=" "),r+=f);return r}function v(){for(var n,i,f=0,r="",t=arguments.length;f<t;f++)(n=arguments[f])&&(i=p(n))&&(r&&(r+=" "),r+=i);return r}function l(n){return typeof n=="object"?v(n):n??""}const c=[...`
2
+ \r\f \v\uFEFF`];function s(n,i,f){var r=n==null?"":""+n;if(i&&(r=r?r+" "+i:i),f){for(var t in f)if(f[t])r=r?r+" "+t:t;else if(r.length)for(var o=t.length,u=0;(u=r.indexOf(t,u))>=0;){var a=u+o;(u===0||c.includes(r[u-1]))&&(a===r.length||c.includes(r[a]))?r=(u===0?"":r.substring(0,u))+r.substring(a+1):u=a}}return r===""?null:r}function g(n,i=!1){var f=i?" !important;":";",r="";for(var t in n){var o=n[t];o!=null&&o!==""&&(r+=" "+t+": "+o+f)}return r}function e(n,i){if(i){var f="",r,t;return Array.isArray(i)?(r=i[0],t=i[1]):r=i,r&&(f+=g(r)),t&&(f+=g(t,!0)),f=f.trim(),f===""?null:f}return String(n)}export{e as a,l as c,s as t};
@@ -0,0 +1 @@
1
+ import"./DsnmJJEf.js";import{w as p,p as d,e as h,m,h as u,r as c,v,a as _,i as b}from"./BZ0BXH4m.js";import{s as g}from"./B98B7x2v.js";import{r as x,s as l}from"./C5ruyaoV.js";import{d as k}from"./fIP5WTNy.js";import{a as w}from"./kHklRsBK.js";import{p as f}from"./CUAkeMiK.js";function I(o,t){t.onUpdate?.()}var T=h('<div class="form-check form-switch"><input class="form-check-input" type="checkbox" role="switch"/> <label class="form-check-label"> </label></div>');function A(o,t){p(),d(t,!0);let s=f(t,"value",15),i=f(t,"texts",19,()=>["on","off"]);var a=T(),e=m(a);x(e),e.__change=[I,t];var r=u(e,2),n=m(r,!0);c(r),c(a),v(()=>{l(e,"id",t.formId),l(r,"for",t.formId),g(n,s()?i()[0]:i()[1])}),w(e,s),_(o,a),b()}k(["change"]);export{A as T};
@@ -0,0 +1 @@
1
+ import{t as b}from"./BIpecMnu.js";import{q as g}from"./BZ0BXH4m.js";function A(i,h,t,N,f,r){var o=i.__className;if(g||o!==t||o===void 0){var a=b(t,N,r);(!g||a!==i.getAttribute("class"))&&(a==null?i.removeAttribute("class"):i.className=a),i.__className=t}else if(r&&f!==r)for(var l in r){var u=!!r[l];(f==null||u!==!!f[l])&&i.classList.toggle(l,u)}return r}export{A as s};
@@ -1 +1 @@
1
- import{l as Ct,t as He}from"./DIeogL5L.js";const ue=!1;var Ue=Array.isArray,Be=Array.prototype.indexOf,Ln=Array.from,Xt=Object.defineProperty,lt=Object.getOwnPropertyDescriptor,$e=Object.getOwnPropertyDescriptors,Ve=Object.prototype,Ge=Array.prototype,le=Object.getPrototypeOf,Zt=Object.isExtensible;function qn(t){return typeof t=="function"}const jn=()=>{};function Yn(t){return t()}function fe(t){for(var e=0;e<t.length;e++)t[e]()}function We(){var t,e,n=new Promise((r,s)=>{t=r,e=s});return{promise:n,resolve:t,reject:e}}function Hn(t,e){if(Array.isArray(t))return t;if(!(Symbol.iterator in t))return Array.from(t);const n=[];for(const r of t)if(n.push(r),n.length===e)break;return n}const A=2,Pt=4,gt=8,vt=16,M=32,X=64,oe=128,S=256,pt=512,E=1024,N=2048,H=4096,j=8192,st=16384,Dt=32768,ce=65536,Jt=1<<17,Ke=1<<18,Mt=1<<19,Ft=1<<20,Rt=1<<21,Lt=1<<22,U=1<<23,B=Symbol("$state"),Un=Symbol("legacy props"),Bn=Symbol(""),qt=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},jt=3,Yt=8;function ze(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function Xe(t){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Ze(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Je(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Qe(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function tn(t){throw new Error("https://svelte.dev/e/effect_orphan")}function en(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Vn(){throw new Error("https://svelte.dev/e/get_abort_signal_outside_reaction")}function Gn(){throw new Error("https://svelte.dev/e/hydration_failed")}function Wn(t){throw new Error("https://svelte.dev/e/lifecycle_legacy_only")}function Kn(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function nn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function rn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function sn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}const zn=1,Xn=2,Zn=4,Jn=8,Qn=16,tr=1,er=2,nr=4,rr=8,sr=16,ar=1,ir=2,ur=4,_e=1,an=2,un="[",ln="[!",fn="]",Ht={},g=Symbol(),lr="http://www.w3.org/1999/xhtml";function Ut(t){console.warn("https://svelte.dev/e/hydration_mismatch")}function fr(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}let k=!1;function or(t){k=t}let p;function tt(t){if(t===null)throw Ut(),Ht;return p=t}function ve(){return tt(Z(p))}function cr(t){if(k){if(Z(p)!==null)throw Ut(),Ht;p=t}}function _r(t=1){if(k){for(var e=t,n=p;e--;)n=Z(n);p=n}}function vr(){for(var t=0,e=p;;){if(e.nodeType===Yt){var n=e.data;if(n===fn){if(t===0)return e;t-=1}else(n===un||n===ln)&&(t+=1)}var r=Z(e);e.remove(),e=r}}function dr(t){if(!t||t.nodeType!==Yt)throw Ut(),Ht;return t.data}function de(t){return t===this.v}function on(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function he(t){return!on(t,this.v)}let m=null;function wt(t){m=t}function hr(t){return Et().get(t)}function pr(t,e){return Et().set(t,e),e}function wr(t){return Et().has(t)}function yr(){return Et()}function mr(t,e=!1,n){m={p:m,c:null,e:null,s:t,x:null,l:Ct&&!e?{s:null,u:null,$:[]}:null}}function gr(t){var e=m,n=e.e;if(n!==null){e.e=null;for(var r of n)Se(r)}return t!==void 0&&(e.x=t),m=e.p,t??{}}function dt(){return!Ct||m!==null&&m.l===null}function Et(t){return m===null&&Xe(),m.c??=new Map(cn(m)||void 0)}function cn(t){let e=t.p;for(;e!==null;){const n=e.c;if(n!==null)return n;e=e.p}return null}const _n=new WeakMap;function vn(t){var e=_;if(e===null)return c.f|=U,t;if((e.f&Dt)===0){if((e.f&oe)===0)throw!e.parent&&t instanceof Error&&pe(t),t;e.b.error(t)}else Bt(t,e)}function Bt(t,e){for(;e!==null;){if((e.f&oe)!==0)try{e.b.error(t);return}catch(n){t=n}e=e.parent}throw t instanceof Error&&pe(t),t}function pe(t){const e=_n.get(t);e&&(Xt(t,"message",{value:e.message}),Xt(t,"stack",{value:e.stack}))}const dn=typeof requestIdleCallback>"u"?t=>setTimeout(t,1):requestIdleCallback;let ot=[],ct=[];function we(){var t=ot;ot=[],fe(t)}function ye(){var t=ct;ct=[],fe(t)}function Er(t){ot.length===0&&queueMicrotask(we),ot.push(t)}function br(t){ct.length===0&&dn(ye),ct.push(t)}function hn(){ot.length>0&&we(),ct.length>0&&ye()}function pn(){for(var t=_.b;t!==null&&!t.has_pending_snippet();)t=t.parent;return t===null&&ze(),t}function $t(t){var e=A|N,n=c!==null&&(c.f&A)!==0?c:null;return _===null||n!==null&&(n.f&S)!==0?e|=S:_.f|=Mt,{ctx:m,deps:null,effects:null,equals:de,f:e,fn:t,reactions:null,rv:0,v:g,wv:0,parent:n??_,ac:null}}function wn(t,e){let n=_;n===null&&Ze();var r=n.b,s=void 0,a=Gt(g),u=null,f=!c;return Rn(()=>{try{var i=t()}catch(d){i=Promise.reject(d)}var l=()=>i;s=u?.then(l,l)??Promise.resolve(i),u=s;var o=y,v=r.pending;f&&(r.update_pending_count(1),v||o.increment());const w=(d,h=void 0)=>{u=null,v||o.activate(),h?h!==qt&&(a.f|=U,Ot(a,h)):((a.f&U)!==0&&(a.f^=U),Ot(a,d)),f&&(r.update_pending_count(-1),v||o.decrement()),Ee()};if(s.then(w,d=>w(null,d||"unknown")),o)return()=>{queueMicrotask(()=>o.neuter())}}),new Promise(i=>{function l(o){function v(){o===s?i(a):l(s)}o.then(v,v)}l(s)})}function Tr(t){const e=$t(t);return De(e),e}function yn(t){const e=$t(t);return e.equals=he,e}function me(t){var e=t.effects;if(e!==null){t.effects=null;for(var n=0;n<e.length;n+=1)z(e[n])}}function mn(t){for(var e=t.parent;e!==null;){if((e.f&A)===0)return e;e=e.parent}return null}function Vt(t){var e,n=_;rt(mn(t));try{me(t),e=qe(t)}finally{rt(n)}return e}function ge(t){var e=Vt(t);if(t.equals(e)||(t.v=e,t.wv=Fe()),!at)if(et!==null)et.set(t,t.v);else{var n=(q||(t.f&S)!==0)&&t.deps!==null?H:E;T(t,n)}}function gn(t,e,n){const r=dt()?$t:yn;if(e.length===0){n(t.map(r));return}var s=y,a=_,u=En(),f=pn();Promise.all(e.map(i=>wn(i))).then(i=>{s?.activate(),u();try{n([...t.map(r),...i])}catch(l){(a.f&st)===0&&Bt(l,a)}s?.deactivate(),Ee()}).catch(i=>{f.error(i)})}function En(){var t=_,e=c,n=m;return function(){rt(t),Y(e),wt(n)}}function Ee(){rt(null),Y(null),wt(null)}const it=new Set;let y=null,et=null,Qt=new Set,yt=[];function be(){const t=yt.shift();yt.length>0&&queueMicrotask(be),t()}let G=[],bt=null,St=!1,ht=!1;class W{current=new Map;#s=new Map;#a=new Set;#t=0;#f=null;#o=!1;#n=[];#i=[];#r=[];#e=[];#u=[];#c=[];#_=[];skipped_effects=new Set;process(e){G=[];var n=null;if(it.size>1){n=new Map,et=new Map;for(const[a,u]of this.current)n.set(a,{v:a.v,wv:a.wv}),a.v=u;for(const a of it)if(a!==this)for(const[u,f]of a.#s)n.has(u)||(n.set(u,{v:u.v,wv:u.wv}),u.v=f)}for(const a of e)this.#d(a);if(this.#n.length===0&&this.#t===0){this.#v();var r=this.#r,s=this.#e;this.#r=[],this.#e=[],this.#u=[],y=null,te(r),te(s),y===null?y=this:it.delete(this),this.#f?.resolve()}else this.#l(this.#r),this.#l(this.#e),this.#l(this.#u);if(n){for(const[a,{v:u,wv:f}]of n)a.wv<=f&&(a.v=u);et=null}for(const a of this.#n)ft(a);for(const a of this.#i)ft(a);this.#n=[],this.#i=[]}#d(e){e.f^=E;for(var n=e.first;n!==null;){var r=n.f,s=(r&(M|X))!==0,a=s&&(r&E)!==0,u=a||(r&j)!==0||this.skipped_effects.has(n);if(!u&&n.fn!==null){if(s)n.f^=E;else if((r&E)===0)if((r&Pt)!==0)this.#e.push(n);else if((r&Lt)!==0){var f=n.b?.pending?this.#i:this.#n;f.push(n)}else Tt(n)&&((n.f&vt)!==0&&this.#u.push(n),ft(n));var i=n.first;if(i!==null){n=i;continue}}var l=n.parent;for(n=n.next;n===null&&l!==null;)n=l.next,l=l.parent}}#l(e){for(const n of e)((n.f&N)!==0?this.#c:this.#_).push(n),T(n,E);e.length=0}capture(e,n){this.#s.has(e)||this.#s.set(e,n),this.current.set(e,e.v)}activate(){y=this}deactivate(){y=null;for(const e of Qt)if(Qt.delete(e),e(),y!==null)break}neuter(){this.#o=!0}flush(){G.length>0?Nt():this.#v(),y===this&&(this.#t===0&&it.delete(this),this.deactivate())}#v(){if(!this.#o)for(const e of this.#a)e();this.#a.clear()}increment(){this.#t+=1}decrement(){if(this.#t-=1,this.#t===0){for(const e of this.#c)T(e,N),K(e);for(const e of this.#_)T(e,H),K(e);this.#r=[],this.#e=[],this.flush()}else this.deactivate()}add_callback(e){this.#a.add(e)}settled(){return(this.#f??=We()).promise}static ensure(){if(y===null){const e=y=new W;it.add(y),ht||W.enqueue(()=>{y===e&&e.flush()})}return y}static enqueue(e){yt.length===0&&queueMicrotask(be),yt.unshift(e)}}function bn(t){var e=ht;ht=!0;try{var n;for(t&&(Nt(),n=t());;){if(hn(),G.length===0&&(y?.flush(),G.length===0))return bt=null,n;Nt()}}finally{ht=e}}function Nt(){var t=Q;St=!0;try{var e=0;for(se(!0);G.length>0;){var n=W.ensure();if(e++>1e3){var r,s;Tn()}n.process(G),$.clear()}}finally{St=!1,se(t),bt=null}}function Tn(){try{en()}catch(t){Bt(t,bt)}}function te(t){var e=t.length;if(e!==0){for(var n=0;n<e;){var r=t[n++];if((r.f&(st|j))===0&&Tt(r)){var s=y?y.current.size:0;if(ft(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?Ie(r):r.fn=null),y!==null&&y.current.size>s&&(r.f&Ft)!==0)break}}for(;n<e;)K(t[n++])}}function K(t){for(var e=bt=t;e.parent!==null;){e=e.parent;var n=e.f;if(St&&e===_&&(n&vt)!==0)return;if((n&(X|M))!==0){if((n&E)===0)return;e.f^=E}}G.push(e)}const $=new Map;function Gt(t,e){var n={f:0,v:t,reactions:null,equals:de,rv:0,wv:0};return n}function F(t,e){const n=Gt(t);return De(n),n}function xr(t,e=!1,n=!0){const r=Gt(t);return e||(r.equals=he),Ct&&n&&m!==null&&m.l!==null&&(m.l.s??=[]).push(r),r}function L(t,e,n=!1){c!==null&&(!I||(c.f&Jt)!==0)&&dt()&&(c.f&(A|vt|Lt|Jt))!==0&&!D?.includes(t)&&sn();let r=n?ut(e):e;return Ot(t,r)}function Ot(t,e){if(!t.equals(e)){var n=t.v;at?$.set(t,e):$.set(t,n),t.v=e;var r=W.ensure();r.capture(t,n),(t.f&A)!==0&&((t.f&N)!==0&&Vt(t),T(t,(t.f&S)===0?E:H)),t.wv=Fe(),Te(t,N),dt()&&_!==null&&(_.f&E)!==0&&(_.f&(M|X))===0&&(R===null?Cn([t]):R.push(t))}return e}function Ar(t,e=1){var n=J(t),r=e===1?n++:n--;return L(t,n),r}function kt(t){L(t,t.v+1)}function Te(t,e){var n=t.reactions;if(n!==null)for(var r=dt(),s=n.length,a=0;a<s;a++){var u=n[a],f=u.f;if(!(!r&&u===_)){var i=(f&N)===0;i&&T(u,e),(f&A)!==0?Te(u,H):i&&K(u)}}}function ut(t){if(typeof t!="object"||t===null||B in t)return t;const e=le(t);if(e!==Ve&&e!==Ge)return t;var n=new Map,r=Ue(t),s=F(0),a=V,u=f=>{if(V===a)return f();var i=c,l=V;Y(null),ie(a);var o=f();return Y(i),ie(l),o};return r&&n.set("length",F(t.length)),new Proxy(t,{defineProperty(f,i,l){(!("value"in l)||l.configurable===!1||l.enumerable===!1||l.writable===!1)&&nn();var o=n.get(i);return o===void 0?o=u(()=>{var v=F(l.value);return n.set(i,v),v}):L(o,l.value,!0),!0},deleteProperty(f,i){var l=n.get(i);if(l===void 0){if(i in f){const o=u(()=>F(g));n.set(i,o),kt(s)}}else L(l,g),kt(s);return!0},get(f,i,l){if(i===B)return t;var o=n.get(i),v=i in f;if(o===void 0&&(!v||lt(f,i)?.writable)&&(o=u(()=>{var d=ut(v?f[i]:g),h=F(d);return h}),n.set(i,o)),o!==void 0){var w=J(o);return w===g?void 0:w}return Reflect.get(f,i,l)},getOwnPropertyDescriptor(f,i){var l=Reflect.getOwnPropertyDescriptor(f,i);if(l&&"value"in l){var o=n.get(i);o&&(l.value=J(o))}else if(l===void 0){var v=n.get(i),w=v?.v;if(v!==void 0&&w!==g)return{enumerable:!0,configurable:!0,value:w,writable:!0}}return l},has(f,i){if(i===B)return!0;var l=n.get(i),o=l!==void 0&&l.v!==g||Reflect.has(f,i);if(l!==void 0||_!==null&&(!o||lt(f,i)?.writable)){l===void 0&&(l=u(()=>{var w=o?ut(f[i]):g,d=F(w);return d}),n.set(i,l));var v=J(l);if(v===g)return!1}return o},set(f,i,l,o){var v=n.get(i),w=i in f;if(r&&i==="length")for(var d=l;d<v.v;d+=1){var h=n.get(d+"");h!==void 0?L(h,g):d in f&&(h=u(()=>F(g)),n.set(d+"",h))}if(v===void 0)(!w||lt(f,i)?.writable)&&(v=u(()=>F(void 0)),L(v,ut(l)),n.set(i,v));else{w=v.v!==g;var xt=u(()=>ut(l));L(v,xt)}var Kt=Reflect.getOwnPropertyDescriptor(f,i);if(Kt?.set&&Kt.set.call(o,l),!w){if(r&&typeof i=="string"){var zt=n.get("length"),At=Number(i);Number.isInteger(At)&&At>=zt.v&&L(zt,At+1)}kt(s)}return!0},ownKeys(f){J(s);var i=Reflect.ownKeys(f).filter(v=>{var w=n.get(v);return w===void 0||w.v!==g});for(var[l,o]of n)o.v!==g&&!(l in f)&&i.push(l);return i},setPrototypeOf(){rn()}})}function ee(t){try{if(t!==null&&typeof t=="object"&&B in t)return t[B]}catch{}return t}function kr(t,e){return Object.is(ee(t),ee(e))}var ne,xn,xe,Ae,ke;function Rr(){if(ne===void 0){ne=window,xn=document,xe=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,n=Text.prototype;Ae=lt(e,"firstChild").get,ke=lt(e,"nextSibling").get,Zt(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),Zt(n)&&(n.__t=void 0)}}function nt(t=""){return document.createTextNode(t)}function O(t){return Ae.call(t)}function Z(t){return ke.call(t)}function Sr(t,e){if(!k)return O(t);var n=O(p);if(n===null)n=p.appendChild(nt());else if(e&&n.nodeType!==jt){var r=nt();return n?.before(r),tt(r),r}return tt(n),n}function Nr(t,e){if(!k){var n=O(t);return n instanceof Comment&&n.data===""?Z(n):n}return p}function Or(t,e=1,n=!1){let r=k?p:t;for(var s;e--;)s=r,r=Z(r);if(!k)return r;if(n&&r?.nodeType!==jt){var a=nt();return r===null?s?.after(a):r.before(a),tt(a),a}return tt(r),r}function Ir(t){t.textContent=""}function Cr(){return!1}let re=!1;function An(){re||(re=!0,document.addEventListener("reset",t=>{Promise.resolve().then(()=>{if(!t.defaultPrevented)for(const e of t.target.elements)e.__on_r?.()})},{capture:!0}))}function Wt(t){var e=c,n=_;Y(null),rt(null);try{return t()}finally{Y(e),rt(n)}}function Pr(t,e,n,r=n){t.addEventListener(e,()=>Wt(n));const s=t.__on_r;s?t.__on_r=()=>{s(),r(!0)}:t.__on_r=()=>r(!0),An()}function Re(t){_===null&&c===null&&tn(),c!==null&&(c.f&S)!==0&&_===null&&Qe(),at&&Je()}function kn(t,e){var n=e.last;n===null?e.last=e.first=t:(n.next=t,t.prev=n,e.last=t)}function P(t,e,n,r=!0){var s=_;s!==null&&(s.f&j)!==0&&(t|=j);var a={ctx:m,deps:null,nodes_start:null,nodes_end:null,f:t|N,first:null,fn:e,last:null,next:null,parent:s,b:s&&s.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{ft(a),a.f|=Dt}catch(i){throw z(a),i}else e!==null&&K(a);var u=n&&a.deps===null&&a.first===null&&a.nodes_start===null&&a.teardown===null&&(a.f&Mt)===0;if(!u&&r&&(s!==null&&kn(a,s),c!==null&&(c.f&A)!==0&&(t&X)===0)){var f=c;(f.effects??=[]).push(a)}return a}function Dr(t){const e=P(gt,null,!1);return T(e,E),e.teardown=t,e}function Mr(t){Re();var e=_.f,n=!c&&(e&M)!==0&&(e&Dt)===0;if(n){var r=m;(r.e??=[]).push(t)}else return Se(t)}function Se(t){return P(Pt|Ft,t,!1)}function Fr(t){return Re(),P(gt|Ft,t,!0)}function Lr(t){W.ensure();const e=P(X,t,!0);return(n={})=>new Promise(r=>{n.outro?On(e,()=>{z(e),r(void 0)}):(z(e),r(void 0))})}function qr(t){return P(Pt,t,!1)}function Rn(t){return P(Lt|Mt,t,!0)}function jr(t,e=0){return P(gt|e,t,!0)}function Yr(t,e=[],n=[]){gn(e,n,r=>{P(gt,()=>t(...r.map(J)),!0)})}function Hr(t,e=0){var n=P(vt|e,t,!0);return n}function Ur(t,e=!0){return P(M,t,!0,e)}function Ne(t){var e=t.teardown;if(e!==null){const n=at,r=c;ae(!0),Y(null);try{e.call(null)}finally{ae(n),Y(r)}}}function Oe(t,e=!1){var n=t.first;for(t.first=t.last=null;n!==null;){const s=n.ac;s!==null&&Wt(()=>{s.abort(qt)});var r=n.next;(n.f&X)!==0?n.parent=null:z(n,e),n=r}}function Sn(t){for(var e=t.first;e!==null;){var n=e.next;(e.f&M)===0&&z(e),e=n}}function z(t,e=!0){var n=!1;(e||(t.f&Ke)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(Nn(t.nodes_start,t.nodes_end),n=!0),Oe(t,e&&!n),mt(t,0),T(t,st);var r=t.transitions;if(r!==null)for(const a of r)a.stop();Ne(t);var s=t.parent;s!==null&&s.first!==null&&Ie(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=t.ac=null}function Nn(t,e){for(;t!==null;){var n=t===e?null:Z(t);t.remove(),t=n}}function Ie(t){var e=t.parent,n=t.prev,r=t.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),e!==null&&(e.first===t&&(e.first=r),e.last===t&&(e.last=n))}function On(t,e){var n=[];Ce(t,n,!0),In(n,()=>{z(t),e&&e()})}function In(t,e){var n=t.length;if(n>0){var r=()=>--n||e();for(var s of t)s.out(r)}else e()}function Ce(t,e,n){if((t.f&j)===0){if(t.f^=j,t.transitions!==null)for(const u of t.transitions)(u.is_global||n)&&e.push(u);for(var r=t.first;r!==null;){var s=r.next,a=(r.f&ce)!==0||(r.f&M)!==0;Ce(r,e,a?n:!1),r=s}}}function Br(t){Pe(t,!0)}function Pe(t,e){if((t.f&j)!==0){t.f^=j,(t.f&E)===0&&(T(t,N),K(t));for(var n=t.first;n!==null;){var r=n.next,s=(n.f&ce)!==0||(n.f&M)!==0;Pe(n,s?e:!1),n=r}if(t.transitions!==null)for(const a of t.transitions)(a.is_global||e)&&a.in()}}let Q=!1;function se(t){Q=t}let at=!1;function ae(t){at=t}let c=null,I=!1;function Y(t){c=t}let _=null;function rt(t){_=t}let D=null;function De(t){c!==null&&(D===null?D=[t]:D.push(t))}let b=null,x=0,R=null;function Cn(t){R=t}let Me=1,_t=0,V=_t;function ie(t){V=t}let q=!1;function Fe(){return++Me}function Tt(t){var e=t.f;if((e&N)!==0)return!0;if((e&H)!==0){var n=t.deps,r=(e&S)!==0;if(n!==null){var s,a,u=(e&pt)!==0,f=r&&_!==null&&!q,i=n.length;if((u||f)&&(_===null||(_.f&st)===0)){var l=t,o=l.parent;for(s=0;s<i;s++)a=n[s],(u||!a?.reactions?.includes(l))&&(a.reactions??=[]).push(l);u&&(l.f^=pt),f&&o!==null&&(o.f&S)===0&&(l.f^=S)}for(s=0;s<i;s++)if(a=n[s],Tt(a)&&ge(a),a.wv>t.wv)return!0}(!r||_!==null&&!q)&&T(t,E)}return!1}function Le(t,e,n=!0){var r=t.reactions;if(r!==null&&!D?.includes(t))for(var s=0;s<r.length;s++){var a=r[s];(a.f&A)!==0?Le(a,e,!1):e===a&&(n?T(a,N):(a.f&E)!==0&&T(a,H),K(a))}}function qe(t){var e=b,n=x,r=R,s=c,a=q,u=D,f=m,i=I,l=V,o=t.f;b=null,x=0,R=null,q=(o&S)!==0&&(I||!Q||c===null),c=(o&(M|X))===0?t:null,D=null,wt(t.ctx),I=!1,V=++_t,t.ac!==null&&(Wt(()=>{t.ac.abort(qt)}),t.ac=null);try{t.f|=Rt;var v=t.fn,w=v(),d=t.deps;if(b!==null){var h;if(mt(t,x),d!==null&&x>0)for(d.length=x+b.length,h=0;h<b.length;h++)d[x+h]=b[h];else t.deps=d=b;if(!q||(o&A)!==0&&t.reactions!==null)for(h=x;h<d.length;h++)(d[h].reactions??=[]).push(t)}else d!==null&&x<d.length&&(mt(t,x),d.length=x);if(dt()&&R!==null&&!I&&d!==null&&(t.f&(A|H|N))===0)for(h=0;h<R.length;h++)Le(R[h],t);return s!==null&&s!==t&&(_t++,R!==null&&(r===null?r=R:r.push(...R))),(t.f&U)!==0&&(t.f^=U),w}catch(xt){return vn(xt)}finally{t.f^=Rt,b=e,x=n,R=r,c=s,q=a,D=u,wt(f),I=i,V=l}}function Pn(t,e){let n=e.reactions;if(n!==null){var r=Be.call(n,t);if(r!==-1){var s=n.length-1;s===0?n=e.reactions=null:(n[r]=n[s],n.pop())}}n===null&&(e.f&A)!==0&&(b===null||!b.includes(e))&&(T(e,H),(e.f&(S|pt))===0&&(e.f^=pt),me(e),mt(e,0))}function mt(t,e){var n=t.deps;if(n!==null)for(var r=e;r<n.length;r++)Pn(t,n[r])}function ft(t){var e=t.f;if((e&st)===0){T(t,E);var n=_,r=Q;_=t,Q=!0;try{(e&vt)!==0?Sn(t):Oe(t),Ne(t);var s=qe(t);t.teardown=typeof s=="function"?s:null,t.wv=Me;var a;ue&&He&&(t.f&N)!==0&&t.deps}finally{Q=r,_=n}}}async function $r(){await Promise.resolve(),bn()}function Vr(){return W.ensure().settled()}function J(t){var e=t.f,n=(e&A)!==0;if(c!==null&&!I){var r=_!==null&&(_.f&st)!==0;if(!r&&!D?.includes(t)){var s=c.deps;if((c.f&Rt)!==0)t.rv<_t&&(t.rv=_t,b===null&&s!==null&&s[x]===t?x++:b===null?b=[t]:(!q||!b.includes(t))&&b.push(t));else{(c.deps??=[]).push(t);var a=t.reactions;a===null?t.reactions=[c]:a.includes(c)||a.push(c)}}}else if(n&&t.deps===null&&t.effects===null){var u=t,f=u.parent;f!==null&&(f.f&S)===0&&(u.f^=S)}if(at){if($.has(t))return $.get(t);if(n){u=t;var i=u.v;return((u.f&E)===0&&u.reactions!==null||je(u))&&(i=Vt(u)),$.set(u,i),i}}else if(n){if(u=t,et?.has(u))return et.get(u);Tt(u)&&ge(u)}if((t.f&U)!==0)throw t.v;return t.v}function je(t){if(t.v===g)return!0;if(t.deps===null)return!1;for(const e of t.deps)if($.has(e)||(e.f&A)!==0&&je(e))return!0;return!1}function Gr(t){var e=I;try{return I=!0,t()}finally{I=e}}const Dn=-7169;function T(t,e){t.f=t.f&Dn|e}function Wr(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(B in t)It(t);else if(!Array.isArray(t))for(let e in t){const n=t[e];typeof n=="object"&&n&&B in n&&It(n)}}}function It(t,e=new Set){if(typeof t=="object"&&t!==null&&!(t instanceof EventTarget)&&!e.has(t)){e.add(t),t instanceof Date&&t.getTime();for(let r in t)try{It(t[r],e)}catch{}const n=le(t);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const r=$e(n);for(let s in r){const a=r[s].get;if(a)try{a.call(t)}catch{}}}}}function Ye(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function C(t,e){var n=_;n.nodes_start===null&&(n.nodes_start=t,n.nodes_end=e)}function Kr(t,e){var n=(e&_e)!==0,r=(e&an)!==0,s,a=!t.startsWith("<!>");return()=>{if(k)return C(p,null),p;s===void 0&&(s=Ye(a?t:"<!>"+t),n||(s=O(s)));var u=r||xe?document.importNode(s,!0):s.cloneNode(!0);if(n){var f=O(u),i=u.lastChild;C(f,i)}else C(u,u);return u}}function Mn(t,e,n="svg"){var r=!t.startsWith("<!>"),s=(e&_e)!==0,a=`<${n}>${r?t:"<!>"+t}</${n}>`,u;return()=>{if(k)return C(p,null),p;if(!u){var f=Ye(a),i=O(f);if(s)for(u=document.createDocumentFragment();O(i);)u.appendChild(O(i));else u=O(i)}var l=u.cloneNode(!0);if(s){var o=O(l),v=l.lastChild;C(o,v)}else C(l,l);return l}}function zr(t,e){return Mn(t,e,"svg")}function Xr(t=""){if(!k){var e=nt(t+"");return C(e,e),e}var n=p;return n.nodeType!==jt&&(n.before(n=nt()),tt(n)),C(n,n),n}function Zr(){if(k)return C(p,null),p;var t=document.createDocumentFragment(),e=document.createComment(""),n=nt();return t.append(e,n),C(e,n),t}function Jr(t,e){if(k){_.nodes_end=p,ve();return}t!==null&&t.before(e)}function Qr(){if(k&&p&&p.nodeType===Yt&&p.textContent?.startsWith("#")){const t=p.textContent.substring(1);return ve(),t}return(window.__svelte??={}).uid??=1,`c${window.__svelte.uid++}`}export{Wr as $,Er as A,Hr as B,ve as C,Ye as D,C as E,ce as F,Ur as G,z as H,p as I,O as J,le as K,$e as L,br as M,lr as N,An as O,Bn as P,Xt as Q,Y as R,rt as S,Ue as T,c as U,_ as V,Wt as W,m as X,Fr as Y,fe as Z,Yn as _,Jr as a,vt as a$,$t as a0,Qr as a1,Xr as a2,nt as a3,tt as a4,yn as a5,dr as a6,ln as a7,vr as a8,or as a9,at as aA,st as aB,rr as aC,er as aD,tr as aE,sr as aF,Un as aG,Ke as aH,un as aI,Rr as aJ,Ht as aK,Ut as aL,Gn as aM,Lr as aN,Xe as aO,Vn as aP,Wn as aQ,bn as aR,yr as aS,hr as aT,wr as aU,pr as aV,Vr as aW,xn as aX,Ve as aY,_r as aZ,fr as a_,Yt as aa,fn as ab,Cr as ac,y as ad,Ot as ae,xr as af,Gt as ag,Ln as ah,Xn as ai,Br as aj,On as ak,zn as al,Qn as am,j as an,Z as ao,Ce as ap,Ir as aq,In as ar,Zn as as,Jn as at,g as au,qr as av,B as aw,lt as ax,Kn as ay,nr as az,ut as b,Dt as b0,ur as b1,qn as b2,ar as b3,ir as b4,zr as b5,ne as b6,on as b7,Zr as c,Gr as d,Kr as e,Nr as f,J as g,Or as h,gr as i,L as j,Hn as k,Tr as l,Sr as m,jn as n,Ar as o,mr as p,k as q,cr as r,F as s,$r as t,Mr as u,Yr as v,Pr as w,jr as x,kr as y,Dr as z};
1
+ import{l as Ct,t as He}from"./DIeogL5L.js";const ue=!1;var Ue=Array.isArray,Be=Array.prototype.indexOf,Ln=Array.from,Xt=Object.defineProperty,lt=Object.getOwnPropertyDescriptor,$e=Object.getOwnPropertyDescriptors,Ve=Object.prototype,Ge=Array.prototype,le=Object.getPrototypeOf,Zt=Object.isExtensible;function qn(t){return typeof t=="function"}const jn=()=>{};function Yn(t){return t()}function fe(t){for(var e=0;e<t.length;e++)t[e]()}function We(){var t,e,n=new Promise((r,s)=>{t=r,e=s});return{promise:n,resolve:t,reject:e}}function Hn(t,e){if(Array.isArray(t))return t;if(!(Symbol.iterator in t))return Array.from(t);const n=[];for(const r of t)if(n.push(r),n.length===e)break;return n}const A=2,Pt=4,gt=8,vt=16,M=32,X=64,oe=128,S=256,pt=512,E=1024,N=2048,H=4096,j=8192,st=16384,Dt=32768,ce=65536,Jt=1<<17,Ke=1<<18,Mt=1<<19,Ft=1<<20,Rt=1<<21,Lt=1<<22,U=1<<23,B=Symbol("$state"),Un=Symbol("legacy props"),Bn=Symbol(""),qt=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},jt=3,Yt=8;function ze(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function Xe(t){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Ze(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Je(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Qe(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function tn(t){throw new Error("https://svelte.dev/e/effect_orphan")}function en(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Vn(){throw new Error("https://svelte.dev/e/get_abort_signal_outside_reaction")}function Gn(){throw new Error("https://svelte.dev/e/hydration_failed")}function Wn(t){throw new Error("https://svelte.dev/e/lifecycle_legacy_only")}function Kn(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function nn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function rn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function sn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}const zn=1,Xn=2,Zn=4,Jn=8,Qn=16,tr=1,er=2,nr=4,rr=8,sr=16,ar=1,ir=2,ur=4,_e=1,an=2,un="[",ln="[!",fn="]",Ht={},g=Symbol(),lr="http://www.w3.org/1999/xhtml";function Ut(t){console.warn("https://svelte.dev/e/hydration_mismatch")}function fr(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}let k=!1;function or(t){k=t}let p;function tt(t){if(t===null)throw Ut(),Ht;return p=t}function ve(){return tt(Z(p))}function cr(t){if(k){if(Z(p)!==null)throw Ut(),Ht;p=t}}function _r(t=1){if(k){for(var e=t,n=p;e--;)n=Z(n);p=n}}function vr(){for(var t=0,e=p;;){if(e.nodeType===Yt){var n=e.data;if(n===fn){if(t===0)return e;t-=1}else(n===un||n===ln)&&(t+=1)}var r=Z(e);e.remove(),e=r}}function dr(t){if(!t||t.nodeType!==Yt)throw Ut(),Ht;return t.data}function de(t){return t===this.v}function on(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function he(t){return!on(t,this.v)}let m=null;function wt(t){m=t}function hr(t){return Et().get(t)}function pr(t,e){return Et().set(t,e),e}function wr(t){return Et().has(t)}function yr(){return Et()}function mr(t,e=!1,n){m={p:m,c:null,e:null,s:t,x:null,l:Ct&&!e?{s:null,u:null,$:[]}:null}}function gr(t){var e=m,n=e.e;if(n!==null){e.e=null;for(var r of n)Se(r)}return t!==void 0&&(e.x=t),m=e.p,t??{}}function dt(){return!Ct||m!==null&&m.l===null}function Et(t){return m===null&&Xe(),m.c??=new Map(cn(m)||void 0)}function cn(t){let e=t.p;for(;e!==null;){const n=e.c;if(n!==null)return n;e=e.p}return null}const _n=new WeakMap;function vn(t){var e=_;if(e===null)return c.f|=U,t;if((e.f&Dt)===0){if((e.f&oe)===0)throw!e.parent&&t instanceof Error&&pe(t),t;e.b.error(t)}else Bt(t,e)}function Bt(t,e){for(;e!==null;){if((e.f&oe)!==0)try{e.b.error(t);return}catch(n){t=n}e=e.parent}throw t instanceof Error&&pe(t),t}function pe(t){const e=_n.get(t);e&&(Xt(t,"message",{value:e.message}),Xt(t,"stack",{value:e.stack}))}const dn=typeof requestIdleCallback>"u"?t=>setTimeout(t,1):requestIdleCallback;let ot=[],ct=[];function we(){var t=ot;ot=[],fe(t)}function ye(){var t=ct;ct=[],fe(t)}function Er(t){ot.length===0&&queueMicrotask(we),ot.push(t)}function br(t){ct.length===0&&dn(ye),ct.push(t)}function hn(){ot.length>0&&we(),ct.length>0&&ye()}function pn(){for(var t=_.b;t!==null&&!t.has_pending_snippet();)t=t.parent;return t===null&&ze(),t}function $t(t){var e=A|N,n=c!==null&&(c.f&A)!==0?c:null;return _===null||n!==null&&(n.f&S)!==0?e|=S:_.f|=Mt,{ctx:m,deps:null,effects:null,equals:de,f:e,fn:t,reactions:null,rv:0,v:g,wv:0,parent:n??_,ac:null}}function wn(t,e){let n=_;n===null&&Ze();var r=n.b,s=void 0,a=Gt(g),u=null,f=!c;return Rn(()=>{try{var i=t()}catch(d){i=Promise.reject(d)}var l=()=>i;s=u?.then(l,l)??Promise.resolve(i),u=s;var o=y,v=r.pending;f&&(r.update_pending_count(1),v||o.increment());const w=(d,h=void 0)=>{u=null,v||o.activate(),h?h!==qt&&(a.f|=U,Ot(a,h)):((a.f&U)!==0&&(a.f^=U),Ot(a,d)),f&&(r.update_pending_count(-1),v||o.decrement()),Ee()};if(s.then(w,d=>w(null,d||"unknown")),o)return()=>{queueMicrotask(()=>o.neuter())}}),new Promise(i=>{function l(o){function v(){o===s?i(a):l(s)}o.then(v,v)}l(s)})}function Tr(t){const e=$t(t);return De(e),e}function yn(t){const e=$t(t);return e.equals=he,e}function me(t){var e=t.effects;if(e!==null){t.effects=null;for(var n=0;n<e.length;n+=1)z(e[n])}}function mn(t){for(var e=t.parent;e!==null;){if((e.f&A)===0)return e;e=e.parent}return null}function Vt(t){var e,n=_;rt(mn(t));try{me(t),e=qe(t)}finally{rt(n)}return e}function ge(t){var e=Vt(t);if(t.equals(e)||(t.v=e,t.wv=Fe()),!at)if(et!==null)et.set(t,t.v);else{var n=(q||(t.f&S)!==0)&&t.deps!==null?H:E;T(t,n)}}function gn(t,e,n){const r=dt()?$t:yn;if(e.length===0){n(t.map(r));return}var s=y,a=_,u=En(),f=pn();Promise.all(e.map(i=>wn(i))).then(i=>{s?.activate(),u();try{n([...t.map(r),...i])}catch(l){(a.f&st)===0&&Bt(l,a)}s?.deactivate(),Ee()}).catch(i=>{f.error(i)})}function En(){var t=_,e=c,n=m;return function(){rt(t),Y(e),wt(n)}}function Ee(){rt(null),Y(null),wt(null)}const it=new Set;let y=null,et=null,Qt=new Set,yt=[];function be(){const t=yt.shift();yt.length>0&&queueMicrotask(be),t()}let G=[],bt=null,St=!1,ht=!1;class W{current=new Map;#s=new Map;#a=new Set;#t=0;#f=null;#o=!1;#n=[];#i=[];#r=[];#e=[];#u=[];#c=[];#_=[];skipped_effects=new Set;process(e){G=[];var n=null;if(it.size>1){n=new Map,et=new Map;for(const[a,u]of this.current)n.set(a,{v:a.v,wv:a.wv}),a.v=u;for(const a of it)if(a!==this)for(const[u,f]of a.#s)n.has(u)||(n.set(u,{v:u.v,wv:u.wv}),u.v=f)}for(const a of e)this.#d(a);if(this.#n.length===0&&this.#t===0){this.#v();var r=this.#r,s=this.#e;this.#r=[],this.#e=[],this.#u=[],y=null,te(r),te(s),y===null?y=this:it.delete(this),this.#f?.resolve()}else this.#l(this.#r),this.#l(this.#e),this.#l(this.#u);if(n){for(const[a,{v:u,wv:f}]of n)a.wv<=f&&(a.v=u);et=null}for(const a of this.#n)ft(a);for(const a of this.#i)ft(a);this.#n=[],this.#i=[]}#d(e){e.f^=E;for(var n=e.first;n!==null;){var r=n.f,s=(r&(M|X))!==0,a=s&&(r&E)!==0,u=a||(r&j)!==0||this.skipped_effects.has(n);if(!u&&n.fn!==null){if(s)n.f^=E;else if((r&E)===0)if((r&Pt)!==0)this.#e.push(n);else if((r&Lt)!==0){var f=n.b?.pending?this.#i:this.#n;f.push(n)}else Tt(n)&&((n.f&vt)!==0&&this.#u.push(n),ft(n));var i=n.first;if(i!==null){n=i;continue}}var l=n.parent;for(n=n.next;n===null&&l!==null;)n=l.next,l=l.parent}}#l(e){for(const n of e)((n.f&N)!==0?this.#c:this.#_).push(n),T(n,E);e.length=0}capture(e,n){this.#s.has(e)||this.#s.set(e,n),this.current.set(e,e.v)}activate(){y=this}deactivate(){y=null;for(const e of Qt)if(Qt.delete(e),e(),y!==null)break}neuter(){this.#o=!0}flush(){G.length>0?Nt():this.#v(),y===this&&(this.#t===0&&it.delete(this),this.deactivate())}#v(){if(!this.#o)for(const e of this.#a)e();this.#a.clear()}increment(){this.#t+=1}decrement(){if(this.#t-=1,this.#t===0){for(const e of this.#c)T(e,N),K(e);for(const e of this.#_)T(e,H),K(e);this.#r=[],this.#e=[],this.flush()}else this.deactivate()}add_callback(e){this.#a.add(e)}settled(){return(this.#f??=We()).promise}static ensure(){if(y===null){const e=y=new W;it.add(y),ht||W.enqueue(()=>{y===e&&e.flush()})}return y}static enqueue(e){yt.length===0&&queueMicrotask(be),yt.unshift(e)}}function bn(t){var e=ht;ht=!0;try{var n;for(t&&(Nt(),n=t());;){if(hn(),G.length===0&&(y?.flush(),G.length===0))return bt=null,n;Nt()}}finally{ht=e}}function Nt(){var t=Q;St=!0;try{var e=0;for(se(!0);G.length>0;){var n=W.ensure();if(e++>1e3){var r,s;Tn()}n.process(G),$.clear()}}finally{St=!1,se(t),bt=null}}function Tn(){try{en()}catch(t){Bt(t,bt)}}function te(t){var e=t.length;if(e!==0){for(var n=0;n<e;){var r=t[n++];if((r.f&(st|j))===0&&Tt(r)){var s=y?y.current.size:0;if(ft(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?Ie(r):r.fn=null),y!==null&&y.current.size>s&&(r.f&Ft)!==0)break}}for(;n<e;)K(t[n++])}}function K(t){for(var e=bt=t;e.parent!==null;){e=e.parent;var n=e.f;if(St&&e===_&&(n&vt)!==0)return;if((n&(X|M))!==0){if((n&E)===0)return;e.f^=E}}G.push(e)}const $=new Map;function Gt(t,e){var n={f:0,v:t,reactions:null,equals:de,rv:0,wv:0};return n}function F(t,e){const n=Gt(t);return De(n),n}function xr(t,e=!1,n=!0){const r=Gt(t);return e||(r.equals=he),Ct&&n&&m!==null&&m.l!==null&&(m.l.s??=[]).push(r),r}function L(t,e,n=!1){c!==null&&(!I||(c.f&Jt)!==0)&&dt()&&(c.f&(A|vt|Lt|Jt))!==0&&!D?.includes(t)&&sn();let r=n?ut(e):e;return Ot(t,r)}function Ot(t,e){if(!t.equals(e)){var n=t.v;at?$.set(t,e):$.set(t,n),t.v=e;var r=W.ensure();r.capture(t,n),(t.f&A)!==0&&((t.f&N)!==0&&Vt(t),T(t,(t.f&S)===0?E:H)),t.wv=Fe(),Te(t,N),dt()&&_!==null&&(_.f&E)!==0&&(_.f&(M|X))===0&&(R===null?Cn([t]):R.push(t))}return e}function Ar(t,e=1){var n=J(t),r=e===1?n++:n--;return L(t,n),r}function kt(t){L(t,t.v+1)}function Te(t,e){var n=t.reactions;if(n!==null)for(var r=dt(),s=n.length,a=0;a<s;a++){var u=n[a],f=u.f;if(!(!r&&u===_)){var i=(f&N)===0;i&&T(u,e),(f&A)!==0?Te(u,H):i&&K(u)}}}function ut(t){if(typeof t!="object"||t===null||B in t)return t;const e=le(t);if(e!==Ve&&e!==Ge)return t;var n=new Map,r=Ue(t),s=F(0),a=V,u=f=>{if(V===a)return f();var i=c,l=V;Y(null),ie(a);var o=f();return Y(i),ie(l),o};return r&&n.set("length",F(t.length)),new Proxy(t,{defineProperty(f,i,l){(!("value"in l)||l.configurable===!1||l.enumerable===!1||l.writable===!1)&&nn();var o=n.get(i);return o===void 0?o=u(()=>{var v=F(l.value);return n.set(i,v),v}):L(o,l.value,!0),!0},deleteProperty(f,i){var l=n.get(i);if(l===void 0){if(i in f){const o=u(()=>F(g));n.set(i,o),kt(s)}}else L(l,g),kt(s);return!0},get(f,i,l){if(i===B)return t;var o=n.get(i),v=i in f;if(o===void 0&&(!v||lt(f,i)?.writable)&&(o=u(()=>{var d=ut(v?f[i]:g),h=F(d);return h}),n.set(i,o)),o!==void 0){var w=J(o);return w===g?void 0:w}return Reflect.get(f,i,l)},getOwnPropertyDescriptor(f,i){var l=Reflect.getOwnPropertyDescriptor(f,i);if(l&&"value"in l){var o=n.get(i);o&&(l.value=J(o))}else if(l===void 0){var v=n.get(i),w=v?.v;if(v!==void 0&&w!==g)return{enumerable:!0,configurable:!0,value:w,writable:!0}}return l},has(f,i){if(i===B)return!0;var l=n.get(i),o=l!==void 0&&l.v!==g||Reflect.has(f,i);if(l!==void 0||_!==null&&(!o||lt(f,i)?.writable)){l===void 0&&(l=u(()=>{var w=o?ut(f[i]):g,d=F(w);return d}),n.set(i,l));var v=J(l);if(v===g)return!1}return o},set(f,i,l,o){var v=n.get(i),w=i in f;if(r&&i==="length")for(var d=l;d<v.v;d+=1){var h=n.get(d+"");h!==void 0?L(h,g):d in f&&(h=u(()=>F(g)),n.set(d+"",h))}if(v===void 0)(!w||lt(f,i)?.writable)&&(v=u(()=>F(void 0)),L(v,ut(l)),n.set(i,v));else{w=v.v!==g;var xt=u(()=>ut(l));L(v,xt)}var Kt=Reflect.getOwnPropertyDescriptor(f,i);if(Kt?.set&&Kt.set.call(o,l),!w){if(r&&typeof i=="string"){var zt=n.get("length"),At=Number(i);Number.isInteger(At)&&At>=zt.v&&L(zt,At+1)}kt(s)}return!0},ownKeys(f){J(s);var i=Reflect.ownKeys(f).filter(v=>{var w=n.get(v);return w===void 0||w.v!==g});for(var[l,o]of n)o.v!==g&&!(l in f)&&i.push(l);return i},setPrototypeOf(){rn()}})}function ee(t){try{if(t!==null&&typeof t=="object"&&B in t)return t[B]}catch{}return t}function kr(t,e){return Object.is(ee(t),ee(e))}var ne,xn,xe,Ae,ke;function Rr(){if(ne===void 0){ne=window,xn=document,xe=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,n=Text.prototype;Ae=lt(e,"firstChild").get,ke=lt(e,"nextSibling").get,Zt(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),Zt(n)&&(n.__t=void 0)}}function nt(t=""){return document.createTextNode(t)}function O(t){return Ae.call(t)}function Z(t){return ke.call(t)}function Sr(t,e){if(!k)return O(t);var n=O(p);if(n===null)n=p.appendChild(nt());else if(e&&n.nodeType!==jt){var r=nt();return n?.before(r),tt(r),r}return tt(n),n}function Nr(t,e){if(!k){var n=O(t);return n instanceof Comment&&n.data===""?Z(n):n}return p}function Or(t,e=1,n=!1){let r=k?p:t;for(var s;e--;)s=r,r=Z(r);if(!k)return r;if(n&&r?.nodeType!==jt){var a=nt();return r===null?s?.after(a):r.before(a),tt(a),a}return tt(r),r}function Ir(t){t.textContent=""}function Cr(){return!1}let re=!1;function An(){re||(re=!0,document.addEventListener("reset",t=>{Promise.resolve().then(()=>{if(!t.defaultPrevented)for(const e of t.target.elements)e.__on_r?.()})},{capture:!0}))}function Wt(t){var e=c,n=_;Y(null),rt(null);try{return t()}finally{Y(e),rt(n)}}function Pr(t,e,n,r=n){t.addEventListener(e,()=>Wt(n));const s=t.__on_r;s?t.__on_r=()=>{s(),r(!0)}:t.__on_r=()=>r(!0),An()}function Re(t){_===null&&c===null&&tn(),c!==null&&(c.f&S)!==0&&_===null&&Qe(),at&&Je()}function kn(t,e){var n=e.last;n===null?e.last=e.first=t:(n.next=t,t.prev=n,e.last=t)}function P(t,e,n,r=!0){var s=_;s!==null&&(s.f&j)!==0&&(t|=j);var a={ctx:m,deps:null,nodes_start:null,nodes_end:null,f:t|N,first:null,fn:e,last:null,next:null,parent:s,b:s&&s.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{ft(a),a.f|=Dt}catch(i){throw z(a),i}else e!==null&&K(a);var u=n&&a.deps===null&&a.first===null&&a.nodes_start===null&&a.teardown===null&&(a.f&Mt)===0;if(!u&&r&&(s!==null&&kn(a,s),c!==null&&(c.f&A)!==0&&(t&X)===0)){var f=c;(f.effects??=[]).push(a)}return a}function Dr(t){const e=P(gt,null,!1);return T(e,E),e.teardown=t,e}function Mr(t){Re();var e=_.f,n=!c&&(e&M)!==0&&(e&Dt)===0;if(n){var r=m;(r.e??=[]).push(t)}else return Se(t)}function Se(t){return P(Pt|Ft,t,!1)}function Fr(t){return Re(),P(gt|Ft,t,!0)}function Lr(t){W.ensure();const e=P(X,t,!0);return(n={})=>new Promise(r=>{n.outro?On(e,()=>{z(e),r(void 0)}):(z(e),r(void 0))})}function qr(t){return P(Pt,t,!1)}function Rn(t){return P(Lt|Mt,t,!0)}function jr(t,e=0){return P(gt|e,t,!0)}function Yr(t,e=[],n=[]){gn(e,n,r=>{P(gt,()=>t(...r.map(J)),!0)})}function Hr(t,e=0){var n=P(vt|e,t,!0);return n}function Ur(t,e=!0){return P(M,t,!0,e)}function Ne(t){var e=t.teardown;if(e!==null){const n=at,r=c;ae(!0),Y(null);try{e.call(null)}finally{ae(n),Y(r)}}}function Oe(t,e=!1){var n=t.first;for(t.first=t.last=null;n!==null;){const s=n.ac;s!==null&&Wt(()=>{s.abort(qt)});var r=n.next;(n.f&X)!==0?n.parent=null:z(n,e),n=r}}function Sn(t){for(var e=t.first;e!==null;){var n=e.next;(e.f&M)===0&&z(e),e=n}}function z(t,e=!0){var n=!1;(e||(t.f&Ke)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(Nn(t.nodes_start,t.nodes_end),n=!0),Oe(t,e&&!n),mt(t,0),T(t,st);var r=t.transitions;if(r!==null)for(const a of r)a.stop();Ne(t);var s=t.parent;s!==null&&s.first!==null&&Ie(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=t.ac=null}function Nn(t,e){for(;t!==null;){var n=t===e?null:Z(t);t.remove(),t=n}}function Ie(t){var e=t.parent,n=t.prev,r=t.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),e!==null&&(e.first===t&&(e.first=r),e.last===t&&(e.last=n))}function On(t,e){var n=[];Ce(t,n,!0),In(n,()=>{z(t),e&&e()})}function In(t,e){var n=t.length;if(n>0){var r=()=>--n||e();for(var s of t)s.out(r)}else e()}function Ce(t,e,n){if((t.f&j)===0){if(t.f^=j,t.transitions!==null)for(const u of t.transitions)(u.is_global||n)&&e.push(u);for(var r=t.first;r!==null;){var s=r.next,a=(r.f&ce)!==0||(r.f&M)!==0;Ce(r,e,a?n:!1),r=s}}}function Br(t){Pe(t,!0)}function Pe(t,e){if((t.f&j)!==0){t.f^=j,(t.f&E)===0&&(T(t,N),K(t));for(var n=t.first;n!==null;){var r=n.next,s=(n.f&ce)!==0||(n.f&M)!==0;Pe(n,s?e:!1),n=r}if(t.transitions!==null)for(const a of t.transitions)(a.is_global||e)&&a.in()}}let Q=!1;function se(t){Q=t}let at=!1;function ae(t){at=t}let c=null,I=!1;function Y(t){c=t}let _=null;function rt(t){_=t}let D=null;function De(t){c!==null&&(D===null?D=[t]:D.push(t))}let b=null,x=0,R=null;function Cn(t){R=t}let Me=1,_t=0,V=_t;function ie(t){V=t}let q=!1;function Fe(){return++Me}function Tt(t){var e=t.f;if((e&N)!==0)return!0;if((e&H)!==0){var n=t.deps,r=(e&S)!==0;if(n!==null){var s,a,u=(e&pt)!==0,f=r&&_!==null&&!q,i=n.length;if((u||f)&&(_===null||(_.f&st)===0)){var l=t,o=l.parent;for(s=0;s<i;s++)a=n[s],(u||!a?.reactions?.includes(l))&&(a.reactions??=[]).push(l);u&&(l.f^=pt),f&&o!==null&&(o.f&S)===0&&(l.f^=S)}for(s=0;s<i;s++)if(a=n[s],Tt(a)&&ge(a),a.wv>t.wv)return!0}(!r||_!==null&&!q)&&T(t,E)}return!1}function Le(t,e,n=!0){var r=t.reactions;if(r!==null&&!D?.includes(t))for(var s=0;s<r.length;s++){var a=r[s];(a.f&A)!==0?Le(a,e,!1):e===a&&(n?T(a,N):(a.f&E)!==0&&T(a,H),K(a))}}function qe(t){var e=b,n=x,r=R,s=c,a=q,u=D,f=m,i=I,l=V,o=t.f;b=null,x=0,R=null,q=(o&S)!==0&&(I||!Q||c===null),c=(o&(M|X))===0?t:null,D=null,wt(t.ctx),I=!1,V=++_t,t.ac!==null&&(Wt(()=>{t.ac.abort(qt)}),t.ac=null);try{t.f|=Rt;var v=t.fn,w=v(),d=t.deps;if(b!==null){var h;if(mt(t,x),d!==null&&x>0)for(d.length=x+b.length,h=0;h<b.length;h++)d[x+h]=b[h];else t.deps=d=b;if(!q||(o&A)!==0&&t.reactions!==null)for(h=x;h<d.length;h++)(d[h].reactions??=[]).push(t)}else d!==null&&x<d.length&&(mt(t,x),d.length=x);if(dt()&&R!==null&&!I&&d!==null&&(t.f&(A|H|N))===0)for(h=0;h<R.length;h++)Le(R[h],t);return s!==null&&s!==t&&(_t++,R!==null&&(r===null?r=R:r.push(...R))),(t.f&U)!==0&&(t.f^=U),w}catch(xt){return vn(xt)}finally{t.f^=Rt,b=e,x=n,R=r,c=s,q=a,D=u,wt(f),I=i,V=l}}function Pn(t,e){let n=e.reactions;if(n!==null){var r=Be.call(n,t);if(r!==-1){var s=n.length-1;s===0?n=e.reactions=null:(n[r]=n[s],n.pop())}}n===null&&(e.f&A)!==0&&(b===null||!b.includes(e))&&(T(e,H),(e.f&(S|pt))===0&&(e.f^=pt),me(e),mt(e,0))}function mt(t,e){var n=t.deps;if(n!==null)for(var r=e;r<n.length;r++)Pn(t,n[r])}function ft(t){var e=t.f;if((e&st)===0){T(t,E);var n=_,r=Q;_=t,Q=!0;try{(e&vt)!==0?Sn(t):Oe(t),Ne(t);var s=qe(t);t.teardown=typeof s=="function"?s:null,t.wv=Me;var a;ue&&He&&(t.f&N)!==0&&t.deps}finally{Q=r,_=n}}}async function $r(){await Promise.resolve(),bn()}function Vr(){return W.ensure().settled()}function J(t){var e=t.f,n=(e&A)!==0;if(c!==null&&!I){var r=_!==null&&(_.f&st)!==0;if(!r&&!D?.includes(t)){var s=c.deps;if((c.f&Rt)!==0)t.rv<_t&&(t.rv=_t,b===null&&s!==null&&s[x]===t?x++:b===null?b=[t]:(!q||!b.includes(t))&&b.push(t));else{(c.deps??=[]).push(t);var a=t.reactions;a===null?t.reactions=[c]:a.includes(c)||a.push(c)}}}else if(n&&t.deps===null&&t.effects===null){var u=t,f=u.parent;f!==null&&(f.f&S)===0&&(u.f^=S)}if(at){if($.has(t))return $.get(t);if(n){u=t;var i=u.v;return((u.f&E)===0&&u.reactions!==null||je(u))&&(i=Vt(u)),$.set(u,i),i}}else if(n){if(u=t,et?.has(u))return et.get(u);Tt(u)&&ge(u)}if((t.f&U)!==0)throw t.v;return t.v}function je(t){if(t.v===g)return!0;if(t.deps===null)return!1;for(const e of t.deps)if($.has(e)||(e.f&A)!==0&&je(e))return!0;return!1}function Gr(t){var e=I;try{return I=!0,t()}finally{I=e}}const Dn=-7169;function T(t,e){t.f=t.f&Dn|e}function Wr(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(B in t)It(t);else if(!Array.isArray(t))for(let e in t){const n=t[e];typeof n=="object"&&n&&B in n&&It(n)}}}function It(t,e=new Set){if(typeof t=="object"&&t!==null&&!(t instanceof EventTarget)&&!e.has(t)){e.add(t),t instanceof Date&&t.getTime();for(let r in t)try{It(t[r],e)}catch{}const n=le(t);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const r=$e(n);for(let s in r){const a=r[s].get;if(a)try{a.call(t)}catch{}}}}}function Ye(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function C(t,e){var n=_;n.nodes_start===null&&(n.nodes_start=t,n.nodes_end=e)}function Kr(t,e){var n=(e&_e)!==0,r=(e&an)!==0,s,a=!t.startsWith("<!>");return()=>{if(k)return C(p,null),p;s===void 0&&(s=Ye(a?t:"<!>"+t),n||(s=O(s)));var u=r||xe?document.importNode(s,!0):s.cloneNode(!0);if(n){var f=O(u),i=u.lastChild;C(f,i)}else C(u,u);return u}}function Mn(t,e,n="svg"){var r=!t.startsWith("<!>"),s=(e&_e)!==0,a=`<${n}>${r?t:"<!>"+t}</${n}>`,u;return()=>{if(k)return C(p,null),p;if(!u){var f=Ye(a),i=O(f);if(s)for(u=document.createDocumentFragment();O(i);)u.appendChild(O(i));else u=O(i)}var l=u.cloneNode(!0);if(s){var o=O(l),v=l.lastChild;C(o,v)}else C(l,l);return l}}function zr(t,e){return Mn(t,e,"svg")}function Xr(t=""){if(!k){var e=nt(t+"");return C(e,e),e}var n=p;return n.nodeType!==jt&&(n.before(n=nt()),tt(n)),C(n,n),n}function Zr(){if(k)return C(p,null),p;var t=document.createDocumentFragment(),e=document.createComment(""),n=nt();return t.append(e,n),C(e,n),t}function Jr(t,e){if(k){_.nodes_end=p,ve();return}t!==null&&t.before(e)}function Qr(){if(k&&p&&p.nodeType===Yt&&p.textContent?.startsWith("#")){const t=p.textContent.substring(1);return ve(),t}return(window.__svelte??={}).uid??=1,`c${window.__svelte.uid++}`}export{fe as $,kr as A,Dr as B,Er as C,Hr as D,ve as E,Ye as F,C as G,ce as H,Ur as I,z as J,p as K,O as L,le as M,lr as N,$e as O,br as P,An as Q,Bn as R,Xt as S,Y as T,rt as U,Ue as V,c as W,_ as X,Wt as Y,m as Z,Fr as _,Jr as a,wr as a$,Yn as a0,Wr as a1,$t as a2,vt as a3,Dt as a4,qr as a5,ur as a6,qn as a7,ar as a8,ir as a9,Ot as aA,xr as aB,Gt as aC,Ln as aD,Xn as aE,zn as aF,Qn as aG,j as aH,Z as aI,Ce as aJ,Ir as aK,In as aL,Zn as aM,Jn as aN,Ke as aO,un as aP,Rr as aQ,Ht as aR,Ut as aS,Gn as aT,Lr as aU,Xe as aV,Vn as aW,Wn as aX,bn as aY,yr as aZ,hr as a_,dr as aa,ln as ab,vr as ac,tt as ad,or as ae,nt as af,y as ag,g as ah,Cr as ai,Br as aj,On as ak,B as al,lt as am,Kn as an,nr as ao,yn as ap,at as aq,st as ar,rr as as,er as at,tr as au,sr as av,Un as aw,Ve as ax,Yt as ay,fn as az,ut as b,pr as b0,Vr as b1,xn as b2,ne as b3,zr as b4,fr as b5,_r as b6,on as b7,Zr as c,Gr as d,Kr as e,Nr as f,J as g,Or as h,gr as i,L as j,Hn as k,Tr as l,Sr as m,jn as n,Ar as o,mr as p,k as q,cr as r,F as s,$r as t,Mr as u,Yr as v,Qr as w,Xr as x,Pr as y,jr as z};
@@ -0,0 +1,22 @@
1
+ import"./DsnmJJEf.js";import{s as Le,o as Ve}from"./B98B7x2v.js";import{y as Xe,a5 as $e,B as et,V as tt,b5 as rt,A as nt,w as Je,e as oe,m as V,r as J,h as Ae,v as fe,a as ae,p as it,b as Re,s as Se,j as X,g as y,l as De,f as st,n as je,i as at}from"./BZ0BXH4m.js";import{p as he,i as He}from"./CUAkeMiK.js";import{c as ve,g as Fe,u as ot,e as Ue,i as Me}from"./B9BLuPDP.js";import{s as _e}from"./C5ruyaoV.js";import{d as lt}from"./fIP5WTNy.js";import{s as Ne}from"./DLtGBQZ4.js";function Ze(n,i,u=!1){if(n.multiple){if(i==null)return;if(!tt(i))return rt();for(var a of n.options)a.selected=i.includes(Ie(a));return}for(a of n.options){var c=Ie(a);if(nt(c,i)){a.selected=!0;return}}(!u||i!==void 0)&&(n.selectedIndex=-1)}function ut(n){var i=new MutationObserver(()=>{Ze(n,n.__value)});i.observe(n,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),et(()=>{i.disconnect()})}function ze(n,i,u=i){var a=!0;Xe(n,"change",c=>{var d=c?"[selected]":":checked",_;if(n.multiple)_=[].map.call(n.querySelectorAll(d),Ie);else{var b=n.querySelector(d)??n.querySelector("option:not([disabled])");_=b&&Ie(b)}u(_)}),$e(()=>{var c=i();if(Ze(n,c,a),a&&c===void 0){var d=n.querySelector(":checked");d!==null&&(c=Ie(d),u(c))}n.__value=c,a=!1}),ut(n)}function Ie(n){return"__value"in n?n.__value:n.value}function ct(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Te={exports:{}};/* @license
2
+ Papa Parse
3
+ v5.5.3
4
+ https://github.com/mholt/PapaParse
5
+ License: MIT
6
+ */var ft=Te.exports,Qe;function dt(){return Qe||(Qe=1,(function(n,i){((u,a)=>{n.exports=a()})(ft,function u(){var a=typeof self<"u"?self:typeof window<"u"?window:a!==void 0?a:{},c,d=!a.document&&!!a.postMessage,_=a.IS_PAPA_WORKER||!1,b={},L=0,l={};function p(t){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},(function(e){var r=pe(e);r.chunkSize=parseInt(r.chunkSize),e.step||e.chunk||(r.chunkSize=null),this._handle=new le(r),(this._handle.streamer=this)._config=r}).call(this,t),this.parseChunk=function(e,r){var o=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<o){let f=this._config.newline;f||(s=this._config.quoteChar||'"',f=this._handle.guessLineEndings(e,s)),e=[...e.split(f).slice(o)].join(f)}this.isFirstChunk&&j(this._config.beforeFirstChunk)&&(s=this._config.beforeFirstChunk(e))!==void 0&&(e=s),this.isFirstChunk=!1,this._halted=!1;var o=this._partialLine+e,s=(this._partialLine="",this._handle.parse(o,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(e=s.meta.cursor,o=(this._finished||(this._partialLine=o.substring(e-this._baseIndex),this._baseIndex=e),s&&s.data&&(this._rowCount+=s.data.length),this._finished||this._config.preview&&this._rowCount>=this._config.preview),_)a.postMessage({results:s,workerId:l.WORKER_ID,finished:o});else if(j(this._config.chunk)&&!r){if(this._config.chunk(s,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=s=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(s.data),this._completeResults.errors=this._completeResults.errors.concat(s.errors),this._completeResults.meta=s.meta),this._completed||!o||!j(this._config.complete)||s&&s.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),o||s&&s.meta.paused||this._nextChunk(),s}this._halted=!0},this._sendError=function(e){j(this._config.error)?this._config.error(e):_&&this._config.error&&a.postMessage({workerId:l.WORKER_ID,error:e,finished:!1})}}function E(t){var e;(t=t||{}).chunkSize||(t.chunkSize=l.RemoteChunkSize),p.call(this,t),this._nextChunk=d?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(r){this._input=r,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(e=new XMLHttpRequest,this._config.withCredentials&&(e.withCredentials=this._config.withCredentials),d||(e.onload=re(this._chunkLoaded,this),e.onerror=re(this._chunkError,this)),e.open(this._config.downloadRequestBody?"POST":"GET",this._input,!d),this._config.downloadRequestHeaders){var r,o=this._config.downloadRequestHeaders;for(r in o)e.setRequestHeader(r,o[r])}var s;this._config.chunkSize&&(s=this._start+this._config.chunkSize-1,e.setRequestHeader("Range","bytes="+this._start+"-"+s));try{e.send(this._config.downloadRequestBody)}catch(f){this._chunkError(f.message)}d&&e.status===0&&this._chunkError()}},this._chunkLoaded=function(){e.readyState===4&&(e.status<200||400<=e.status?this._chunkError():(this._start+=this._config.chunkSize||e.responseText.length,this._finished=!this._config.chunkSize||this._start>=(r=>(r=r.getResponseHeader("Content-Range"))!==null?parseInt(r.substring(r.lastIndexOf("/")+1)):-1)(e),this.parseChunk(e.responseText)))},this._chunkError=function(r){r=e.statusText||r,this._sendError(new Error(r))}}function F(t){(t=t||{}).chunkSize||(t.chunkSize=l.LocalChunkSize),p.call(this,t);var e,r,o=typeof FileReader<"u";this.stream=function(s){this._input=s,r=s.slice||s.webkitSlice||s.mozSlice,o?((e=new FileReader).onload=re(this._chunkLoaded,this),e.onerror=re(this._chunkError,this)):e=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var s=this._input,f=(this._config.chunkSize&&(f=Math.min(this._start+this._config.chunkSize,this._input.size),s=r.call(s,this._start,f)),e.readAsText(s,this._config.encoding));o||this._chunkLoaded({target:{result:f}})},this._chunkLoaded=function(s){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(s.target.result)},this._chunkError=function(){this._sendError(e.error)}}function q(t){var e;p.call(this,t=t||{}),this.stream=function(r){return e=r,this._nextChunk()},this._nextChunk=function(){var r,o;if(!this._finished)return r=this._config.chunkSize,e=r?(o=e.substring(0,r),e.substring(r)):(o=e,""),this._finished=!e,this.parseChunk(o)}}function N(t){p.call(this,t=t||{});var e=[],r=!0,o=!1;this.pause=function(){p.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){p.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(s){this._input=s,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){o&&e.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),e.length?this.parseChunk(e.shift()):r=!0},this._streamData=re(function(s){try{e.push(typeof s=="string"?s:s.toString(this._config.encoding)),r&&(r=!1,this._checkIsFinished(),this.parseChunk(e.shift()))}catch(f){this._streamError(f)}},this),this._streamError=re(function(s){this._streamCleanUp(),this._sendError(s)},this),this._streamEnd=re(function(){this._streamCleanUp(),o=!0,this._streamData("")},this),this._streamCleanUp=re(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function le(t){var e,r,o,s,f=Math.pow(2,53),x=-f,A=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,P=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,v=this,I=0,g=0,Z=!1,k=!1,O=[],h={data:[],errors:[],meta:{}};function W(R){return t.skipEmptyLines==="greedy"?R.join("").trim()==="":R.length===1&&R[0].length===0}function B(){if(h&&o&&($("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+l.DefaultDelimiter+"'"),o=!1),t.skipEmptyLines&&(h.data=h.data.filter(function(m){return!W(m)})),Q()){let m=function(z,K){j(t.transformHeader)&&(z=t.transformHeader(z,K)),O.push(z)};if(h)if(Array.isArray(h.data[0])){for(var R=0;Q()&&R<h.data.length;R++)h.data[R].forEach(m);h.data.splice(0,1)}else h.data.forEach(m)}function C(m,z){for(var K=t.header?{}:[],T=0;T<m.length;T++){var D=T,S=m[T],S=((ee,w)=>(U=>(t.dynamicTypingFunction&&t.dynamicTyping[U]===void 0&&(t.dynamicTyping[U]=t.dynamicTypingFunction(U)),(t.dynamicTyping[U]||t.dynamicTyping)===!0))(ee)?w==="true"||w==="TRUE"||w!=="false"&&w!=="FALSE"&&((U=>{if(A.test(U)&&(U=parseFloat(U),x<U&&U<f))return 1})(w)?parseFloat(w):P.test(w)?new Date(w):w===""?null:w):w)(D=t.header?T>=O.length?"__parsed_extra":O[T]:D,S=t.transform?t.transform(S,D):S);D==="__parsed_extra"?(K[D]=K[D]||[],K[D].push(S)):K[D]=S}return t.header&&(T>O.length?$("FieldMismatch","TooManyFields","Too many fields: expected "+O.length+" fields but parsed "+T,g+z):T<O.length&&$("FieldMismatch","TooFewFields","Too few fields: expected "+O.length+" fields but parsed "+T,g+z)),K}var M;h&&(t.header||t.dynamicTyping||t.transform)&&(M=1,!h.data.length||Array.isArray(h.data[0])?(h.data=h.data.map(C),M=h.data.length):h.data=C(h.data,0),t.header&&h.meta&&(h.meta.fields=O),g+=M)}function Q(){return t.header&&O.length===0}function $(R,C,M,m){R={type:R,code:C,message:M},m!==void 0&&(R.row=m),h.errors.push(R)}j(t.step)&&(s=t.step,t.step=function(R){h=R,Q()?B():(B(),h.data.length!==0&&(I+=R.data.length,t.preview&&I>t.preview?r.abort():(h.data=h.data[0],s(h,v))))}),this.parse=function(R,C,M){var m=t.quoteChar||'"',m=(t.newline||(t.newline=this.guessLineEndings(R,m)),o=!1,t.delimiter?j(t.delimiter)&&(t.delimiter=t.delimiter(R),h.meta.delimiter=t.delimiter):((m=((z,K,T,D,S)=>{var ee,w,U,ce;S=S||[","," ","|",";",l.RECORD_SEP,l.UNIT_SEP];for(var ge=0;ge<S.length;ge++){for(var ne,Ee=S[ge],G=0,ie=0,H=0,Y=(U=void 0,new de({comments:D,delimiter:Ee,newline:K,preview:10}).parse(z)),ue=0;ue<Y.data.length;ue++)T&&W(Y.data[ue])?H++:(ne=Y.data[ue].length,ie+=ne,U===void 0?U=ne:0<ne&&(G+=Math.abs(ne-U),U=ne));0<Y.data.length&&(ie/=Y.data.length-H),(w===void 0||G<=w)&&(ce===void 0||ce<ie)&&1.99<ie&&(w=G,ee=Ee,ce=ie)}return{successful:!!(t.delimiter=ee),bestDelimiter:ee}})(R,t.newline,t.skipEmptyLines,t.comments,t.delimitersToGuess)).successful?t.delimiter=m.bestDelimiter:(o=!0,t.delimiter=l.DefaultDelimiter),h.meta.delimiter=t.delimiter),pe(t));return t.preview&&t.header&&m.preview++,e=R,r=new de(m),h=r.parse(e,C,M),B(),Z?{meta:{paused:!0}}:h||{meta:{paused:!1}}},this.paused=function(){return Z},this.pause=function(){Z=!0,r.abort(),e=j(t.chunk)?"":e.substring(r.getCharIndex())},this.resume=function(){v.streamer._halted?(Z=!1,v.streamer.parseChunk(e,!0)):setTimeout(v.resume,3)},this.aborted=function(){return k},this.abort=function(){k=!0,r.abort(),h.meta.aborted=!0,j(t.complete)&&t.complete(h),e=""},this.guessLineEndings=function(z,m){z=z.substring(0,1048576);var m=new RegExp(te(m)+"([^]*?)"+te(m),"gm"),M=(z=z.replace(m,"")).split("\r"),m=z.split(`
7
+ `),z=1<m.length&&m[0].length<M[0].length;if(M.length===1||z)return`
8
+ `;for(var K=0,T=0;T<M.length;T++)M[T][0]===`
9
+ `&&K++;return K>=M.length/2?`\r
10
+ `:"\r"}}function te(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function de(t){var e=(t=t||{}).delimiter,r=t.newline,o=t.comments,s=t.step,f=t.preview,x=t.fastMode,A=null,P=!1,v=t.quoteChar==null?'"':t.quoteChar,I=v;if(t.escapeChar!==void 0&&(I=t.escapeChar),(typeof e!="string"||-1<l.BAD_DELIMITERS.indexOf(e))&&(e=","),o===e)throw new Error("Comment character same as delimiter");o===!0?o="#":(typeof o!="string"||-1<l.BAD_DELIMITERS.indexOf(o))&&(o=!1),r!==`
11
+ `&&r!=="\r"&&r!==`\r
12
+ `&&(r=`
13
+ `);var g=0,Z=!1;this.parse=function(k,O,h){if(typeof k!="string")throw new Error("Input must be a string");var W=k.length,B=e.length,Q=r.length,$=o.length,R=j(s),C=[],M=[],m=[],z=g=0;if(!k)return G();if(x||x!==!1&&k.indexOf(v)===-1){for(var K=k.split(r),T=0;T<K.length;T++){if(m=K[T],g+=m.length,T!==K.length-1)g+=r.length;else if(h)return G();if(!o||m.substring(0,$)!==o){if(R){if(C=[],ce(m.split(e)),ie(),Z)return G()}else ce(m.split(e));if(f&&f<=T)return C=C.slice(0,f),G(!0)}}return G()}for(var D=k.indexOf(e,g),S=k.indexOf(r,g),ee=new RegExp(te(I)+te(v),"g"),w=k.indexOf(v,g);;)if(k[g]===v)for(w=g,g++;;){if((w=k.indexOf(v,w+1))===-1)return h||M.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:C.length,index:g}),ne();if(w===W-1)return ne(k.substring(g,w).replace(ee,v));if(v===I&&k[w+1]===I)w++;else if(v===I||w===0||k[w-1]!==I){D!==-1&&D<w+1&&(D=k.indexOf(e,w+1));var U=ge((S=S!==-1&&S<w+1?k.indexOf(r,w+1):S)===-1?D:Math.min(D,S));if(k.substr(w+1+U,B)===e){m.push(k.substring(g,w).replace(ee,v)),k[g=w+1+U+B]!==v&&(w=k.indexOf(v,g)),D=k.indexOf(e,g),S=k.indexOf(r,g);break}if(U=ge(S),k.substring(w+1+U,w+1+U+Q)===r){if(m.push(k.substring(g,w).replace(ee,v)),Ee(w+1+U+Q),D=k.indexOf(e,g),w=k.indexOf(v,g),R&&(ie(),Z))return G();if(f&&C.length>=f)return G(!0);break}M.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:C.length,index:g}),w++}}else if(o&&m.length===0&&k.substring(g,g+$)===o){if(S===-1)return G();g=S+Q,S=k.indexOf(r,g),D=k.indexOf(e,g)}else if(D!==-1&&(D<S||S===-1))m.push(k.substring(g,D)),g=D+B,D=k.indexOf(e,g);else{if(S===-1)break;if(m.push(k.substring(g,S)),Ee(S+Q),R&&(ie(),Z))return G();if(f&&C.length>=f)return G(!0)}return ne();function ce(H){C.push(H),z=g}function ge(H){var Y=0;return Y=H!==-1&&(H=k.substring(w+1,H))&&H.trim()===""?H.length:Y}function ne(H){return h||(H===void 0&&(H=k.substring(g)),m.push(H),g=W,ce(m),R&&ie()),G()}function Ee(H){g=H,ce(m),m=[],S=k.indexOf(r,g)}function G(H){if(t.header&&!O&&C.length&&!P){var Y=C[0],ue=Object.create(null),Pe=new Set(Y);let We=!1;for(let me=0;me<Y.length;me++){let se=Y[me];if(ue[se=j(t.transformHeader)?t.transformHeader(se,me):se]){let Oe,Ke=ue[se];for(;Oe=se+"_"+Ke,Ke++,Pe.has(Oe););Pe.add(Oe),Y[me]=Oe,ue[se]++,We=!0,(A=A===null?{}:A)[Oe]=se}else ue[se]=1,Y[me]=se;Pe.add(se)}We&&console.warn("Duplicate headers found and renamed."),P=!0}return{data:C,errors:M,meta:{delimiter:e,linebreak:r,aborted:Z,truncated:!!H,cursor:z+(O||0),renamedHeaders:A}}}function ie(){s(G()),C=[],M=[]}},this.abort=function(){Z=!0},this.getCharIndex=function(){return g}}function ye(t){var e=t.data,r=b[e.workerId],o=!1;if(e.error)r.userError(e.error,e.file);else if(e.results&&e.results.data){var s={abort:function(){o=!0,ke(e.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:we,resume:we};if(j(r.userStep)){for(var f=0;f<e.results.data.length&&(r.userStep({data:e.results.data[f],errors:e.results.errors,meta:e.results.meta},s),!o);f++);delete e.results}else j(r.userChunk)&&(r.userChunk(e.results,s,e.file),delete e.results)}e.finished&&!o&&ke(e.workerId,e.results)}function ke(t,e){var r=b[t];j(r.userComplete)&&r.userComplete(e),r.terminate(),delete b[t]}function we(){throw new Error("Not implemented.")}function pe(t){if(typeof t!="object"||t===null)return t;var e,r=Array.isArray(t)?[]:{};for(e in t)r[e]=pe(t[e]);return r}function re(t,e){return function(){t.apply(e,arguments)}}function j(t){return typeof t=="function"}return l.parse=function(t,e){var r=(e=e||{}).dynamicTyping||!1;if(j(r)&&(e.dynamicTypingFunction=r,r={}),e.dynamicTyping=r,e.transform=!!j(e.transform)&&e.transform,!e.worker||!l.WORKERS_SUPPORTED)return r=null,l.NODE_STREAM_INPUT,typeof t=="string"?(t=(o=>o.charCodeAt(0)!==65279?o:o.slice(1))(t),r=new(e.download?E:q)(e)):t.readable===!0&&j(t.read)&&j(t.on)?r=new N(e):(a.File&&t instanceof File||t instanceof Object)&&(r=new F(e)),r.stream(t);(r=(()=>{var o;return!!l.WORKERS_SUPPORTED&&(o=(()=>{var s=a.URL||a.webkitURL||null,f=u.toString();return l.BLOB_URL||(l.BLOB_URL=s.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",f,")();"],{type:"text/javascript"})))})(),(o=new a.Worker(o)).onmessage=ye,o.id=L++,b[o.id]=o)})()).userStep=e.step,r.userChunk=e.chunk,r.userComplete=e.complete,r.userError=e.error,e.step=j(e.step),e.chunk=j(e.chunk),e.complete=j(e.complete),e.error=j(e.error),delete e.worker,r.postMessage({input:t,config:e,workerId:r.id})},l.unparse=function(t,e){var r=!1,o=!0,s=",",f=`\r
14
+ `,x='"',A=x+x,P=!1,v=null,I=!1,g=((()=>{if(typeof e=="object"){if(typeof e.delimiter!="string"||l.BAD_DELIMITERS.filter(function(O){return e.delimiter.indexOf(O)!==-1}).length||(s=e.delimiter),typeof e.quotes!="boolean"&&typeof e.quotes!="function"&&!Array.isArray(e.quotes)||(r=e.quotes),typeof e.skipEmptyLines!="boolean"&&typeof e.skipEmptyLines!="string"||(P=e.skipEmptyLines),typeof e.newline=="string"&&(f=e.newline),typeof e.quoteChar=="string"&&(x=e.quoteChar),typeof e.header=="boolean"&&(o=e.header),Array.isArray(e.columns)){if(e.columns.length===0)throw new Error("Option columns is empty");v=e.columns}e.escapeChar!==void 0&&(A=e.escapeChar+x),e.escapeFormulae instanceof RegExp?I=e.escapeFormulae:typeof e.escapeFormulae=="boolean"&&e.escapeFormulae&&(I=/^[=+\-@\t\r].*$/)}})(),new RegExp(te(x),"g"));if(typeof t=="string"&&(t=JSON.parse(t)),Array.isArray(t)){if(!t.length||Array.isArray(t[0]))return Z(null,t,P);if(typeof t[0]=="object")return Z(v||Object.keys(t[0]),t,P)}else if(typeof t=="object")return typeof t.data=="string"&&(t.data=JSON.parse(t.data)),Array.isArray(t.data)&&(t.fields||(t.fields=t.meta&&t.meta.fields||v),t.fields||(t.fields=Array.isArray(t.data[0])?t.fields:typeof t.data[0]=="object"?Object.keys(t.data[0]):[]),Array.isArray(t.data[0])||typeof t.data[0]=="object"||(t.data=[t.data])),Z(t.fields||[],t.data||[],P);throw new Error("Unable to serialize unrecognized input");function Z(O,h,W){var B="",Q=(typeof O=="string"&&(O=JSON.parse(O)),typeof h=="string"&&(h=JSON.parse(h)),Array.isArray(O)&&0<O.length),$=!Array.isArray(h[0]);if(Q&&o){for(var R=0;R<O.length;R++)0<R&&(B+=s),B+=k(O[R],R);0<h.length&&(B+=f)}for(var C=0;C<h.length;C++){var M=(Q?O:h[C]).length,m=!1,z=Q?Object.keys(h[C]).length===0:h[C].length===0;if(W&&!Q&&(m=W==="greedy"?h[C].join("").trim()==="":h[C].length===1&&h[C][0].length===0),W==="greedy"&&Q){for(var K=[],T=0;T<M;T++){var D=$?O[T]:T;K.push(h[C][D])}m=K.join("").trim()===""}if(!m){for(var S=0;S<M;S++){0<S&&!z&&(B+=s);var ee=Q&&$?O[S]:S;B+=k(h[C][ee],S)}C<h.length-1&&(!W||0<M&&!z)&&(B+=f)}}return B}function k(O,h){var W,B;return O==null?"":O.constructor===Date?JSON.stringify(O).slice(1,25):(B=!1,I&&typeof O=="string"&&I.test(O)&&(O="'"+O,B=!0),W=O.toString().replace(g,A),(B=B||r===!0||typeof r=="function"&&r(O,h)||Array.isArray(r)&&r[h]||((Q,$)=>{for(var R=0;R<$.length;R++)if(-1<Q.indexOf($[R]))return!0;return!1})(W,l.BAD_DELIMITERS)||-1<W.indexOf(s)||W.charAt(0)===" "||W.charAt(W.length-1)===" ")?x+W+x:W)}},l.RECORD_SEP="",l.UNIT_SEP="",l.BYTE_ORDER_MARK="\uFEFF",l.BAD_DELIMITERS=["\r",`
15
+ `,'"',l.BYTE_ORDER_MARK],l.WORKERS_SUPPORTED=!d&&!!a.Worker,l.NODE_STREAM_INPUT=1,l.LocalChunkSize=10485760,l.RemoteChunkSize=5242880,l.DefaultDelimiter=",",l.Parser=de,l.ParserHandle=le,l.NetworkStreamer=E,l.FileStreamer=F,l.StringStreamer=q,l.ReadableStreamStreamer=N,a.jQuery&&((c=a.jQuery).fn.parse=function(t){var e=t.config||{},r=[];return this.each(function(f){if(!(c(this).prop("tagName").toUpperCase()==="INPUT"&&c(this).attr("type").toLowerCase()==="file"&&a.FileReader)||!this.files||this.files.length===0)return!0;for(var x=0;x<this.files.length;x++)r.push({file:this.files[x],inputElem:this,instanceConfig:c.extend({},e)})}),o(),this;function o(){if(r.length===0)j(t.complete)&&t.complete();else{var f,x,A,P,v=r[0];if(j(t.before)){var I=t.before(v.file,v.inputElem);if(typeof I=="object"){if(I.action==="abort")return f="AbortError",x=v.file,A=v.inputElem,P=I.reason,void(j(t.error)&&t.error({name:f},x,A,P));if(I.action==="skip")return void s();typeof I.config=="object"&&(v.instanceConfig=c.extend(v.instanceConfig,I.config))}else if(I==="skip")return void s()}var g=v.instanceConfig.complete;v.instanceConfig.complete=function(Z){j(g)&&g(Z,v.file,v.inputElem),s()},l.parse(v.file,v.instanceConfig)}}function s(){r.splice(0,1),o()}}),_&&(a.onmessage=function(t){t=t.data,l.WORKER_ID===void 0&&t&&(l.WORKER_ID=t.workerId),typeof t.input=="string"?a.postMessage({workerId:l.WORKER_ID,results:l.parse(t.input,t.config),finished:!0}):(a.File&&t.input instanceof File||t.input instanceof Object)&&(t=l.parse(t.input,t.config))&&a.postMessage({workerId:l.WORKER_ID,results:t,finished:!0})}),(E.prototype=Object.create(p.prototype)).constructor=E,(F.prototype=Object.create(p.prototype)).constructor=F,(q.prototype=Object.create(q.prototype)).constructor=q,(N.prototype=Object.create(p.prototype)).constructor=N,l})})(Te)),Te.exports}var ht=dt();const Ge=ct(ht);async function _t(){let n=ve.PUBLIC_TEMPLE_URL+"solutions/list",i=await fetch(n,{cache:"no-store"});if(!i.ok)return alert("could not fetch "+n),[];let u=await i.json();return u.sort((a,c)=>a.name<c.name?-1:a.name>c.name?1:0),u}async function pt(n){const i=ve.PUBLIC_TEMPLE_URL+`solutions/get_detail/${n}`;let u=await fetch(i,{cache:"no-store"});if(!u.ok)throw alert("Could not fetch "+i),new Error("Could not fetch "+i);return await u.json()}async function Nt(n,i,u,a="",c=0,d=1){const _=new URL(ve.PUBLIC_TEMPLE_URL+"solutions/get_full_ts");_.searchParams.set("solution_name",n),_.searchParams.set("components",i.join(",")),_.searchParams.set("unit_component",a),_.searchParams.set("scenario",u),_.searchParams.set("year",c.toString()),_.searchParams.set("rolling_average_size",d.toString());const b=_.toString();let L=await fetch(b,{cache:"no-store"});if(!L.ok)throw alert("Error when fetching "+b),new Error("Error when fetching "+b);let l=await L.json();const p=Object.fromEntries(Object.entries(l).map(([E,F])=>E=="unit"||F===void 0?null:[E,Ye(F)]).filter(E=>E!==null));return{unit:Be(l.unit||""),components:p}}async function Bt(n,i,u,a=""){let c=new URL(ve.PUBLIC_TEMPLE_URL+"solutions/get_total");c.searchParams.set("solution_name",n),c.searchParams.set("components",i.join(",")),c.searchParams.set("scenario",u),c.searchParams.set("unit_component",a);const d=c.toString();let _=await fetch(d,{cache:"no-store"});if(!_.ok)throw alert("Error when fetching "+d),new Error("Error when fetching "+d);let b=await _.json();for(const L in b)L=="unit"||b[L]===void 0||(b[L]=mt(gt(b[L])));return b.unit=Be(b.unit||""),b}async function Wt(n,i,u){let a=await(await fetch(ve.PUBLIC_TEMPLE_URL+`solutions/get_unit/${n}/${i}?scenario=${u}`,{cache:"no-store"})).json();return Be(a)}async function Kt(n,i,u,a,c,d){const _=ve.PUBLIC_TEMPLE_URL+`solutions/get_energy_balance/${n}/${i}/${u}?scenario=${a}&year=${c}&rolling_average_size=${d}`;let b=await fetch(_,{cache:"no-store"});if(!b.ok)throw alert("Could not fetch "+_),new Error("Could not fetch "+_);let L=await b.json(),l=["shed_demand","demand","flow_conversion_input","flow_export","flow_import","flow_storage_charge","flow_storage_discharge","flow_transport_in","flow_transport_out","cost_shed_demand","flow_conversion_output"],p={};for(const E of l)L[E]!==void 0&&(p[E]=Ye(L[E]));return p}function gt(n){if(n.slice(0,n.indexOf(`
16
+ `)).split(",").length==2){let c=n.split(`
17
+ `),d="",_="";for(const b of c.slice(1,c.length)){if(b=="")continue;let L=b.split(",");d+=L[0]+",",_+=L[1]+","}n=d.substring(0,d.length-1)+`
18
+ `+_.substring(0,_.length-1)}return n.slice(-1)==`
19
+ `&&(n=n.slice(0,-1)),Ge.parse(n,{delimiter:",",header:!0,newline:`
20
+ `})}function Ye(n){return n.map(i=>{let{d:u,t:a,...c}=i;const[d,_]=a;let b=0;return u=u.map(L=>b+=L),u=u.map(L=>L*_+d),{index:c,data:u}})}function Be(n){return n.slice(-1)==`
21
+ `&&(n=n.slice(0,n.length-1)),Ge.parse(n,{delimiter:",",header:!0,newline:`
22
+ `})}function mt(n){return n.data=n.data.filter(i=>Object.keys(i).some(u=>!Number.isNaN(Number(u))&&!Number.isNaN(i[u])&&Math.abs(i[u])>0)),n}const be=[["rgb(122, 157, 207)","rgb(8, 64, 126)","rgb(166, 190, 223)","rgb(33, 92, 175)","rgb(211, 222, 239)","rgb(77, 125, 191)"],["rgb(212, 134, 129)","rgb(150, 39, 45)","rgb(226, 174, 171)","rgb(183, 53, 45)","rgb(241, 215, 213)","rgb(197, 93, 87)"],["rgb(102, 175, 192)","rgb(0, 89, 109)","rgb(153, 202, 213)","rgb(0, 120, 148)","rgb(204, 228, 234)","rgb(51, 149, 171)"],["rgb(202, 108, 174)","rgb(140, 10, 89)","rgb(220, 158, 201)","rgb(167, 17, 122)","rgb(239, 208, 227)","rgb(183, 59, 146)"],["rgb(161, 171, 113)","rgb(54, 82, 19)","rgb(192, 199, 161)","rgb(98, 115, 19)","rgb(224, 227, 208)","rgb(129, 143, 66)"],["rgb(187, 164, 113)","rgb(112, 79, 18)","rgb(210, 194, 161)","rgb(142, 103, 19)","rgb(232, 225, 208)","rgb(165, 133, 66)"]];let xe=0,Ce=0;function Ht(){xe=0,Ce=0}function bt(){xe>=be.length&&(xe=0,Ce++,Ce>=be[0].length&&(Ce=0));const n=be[xe][Ce];return xe++,n}function vt(n,i=.8){return n.replace("rgb","rgba").replace(")",`, ${i})`)}function Qt(){let n=[];for(let i=0;i<be.length;i++)for(let u=0;u<be[0].length;u++)n.push(be[u][i]);return n}function Jt(n,i,u,a=[],c=!1,d="bar",_=""){if(n.length==0)return[];let b=Object.keys(n[0]).filter(p=>!isNaN(Number(p))&&!a.includes(Number(p))),L=Object.keys(i),l={};for(const p of n){let E=!1;for(let N in i)if(!i[N].includes(p[N])){E=!0;break}if(E)continue;for(let N of Object.keys(u))if(!u[N].includes(p[N])){E=!0;break}if(E)continue;let F=[];for(let N of L)F.push(p[N]);let q=F.join("_")+_;q in l||(l[q]=Object.fromEntries(b.map(N=>[N,0])));for(let N of b){let le=Number(p[N]);p[N]=="inf"&&(le=1/0),l[q][N]+=le}}if(c){let p=Object.fromEntries(b.map(E=>[E,0]));for(let E of b)for(let F in l)p[E]+=l[F][E];for(let E of b)for(let F in l)p[E]==0?l[F][E]=0:l[F][E]*=1/p[E]}return Object.entries(l).filter(([,p])=>!Object.values(p).includes(NaN)).map(([p,E])=>{let F=bt();return{label:p,data:Object.values(E),type:d,borderColor:F,backgroundColor:vt(F)}})}function yt(n){return Array.from(new Set(n))}function Zt(n){return n.map(i=>({value:i,label:i}))}function Gt(n){let i={};n.forEach(a=>{Object.entries(a.data).forEach(([c,d])=>{!d||d<=0||(i[c]=(i[c]||0)+d)})});let u={};return n.forEach(a=>{Object.entries(a.data).forEach(([c,d])=>{!d||d>=0||(u[c]=(u[c]||0)-d)})}),n.map(a=>({...a,data:Object.values(Object.entries(a.data).reduce((c,[d,_])=>(_&&i[d]>0?c[d]=_/i[d]:_&&u[d]>0?c[d]=_/u[d]:c[d]=0,c),{}))}))}var kt=oe('<div class="row mb-2"><div class="col-sm-3"><label class="fw-medium fs-4"> </label></div> <div class="col-sm-9"><!></div></div>');function qe(n,i){const u=Je();var a=kt(),c=V(a),d=V(c),_=V(d,!0);J(d),J(c);var b=Ae(c,2),L=V(b);Ne(L,()=>i.content,()=>u),J(b),J(a),fe(()=>{_e(d,"for",u),Le(_,i.label)}),ae(n,a)}function wt(n,i,u,a,c){X(i,""),X(u,""),X(a,null),c()}function Et(n,i,u){X(i,""),u()}var Ot=oe("<option> </option>"),Rt=oe('<select class="form-select"></select>'),St=oe("<option> </option>"),xt=oe('<select class="form-select"></select>'),Ct=oe("<option> </option>"),Lt=oe('<select class="form-select"></select>'),jt=oe("<!> <!> <!>",1);function Yt(n,i){it(i,!0);let u=he(i,"carriers",31,()=>Re([])),a=he(i,"nodes",31,()=>Re([])),c=he(i,"edges",31,()=>Re([])),d=he(i,"years",31,()=>Re([])),_=he(i,"selected_solution",15),b=he(i,"loading",15,!1),L=he(i,"disabled",3,!0),l=Se(Re([])),p=Se(null),E=Se(""),F=Se(""),q=Se(""),N=De(()=>yt(y(l).map(e=>e.name.split(".")[0]))),le=De(()=>y(l).filter(e=>e.name.startsWith(y(E))).map(e=>e.name.split(".")[1]||null).filter(e=>e!=null)),te=De(()=>y(le).length==0?y(E)||null:y(F)?y(E)+"."+y(F):null);Ve(async function(){X(l,await _t(),!0),X(E,Fe("solution")?.split(".")[0]||"",!0),X(F,Fe("solution")?.split(".")[1]||"",!0),X(q,Fe("scenario")||"",!0),de()});async function de(){if(y(te)==null){_(null);return}b(!0),X(p,await pt(y(te)),!0),Object.keys(y(p).scenarios).length==1?(X(q,Object.keys(y(p).scenarios)[0],!0),ye()):y(q)!=""&&y(q)in y(p).scenarios?ye():_(null),b(!1)}function ye(){y(p)==null||y(te)==null||(_({solution_name:y(te),scenario_name:y(q),detail:y(p).scenarios[y(q)],version:y(p).version}),ot({solution:_().solution_name,scenario:Object.keys(y(p).scenarios).length>1?_().scenario_name:null}),u(_().detail.system.set_carriers.slice()),a(_().detail.system.set_nodes),c(Object.keys(_().detail.edges)),d([...Array(_().detail.system.optimized_years).keys()].map(e=>e*_().detail.system.interval_between_years+_().detail.system.reference_year)),i.solution_selected?.(_()))}var ke=jt(),we=st(ke);qe(we,{label:"Solution",content:(r,o=je)=>{var s=Rt();s.__change=[wt,F,q,p,de],Ue(s,21,()=>y(N),Me,(f,x)=>{var A=Ot(),P=V(A,!0);J(A);var v={};fe(()=>{Le(P,y(x)),v!==(v=y(x))&&(A.value=(A.__value=y(x))??"")}),ae(f,A)}),J(s),fe(()=>{_e(s,"id",o()),s.disabled=L()}),ze(s,()=>y(E),f=>X(E,f)),ae(r,s)}});var pe=Ae(we,2);{var re=e=>{qe(e,{label:"Subsolution",content:(o,s=je)=>{var f=xt();f.__change=[Et,q,de],Ue(f,21,()=>y(le),Me,(x,A)=>{var P=St(),v=V(P,!0);J(P);var I={};fe(()=>{Le(v,y(A)),I!==(I=y(A))&&(P.value=(P.__value=y(A))??"")}),ae(x,P)}),J(f),fe(()=>{_e(f,"id",s()),f.disabled=L()}),ze(f,()=>y(F),x=>X(F,x)),ae(o,f)}})};He(pe,e=>{y(le).length>0&&e(re)})}var j=Ae(pe,2);{var t=e=>{qe(e,{label:"Scenario",content:(o,s=je)=>{var f=Lt();f.__change=ye,Ue(f,21,()=>Object.keys(y(p)?.scenarios||[]),Me,(x,A)=>{var P=Ct(),v=V(P,!0);J(P);var I={};fe(()=>{Le(v,y(A)),I!==(I=y(A))&&(P.value=(P.__value=y(A))??"")}),ae(x,P)}),J(f),fe(()=>{_e(f,"id",s()),f.disabled=L()}),ze(f,()=>y(q),x=>X(q,x)),ae(o,f)}})};He(j,e=>{y(p)&&Object.keys(y(p).scenarios).length>1&&e(t)})}ae(n,ke),at()}lt(["change"]);var It=oe('<div class="z-1 position-relative"><div class="accordion" id="accordionFilters"><!></div></div>');function Vt(n,i){var u=It(),a=V(u),c=V(a);Ne(c,()=>i.children??je),J(a),J(u),ae(n,u)}var Tt=oe('<div class="accordion-item"><h2 class="accordion-header"><button class="accordion-button" type="button" data-bs-toggle="collapse" aria-expanded="true"> </button></h2> <div class="accordion-collapse collapse show"><div class="accordion-body"><!></div></div></div>');function Xt(n,i){const u=Je();var a=Tt(),c=V(a),d=V(c),_=V(d,!0);J(d),J(c);var b=Ae(c,2),L=V(b),l=V(L);Ne(l,()=>i.children??je),J(L),J(b),J(a),fe(()=>{_e(d,"data-bs-target","#collapse"+u),_e(d,"aria-controls","collapse"+u),Le(_,i.title),_e(b,"id","collapse"+u)}),ae(n,a)}export{Vt as F,Yt as S,Wt as a,Xt as b,qe as c,Nt as d,yt as e,Bt as f,Kt as g,Jt as h,Gt as i,ze as j,ct as k,Qt as l,bt as n,Ht as r,Zt as t};
@@ -1 +1 @@
1
- import"./DsnmJJEf.js";import{p as c,e as v,r as m,v as d,a as f,i as b,m as h,g as r}from"./C2qtcxMB.js";import{s as g}from"./BIHB8bOP.js";import{e as x,i as D}from"./C5eeVdB9.js";import{s as j}from"./yfEWpjCL.js";import{d as w}from"./DxGKLc-D.js";import{j as I}from"./31Q1F_Lr.js";import{p as n}from"./CUUZcSt3.js";function U(l,e,o){e.onUpdate?.(o())}var k=v("<option> </option>"),q=v('<select class="form-select"></select>');function H(l,e){c(e,!0);let o=n(e,"value",15),p=n(e,"disabled",3,!1);var a=q();a.__change=[U,e,o],x(a,21,()=>e.options,D,(u,s)=>{var t=k(),_=h(t,!0);m(t);var i={};d(()=>{g(_,r(s).label),i!==(i=r(s).value)&&(t.value=(t.__value=r(s).value)??"")}),f(u,t)}),m(a),d(()=>{j(a,"id",e.formId),a.disabled=p()}),I(a,o),f(l,a),b()}w(["change"]);export{H as D};
1
+ import"./DsnmJJEf.js";import{p as c,e as v,r as m,v as d,a as f,i as b,m as h,g as r}from"./BZ0BXH4m.js";import{s as g}from"./B98B7x2v.js";import{e as x,i as D}from"./B9BLuPDP.js";import{s as j}from"./C5ruyaoV.js";import{d as w}from"./fIP5WTNy.js";import{j as I}from"./B_jXps8r.js";import{p as n}from"./CUAkeMiK.js";function U(l,e,o){e.onUpdate?.(o())}var k=v("<option> </option>"),q=v('<select class="form-select"></select>');function H(l,e){c(e,!0);let o=n(e,"value",15),p=n(e,"disabled",3,!1);var a=q();a.__change=[U,e,o],x(a,21,()=>e.options,D,(u,s)=>{var t=k(),_=h(t,!0);m(t);var i={};d(()=>{g(_,r(s).label),i!==(i=r(s).value)&&(t.value=(t.__value=r(s).value)??"")}),f(u,t)}),m(a),d(()=>{j(a,"id",e.formId),a.disabled=p()}),I(a,o),f(l,a),b()}w(["change"]);export{H as D};
@@ -1 +1 @@
1
- import{N as i,K as d,q as c,L as n,M as v,O as u,P as h}from"./C2qtcxMB.js";const l=Symbol("is custom element"),g=Symbol("is html");function p(r){if(c){var s=!1,e=()=>{if(!s){if(s=!0,r.hasAttribute("value")){var o=r.value;_(r,"value",null),r.value=o}if(r.hasAttribute("checked")){var a=r.checked;_(r,"checked",null),r.checked=a}}};r.__on_r=e,v(e),u()}}function _(r,s,e,o){var a=A(r);c&&(a[s]=r.getAttribute(s),s==="src"||s==="srcset"||s==="href"&&r.nodeName==="LINK")||a[s]!==(a[s]=e)&&(s==="loading"&&(r[h]=e),e==null?r.removeAttribute(s):typeof e!="string"&&N(r).includes(s)?r[s]=e:r.setAttribute(s,e))}function A(r){return r.__attributes??={[l]:r.nodeName.includes("-"),[g]:r.namespaceURI===i}}var f=new Map;function N(r){var s=f.get(r.nodeName);if(s)return s;f.set(r.nodeName,s=[]);for(var e,o=r,a=Element.prototype;a!==o;){e=n(o);for(var t in e)e[t].set&&s.push(t);o=d(o)}return s}export{p as r,_ as s};
1
+ import{N as i,M as d,q as c,O as n,P as v,Q as u,R as h}from"./BZ0BXH4m.js";const l=Symbol("is custom element"),g=Symbol("is html");function p(r){if(c){var s=!1,e=()=>{if(!s){if(s=!0,r.hasAttribute("value")){var o=r.value;_(r,"value",null),r.value=o}if(r.hasAttribute("checked")){var a=r.checked;_(r,"checked",null),r.checked=a}}};r.__on_r=e,v(e),u()}}function _(r,s,e,o){var a=A(r);c&&(a[s]=r.getAttribute(s),s==="src"||s==="srcset"||s==="href"&&r.nodeName==="LINK")||a[s]!==(a[s]=e)&&(s==="loading"&&(r[h]=e),e==null?r.removeAttribute(s):typeof e!="string"&&N(r).includes(s)?r[s]=e:r.setAttribute(s,e))}function A(r){return r.__attributes??={[l]:r.nodeName.includes("-"),[g]:r.namespaceURI===i}}var f=new Map;function N(r){var s=f.get(r.nodeName);if(s)return s;f.set(r.nodeName,s=[]);for(var e,o=r,a=Element.prototype;a!==o;){e=n(o);for(var t in e)e[t].set&&s.push(t);o=d(o)}return s}export{p as r,_ as s};
@@ -0,0 +1 @@
1
+ import{X as L,H as q,a3 as x,a4 as z,a5 as B,d as M,a6 as P,Y as S,a7 as U,C as j,n as T,a8 as G,a9 as H}from"./BZ0BXH4m.js";import{a as K}from"./B98B7x2v.js";const W=()=>performance.now(),c={tick:t=>requestAnimationFrame(t),now:()=>W(),tasks:new Set};function g(){const t=c.now();c.tasks.forEach(r=>{r.c(t)||(c.tasks.delete(r),r.f())}),c.tasks.size!==0&&c.tick(g)}function X(t){let r;return c.tasks.size===0&&c.tick(g),{promise:new Promise(a=>{c.tasks.add(r={c:t,f:a})}),abort(){c.tasks.delete(r)}}}function E(t,r){S(()=>{t.dispatchEvent(new CustomEvent(r))})}function Y(t){if(t==="float")return"cssFloat";if(t==="offset")return"cssOffset";if(t.startsWith("--"))return t;const r=t.split("-");return r.length===1?r[0]:r[0]+r.slice(1).map(a=>a[0].toUpperCase()+a.slice(1)).join("")}function R(t){const r={},a=t.split(";");for(const i of a){const[e,s]=i.split(":");if(!e||s===void 0)break;const f=Y(e.trim());r[f]=s.trim()}return r}const D=t=>t;function V(t,r,a,i){var e=(t&G)!==0,s=(t&H)!==0,f=e&&s,l=(t&P)!==0,N=f?"both":e?"in":"out",v,d=r.inert,m=r.style.overflow,u,p;function h(){return S(()=>v??=a()(r,i?.()??{},{direction:N}))}var n={is_global:l,in(){if(r.inert=d,!e){p?.abort(),p?.reset?.();return}s||u?.abort(),E(r,"introstart"),u=F(r,h(),p,1,()=>{E(r,"introend"),u?.abort(),u=v=void 0,r.style.overflow=m})},out(k){if(!s){k?.(),v=void 0;return}r.inert=!0,E(r,"outrostart"),p=F(r,h(),u,0,()=>{E(r,"outroend"),k?.()})},stop:()=>{u?.abort(),p?.abort()}},_=L;if((_.transitions??=[]).push(n),e&&K){var w=l;if(!w){for(var o=_.parent;o&&(o.f&q)!==0;)for(;(o=o.parent)&&(o.f&x)===0;);w=!o||(o.f&z)!==0}w&&B(()=>{M(()=>n.in())})}}function F(t,r,a,i,e){var s=i===1;if(U(r)){var f,l=!1;return j(()=>{if(!l){var _=r({direction:s?"in":"out"});f=F(t,_,a,i,e)}}),{abort:()=>{l=!0,f?.abort()},deactivate:()=>f.deactivate(),reset:()=>f.reset(),t:()=>f.t()}}if(a?.deactivate(),!r?.duration)return e(),{abort:T,deactivate:T,reset:T,t:()=>i};const{delay:N=0,css:v,tick:d,easing:m=D}=r;var u=[];if(s&&a===void 0&&(d&&d(0,1),v)){var p=R(v(0,1));u.push(p,p)}var h=()=>1-i,n=t.animate(u,{duration:N,fill:"forwards"});return n.onfinish=()=>{n.cancel();var _=a?.t()??1-i;a?.abort();var w=i-_,o=r.duration*Math.abs(w),k=[];if(o>0){var C=!1;if(v)for(var I=Math.ceil(o/16.666666666666668),A=0;A<=I;A+=1){var O=_+w*m(A/I),y=R(v(O,1-O));k.push(y),C||=y.overflow==="hidden"}C&&(t.style.overflow="hidden"),h=()=>{var b=n.currentTime;return _+w*m(b/o)},d&&X(()=>{if(n.playState!=="running")return!1;var b=h();return d(b,1-b),!0})}n=t.animate(k,{duration:o,fill:"forwards"}),n.onfinish=()=>{h=()=>i,d?.(i,1-i),e()}},{abort:()=>{n&&(n.cancel(),n.effect=null,n.onfinish=T)},deactivate:()=>{e=T},reset:()=>{i===0&&d?.(1,0)},t:()=>h()}}export{V as t};
@@ -0,0 +1 @@
1
+ import{D as N,q as A,E as q,H as Y,aa as x,ab as B,ac as C,ad as U,ae as m,af as F,I as D,ag as M,ah as j,ai as k,aj as p,ak as w,K as z,a5 as H,z as Z,d as y,C as $,al as L,am as G,an as K,ao as X,g as R,a2 as J,ap as Q,b as V,j as W,aq as aa,X as ea,ar as ra,as as ia,at as ta,au as na,av as sa,aw as fa}from"./BZ0BXH4m.js";import{l as ua}from"./DIeogL5L.js";function ca(a,r,u=!1){A&&q();var s=a,t=null,e=null,d=j,c=u?Y:0,o=!1;const b=(_,n=!0)=>{o=!0,v(n,_)};var f=null;function I(){f!==null&&(f.lastChild.remove(),s.before(f),f=null);var _=d?t:e,n=d?e:t;_&&p(_),n&&w(n,()=>{d?e=null:t=null})}const v=(_,n)=>{if(d===(d=_))return;let E=!1;if(A){const P=x(s)===B;!!d===P&&(s=C(),U(s),m(!1),E=!0)}var g=k(),l=s;if(g&&(f=document.createDocumentFragment(),f.append(l=F())),d?t??=n&&D(()=>n(l)):e??=n&&D(()=>n(l)),g){var S=M,i=d?t:e,h=d?e:t;i&&S.skipped_effects.delete(i),h&&S.skipped_effects.add(h),S.add_callback(I)}else I();E&&m(!0)};N(()=>{o=!1,r(b),o||v(null,null)},c),A&&(s=z)}function O(a,r){return a===r||a?.[L]===r}function va(a={},r,u,s){return H(()=>{var t,e;return Z(()=>{t=e,e=[],y(()=>{a!==u(...e)&&(r(a,...e),t&&O(u(...t),a)&&r(null,...t))})}),()=>{$(()=>{e&&O(u(...e),a)&&r(null,...e)})}}),a}let T=!1;function da(a){var r=T;try{return T=!1,[a(),T]}finally{T=r}}function oa(a,r,u,s){var t=!ua||(u&ta)!==0,e=(u&ia)!==0,d=(u&sa)!==0,c=s,o=!0,b=()=>(o&&(o=!1,c=d?y(s):s),c),f;if(e){var I=L in a||fa in a;f=G(a,r)?.set??(I&&r in a?i=>a[r]=i:void 0)}var v,_=!1;e?[v,_]=da(()=>a[r]):v=a[r],v===void 0&&s!==void 0&&(v=b(),f&&(t&&K(),f(v)));var n;if(t?n=()=>{var i=a[r];return i===void 0?b():(o=!0,i)}:n=()=>{var i=a[r];return i!==void 0&&(c=void 0),i===void 0?c:i},t&&(u&X)===0)return n;if(f){var E=a.$$legacy;return(function(i,h){return arguments.length>0?((!t||!h||E||_)&&f(h?n():i),i):n()})}var g=!1,l=((u&na)!==0?J:Q)(()=>(g=!1,n()));e&&R(l);var S=ea;return(function(i,h){if(arguments.length>0){const P=h?R(l):t&&e?V(i):i;return W(l,P),g=!0,c!==void 0&&(c=P),i}return aa&&g||(S.f&ra)!==0?l.v:R(l)})}export{va as b,ca as i,oa as p};