@svgrid/enterprise 2.3.2 → 2.5.0

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 (165) hide show
  1. package/dist/cdn/svgrid-enterprise.svelte-external.js +5917 -5545
  2. package/dist/designer/assets/index-oYok52zd.css +1 -0
  3. package/dist/designer/assets/{index-DVrv9dH6.js → index-qL7ir9C7.js} +89 -89
  4. package/dist/designer/assets/src-96d31O63.js +2873 -0
  5. package/dist/designer/assets/src-D-O2F805.css +1 -0
  6. package/dist/designer/index.html +6 -6
  7. package/dist/node/studio.js +681 -84
  8. package/package.json +3 -3
  9. package/src/SvGridEditPanel.dom.test.ts +174 -0
  10. package/src/SvGridEditPanel.svelte +209 -46
  11. package/src/edit-panel.test.ts +145 -36
  12. package/src/edit-panel.ts +167 -16
  13. package/src/expressions/evaluate.ts +1 -1
  14. package/src/expressions/parse.ts +3 -3
  15. package/src/index.ts +8 -0
  16. package/src/license-core.ts +77 -5
  17. package/src/license-expiry.test.ts +91 -0
  18. package/src/license.ts +31 -2
  19. package/src/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/_svelte_metadata.json +1 -0
  20. package/src/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/_metadata.json +178 -0
  21. package/src/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/attachments-ZrPsKxob.js +3875 -0
  22. package/src/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/attachments-ZrPsKxob.js.map +1 -0
  23. package/src/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/constants-ACqvWGE2.js +21 -0
  24. package/src/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/constants-ACqvWGE2.js.map +1 -0
  25. package/src/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/dev-D3w5jt92.js +1938 -0
  26. package/src/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/dev-D3w5jt92.js.map +1 -0
  27. package/src/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/events-CC2V3H0y.js +205 -0
  28. package/src/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/events-CC2V3H0y.js.map +1 -0
  29. package/src/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/flags-BXP37tAa.js +18 -0
  30. package/src/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/flags-BXP37tAa.js.map +1 -0
  31. package/src/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/hydration-DwubnU5b.js +264 -0
  32. package/src/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/hydration-DwubnU5b.js.map +1 -0
  33. package/src/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/legacy-client-hD7f6PUz.js +697 -0
  34. package/src/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/legacy-client-hD7f6PUz.js.map +1 -0
  35. package/src/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/package.json +3 -0
  36. package/src/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte.js +134 -0
  37. package/src/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte.js.map +1 -0
  38. package/src/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_animate.js +55 -0
  39. package/src/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_animate.js.map +1 -0
  40. package/src/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_attachments.js +2 -0
  41. package/src/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_compiler.js +46843 -0
  42. package/src/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_compiler.js.map +1 -0
  43. package/src/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_easing.js +237 -0
  44. package/src/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_easing.js.map +1 -0
  45. package/src/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_events.js +2 -0
  46. package/src/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_internal.js +4 -0
  47. package/src/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_internal.js.map +1 -0
  48. package/src/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_internal_client.js +7 -0
  49. package/src/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_internal_disclose-version.js +4 -0
  50. package/src/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_internal_disclose-version.js.map +1 -0
  51. package/src/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_internal_flags_async.js +5 -0
  52. package/src/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_internal_flags_async.js.map +1 -0
  53. package/src/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_internal_flags_legacy.js +5 -0
  54. package/src/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_internal_flags_legacy.js.map +1 -0
  55. package/src/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_internal_flags_tracing.js +5 -0
  56. package/src/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_internal_flags_tracing.js.map +1 -0
  57. package/src/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_internal_server.js +6 -0
  58. package/src/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_legacy.js +83 -0
  59. package/src/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_legacy.js.map +1 -0
  60. package/src/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_motion.js +559 -0
  61. package/src/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_motion.js.map +1 -0
  62. package/src/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_reactivity.js +24 -0
  63. package/src/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_reactivity.js.map +1 -0
  64. package/src/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_reactivity_window.js +122 -0
  65. package/src/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_reactivity_window.js.map +1 -0
  66. package/src/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_server.js +2 -0
  67. package/src/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_store.js +89 -0
  68. package/src/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_store.js.map +1 -0
  69. package/src/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_transition.js +241 -0
  70. package/src/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_transition.js.map +1 -0
  71. package/src/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/utils-DBx1SCN6.js +4938 -0
  72. package/src/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/utils-DBx1SCN6.js.map +1 -0
  73. package/src/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/utils-gjfpSTFS.js +495 -0
  74. package/src/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/utils-gjfpSTFS.js.map +1 -0
  75. package/src/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/validate-DKoOKg8S.js +190 -0
  76. package/src/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/validate-DKoOKg8S.js.map +1 -0
  77. package/src/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/version-C0MiR7eR.js +8 -0
  78. package/src/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/version-C0MiR7eR.js.map +1 -0
  79. package/src/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/warnings-B6Y7P0Q-.js +138 -0
  80. package/src/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/warnings-B6Y7P0Q-.js.map +1 -0
  81. package/src/schema.ts +63 -0
  82. package/src/studio/emit-project.test.ts +191 -0
  83. package/src/studio/emit-project.ts +237 -27
  84. package/src/studio/emit-schema.ts +4 -1
  85. package/src/studio/index.ts +2 -0
  86. package/src/studio/init-flow.test.ts +150 -0
  87. package/src/studio/init-flow.ts +169 -22
  88. package/src/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/_svelte_metadata.json +1 -0
  89. package/src/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/_metadata.json +178 -0
  90. package/src/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/attachments-BOv1rBKp.js +3875 -0
  91. package/src/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/attachments-BOv1rBKp.js.map +1 -0
  92. package/src/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/constants-B9vgIdCd.js +21 -0
  93. package/src/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/constants-B9vgIdCd.js.map +1 -0
  94. package/src/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/dev-T1qbW_qD.js +1938 -0
  95. package/src/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/dev-T1qbW_qD.js.map +1 -0
  96. package/src/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/events-Bo11SfVK.js +205 -0
  97. package/src/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/events-Bo11SfVK.js.map +1 -0
  98. package/src/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/flags-X7D4vfrZ.js +18 -0
  99. package/src/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/flags-X7D4vfrZ.js.map +1 -0
  100. package/src/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/hydration-oyUje5i1.js +264 -0
  101. package/src/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/hydration-oyUje5i1.js.map +1 -0
  102. package/src/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/legacy-client-DeSQgSFm.js +697 -0
  103. package/src/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/legacy-client-DeSQgSFm.js.map +1 -0
  104. package/src/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/package.json +3 -0
  105. package/src/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte.js +134 -0
  106. package/src/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte.js.map +1 -0
  107. package/src/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_animate.js +55 -0
  108. package/src/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_animate.js.map +1 -0
  109. package/src/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_attachments.js +2 -0
  110. package/src/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_compiler.js +46843 -0
  111. package/src/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_compiler.js.map +1 -0
  112. package/src/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_easing.js +237 -0
  113. package/src/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_easing.js.map +1 -0
  114. package/src/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_events.js +2 -0
  115. package/src/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_internal.js +4 -0
  116. package/src/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_internal.js.map +1 -0
  117. package/src/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_internal_client.js +7 -0
  118. package/src/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_internal_disclose-version.js +4 -0
  119. package/src/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_internal_disclose-version.js.map +1 -0
  120. package/src/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_internal_flags_async.js +5 -0
  121. package/src/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_internal_flags_async.js.map +1 -0
  122. package/src/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_internal_flags_legacy.js +5 -0
  123. package/src/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_internal_flags_legacy.js.map +1 -0
  124. package/src/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_internal_flags_tracing.js +5 -0
  125. package/src/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_internal_flags_tracing.js.map +1 -0
  126. package/src/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_internal_server.js +6 -0
  127. package/src/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_legacy.js +83 -0
  128. package/src/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_legacy.js.map +1 -0
  129. package/src/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_motion.js +559 -0
  130. package/src/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_motion.js.map +1 -0
  131. package/src/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_reactivity.js +24 -0
  132. package/src/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_reactivity.js.map +1 -0
  133. package/src/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_reactivity_window.js +122 -0
  134. package/src/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_reactivity_window.js.map +1 -0
  135. package/src/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_server.js +2 -0
  136. package/src/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_store.js +89 -0
  137. package/src/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_store.js.map +1 -0
  138. package/src/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_transition.js +241 -0
  139. package/src/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_transition.js.map +1 -0
  140. package/src/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/utils-BbWyXNk1.js +4938 -0
  141. package/src/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/utils-BbWyXNk1.js.map +1 -0
  142. package/src/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/utils-DI_fC7vt.js +495 -0
  143. package/src/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/utils-DI_fC7vt.js.map +1 -0
  144. package/src/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/validate-Dyr3lQv9.js +190 -0
  145. package/src/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/validate-Dyr3lQv9.js.map +1 -0
  146. package/src/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/version-_9FHH-LF.js +8 -0
  147. package/src/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/version-_9FHH-LF.js.map +1 -0
  148. package/src/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/warnings-CUbSPnyP.js +138 -0
  149. package/src/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/warnings-CUbSPnyP.js.map +1 -0
  150. package/src/studio/project.test.ts +30 -0
  151. package/src/studio/project.ts +72 -8
  152. package/src/studio/samples/crm.ts +11 -2
  153. package/src/studio/samples/insurance.ts +10 -4
  154. package/src/studio/samples/samples.test.ts +36 -0
  155. package/src/studio/samples/shared.ts +14 -0
  156. package/src/studio/samples/support.ts +12 -5
  157. package/src/studio/screen-suites.test.ts +43 -0
  158. package/src/studio/screen-suites.ts +5 -2
  159. package/src/studio/user-error.ts +31 -0
  160. package/src/upgrade-prompt.ts +23 -10
  161. package/src/version.test.ts +17 -0
  162. package/src/version.ts +13 -0
  163. package/dist/designer/assets/index-DjPp1mn7.css +0 -1
  164. package/dist/designer/assets/src-BRKu53tV.js +0 -2842
  165. package/dist/designer/assets/src-DseB1VRN.css +0 -1
@@ -0,0 +1,3875 @@
1
+ import { $ as get_next_sibling, A as render_effect, An as each_key_duplicate, B as add_form_reset_listener, Bn as CLASS_CACHE, Bt as capture_store_binding, Cn as reset, Ct as flatten, D as move_effect, Dn as bind_invalid_checkbox_value, E as managed, En as skip_nodes, Et as run_after_blockers, F as user_pre_effect, Fn as props_rest_readonly, Ft as current_batch, Gn as FORM_RESET_HANDLER, I as validate_effect, In as rune_outside_svelte, J as create_element, K as clear_text_content, Kn as HEAD_EFFECT, L as listen, Ln as get_error, Lt as flushSync, M as teardown, N as template_effect, Nn as invalid_snippet, O as pause_effect, On as component_api_changed, P as user_effect, Pn as props_invalid_value, Pt as Batch, Q as get_first_child, R as listen_to_event_and_reset_event, Rt as is_flushing_sync, S as effect_root, Sn as read_hydration_instruction, Sr as invalid_snippet_arguments, St as capture, Tn as set_hydrating, Un as EFFECT_OFFSCREEN, V as autofocus, Wn as EFFECT_TRANSPARENT, X as create_text, Xn as LEGACY_PROPS, Yn as IS_XHTML, Zn as LOADING_ATTR_SYMBOL, _n as hydrate_next, _r as run, a as deep_read_state, an as dev_current_component_function, ar as define_property, b as eager_effect, bn as hydrating, bt as derived_safe_equal, cr as get_descriptor, ct as is, d as tick, dn as tag, dt as mutable_source, er as STATE_SYMBOL, f as untrack, fr as is_array, g as branch, gn as safe_not_equal, gr as object_keys, gt as update, h as block, hr as noop, in as component_context, it as should_defer_append, j as resume_effect, jn as each_key_volatile, k as remove_effect_dom, kn as component_api_invalid_new, kt as unset_context, l as set_active_effect, lr as get_descriptors, lt as proxy, mn as snapshot, mr as is_promise, mt as source, n as active_effect, nn as queue_micro_task, o as get, on as dev_stack, pr as is_function, pt as set, q as create_comment, qn as HMR_ANCHOR, r as active_reaction, rr as array_from, s as is_destroying_effect, sn as is_runes, tr as STYLE_CACHE, u as set_active_reaction, un as set_dev_current_component_function, ur as get_prototype_of, ut as internal_set, vn as hydrate_node, vr as run_all, wn as set_hydrate_node, x as effect, y as destroy_effect, yt as derived, z as without_reactive_context, zn as ATTRIBUTES_CACHE, zt as previous_batch } from "./utils-DBx1SCN6.js";
2
+ import { a as legacy_mode_flag, t as async_mode_flag } from "./flags-BXP37tAa.js";
3
+ import { c as NAMESPACE_SVG, i as HYDRATION_ERROR, l as UNINITIALIZED, n as FILENAME, o as NAMESPACE_HTML, r as HMR, s as NAMESPACE_MATHML, t as ATTACHMENT_KEY } from "./constants-ACqvWGE2.js";
4
+ import { f as is_raw_text_element, i as hash, n as can_delegate_event, o as is_capture_event, v as normalize_attribute, y as sanitize_location } from "./utils-gjfpSTFS.js";
5
+ import { c as to_style, o as clsx, s as to_class, t as prevent_snippet_stringification } from "./validate-DKoOKg8S.js";
6
+ import { a as console_log_state, c as hydration_attribute_changed, f as ownership_invalid_binding, i as binding_property_non_reactive, l as hydration_html_changed, m as select_multiple_invalid_value, p as ownership_invalid_mutation, t as assignment_value_stale, u as hydration_mismatch } from "./warnings-B6Y7P0Q-.js";
7
+ import { a as delegated, i as delegate, r as create_event } from "./events-CC2V3H0y.js";
8
+ import { S as create_trusted_html, d as should_intro, f as append, l as set_should_intro, n as createClassComponent, p as assign_nodes } from "./legacy-client-hD7f6PUz.js";
9
+ //#region ../../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.67.0/node_modules/svelte/src/internal/client/dev/assign.js
10
+ /**
11
+ *
12
+ * @param {any} a
13
+ * @param {any} b
14
+ * @param {string} property
15
+ * @param {string} location
16
+ */
17
+ function compare(a, b, property, location) {
18
+ if (a !== b && typeof b === "object" && STATE_SYMBOL in b) assignment_value_stale(property, sanitize_location(location));
19
+ return a;
20
+ }
21
+ /**
22
+ * @param {any} object
23
+ * @param {string} property
24
+ * @param {string} operator
25
+ * @param {any} rhs
26
+ * @param {string} location
27
+ */
28
+ function assign(object, property, operator, rhs, location) {
29
+ return compare(operator === "=" ? object[property] = rhs : operator === "&&=" ? object[property] &&= rhs() : operator === "||=" ? object[property] ||= rhs() : operator === "??=" ? object[property] ??= rhs() : null, untrack(() => object[property]), property, location);
30
+ }
31
+ /**
32
+ * @param {any} object
33
+ * @param {string} property
34
+ * @param {string} operator
35
+ * @param {any} rhs
36
+ * @param {string} location
37
+ */
38
+ async function assign_async(object, property, operator, rhs, location) {
39
+ return compare(operator === "=" ? object[property] = await rhs : operator === "&&=" ? object[property] &&= await rhs() : operator === "||=" ? object[property] ||= await rhs() : operator === "??=" ? object[property] ??= await rhs() : null, untrack(() => object[property]), property, location);
40
+ }
41
+ //#endregion
42
+ //#region ../../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.67.0/node_modules/svelte/src/internal/client/dev/css.js
43
+ /** @type {Map<String, Set<HTMLStyleElement>>} */
44
+ var all_styles = /* @__PURE__ */ new Map();
45
+ /**
46
+ * @param {String} hash
47
+ * @param {HTMLStyleElement} style
48
+ */
49
+ function register_style(hash, style) {
50
+ var styles = all_styles.get(hash);
51
+ if (!styles) {
52
+ styles = /* @__PURE__ */ new Set();
53
+ all_styles.set(hash, styles);
54
+ }
55
+ styles.add(style);
56
+ }
57
+ /**
58
+ * @param {String} hash
59
+ */
60
+ function cleanup_styles(hash) {
61
+ var styles = all_styles.get(hash);
62
+ if (!styles) return;
63
+ for (const style of styles) style.remove();
64
+ all_styles.delete(hash);
65
+ }
66
+ //#endregion
67
+ //#region ../../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.67.0/node_modules/svelte/src/internal/client/dev/elements.js
68
+ /** @import { SourceLocation } from '#client' */
69
+ /**
70
+ * @param {any} fn
71
+ * @param {string} filename
72
+ * @param {SourceLocation[]} locations
73
+ * @returns {any}
74
+ */
75
+ function add_locations(fn, filename, locations) {
76
+ return (...args) => {
77
+ const dom = fn(...args);
78
+ assign_locations(hydrating ? dom : dom.nodeType === 11 ? dom.firstChild : dom, filename, locations);
79
+ return dom;
80
+ };
81
+ }
82
+ /**
83
+ * @param {Element} element
84
+ * @param {string} filename
85
+ * @param {SourceLocation} location
86
+ */
87
+ function assign_location(element, filename, location) {
88
+ element.__svelte_meta = {
89
+ parent: dev_stack,
90
+ loc: {
91
+ file: filename,
92
+ line: location[0],
93
+ column: location[1]
94
+ }
95
+ };
96
+ if (location[2]) assign_locations(element.firstChild, filename, location[2]);
97
+ }
98
+ /**
99
+ * @param {Node | null} node
100
+ * @param {string} filename
101
+ * @param {SourceLocation[]} locations
102
+ */
103
+ function assign_locations(node, filename, locations) {
104
+ var i = 0;
105
+ var depth = 0;
106
+ while (node && i < locations.length) {
107
+ if (hydrating && node.nodeType === 8) {
108
+ var comment = node;
109
+ if (comment.data[0] === "[") depth += 1;
110
+ else if (comment.data[0] === "]") depth -= 1;
111
+ }
112
+ if (depth === 0 && node.nodeType === 1) assign_location(node, filename, locations[i++]);
113
+ node = node.nextSibling;
114
+ }
115
+ }
116
+ //#endregion
117
+ //#region ../../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.67.0/node_modules/svelte/src/internal/client/dev/hmr.js
118
+ /** @import { Effect, TemplateNode } from '#client' */
119
+ /**
120
+ * @template {(anchor: Comment, props: any) => any} Component
121
+ * @param {Component} fn
122
+ */
123
+ function hmr(fn) {
124
+ const current = source(fn);
125
+ /**
126
+ * @param {TemplateNode} initial_anchor
127
+ * @param {any} props
128
+ */
129
+ function wrapper(initial_anchor, props) {
130
+ let component = {};
131
+ let instance = {};
132
+ /** @type {Effect} */
133
+ let effect;
134
+ let ran = false;
135
+ let anchor = initial_anchor;
136
+ block(() => {
137
+ if (component === (component = get(current))) return;
138
+ if (effect) {
139
+ for (var k in instance) delete instance[k];
140
+ destroy_effect(effect);
141
+ }
142
+ effect = branch(() => {
143
+ anchor = anchor[HMR_ANCHOR] ?? anchor;
144
+ if (ran) set_should_intro(false);
145
+ var result = new.target ? new component(anchor, props) : component(anchor, props);
146
+ if (result) Object.defineProperties(instance, Object.getOwnPropertyDescriptors(result));
147
+ if (ran) set_should_intro(true);
148
+ });
149
+ /** @type {Effect} */ active_effect.nodes = effect.nodes;
150
+ }, EFFECT_TRANSPARENT);
151
+ ran = true;
152
+ if (hydrating) anchor = hydrate_node;
153
+ return instance;
154
+ }
155
+ wrapper[FILENAME] = fn[FILENAME];
156
+ wrapper[HMR] = {
157
+ fn,
158
+ current,
159
+ update: (incoming) => {
160
+ set(wrapper[HMR].current, incoming[HMR].fn);
161
+ incoming[HMR].current = wrapper[HMR].current;
162
+ }
163
+ };
164
+ return wrapper;
165
+ }
166
+ //#endregion
167
+ //#region ../../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.67.0/node_modules/svelte/src/internal/client/dev/ownership.js
168
+ /** @typedef {{ file: string, line: number, column: number }} Location */
169
+ /**
170
+ * Sets up a validator that
171
+ * - traverses the path of a prop to find out if it is allowed to be mutated
172
+ * - checks that the binding chain is not interrupted
173
+ * @param {Record<string, any>} props
174
+ */
175
+ function create_ownership_validator(props) {
176
+ const component = component_context?.function;
177
+ const parent = component_context?.p?.function;
178
+ return {
179
+ /**
180
+ * @param {string} prop
181
+ * @param {any[]} path
182
+ * @param {any} result
183
+ * @param {number} line
184
+ * @param {number} column
185
+ */
186
+ mutation: (prop, path, result, line, column) => {
187
+ const name = path[0];
188
+ if (is_bound_or_unset(props, name) || !parent) return result;
189
+ /** @type {any} */
190
+ let value = props;
191
+ for (let i = 0; i < path.length - 1; i++) {
192
+ value = value[path[i]];
193
+ if (!value?.[STATE_SYMBOL]) return result;
194
+ }
195
+ const location = sanitize_location(`${component[FILENAME]}:${line}:${column}`);
196
+ ownership_invalid_mutation(name, location, prop, parent[FILENAME]);
197
+ return result;
198
+ },
199
+ /**
200
+ * @param {any} key
201
+ * @param {any} child_component
202
+ * @param {() => any} value
203
+ */
204
+ binding: (key, child_component, value) => {
205
+ if (!is_bound_or_unset(props, key) && parent && value()?.[STATE_SYMBOL]) ownership_invalid_binding(component[FILENAME], key, child_component[FILENAME], parent[FILENAME]);
206
+ }
207
+ };
208
+ }
209
+ /**
210
+ * @param {Record<string, any>} props
211
+ * @param {string} prop_name
212
+ */
213
+ function is_bound_or_unset(props, prop_name) {
214
+ const is_entry_props = STATE_SYMBOL in props || LEGACY_PROPS in props;
215
+ return !!get_descriptor(props, prop_name)?.set || is_entry_props && prop_name in props || !(prop_name in props);
216
+ }
217
+ //#endregion
218
+ //#region ../../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.67.0/node_modules/svelte/src/internal/client/dev/legacy.js
219
+ /** @param {Function & { [FILENAME]: string }} target */
220
+ function check_target(target) {
221
+ if (target) component_api_invalid_new(target[FILENAME] ?? "a component", target.name);
222
+ }
223
+ function legacy_api() {
224
+ const component = component_context?.function;
225
+ /** @param {string} method */
226
+ function error(method) {
227
+ component_api_changed(method, component[FILENAME]);
228
+ }
229
+ return {
230
+ $destroy: () => error("$destroy()"),
231
+ $on: () => error("$on(...)"),
232
+ $set: () => error("$set(...)")
233
+ };
234
+ }
235
+ //#endregion
236
+ //#region ../../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.67.0/node_modules/svelte/src/internal/client/dev/inspect.js
237
+ /**
238
+ * @param {() => any[]} get_value
239
+ * @param {Function} inspector
240
+ * @param {boolean} show_stack
241
+ */
242
+ function inspect(get_value, inspector, show_stack = false) {
243
+ validate_effect("$inspect");
244
+ let initial = true;
245
+ let error = UNINITIALIZED;
246
+ eager_effect(() => {
247
+ error = UNINITIALIZED;
248
+ try {
249
+ var value = get_value();
250
+ } catch (e) {
251
+ error = e;
252
+ return;
253
+ }
254
+ var snap = snapshot(value, true, true);
255
+ untrack(() => {
256
+ if (show_stack) {
257
+ inspector(...snap);
258
+ if (!initial) {
259
+ const stack = get_error("$inspect(...)");
260
+ if (stack) {
261
+ console.groupCollapsed("stack trace");
262
+ console.log(stack);
263
+ console.groupEnd();
264
+ }
265
+ }
266
+ } else inspector(initial ? "init" : "update", ...snap);
267
+ });
268
+ initial = false;
269
+ });
270
+ render_effect(() => {
271
+ try {
272
+ get_value();
273
+ } catch {}
274
+ if (error !== UNINITIALIZED) {
275
+ console.error(error);
276
+ error = UNINITIALIZED;
277
+ }
278
+ });
279
+ }
280
+ //#endregion
281
+ //#region ../../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.67.0/node_modules/svelte/src/internal/client/dom/blocks/async.js
282
+ /** @import { Blocker, TemplateNode, Value } from '#client' */
283
+ /**
284
+ * @param {TemplateNode} node
285
+ * @param {Blocker[]} blockers
286
+ * @param {Array<() => Promise<any>>} expressions
287
+ * @param {(anchor: TemplateNode, ...deriveds: Value[]) => void} fn
288
+ */
289
+ function async(node, blockers = [], expressions = [], fn) {
290
+ var was_hydrating = hydrating;
291
+ var end = null;
292
+ if (was_hydrating) {
293
+ hydrate_next();
294
+ end = skip_nodes(false);
295
+ }
296
+ if (expressions.length === 0 && blockers.every((b) => b.settled)) {
297
+ fn(node);
298
+ if (was_hydrating) set_hydrate_node(end);
299
+ return;
300
+ }
301
+ if (was_hydrating) {
302
+ var previous_hydrate_node = hydrate_node;
303
+ set_hydrate_node(end);
304
+ }
305
+ flatten(blockers, [], expressions, (values) => {
306
+ if (was_hydrating) {
307
+ set_hydrating(true);
308
+ set_hydrate_node(previous_hydrate_node);
309
+ }
310
+ try {
311
+ for (const d of values) get(d);
312
+ fn(node, ...values);
313
+ } finally {
314
+ if (was_hydrating) set_hydrating(false);
315
+ }
316
+ });
317
+ }
318
+ //#endregion
319
+ //#region ../../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.67.0/node_modules/svelte/src/internal/client/dev/validation.js
320
+ /**
321
+ * @param {Node} anchor
322
+ * @param {...(()=>any)[]} args
323
+ */
324
+ function validate_snippet_args(anchor, ...args) {
325
+ if (typeof anchor !== "object" || !(anchor instanceof Node)) invalid_snippet_arguments();
326
+ for (let arg of args) if (typeof arg !== "function") invalid_snippet_arguments();
327
+ }
328
+ //#endregion
329
+ //#region ../../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.67.0/node_modules/svelte/src/internal/client/dom/blocks/branches.js
330
+ /** @import { Effect, TemplateNode } from '#client' */
331
+ /**
332
+ * @typedef {{ effect: Effect, fragment: DocumentFragment }} Branch
333
+ */
334
+ /**
335
+ * @template Key
336
+ */
337
+ var BranchManager = class {
338
+ /** @type {TemplateNode} */
339
+ anchor;
340
+ /** @type {Map<Batch, Key>} */
341
+ #batches = /* @__PURE__ */ new Map();
342
+ /**
343
+ * Map of keys to effects that are currently rendered in the DOM.
344
+ * These effects are visible and actively part of the document tree.
345
+ * Example:
346
+ * ```
347
+ * {#if condition}
348
+ * foo
349
+ * {:else}
350
+ * bar
351
+ * {/if}
352
+ * ```
353
+ * Can result in the entries `true->Effect` and `false->Effect`
354
+ * @type {Map<Key, Effect>}
355
+ */
356
+ #onscreen = /* @__PURE__ */ new Map();
357
+ /**
358
+ * Similar to #onscreen with respect to the keys, but contains branches that are not yet
359
+ * in the DOM, because their insertion is deferred.
360
+ * @type {Map<Key, Branch>}
361
+ */
362
+ #offscreen = /* @__PURE__ */ new Map();
363
+ /**
364
+ * Keys of effects that are currently outroing
365
+ * @type {Set<Key>}
366
+ */
367
+ #outroing = /* @__PURE__ */ new Set();
368
+ /**
369
+ * Whether to pause (i.e. outro) on change, or destroy immediately.
370
+ * This is necessary for `<svelte:element>`
371
+ */
372
+ #transition = true;
373
+ /**
374
+ * @param {TemplateNode} anchor
375
+ * @param {boolean} transition
376
+ */
377
+ constructor(anchor, transition = true) {
378
+ this.anchor = anchor;
379
+ this.#transition = transition;
380
+ }
381
+ /**
382
+ * @param {Batch} batch
383
+ */
384
+ #commit = (batch) => {
385
+ if (!this.#batches.has(batch)) return;
386
+ var key = this.#batches.get(batch);
387
+ var onscreen = this.#onscreen.get(key);
388
+ if (onscreen) {
389
+ resume_effect(onscreen);
390
+ this.#outroing.delete(key);
391
+ } else {
392
+ var offscreen = this.#offscreen.get(key);
393
+ if (offscreen) {
394
+ this.#onscreen.set(key, offscreen.effect);
395
+ this.#offscreen.delete(key);
396
+ /** @type {any} */ offscreen.fragment.lastChild[HMR_ANCHOR] = this.anchor;
397
+ /** @type {TemplateNode} */ offscreen.fragment.lastChild.remove();
398
+ this.anchor.before(offscreen.fragment);
399
+ onscreen = offscreen.effect;
400
+ }
401
+ }
402
+ for (const [b, k] of this.#batches) {
403
+ this.#batches.delete(b);
404
+ if (b === batch) break;
405
+ const offscreen = this.#offscreen.get(k);
406
+ if (offscreen) {
407
+ destroy_effect(offscreen.effect);
408
+ this.#offscreen.delete(k);
409
+ }
410
+ }
411
+ for (const [k, effect] of this.#onscreen) {
412
+ if (k === key || this.#outroing.has(k)) continue;
413
+ const on_destroy = () => {
414
+ if (Array.from(this.#batches.values()).includes(k)) {
415
+ var fragment = document.createDocumentFragment();
416
+ move_effect(effect, fragment);
417
+ fragment.append(create_text());
418
+ this.#offscreen.set(k, {
419
+ effect,
420
+ fragment
421
+ });
422
+ } else destroy_effect(effect);
423
+ this.#outroing.delete(k);
424
+ this.#onscreen.delete(k);
425
+ };
426
+ if (this.#transition || !onscreen) {
427
+ this.#outroing.add(k);
428
+ pause_effect(effect, on_destroy, false);
429
+ } else on_destroy();
430
+ }
431
+ };
432
+ /**
433
+ * @param {Batch} batch
434
+ */
435
+ #discard = (batch) => {
436
+ this.#batches.delete(batch);
437
+ const keys = Array.from(this.#batches.values());
438
+ for (const [k, branch] of this.#offscreen) if (!keys.includes(k)) {
439
+ destroy_effect(branch.effect);
440
+ this.#offscreen.delete(k);
441
+ }
442
+ };
443
+ /**
444
+ *
445
+ * @param {any} key
446
+ * @param {null | ((target: TemplateNode) => void)} fn
447
+ */
448
+ ensure(key, fn) {
449
+ var batch = current_batch;
450
+ var defer = should_defer_append();
451
+ if (fn && !this.#onscreen.has(key) && !this.#offscreen.has(key)) {
452
+ if (defer) {
453
+ var fragment = document.createDocumentFragment();
454
+ var target = create_text();
455
+ fragment.append(target);
456
+ this.#offscreen.set(key, {
457
+ effect: branch(() => fn(target)),
458
+ fragment
459
+ });
460
+ } else this.#onscreen.set(key, branch(() => fn(this.anchor)));
461
+ }
462
+ this.#batches.set(batch, key);
463
+ if (defer) {
464
+ for (const [k, effect] of this.#onscreen) if (k === key) batch.unskip_effect(effect);
465
+ else batch.skip_effect(effect);
466
+ for (const [k, branch] of this.#offscreen) if (k === key) batch.unskip_effect(branch.effect);
467
+ else batch.skip_effect(branch.effect);
468
+ batch.oncommit(this.#commit);
469
+ batch.ondiscard(this.#discard);
470
+ } else {
471
+ if (hydrating) this.anchor = hydrate_node;
472
+ this.#commit(batch);
473
+ }
474
+ }
475
+ };
476
+ //#endregion
477
+ //#region ../../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.67.0/node_modules/svelte/src/internal/client/dom/blocks/await.js
478
+ /** @import { Source, TemplateNode } from '#client' */
479
+ var PENDING = 0;
480
+ var THEN = 1;
481
+ var CATCH = 2;
482
+ /** @typedef {typeof PENDING | typeof THEN | typeof CATCH} AwaitState */
483
+ /**
484
+ * @template V
485
+ * @param {TemplateNode} node
486
+ * @param {(() => any)} get_input
487
+ * @param {null | ((anchor: Node) => void)} pending_fn
488
+ * @param {null | ((anchor: Node, value: Source<V>) => void)} then_fn
489
+ * @param {null | ((anchor: Node, error: unknown) => void)} catch_fn
490
+ * @returns {void}
491
+ */
492
+ function await_block(node, get_input, pending_fn, then_fn, catch_fn) {
493
+ if (hydrating) hydrate_next();
494
+ var runes = is_runes();
495
+ var v = UNINITIALIZED;
496
+ var value = runes ? source(v) : /* @__PURE__ */ mutable_source(v, false, false);
497
+ var error = runes ? source(v) : /* @__PURE__ */ mutable_source(v, false, false);
498
+ value.label = "{#await ...} value";
499
+ error.label = "{#await ...} error";
500
+ var branches = new BranchManager(node);
501
+ block(() => {
502
+ var batch = current_batch;
503
+ var input = get_input();
504
+ var destroyed = false;
505
+ /** Whether or not there was a hydration mismatch. Needs to be a `let` or else it isn't treeshaken out */
506
+ let mismatch = hydrating && is_promise(input) === (node.data === "[!");
507
+ if (mismatch) {
508
+ set_hydrate_node(skip_nodes());
509
+ set_hydrating(false);
510
+ }
511
+ if (is_promise(input)) {
512
+ var restore = capture();
513
+ var resolved = false;
514
+ /**
515
+ * @param {() => void} fn
516
+ */
517
+ const resolve = (fn) => {
518
+ if (destroyed) return;
519
+ resolved = true;
520
+ restore(false);
521
+ if (current_batch === batch) batch.deactivate();
522
+ Batch.ensure();
523
+ try {
524
+ fn();
525
+ } finally {
526
+ unset_context(false);
527
+ if (!is_flushing_sync) flushSync();
528
+ }
529
+ };
530
+ input.then((v) => {
531
+ resolve(() => {
532
+ internal_set(value, v);
533
+ branches.ensure(THEN, then_fn && ((target) => then_fn(target, value)));
534
+ });
535
+ }, (e) => {
536
+ resolve(() => {
537
+ internal_set(error, e);
538
+ branches.ensure(CATCH, catch_fn && ((target) => catch_fn(target, error)));
539
+ if (!catch_fn) throw error.v;
540
+ });
541
+ });
542
+ if (hydrating) branches.ensure(PENDING, pending_fn);
543
+ else queue_micro_task(() => {
544
+ if (!resolved) resolve(() => {
545
+ branches.ensure(PENDING, pending_fn);
546
+ });
547
+ });
548
+ } else {
549
+ internal_set(value, input);
550
+ branches.ensure(THEN, then_fn && ((target) => then_fn(target, value)));
551
+ }
552
+ if (mismatch) set_hydrating(true);
553
+ return () => {
554
+ destroyed = true;
555
+ };
556
+ });
557
+ }
558
+ //#endregion
559
+ //#region ../../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.67.0/node_modules/svelte/src/internal/client/dom/blocks/if.js
560
+ /** @import { TemplateNode } from '#client' */
561
+ /**
562
+ * @param {TemplateNode} node
563
+ * @param {(branch: (fn: (anchor: Node) => void, key?: number | false) => void) => void} fn
564
+ * @param {boolean} [elseif] True if this is an `{:else if ...}` block rather than an `{#if ...}`, as that affects which transitions are considered 'local'
565
+ * @returns {void}
566
+ */
567
+ function if_block(node, fn, elseif = false) {
568
+ /** @type {TemplateNode | undefined} */
569
+ var marker;
570
+ if (hydrating) {
571
+ marker = hydrate_node;
572
+ hydrate_next();
573
+ }
574
+ var branches = new BranchManager(node);
575
+ var flags = elseif ? EFFECT_TRANSPARENT : 0;
576
+ /**
577
+ * @param {number | false} key
578
+ * @param {null | ((anchor: Node) => void)} fn
579
+ */
580
+ function update_branch(key, fn) {
581
+ if (hydrating) {
582
+ var data = read_hydration_instruction(marker);
583
+ if (key !== parseInt(data.substring(1))) {
584
+ var anchor = skip_nodes();
585
+ set_hydrate_node(anchor);
586
+ branches.anchor = anchor;
587
+ set_hydrating(false);
588
+ branches.ensure(key, fn);
589
+ set_hydrating(true);
590
+ return;
591
+ }
592
+ }
593
+ branches.ensure(key, fn);
594
+ }
595
+ block(() => {
596
+ var has_branch = false;
597
+ fn((fn, key = 0) => {
598
+ has_branch = true;
599
+ update_branch(key, fn);
600
+ });
601
+ if (!has_branch) update_branch(-1, null);
602
+ }, flags);
603
+ }
604
+ //#endregion
605
+ //#region ../../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.67.0/node_modules/svelte/src/internal/client/dom/blocks/key.js
606
+ /** @import { TemplateNode } from '#client' */
607
+ var NAN = Symbol("NaN");
608
+ /**
609
+ * @template V
610
+ * @param {TemplateNode} node
611
+ * @param {() => V} get_key
612
+ * @param {(anchor: Node) => TemplateNode | void} render_fn
613
+ * @returns {void}
614
+ */
615
+ function key(node, get_key, render_fn) {
616
+ if (hydrating) hydrate_next();
617
+ var branches = new BranchManager(node);
618
+ var legacy = !is_runes();
619
+ block(() => {
620
+ var key = get_key();
621
+ if (key !== key) key = NAN;
622
+ if (legacy && key !== null && typeof key === "object") key = {};
623
+ branches.ensure(key, render_fn);
624
+ });
625
+ }
626
+ //#endregion
627
+ //#region ../../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.67.0/node_modules/svelte/src/internal/client/dom/blocks/css-props.js
628
+ /**
629
+ * @param {HTMLDivElement | SVGGElement} element
630
+ * @param {() => Record<string, string>} get_styles
631
+ * @returns {void}
632
+ */
633
+ function css_props(element, get_styles) {
634
+ if (hydrating) set_hydrate_node(/* @__PURE__ */ get_first_child(element));
635
+ render_effect(() => {
636
+ var styles = get_styles();
637
+ for (var key in styles) {
638
+ var value = styles[key];
639
+ if (value) element.style.setProperty(key, value);
640
+ else element.style.removeProperty(key);
641
+ }
642
+ });
643
+ }
644
+ //#endregion
645
+ //#region ../../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.67.0/node_modules/svelte/src/internal/client/dom/blocks/each.js
646
+ /** @import { EachItem, EachOutroGroup, EachState, Effect, EffectNodes, MaybeSource, Source, TemplateNode, TransitionManager, Value } from '#client' */
647
+ /** @import { Batch } from '../../reactivity/batch.js'; */
648
+ /**
649
+ * @param {any} _
650
+ * @param {number} i
651
+ */
652
+ function index(_, i) {
653
+ return i;
654
+ }
655
+ /**
656
+ * Pause multiple effects simultaneously, and coordinate their
657
+ * subsequent destruction. Used in each blocks
658
+ * @param {EachState} state
659
+ * @param {Effect[]} to_destroy
660
+ * @param {null | Node} controlled_anchor
661
+ */
662
+ function pause_effects(state, to_destroy, controlled_anchor) {
663
+ /** @type {TransitionManager[]} */
664
+ var transitions = [];
665
+ var length = to_destroy.length;
666
+ /** @type {EachOutroGroup} */
667
+ var group;
668
+ var remaining = to_destroy.length;
669
+ for (var i = 0; i < length; i++) {
670
+ let effect = to_destroy[i];
671
+ pause_effect(effect, () => {
672
+ if (group) {
673
+ group.pending.delete(effect);
674
+ group.done.add(effect);
675
+ if (group.pending.size === 0) {
676
+ var groups = state.outrogroups;
677
+ destroy_effects(state, array_from(group.done));
678
+ groups.delete(group);
679
+ if (groups.size === 0) state.outrogroups = null;
680
+ }
681
+ } else remaining -= 1;
682
+ }, false);
683
+ }
684
+ if (remaining === 0) {
685
+ var fast_path = transitions.length === 0 && controlled_anchor !== null;
686
+ if (fast_path) {
687
+ var anchor = controlled_anchor;
688
+ var parent_node = anchor.parentNode;
689
+ clear_text_content(parent_node);
690
+ parent_node.append(anchor);
691
+ state.items.clear();
692
+ }
693
+ destroy_effects(state, to_destroy, !fast_path);
694
+ } else {
695
+ group = {
696
+ pending: new Set(to_destroy),
697
+ done: /* @__PURE__ */ new Set()
698
+ };
699
+ (state.outrogroups ??= /* @__PURE__ */ new Set()).add(group);
700
+ }
701
+ }
702
+ /**
703
+ * @param {EachState} state
704
+ * @param {Effect[]} to_destroy
705
+ * @param {boolean} remove_dom
706
+ */
707
+ function destroy_effects(state, to_destroy, remove_dom = true) {
708
+ /** @type {Set<Effect> | undefined} */
709
+ var preserved_effects;
710
+ if (state.pending.size > 0) {
711
+ preserved_effects = /* @__PURE__ */ new Set();
712
+ for (const keys of state.pending.values()) for (const key of keys) preserved_effects.add(
713
+ /** @type {EachItem} */
714
+ state.items.get(key).e
715
+ );
716
+ }
717
+ for (var i = 0; i < to_destroy.length; i++) {
718
+ var e = to_destroy[i];
719
+ if (preserved_effects?.has(e)) {
720
+ e.f |= EFFECT_OFFSCREEN;
721
+ const fragment = document.createDocumentFragment();
722
+ move_effect(e, fragment);
723
+ } else destroy_effect(to_destroy[i], remove_dom);
724
+ }
725
+ }
726
+ /** @type {TemplateNode} */
727
+ var offscreen_anchor;
728
+ /**
729
+ * @template V
730
+ * @param {Element | Comment} node The next sibling node, or the parent node if this is a 'controlled' block
731
+ * @param {number} flags
732
+ * @param {() => V[]} get_collection
733
+ * @param {(value: V, index: number) => any} get_key
734
+ * @param {(anchor: Node, item: MaybeSource<V>, index: MaybeSource<number>) => void} render_fn
735
+ * @param {null | ((anchor: Node) => void)} fallback_fn
736
+ * @returns {void}
737
+ */
738
+ function each(node, flags, get_collection, get_key, render_fn, fallback_fn = null) {
739
+ var anchor = node;
740
+ /** @type {Map<any, EachItem>} */
741
+ var items = /* @__PURE__ */ new Map();
742
+ if ((flags & 4) !== 0) {
743
+ var parent_node = node;
744
+ anchor = hydrating ? set_hydrate_node(/* @__PURE__ */ get_first_child(parent_node)) : parent_node.appendChild(create_text());
745
+ }
746
+ if (hydrating) hydrate_next();
747
+ /** @type {Effect | null} */
748
+ var fallback = null;
749
+ var each_array = /* @__PURE__ */ derived_safe_equal(() => {
750
+ var collection = get_collection();
751
+ return is_array(collection) ? collection : collection == null ? [] : array_from(collection);
752
+ });
753
+ tag(each_array, "{#each ...}");
754
+ /** @type {V[]} */
755
+ var array;
756
+ /** @type {Map<Batch, Set<any>>} */
757
+ var pending = /* @__PURE__ */ new Map();
758
+ var first_run = true;
759
+ /**
760
+ * @param {Batch} batch
761
+ */
762
+ function commit(batch) {
763
+ if ((state.effect.f & 16384) !== 0) return;
764
+ state.pending.delete(batch);
765
+ state.fallback = fallback;
766
+ reconcile(state, array, anchor, flags, get_key);
767
+ if (fallback !== null) {
768
+ if (array.length === 0) {
769
+ if ((fallback.f & 33554432) === 0) resume_effect(fallback);
770
+ else {
771
+ fallback.f ^= EFFECT_OFFSCREEN;
772
+ move(fallback, null, anchor);
773
+ }
774
+ } else pause_effect(fallback, () => {
775
+ fallback = null;
776
+ });
777
+ }
778
+ }
779
+ /**
780
+ * @param {Batch} batch
781
+ */
782
+ function discard(batch) {
783
+ state.pending.delete(batch);
784
+ }
785
+ /** @type {EachState} */
786
+ var state = {
787
+ effect: block(() => {
788
+ array = get(each_array);
789
+ var length = array.length;
790
+ /** `true` if there was a hydration mismatch. Needs to be a `let` or else it isn't treeshaken out */
791
+ let mismatch = false;
792
+ if (hydrating) {
793
+ if (read_hydration_instruction(anchor) === "[!" !== (length === 0)) {
794
+ anchor = skip_nodes();
795
+ set_hydrate_node(anchor);
796
+ set_hydrating(false);
797
+ mismatch = true;
798
+ }
799
+ }
800
+ var keys = /* @__PURE__ */ new Set();
801
+ var batch = current_batch;
802
+ var defer = should_defer_append();
803
+ for (var index = 0; index < length; index += 1) {
804
+ if (hydrating && hydrate_node.nodeType === 8 && hydrate_node.data === "]") {
805
+ anchor = hydrate_node;
806
+ mismatch = true;
807
+ set_hydrating(false);
808
+ }
809
+ var value = array[index];
810
+ var key = get_key(value, index);
811
+ var key_again = get_key(value, index);
812
+ if (key !== key_again) each_key_volatile(String(index), String(key), String(key_again));
813
+ var item = first_run ? null : items.get(key);
814
+ if (item) {
815
+ if (item.v) internal_set(item.v, value);
816
+ if (item.i) internal_set(item.i, index);
817
+ if (defer) batch.unskip_effect(item.e);
818
+ } else {
819
+ item = create_item(items, first_run ? anchor : offscreen_anchor ??= create_text(), value, key, index, render_fn, flags, get_collection);
820
+ if (!first_run) item.e.f |= EFFECT_OFFSCREEN;
821
+ items.set(key, item);
822
+ }
823
+ keys.add(key);
824
+ }
825
+ if (length === 0 && fallback_fn && !fallback) {
826
+ if (first_run) fallback = branch(() => fallback_fn(anchor));
827
+ else {
828
+ fallback = branch(() => fallback_fn(offscreen_anchor ??= create_text()));
829
+ fallback.f |= EFFECT_OFFSCREEN;
830
+ }
831
+ }
832
+ if (length > keys.size) validate_each_keys(array, get_key);
833
+ if (hydrating && length > 0) set_hydrate_node(skip_nodes());
834
+ if (!first_run) {
835
+ pending.set(batch, keys);
836
+ if (defer) {
837
+ for (const [key, item] of items) if (!keys.has(key)) batch.skip_effect(item.e);
838
+ batch.oncommit(commit);
839
+ batch.ondiscard(discard);
840
+ } else commit(batch);
841
+ }
842
+ if (mismatch) set_hydrating(true);
843
+ get(each_array);
844
+ }),
845
+ flags,
846
+ items,
847
+ pending,
848
+ outrogroups: null,
849
+ fallback
850
+ };
851
+ first_run = false;
852
+ if (hydrating) anchor = hydrate_node;
853
+ }
854
+ /**
855
+ * Skip past any non-branch effects (which could be created with `createSubscriber`, for example) to find the next branch effect
856
+ * @param {Effect | null} effect
857
+ * @returns {Effect | null}
858
+ */
859
+ function skip_to_branch(effect) {
860
+ while (effect !== null && (effect.f & 32) === 0) effect = effect.next;
861
+ return effect;
862
+ }
863
+ /**
864
+ * Add, remove, or reorder items output by an each block as its input changes
865
+ * @template V
866
+ * @param {EachState} state
867
+ * @param {Array<V>} array
868
+ * @param {Element | Comment | Text} anchor
869
+ * @param {number} flags
870
+ * @param {(value: V, index: number) => any} get_key
871
+ * @returns {void}
872
+ */
873
+ function reconcile(state, array, anchor, flags, get_key) {
874
+ var is_animated = (flags & 8) !== 0;
875
+ var length = array.length;
876
+ var items = state.items;
877
+ var current = skip_to_branch(state.effect.first);
878
+ /** @type {undefined | Set<Effect>} */
879
+ var seen;
880
+ /** @type {Effect | null} */
881
+ var prev = null;
882
+ /** @type {undefined | Set<Effect>} */
883
+ var to_animate;
884
+ /** @type {Effect[]} */
885
+ var matched = [];
886
+ /** @type {Effect[]} */
887
+ var stashed = [];
888
+ /** @type {V} */
889
+ var value;
890
+ /** @type {any} */
891
+ var key;
892
+ /** @type {Effect | undefined} */
893
+ var effect;
894
+ /** @type {number} */
895
+ var i;
896
+ if (is_animated) for (i = 0; i < length; i += 1) {
897
+ value = array[i];
898
+ key = get_key(value, i);
899
+ effect = items.get(key).e;
900
+ if ((effect.f & 33554432) === 0) {
901
+ effect.nodes?.a?.measure();
902
+ (to_animate ??= /* @__PURE__ */ new Set()).add(effect);
903
+ }
904
+ }
905
+ for (i = 0; i < length; i += 1) {
906
+ value = array[i];
907
+ key = get_key(value, i);
908
+ effect = items.get(key).e;
909
+ if (state.outrogroups !== null) for (const group of state.outrogroups) {
910
+ group.pending.delete(effect);
911
+ group.done.delete(effect);
912
+ }
913
+ if ((effect.f & 8192) !== 0) {
914
+ resume_effect(effect);
915
+ if (is_animated) {
916
+ effect.nodes?.a?.unfix();
917
+ (to_animate ??= /* @__PURE__ */ new Set()).delete(effect);
918
+ }
919
+ }
920
+ if ((effect.f & 33554432) !== 0) {
921
+ effect.f ^= EFFECT_OFFSCREEN;
922
+ if (effect === current) move(effect, null, anchor);
923
+ else {
924
+ var next = prev ? prev.next : current;
925
+ if (effect === state.effect.last) state.effect.last = effect.prev;
926
+ if (effect.prev) effect.prev.next = effect.next;
927
+ if (effect.next) effect.next.prev = effect.prev;
928
+ link(state, prev, effect);
929
+ link(state, effect, next);
930
+ move(effect, next, anchor);
931
+ prev = effect;
932
+ matched = [];
933
+ stashed = [];
934
+ current = skip_to_branch(prev.next);
935
+ continue;
936
+ }
937
+ }
938
+ if (effect !== current) {
939
+ if (seen !== void 0 && seen.has(effect)) {
940
+ if (matched.length < stashed.length) {
941
+ var start = stashed[0];
942
+ var j;
943
+ prev = start.prev;
944
+ var a = matched[0];
945
+ var b = matched[matched.length - 1];
946
+ for (j = 0; j < matched.length; j += 1) move(matched[j], start, anchor);
947
+ for (j = 0; j < stashed.length; j += 1) seen.delete(stashed[j]);
948
+ link(state, a.prev, b.next);
949
+ link(state, prev, a);
950
+ link(state, b, start);
951
+ current = start;
952
+ prev = b;
953
+ i -= 1;
954
+ matched = [];
955
+ stashed = [];
956
+ } else {
957
+ seen.delete(effect);
958
+ move(effect, current, anchor);
959
+ link(state, effect.prev, effect.next);
960
+ link(state, effect, prev === null ? state.effect.first : prev.next);
961
+ link(state, prev, effect);
962
+ prev = effect;
963
+ }
964
+ continue;
965
+ }
966
+ matched = [];
967
+ stashed = [];
968
+ while (current !== null && current !== effect) {
969
+ (seen ??= /* @__PURE__ */ new Set()).add(current);
970
+ stashed.push(current);
971
+ current = skip_to_branch(current.next);
972
+ }
973
+ if (current === null) continue;
974
+ }
975
+ if ((effect.f & 33554432) === 0) matched.push(effect);
976
+ prev = effect;
977
+ current = skip_to_branch(effect.next);
978
+ }
979
+ if (state.outrogroups !== null) {
980
+ for (const group of state.outrogroups) if (group.pending.size === 0) {
981
+ destroy_effects(state, array_from(group.done));
982
+ state.outrogroups?.delete(group);
983
+ }
984
+ if (state.outrogroups.size === 0) state.outrogroups = null;
985
+ }
986
+ if (current !== null || seen !== void 0) {
987
+ /** @type {Effect[]} */
988
+ var to_destroy = [];
989
+ if (seen !== void 0) {
990
+ for (effect of seen) if ((effect.f & 8192) === 0) to_destroy.push(effect);
991
+ }
992
+ while (current !== null) {
993
+ if ((current.f & 8192) === 0 && current !== state.fallback) to_destroy.push(current);
994
+ current = skip_to_branch(current.next);
995
+ }
996
+ var destroy_length = to_destroy.length;
997
+ if (destroy_length > 0) {
998
+ var controlled_anchor = (flags & 4) !== 0 && length === 0 ? anchor : null;
999
+ if (is_animated) {
1000
+ for (i = 0; i < destroy_length; i += 1) to_destroy[i].nodes?.a?.measure();
1001
+ for (i = 0; i < destroy_length; i += 1) to_destroy[i].nodes?.a?.fix();
1002
+ }
1003
+ pause_effects(state, to_destroy, controlled_anchor);
1004
+ }
1005
+ }
1006
+ if (is_animated) queue_micro_task(() => {
1007
+ if (to_animate === void 0) return;
1008
+ for (effect of to_animate) effect.nodes?.a?.apply();
1009
+ });
1010
+ }
1011
+ /**
1012
+ * @template V
1013
+ * @param {Map<any, EachItem>} items
1014
+ * @param {Node} anchor
1015
+ * @param {V} value
1016
+ * @param {unknown} key
1017
+ * @param {number} index
1018
+ * @param {(anchor: Node, item: V | Source<V>, index: number | Value<number>, collection: () => V[]) => void} render_fn
1019
+ * @param {number} flags
1020
+ * @param {() => V[]} get_collection
1021
+ * @returns {EachItem}
1022
+ */
1023
+ function create_item(items, anchor, value, key, index, render_fn, flags, get_collection) {
1024
+ var v = (flags & 1) !== 0 ? (flags & 16) === 0 ? /* @__PURE__ */ mutable_source(value, false, false) : source(value) : null;
1025
+ var i = (flags & 2) !== 0 ? source(index) : null;
1026
+ if (v) v.trace = () => {
1027
+ get_collection()[i?.v ?? index];
1028
+ };
1029
+ return {
1030
+ v,
1031
+ i,
1032
+ e: branch(() => {
1033
+ render_fn(anchor, v ?? value, i ?? index, get_collection);
1034
+ return () => {
1035
+ items.delete(key);
1036
+ };
1037
+ })
1038
+ };
1039
+ }
1040
+ /**
1041
+ * @param {Effect} effect
1042
+ * @param {Effect | null} next
1043
+ * @param {Text | Element | Comment} anchor
1044
+ */
1045
+ function move(effect, next, anchor) {
1046
+ if (!effect.nodes) return;
1047
+ var node = effect.nodes.start;
1048
+ var end = effect.nodes.end;
1049
+ var dest = next && (next.f & 33554432) === 0 ? next.nodes.start : anchor;
1050
+ while (node !== null) {
1051
+ var next_node = /* @__PURE__ */ get_next_sibling(node);
1052
+ dest.before(node);
1053
+ if (node === end) return;
1054
+ node = next_node;
1055
+ }
1056
+ }
1057
+ /**
1058
+ * @param {EachState} state
1059
+ * @param {Effect | null} prev
1060
+ * @param {Effect | null} next
1061
+ */
1062
+ function link(state, prev, next) {
1063
+ if (prev === null) state.effect.first = next;
1064
+ else prev.next = next;
1065
+ if (next === null) state.effect.last = prev;
1066
+ else next.prev = prev;
1067
+ }
1068
+ /**
1069
+ * @param {Array<any>} array
1070
+ * @param {(item: any, index: number) => string} key_fn
1071
+ * @returns {void}
1072
+ */
1073
+ function validate_each_keys(array, key_fn) {
1074
+ const keys = /* @__PURE__ */ new Map();
1075
+ const length = array.length;
1076
+ for (let i = 0; i < length; i++) {
1077
+ const key = key_fn(array[i], i);
1078
+ if (keys.has(key)) {
1079
+ const a = String(keys.get(key));
1080
+ const b = String(i);
1081
+ /** @type {string | null} */
1082
+ let k = String(key);
1083
+ if (k.startsWith("[object ")) k = null;
1084
+ each_key_duplicate(a, b, k);
1085
+ }
1086
+ keys.set(key, i);
1087
+ }
1088
+ }
1089
+ //#endregion
1090
+ //#region ../../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.67.0/node_modules/svelte/src/internal/client/dom/blocks/html.js
1091
+ /** @import { Effect, TemplateNode } from '#client' */
1092
+ /** @import {} from 'trusted-types' */
1093
+ /**
1094
+ * @param {Element} element
1095
+ * @param {string | null} server_hash
1096
+ * @param {string | TrustedHTML} value
1097
+ */
1098
+ function check_hash(element, server_hash, value) {
1099
+ if (!server_hash || server_hash === hash(String(value ?? ""))) return;
1100
+ let location;
1101
+ const loc = element.__svelte_meta?.loc;
1102
+ if (loc) location = `near ${loc.file}:${loc.line}:${loc.column}`;
1103
+ else if (dev_current_component_function?.[FILENAME]) location = `in ${dev_current_component_function[FILENAME]}`;
1104
+ hydration_html_changed(sanitize_location(location));
1105
+ }
1106
+ /**
1107
+ * @param {Element | Text | Comment} node
1108
+ * @param {() => string | TrustedHTML} get_value
1109
+ * @param {boolean} [is_controlled]
1110
+ * @param {boolean} [svg]
1111
+ * @param {boolean} [mathml]
1112
+ * @param {boolean} [skip_warning]
1113
+ * @returns {void}
1114
+ */
1115
+ function html(node, get_value, is_controlled = false, svg = false, mathml = false, skip_warning = false) {
1116
+ var anchor = node;
1117
+ /** @type {string | TrustedHTML} */
1118
+ var value = "";
1119
+ if (is_controlled) {
1120
+ var parent_node = node;
1121
+ if (hydrating) anchor = set_hydrate_node(/* @__PURE__ */ get_first_child(parent_node));
1122
+ }
1123
+ template_effect(() => {
1124
+ var effect = active_effect;
1125
+ if (value === (value = get_value() ?? "")) {
1126
+ if (hydrating) hydrate_next();
1127
+ return;
1128
+ }
1129
+ if (is_controlled && !hydrating) {
1130
+ effect.nodes = null;
1131
+ parent_node.innerHTML = value;
1132
+ if (value !== "") assign_nodes(/* @__PURE__ */ get_first_child(parent_node), parent_node.lastChild);
1133
+ return;
1134
+ }
1135
+ if (effect.nodes !== null) {
1136
+ remove_effect_dom(effect.nodes.start, effect.nodes.end);
1137
+ effect.nodes = null;
1138
+ }
1139
+ if (value === "") return;
1140
+ if (hydrating) {
1141
+ var hash = hydrate_node.data;
1142
+ /** @type {TemplateNode | null} */
1143
+ var next = hydrate_next();
1144
+ var last = next;
1145
+ while (next !== null && (next.nodeType !== 8 || next.data !== "")) {
1146
+ last = next;
1147
+ next = /* @__PURE__ */ get_next_sibling(next);
1148
+ }
1149
+ if (next === null) {
1150
+ hydration_mismatch();
1151
+ throw HYDRATION_ERROR;
1152
+ }
1153
+ if (!skip_warning) check_hash(next.parentNode, hash, value);
1154
+ assign_nodes(hydrate_node, last);
1155
+ anchor = set_hydrate_node(next);
1156
+ return;
1157
+ }
1158
+ var wrapper = create_element(svg ? "svg" : mathml ? "math" : "template", svg ? NAMESPACE_SVG : mathml ? NAMESPACE_MATHML : void 0);
1159
+ wrapper.innerHTML = value;
1160
+ /** @type {DocumentFragment | Element} */
1161
+ var node = svg || mathml ? wrapper : /** @type {HTMLTemplateElement} */ wrapper.content;
1162
+ assign_nodes(/* @__PURE__ */ get_first_child(node), node.lastChild);
1163
+ if (svg || mathml) while (/* @__PURE__ */ get_first_child(node)) anchor.before(/* @__PURE__ */ get_first_child(node));
1164
+ else anchor.before(node);
1165
+ });
1166
+ }
1167
+ //#endregion
1168
+ //#region ../../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.67.0/node_modules/svelte/src/internal/client/dom/blocks/slot.js
1169
+ /**
1170
+ * @param {Comment} anchor
1171
+ * @param {Record<string, any>} $$props
1172
+ * @param {string} name
1173
+ * @param {Record<string, unknown>} slot_props
1174
+ * @param {null | ((anchor: Comment) => void)} fallback_fn
1175
+ */
1176
+ function slot(anchor, $$props, name, slot_props, fallback_fn) {
1177
+ if (hydrating) hydrate_next();
1178
+ var slot_fn = $$props.$$slots?.[name];
1179
+ var is_interop = false;
1180
+ if (slot_fn === true) {
1181
+ slot_fn = $$props[name === "default" ? "children" : name];
1182
+ is_interop = true;
1183
+ }
1184
+ if (slot_fn === void 0) {
1185
+ if (fallback_fn !== null) fallback_fn(anchor);
1186
+ } else slot_fn(anchor, is_interop ? () => slot_props : slot_props);
1187
+ }
1188
+ /**
1189
+ * @param {Record<string, any>} props
1190
+ * @returns {Record<string, boolean>}
1191
+ */
1192
+ function sanitize_slots(props) {
1193
+ /** @type {Record<string, boolean>} */
1194
+ const sanitized = {};
1195
+ if (props.children) sanitized.default = true;
1196
+ for (const key in props.$$slots) sanitized[key] = true;
1197
+ return sanitized;
1198
+ }
1199
+ //#endregion
1200
+ //#region ../../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.67.0/node_modules/svelte/src/internal/client/dom/blocks/snippet.js
1201
+ /** @import { Snippet } from 'svelte' */
1202
+ /** @import { TemplateNode } from '#client' */
1203
+ /** @import { Getters } from '#shared' */
1204
+ /**
1205
+ * @template {(node: TemplateNode, ...args: any[]) => void} SnippetFn
1206
+ * @param {TemplateNode} node
1207
+ * @param {() => SnippetFn | null | undefined} get_snippet
1208
+ * @param {(() => any)[]} args
1209
+ * @returns {void}
1210
+ */
1211
+ function snippet(node, get_snippet, ...args) {
1212
+ var branches = new BranchManager(node);
1213
+ block(() => {
1214
+ const snippet = get_snippet() ?? null;
1215
+ if (snippet == null) invalid_snippet();
1216
+ branches.ensure(snippet, snippet && ((anchor) => snippet(anchor, ...args)));
1217
+ }, EFFECT_TRANSPARENT);
1218
+ }
1219
+ /**
1220
+ * In development, wrap the snippet function so that it passes validation, and so that the
1221
+ * correct component context is set for ownership checks
1222
+ * @param {any} component
1223
+ * @param {(node: TemplateNode, ...args: any[]) => void} fn
1224
+ */
1225
+ function wrap_snippet(component, fn) {
1226
+ const snippet = (node, ...args) => {
1227
+ var previous_component_function = dev_current_component_function;
1228
+ set_dev_current_component_function(component);
1229
+ try {
1230
+ return fn(node, ...args);
1231
+ } finally {
1232
+ set_dev_current_component_function(previous_component_function);
1233
+ }
1234
+ };
1235
+ prevent_snippet_stringification(snippet);
1236
+ return snippet;
1237
+ }
1238
+ //#endregion
1239
+ //#region ../../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.67.0/node_modules/svelte/src/internal/client/dom/blocks/svelte-component.js
1240
+ /** @import { TemplateNode, Dom } from '#client' */
1241
+ /**
1242
+ * @template P
1243
+ * @template {(props: P) => void} C
1244
+ * @param {TemplateNode} node
1245
+ * @param {() => C} get_component
1246
+ * @param {(anchor: TemplateNode, component: C) => Dom | void} render_fn
1247
+ * @returns {void}
1248
+ */
1249
+ function component(node, get_component, render_fn) {
1250
+ /** @type {TemplateNode | undefined} */
1251
+ var hydration_start_node;
1252
+ if (hydrating) {
1253
+ hydration_start_node = hydrate_node;
1254
+ hydrate_next();
1255
+ }
1256
+ var branches = new BranchManager(node);
1257
+ block(() => {
1258
+ var component = get_component() ?? null;
1259
+ if (hydrating) {
1260
+ if (read_hydration_instruction(hydration_start_node) === "[" !== (component !== null)) {
1261
+ var anchor = skip_nodes();
1262
+ set_hydrate_node(anchor);
1263
+ branches.anchor = anchor;
1264
+ set_hydrating(false);
1265
+ branches.ensure(component, component && ((target) => render_fn(target, component)));
1266
+ set_hydrating(true);
1267
+ return;
1268
+ }
1269
+ }
1270
+ branches.ensure(component, component && ((target) => render_fn(target, component)));
1271
+ }, EFFECT_TRANSPARENT);
1272
+ }
1273
+ //#endregion
1274
+ //#region ../../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.67.0/node_modules/svelte/src/internal/client/timing.js
1275
+ /** @import { Raf } from '#client' */
1276
+ var now = () => Date.now();
1277
+ /** @type {Raf} */
1278
+ var raf = {
1279
+ tick: /** @param {any} _ */ (_) => noop(_),
1280
+ now: () => now(),
1281
+ tasks: /* @__PURE__ */ new Set()
1282
+ };
1283
+ //#endregion
1284
+ //#region ../../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.67.0/node_modules/svelte/src/internal/client/loop.js
1285
+ /** @import { TaskCallback, Task, TaskEntry } from '#client' */
1286
+ /**
1287
+ * @returns {void}
1288
+ */
1289
+ function run_tasks() {
1290
+ const now = raf.now();
1291
+ raf.tasks.forEach((task) => {
1292
+ if (!task.c(now)) {
1293
+ raf.tasks.delete(task);
1294
+ task.f();
1295
+ }
1296
+ });
1297
+ if (raf.tasks.size !== 0) raf.tick(run_tasks);
1298
+ }
1299
+ /**
1300
+ * Creates a new task that runs on each raf frame
1301
+ * until it returns a falsy value or is aborted
1302
+ * @param {TaskCallback} callback
1303
+ * @returns {Task}
1304
+ */
1305
+ function loop(callback) {
1306
+ /** @type {TaskEntry} */
1307
+ let task;
1308
+ if (raf.tasks.size === 0) raf.tick(run_tasks);
1309
+ return {
1310
+ promise: new Promise((fulfill) => {
1311
+ raf.tasks.add(task = {
1312
+ c: callback,
1313
+ f: fulfill
1314
+ });
1315
+ }),
1316
+ abort() {
1317
+ raf.tasks.delete(task);
1318
+ }
1319
+ };
1320
+ }
1321
+ //#endregion
1322
+ //#region ../../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.67.0/node_modules/svelte/src/internal/client/dom/elements/transitions.js
1323
+ /** @import { AnimateFn, Animation, AnimationConfig, EachItem, Effect, EffectNodes, TransitionFn, TransitionManager } from '#client' */
1324
+ /**
1325
+ * @param {Element} element
1326
+ * @param {'introstart' | 'introend' | 'outrostart' | 'outroend'} type
1327
+ * @returns {void}
1328
+ */
1329
+ function dispatch_event(element, type) {
1330
+ without_reactive_context(() => {
1331
+ element.dispatchEvent(new CustomEvent(type));
1332
+ });
1333
+ }
1334
+ /**
1335
+ * Converts a property to the camel-case format expected by Element.animate(), KeyframeEffect(), and KeyframeEffect.setKeyframes().
1336
+ * @param {string} style
1337
+ * @returns {string}
1338
+ */
1339
+ function css_property_to_camelcase(style) {
1340
+ if (style === "float") return "cssFloat";
1341
+ if (style === "offset") return "cssOffset";
1342
+ if (style.startsWith("--")) return style;
1343
+ const parts = style.split("-");
1344
+ if (parts.length === 1) return parts[0];
1345
+ return parts[0] + parts.slice(1).map(
1346
+ /** @param {any} word */
1347
+ (word) => word[0].toUpperCase() + word.slice(1)
1348
+ ).join("");
1349
+ }
1350
+ /**
1351
+ * @param {string} css
1352
+ * @returns {Keyframe}
1353
+ */
1354
+ function css_to_keyframe(css) {
1355
+ /** @type {Keyframe} */
1356
+ const keyframe = {};
1357
+ const parts = css.split(";");
1358
+ for (const part of parts) {
1359
+ const [property, value] = part.split(":");
1360
+ if (!property || value === void 0) break;
1361
+ const formatted_property = css_property_to_camelcase(property.trim());
1362
+ keyframe[formatted_property] = value.trim();
1363
+ }
1364
+ return keyframe;
1365
+ }
1366
+ /** @param {number} t */
1367
+ var linear = (t) => t;
1368
+ /** @type {Effect | null} */
1369
+ var animation_effect_override = null;
1370
+ /** @param {Effect | null} v */
1371
+ function set_animation_effect_override(v) {
1372
+ animation_effect_override = v;
1373
+ }
1374
+ /**
1375
+ * Called inside keyed `{#each ...}` blocks (as `$.animation(...)`). This creates an animation manager
1376
+ * and attaches it to the block, so that moves can be animated following reconciliation.
1377
+ * @template P
1378
+ * @param {Element} element
1379
+ * @param {() => AnimateFn<P | undefined>} get_fn
1380
+ * @param {(() => P) | null} get_params
1381
+ */
1382
+ function animation(element, get_fn, get_params) {
1383
+ var nodes = (animation_effect_override ?? active_effect).nodes;
1384
+ /** @type {DOMRect} */
1385
+ var from;
1386
+ /** @type {DOMRect} */
1387
+ var to;
1388
+ /** @type {Animation | undefined} */
1389
+ var animation;
1390
+ /** @type {null | { position: string, width: string, height: string, transform: string }} */
1391
+ var original_styles = null;
1392
+ nodes.a ??= {
1393
+ element,
1394
+ measure() {
1395
+ from = this.element.getBoundingClientRect();
1396
+ },
1397
+ apply() {
1398
+ animation?.abort();
1399
+ to = this.element.getBoundingClientRect();
1400
+ if (from.left !== to.left || from.right !== to.right || from.top !== to.top || from.bottom !== to.bottom) {
1401
+ const options = get_fn()(this.element, {
1402
+ from,
1403
+ to
1404
+ }, get_params?.());
1405
+ animation = animate(this.element, options, void 0, 1, () => {}, () => {
1406
+ animation?.abort();
1407
+ animation = void 0;
1408
+ });
1409
+ }
1410
+ },
1411
+ fix() {
1412
+ if (element.getAnimations().length) return;
1413
+ var { position, width, height } = getComputedStyle(element);
1414
+ if (position !== "absolute" && position !== "fixed") {
1415
+ var style = element.style;
1416
+ original_styles = {
1417
+ position: style.position,
1418
+ width: style.width,
1419
+ height: style.height,
1420
+ transform: style.transform
1421
+ };
1422
+ style.position = "absolute";
1423
+ style.width = width;
1424
+ style.height = height;
1425
+ var to = element.getBoundingClientRect();
1426
+ if (from.left !== to.left || from.top !== to.top) {
1427
+ var transform = `translate(${from.left - to.left}px, ${from.top - to.top}px)`;
1428
+ style.transform = style.transform ? `${style.transform} ${transform}` : transform;
1429
+ }
1430
+ }
1431
+ },
1432
+ unfix() {
1433
+ if (original_styles) {
1434
+ var style = element.style;
1435
+ style.position = original_styles.position;
1436
+ style.width = original_styles.width;
1437
+ style.height = original_styles.height;
1438
+ style.transform = original_styles.transform;
1439
+ }
1440
+ }
1441
+ };
1442
+ nodes.a.element = element;
1443
+ }
1444
+ /**
1445
+ * Called inside block effects as `$.transition(...)`. This creates a transition manager and
1446
+ * attaches it to the current effect — later, inside `pause_effect` and `resume_effect`, we
1447
+ * use this to create `intro` and `outro` transitions.
1448
+ * @template P
1449
+ * @param {number} flags
1450
+ * @param {HTMLElement} element
1451
+ * @param {() => TransitionFn<P | undefined>} get_fn
1452
+ * @param {(() => P) | null} get_params
1453
+ * @returns {void}
1454
+ */
1455
+ function transition(flags, element, get_fn, get_params) {
1456
+ var is_intro = (flags & 1) !== 0;
1457
+ var is_outro = (flags & 2) !== 0;
1458
+ var is_both = is_intro && is_outro;
1459
+ var is_global = (flags & 4) !== 0;
1460
+ /** @type {'in' | 'out' | 'both'} */
1461
+ var direction = is_both ? "both" : is_intro ? "in" : "out";
1462
+ /** @type {AnimationConfig | ((opts: { direction: 'in' | 'out' }) => AnimationConfig) | undefined} */
1463
+ var current_options;
1464
+ var inert = element.inert;
1465
+ /**
1466
+ * The default overflow style, stashed so we can revert changes during the transition
1467
+ * that are necessary to work around a Safari <18 bug
1468
+ * TODO 6.0 remove this, if older versions of Safari have died out enough
1469
+ */
1470
+ var overflow = element.style.overflow;
1471
+ /** @type {Animation | undefined} */
1472
+ var intro;
1473
+ /** @type {Animation | undefined} */
1474
+ var outro;
1475
+ function get_options() {
1476
+ return without_reactive_context(() => {
1477
+ return current_options ??= get_fn()(element, get_params?.() ?? {}, { direction });
1478
+ });
1479
+ }
1480
+ /** @type {TransitionManager} */
1481
+ var transition = {
1482
+ is_global,
1483
+ in() {
1484
+ element.inert = inert;
1485
+ if (!is_intro) {
1486
+ outro?.abort();
1487
+ outro?.reset?.();
1488
+ return;
1489
+ }
1490
+ if (!is_outro) intro?.abort();
1491
+ intro = animate(element, get_options(), outro, 1, () => {
1492
+ dispatch_event(element, "introstart");
1493
+ }, () => {
1494
+ dispatch_event(element, "introend");
1495
+ intro?.abort();
1496
+ intro = current_options = void 0;
1497
+ element.style.overflow = overflow;
1498
+ });
1499
+ },
1500
+ out(fn) {
1501
+ if (!is_outro) {
1502
+ fn?.();
1503
+ current_options = void 0;
1504
+ return;
1505
+ }
1506
+ element.inert = true;
1507
+ outro = animate(element, get_options(), intro, 0, () => {
1508
+ dispatch_event(element, "outrostart");
1509
+ }, () => {
1510
+ dispatch_event(element, "outroend");
1511
+ fn?.();
1512
+ });
1513
+ },
1514
+ stop: () => {
1515
+ intro?.abort();
1516
+ outro?.abort();
1517
+ }
1518
+ };
1519
+ var e = active_effect;
1520
+ (e.nodes.t ??= []).push(transition);
1521
+ if (is_intro && should_intro) {
1522
+ var run = is_global;
1523
+ if (!run) {
1524
+ var block = e.parent;
1525
+ while (block && (block.f & 65536) !== 0) while (block = block.parent) if ((block.f & 16) !== 0) break;
1526
+ run = !block || (block.f & 32768) !== 0;
1527
+ }
1528
+ if (run) effect(() => {
1529
+ untrack(() => transition.in());
1530
+ });
1531
+ }
1532
+ }
1533
+ /**
1534
+ * Animates an element, according to the provided configuration
1535
+ * @param {Element} element
1536
+ * @param {AnimationConfig | ((opts: { direction: 'in' | 'out' }) => AnimationConfig)} options
1537
+ * @param {Animation | undefined} counterpart The corresponding intro/outro to this outro/intro
1538
+ * @param {number} t2 The target `t` value — `1` for intro, `0` for outro
1539
+ * @param {(() => void)} on_begin Called just before beginning the animation
1540
+ * @param {(() => void)} on_finish Called after successfully completing the animation
1541
+ * @returns {Animation}
1542
+ */
1543
+ function animate(element, options, counterpart, t2, on_begin, on_finish) {
1544
+ var is_intro = t2 === 1;
1545
+ if (is_function(options)) {
1546
+ /** @type {Animation} */
1547
+ var a;
1548
+ var aborted = false;
1549
+ queue_micro_task(() => {
1550
+ if (aborted) return;
1551
+ a = animate(element, options({ direction: is_intro ? "in" : "out" }), counterpart, t2, on_begin, on_finish);
1552
+ });
1553
+ return {
1554
+ abort: () => {
1555
+ aborted = true;
1556
+ a?.abort();
1557
+ },
1558
+ deactivate: () => a.deactivate(),
1559
+ reset: () => a.reset(),
1560
+ t: () => a.t()
1561
+ };
1562
+ }
1563
+ counterpart?.deactivate();
1564
+ if (!options?.duration && !options?.delay) {
1565
+ on_begin();
1566
+ on_finish();
1567
+ return {
1568
+ abort: noop,
1569
+ deactivate: noop,
1570
+ reset: noop,
1571
+ t: () => t2
1572
+ };
1573
+ }
1574
+ const { delay = 0, css, tick, easing = linear } = options;
1575
+ var keyframes = [];
1576
+ if (is_intro && counterpart === void 0) {
1577
+ if (tick) tick(0, 1);
1578
+ if (css) {
1579
+ var styles = css_to_keyframe(css(0, 1));
1580
+ keyframes.push(styles, styles);
1581
+ }
1582
+ }
1583
+ var get_t = () => 1 - t2;
1584
+ var animation = element.animate(keyframes, {
1585
+ duration: delay,
1586
+ fill: "forwards"
1587
+ });
1588
+ animation.onfinish = () => {
1589
+ animation.cancel();
1590
+ on_begin();
1591
+ var t1 = counterpart?.t() ?? 1 - t2;
1592
+ counterpart?.abort();
1593
+ var delta = t2 - t1;
1594
+ var duration = options.duration * Math.abs(delta);
1595
+ var keyframes = [];
1596
+ if (duration > 0) {
1597
+ /**
1598
+ * Whether or not the CSS includes `overflow: hidden`, in which case we need to
1599
+ * add it as an inline style to work around a Safari <18 bug
1600
+ * TODO 6.0 remove this, if possible
1601
+ */
1602
+ var needs_overflow_hidden = false;
1603
+ if (css) {
1604
+ var n = Math.ceil(duration / (1e3 / 60));
1605
+ for (var i = 0; i <= n; i += 1) {
1606
+ var t = t1 + delta * easing(i / n);
1607
+ var styles = css_to_keyframe(css(t, 1 - t));
1608
+ keyframes.push(styles);
1609
+ needs_overflow_hidden ||= styles.overflow === "hidden";
1610
+ }
1611
+ }
1612
+ if (needs_overflow_hidden)
1613
+ /** @type {HTMLElement} */ element.style.overflow = "hidden";
1614
+ get_t = () => {
1615
+ var time = animation.currentTime;
1616
+ return t1 + delta * easing(time / duration);
1617
+ };
1618
+ if (tick) loop(() => {
1619
+ if (animation.playState !== "running") return false;
1620
+ var t = get_t();
1621
+ tick(t, 1 - t);
1622
+ return true;
1623
+ });
1624
+ }
1625
+ animation = element.animate(keyframes, {
1626
+ duration,
1627
+ fill: "forwards"
1628
+ });
1629
+ animation.onfinish = () => {
1630
+ get_t = () => t2;
1631
+ tick?.(t2, 1 - t2);
1632
+ on_finish();
1633
+ };
1634
+ };
1635
+ return {
1636
+ abort: () => {
1637
+ if (animation) {
1638
+ animation.cancel();
1639
+ animation.effect = null;
1640
+ animation.onfinish = noop;
1641
+ }
1642
+ },
1643
+ deactivate: () => {
1644
+ on_finish = noop;
1645
+ },
1646
+ reset: () => {
1647
+ if (t2 === 0) tick?.(1, 0);
1648
+ },
1649
+ t: () => get_t()
1650
+ };
1651
+ }
1652
+ //#endregion
1653
+ //#region ../../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.67.0/node_modules/svelte/src/internal/client/dom/blocks/svelte-element.js
1654
+ /** @import { Effect, EffectNodes, TemplateNode } from '#client' */
1655
+ /**
1656
+ * @param {Comment | Element} node
1657
+ * @param {() => string} get_tag
1658
+ * @param {boolean} is_svg
1659
+ * @param {undefined | ((element: Element, anchor: Node | null) => void)} render_fn,
1660
+ * @param {undefined | (() => string)} get_namespace
1661
+ * @param {undefined | [number, number]} location
1662
+ * @returns {void}
1663
+ */
1664
+ function element(node, get_tag, is_svg, render_fn, get_namespace, location) {
1665
+ let was_hydrating = hydrating;
1666
+ if (hydrating) hydrate_next();
1667
+ var filename = location && component_context?.function[FILENAME];
1668
+ /** @type {null | Element} */
1669
+ var element = null;
1670
+ if (hydrating && hydrate_node.nodeType === 1) {
1671
+ element = hydrate_node;
1672
+ hydrate_next();
1673
+ }
1674
+ var anchor = hydrating ? hydrate_node : node;
1675
+ /**
1676
+ * We track this so we can set it when changing the element, allowing any
1677
+ * `animate:` directive to bind itself to the correct block
1678
+ */
1679
+ var parent_effect = active_effect;
1680
+ var branches = new BranchManager(anchor, false);
1681
+ block(() => {
1682
+ const next_tag = get_tag() || null;
1683
+ var ns = get_namespace ? get_namespace() : is_svg || next_tag === "svg" ? NAMESPACE_SVG : void 0;
1684
+ if (next_tag === null) {
1685
+ branches.ensure(null, null);
1686
+ set_should_intro(true);
1687
+ return;
1688
+ }
1689
+ branches.ensure(next_tag, (anchor) => {
1690
+ if (next_tag) {
1691
+ element = hydrating ? element : create_element(next_tag, ns);
1692
+ if (location) element.__svelte_meta = {
1693
+ parent: dev_stack,
1694
+ loc: {
1695
+ file: filename,
1696
+ line: location[0],
1697
+ column: location[1]
1698
+ }
1699
+ };
1700
+ assign_nodes(element, element);
1701
+ if (render_fn) {
1702
+ if (hydrating && is_raw_text_element(next_tag)) element.append(document.createComment(""));
1703
+ var child_anchor = hydrating ? /* @__PURE__ */ get_first_child(element) : element.appendChild(create_text());
1704
+ if (hydrating) {
1705
+ if (child_anchor === null) set_hydrating(false);
1706
+ else set_hydrate_node(child_anchor);
1707
+ }
1708
+ set_animation_effect_override(parent_effect);
1709
+ render_fn(element, child_anchor);
1710
+ set_animation_effect_override(null);
1711
+ }
1712
+ /** @type {Effect & { nodes: EffectNodes }} */ active_effect.nodes.end = element;
1713
+ anchor.before(element);
1714
+ }
1715
+ if (hydrating) set_hydrate_node(anchor);
1716
+ });
1717
+ set_should_intro(true);
1718
+ return () => {
1719
+ if (next_tag) set_should_intro(false);
1720
+ };
1721
+ }, EFFECT_TRANSPARENT);
1722
+ teardown(() => {
1723
+ set_should_intro(true);
1724
+ });
1725
+ if (was_hydrating) {
1726
+ set_hydrating(true);
1727
+ set_hydrate_node(anchor);
1728
+ }
1729
+ }
1730
+ //#endregion
1731
+ //#region ../../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.67.0/node_modules/svelte/src/internal/client/dom/blocks/svelte-head.js
1732
+ /** @import { TemplateNode } from '#client' */
1733
+ /**
1734
+ * @param {string} hash
1735
+ * @param {(anchor: Node) => void} render_fn
1736
+ * @returns {void}
1737
+ */
1738
+ function head(hash, render_fn) {
1739
+ let previous_hydrate_node = null;
1740
+ let was_hydrating = hydrating;
1741
+ /** @type {Comment | Text} */
1742
+ var anchor;
1743
+ if (hydrating) {
1744
+ previous_hydrate_node = hydrate_node;
1745
+ var head_anchor = /* @__PURE__ */ get_first_child(document.head);
1746
+ while (head_anchor !== null && (head_anchor.nodeType !== 8 || head_anchor.data !== hash)) head_anchor = /* @__PURE__ */ get_next_sibling(head_anchor);
1747
+ if (head_anchor === null) set_hydrating(false);
1748
+ else {
1749
+ var start = /* @__PURE__ */ get_next_sibling(head_anchor);
1750
+ head_anchor.remove();
1751
+ set_hydrate_node(start);
1752
+ }
1753
+ }
1754
+ if (!hydrating) anchor = document.head.appendChild(create_text());
1755
+ try {
1756
+ block(() => {
1757
+ var e = branch(() => render_fn(anchor));
1758
+ e.f |= HEAD_EFFECT;
1759
+ });
1760
+ } finally {
1761
+ if (was_hydrating) {
1762
+ set_hydrating(true);
1763
+ set_hydrate_node(previous_hydrate_node);
1764
+ }
1765
+ }
1766
+ }
1767
+ //#endregion
1768
+ //#region ../../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.67.0/node_modules/svelte/src/internal/client/dom/css.js
1769
+ /**
1770
+ * @param {Node} anchor
1771
+ * @param {{ hash: string, code: string }} css
1772
+ */
1773
+ function append_styles(anchor, css) {
1774
+ effect(() => {
1775
+ var root = anchor.getRootNode();
1776
+ var target = root.host ? root : /** @type {Document} */ root.head ?? root.ownerDocument.head;
1777
+ if (!target.querySelector("#" + css.hash)) {
1778
+ const style = create_element("style");
1779
+ style.id = css.hash;
1780
+ style.textContent = css.code;
1781
+ target.appendChild(style);
1782
+ register_style(css.hash, style);
1783
+ }
1784
+ });
1785
+ }
1786
+ //#endregion
1787
+ //#region ../../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.67.0/node_modules/svelte/src/internal/client/dom/elements/actions.js
1788
+ /** @import { ActionPayload } from '#client' */
1789
+ /**
1790
+ * @template P
1791
+ * @param {Element} dom
1792
+ * @param {(dom: Element, value?: P) => ActionPayload<P>} action
1793
+ * @param {() => P} [get_value]
1794
+ * @returns {void}
1795
+ */
1796
+ function action(dom, action, get_value) {
1797
+ effect(() => {
1798
+ var payload = untrack(() => action(dom, get_value?.()) || {});
1799
+ if (get_value && payload?.update) {
1800
+ var inited = false;
1801
+ /** @type {P} */
1802
+ var prev = {};
1803
+ render_effect(() => {
1804
+ var value = get_value();
1805
+ deep_read_state(value);
1806
+ if (inited && safe_not_equal(prev, value)) {
1807
+ prev = value;
1808
+ /** @type {Function} */ payload.update(value);
1809
+ }
1810
+ });
1811
+ inited = true;
1812
+ }
1813
+ if (payload?.destroy) return () => payload.destroy();
1814
+ });
1815
+ }
1816
+ //#endregion
1817
+ //#region ../../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.67.0/node_modules/svelte/src/internal/client/dom/elements/attachments.js
1818
+ /** @import { Effect } from '#client' */
1819
+ /**
1820
+ * @param {Element} node
1821
+ * @param {() => (node: Element) => void} get_fn
1822
+ */
1823
+ function attach(node, get_fn) {
1824
+ /** @type {false | undefined | ((node: Element) => void)} */
1825
+ var fn = void 0;
1826
+ /** @type {Effect | null} */
1827
+ var e;
1828
+ managed(() => {
1829
+ if (fn !== (fn = get_fn())) {
1830
+ if (e) {
1831
+ destroy_effect(e);
1832
+ e = null;
1833
+ }
1834
+ if (fn) e = branch(() => {
1835
+ effect(() => fn(node));
1836
+ });
1837
+ }
1838
+ });
1839
+ }
1840
+ //#endregion
1841
+ //#region ../../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.67.0/node_modules/svelte/src/internal/client/dom/elements/class.js
1842
+ /**
1843
+ * @param {Element} dom
1844
+ * @param {boolean | number} is_html
1845
+ * @param {string | null} value
1846
+ * @param {string} [hash]
1847
+ * @param {Record<string, any>} [prev_classes]
1848
+ * @param {Record<string, any>} [next_classes]
1849
+ * @returns {Record<string, boolean> | undefined}
1850
+ */
1851
+ function set_class(dom, is_html, value, hash, prev_classes, next_classes) {
1852
+ var prev = dom[CLASS_CACHE];
1853
+ if (hydrating || prev !== value || prev === void 0) {
1854
+ var next_class_name = to_class(value, hash, next_classes);
1855
+ if (!hydrating || next_class_name !== dom.getAttribute("class")) {
1856
+ if (next_class_name == null) dom.removeAttribute("class");
1857
+ else if (is_html) dom.className = next_class_name;
1858
+ else dom.setAttribute("class", next_class_name);
1859
+ }
1860
+ /** @type {any} */ dom[CLASS_CACHE] = value;
1861
+ } else if (next_classes && prev_classes !== next_classes) for (var key in next_classes) {
1862
+ var is_present = !!next_classes[key];
1863
+ if (prev_classes == null || is_present !== !!prev_classes[key]) dom.classList.toggle(key, is_present);
1864
+ }
1865
+ return next_classes;
1866
+ }
1867
+ //#endregion
1868
+ //#region ../../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.67.0/node_modules/svelte/src/internal/client/dom/elements/style.js
1869
+ /**
1870
+ * @param {Element & ElementCSSInlineStyle} dom
1871
+ * @param {Record<string, any>} prev
1872
+ * @param {Record<string, any>} next
1873
+ * @param {string} [priority]
1874
+ */
1875
+ function update_styles(dom, prev = {}, next, priority) {
1876
+ for (var key in next) {
1877
+ var value = next[key];
1878
+ if (prev[key] !== value) {
1879
+ if (next[key] == null) dom.style.removeProperty(key);
1880
+ else dom.style.setProperty(key, value, priority);
1881
+ }
1882
+ }
1883
+ }
1884
+ /**
1885
+ * @param {Element & ElementCSSInlineStyle} dom
1886
+ * @param {string | null} value
1887
+ * @param {Record<string, any> | [Record<string, any>, Record<string, any>]} [prev_styles]
1888
+ * @param {Record<string, any> | [Record<string, any>, Record<string, any>]} [next_styles]
1889
+ */
1890
+ function set_style(dom, value, prev_styles, next_styles) {
1891
+ var prev = dom[STYLE_CACHE];
1892
+ if (hydrating || prev !== value) {
1893
+ var next_style_attr = to_style(value, next_styles);
1894
+ if (!hydrating || next_style_attr !== dom.getAttribute("style")) {
1895
+ if (next_style_attr == null) dom.removeAttribute("style");
1896
+ else dom.style.cssText = next_style_attr;
1897
+ }
1898
+ /** @type {any} */ dom[STYLE_CACHE] = value;
1899
+ } else if (next_styles) {
1900
+ if (Array.isArray(next_styles)) {
1901
+ update_styles(dom, prev_styles?.[0], next_styles[0]);
1902
+ update_styles(dom, prev_styles?.[1], next_styles[1], "important");
1903
+ } else update_styles(dom, prev_styles, next_styles);
1904
+ }
1905
+ return next_styles;
1906
+ }
1907
+ //#endregion
1908
+ //#region ../../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.67.0/node_modules/svelte/src/internal/client/dom/elements/bindings/select.js
1909
+ /**
1910
+ * Selects the correct option(s) (depending on whether this is a multiple select)
1911
+ * @template V
1912
+ * @param {HTMLSelectElement} select
1913
+ * @param {V} value
1914
+ * @param {boolean} mounting
1915
+ */
1916
+ function select_option(select, value, mounting = false) {
1917
+ if (select.multiple) {
1918
+ if (value == void 0) return;
1919
+ if (!is_array(value)) return select_multiple_invalid_value();
1920
+ for (var option of select.options) option.selected = value.includes(get_option_value(option));
1921
+ return;
1922
+ }
1923
+ for (option of select.options) {
1924
+ var option_value = get_option_value(option);
1925
+ if (is(option_value, value)) {
1926
+ option.selected = true;
1927
+ return;
1928
+ }
1929
+ }
1930
+ if (!mounting || value !== void 0) select.selectedIndex = -1;
1931
+ }
1932
+ /**
1933
+ * Selects the correct option(s) if `value` is given,
1934
+ * and then sets up a mutation observer to sync the
1935
+ * current selection to the dom when it changes. Such
1936
+ * changes could for example occur when options are
1937
+ * inside an `#each` block.
1938
+ * @param {HTMLSelectElement} select
1939
+ */
1940
+ function init_select(select) {
1941
+ var observer = new MutationObserver(() => {
1942
+ select_option(select, select.__value);
1943
+ });
1944
+ observer.observe(select, {
1945
+ childList: true,
1946
+ subtree: true,
1947
+ attributes: true,
1948
+ attributeFilter: ["value"]
1949
+ });
1950
+ teardown(() => {
1951
+ observer.disconnect();
1952
+ });
1953
+ }
1954
+ /**
1955
+ * @param {HTMLSelectElement} select
1956
+ * @param {() => unknown} get
1957
+ * @param {(value: unknown) => void} set
1958
+ * @returns {void}
1959
+ */
1960
+ function bind_select_value(select, get, set = get) {
1961
+ var batches = /* @__PURE__ */ new WeakSet();
1962
+ var mounting = true;
1963
+ listen_to_event_and_reset_event(select, "change", (is_reset) => {
1964
+ var query = is_reset ? "[selected]" : ":checked";
1965
+ /** @type {unknown} */
1966
+ var value;
1967
+ if (select.multiple) value = [].map.call(select.querySelectorAll(query), get_option_value);
1968
+ else {
1969
+ /** @type {HTMLOptionElement | null} */
1970
+ var selected_option = select.querySelector(query) ?? select.querySelector("option:not([disabled])");
1971
+ value = selected_option && get_option_value(selected_option);
1972
+ }
1973
+ set(value);
1974
+ select.__value = value;
1975
+ if (current_batch !== null) batches.add(current_batch);
1976
+ });
1977
+ effect(() => {
1978
+ var value = get();
1979
+ if (select === document.activeElement) {
1980
+ var batch = async_mode_flag ? previous_batch : current_batch;
1981
+ if (batches.has(batch)) return;
1982
+ }
1983
+ select_option(select, value, mounting);
1984
+ if (mounting && value === void 0) {
1985
+ /** @type {HTMLOptionElement | null} */
1986
+ var selected_option = select.querySelector(":checked");
1987
+ if (selected_option !== null) {
1988
+ value = get_option_value(selected_option);
1989
+ set(value);
1990
+ }
1991
+ }
1992
+ select.__value = value;
1993
+ mounting = false;
1994
+ });
1995
+ init_select(select);
1996
+ }
1997
+ /** @param {HTMLOptionElement} option */
1998
+ function get_option_value(option) {
1999
+ if ("__value" in option) return option.__value;
2000
+ else return option.value;
2001
+ }
2002
+ //#endregion
2003
+ //#region ../../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.67.0/node_modules/svelte/src/internal/client/dom/elements/attributes.js
2004
+ /** @import { Blocker, Effect } from '#client' */
2005
+ var CLASS = Symbol("class");
2006
+ var STYLE = Symbol("style");
2007
+ var IS_CUSTOM_ELEMENT = Symbol("is custom element");
2008
+ var IS_HTML = Symbol("is html");
2009
+ var LINK_TAG = IS_XHTML ? "link" : "LINK";
2010
+ var INPUT_TAG = IS_XHTML ? "input" : "INPUT";
2011
+ var OPTION_TAG = IS_XHTML ? "option" : "OPTION";
2012
+ var SELECT_TAG = IS_XHTML ? "select" : "SELECT";
2013
+ var PROGRESS_TAG = IS_XHTML ? "progress" : "PROGRESS";
2014
+ /**
2015
+ * The value/checked attribute in the template actually corresponds to the defaultValue property, so we need
2016
+ * to remove it upon hydration to avoid a bug when someone resets the form value.
2017
+ * @param {HTMLInputElement} input
2018
+ * @returns {void}
2019
+ */
2020
+ function remove_input_defaults(input) {
2021
+ if (!hydrating) return;
2022
+ var already_removed = false;
2023
+ var remove_defaults = () => {
2024
+ if (already_removed) return;
2025
+ already_removed = true;
2026
+ if (input.hasAttribute("value")) {
2027
+ var value = input.value;
2028
+ set_attribute(input, "value", null);
2029
+ input.value = value;
2030
+ }
2031
+ if (input.hasAttribute("checked")) {
2032
+ var checked = input.checked;
2033
+ set_attribute(input, "checked", null);
2034
+ input.checked = checked;
2035
+ }
2036
+ };
2037
+ /** @type {any} */ input[FORM_RESET_HANDLER] = remove_defaults;
2038
+ queue_micro_task(remove_defaults);
2039
+ add_form_reset_listener();
2040
+ }
2041
+ /**
2042
+ * @param {Element} element
2043
+ * @param {any} value
2044
+ */
2045
+ function set_value(element, value) {
2046
+ var attributes = get_attributes(element);
2047
+ if (attributes.value === (attributes.value = value ?? void 0) || element.value === value && (value !== 0 || element.nodeName !== PROGRESS_TAG)) return;
2048
+ element.value = value ?? "";
2049
+ }
2050
+ /**
2051
+ * @param {Element} element
2052
+ * @param {boolean} checked
2053
+ */
2054
+ function set_checked(element, checked) {
2055
+ var attributes = get_attributes(element);
2056
+ if (attributes.checked === (attributes.checked = checked ?? void 0)) return;
2057
+ element.checked = checked;
2058
+ }
2059
+ /**
2060
+ * Sets the `selected` attribute on an `option` element.
2061
+ * Not set through the property because that doesn't reflect to the DOM,
2062
+ * which means it wouldn't be taken into account when a form is reset.
2063
+ * @param {HTMLOptionElement} element
2064
+ * @param {boolean} selected
2065
+ */
2066
+ function set_selected(element, selected) {
2067
+ if (selected) {
2068
+ if (!element.hasAttribute("selected")) element.setAttribute("selected", "");
2069
+ } else element.removeAttribute("selected");
2070
+ }
2071
+ /**
2072
+ * Applies the default checked property without influencing the current checked property.
2073
+ * @param {HTMLInputElement} element
2074
+ * @param {boolean} checked
2075
+ */
2076
+ function set_default_checked(element, checked) {
2077
+ const existing_value = element.checked;
2078
+ element.defaultChecked = checked;
2079
+ element.checked = existing_value;
2080
+ }
2081
+ /**
2082
+ * Applies the default value property without influencing the current value property.
2083
+ * @param {HTMLInputElement | HTMLTextAreaElement} element
2084
+ * @param {string} value
2085
+ */
2086
+ function set_default_value(element, value) {
2087
+ const existing_value = element.value;
2088
+ element.defaultValue = value;
2089
+ element.value = existing_value;
2090
+ }
2091
+ /**
2092
+ * @param {Element} element
2093
+ * @param {string} attribute
2094
+ * @param {string | null} value
2095
+ * @param {boolean} [skip_warning]
2096
+ */
2097
+ function set_attribute(element, attribute, value, skip_warning) {
2098
+ var attributes = get_attributes(element);
2099
+ if (hydrating) {
2100
+ attributes[attribute] = element.getAttribute(attribute);
2101
+ if (attribute === "src" || attribute === "srcset" || attribute === "href" && element.nodeName === LINK_TAG) {
2102
+ if (!skip_warning) check_src_in_dev_hydration(element, attribute, value ?? "");
2103
+ return;
2104
+ }
2105
+ }
2106
+ if (attributes[attribute] === (attributes[attribute] = value)) return;
2107
+ if (attribute === "loading") element[LOADING_ATTR_SYMBOL] = value;
2108
+ if (value == null) element.removeAttribute(attribute);
2109
+ else if (typeof value !== "string" && get_setters(element).includes(attribute)) element[attribute] = value;
2110
+ else element.setAttribute(attribute, value);
2111
+ }
2112
+ /**
2113
+ * @param {Element} dom
2114
+ * @param {string} attribute
2115
+ * @param {string} value
2116
+ */
2117
+ function set_xlink_attribute(dom, attribute, value) {
2118
+ dom.setAttributeNS("http://www.w3.org/1999/xlink", attribute, value);
2119
+ }
2120
+ /**
2121
+ * @param {HTMLElement} node
2122
+ * @param {string} prop
2123
+ * @param {any} value
2124
+ */
2125
+ function set_custom_element_data(node, prop, value) {
2126
+ var previous_reaction = active_reaction;
2127
+ var previous_effect = active_effect;
2128
+ let was_hydrating = hydrating;
2129
+ if (hydrating) set_hydrating(false);
2130
+ set_active_reaction(null);
2131
+ set_active_effect(null);
2132
+ try {
2133
+ if (prop !== "style" && (setters_cache.has(node.getAttribute("is") || node.nodeName) || !customElements || customElements.get(node.getAttribute("is") || node.nodeName.toLowerCase()) ? get_setters(node).includes(prop) : value && typeof value === "object")) node[prop] = value;
2134
+ else set_attribute(node, prop, value == null ? value : String(value));
2135
+ } finally {
2136
+ set_active_reaction(previous_reaction);
2137
+ set_active_effect(previous_effect);
2138
+ if (was_hydrating) set_hydrating(true);
2139
+ }
2140
+ }
2141
+ /**
2142
+ * Spreads attributes onto a DOM element, taking into account the currently set attributes
2143
+ * @param {Element & ElementCSSInlineStyle} element
2144
+ * @param {Record<string | symbol, any> | undefined} prev
2145
+ * @param {Record<string | symbol, any>} next New attributes - this function mutates this object
2146
+ * @param {string} [css_hash]
2147
+ * @param {boolean} [should_remove_defaults]
2148
+ * @param {boolean} [skip_warning]
2149
+ * @returns {Record<string, any>}
2150
+ */
2151
+ function set_attributes(element, prev, next, css_hash, should_remove_defaults = false, skip_warning = false) {
2152
+ if (hydrating && should_remove_defaults && element.nodeName === INPUT_TAG) {
2153
+ var input = element;
2154
+ if (!((input.type === "checkbox" ? "defaultChecked" : "defaultValue") in next)) remove_input_defaults(input);
2155
+ }
2156
+ var attributes = get_attributes(element);
2157
+ var is_custom_element = attributes[IS_CUSTOM_ELEMENT];
2158
+ var preserve_attribute_case = !attributes[IS_HTML];
2159
+ let is_hydrating_custom_element = hydrating && is_custom_element;
2160
+ if (is_hydrating_custom_element) set_hydrating(false);
2161
+ var current = prev || {};
2162
+ var is_option_element = element.nodeName === OPTION_TAG;
2163
+ for (var key in prev) if (!(key in next)) next[key] = null;
2164
+ if (next.class) next.class = clsx(next.class);
2165
+ else if (css_hash || next[CLASS]) next.class = null;
2166
+ if (next[STYLE]) next.style ??= null;
2167
+ var setters = get_setters(element);
2168
+ for (const key in next) {
2169
+ let value = next[key];
2170
+ if (is_option_element && key === "value" && value == null) {
2171
+ element.value = element.__value = "";
2172
+ current[key] = value;
2173
+ continue;
2174
+ }
2175
+ if (key === "class") {
2176
+ set_class(element, element.namespaceURI === "http://www.w3.org/1999/xhtml", value, css_hash, prev?.[CLASS], next[CLASS]);
2177
+ current[key] = value;
2178
+ current[CLASS] = next[CLASS];
2179
+ continue;
2180
+ }
2181
+ if (key === "style") {
2182
+ set_style(element, value, prev?.[STYLE], next[STYLE]);
2183
+ current[key] = value;
2184
+ current[STYLE] = next[STYLE];
2185
+ continue;
2186
+ }
2187
+ var prev_value = current[key];
2188
+ if (value === prev_value && !(value === void 0 && element.hasAttribute(key))) continue;
2189
+ current[key] = value;
2190
+ var prefix = key[0] + key[1];
2191
+ if (prefix === "$$") continue;
2192
+ if (prefix === "on") {
2193
+ /** @type {{ capture?: true }} */
2194
+ const opts = {};
2195
+ const event_handle_key = "$$" + key;
2196
+ let event_name = key.slice(2);
2197
+ var is_delegated = can_delegate_event(event_name);
2198
+ if (is_capture_event(event_name)) {
2199
+ event_name = event_name.slice(0, -7);
2200
+ opts.capture = true;
2201
+ }
2202
+ if (!is_delegated && prev_value) {
2203
+ if (value != null) continue;
2204
+ element.removeEventListener(event_name, current[event_handle_key], opts);
2205
+ current[event_handle_key] = null;
2206
+ }
2207
+ if (is_delegated) {
2208
+ delegated(event_name, element, value);
2209
+ delegate([event_name]);
2210
+ } else if (value != null) {
2211
+ /**
2212
+ * @this {any}
2213
+ * @param {Event} evt
2214
+ */
2215
+ function handle(evt) {
2216
+ current[key].call(this, evt);
2217
+ }
2218
+ current[event_handle_key] = create_event(event_name, element, handle, opts);
2219
+ }
2220
+ } else if (key === "style") set_attribute(element, key, value);
2221
+ else if (key === "autofocus") autofocus(element, Boolean(value));
2222
+ else if (!is_custom_element && (key === "__value" || key === "value" && value != null)) element.value = element.__value = value;
2223
+ else if (key === "selected" && is_option_element) set_selected(element, value);
2224
+ else {
2225
+ var name = key;
2226
+ if (!preserve_attribute_case) name = normalize_attribute(name);
2227
+ var is_default = name === "defaultValue" || name === "defaultChecked";
2228
+ if (value == null && !is_custom_element && !is_default) {
2229
+ attributes[key] = null;
2230
+ if (name === "value" || name === "checked") {
2231
+ let input = element;
2232
+ const use_default = prev === void 0;
2233
+ if (name === "value") {
2234
+ let previous = input.defaultValue;
2235
+ input.removeAttribute(name);
2236
+ input.defaultValue = previous;
2237
+ input.value = input.__value = use_default ? previous : null;
2238
+ } else {
2239
+ let previous = input.defaultChecked;
2240
+ input.removeAttribute(name);
2241
+ input.defaultChecked = previous;
2242
+ input.checked = use_default ? previous : false;
2243
+ }
2244
+ } else element.removeAttribute(key);
2245
+ } else if (is_default || setters.includes(name) && (is_custom_element || typeof value !== "string")) {
2246
+ element[name] = value;
2247
+ if (name in attributes) attributes[name] = UNINITIALIZED;
2248
+ } else if (typeof value !== "function") set_attribute(element, name, value, skip_warning);
2249
+ }
2250
+ }
2251
+ if (is_hydrating_custom_element) set_hydrating(true);
2252
+ return current;
2253
+ }
2254
+ /**
2255
+ * @param {Element & ElementCSSInlineStyle} element
2256
+ * @param {(...expressions: any) => Record<string | symbol, any>} fn
2257
+ * @param {Array<() => any>} sync
2258
+ * @param {Array<() => Promise<any>>} async
2259
+ * @param {Blocker[]} blockers
2260
+ * @param {string} [css_hash]
2261
+ * @param {boolean} [should_remove_defaults]
2262
+ * @param {boolean} [skip_warning]
2263
+ */
2264
+ function attribute_effect(element, fn, sync = [], async = [], blockers = [], css_hash, should_remove_defaults = false, skip_warning = false) {
2265
+ flatten(blockers, sync, async, (values) => {
2266
+ /** @type {Record<string | symbol, any> | undefined} */
2267
+ var prev = void 0;
2268
+ /** @type {Record<symbol, Effect>} */
2269
+ var effects = {};
2270
+ var is_select = element.nodeName === SELECT_TAG;
2271
+ var inited = false;
2272
+ managed(() => {
2273
+ var next = fn(...values.map(get));
2274
+ /** @type {Record<string | symbol, any>} */
2275
+ var current = set_attributes(element, prev, next, css_hash, should_remove_defaults, skip_warning);
2276
+ if (inited && is_select && "value" in next) select_option(element, next.value);
2277
+ for (let symbol of Object.getOwnPropertySymbols(effects)) if (!next[symbol]) destroy_effect(effects[symbol]);
2278
+ for (let symbol of Object.getOwnPropertySymbols(next)) {
2279
+ var n = next[symbol];
2280
+ if (symbol.description === "@attach" && (!prev || n !== prev[symbol])) {
2281
+ if (effects[symbol]) destroy_effect(effects[symbol]);
2282
+ effects[symbol] = branch(() => attach(element, () => n));
2283
+ }
2284
+ current[symbol] = n;
2285
+ }
2286
+ prev = current;
2287
+ });
2288
+ if (is_select) {
2289
+ var select = element;
2290
+ effect(() => {
2291
+ select_option(
2292
+ select,
2293
+ /** @type {Record<string | symbol, any>} */
2294
+ prev.value,
2295
+ true
2296
+ );
2297
+ init_select(select);
2298
+ });
2299
+ }
2300
+ inited = true;
2301
+ });
2302
+ }
2303
+ /**
2304
+ *
2305
+ * @param {Element} element
2306
+ */
2307
+ function get_attributes(element) {
2308
+ return element[ATTRIBUTES_CACHE] ??= {
2309
+ [IS_CUSTOM_ELEMENT]: element.nodeName.includes("-"),
2310
+ [IS_HTML]: element.namespaceURI === NAMESPACE_HTML
2311
+ };
2312
+ }
2313
+ /** @type {Map<string, string[]>} */
2314
+ var setters_cache = /* @__PURE__ */ new Map();
2315
+ /** @param {Element} element */
2316
+ function get_setters(element) {
2317
+ var cache_key = element.getAttribute("is") || element.nodeName;
2318
+ var setters = setters_cache.get(cache_key);
2319
+ if (setters) return setters;
2320
+ setters_cache.set(cache_key, setters = []);
2321
+ var descriptors;
2322
+ var proto = element;
2323
+ var element_proto = Element.prototype;
2324
+ while (element_proto !== proto) {
2325
+ descriptors = get_descriptors(proto);
2326
+ for (var key in descriptors) if (descriptors[key].set && key !== "innerHTML" && key !== "textContent" && key !== "innerText") setters.push(key);
2327
+ proto = get_prototype_of(proto);
2328
+ }
2329
+ return setters;
2330
+ }
2331
+ /**
2332
+ * @param {any} element
2333
+ * @param {string} attribute
2334
+ * @param {string} value
2335
+ */
2336
+ function check_src_in_dev_hydration(element, attribute, value) {
2337
+ if (attribute === "srcset" && srcset_url_equal(element, value)) return;
2338
+ if (src_url_equal(element.getAttribute(attribute) ?? "", value)) return;
2339
+ hydration_attribute_changed(attribute, element.outerHTML.replace(element.innerHTML, element.innerHTML && "..."), String(value));
2340
+ }
2341
+ /**
2342
+ * @param {string} element_src
2343
+ * @param {string} url
2344
+ * @returns {boolean}
2345
+ */
2346
+ function src_url_equal(element_src, url) {
2347
+ if (element_src === url) return true;
2348
+ return new URL(element_src, document.baseURI).href === new URL(url, document.baseURI).href;
2349
+ }
2350
+ /** @param {string} srcset */
2351
+ function split_srcset(srcset) {
2352
+ return srcset.split(",").map((src) => src.trim().split(" ").filter(Boolean));
2353
+ }
2354
+ /**
2355
+ * @param {HTMLSourceElement | HTMLImageElement} element
2356
+ * @param {string} srcset
2357
+ * @returns {boolean}
2358
+ */
2359
+ function srcset_url_equal(element, srcset) {
2360
+ var element_urls = split_srcset(element.srcset);
2361
+ var urls = split_srcset(srcset);
2362
+ return urls.length === element_urls.length && urls.every(([url, width], i) => width === element_urls[i][1] && (src_url_equal(element_urls[i][0], url) || src_url_equal(url, element_urls[i][0])));
2363
+ }
2364
+ //#endregion
2365
+ //#region ../../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.67.0/node_modules/svelte/src/internal/client/dom/elements/customizable-select.js
2366
+ /** @type {boolean | null} */
2367
+ var supported = null;
2368
+ /**
2369
+ * Checks if the browser supports rich HTML content inside `<option>` elements.
2370
+ * Modern browsers preserve HTML elements inside options, while older browsers
2371
+ * strip them during parsing, leaving only text content.
2372
+ * @returns {boolean}
2373
+ */
2374
+ function is_supported() {
2375
+ if (supported === null) {
2376
+ var select = create_element("select");
2377
+ select.innerHTML = create_trusted_html("<option><span>t</span></option>");
2378
+ supported = select.firstChild?.firstChild?.nodeType === 1;
2379
+ }
2380
+ return supported;
2381
+ }
2382
+ /**
2383
+ *
2384
+ * @param {HTMLElement} element
2385
+ * @param {(new_element: HTMLElement) => void} update_element
2386
+ */
2387
+ function selectedcontent(element, update_element) {
2388
+ if (!is_supported()) return;
2389
+ attach(element, () => () => {
2390
+ const select = element.closest("select");
2391
+ if (!select) return;
2392
+ const observer = new MutationObserver((entries) => {
2393
+ var selected = false;
2394
+ for (const entry of entries) {
2395
+ if (entry.target === element) return;
2396
+ selected ||= !!entry.target.parentElement?.closest("option")?.selected;
2397
+ }
2398
+ if (selected) {
2399
+ element.replaceWith(element = element.cloneNode(true));
2400
+ update_element(element);
2401
+ }
2402
+ });
2403
+ observer.observe(select, {
2404
+ childList: true,
2405
+ characterData: true,
2406
+ subtree: true
2407
+ });
2408
+ return () => {
2409
+ observer.disconnect();
2410
+ };
2411
+ });
2412
+ }
2413
+ /**
2414
+ * Handles rich HTML content inside `<option>`, `<optgroup>`, or `<select>` elements with browser-specific branching.
2415
+ * Modern browsers preserve HTML inside options, while older browsers strip it to text only.
2416
+ *
2417
+ * @param {HTMLOptionElement | HTMLOptGroupElement | HTMLSelectElement} element The element to process
2418
+ * @param {() => void} rich_fn Function to process rich HTML content (modern browsers)
2419
+ */
2420
+ function customizable_select(element, rich_fn) {
2421
+ var was_hydrating = hydrating;
2422
+ if (!is_supported()) {
2423
+ set_hydrating(false);
2424
+ element.textContent = "";
2425
+ element.append(create_comment(""));
2426
+ }
2427
+ try {
2428
+ rich_fn();
2429
+ } finally {
2430
+ if (was_hydrating) {
2431
+ if (hydrating) reset(element);
2432
+ else {
2433
+ set_hydrating(true);
2434
+ set_hydrate_node(element);
2435
+ }
2436
+ }
2437
+ }
2438
+ }
2439
+ //#endregion
2440
+ //#region ../../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.67.0/node_modules/svelte/src/internal/client/dom/elements/bindings/document.js
2441
+ /**
2442
+ * @param {(activeElement: Element | null) => void} update
2443
+ * @returns {void}
2444
+ */
2445
+ function bind_active_element(update) {
2446
+ listen(document, ["focusin", "focusout"], (event) => {
2447
+ if (event && event.type === "focusout" && event.relatedTarget) return;
2448
+ update(document.activeElement);
2449
+ });
2450
+ }
2451
+ //#endregion
2452
+ //#region ../../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.67.0/node_modules/svelte/src/internal/client/dom/elements/bindings/input.js
2453
+ /** @import { Batch } from '../../../reactivity/batch.js' */
2454
+ /**
2455
+ * @param {HTMLInputElement} input
2456
+ * @param {() => unknown} get
2457
+ * @param {(value: unknown) => void} set
2458
+ * @returns {void}
2459
+ */
2460
+ function bind_value(input, get, set = get) {
2461
+ var batches = /* @__PURE__ */ new WeakSet();
2462
+ listen_to_event_and_reset_event(input, "input", async (is_reset) => {
2463
+ if (input.type === "checkbox") bind_invalid_checkbox_value();
2464
+ /** @type {any} */
2465
+ var value = is_reset ? input.defaultValue : input.value;
2466
+ value = is_numberlike_input(input) ? to_number(value) : value;
2467
+ set(value);
2468
+ if (current_batch !== null) batches.add(current_batch);
2469
+ await tick();
2470
+ if (value !== (value = get())) {
2471
+ var start = input.selectionStart;
2472
+ var end = input.selectionEnd;
2473
+ var length = input.value.length;
2474
+ input.value = value ?? "";
2475
+ if (end !== null) {
2476
+ var new_length = input.value.length;
2477
+ if (start === end && end === length && new_length > length) {
2478
+ input.selectionStart = new_length;
2479
+ input.selectionEnd = new_length;
2480
+ } else {
2481
+ input.selectionStart = start;
2482
+ input.selectionEnd = Math.min(end, new_length);
2483
+ }
2484
+ }
2485
+ }
2486
+ });
2487
+ if (hydrating && input.defaultValue !== input.value || untrack(get) == null && input.value) {
2488
+ set(is_numberlike_input(input) ? to_number(input.value) : input.value);
2489
+ if (current_batch !== null) batches.add(current_batch);
2490
+ }
2491
+ render_effect(() => {
2492
+ if (input.type === "checkbox") bind_invalid_checkbox_value();
2493
+ var value = get();
2494
+ if (input === document.activeElement) {
2495
+ var batch = async_mode_flag ? previous_batch : current_batch;
2496
+ if (batches.has(batch)) return;
2497
+ }
2498
+ if (is_numberlike_input(input) && value === to_number(input.value)) return;
2499
+ if (input.type === "date" && !value && !input.value) return;
2500
+ if (value !== input.value) input.value = value ?? "";
2501
+ });
2502
+ }
2503
+ /** @type {Set<HTMLInputElement[]>} */
2504
+ var pending = /* @__PURE__ */ new Set();
2505
+ /**
2506
+ * @param {HTMLInputElement[]} inputs
2507
+ * @param {null | [number]} group_index
2508
+ * @param {HTMLInputElement} input
2509
+ * @param {() => unknown} get
2510
+ * @param {(value: unknown) => void} set
2511
+ * @returns {void}
2512
+ */
2513
+ function bind_group(inputs, group_index, input, get, set = get) {
2514
+ var is_checkbox = input.getAttribute("type") === "checkbox";
2515
+ var binding_group = inputs;
2516
+ let hydration_mismatch = false;
2517
+ if (group_index !== null) for (var index of group_index) binding_group = binding_group[index] ??= [];
2518
+ binding_group.push(input);
2519
+ listen_to_event_and_reset_event(input, "change", () => {
2520
+ var value = input.__value;
2521
+ if (is_checkbox) value = get_binding_group_value(binding_group, value, input.checked);
2522
+ set(value);
2523
+ }, () => set(is_checkbox ? [] : null));
2524
+ render_effect(() => {
2525
+ var value = get();
2526
+ if (hydrating && input.defaultChecked !== input.checked) {
2527
+ hydration_mismatch = true;
2528
+ return;
2529
+ }
2530
+ if (is_checkbox) {
2531
+ value = value || [];
2532
+ input.checked = value.includes(input.__value);
2533
+ } else input.checked = is(input.__value, value);
2534
+ });
2535
+ teardown(() => {
2536
+ var index = binding_group.indexOf(input);
2537
+ if (index !== -1) binding_group.splice(index, 1);
2538
+ });
2539
+ if (!pending.has(binding_group)) {
2540
+ pending.add(binding_group);
2541
+ queue_micro_task(() => {
2542
+ binding_group.sort((a, b) => a.compareDocumentPosition(b) === 4 ? -1 : 1);
2543
+ pending.delete(binding_group);
2544
+ });
2545
+ }
2546
+ queue_micro_task(() => {
2547
+ if (hydration_mismatch) {
2548
+ var value;
2549
+ if (is_checkbox) value = get_binding_group_value(binding_group, value, input.checked);
2550
+ else value = binding_group.find((input) => input.checked)?.__value;
2551
+ set(value);
2552
+ }
2553
+ });
2554
+ }
2555
+ /**
2556
+ * @param {HTMLInputElement} input
2557
+ * @param {() => unknown} get
2558
+ * @param {(value: unknown) => void} set
2559
+ * @returns {void}
2560
+ */
2561
+ function bind_checked(input, get, set = get) {
2562
+ listen_to_event_and_reset_event(input, "change", (is_reset) => {
2563
+ set(is_reset ? input.defaultChecked : input.checked);
2564
+ });
2565
+ if (hydrating && input.defaultChecked !== input.checked || untrack(get) == null) set(input.checked);
2566
+ render_effect(() => {
2567
+ var value = get();
2568
+ input.checked = Boolean(value);
2569
+ });
2570
+ }
2571
+ /**
2572
+ * @template V
2573
+ * @param {Array<HTMLInputElement>} group
2574
+ * @param {V} __value
2575
+ * @param {boolean} checked
2576
+ * @returns {V[]}
2577
+ */
2578
+ function get_binding_group_value(group, __value, checked) {
2579
+ /** @type {Set<V>} */
2580
+ var value = /* @__PURE__ */ new Set();
2581
+ for (var i = 0; i < group.length; i += 1) if (group[i].checked) value.add(group[i].__value);
2582
+ if (!checked) value.delete(__value);
2583
+ return Array.from(value);
2584
+ }
2585
+ /**
2586
+ * @param {HTMLInputElement} input
2587
+ */
2588
+ function is_numberlike_input(input) {
2589
+ var type = input.type;
2590
+ return type === "number" || type === "range";
2591
+ }
2592
+ /**
2593
+ * @param {string} value
2594
+ */
2595
+ function to_number(value) {
2596
+ return value === "" ? null : +value;
2597
+ }
2598
+ /**
2599
+ * @param {HTMLInputElement} input
2600
+ * @param {() => FileList | null} get
2601
+ * @param {(value: FileList | null) => void} set
2602
+ */
2603
+ function bind_files(input, get, set = get) {
2604
+ listen_to_event_and_reset_event(input, "change", () => {
2605
+ set(input.files);
2606
+ });
2607
+ if (hydrating && input.files) set(input.files);
2608
+ render_effect(() => {
2609
+ input.files = get();
2610
+ });
2611
+ }
2612
+ //#endregion
2613
+ //#region ../../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.67.0/node_modules/svelte/src/internal/client/dom/elements/bindings/media.js
2614
+ /** @param {TimeRanges} ranges */
2615
+ function time_ranges_to_array(ranges) {
2616
+ var array = [];
2617
+ for (var i = 0; i < ranges.length; i += 1) array.push({
2618
+ start: ranges.start(i),
2619
+ end: ranges.end(i)
2620
+ });
2621
+ return array;
2622
+ }
2623
+ /**
2624
+ * @param {HTMLVideoElement | HTMLAudioElement} media
2625
+ * @param {() => number | undefined} get
2626
+ * @param {(value: number) => void} set
2627
+ * @returns {void}
2628
+ */
2629
+ function bind_current_time(media, get, set = get) {
2630
+ /** @type {number} */
2631
+ var raf_id;
2632
+ /** @type {number} */
2633
+ var value;
2634
+ var callback = () => {
2635
+ cancelAnimationFrame(raf_id);
2636
+ if (!media.paused) raf_id = requestAnimationFrame(callback);
2637
+ var next_value = media.currentTime;
2638
+ if (value !== next_value) set(value = next_value);
2639
+ };
2640
+ raf_id = requestAnimationFrame(callback);
2641
+ media.addEventListener("timeupdate", callback);
2642
+ render_effect(() => {
2643
+ var next_value = Number(get());
2644
+ if (value !== next_value && !isNaN(next_value)) media.currentTime = value = next_value;
2645
+ });
2646
+ teardown(() => {
2647
+ cancelAnimationFrame(raf_id);
2648
+ media.removeEventListener("timeupdate", callback);
2649
+ });
2650
+ }
2651
+ /**
2652
+ * @param {HTMLVideoElement | HTMLAudioElement} media
2653
+ * @param {(array: Array<{ start: number; end: number }>) => void} set
2654
+ */
2655
+ function bind_buffered(media, set) {
2656
+ /** @type {{ start: number; end: number; }[]} */
2657
+ var current;
2658
+ listen(media, [
2659
+ "loadedmetadata",
2660
+ "progress",
2661
+ "timeupdate",
2662
+ "seeking"
2663
+ ], () => {
2664
+ var ranges = media.buffered;
2665
+ if (!current || current.length !== ranges.length || current.some((range, i) => ranges.start(i) !== range.start || ranges.end(i) !== range.end)) {
2666
+ current = time_ranges_to_array(ranges);
2667
+ set(current);
2668
+ }
2669
+ });
2670
+ }
2671
+ /**
2672
+ * @param {HTMLVideoElement | HTMLAudioElement} media
2673
+ * @param {(array: Array<{ start: number; end: number }>) => void} set
2674
+ */
2675
+ function bind_seekable(media, set) {
2676
+ listen(media, ["loadedmetadata"], () => set(time_ranges_to_array(media.seekable)));
2677
+ }
2678
+ /**
2679
+ * @param {HTMLVideoElement | HTMLAudioElement} media
2680
+ * @param {(array: Array<{ start: number; end: number }>) => void} set
2681
+ */
2682
+ function bind_played(media, set) {
2683
+ listen(media, ["timeupdate"], () => set(time_ranges_to_array(media.played)));
2684
+ }
2685
+ /**
2686
+ * @param {HTMLVideoElement | HTMLAudioElement} media
2687
+ * @param {(seeking: boolean) => void} set
2688
+ */
2689
+ function bind_seeking(media, set) {
2690
+ listen(media, ["seeking", "seeked"], () => set(media.seeking));
2691
+ }
2692
+ /**
2693
+ * @param {HTMLVideoElement | HTMLAudioElement} media
2694
+ * @param {(seeking: boolean) => void} set
2695
+ */
2696
+ function bind_ended(media, set) {
2697
+ listen(media, ["timeupdate", "ended"], () => set(media.ended));
2698
+ }
2699
+ /**
2700
+ * @param {HTMLVideoElement | HTMLAudioElement} media
2701
+ * @param {(ready_state: number) => void} set
2702
+ */
2703
+ function bind_ready_state(media, set) {
2704
+ listen(media, [
2705
+ "loadedmetadata",
2706
+ "loadeddata",
2707
+ "canplay",
2708
+ "canplaythrough",
2709
+ "playing",
2710
+ "waiting",
2711
+ "emptied"
2712
+ ], () => set(media.readyState));
2713
+ }
2714
+ /**
2715
+ * @param {HTMLVideoElement | HTMLAudioElement} media
2716
+ * @param {() => number | undefined} get
2717
+ * @param {(playback_rate: number) => void} set
2718
+ */
2719
+ function bind_playback_rate(media, get, set = get) {
2720
+ effect(() => {
2721
+ var value = Number(get());
2722
+ if (value !== media.playbackRate && !isNaN(value)) media.playbackRate = value;
2723
+ });
2724
+ effect(() => {
2725
+ listen(media, ["ratechange"], () => {
2726
+ set(media.playbackRate);
2727
+ });
2728
+ });
2729
+ }
2730
+ /**
2731
+ * @param {HTMLVideoElement | HTMLAudioElement} media
2732
+ * @param {() => boolean | undefined} get
2733
+ * @param {(paused: boolean) => void} set
2734
+ */
2735
+ function bind_paused(media, get, set = get) {
2736
+ var paused = get();
2737
+ var update = () => {
2738
+ if (paused !== media.paused) set(paused = media.paused);
2739
+ };
2740
+ listen(media, [
2741
+ "play",
2742
+ "pause",
2743
+ "canplay"
2744
+ ], update, paused == null);
2745
+ effect(() => {
2746
+ if ((paused = !!get()) !== media.paused) {
2747
+ if (paused) media.pause();
2748
+ else media.play().catch((error) => {
2749
+ set(paused = true);
2750
+ throw error;
2751
+ });
2752
+ }
2753
+ });
2754
+ }
2755
+ /**
2756
+ * @param {HTMLVideoElement | HTMLAudioElement} media
2757
+ * @param {() => number | undefined} get
2758
+ * @param {(volume: number) => void} set
2759
+ */
2760
+ function bind_volume(media, get, set = get) {
2761
+ var callback = () => {
2762
+ set(media.volume);
2763
+ };
2764
+ if (get() == null) callback();
2765
+ listen(media, ["volumechange"], callback, false);
2766
+ render_effect(() => {
2767
+ var value = Number(get());
2768
+ if (value !== media.volume && !isNaN(value)) media.volume = value;
2769
+ });
2770
+ }
2771
+ /**
2772
+ * @param {HTMLVideoElement | HTMLAudioElement} media
2773
+ * @param {() => boolean | undefined} get
2774
+ * @param {(muted: boolean) => void} set
2775
+ */
2776
+ function bind_muted(media, get, set = get) {
2777
+ var callback = () => {
2778
+ set(media.muted);
2779
+ };
2780
+ if (get() == null) callback();
2781
+ listen(media, ["volumechange"], callback, false);
2782
+ render_effect(() => {
2783
+ var value = !!get();
2784
+ if (media.muted !== value) media.muted = value;
2785
+ });
2786
+ }
2787
+ //#endregion
2788
+ //#region ../../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.67.0/node_modules/svelte/src/internal/client/dom/elements/bindings/navigator.js
2789
+ /**
2790
+ * @param {(online: boolean) => void} update
2791
+ * @returns {void}
2792
+ */
2793
+ function bind_online(update) {
2794
+ listen(window, ["online", "offline"], () => {
2795
+ update(navigator.onLine);
2796
+ });
2797
+ }
2798
+ //#endregion
2799
+ //#region ../../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.67.0/node_modules/svelte/src/internal/client/dom/elements/bindings/props.js
2800
+ /**
2801
+ * Makes an `export`ed (non-prop) variable available on the `$$props` object
2802
+ * so that consumers can do `bind:x` on the component.
2803
+ * @template V
2804
+ * @param {Record<string, unknown>} props
2805
+ * @param {string} prop
2806
+ * @param {V} value
2807
+ * @returns {void}
2808
+ */
2809
+ function bind_prop(props, prop, value) {
2810
+ var desc = get_descriptor(props, prop);
2811
+ if (desc && desc.set) {
2812
+ props[prop] = value;
2813
+ teardown(() => {
2814
+ props[prop] = null;
2815
+ });
2816
+ }
2817
+ }
2818
+ //#endregion
2819
+ //#region ../../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.67.0/node_modules/svelte/src/internal/client/dom/elements/bindings/size.js
2820
+ /**
2821
+ * We create one listener for all elements
2822
+ * @see {@link https://groups.google.com/a/chromium.org/g/blink-dev/c/z6ienONUb5A/m/F5-VcUZtBAAJ Explanation}
2823
+ */
2824
+ var ResizeObserverSingleton = class ResizeObserverSingleton {
2825
+ /** */
2826
+ #listeners = /* @__PURE__ */ new WeakMap();
2827
+ /** @type {ResizeObserver | undefined} */
2828
+ #observer;
2829
+ /** @type {ResizeObserverOptions} */
2830
+ #options;
2831
+ /** @static */
2832
+ static entries = /* @__PURE__ */ new WeakMap();
2833
+ /** @param {ResizeObserverOptions} options */
2834
+ constructor(options) {
2835
+ this.#options = options;
2836
+ }
2837
+ /**
2838
+ * @param {Element} element
2839
+ * @param {(entry: ResizeObserverEntry) => any} listener
2840
+ */
2841
+ observe(element, listener) {
2842
+ var listeners = this.#listeners.get(element) || /* @__PURE__ */ new Set();
2843
+ listeners.add(listener);
2844
+ this.#listeners.set(element, listeners);
2845
+ this.#getObserver().observe(element, this.#options);
2846
+ return () => {
2847
+ var listeners = this.#listeners.get(element);
2848
+ listeners.delete(listener);
2849
+ if (listeners.size === 0) {
2850
+ this.#listeners.delete(element);
2851
+ /** @type {ResizeObserver} */ this.#observer.unobserve(element);
2852
+ }
2853
+ };
2854
+ }
2855
+ #getObserver() {
2856
+ return this.#observer ?? (this.#observer = new ResizeObserver(
2857
+ /** @param {any} entries */
2858
+ (entries) => {
2859
+ for (var entry of entries) {
2860
+ ResizeObserverSingleton.entries.set(entry.target, entry);
2861
+ for (var listener of this.#listeners.get(entry.target) || []) listener(entry);
2862
+ }
2863
+ }
2864
+ ));
2865
+ }
2866
+ };
2867
+ var resize_observer_content_box = /* @__PURE__ */ new ResizeObserverSingleton({ box: "content-box" });
2868
+ var resize_observer_border_box = /* @__PURE__ */ new ResizeObserverSingleton({ box: "border-box" });
2869
+ var resize_observer_device_pixel_content_box = /* @__PURE__ */ new ResizeObserverSingleton({ box: "device-pixel-content-box" });
2870
+ /**
2871
+ * @param {Element} element
2872
+ * @param {'contentRect' | 'contentBoxSize' | 'borderBoxSize' | 'devicePixelContentBoxSize'} type
2873
+ * @param {(entry: keyof ResizeObserverEntry) => void} set
2874
+ */
2875
+ function bind_resize_observer(element, type, set) {
2876
+ var unsub = (type === "contentRect" || type === "contentBoxSize" ? resize_observer_content_box : type === "borderBoxSize" ? resize_observer_border_box : resize_observer_device_pixel_content_box).observe(
2877
+ element,
2878
+ /** @param {any} entry */
2879
+ (entry) => set(entry[type])
2880
+ );
2881
+ teardown(unsub);
2882
+ }
2883
+ /**
2884
+ * @param {HTMLElement} element
2885
+ * @param {'clientWidth' | 'clientHeight' | 'offsetWidth' | 'offsetHeight'} type
2886
+ * @param {(size: number) => void} set
2887
+ */
2888
+ function bind_element_size(element, type, set) {
2889
+ var unsub = resize_observer_border_box.observe(element, () => set(element[type]));
2890
+ effect(() => {
2891
+ untrack(() => set(element[type]));
2892
+ return unsub;
2893
+ });
2894
+ }
2895
+ //#endregion
2896
+ //#region ../../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.67.0/node_modules/svelte/src/internal/client/dom/elements/bindings/this.js
2897
+ /** @import { ComponentContext, Effect } from '#client' */
2898
+ /**
2899
+ * @param {any} bound_value
2900
+ * @param {Element} element_or_component
2901
+ * @returns {boolean}
2902
+ */
2903
+ function is_bound_this(bound_value, element_or_component) {
2904
+ return bound_value === element_or_component || bound_value?.[STATE_SYMBOL] === element_or_component;
2905
+ }
2906
+ /**
2907
+ * @param {any} element_or_component
2908
+ * @param {(value: unknown, ...parts: unknown[]) => void} update
2909
+ * @param {(...parts: unknown[]) => unknown} get_value
2910
+ * @param {() => unknown[]} [get_parts] Set if the this binding is used inside an each block,
2911
+ * returns all the parts of the each block context that are used in the expression
2912
+ * @returns {void}
2913
+ */
2914
+ function bind_this(element_or_component = {}, update, get_value, get_parts) {
2915
+ var component_effect = component_context.r;
2916
+ var parent = active_effect;
2917
+ effect(() => {
2918
+ /** @type {unknown[]} */
2919
+ var old_parts;
2920
+ /** @type {unknown[]} */
2921
+ var parts;
2922
+ render_effect(() => {
2923
+ old_parts = parts;
2924
+ parts = get_parts?.() || [];
2925
+ untrack(() => {
2926
+ if (!is_bound_this(get_value(...parts), element_or_component)) {
2927
+ update(element_or_component, ...parts);
2928
+ if (old_parts && is_bound_this(get_value(...old_parts), element_or_component)) update(null, ...old_parts);
2929
+ }
2930
+ });
2931
+ });
2932
+ return () => {
2933
+ let p = parent;
2934
+ while (p !== component_effect && p.parent !== null && p.parent.f & 33554432) p = p.parent;
2935
+ const teardown = () => {
2936
+ if (parts && is_bound_this(get_value(...parts), element_or_component)) update(null, ...parts);
2937
+ };
2938
+ const original_teardown = p.teardown;
2939
+ p.teardown = () => {
2940
+ teardown();
2941
+ original_teardown?.();
2942
+ };
2943
+ };
2944
+ });
2945
+ return element_or_component;
2946
+ }
2947
+ //#endregion
2948
+ //#region ../../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.67.0/node_modules/svelte/src/internal/client/dom/elements/bindings/universal.js
2949
+ /**
2950
+ * @param {'innerHTML' | 'textContent' | 'innerText'} property
2951
+ * @param {HTMLElement} element
2952
+ * @param {() => unknown} get
2953
+ * @param {(value: unknown) => void} set
2954
+ * @returns {void}
2955
+ */
2956
+ function bind_content_editable(property, element, get, set = get) {
2957
+ element.addEventListener("input", () => {
2958
+ set(element[property]);
2959
+ });
2960
+ render_effect(() => {
2961
+ var value = get();
2962
+ if (element[property] !== value) {
2963
+ if (value == null) {
2964
+ var non_null_value = element[property];
2965
+ set(non_null_value);
2966
+ } else element[property] = value + "";
2967
+ }
2968
+ });
2969
+ }
2970
+ /**
2971
+ * @param {string} property
2972
+ * @param {string} event_name
2973
+ * @param {Element} element
2974
+ * @param {(value: unknown) => void} set
2975
+ * @param {() => unknown} [get]
2976
+ * @returns {void}
2977
+ */
2978
+ function bind_property(property, event_name, element, set, get) {
2979
+ var handler = () => {
2980
+ set(element[property]);
2981
+ };
2982
+ element.addEventListener(event_name, handler);
2983
+ if (get) render_effect(() => {
2984
+ element[property] = get();
2985
+ });
2986
+ else handler();
2987
+ if (element === document.body || element === window || element === document) teardown(() => {
2988
+ element.removeEventListener(event_name, handler);
2989
+ });
2990
+ }
2991
+ /**
2992
+ * @param {HTMLElement} element
2993
+ * @param {(value: unknown) => void} set
2994
+ * @returns {void}
2995
+ */
2996
+ function bind_focused(element, set) {
2997
+ listen(element, ["focus", "blur"], () => {
2998
+ set(element === document.activeElement);
2999
+ });
3000
+ }
3001
+ //#endregion
3002
+ //#region ../../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.67.0/node_modules/svelte/src/internal/client/dom/elements/bindings/window.js
3003
+ /**
3004
+ * @param {'x' | 'y'} type
3005
+ * @param {() => number} get
3006
+ * @param {(value: number) => void} set
3007
+ * @returns {void}
3008
+ */
3009
+ function bind_window_scroll(type, get, set = get) {
3010
+ var is_scrolling_x = type === "x";
3011
+ var target_handler = () => without_reactive_context(() => {
3012
+ scrolling = true;
3013
+ clearTimeout(timeout);
3014
+ timeout = setTimeout(clear, 100);
3015
+ set(window[is_scrolling_x ? "scrollX" : "scrollY"]);
3016
+ });
3017
+ addEventListener("scroll", target_handler, { passive: true });
3018
+ var scrolling = false;
3019
+ /** @type {ReturnType<typeof setTimeout>} */
3020
+ var timeout;
3021
+ var clear = () => {
3022
+ scrolling = false;
3023
+ };
3024
+ var first = true;
3025
+ render_effect(() => {
3026
+ var latest_value = get();
3027
+ if (first) first = false;
3028
+ else if (!scrolling && latest_value != null) {
3029
+ scrolling = true;
3030
+ clearTimeout(timeout);
3031
+ if (is_scrolling_x) scrollTo(latest_value, window.scrollY);
3032
+ else scrollTo(window.scrollX, latest_value);
3033
+ timeout = setTimeout(clear, 100);
3034
+ }
3035
+ });
3036
+ effect(target_handler);
3037
+ teardown(() => {
3038
+ removeEventListener("scroll", target_handler);
3039
+ });
3040
+ }
3041
+ /**
3042
+ * @param {'innerWidth' | 'innerHeight' | 'outerWidth' | 'outerHeight'} type
3043
+ * @param {(size: number) => void} set
3044
+ */
3045
+ function bind_window_size(type, set) {
3046
+ listen(window, ["resize"], () => without_reactive_context(() => set(window[type])));
3047
+ }
3048
+ //#endregion
3049
+ //#region ../../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.67.0/node_modules/svelte/src/internal/client/dom/legacy/lifecycle.js
3050
+ /** @import { ComponentContextLegacy } from '#client' */
3051
+ /**
3052
+ * Legacy-mode only: Call `onMount` callbacks and set up `beforeUpdate`/`afterUpdate` effects
3053
+ * @param {boolean} [immutable]
3054
+ */
3055
+ function init(immutable = false) {
3056
+ const context = component_context;
3057
+ const callbacks = context.l.u;
3058
+ if (!callbacks) return;
3059
+ let props = () => deep_read_state(context.s);
3060
+ if (immutable) {
3061
+ let version = 0;
3062
+ let prev = {};
3063
+ const d = /* @__PURE__ */ derived(() => {
3064
+ let changed = false;
3065
+ const props = context.s;
3066
+ for (const key in props) if (props[key] !== prev[key]) {
3067
+ prev[key] = props[key];
3068
+ changed = true;
3069
+ }
3070
+ if (changed) version++;
3071
+ return version;
3072
+ });
3073
+ props = () => get(d);
3074
+ }
3075
+ if (callbacks.b.length) user_pre_effect(() => {
3076
+ observe_all(context, props);
3077
+ run_all(callbacks.b);
3078
+ });
3079
+ user_effect(() => {
3080
+ const fns = untrack(() => callbacks.m.map(run));
3081
+ return () => {
3082
+ for (const fn of fns) if (typeof fn === "function") fn();
3083
+ };
3084
+ });
3085
+ if (callbacks.a.length) user_effect(() => {
3086
+ observe_all(context, props);
3087
+ run_all(callbacks.a);
3088
+ });
3089
+ }
3090
+ /**
3091
+ * Invoke the getter of all signals associated with a component
3092
+ * so they can be registered to the effect this function is called in.
3093
+ * @param {ComponentContextLegacy} context
3094
+ * @param {(() => void)} props
3095
+ */
3096
+ function observe_all(context, props) {
3097
+ if (context.l.s) for (const signal of context.l.s) get(signal);
3098
+ props();
3099
+ }
3100
+ //#endregion
3101
+ //#region ../../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.67.0/node_modules/svelte/src/internal/client/dom/legacy/misc.js
3102
+ /**
3103
+ * Under some circumstances, imports may be reactive in legacy mode. In that case,
3104
+ * they should be using `reactive_import` as part of the transformation
3105
+ * @param {() => any} fn
3106
+ */
3107
+ function reactive_import(fn) {
3108
+ var s = source(0);
3109
+ return function() {
3110
+ if (arguments.length === 1) {
3111
+ set(s, get(s) + 1);
3112
+ return arguments[0];
3113
+ } else {
3114
+ get(s);
3115
+ return fn();
3116
+ }
3117
+ };
3118
+ }
3119
+ /**
3120
+ * @this {any}
3121
+ * @param {Record<string, unknown>} $$props
3122
+ * @param {Event} event
3123
+ * @returns {void}
3124
+ */
3125
+ function bubble_event($$props, event) {
3126
+ var events = $$props.$$events?.[event.type];
3127
+ for (var fn of is_array(events) ? events.slice() : events == null ? [] : [events]) fn.call(this, event);
3128
+ }
3129
+ /**
3130
+ * Used to simulate `$on` on a component instance when `compatibility.componentApi === 4`
3131
+ * @param {Record<string, any>} $$props
3132
+ * @param {string} event_name
3133
+ * @param {Function} event_callback
3134
+ */
3135
+ function add_legacy_event_listener($$props, event_name, event_callback) {
3136
+ $$props.$$events ||= {};
3137
+ $$props.$$events[event_name] ||= [];
3138
+ $$props.$$events[event_name].push(event_callback);
3139
+ }
3140
+ /**
3141
+ * Used to simulate `$set` on a component instance when `compatibility.componentApi === 4`.
3142
+ * Needs component accessors so that it can call the setter of the prop. Therefore doesn't
3143
+ * work for updating props in `$$props` or `$$restProps`.
3144
+ * @this {Record<string, any>}
3145
+ * @param {Record<string, any>} $$new_props
3146
+ */
3147
+ function update_legacy_props($$new_props) {
3148
+ for (var key in $$new_props) if (key in this) this[key] = $$new_props[key];
3149
+ }
3150
+ //#endregion
3151
+ //#region ../../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.67.0/node_modules/svelte/src/internal/client/reactivity/props.js
3152
+ /** @import { Derived, Effect, Source } from './types.js' */
3153
+ /**
3154
+ * @param {((value?: number) => number)} fn
3155
+ * @param {1 | -1} [d]
3156
+ * @returns {number}
3157
+ */
3158
+ function update_prop(fn, d = 1) {
3159
+ const value = fn();
3160
+ fn(value + d);
3161
+ return value;
3162
+ }
3163
+ /**
3164
+ * @param {((value?: number) => number)} fn
3165
+ * @param {1 | -1} [d]
3166
+ * @returns {number}
3167
+ */
3168
+ function update_pre_prop(fn, d = 1) {
3169
+ const value = fn() + d;
3170
+ fn(value);
3171
+ return value;
3172
+ }
3173
+ /**
3174
+ * The proxy handler for rest props (i.e. `const { x, ...rest } = $props()`).
3175
+ * Is passed the full `$$props` object and excludes the named props.
3176
+ * @type {ProxyHandler<{ props: Record<string | symbol, unknown>, exclude: Array<string | symbol>, name?: string }>}}
3177
+ */
3178
+ var rest_props_handler = {
3179
+ get(target, key) {
3180
+ if (target.exclude.includes(key)) return;
3181
+ return target.props[key];
3182
+ },
3183
+ set(target, key) {
3184
+ props_rest_readonly(`${target.name}.${String(key)}`);
3185
+ return false;
3186
+ },
3187
+ getOwnPropertyDescriptor(target, key) {
3188
+ if (target.exclude.includes(key)) return;
3189
+ if (key in target.props) return {
3190
+ enumerable: true,
3191
+ configurable: true,
3192
+ value: target.props[key]
3193
+ };
3194
+ },
3195
+ has(target, key) {
3196
+ if (target.exclude.includes(key)) return false;
3197
+ return key in target.props;
3198
+ },
3199
+ ownKeys(target) {
3200
+ return Reflect.ownKeys(target.props).filter((key) => !target.exclude.includes(key));
3201
+ }
3202
+ };
3203
+ /**
3204
+ * @param {Record<string, unknown>} props
3205
+ * @param {string[]} exclude
3206
+ * @param {string} [name]
3207
+ * @returns {Record<string, unknown>}
3208
+ */
3209
+ /*#__NO_SIDE_EFFECTS__*/
3210
+ function rest_props(props, exclude, name) {
3211
+ return new Proxy({
3212
+ props,
3213
+ exclude,
3214
+ name,
3215
+ other: {},
3216
+ to_proxy: []
3217
+ }, rest_props_handler);
3218
+ }
3219
+ /**
3220
+ * The proxy handler for legacy $$restProps and $$props
3221
+ * @type {ProxyHandler<{ props: Record<string | symbol, unknown>, exclude: Array<string | symbol>, special: Record<string | symbol, (v?: unknown) => unknown>, version: Source<number>, parent_effect: Effect }>}}
3222
+ */
3223
+ var legacy_rest_props_handler = {
3224
+ get(target, key) {
3225
+ if (target.exclude.includes(key)) return;
3226
+ get(target.version);
3227
+ return key in target.special ? target.special[key]() : target.props[key];
3228
+ },
3229
+ set(target, key, value) {
3230
+ if (!(key in target.special)) {
3231
+ var previous_effect = active_effect;
3232
+ try {
3233
+ set_active_effect(target.parent_effect);
3234
+ /** @type {Record<string, (v?: unknown) => unknown>} */
3235
+ target.special[key] = prop({ get [key]() {
3236
+ return target.props[key];
3237
+ } }, key, 4);
3238
+ } finally {
3239
+ set_active_effect(previous_effect);
3240
+ }
3241
+ }
3242
+ target.special[key](value);
3243
+ update(target.version);
3244
+ return true;
3245
+ },
3246
+ getOwnPropertyDescriptor(target, key) {
3247
+ if (target.exclude.includes(key)) return;
3248
+ if (key in target.props) return {
3249
+ enumerable: true,
3250
+ configurable: true,
3251
+ value: target.props[key]
3252
+ };
3253
+ },
3254
+ deleteProperty(target, key) {
3255
+ if (target.exclude.includes(key)) return true;
3256
+ target.exclude.push(key);
3257
+ update(target.version);
3258
+ return true;
3259
+ },
3260
+ has(target, key) {
3261
+ if (target.exclude.includes(key)) return false;
3262
+ return key in target.props;
3263
+ },
3264
+ ownKeys(target) {
3265
+ return Reflect.ownKeys(target.props).filter((key) => !target.exclude.includes(key));
3266
+ }
3267
+ };
3268
+ /**
3269
+ * @param {Record<string, unknown>} props
3270
+ * @param {string[]} exclude
3271
+ * @returns {Record<string, unknown>}
3272
+ */
3273
+ function legacy_rest_props(props, exclude) {
3274
+ return new Proxy({
3275
+ props,
3276
+ exclude,
3277
+ special: {},
3278
+ version: source(0),
3279
+ parent_effect: active_effect
3280
+ }, legacy_rest_props_handler);
3281
+ }
3282
+ /**
3283
+ * The proxy handler for spread props. Handles the incoming array of props
3284
+ * that looks like `() => { dynamic: props }, { static: prop }, ..` and wraps
3285
+ * them so that the whole thing is passed to the component as the `$$props` argument.
3286
+ * @type {ProxyHandler<{ props: Array<Record<string | symbol, unknown> | (() => Record<string | symbol, unknown>)> }>}}
3287
+ */
3288
+ var spread_props_handler = {
3289
+ get(target, key) {
3290
+ let i = target.props.length;
3291
+ while (i--) {
3292
+ let p = target.props[i];
3293
+ if (is_function(p)) p = p();
3294
+ if (typeof p === "object" && p !== null && key in p) return p[key];
3295
+ }
3296
+ },
3297
+ set(target, key, value) {
3298
+ let i = target.props.length;
3299
+ while (i--) {
3300
+ let p = target.props[i];
3301
+ if (is_function(p)) p = p();
3302
+ const desc = get_descriptor(p, key);
3303
+ if (desc && desc.set) {
3304
+ desc.set(value);
3305
+ return true;
3306
+ }
3307
+ }
3308
+ return false;
3309
+ },
3310
+ getOwnPropertyDescriptor(target, key) {
3311
+ let i = target.props.length;
3312
+ while (i--) {
3313
+ let p = target.props[i];
3314
+ if (is_function(p)) p = p();
3315
+ if (typeof p === "object" && p !== null && key in p) {
3316
+ const descriptor = get_descriptor(p, key);
3317
+ if (descriptor && !descriptor.configurable) descriptor.configurable = true;
3318
+ return descriptor;
3319
+ }
3320
+ }
3321
+ },
3322
+ has(target, key) {
3323
+ if (key === STATE_SYMBOL || key === LEGACY_PROPS) return false;
3324
+ for (let p of target.props) {
3325
+ if (is_function(p)) p = p();
3326
+ if (p != null && key in p) return true;
3327
+ }
3328
+ return false;
3329
+ },
3330
+ ownKeys(target) {
3331
+ /** @type {Array<string | symbol>} */
3332
+ const keys = [];
3333
+ for (let p of target.props) {
3334
+ if (is_function(p)) p = p();
3335
+ if (!p) continue;
3336
+ for (const key in p) if (!keys.includes(key)) keys.push(key);
3337
+ for (const key of Object.getOwnPropertySymbols(p)) if (!keys.includes(key)) keys.push(key);
3338
+ }
3339
+ return keys;
3340
+ }
3341
+ };
3342
+ /**
3343
+ * @param {Array<Record<string, unknown> | (() => Record<string, unknown>)>} props
3344
+ * @returns {any}
3345
+ */
3346
+ function spread_props(...props) {
3347
+ return new Proxy({ props }, spread_props_handler);
3348
+ }
3349
+ /**
3350
+ * This function is responsible for synchronizing a possibly bound prop with the inner component state.
3351
+ * It is used whenever the compiler sees that the component writes to the prop, or when it has a default prop_value.
3352
+ * @template V
3353
+ * @param {Record<string, unknown>} props
3354
+ * @param {string} key
3355
+ * @param {number} flags
3356
+ * @param {V | (() => V)} [fallback]
3357
+ * @returns {(() => V | ((arg: V) => V) | ((arg: V, mutation: boolean) => V))}
3358
+ */
3359
+ function prop(props, key, flags, fallback) {
3360
+ var runes = !legacy_mode_flag || (flags & 2) !== 0;
3361
+ var bindable = (flags & 8) !== 0;
3362
+ var lazy = (flags & 16) !== 0;
3363
+ var fallback_value = fallback;
3364
+ var fallback_dirty = true;
3365
+ var fallback_signal = void 0;
3366
+ var get_fallback = () => {
3367
+ if (lazy && runes) {
3368
+ fallback_signal ??= /* @__PURE__ */ derived(fallback);
3369
+ return get(fallback_signal);
3370
+ }
3371
+ if (fallback_dirty) {
3372
+ fallback_dirty = false;
3373
+ fallback_value = lazy ? untrack(fallback) : fallback;
3374
+ }
3375
+ return fallback_value;
3376
+ };
3377
+ /** @type {((v: V) => void) | undefined} */
3378
+ let setter;
3379
+ if (bindable) {
3380
+ var is_entry_props = STATE_SYMBOL in props || LEGACY_PROPS in props;
3381
+ setter = get_descriptor(props, key)?.set ?? (is_entry_props && key in props ? (v) => props[key] = v : void 0);
3382
+ }
3383
+ /** @type {V} */
3384
+ var initial_value;
3385
+ var is_store_sub = false;
3386
+ if (bindable) [initial_value, is_store_sub] = capture_store_binding(() => props[key]);
3387
+ else initial_value = props[key];
3388
+ if (initial_value === void 0 && fallback !== void 0) {
3389
+ initial_value = get_fallback();
3390
+ if (setter) {
3391
+ if (runes) props_invalid_value(key);
3392
+ setter(initial_value);
3393
+ }
3394
+ }
3395
+ /** @type {() => V} */
3396
+ var getter;
3397
+ if (runes) getter = () => {
3398
+ var value = props[key];
3399
+ if (value === void 0) return get_fallback();
3400
+ fallback_dirty = true;
3401
+ return value;
3402
+ };
3403
+ else getter = () => {
3404
+ var value = props[key];
3405
+ if (value !== void 0) fallback_value = void 0;
3406
+ return value === void 0 ? fallback_value : value;
3407
+ };
3408
+ if (runes && (flags & 4) === 0) return getter;
3409
+ if (setter) {
3410
+ var legacy_parent = props.$$legacy;
3411
+ return (function(value, mutation) {
3412
+ if (arguments.length > 0) {
3413
+ if (!runes || !mutation || legacy_parent || is_store_sub)
3414
+ /** @type {Function} */ setter(mutation ? getter() : value);
3415
+ return value;
3416
+ }
3417
+ return getter();
3418
+ });
3419
+ }
3420
+ var overridden = false;
3421
+ var d = ((flags & 1) !== 0 ? derived : derived_safe_equal)(() => {
3422
+ overridden = false;
3423
+ return getter();
3424
+ });
3425
+ d.label = key;
3426
+ if (bindable) get(d);
3427
+ var parent_effect = active_effect;
3428
+ return (function(value, mutation) {
3429
+ if (arguments.length > 0) {
3430
+ const new_value = mutation ? get(d) : runes && bindable ? proxy(value) : value;
3431
+ set(d, new_value);
3432
+ overridden = true;
3433
+ if (fallback_value !== void 0) fallback_value = new_value;
3434
+ return value;
3435
+ }
3436
+ if (is_destroying_effect && overridden || (parent_effect.f & 16384) !== 0) return d.v;
3437
+ return get(d);
3438
+ });
3439
+ }
3440
+ //#endregion
3441
+ //#region ../../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.67.0/node_modules/svelte/src/internal/client/validate.js
3442
+ /** @import { Blocker } from '#client' */
3443
+ /**
3444
+ * @param {string} binding
3445
+ * @param {Blocker[]} blockers
3446
+ * @param {() => Record<string, any>} get_object
3447
+ * @param {() => string} get_property
3448
+ * @param {number} line
3449
+ * @param {number} column
3450
+ */
3451
+ function validate_binding(binding, blockers, get_object, get_property, line, column) {
3452
+ run_after_blockers(blockers, () => {
3453
+ var warned = false;
3454
+ var filename = dev_current_component_function?.[FILENAME];
3455
+ render_effect(() => {
3456
+ if (warned) return;
3457
+ var [object, is_store_sub] = capture_store_binding(get_object);
3458
+ if (is_store_sub) return;
3459
+ var property = get_property();
3460
+ var ran = false;
3461
+ var effect = render_effect(() => {
3462
+ if (ran) return;
3463
+ object[property];
3464
+ });
3465
+ ran = true;
3466
+ if (effect.deps === null) {
3467
+ var location = `${filename}:${line}:${column}`;
3468
+ binding_property_non_reactive(binding, location);
3469
+ warned = true;
3470
+ }
3471
+ });
3472
+ });
3473
+ }
3474
+ //#endregion
3475
+ //#region ../../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.67.0/node_modules/svelte/src/internal/client/dom/elements/custom-element.js
3476
+ /**
3477
+ * @typedef {Object} CustomElementPropDefinition
3478
+ * @property {string} [attribute]
3479
+ * @property {boolean} [reflect]
3480
+ * @property {'String'|'Boolean'|'Number'|'Array'|'Object'} [type]
3481
+ */
3482
+ /** @type {any} */
3483
+ var SvelteElement;
3484
+ if (typeof HTMLElement === "function") SvelteElement = class extends HTMLElement {
3485
+ /** The Svelte component constructor */
3486
+ $$ctor;
3487
+ /** Slots */
3488
+ $$s;
3489
+ /** @type {any} The Svelte component instance */
3490
+ $$c;
3491
+ /** Whether or not the custom element is connected */
3492
+ $$cn = false;
3493
+ /** @type {Record<string, any>} Component props data */
3494
+ $$d = {};
3495
+ /** `true` if currently in the process of reflecting component props back to attributes */
3496
+ $$r = false;
3497
+ /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
3498
+ $$p_d = {};
3499
+ /** @type {Record<string, EventListenerOrEventListenerObject[]>} Event listeners */
3500
+ $$l = {};
3501
+ /** @type {Map<EventListenerOrEventListenerObject, Function>} Event listener unsubscribe functions */
3502
+ $$l_u = /* @__PURE__ */ new Map();
3503
+ /** @type {any} The managed render effect for reflecting attributes */
3504
+ $$me;
3505
+ /** @type {ShadowRoot | null} The ShadowRoot of the custom element */
3506
+ $$shadowRoot = null;
3507
+ /**
3508
+ * @param {*} $$componentCtor
3509
+ * @param {*} $$slots
3510
+ * @param {ShadowRootInit | undefined} shadow_root_init
3511
+ */
3512
+ constructor($$componentCtor, $$slots, shadow_root_init) {
3513
+ super();
3514
+ this.$$ctor = $$componentCtor;
3515
+ this.$$s = $$slots;
3516
+ if (shadow_root_init) this.$$shadowRoot = this.attachShadow(shadow_root_init);
3517
+ }
3518
+ /**
3519
+ * @param {string} type
3520
+ * @param {EventListenerOrEventListenerObject} listener
3521
+ * @param {boolean | AddEventListenerOptions} [options]
3522
+ */
3523
+ addEventListener(type, listener, options) {
3524
+ this.$$l[type] = this.$$l[type] || [];
3525
+ this.$$l[type].push(listener);
3526
+ if (this.$$c) {
3527
+ const unsub = this.$$c.$on(type, listener);
3528
+ this.$$l_u.set(listener, unsub);
3529
+ }
3530
+ super.addEventListener(type, listener, options);
3531
+ }
3532
+ /**
3533
+ * @param {string} type
3534
+ * @param {EventListenerOrEventListenerObject} listener
3535
+ * @param {boolean | AddEventListenerOptions} [options]
3536
+ */
3537
+ removeEventListener(type, listener, options) {
3538
+ super.removeEventListener(type, listener, options);
3539
+ if (this.$$c) {
3540
+ const unsub = this.$$l_u.get(listener);
3541
+ if (unsub) {
3542
+ unsub();
3543
+ this.$$l_u.delete(listener);
3544
+ }
3545
+ }
3546
+ }
3547
+ async connectedCallback() {
3548
+ this.$$cn = true;
3549
+ if (!this.$$c) {
3550
+ await Promise.resolve();
3551
+ if (!this.$$cn || this.$$c) return;
3552
+ /** @param {string} name */
3553
+ function create_slot(name) {
3554
+ /**
3555
+ * @param {Element} anchor
3556
+ */
3557
+ return (anchor) => {
3558
+ const slot = create_element("slot");
3559
+ if (name !== "default") slot.name = name;
3560
+ append(anchor, slot);
3561
+ };
3562
+ }
3563
+ /** @type {Record<string, any>} */
3564
+ const $$slots = {};
3565
+ const existing_slots = get_custom_elements_slots(this);
3566
+ for (const name of this.$$s) if (name in existing_slots) {
3567
+ if (name === "default" && !this.$$d.children) {
3568
+ this.$$d.children = create_slot(name);
3569
+ $$slots.default = true;
3570
+ } else $$slots[name] = create_slot(name);
3571
+ }
3572
+ for (const attribute of this.attributes) {
3573
+ const name = this.$$g_p(attribute.name);
3574
+ if (!(name in this.$$d)) this.$$d[name] = get_custom_element_value(name, attribute.value, this.$$p_d, "toProp");
3575
+ }
3576
+ for (const key in this.$$p_d) if (!(key in this.$$d) && this[key] !== void 0) {
3577
+ this.$$d[key] = this[key];
3578
+ delete this[key];
3579
+ }
3580
+ this.$$c = createClassComponent({
3581
+ component: this.$$ctor,
3582
+ target: this.$$shadowRoot || this,
3583
+ props: {
3584
+ ...this.$$d,
3585
+ $$slots,
3586
+ $$host: this
3587
+ }
3588
+ });
3589
+ this.$$me = effect_root(() => {
3590
+ render_effect(() => {
3591
+ this.$$r = true;
3592
+ for (const key of object_keys(this.$$c)) {
3593
+ if (!this.$$p_d[key]?.reflect) continue;
3594
+ this.$$d[key] = this.$$c[key];
3595
+ const attribute_value = get_custom_element_value(key, this.$$d[key], this.$$p_d, "toAttribute");
3596
+ if (attribute_value == null) this.removeAttribute(this.$$p_d[key].attribute || key);
3597
+ else this.setAttribute(this.$$p_d[key].attribute || key, attribute_value);
3598
+ }
3599
+ this.$$r = false;
3600
+ });
3601
+ });
3602
+ for (const type in this.$$l) for (const listener of this.$$l[type]) {
3603
+ const unsub = this.$$c.$on(type, listener);
3604
+ this.$$l_u.set(listener, unsub);
3605
+ }
3606
+ this.$$l = {};
3607
+ }
3608
+ }
3609
+ /**
3610
+ * @param {string} attr
3611
+ * @param {string} _oldValue
3612
+ * @param {string} newValue
3613
+ */
3614
+ attributeChangedCallback(attr, _oldValue, newValue) {
3615
+ if (this.$$r) return;
3616
+ attr = this.$$g_p(attr);
3617
+ this.$$d[attr] = get_custom_element_value(attr, newValue, this.$$p_d, "toProp");
3618
+ this.$$c?.$set({ [attr]: this.$$d[attr] });
3619
+ }
3620
+ disconnectedCallback() {
3621
+ this.$$cn = false;
3622
+ Promise.resolve().then(() => {
3623
+ if (!this.$$cn && this.$$c) {
3624
+ this.$$c.$destroy();
3625
+ this.$$me();
3626
+ this.$$c = void 0;
3627
+ }
3628
+ });
3629
+ }
3630
+ /**
3631
+ * @param {string} attribute_name
3632
+ */
3633
+ $$g_p(attribute_name) {
3634
+ return object_keys(this.$$p_d).find((key) => this.$$p_d[key].attribute === attribute_name || !this.$$p_d[key].attribute && key.toLowerCase() === attribute_name) || attribute_name;
3635
+ }
3636
+ };
3637
+ /**
3638
+ * @param {string} prop
3639
+ * @param {any} value
3640
+ * @param {Record<string, CustomElementPropDefinition>} props_definition
3641
+ * @param {'toAttribute' | 'toProp'} [transform]
3642
+ */
3643
+ function get_custom_element_value(prop, value, props_definition, transform) {
3644
+ const type = props_definition[prop]?.type;
3645
+ value = type === "Boolean" && typeof value !== "boolean" ? value != null : value;
3646
+ if (!transform || !props_definition[prop]) return value;
3647
+ else if (transform === "toAttribute") switch (type) {
3648
+ case "Object":
3649
+ case "Array": return value == null ? null : JSON.stringify(value);
3650
+ case "Boolean": return value ? "" : null;
3651
+ case "Number": return value == null ? null : value;
3652
+ default: return value;
3653
+ }
3654
+ else switch (type) {
3655
+ case "Object":
3656
+ case "Array": return value && JSON.parse(value);
3657
+ case "Boolean": return value;
3658
+ case "Number": return value != null ? +value : value;
3659
+ default: return value;
3660
+ }
3661
+ }
3662
+ /**
3663
+ * @param {HTMLElement} element
3664
+ */
3665
+ function get_custom_elements_slots(element) {
3666
+ /** @type {Record<string, true>} */
3667
+ const result = {};
3668
+ element.childNodes.forEach((node) => {
3669
+ result[node.slot || "default"] = true;
3670
+ });
3671
+ return result;
3672
+ }
3673
+ /**
3674
+ * @internal
3675
+ *
3676
+ * Turn a Svelte component into a custom element.
3677
+ * @param {any} Component A Svelte component function
3678
+ * @param {Record<string, CustomElementPropDefinition>} props_definition The props to observe
3679
+ * @param {string[]} slots The slots to create
3680
+ * @param {string[]} exports Explicitly exported values, other than props
3681
+ * @param {ShadowRootInit | undefined} shadow_root_init Options passed to shadow DOM constructor
3682
+ * @param {(ce: new () => HTMLElement) => new () => HTMLElement} [extend]
3683
+ */
3684
+ function create_custom_element(Component, props_definition, slots, exports, shadow_root_init, extend) {
3685
+ let Class = class extends SvelteElement {
3686
+ constructor() {
3687
+ super(Component, slots, shadow_root_init);
3688
+ this.$$p_d = props_definition;
3689
+ }
3690
+ static get observedAttributes() {
3691
+ return object_keys(props_definition).map((key) => (props_definition[key].attribute || key).toLowerCase());
3692
+ }
3693
+ };
3694
+ object_keys(props_definition).forEach((prop) => {
3695
+ define_property(Class.prototype, prop, {
3696
+ get() {
3697
+ return this.$$c && prop in this.$$c ? this.$$c[prop] : this.$$d[prop];
3698
+ },
3699
+ set(value) {
3700
+ value = get_custom_element_value(prop, value, props_definition);
3701
+ this.$$d[prop] = value;
3702
+ var component = this.$$c;
3703
+ if (component) {
3704
+ if (get_descriptor(component, prop)?.get) component[prop] = value;
3705
+ else component.$set({ [prop]: value });
3706
+ }
3707
+ }
3708
+ });
3709
+ });
3710
+ exports.forEach((property) => {
3711
+ define_property(Class.prototype, property, { get() {
3712
+ return this.$$c?.[property];
3713
+ } });
3714
+ });
3715
+ if (extend) Class = extend(Class);
3716
+ Component.element = Class;
3717
+ return Class;
3718
+ }
3719
+ //#endregion
3720
+ //#region ../../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.67.0/node_modules/svelte/src/internal/client/dev/console-log.js
3721
+ /**
3722
+ * @param {string} method
3723
+ * @param {...any} objects
3724
+ */
3725
+ function log_if_contains_state(method, ...objects) {
3726
+ untrack(() => {
3727
+ try {
3728
+ let has_state = false;
3729
+ const transformed = [];
3730
+ for (const obj of objects) if (obj && typeof obj === "object" && STATE_SYMBOL in obj) {
3731
+ transformed.push(snapshot(obj, true));
3732
+ has_state = true;
3733
+ } else transformed.push(obj);
3734
+ if (has_state) {
3735
+ console_log_state(method);
3736
+ console.log("%c[snapshot]", "color: grey", ...transformed);
3737
+ }
3738
+ } catch {}
3739
+ });
3740
+ return objects;
3741
+ }
3742
+ {
3743
+ /**
3744
+ * @param {string} rune
3745
+ */
3746
+ function throw_rune_error(rune) {
3747
+ if (!(rune in globalThis)) {
3748
+ /** @type {any} */
3749
+ let value;
3750
+ Object.defineProperty(globalThis, rune, {
3751
+ configurable: true,
3752
+ get: () => {
3753
+ if (value !== void 0) return value;
3754
+ rune_outside_svelte(rune);
3755
+ },
3756
+ set: (v) => {
3757
+ value = v;
3758
+ }
3759
+ });
3760
+ }
3761
+ }
3762
+ throw_rune_error("$state");
3763
+ throw_rune_error("$effect");
3764
+ throw_rune_error("$derived");
3765
+ throw_rune_error("$inspect");
3766
+ throw_rune_error("$props");
3767
+ throw_rune_error("$bindable");
3768
+ }
3769
+ //#endregion
3770
+ //#region ../../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.67.0/node_modules/svelte/src/attachments/index.js
3771
+ /** @import { Action, ActionReturn } from '../action/public' */
3772
+ /** @import { Attachment } from './public' */
3773
+ /**
3774
+ * Creates an object key that will be recognised as an attachment when the object is spread onto an element,
3775
+ * as a programmatic alternative to using `{@attach ...}`. This can be useful for library authors, though
3776
+ * is generally not needed when building an app.
3777
+ *
3778
+ * ```svelte
3779
+ * <script>
3780
+ * import { createAttachmentKey } from 'svelte/attachments';
3781
+ *
3782
+ * const props = {
3783
+ * class: 'cool',
3784
+ * onclick: () => alert('clicked'),
3785
+ * [createAttachmentKey()]: (node) => {
3786
+ * node.textContent = 'attached!';
3787
+ * }
3788
+ * };
3789
+ * <\/script>
3790
+ *
3791
+ * <button {...props}>click me</button>
3792
+ * ```
3793
+ * @since 5.29
3794
+ */
3795
+ function createAttachmentKey() {
3796
+ return Symbol(ATTACHMENT_KEY);
3797
+ }
3798
+ /**
3799
+ * Converts an [action](https://svelte.dev/docs/svelte/use) into an [attachment](https://svelte.dev/docs/svelte/@attach) keeping the same behavior.
3800
+ * It's useful if you want to start using attachments on components but you have actions provided by a library.
3801
+ *
3802
+ * Note that the second argument, if provided, must be a function that _returns_ the argument to the
3803
+ * action function, not the argument itself.
3804
+ *
3805
+ * ```svelte
3806
+ * <!-- with an action -->
3807
+ * <div use:foo={bar}>...</div>
3808
+ *
3809
+ * <!-- with an attachment -->
3810
+ * <div {@attach fromAction(foo, () => bar)}>...</div>
3811
+ * ```
3812
+ * @template {EventTarget} E
3813
+ * @template {unknown} T
3814
+ * @overload
3815
+ * @param {Action<E, T> | ((element: E, arg: T) => void | ActionReturn<T>)} action The action function
3816
+ * @param {() => T} fn A function that returns the argument for the action
3817
+ * @returns {Attachment<E>}
3818
+ */
3819
+ /**
3820
+ * Converts an [action](https://svelte.dev/docs/svelte/use) into an [attachment](https://svelte.dev/docs/svelte/@attach) keeping the same behavior.
3821
+ * It's useful if you want to start using attachments on components but you have actions provided by a library.
3822
+ *
3823
+ * Note that the second argument, if provided, must be a function that _returns_ the argument to the
3824
+ * action function, not the argument itself.
3825
+ *
3826
+ * ```svelte
3827
+ * <!-- with an action -->
3828
+ * <div use:foo={bar}>...</div>
3829
+ *
3830
+ * <!-- with an attachment -->
3831
+ * <div {@attach fromAction(foo, () => bar)}>...</div>
3832
+ * ```
3833
+ * @template {EventTarget} E
3834
+ * @overload
3835
+ * @param {Action<E, void> | ((element: E) => void | ActionReturn<void>)} action The action function
3836
+ * @returns {Attachment<E>}
3837
+ */
3838
+ /**
3839
+ * Converts an [action](https://svelte.dev/docs/svelte/use) into an [attachment](https://svelte.dev/docs/svelte/@attach) keeping the same behavior.
3840
+ * It's useful if you want to start using attachments on components but you have actions provided by a library.
3841
+ *
3842
+ * Note that the second argument, if provided, must be a function that _returns_ the argument to the
3843
+ * action function, not the argument itself.
3844
+ *
3845
+ * ```svelte
3846
+ * <!-- with an action -->
3847
+ * <div use:foo={bar}>...</div>
3848
+ *
3849
+ * <!-- with an attachment -->
3850
+ * <div {@attach fromAction(foo, () => bar)}>...</div>
3851
+ * ```
3852
+ *
3853
+ * @template {EventTarget} E
3854
+ * @template {unknown} T
3855
+ * @param {Action<E, T> | ((element: E, arg: T) => void | ActionReturn<T>)} action The action function
3856
+ * @param {() => T} fn A function that returns the argument for the action
3857
+ * @returns {Attachment<E>}
3858
+ * @since 5.32
3859
+ */
3860
+ function fromAction(action, fn = noop) {
3861
+ return (element) => {
3862
+ const { update, destroy } = untrack(() => action(element, fn()) ?? {});
3863
+ if (update) {
3864
+ var ran = false;
3865
+ render_effect(() => {
3866
+ const arg = fn();
3867
+ if (ran) update(arg);
3868
+ });
3869
+ ran = true;
3870
+ }
3871
+ if (destroy) teardown(destroy);
3872
+ };
3873
+ }
3874
+ //#endregion
3875
+ export { set_default_value as $, bind_muted as A, async as At, bind_group as B, bind_element_size as C, each as Ct, bind_buffered as D, if_block as Dt, bind_online as E, key as Et, bind_seekable as F, hmr as Ft, CLASS as G, bind_active_element as H, bind_seeking as I, add_locations as It, remove_input_defaults as J, STYLE as K, bind_volume as L, cleanup_styles as Lt, bind_playback_rate as M, check_target as Mt, bind_played as N, legacy_api as Nt, bind_current_time as O, await_block as Ot, bind_ready_state as P, create_ownership_validator as Pt, set_default_checked as Q, bind_checked as R, assign as Rt, bind_this as S, html as St, bind_prop as T, css_props as Tt, customizable_select as U, bind_value as V, selectedcontent as W, set_checked as X, set_attribute as Y, set_custom_element_data as Z, bind_window_scroll as _, component as _t, validate_binding as a, select_option as at, bind_focused as b, sanitize_slots as bt, rest_props as c, attach as ct, update_prop as d, head as dt, set_selected as et, add_legacy_event_listener as f, element as ft, init as g, raf as gt, update_legacy_props as h, loop as ht, create_custom_element as i, init_select as it, bind_paused as j, inspect as jt, bind_ended as k, validate_snippet_args as kt, spread_props as l, action as lt, reactive_import as m, transition as mt, fromAction as n, set_xlink_attribute as nt, legacy_rest_props as o, set_style as ot, bubble_event as p, animation as pt, attribute_effect as q, log_if_contains_state as r, bind_select_value as rt, prop as s, set_class as st, createAttachmentKey as t, set_value as tt, update_pre_prop as u, append_styles as ut, bind_window_size as v, snippet as vt, bind_resize_observer as w, index as wt, bind_property as x, slot as xt, bind_content_editable as y, wrap_snippet as yt, bind_files as z, assign_async as zt };