@absolutejs/absolute 0.19.0-beta.1081 → 0.19.0-beta.1083

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 (150) hide show
  1. package/dist/.absolutejs/generated/angular/indexes/angular-example.1g23yr9r.js +167 -0
  2. package/dist/.absolutejs/generated/react/indexes/ReactExample.e6kzvjqy.js +3 -0
  3. package/dist/.absolutejs/generated/svelte/client/pages/SvelteExample.5pq2wmw6.js +1 -0
  4. package/dist/.absolutejs/generated/svelte/indexes/pages/SvelteExample.9zcw5vtg.js +1 -0
  5. package/dist/.absolutejs/generated/vue/client/pages/VueExample.q47m56s4.js +1 -0
  6. package/dist/.absolutejs/generated/vue/indexes/VueExample.6bqszcxv.js +1 -0
  7. package/dist/_prerendered/angular.html +45 -0
  8. package/dist/_prerendered/angular.meta +1 -0
  9. package/dist/_prerendered/html.html +70 -0
  10. package/dist/_prerendered/html.meta +1 -0
  11. package/dist/_prerendered/htmx.html +239 -0
  12. package/dist/_prerendered/htmx.meta +1 -0
  13. package/dist/_prerendered/index.html +70 -0
  14. package/dist/_prerendered/index.meta +1 -0
  15. package/dist/_prerendered/react.html +1 -0
  16. package/dist/_prerendered/react.meta +1 -0
  17. package/dist/_prerendered/vue.html +41 -0
  18. package/dist/_prerendered/vue.meta +1 -0
  19. package/dist/angular/browser.js +18 -18
  20. package/dist/angular/components/core/streamingSlotRegistrar.js +1 -1
  21. package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
  22. package/dist/angular/components/defer-slot-templates.directive.js +2 -2
  23. package/dist/angular/components/defer-slot.component.js +3 -3
  24. package/dist/angular/components/image.component.js +3 -3
  25. package/dist/angular/components/stream-slot.component.js +3 -3
  26. package/dist/angular/example/angular/pages/angular-example.djr1v9hj.js +373 -0
  27. package/dist/angular/index.js +43 -43
  28. package/dist/angular/server.js +31 -31
  29. package/dist/angular/vendor/angular_common.js +310 -0
  30. package/dist/angular/vendor/angular_common_http.js +129 -0
  31. package/dist/angular/vendor/angular_core.js +1177 -0
  32. package/dist/angular/vendor/angular_core_primitives_di.js +36 -0
  33. package/dist/angular/vendor/angular_core_primitives_signals.js +132 -0
  34. package/dist/angular/vendor/angular_platform-browser.js +117 -0
  35. package/dist/angular/vendor/angular_router.js +6410 -0
  36. package/dist/angular/vendor/chunk-2c9evnn0.js +4764 -0
  37. package/dist/angular/vendor/chunk-3evcs0sk.js +2567 -0
  38. package/dist/angular/vendor/chunk-5h3qyvpj.js +729 -0
  39. package/dist/angular/vendor/chunk-hgg0w52m.js +62 -0
  40. package/dist/angular/vendor/chunk-n6rt7w2y.js +23 -0
  41. package/dist/angular/vendor/chunk-t4tc7c8b.js +28013 -0
  42. package/dist/angular/vendor/chunk-vqd7j0kb.js +1786 -0
  43. package/dist/angular/vendor/chunk-yqjkhk8j.js +145 -0
  44. package/dist/angular/vendor/server/angular_common.js +311 -0
  45. package/dist/angular/vendor/server/angular_common_http.js +130 -0
  46. package/dist/angular/vendor/server/angular_core.js +1178 -0
  47. package/dist/angular/vendor/server/angular_core_primitives_di.js +37 -0
  48. package/dist/angular/vendor/server/angular_core_primitives_signals.js +133 -0
  49. package/dist/angular/vendor/server/angular_platform-browser.js +118 -0
  50. package/dist/angular/vendor/server/angular_platform-server.js +59 -0
  51. package/dist/angular/vendor/server/angular_router.js +261 -0
  52. package/dist/angular/vendor/server/angular_ssr.js +11669 -0
  53. package/dist/angular/vendor/server/chunk-2akxms5e.js +2566 -0
  54. package/dist/angular/vendor/server/chunk-659a9c3p.js +6218 -0
  55. package/dist/angular/vendor/server/chunk-8eecnjd1.js +16686 -0
  56. package/dist/angular/vendor/server/chunk-9jz2apvp.js +743 -0
  57. package/dist/angular/vendor/server/chunk-dhs2bg35.js +48 -0
  58. package/dist/angular/vendor/server/chunk-hs2gc8sr.js +1787 -0
  59. package/dist/angular/vendor/server/chunk-k46n34mb.js +63 -0
  60. package/dist/angular/vendor/server/chunk-p2fdvyh1.js +4767 -0
  61. package/dist/angular/vendor/server/chunk-r0w9r4bg.js +730 -0
  62. package/dist/angular/vendor/server/chunk-vthxj7kd.js +146 -0
  63. package/dist/angular/vendor/server/chunk-xahr7f2f.js +35534 -0
  64. package/dist/assets/css/tailwind.generated.css +218 -0
  65. package/dist/assets/css/vue-example-compiled.abzaxheq.css +32 -0
  66. package/dist/assets/ico/favicon.ico +0 -0
  67. package/dist/assets/png/absolutejs-temp.png +0 -0
  68. package/dist/assets/svg/HTML5_Badge.svg +7 -0
  69. package/dist/assets/svg/angular.svg +18 -0
  70. package/dist/assets/svg/htmx-logo-black.svg +9 -0
  71. package/dist/assets/svg/htmx-logo-white.svg +9 -0
  72. package/dist/assets/svg/react.svg +1 -0
  73. package/dist/assets/svg/svelte-logo.svg +1 -0
  74. package/dist/assets/svg/vue-logo.svg +4 -0
  75. package/dist/build.js +42 -42
  76. package/dist/chunk-7pp6gkg8.js +2 -0
  77. package/dist/chunk-ek2qyx2c.js +11 -0
  78. package/dist/chunk-ysr5ycdt.js +2 -0
  79. package/dist/cli/config/server.js +11 -11
  80. package/dist/cli/index.js +12 -1
  81. package/dist/client/index.js +13 -13
  82. package/dist/client.tsx +15 -0
  83. package/dist/example/html/scripts/typescript-example.fqn9zkdh.js +1 -0
  84. package/dist/html/pages/HTMLExample.html +70 -0
  85. package/dist/htmx/htmx.min.js +1 -0
  86. package/dist/htmx/pages/HTMXExample.html +239 -0
  87. package/dist/htmx.min.js +1 -0
  88. package/dist/index.js +84 -65
  89. package/dist/index.js.map +3 -3
  90. package/dist/indexes/angular-example.xsx88ph0.css +227 -0
  91. package/dist/indexes/html-example.s3banzdc.css +221 -0
  92. package/dist/indexes/htmx-example.5vgssc3f.css +221 -0
  93. package/dist/indexes/react-example.bz1k8xa2.css +245 -0
  94. package/dist/indexes/svelte-example.vy3015es.css +221 -0
  95. package/dist/indexes/vue-example.q4vf2wtq.css +228 -0
  96. package/dist/islands/index.js +14 -14
  97. package/dist/manifest.json +26 -0
  98. package/dist/nested/dynamic-module.txt +1 -0
  99. package/dist/package-asset.txt +1 -0
  100. package/dist/react/browser.js +3 -3
  101. package/dist/react/components/browser/index.js +5 -5
  102. package/dist/react/components/index.js +7 -7
  103. package/dist/react/hooks/index.js +2 -2
  104. package/dist/react/index.js +30 -30
  105. package/dist/react/jsxDevRuntimeCompat.js +1 -1
  106. package/dist/react/router/browser.js +2 -2
  107. package/dist/react/router/index.js +2 -2
  108. package/dist/react/server.js +13 -13
  109. package/dist/react/vendor/chunk-2kh60w9b.js +33 -0
  110. package/dist/react/vendor/chunk-9g12fvrw.js +236 -0
  111. package/dist/react/vendor/chunk-rejbymp5.js +837 -0
  112. package/dist/react/vendor/chunk-wwy122hz.js +200 -0
  113. package/dist/react/vendor/react-dom.js +44 -0
  114. package/dist/react/vendor/react-dom_client.js +15864 -0
  115. package/dist/react/vendor/react-refresh_runtime.js +304 -0
  116. package/dist/react/vendor/react.js +103 -0
  117. package/dist/react/vendor/react_jsx-dev-runtime.js +17 -0
  118. package/dist/react/vendor/react_jsx-runtime.js +22 -0
  119. package/dist/robots.txt +2 -0
  120. package/dist/runtime/blob.txt +1 -0
  121. package/dist/runtime/dir-join.txt +1 -0
  122. package/dist/runtime/nested/binary.bin +1 -0
  123. package/dist/runtime/nested/readfile.txt +1 -0
  124. package/dist/runtime/template.html +1 -0
  125. package/dist/server.js +92156 -0
  126. package/dist/sitemap.xml +48 -0
  127. package/dist/src/core/prepare.d.ts +7 -0
  128. package/dist/svelte/index.js +26 -26
  129. package/dist/svelte/router/page.js +1 -1
  130. package/dist/svelte/server/pages/SvelteExample.fxs20w1b.js +290 -0
  131. package/dist/svelte/server.js +13 -13
  132. package/dist/svelte/vendor/chunk-5qdxn1p3.js +4586 -0
  133. package/dist/svelte/vendor/chunk-8qdfbbez.js +12 -0
  134. package/dist/svelte/vendor/chunk-r2jyyfjt.js +4495 -0
  135. package/dist/svelte/vendor/svelte.js +49 -0
  136. package/dist/svelte/vendor/svelte_internal.js +2 -0
  137. package/dist/svelte/vendor/svelte_internal_client.js +395 -0
  138. package/dist/svelte/vendor/svelte_internal_disclose-version.js +7 -0
  139. package/dist/svelte/vendor/svelte_internal_flags_async.js +6 -0
  140. package/dist/svelte/vendor/svelte_internal_flags_legacy.js +6 -0
  141. package/dist/svelte/vendor/svelte_store.js +99 -0
  142. package/dist/vue/browser.js +3 -3
  143. package/dist/vue/components/Image.js +1 -1
  144. package/dist/vue/components/index.js +5 -5
  145. package/dist/vue/index.js +36 -36
  146. package/dist/vue/server/pages/VueExample.fyhmna2p.css +32 -0
  147. package/dist/vue/server/pages/VueExample.fyhmna2p.js +75 -0
  148. package/dist/vue/server.js +13 -13
  149. package/dist/vue/vendor/vue.js +11011 -0
  150. package/package.json +1 -1
@@ -0,0 +1,4586 @@
1
+ import {
2
+ ATTACHMENT_KEY,
3
+ BLOCK_EFFECT,
4
+ BRANCH_EFFECT,
5
+ Batch,
6
+ COMMENT_NODE,
7
+ DESTROYED,
8
+ DESTROYING,
9
+ DOCUMENT_FRAGMENT_NODE,
10
+ EACH_INDEX_REACTIVE,
11
+ EACH_IS_ANIMATED,
12
+ EACH_IS_CONTROLLED,
13
+ EACH_ITEM_IMMUTABLE,
14
+ EACH_ITEM_REACTIVE,
15
+ EFFECT_OFFSCREEN,
16
+ EFFECT_PRESERVED,
17
+ EFFECT_TRANSPARENT,
18
+ ELEMENT_NODE,
19
+ FILENAME,
20
+ HEAD_EFFECT,
21
+ HMR,
22
+ HYDRATION_END,
23
+ HYDRATION_ERROR,
24
+ HYDRATION_START,
25
+ HYDRATION_START_ELSE,
26
+ INERT,
27
+ IS_XHTML,
28
+ LEGACY_PROPS,
29
+ LOADING_ATTR_SYMBOL,
30
+ NAMESPACE_HTML,
31
+ NAMESPACE_MATHML,
32
+ NAMESPACE_SVG,
33
+ PROPS_IS_BINDABLE,
34
+ PROPS_IS_IMMUTABLE,
35
+ PROPS_IS_LAZY_INITIAL,
36
+ PROPS_IS_RUNES,
37
+ PROPS_IS_UPDATED,
38
+ REACTION_RAN,
39
+ STATE_SYMBOL,
40
+ TEMPLATE_FRAGMENT,
41
+ TEMPLATE_USE_IMPORT_NODE,
42
+ TEMPLATE_USE_MATHML,
43
+ TEMPLATE_USE_SVG,
44
+ TEXT_NODE,
45
+ TRANSITION_GLOBAL,
46
+ TRANSITION_IN,
47
+ TRANSITION_OUT,
48
+ UNINITIALIZED,
49
+ active_effect,
50
+ active_reaction,
51
+ add_form_reset_listener,
52
+ array_from,
53
+ assignment_value_stale,
54
+ autofocus,
55
+ bind_invalid_checkbox_value,
56
+ binding_property_non_reactive,
57
+ block,
58
+ boundary,
59
+ branch,
60
+ capture,
61
+ capture_store_binding,
62
+ clear_text_content,
63
+ component_api_changed,
64
+ component_api_invalid_new,
65
+ component_context,
66
+ component_root,
67
+ console_log_state,
68
+ create_comment,
69
+ create_element,
70
+ create_fragment,
71
+ create_text,
72
+ current_batch,
73
+ deep_read_state,
74
+ define_property,
75
+ derived1 as derived,
76
+ derived_safe_equal,
77
+ destroy_effect,
78
+ dev_current_component_function,
79
+ dev_stack,
80
+ dynamic_void_element_content,
81
+ each_key_duplicate,
82
+ each_key_volatile,
83
+ eager_effect,
84
+ effect,
85
+ effect_root,
86
+ event_handler_invalid,
87
+ experimental_async_required,
88
+ flatten,
89
+ flushSync,
90
+ get1 as get,
91
+ get_abort_signal_outside_reaction,
92
+ get_descriptor,
93
+ get_descriptors,
94
+ get_error,
95
+ get_first_child,
96
+ get_next_sibling,
97
+ get_prototype_of,
98
+ has_own_property,
99
+ hydratable_missing_but_expected,
100
+ hydratable_missing_but_required,
101
+ hydrate_next,
102
+ hydrate_node,
103
+ hydrating,
104
+ hydration_attribute_changed,
105
+ hydration_failed,
106
+ hydration_html_changed,
107
+ hydration_mismatch,
108
+ increment_pending,
109
+ init_operations,
110
+ internal_set,
111
+ invalid_raw_snippet_render,
112
+ invalid_snippet,
113
+ invalid_snippet_arguments,
114
+ is,
115
+ is_array,
116
+ is_destroying_effect,
117
+ is_firefox,
118
+ is_flushing_sync,
119
+ is_function,
120
+ is_promise,
121
+ is_runes,
122
+ lifecycle_double_unmount,
123
+ lifecycle_legacy_only,
124
+ lifecycle_outside_component,
125
+ listen,
126
+ listen_to_event_and_reset_event,
127
+ managed,
128
+ merge_text_nodes,
129
+ move_effect,
130
+ mutable_source,
131
+ noop,
132
+ object_keys,
133
+ ownership_invalid_binding,
134
+ ownership_invalid_mutation,
135
+ pause_effect,
136
+ pop,
137
+ previous_batch,
138
+ props_invalid_value,
139
+ props_rest_readonly,
140
+ proxy,
141
+ push,
142
+ queue_micro_task,
143
+ read_hydration_instruction,
144
+ remove_effect_dom,
145
+ render_effect,
146
+ reset,
147
+ resume_effect,
148
+ run,
149
+ run_after_blockers,
150
+ run_all,
151
+ rune_outside_svelte,
152
+ safe_not_equal,
153
+ select_multiple_invalid_value,
154
+ set,
155
+ set_active_effect,
156
+ set_active_reaction,
157
+ set_attribute,
158
+ set_dev_current_component_function,
159
+ set_hydrate_node,
160
+ set_hydrating,
161
+ should_defer_append,
162
+ skip_nodes,
163
+ snapshot,
164
+ snippet_without_render_tag,
165
+ source,
166
+ state_proxy_unmount,
167
+ store_invalid_shape,
168
+ svelte_element_invalid_this_value,
169
+ teardown,
170
+ template_effect,
171
+ tick,
172
+ true_default,
173
+ unset_context,
174
+ untrack,
175
+ update,
176
+ user_effect,
177
+ user_pre_effect,
178
+ validate_effect,
179
+ without_reactive_context
180
+ } from "./chunk-r2jyyfjt.js";
181
+ import {
182
+ async_mode_flag,
183
+ legacy_mode_flag
184
+ } from "./chunk-8qdfbbez.js";
185
+ // node_modules/svelte/src/utils.js
186
+ var regex_return_characters = /\r/g;
187
+ function hash(str) {
188
+ str = str.replace(regex_return_characters, "");
189
+ let hash2 = 5381;
190
+ let i = str.length;
191
+ while (i--)
192
+ hash2 = (hash2 << 5) - hash2 ^ str.charCodeAt(i);
193
+ return (hash2 >>> 0).toString(36);
194
+ }
195
+ var VOID_ELEMENT_NAMES = [
196
+ "area",
197
+ "base",
198
+ "br",
199
+ "col",
200
+ "command",
201
+ "embed",
202
+ "hr",
203
+ "img",
204
+ "input",
205
+ "keygen",
206
+ "link",
207
+ "meta",
208
+ "param",
209
+ "source",
210
+ "track",
211
+ "wbr"
212
+ ];
213
+ function is_void(name) {
214
+ return VOID_ELEMENT_NAMES.includes(name) || name.toLowerCase() === "!doctype";
215
+ }
216
+ function is_capture_event(name) {
217
+ return name.endsWith("capture") && name !== "gotpointercapture" && name !== "lostpointercapture";
218
+ }
219
+ var DELEGATED_EVENTS = [
220
+ "beforeinput",
221
+ "click",
222
+ "change",
223
+ "dblclick",
224
+ "contextmenu",
225
+ "focusin",
226
+ "focusout",
227
+ "input",
228
+ "keydown",
229
+ "keyup",
230
+ "mousedown",
231
+ "mousemove",
232
+ "mouseout",
233
+ "mouseover",
234
+ "mouseup",
235
+ "pointerdown",
236
+ "pointermove",
237
+ "pointerout",
238
+ "pointerover",
239
+ "pointerup",
240
+ "touchend",
241
+ "touchmove",
242
+ "touchstart"
243
+ ];
244
+ function can_delegate_event(event_name) {
245
+ return DELEGATED_EVENTS.includes(event_name);
246
+ }
247
+ var DOM_BOOLEAN_ATTRIBUTES = [
248
+ "allowfullscreen",
249
+ "async",
250
+ "autofocus",
251
+ "autoplay",
252
+ "checked",
253
+ "controls",
254
+ "default",
255
+ "disabled",
256
+ "formnovalidate",
257
+ "indeterminate",
258
+ "inert",
259
+ "ismap",
260
+ "loop",
261
+ "multiple",
262
+ "muted",
263
+ "nomodule",
264
+ "novalidate",
265
+ "open",
266
+ "playsinline",
267
+ "readonly",
268
+ "required",
269
+ "reversed",
270
+ "seamless",
271
+ "selected",
272
+ "webkitdirectory",
273
+ "defer",
274
+ "disablepictureinpicture",
275
+ "disableremoteplayback"
276
+ ];
277
+ var ATTRIBUTE_ALIASES = {
278
+ formnovalidate: "formNoValidate",
279
+ ismap: "isMap",
280
+ nomodule: "noModule",
281
+ playsinline: "playsInline",
282
+ readonly: "readOnly",
283
+ defaultvalue: "defaultValue",
284
+ defaultchecked: "defaultChecked",
285
+ srcobject: "srcObject",
286
+ novalidate: "noValidate",
287
+ allowfullscreen: "allowFullscreen",
288
+ disablepictureinpicture: "disablePictureInPicture",
289
+ disableremoteplayback: "disableRemotePlayback"
290
+ };
291
+ function normalize_attribute(name) {
292
+ name = name.toLowerCase();
293
+ return ATTRIBUTE_ALIASES[name] ?? name;
294
+ }
295
+ var DOM_PROPERTIES = [
296
+ ...DOM_BOOLEAN_ATTRIBUTES,
297
+ "formNoValidate",
298
+ "isMap",
299
+ "noModule",
300
+ "playsInline",
301
+ "readOnly",
302
+ "value",
303
+ "volume",
304
+ "defaultValue",
305
+ "defaultChecked",
306
+ "srcObject",
307
+ "noValidate",
308
+ "allowFullscreen",
309
+ "disablePictureInPicture",
310
+ "disableRemotePlayback"
311
+ ];
312
+ var PASSIVE_EVENTS = ["touchstart", "touchmove"];
313
+ function is_passive_event(name) {
314
+ return PASSIVE_EVENTS.includes(name);
315
+ }
316
+ var STATE_CREATION_RUNES = [
317
+ "$state",
318
+ "$state.raw",
319
+ "$derived",
320
+ "$derived.by"
321
+ ];
322
+ var RUNES = [
323
+ ...STATE_CREATION_RUNES,
324
+ "$state.eager",
325
+ "$state.snapshot",
326
+ "$props",
327
+ "$props.id",
328
+ "$bindable",
329
+ "$effect",
330
+ "$effect.pre",
331
+ "$effect.tracking",
332
+ "$effect.root",
333
+ "$effect.pending",
334
+ "$inspect",
335
+ "$inspect().with",
336
+ "$inspect.trace",
337
+ "$host"
338
+ ];
339
+ var RAW_TEXT_ELEMENTS = ["textarea", "script", "style", "title"];
340
+ function is_raw_text_element(name) {
341
+ return RAW_TEXT_ELEMENTS.includes(name);
342
+ }
343
+ function sanitize_location(location) {
344
+ return location?.replace(/\//g, "/​");
345
+ }
346
+
347
+ // node_modules/svelte/src/internal/client/dev/assign.js
348
+ function compare(a, b, property, location) {
349
+ if (a !== b && typeof b === "object" && STATE_SYMBOL in b) {
350
+ assignment_value_stale(property, sanitize_location(location));
351
+ }
352
+ return a;
353
+ }
354
+ function assign(object, property, operator, rhs, location) {
355
+ return compare(operator === "=" ? object[property] = rhs : operator === "&&=" ? object[property] &&= rhs() : operator === "||=" ? object[property] ||= rhs() : operator === "??=" ? object[property] ??= rhs() : null, untrack(() => object[property]), property, location);
356
+ }
357
+ async function assign_async(object, property, operator, rhs, location) {
358
+ 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);
359
+ }
360
+ // node_modules/svelte/src/internal/client/dev/css.js
361
+ var all_styles = new Map;
362
+ function register_style(hash2, style) {
363
+ var styles = all_styles.get(hash2);
364
+ if (!styles) {
365
+ styles = new Set;
366
+ all_styles.set(hash2, styles);
367
+ }
368
+ styles.add(style);
369
+ }
370
+ function cleanup_styles(hash2) {
371
+ var styles = all_styles.get(hash2);
372
+ if (!styles)
373
+ return;
374
+ for (const style of styles) {
375
+ style.remove();
376
+ }
377
+ all_styles.delete(hash2);
378
+ }
379
+ // node_modules/svelte/src/internal/client/dev/elements.js
380
+ function add_locations(fn, filename, locations) {
381
+ return (...args) => {
382
+ const dom = fn(...args);
383
+ var node = hydrating ? dom : dom.nodeType === DOCUMENT_FRAGMENT_NODE ? dom.firstChild : dom;
384
+ assign_locations(node, filename, locations);
385
+ return dom;
386
+ };
387
+ }
388
+ function assign_location(element, filename, location) {
389
+ element.__svelte_meta = {
390
+ parent: dev_stack,
391
+ loc: { file: filename, line: location[0], column: location[1] }
392
+ };
393
+ if (location[2]) {
394
+ assign_locations(element.firstChild, filename, location[2]);
395
+ }
396
+ }
397
+ function assign_locations(node, filename, locations) {
398
+ var i = 0;
399
+ var depth = 0;
400
+ while (node && i < locations.length) {
401
+ if (hydrating && node.nodeType === COMMENT_NODE) {
402
+ var comment = node;
403
+ if (comment.data[0] === HYDRATION_START)
404
+ depth += 1;
405
+ else if (comment.data[0] === HYDRATION_END)
406
+ depth -= 1;
407
+ }
408
+ if (depth === 0 && node.nodeType === ELEMENT_NODE) {
409
+ assign_location(node, filename, locations[i++]);
410
+ }
411
+ node = node.nextSibling;
412
+ }
413
+ }
414
+ // node_modules/svelte/src/internal/client/dom/elements/events.js
415
+ var event_symbol = Symbol("events");
416
+ var all_registered_events = new Set;
417
+ var root_event_handles = new Set;
418
+ function replay_events(dom) {
419
+ if (!hydrating)
420
+ return;
421
+ dom.removeAttribute("onload");
422
+ dom.removeAttribute("onerror");
423
+ const event = dom.__e;
424
+ if (event !== undefined) {
425
+ dom.__e = undefined;
426
+ queueMicrotask(() => {
427
+ if (dom.isConnected) {
428
+ dom.dispatchEvent(event);
429
+ }
430
+ });
431
+ }
432
+ }
433
+ function create_event(event_name, dom, handler, options = {}) {
434
+ function target_handler(event) {
435
+ if (!options.capture) {
436
+ handle_event_propagation.call(dom, event);
437
+ }
438
+ if (!event.cancelBubble) {
439
+ return without_reactive_context(() => {
440
+ return handler?.call(this, event);
441
+ });
442
+ }
443
+ }
444
+ if (event_name.startsWith("pointer") || event_name.startsWith("touch") || event_name === "wheel") {
445
+ queue_micro_task(() => {
446
+ dom.addEventListener(event_name, target_handler, options);
447
+ });
448
+ } else {
449
+ dom.addEventListener(event_name, target_handler, options);
450
+ }
451
+ return target_handler;
452
+ }
453
+ function event(event_name, dom, handler, capture2, passive) {
454
+ var options = { capture: capture2, passive };
455
+ var target_handler = create_event(event_name, dom, handler, options);
456
+ if (dom === document.body || dom === window || dom === document || dom instanceof HTMLMediaElement) {
457
+ teardown(() => {
458
+ dom.removeEventListener(event_name, target_handler, options);
459
+ });
460
+ }
461
+ }
462
+ function delegated(event_name, element, handler) {
463
+ (element[event_symbol] ??= {})[event_name] = handler;
464
+ }
465
+ function delegate(events) {
466
+ for (var i = 0;i < events.length; i++) {
467
+ all_registered_events.add(events[i]);
468
+ }
469
+ for (var fn of root_event_handles) {
470
+ fn(events);
471
+ }
472
+ }
473
+ var last_propagated_event = null;
474
+ function handle_event_propagation(event2) {
475
+ var handler_element = this;
476
+ var owner_document = handler_element.ownerDocument;
477
+ var event_name = event2.type;
478
+ var path = event2.composedPath?.() || [];
479
+ var current_target = path[0] || event2.target;
480
+ last_propagated_event = event2;
481
+ var path_idx = 0;
482
+ var handled_at = last_propagated_event === event2 && event2[event_symbol];
483
+ if (handled_at) {
484
+ var at_idx = path.indexOf(handled_at);
485
+ if (at_idx !== -1 && (handler_element === document || handler_element === window)) {
486
+ event2[event_symbol] = handler_element;
487
+ return;
488
+ }
489
+ var handler_idx = path.indexOf(handler_element);
490
+ if (handler_idx === -1) {
491
+ return;
492
+ }
493
+ if (at_idx <= handler_idx) {
494
+ path_idx = at_idx;
495
+ }
496
+ }
497
+ current_target = path[path_idx] || event2.target;
498
+ if (current_target === handler_element)
499
+ return;
500
+ define_property(event2, "currentTarget", {
501
+ configurable: true,
502
+ get() {
503
+ return current_target || owner_document;
504
+ }
505
+ });
506
+ var previous_reaction = active_reaction;
507
+ var previous_effect = active_effect;
508
+ set_active_reaction(null);
509
+ set_active_effect(null);
510
+ try {
511
+ var throw_error;
512
+ var other_errors = [];
513
+ while (current_target !== null) {
514
+ var parent_element = current_target.assignedSlot || current_target.parentNode || current_target.host || null;
515
+ try {
516
+ var delegated2 = current_target[event_symbol]?.[event_name];
517
+ if (delegated2 != null && (!current_target.disabled || event2.target === current_target)) {
518
+ delegated2.call(current_target, event2);
519
+ }
520
+ } catch (error) {
521
+ if (throw_error) {
522
+ other_errors.push(error);
523
+ } else {
524
+ throw_error = error;
525
+ }
526
+ }
527
+ if (event2.cancelBubble || parent_element === handler_element || parent_element === null) {
528
+ break;
529
+ }
530
+ current_target = parent_element;
531
+ }
532
+ if (throw_error) {
533
+ for (let error of other_errors) {
534
+ queueMicrotask(() => {
535
+ throw error;
536
+ });
537
+ }
538
+ throw throw_error;
539
+ }
540
+ } finally {
541
+ event2[event_symbol] = handler_element;
542
+ delete event2.currentTarget;
543
+ set_active_reaction(previous_reaction);
544
+ set_active_effect(previous_effect);
545
+ }
546
+ }
547
+ function apply(thunk, element, args, component, loc, has_side_effects = false, remove_parens = false) {
548
+ let handler;
549
+ let error;
550
+ try {
551
+ handler = thunk();
552
+ } catch (e) {
553
+ error = e;
554
+ }
555
+ if (typeof handler !== "function" && (has_side_effects || handler != null || error)) {
556
+ const filename = component?.[FILENAME];
557
+ const location = loc ? ` at ${filename}:${loc[0]}:${loc[1]}` : ` in ${filename}`;
558
+ const phase = args[0]?.eventPhase < Event.BUBBLING_PHASE ? "capture" : "";
559
+ const event_name = args[0]?.type + phase;
560
+ const description = `\`${event_name}\` handler${location}`;
561
+ const suggestion = remove_parens ? "remove the trailing `()`" : "add a leading `() =>`";
562
+ event_handler_invalid(description, suggestion);
563
+ if (error) {
564
+ throw error;
565
+ }
566
+ }
567
+ handler?.apply(element, args);
568
+ }
569
+
570
+ // node_modules/svelte/src/internal/client/dom/reconciler.js
571
+ var policy = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", {
572
+ createHTML: (html) => {
573
+ return html;
574
+ }
575
+ });
576
+ function create_trusted_html(html) {
577
+ return policy?.createHTML(html) ?? html;
578
+ }
579
+ function create_fragment_from_html(html) {
580
+ var elem = create_element("template");
581
+ elem.innerHTML = create_trusted_html(html.replaceAll("<!>", "<!---->"));
582
+ return elem.content;
583
+ }
584
+
585
+ // node_modules/svelte/src/internal/client/dom/template.js
586
+ var TEMPLATE_TAG = IS_XHTML ? "template" : "TEMPLATE";
587
+ var SCRIPT_TAG = IS_XHTML ? "script" : "SCRIPT";
588
+ function assign_nodes(start, end) {
589
+ var effect2 = active_effect;
590
+ if (effect2.nodes === null) {
591
+ effect2.nodes = { start, end, a: null, t: null };
592
+ }
593
+ }
594
+ function from_html(content, flags) {
595
+ var is_fragment = (flags & TEMPLATE_FRAGMENT) !== 0;
596
+ var use_import_node = (flags & TEMPLATE_USE_IMPORT_NODE) !== 0;
597
+ var node;
598
+ var has_start = !content.startsWith("<!>");
599
+ return () => {
600
+ if (hydrating) {
601
+ assign_nodes(hydrate_node, null);
602
+ return hydrate_node;
603
+ }
604
+ if (node === undefined) {
605
+ node = create_fragment_from_html(has_start ? content : "<!>" + content);
606
+ if (!is_fragment)
607
+ node = get_first_child(node);
608
+ }
609
+ var clone = use_import_node || is_firefox ? document.importNode(node, true) : node.cloneNode(true);
610
+ if (is_fragment) {
611
+ var start = get_first_child(clone);
612
+ var end = clone.lastChild;
613
+ assign_nodes(start, end);
614
+ } else {
615
+ assign_nodes(clone, clone);
616
+ }
617
+ return clone;
618
+ };
619
+ }
620
+ function from_namespace(content, flags, ns = "svg") {
621
+ var has_start = !content.startsWith("<!>");
622
+ var is_fragment = (flags & TEMPLATE_FRAGMENT) !== 0;
623
+ var wrapped = `<${ns}>${has_start ? content : "<!>" + content}</${ns}>`;
624
+ var node;
625
+ return () => {
626
+ if (hydrating) {
627
+ assign_nodes(hydrate_node, null);
628
+ return hydrate_node;
629
+ }
630
+ if (!node) {
631
+ var fragment = create_fragment_from_html(wrapped);
632
+ var root = get_first_child(fragment);
633
+ if (is_fragment) {
634
+ node = document.createDocumentFragment();
635
+ while (get_first_child(root)) {
636
+ node.appendChild(get_first_child(root));
637
+ }
638
+ } else {
639
+ node = get_first_child(root);
640
+ }
641
+ }
642
+ var clone = node.cloneNode(true);
643
+ if (is_fragment) {
644
+ var start = get_first_child(clone);
645
+ var end = clone.lastChild;
646
+ assign_nodes(start, end);
647
+ } else {
648
+ assign_nodes(clone, clone);
649
+ }
650
+ return clone;
651
+ };
652
+ }
653
+ function from_svg(content, flags) {
654
+ return from_namespace(content, flags, "svg");
655
+ }
656
+ function from_mathml(content, flags) {
657
+ return from_namespace(content, flags, "math");
658
+ }
659
+ function fragment_from_tree(structure, ns) {
660
+ var fragment = create_fragment();
661
+ for (var item of structure) {
662
+ if (typeof item === "string") {
663
+ fragment.append(create_text(item));
664
+ continue;
665
+ }
666
+ if (item === undefined || item[0][0] === "/") {
667
+ fragment.append(create_comment(item ? item[0].slice(3) : ""));
668
+ continue;
669
+ }
670
+ const [name, attributes, ...children] = item;
671
+ const namespace = name === "svg" ? NAMESPACE_SVG : name === "math" ? NAMESPACE_MATHML : ns;
672
+ var element = create_element(name, namespace, attributes?.is);
673
+ for (var key in attributes) {
674
+ set_attribute(element, key, attributes[key]);
675
+ }
676
+ if (children.length > 0) {
677
+ var target = element.nodeName === TEMPLATE_TAG ? element.content : element;
678
+ target.append(fragment_from_tree(children, element.nodeName === "foreignObject" ? undefined : namespace));
679
+ }
680
+ fragment.append(element);
681
+ }
682
+ return fragment;
683
+ }
684
+ function from_tree(structure, flags) {
685
+ var is_fragment = (flags & TEMPLATE_FRAGMENT) !== 0;
686
+ var use_import_node = (flags & TEMPLATE_USE_IMPORT_NODE) !== 0;
687
+ var node;
688
+ return () => {
689
+ if (hydrating) {
690
+ assign_nodes(hydrate_node, null);
691
+ return hydrate_node;
692
+ }
693
+ if (node === undefined) {
694
+ const ns = (flags & TEMPLATE_USE_SVG) !== 0 ? NAMESPACE_SVG : (flags & TEMPLATE_USE_MATHML) !== 0 ? NAMESPACE_MATHML : undefined;
695
+ node = fragment_from_tree(structure, ns);
696
+ if (!is_fragment)
697
+ node = get_first_child(node);
698
+ }
699
+ var clone = use_import_node || is_firefox ? document.importNode(node, true) : node.cloneNode(true);
700
+ if (is_fragment) {
701
+ var start = get_first_child(clone);
702
+ var end = clone.lastChild;
703
+ assign_nodes(start, end);
704
+ } else {
705
+ assign_nodes(clone, clone);
706
+ }
707
+ return clone;
708
+ };
709
+ }
710
+ function with_script(fn) {
711
+ return () => run_scripts(fn());
712
+ }
713
+ function run_scripts(node) {
714
+ if (hydrating)
715
+ return node;
716
+ const is_fragment = node.nodeType === DOCUMENT_FRAGMENT_NODE;
717
+ const scripts = node.nodeName === SCRIPT_TAG ? [node] : node.querySelectorAll("script");
718
+ const effect2 = active_effect;
719
+ for (const script of scripts) {
720
+ const clone = create_element("script");
721
+ for (var attribute of script.attributes) {
722
+ clone.setAttribute(attribute.name, attribute.value);
723
+ }
724
+ clone.textContent = script.textContent;
725
+ if (is_fragment ? node.firstChild === script : node === script) {
726
+ effect2.nodes.start = clone;
727
+ }
728
+ if (is_fragment ? node.lastChild === script : node === script) {
729
+ effect2.nodes.end = clone;
730
+ }
731
+ script.replaceWith(clone);
732
+ }
733
+ return node;
734
+ }
735
+ function text(value = "") {
736
+ if (!hydrating) {
737
+ var t = create_text(value + "");
738
+ assign_nodes(t, t);
739
+ return t;
740
+ }
741
+ var node = hydrate_node;
742
+ if (node.nodeType !== TEXT_NODE) {
743
+ node.before(node = create_text());
744
+ set_hydrate_node(node);
745
+ } else {
746
+ merge_text_nodes(node);
747
+ }
748
+ assign_nodes(node, node);
749
+ return node;
750
+ }
751
+ function comment() {
752
+ if (hydrating) {
753
+ assign_nodes(hydrate_node, null);
754
+ return hydrate_node;
755
+ }
756
+ var frag = document.createDocumentFragment();
757
+ var start = document.createComment("");
758
+ var anchor = create_text();
759
+ frag.append(start, anchor);
760
+ assign_nodes(start, anchor);
761
+ return frag;
762
+ }
763
+ function append(anchor, dom) {
764
+ if (hydrating) {
765
+ var effect2 = active_effect;
766
+ if ((effect2.f & REACTION_RAN) === 0 || effect2.nodes.end === null) {
767
+ effect2.nodes.end = hydrate_node;
768
+ }
769
+ hydrate_next();
770
+ return;
771
+ }
772
+ if (anchor === null) {
773
+ return;
774
+ }
775
+ anchor.before(dom);
776
+ }
777
+ function props_id() {
778
+ if (hydrating && hydrate_node && hydrate_node.nodeType === COMMENT_NODE && hydrate_node.textContent?.startsWith(`$`)) {
779
+ const id = hydrate_node.textContent.substring(1);
780
+ hydrate_next();
781
+ return id;
782
+ }
783
+ (window.__svelte ??= {}).uid ??= 1;
784
+ return `c${window.__svelte.uid++}`;
785
+ }
786
+
787
+ // node_modules/svelte/src/internal/client/render.js
788
+ var should_intro = true;
789
+ function set_should_intro(value) {
790
+ should_intro = value;
791
+ }
792
+ function set_text(text2, value) {
793
+ var str = value == null ? "" : typeof value === "object" ? `${value}` : value;
794
+ if (str !== (text2.__t ??= text2.nodeValue)) {
795
+ text2.__t = str;
796
+ text2.nodeValue = `${str}`;
797
+ }
798
+ }
799
+ function mount(component, options) {
800
+ return _mount(component, options);
801
+ }
802
+ function hydrate(component, options) {
803
+ init_operations();
804
+ options.intro = options.intro ?? false;
805
+ const target = options.target;
806
+ const was_hydrating = hydrating;
807
+ const previous_hydrate_node = hydrate_node;
808
+ try {
809
+ var anchor = get_first_child(target);
810
+ while (anchor && (anchor.nodeType !== COMMENT_NODE || anchor.data !== HYDRATION_START)) {
811
+ anchor = get_next_sibling(anchor);
812
+ }
813
+ if (!anchor) {
814
+ throw HYDRATION_ERROR;
815
+ }
816
+ set_hydrating(true);
817
+ set_hydrate_node(anchor);
818
+ const instance = _mount(component, { ...options, anchor });
819
+ set_hydrating(false);
820
+ return instance;
821
+ } catch (error) {
822
+ if (error instanceof Error && error.message.split(`
823
+ `).some((line) => line.startsWith("https://svelte.dev/e/"))) {
824
+ throw error;
825
+ }
826
+ if (error !== HYDRATION_ERROR) {
827
+ console.warn("Failed to hydrate: ", error);
828
+ }
829
+ if (options.recover === false) {
830
+ hydration_failed();
831
+ }
832
+ init_operations();
833
+ clear_text_content(target);
834
+ set_hydrating(false);
835
+ return mount(component, options);
836
+ } finally {
837
+ set_hydrating(was_hydrating);
838
+ set_hydrate_node(previous_hydrate_node);
839
+ }
840
+ }
841
+ var listeners = new Map;
842
+ function _mount(Component, { target, anchor, props = {}, events, context, intro = true, transformError }) {
843
+ init_operations();
844
+ var component = undefined;
845
+ var unmount = component_root(() => {
846
+ var anchor_node = anchor ?? target.appendChild(create_text());
847
+ boundary(anchor_node, {
848
+ pending: () => {}
849
+ }, (anchor_node2) => {
850
+ push({});
851
+ var ctx = component_context;
852
+ if (context)
853
+ ctx.c = context;
854
+ if (events) {
855
+ props.$$events = events;
856
+ }
857
+ if (hydrating) {
858
+ assign_nodes(anchor_node2, null);
859
+ }
860
+ should_intro = intro;
861
+ component = Component(anchor_node2, props) || {};
862
+ should_intro = true;
863
+ if (hydrating) {
864
+ active_effect.nodes.end = hydrate_node;
865
+ if (hydrate_node === null || hydrate_node.nodeType !== COMMENT_NODE || hydrate_node.data !== HYDRATION_END) {
866
+ hydration_mismatch();
867
+ throw HYDRATION_ERROR;
868
+ }
869
+ }
870
+ pop();
871
+ }, transformError);
872
+ var registered_events = new Set;
873
+ var event_handle = (events2) => {
874
+ for (var i = 0;i < events2.length; i++) {
875
+ var event_name = events2[i];
876
+ if (registered_events.has(event_name))
877
+ continue;
878
+ registered_events.add(event_name);
879
+ var passive = is_passive_event(event_name);
880
+ for (const node of [target, document]) {
881
+ var counts = listeners.get(node);
882
+ if (counts === undefined) {
883
+ counts = new Map;
884
+ listeners.set(node, counts);
885
+ }
886
+ var count = counts.get(event_name);
887
+ if (count === undefined) {
888
+ node.addEventListener(event_name, handle_event_propagation, { passive });
889
+ counts.set(event_name, 1);
890
+ } else {
891
+ counts.set(event_name, count + 1);
892
+ }
893
+ }
894
+ }
895
+ };
896
+ event_handle(array_from(all_registered_events));
897
+ root_event_handles.add(event_handle);
898
+ return () => {
899
+ for (var event_name of registered_events) {
900
+ for (const node of [target, document]) {
901
+ var counts = listeners.get(node);
902
+ var count = counts.get(event_name);
903
+ if (--count == 0) {
904
+ node.removeEventListener(event_name, handle_event_propagation);
905
+ counts.delete(event_name);
906
+ if (counts.size === 0) {
907
+ listeners.delete(node);
908
+ }
909
+ } else {
910
+ counts.set(event_name, count);
911
+ }
912
+ }
913
+ }
914
+ root_event_handles.delete(event_handle);
915
+ if (anchor_node !== anchor) {
916
+ anchor_node.parentNode?.removeChild(anchor_node);
917
+ }
918
+ };
919
+ });
920
+ mounted_components.set(component, unmount);
921
+ return component;
922
+ }
923
+ var mounted_components = new WeakMap;
924
+ function unmount(component, options) {
925
+ const fn = mounted_components.get(component);
926
+ if (fn) {
927
+ mounted_components.delete(component);
928
+ return fn(options);
929
+ }
930
+ if (true_default) {
931
+ if (STATE_SYMBOL in component) {
932
+ state_proxy_unmount();
933
+ } else {
934
+ lifecycle_double_unmount();
935
+ }
936
+ }
937
+ return Promise.resolve();
938
+ }
939
+
940
+ // node_modules/svelte/src/internal/client/dev/hmr.js
941
+ function hmr(fn) {
942
+ const current = source(fn);
943
+ function wrapper(anchor, props) {
944
+ let component = {};
945
+ let instance = {};
946
+ let effect2;
947
+ let ran = false;
948
+ block(() => {
949
+ if (component === (component = get(current))) {
950
+ return;
951
+ }
952
+ if (effect2) {
953
+ for (var k in instance)
954
+ delete instance[k];
955
+ destroy_effect(effect2);
956
+ }
957
+ effect2 = branch(() => {
958
+ if (ran)
959
+ set_should_intro(false);
960
+ var result = new.target ? new component(anchor, props) : component(anchor, props);
961
+ if (result) {
962
+ Object.defineProperties(instance, Object.getOwnPropertyDescriptors(result));
963
+ }
964
+ if (ran)
965
+ set_should_intro(true);
966
+ });
967
+ active_effect.nodes = effect2.nodes;
968
+ }, EFFECT_TRANSPARENT);
969
+ ran = true;
970
+ if (hydrating) {
971
+ anchor = hydrate_node;
972
+ }
973
+ return instance;
974
+ }
975
+ wrapper[FILENAME] = fn[FILENAME];
976
+ wrapper[HMR] = {
977
+ fn,
978
+ current,
979
+ update: (incoming) => {
980
+ set(wrapper[HMR].current, incoming[HMR].fn);
981
+ incoming[HMR].current = wrapper[HMR].current;
982
+ }
983
+ };
984
+ return wrapper;
985
+ }
986
+ // node_modules/svelte/src/internal/client/dev/ownership.js
987
+ function create_ownership_validator(props) {
988
+ const component = component_context?.function;
989
+ const parent = component_context?.p?.function;
990
+ return {
991
+ mutation: (prop, path, result, line, column) => {
992
+ const name = path[0];
993
+ if (is_bound_or_unset(props, name) || !parent) {
994
+ return result;
995
+ }
996
+ let value = props;
997
+ for (let i = 0;i < path.length - 1; i++) {
998
+ value = value[path[i]];
999
+ if (!value?.[STATE_SYMBOL]) {
1000
+ return result;
1001
+ }
1002
+ }
1003
+ const location = sanitize_location(`${component[FILENAME]}:${line}:${column}`);
1004
+ ownership_invalid_mutation(name, location, prop, parent[FILENAME]);
1005
+ return result;
1006
+ },
1007
+ binding: (key, child_component, value) => {
1008
+ if (!is_bound_or_unset(props, key) && parent && value()?.[STATE_SYMBOL]) {
1009
+ ownership_invalid_binding(component[FILENAME], key, child_component[FILENAME], parent[FILENAME]);
1010
+ }
1011
+ }
1012
+ };
1013
+ }
1014
+ function is_bound_or_unset(props, prop_name) {
1015
+ const is_entry_props = STATE_SYMBOL in props || LEGACY_PROPS in props;
1016
+ return !!get_descriptor(props, prop_name)?.set || is_entry_props && prop_name in props || !(prop_name in props);
1017
+ }
1018
+ // node_modules/svelte/src/internal/client/dev/legacy.js
1019
+ function check_target(target) {
1020
+ if (target) {
1021
+ component_api_invalid_new(target[FILENAME] ?? "a component", target.name);
1022
+ }
1023
+ }
1024
+ function legacy_api() {
1025
+ const component = component_context?.function;
1026
+ function error(method) {
1027
+ component_api_changed(method, component[FILENAME]);
1028
+ }
1029
+ return {
1030
+ $destroy: () => error("$destroy()"),
1031
+ $on: () => error("$on(...)"),
1032
+ $set: () => error("$set(...)")
1033
+ };
1034
+ }
1035
+ // node_modules/svelte/src/internal/client/dev/inspect.js
1036
+ function inspect(get_value, inspector, show_stack = false) {
1037
+ validate_effect("$inspect");
1038
+ let initial = true;
1039
+ let error = UNINITIALIZED;
1040
+ eager_effect(() => {
1041
+ try {
1042
+ var value = get_value();
1043
+ } catch (e) {
1044
+ error = e;
1045
+ return;
1046
+ }
1047
+ var snap = snapshot(value, true, true);
1048
+ untrack(() => {
1049
+ if (show_stack) {
1050
+ inspector(...snap);
1051
+ if (!initial) {
1052
+ const stack = get_error("$inspect(...)");
1053
+ if (stack) {
1054
+ console.groupCollapsed("stack trace");
1055
+ console.log(stack);
1056
+ console.groupEnd();
1057
+ }
1058
+ }
1059
+ } else {
1060
+ inspector(initial ? "init" : "update", ...snap);
1061
+ }
1062
+ });
1063
+ initial = false;
1064
+ });
1065
+ render_effect(() => {
1066
+ try {
1067
+ get_value();
1068
+ } catch {}
1069
+ if (error !== UNINITIALIZED) {
1070
+ console.error(error);
1071
+ error = UNINITIALIZED;
1072
+ }
1073
+ });
1074
+ }
1075
+ // node_modules/svelte/src/internal/client/dom/blocks/async.js
1076
+ function async(node, blockers = [], expressions = [], fn) {
1077
+ var was_hydrating = hydrating;
1078
+ var end = null;
1079
+ if (was_hydrating) {
1080
+ hydrate_next();
1081
+ end = skip_nodes(false);
1082
+ }
1083
+ if (expressions.length === 0 && blockers.every((b) => b.settled)) {
1084
+ fn(node);
1085
+ if (was_hydrating) {
1086
+ set_hydrate_node(end);
1087
+ }
1088
+ return;
1089
+ }
1090
+ const decrement_pending = increment_pending();
1091
+ if (was_hydrating) {
1092
+ var previous_hydrate_node = hydrate_node;
1093
+ set_hydrate_node(end);
1094
+ }
1095
+ flatten(blockers, [], expressions, (values) => {
1096
+ if (was_hydrating) {
1097
+ set_hydrating(true);
1098
+ set_hydrate_node(previous_hydrate_node);
1099
+ }
1100
+ try {
1101
+ for (const d of values)
1102
+ get(d);
1103
+ fn(node, ...values);
1104
+ } finally {
1105
+ if (was_hydrating) {
1106
+ set_hydrating(false);
1107
+ }
1108
+ decrement_pending();
1109
+ }
1110
+ });
1111
+ }
1112
+ // node_modules/svelte/src/internal/client/dev/validation.js
1113
+ function validate_snippet_args(anchor, ...args) {
1114
+ if (typeof anchor !== "object" || !(anchor instanceof Node)) {
1115
+ invalid_snippet_arguments();
1116
+ }
1117
+ for (let arg of args) {
1118
+ if (typeof arg !== "function") {
1119
+ invalid_snippet_arguments();
1120
+ }
1121
+ }
1122
+ }
1123
+ // node_modules/svelte/src/internal/client/dom/blocks/branches.js
1124
+ class BranchManager {
1125
+ anchor;
1126
+ #batches = new Map;
1127
+ #onscreen = new Map;
1128
+ #offscreen = new Map;
1129
+ #outroing = new Set;
1130
+ #transition = true;
1131
+ constructor(anchor, transition = true) {
1132
+ this.anchor = anchor;
1133
+ this.#transition = transition;
1134
+ }
1135
+ #commit = (batch) => {
1136
+ if (!this.#batches.has(batch))
1137
+ return;
1138
+ var key = this.#batches.get(batch);
1139
+ var onscreen = this.#onscreen.get(key);
1140
+ if (onscreen) {
1141
+ resume_effect(onscreen);
1142
+ this.#outroing.delete(key);
1143
+ } else {
1144
+ var offscreen = this.#offscreen.get(key);
1145
+ if (offscreen) {
1146
+ this.#onscreen.set(key, offscreen.effect);
1147
+ this.#offscreen.delete(key);
1148
+ offscreen.fragment.lastChild.remove();
1149
+ this.anchor.before(offscreen.fragment);
1150
+ onscreen = offscreen.effect;
1151
+ }
1152
+ }
1153
+ for (const [b, k] of this.#batches) {
1154
+ this.#batches.delete(b);
1155
+ if (b === batch) {
1156
+ break;
1157
+ }
1158
+ const offscreen2 = this.#offscreen.get(k);
1159
+ if (offscreen2) {
1160
+ destroy_effect(offscreen2.effect);
1161
+ this.#offscreen.delete(k);
1162
+ }
1163
+ }
1164
+ for (const [k, effect2] of this.#onscreen) {
1165
+ if (k === key || this.#outroing.has(k))
1166
+ continue;
1167
+ const on_destroy = () => {
1168
+ const keys = Array.from(this.#batches.values());
1169
+ if (keys.includes(k)) {
1170
+ var fragment = document.createDocumentFragment();
1171
+ move_effect(effect2, fragment);
1172
+ fragment.append(create_text());
1173
+ this.#offscreen.set(k, { effect: effect2, fragment });
1174
+ } else {
1175
+ destroy_effect(effect2);
1176
+ }
1177
+ this.#outroing.delete(k);
1178
+ this.#onscreen.delete(k);
1179
+ };
1180
+ if (this.#transition || !onscreen) {
1181
+ this.#outroing.add(k);
1182
+ pause_effect(effect2, on_destroy, false);
1183
+ } else {
1184
+ on_destroy();
1185
+ }
1186
+ }
1187
+ };
1188
+ #discard = (batch) => {
1189
+ this.#batches.delete(batch);
1190
+ const keys = Array.from(this.#batches.values());
1191
+ for (const [k, branch2] of this.#offscreen) {
1192
+ if (!keys.includes(k)) {
1193
+ destroy_effect(branch2.effect);
1194
+ this.#offscreen.delete(k);
1195
+ }
1196
+ }
1197
+ };
1198
+ ensure(key, fn) {
1199
+ var batch = current_batch;
1200
+ var defer = should_defer_append();
1201
+ if (fn && !this.#onscreen.has(key) && !this.#offscreen.has(key)) {
1202
+ if (defer) {
1203
+ var fragment = document.createDocumentFragment();
1204
+ var target = create_text();
1205
+ fragment.append(target);
1206
+ this.#offscreen.set(key, {
1207
+ effect: branch(() => fn(target)),
1208
+ fragment
1209
+ });
1210
+ } else {
1211
+ this.#onscreen.set(key, branch(() => fn(this.anchor)));
1212
+ }
1213
+ }
1214
+ this.#batches.set(batch, key);
1215
+ if (defer) {
1216
+ for (const [k, effect2] of this.#onscreen) {
1217
+ if (k === key) {
1218
+ batch.unskip_effect(effect2);
1219
+ } else {
1220
+ batch.skip_effect(effect2);
1221
+ }
1222
+ }
1223
+ for (const [k, branch2] of this.#offscreen) {
1224
+ if (k === key) {
1225
+ batch.unskip_effect(branch2.effect);
1226
+ } else {
1227
+ batch.skip_effect(branch2.effect);
1228
+ }
1229
+ }
1230
+ batch.oncommit(this.#commit);
1231
+ batch.ondiscard(this.#discard);
1232
+ } else {
1233
+ if (hydrating) {
1234
+ this.anchor = hydrate_node;
1235
+ }
1236
+ this.#commit(batch);
1237
+ }
1238
+ }
1239
+ }
1240
+
1241
+ // node_modules/svelte/src/internal/client/dom/blocks/await.js
1242
+ var PENDING = 0;
1243
+ var THEN = 1;
1244
+ var CATCH = 2;
1245
+ function await_block(node, get_input, pending_fn, then_fn, catch_fn) {
1246
+ if (hydrating) {
1247
+ hydrate_next();
1248
+ }
1249
+ var runes = is_runes();
1250
+ var v = UNINITIALIZED;
1251
+ var value = runes ? source(v) : mutable_source(v, false, false);
1252
+ var error = runes ? source(v) : mutable_source(v, false, false);
1253
+ var branches = new BranchManager(node);
1254
+ block(() => {
1255
+ var batch = current_batch;
1256
+ batch.deactivate();
1257
+ var input = get_input();
1258
+ batch.activate();
1259
+ var destroyed = false;
1260
+ let mismatch = hydrating && is_promise(input) === (node.data === HYDRATION_START_ELSE);
1261
+ if (mismatch) {
1262
+ set_hydrate_node(skip_nodes());
1263
+ set_hydrating(false);
1264
+ }
1265
+ if (is_promise(input)) {
1266
+ var restore = capture();
1267
+ var resolved = false;
1268
+ const resolve = (fn) => {
1269
+ if (destroyed)
1270
+ return;
1271
+ resolved = true;
1272
+ restore(false);
1273
+ Batch.ensure();
1274
+ if (hydrating) {
1275
+ set_hydrating(false);
1276
+ }
1277
+ try {
1278
+ fn();
1279
+ } finally {
1280
+ unset_context(false);
1281
+ if (!is_flushing_sync)
1282
+ flushSync();
1283
+ }
1284
+ };
1285
+ input.then((v2) => {
1286
+ resolve(() => {
1287
+ internal_set(value, v2);
1288
+ branches.ensure(THEN, then_fn && ((target) => then_fn(target, value)));
1289
+ });
1290
+ }, (e) => {
1291
+ resolve(() => {
1292
+ internal_set(error, e);
1293
+ branches.ensure(CATCH, catch_fn && ((target) => catch_fn(target, error)));
1294
+ if (!catch_fn) {
1295
+ throw error.v;
1296
+ }
1297
+ });
1298
+ });
1299
+ if (hydrating) {
1300
+ branches.ensure(PENDING, pending_fn);
1301
+ } else {
1302
+ queue_micro_task(() => {
1303
+ if (!resolved) {
1304
+ resolve(() => {
1305
+ branches.ensure(PENDING, pending_fn);
1306
+ });
1307
+ }
1308
+ });
1309
+ }
1310
+ } else {
1311
+ internal_set(value, input);
1312
+ branches.ensure(THEN, then_fn && ((target) => then_fn(target, value)));
1313
+ }
1314
+ if (mismatch) {
1315
+ set_hydrating(true);
1316
+ }
1317
+ return () => {
1318
+ destroyed = true;
1319
+ };
1320
+ });
1321
+ }
1322
+ // node_modules/svelte/src/internal/client/dom/blocks/if.js
1323
+ function if_block(node, fn, elseif = false) {
1324
+ var marker;
1325
+ if (hydrating) {
1326
+ marker = hydrate_node;
1327
+ hydrate_next();
1328
+ }
1329
+ var branches = new BranchManager(node);
1330
+ var flags = elseif ? EFFECT_TRANSPARENT : 0;
1331
+ function update_branch(key, fn2) {
1332
+ if (hydrating) {
1333
+ var data = read_hydration_instruction(marker);
1334
+ if (key !== parseInt(data.substring(1))) {
1335
+ var anchor = skip_nodes();
1336
+ set_hydrate_node(anchor);
1337
+ branches.anchor = anchor;
1338
+ set_hydrating(false);
1339
+ branches.ensure(key, fn2);
1340
+ set_hydrating(true);
1341
+ return;
1342
+ }
1343
+ }
1344
+ branches.ensure(key, fn2);
1345
+ }
1346
+ block(() => {
1347
+ var has_branch = false;
1348
+ fn((fn2, key = 0) => {
1349
+ has_branch = true;
1350
+ update_branch(key, fn2);
1351
+ });
1352
+ if (!has_branch) {
1353
+ update_branch(-1, null);
1354
+ }
1355
+ }, flags);
1356
+ }
1357
+ // node_modules/svelte/src/internal/client/dom/blocks/key.js
1358
+ var NAN = Symbol("NaN");
1359
+ function key(node, get_key, render_fn) {
1360
+ if (hydrating) {
1361
+ hydrate_next();
1362
+ }
1363
+ var branches = new BranchManager(node);
1364
+ var legacy = !is_runes();
1365
+ block(() => {
1366
+ var key2 = get_key();
1367
+ if (key2 !== key2) {
1368
+ key2 = NAN;
1369
+ }
1370
+ if (legacy && key2 !== null && typeof key2 === "object") {
1371
+ key2 = {};
1372
+ }
1373
+ branches.ensure(key2, render_fn);
1374
+ });
1375
+ }
1376
+ // node_modules/svelte/src/internal/client/dom/blocks/css-props.js
1377
+ function css_props(element, get_styles) {
1378
+ if (hydrating) {
1379
+ set_hydrate_node(get_first_child(element));
1380
+ }
1381
+ render_effect(() => {
1382
+ var styles = get_styles();
1383
+ for (var key2 in styles) {
1384
+ var value = styles[key2];
1385
+ if (value) {
1386
+ element.style.setProperty(key2, value);
1387
+ } else {
1388
+ element.style.removeProperty(key2);
1389
+ }
1390
+ }
1391
+ });
1392
+ }
1393
+ // node_modules/svelte/src/internal/client/dom/blocks/each.js
1394
+ function index(_, i) {
1395
+ return i;
1396
+ }
1397
+ function pause_effects(state, to_destroy, controlled_anchor) {
1398
+ var transitions = [];
1399
+ var length = to_destroy.length;
1400
+ var group;
1401
+ var remaining = to_destroy.length;
1402
+ for (var i = 0;i < length; i++) {
1403
+ let effect2 = to_destroy[i];
1404
+ pause_effect(effect2, () => {
1405
+ if (group) {
1406
+ group.pending.delete(effect2);
1407
+ group.done.add(effect2);
1408
+ if (group.pending.size === 0) {
1409
+ var groups = state.outrogroups;
1410
+ destroy_effects(state, array_from(group.done));
1411
+ groups.delete(group);
1412
+ if (groups.size === 0) {
1413
+ state.outrogroups = null;
1414
+ }
1415
+ }
1416
+ } else {
1417
+ remaining -= 1;
1418
+ }
1419
+ }, false);
1420
+ }
1421
+ if (remaining === 0) {
1422
+ var fast_path = transitions.length === 0 && controlled_anchor !== null;
1423
+ if (fast_path) {
1424
+ var anchor = controlled_anchor;
1425
+ var parent_node = anchor.parentNode;
1426
+ clear_text_content(parent_node);
1427
+ parent_node.append(anchor);
1428
+ state.items.clear();
1429
+ }
1430
+ destroy_effects(state, to_destroy, !fast_path);
1431
+ } else {
1432
+ group = {
1433
+ pending: new Set(to_destroy),
1434
+ done: new Set
1435
+ };
1436
+ (state.outrogroups ??= new Set).add(group);
1437
+ }
1438
+ }
1439
+ function destroy_effects(state, to_destroy, remove_dom = true) {
1440
+ var preserved_effects;
1441
+ if (state.pending.size > 0) {
1442
+ preserved_effects = new Set;
1443
+ for (const keys of state.pending.values()) {
1444
+ for (const key2 of keys) {
1445
+ preserved_effects.add(state.items.get(key2).e);
1446
+ }
1447
+ }
1448
+ }
1449
+ for (var i = 0;i < to_destroy.length; i++) {
1450
+ var e = to_destroy[i];
1451
+ if (preserved_effects?.has(e)) {
1452
+ e.f |= EFFECT_OFFSCREEN;
1453
+ const fragment = document.createDocumentFragment();
1454
+ move_effect(e, fragment);
1455
+ } else {
1456
+ destroy_effect(to_destroy[i], remove_dom);
1457
+ }
1458
+ }
1459
+ }
1460
+ var offscreen_anchor;
1461
+ function each(node, flags, get_collection, get_key, render_fn, fallback_fn = null) {
1462
+ var anchor = node;
1463
+ var items = new Map;
1464
+ var is_controlled = (flags & EACH_IS_CONTROLLED) !== 0;
1465
+ if (is_controlled) {
1466
+ var parent_node = node;
1467
+ anchor = hydrating ? set_hydrate_node(get_first_child(parent_node)) : parent_node.appendChild(create_text());
1468
+ }
1469
+ if (hydrating) {
1470
+ hydrate_next();
1471
+ }
1472
+ var fallback = null;
1473
+ var each_array = derived_safe_equal(() => {
1474
+ var collection = get_collection();
1475
+ return is_array(collection) ? collection : collection == null ? [] : array_from(collection);
1476
+ });
1477
+ var array;
1478
+ var pending = new Map;
1479
+ var first_run = true;
1480
+ function commit(batch) {
1481
+ if ((state.effect.f & DESTROYED) !== 0) {
1482
+ return;
1483
+ }
1484
+ state.pending.delete(batch);
1485
+ state.fallback = fallback;
1486
+ reconcile(state, array, anchor, flags, get_key);
1487
+ if (fallback !== null) {
1488
+ if (array.length === 0) {
1489
+ if ((fallback.f & EFFECT_OFFSCREEN) === 0) {
1490
+ resume_effect(fallback);
1491
+ } else {
1492
+ fallback.f ^= EFFECT_OFFSCREEN;
1493
+ move(fallback, null, anchor);
1494
+ }
1495
+ } else {
1496
+ pause_effect(fallback, () => {
1497
+ fallback = null;
1498
+ });
1499
+ }
1500
+ }
1501
+ }
1502
+ function discard(batch) {
1503
+ state.pending.delete(batch);
1504
+ }
1505
+ var effect2 = block(() => {
1506
+ array = get(each_array);
1507
+ var length = array.length;
1508
+ let mismatch = false;
1509
+ if (hydrating) {
1510
+ var is_else = read_hydration_instruction(anchor) === HYDRATION_START_ELSE;
1511
+ if (is_else !== (length === 0)) {
1512
+ anchor = skip_nodes();
1513
+ set_hydrate_node(anchor);
1514
+ set_hydrating(false);
1515
+ mismatch = true;
1516
+ }
1517
+ }
1518
+ var keys = new Set;
1519
+ var batch = current_batch;
1520
+ var defer = should_defer_append();
1521
+ for (var index2 = 0;index2 < length; index2 += 1) {
1522
+ if (hydrating && hydrate_node.nodeType === COMMENT_NODE && hydrate_node.data === HYDRATION_END) {
1523
+ anchor = hydrate_node;
1524
+ mismatch = true;
1525
+ set_hydrating(false);
1526
+ }
1527
+ var value = array[index2];
1528
+ var key2 = get_key(value, index2);
1529
+ if (true_default) {
1530
+ var key_again = get_key(value, index2);
1531
+ if (key2 !== key_again) {
1532
+ each_key_volatile(String(index2), String(key2), String(key_again));
1533
+ }
1534
+ }
1535
+ var item = first_run ? null : items.get(key2);
1536
+ if (item) {
1537
+ if (item.v)
1538
+ internal_set(item.v, value);
1539
+ if (item.i)
1540
+ internal_set(item.i, index2);
1541
+ if (defer) {
1542
+ batch.unskip_effect(item.e);
1543
+ }
1544
+ } else {
1545
+ item = create_item(items, first_run ? anchor : offscreen_anchor ??= create_text(), value, key2, index2, render_fn, flags, get_collection);
1546
+ if (!first_run) {
1547
+ item.e.f |= EFFECT_OFFSCREEN;
1548
+ }
1549
+ items.set(key2, item);
1550
+ }
1551
+ keys.add(key2);
1552
+ }
1553
+ if (length === 0 && fallback_fn && !fallback) {
1554
+ if (first_run) {
1555
+ fallback = branch(() => fallback_fn(anchor));
1556
+ } else {
1557
+ fallback = branch(() => fallback_fn(offscreen_anchor ??= create_text()));
1558
+ fallback.f |= EFFECT_OFFSCREEN;
1559
+ }
1560
+ }
1561
+ if (length > keys.size) {
1562
+ if (true_default) {
1563
+ validate_each_keys(array, get_key);
1564
+ } else {
1565
+ each_key_duplicate("", "", "");
1566
+ }
1567
+ }
1568
+ if (hydrating && length > 0) {
1569
+ set_hydrate_node(skip_nodes());
1570
+ }
1571
+ if (!first_run) {
1572
+ pending.set(batch, keys);
1573
+ if (defer) {
1574
+ for (const [key3, item2] of items) {
1575
+ if (!keys.has(key3)) {
1576
+ batch.skip_effect(item2.e);
1577
+ }
1578
+ }
1579
+ batch.oncommit(commit);
1580
+ batch.ondiscard(discard);
1581
+ } else {
1582
+ commit(batch);
1583
+ }
1584
+ }
1585
+ if (mismatch) {
1586
+ set_hydrating(true);
1587
+ }
1588
+ get(each_array);
1589
+ });
1590
+ var state = { effect: effect2, flags, items, pending, outrogroups: null, fallback };
1591
+ first_run = false;
1592
+ if (hydrating) {
1593
+ anchor = hydrate_node;
1594
+ }
1595
+ }
1596
+ function skip_to_branch(effect2) {
1597
+ while (effect2 !== null && (effect2.f & BRANCH_EFFECT) === 0) {
1598
+ effect2 = effect2.next;
1599
+ }
1600
+ return effect2;
1601
+ }
1602
+ function reconcile(state, array, anchor, flags, get_key) {
1603
+ var is_animated = (flags & EACH_IS_ANIMATED) !== 0;
1604
+ var length = array.length;
1605
+ var items = state.items;
1606
+ var current = skip_to_branch(state.effect.first);
1607
+ var seen;
1608
+ var prev = null;
1609
+ var to_animate;
1610
+ var matched = [];
1611
+ var stashed = [];
1612
+ var value;
1613
+ var key2;
1614
+ var effect2;
1615
+ var i;
1616
+ if (is_animated) {
1617
+ for (i = 0;i < length; i += 1) {
1618
+ value = array[i];
1619
+ key2 = get_key(value, i);
1620
+ effect2 = items.get(key2).e;
1621
+ if ((effect2.f & EFFECT_OFFSCREEN) === 0) {
1622
+ effect2.nodes?.a?.measure();
1623
+ (to_animate ??= new Set).add(effect2);
1624
+ }
1625
+ }
1626
+ }
1627
+ for (i = 0;i < length; i += 1) {
1628
+ value = array[i];
1629
+ key2 = get_key(value, i);
1630
+ effect2 = items.get(key2).e;
1631
+ if (state.outrogroups !== null) {
1632
+ for (const group of state.outrogroups) {
1633
+ group.pending.delete(effect2);
1634
+ group.done.delete(effect2);
1635
+ }
1636
+ }
1637
+ if ((effect2.f & INERT) !== 0) {
1638
+ resume_effect(effect2);
1639
+ if (is_animated) {
1640
+ effect2.nodes?.a?.unfix();
1641
+ (to_animate ??= new Set).delete(effect2);
1642
+ }
1643
+ }
1644
+ if ((effect2.f & EFFECT_OFFSCREEN) !== 0) {
1645
+ effect2.f ^= EFFECT_OFFSCREEN;
1646
+ if (effect2 === current) {
1647
+ move(effect2, null, anchor);
1648
+ } else {
1649
+ var next = prev ? prev.next : current;
1650
+ if (effect2 === state.effect.last) {
1651
+ state.effect.last = effect2.prev;
1652
+ }
1653
+ if (effect2.prev)
1654
+ effect2.prev.next = effect2.next;
1655
+ if (effect2.next)
1656
+ effect2.next.prev = effect2.prev;
1657
+ link(state, prev, effect2);
1658
+ link(state, effect2, next);
1659
+ move(effect2, next, anchor);
1660
+ prev = effect2;
1661
+ matched = [];
1662
+ stashed = [];
1663
+ current = skip_to_branch(prev.next);
1664
+ continue;
1665
+ }
1666
+ }
1667
+ if (effect2 !== current) {
1668
+ if (seen !== undefined && seen.has(effect2)) {
1669
+ if (matched.length < stashed.length) {
1670
+ var start = stashed[0];
1671
+ var j;
1672
+ prev = start.prev;
1673
+ var a = matched[0];
1674
+ var b = matched[matched.length - 1];
1675
+ for (j = 0;j < matched.length; j += 1) {
1676
+ move(matched[j], start, anchor);
1677
+ }
1678
+ for (j = 0;j < stashed.length; j += 1) {
1679
+ seen.delete(stashed[j]);
1680
+ }
1681
+ link(state, a.prev, b.next);
1682
+ link(state, prev, a);
1683
+ link(state, b, start);
1684
+ current = start;
1685
+ prev = b;
1686
+ i -= 1;
1687
+ matched = [];
1688
+ stashed = [];
1689
+ } else {
1690
+ seen.delete(effect2);
1691
+ move(effect2, current, anchor);
1692
+ link(state, effect2.prev, effect2.next);
1693
+ link(state, effect2, prev === null ? state.effect.first : prev.next);
1694
+ link(state, prev, effect2);
1695
+ prev = effect2;
1696
+ }
1697
+ continue;
1698
+ }
1699
+ matched = [];
1700
+ stashed = [];
1701
+ while (current !== null && current !== effect2) {
1702
+ (seen ??= new Set).add(current);
1703
+ stashed.push(current);
1704
+ current = skip_to_branch(current.next);
1705
+ }
1706
+ if (current === null) {
1707
+ continue;
1708
+ }
1709
+ }
1710
+ if ((effect2.f & EFFECT_OFFSCREEN) === 0) {
1711
+ matched.push(effect2);
1712
+ }
1713
+ prev = effect2;
1714
+ current = skip_to_branch(effect2.next);
1715
+ }
1716
+ if (state.outrogroups !== null) {
1717
+ for (const group of state.outrogroups) {
1718
+ if (group.pending.size === 0) {
1719
+ destroy_effects(state, array_from(group.done));
1720
+ state.outrogroups?.delete(group);
1721
+ }
1722
+ }
1723
+ if (state.outrogroups.size === 0) {
1724
+ state.outrogroups = null;
1725
+ }
1726
+ }
1727
+ if (current !== null || seen !== undefined) {
1728
+ var to_destroy = [];
1729
+ if (seen !== undefined) {
1730
+ for (effect2 of seen) {
1731
+ if ((effect2.f & INERT) === 0) {
1732
+ to_destroy.push(effect2);
1733
+ }
1734
+ }
1735
+ }
1736
+ while (current !== null) {
1737
+ if ((current.f & INERT) === 0 && current !== state.fallback) {
1738
+ to_destroy.push(current);
1739
+ }
1740
+ current = skip_to_branch(current.next);
1741
+ }
1742
+ var destroy_length = to_destroy.length;
1743
+ if (destroy_length > 0) {
1744
+ var controlled_anchor = (flags & EACH_IS_CONTROLLED) !== 0 && length === 0 ? anchor : null;
1745
+ if (is_animated) {
1746
+ for (i = 0;i < destroy_length; i += 1) {
1747
+ to_destroy[i].nodes?.a?.measure();
1748
+ }
1749
+ for (i = 0;i < destroy_length; i += 1) {
1750
+ to_destroy[i].nodes?.a?.fix();
1751
+ }
1752
+ }
1753
+ pause_effects(state, to_destroy, controlled_anchor);
1754
+ }
1755
+ }
1756
+ if (is_animated) {
1757
+ queue_micro_task(() => {
1758
+ if (to_animate === undefined)
1759
+ return;
1760
+ for (effect2 of to_animate) {
1761
+ effect2.nodes?.a?.apply();
1762
+ }
1763
+ });
1764
+ }
1765
+ }
1766
+ function create_item(items, anchor, value, key2, index2, render_fn, flags, get_collection) {
1767
+ var v = (flags & EACH_ITEM_REACTIVE) !== 0 ? (flags & EACH_ITEM_IMMUTABLE) === 0 ? mutable_source(value, false, false) : source(value) : null;
1768
+ var i = (flags & EACH_INDEX_REACTIVE) !== 0 ? source(index2) : null;
1769
+ if (true_default && v) {
1770
+ v.trace = () => {
1771
+ get_collection()[i?.v ?? index2];
1772
+ };
1773
+ }
1774
+ return {
1775
+ v,
1776
+ i,
1777
+ e: branch(() => {
1778
+ render_fn(anchor, v ?? value, i ?? index2, get_collection);
1779
+ return () => {
1780
+ items.delete(key2);
1781
+ };
1782
+ })
1783
+ };
1784
+ }
1785
+ function move(effect2, next, anchor) {
1786
+ if (!effect2.nodes)
1787
+ return;
1788
+ var node = effect2.nodes.start;
1789
+ var end = effect2.nodes.end;
1790
+ var dest = next && (next.f & EFFECT_OFFSCREEN) === 0 ? next.nodes.start : anchor;
1791
+ while (node !== null) {
1792
+ var next_node = get_next_sibling(node);
1793
+ dest.before(node);
1794
+ if (node === end) {
1795
+ return;
1796
+ }
1797
+ node = next_node;
1798
+ }
1799
+ }
1800
+ function link(state, prev, next) {
1801
+ if (prev === null) {
1802
+ state.effect.first = next;
1803
+ } else {
1804
+ prev.next = next;
1805
+ }
1806
+ if (next === null) {
1807
+ state.effect.last = prev;
1808
+ } else {
1809
+ next.prev = prev;
1810
+ }
1811
+ }
1812
+ function validate_each_keys(array, key_fn) {
1813
+ const keys = new Map;
1814
+ const length = array.length;
1815
+ for (let i = 0;i < length; i++) {
1816
+ const key2 = key_fn(array[i], i);
1817
+ if (keys.has(key2)) {
1818
+ const a = String(keys.get(key2));
1819
+ const b = String(i);
1820
+ let k = String(key2);
1821
+ if (k.startsWith("[object "))
1822
+ k = null;
1823
+ each_key_duplicate(a, b, k);
1824
+ }
1825
+ keys.set(key2, i);
1826
+ }
1827
+ }
1828
+ // node_modules/svelte/src/internal/client/dom/blocks/html.js
1829
+ function check_hash(element, server_hash, value) {
1830
+ if (!server_hash || server_hash === hash(String(value ?? "")))
1831
+ return;
1832
+ let location;
1833
+ const loc = element.__svelte_meta?.loc;
1834
+ if (loc) {
1835
+ location = `near ${loc.file}:${loc.line}:${loc.column}`;
1836
+ } else if (dev_current_component_function?.[FILENAME]) {
1837
+ location = `in ${dev_current_component_function[FILENAME]}`;
1838
+ }
1839
+ hydration_html_changed(sanitize_location(location));
1840
+ }
1841
+ function html(node, get_value, is_controlled = false, svg = false, mathml = false, skip_warning = false) {
1842
+ var anchor = node;
1843
+ var value = "";
1844
+ if (is_controlled) {
1845
+ var parent_node = node;
1846
+ if (hydrating) {
1847
+ anchor = set_hydrate_node(get_first_child(parent_node));
1848
+ }
1849
+ }
1850
+ template_effect(() => {
1851
+ var effect2 = active_effect;
1852
+ if (value === (value = get_value() ?? "")) {
1853
+ if (hydrating)
1854
+ hydrate_next();
1855
+ return;
1856
+ }
1857
+ if (is_controlled && !hydrating) {
1858
+ effect2.nodes = null;
1859
+ parent_node.innerHTML = value;
1860
+ if (value !== "") {
1861
+ assign_nodes(get_first_child(parent_node), parent_node.lastChild);
1862
+ }
1863
+ return;
1864
+ }
1865
+ if (effect2.nodes !== null) {
1866
+ remove_effect_dom(effect2.nodes.start, effect2.nodes.end);
1867
+ effect2.nodes = null;
1868
+ }
1869
+ if (value === "")
1870
+ return;
1871
+ if (hydrating) {
1872
+ var hash2 = hydrate_node.data;
1873
+ var next = hydrate_next();
1874
+ var last = next;
1875
+ while (next !== null && (next.nodeType !== COMMENT_NODE || next.data !== "")) {
1876
+ last = next;
1877
+ next = get_next_sibling(next);
1878
+ }
1879
+ if (next === null) {
1880
+ hydration_mismatch();
1881
+ throw HYDRATION_ERROR;
1882
+ }
1883
+ if (true_default && !skip_warning) {
1884
+ check_hash(next.parentNode, hash2, value);
1885
+ }
1886
+ assign_nodes(hydrate_node, last);
1887
+ anchor = set_hydrate_node(next);
1888
+ return;
1889
+ }
1890
+ var ns = svg ? NAMESPACE_SVG : mathml ? NAMESPACE_MATHML : undefined;
1891
+ var wrapper = create_element(svg ? "svg" : mathml ? "math" : "template", ns);
1892
+ wrapper.innerHTML = value;
1893
+ var node2 = svg || mathml ? wrapper : wrapper.content;
1894
+ assign_nodes(get_first_child(node2), node2.lastChild);
1895
+ if (svg || mathml) {
1896
+ while (get_first_child(node2)) {
1897
+ anchor.before(get_first_child(node2));
1898
+ }
1899
+ } else {
1900
+ anchor.before(node2);
1901
+ }
1902
+ });
1903
+ }
1904
+ // node_modules/svelte/src/internal/client/dom/blocks/slot.js
1905
+ function slot(anchor, $$props, name, slot_props, fallback_fn) {
1906
+ if (hydrating) {
1907
+ hydrate_next();
1908
+ }
1909
+ var slot_fn = $$props.$$slots?.[name];
1910
+ var is_interop = false;
1911
+ if (slot_fn === true) {
1912
+ slot_fn = $$props[name === "default" ? "children" : name];
1913
+ is_interop = true;
1914
+ }
1915
+ if (slot_fn === undefined) {
1916
+ if (fallback_fn !== null) {
1917
+ fallback_fn(anchor);
1918
+ }
1919
+ } else {
1920
+ slot_fn(anchor, is_interop ? () => slot_props : slot_props);
1921
+ }
1922
+ }
1923
+ function sanitize_slots(props) {
1924
+ const sanitized = {};
1925
+ if (props.children)
1926
+ sanitized.default = true;
1927
+ for (const key2 in props.$$slots) {
1928
+ sanitized[key2] = true;
1929
+ }
1930
+ return sanitized;
1931
+ }
1932
+ // node_modules/svelte/src/internal/shared/validate.js
1933
+ function validate_void_dynamic_element(tag_fn) {
1934
+ const tag = tag_fn();
1935
+ if (tag && is_void(tag)) {
1936
+ dynamic_void_element_content(tag);
1937
+ }
1938
+ }
1939
+ function validate_dynamic_element_tag(tag_fn) {
1940
+ const tag = tag_fn();
1941
+ const is_string = typeof tag === "string";
1942
+ if (tag && !is_string) {
1943
+ svelte_element_invalid_this_value();
1944
+ }
1945
+ }
1946
+ function validate_store(store, name) {
1947
+ if (store != null && typeof store.subscribe !== "function") {
1948
+ store_invalid_shape(name);
1949
+ }
1950
+ }
1951
+ function prevent_snippet_stringification(fn) {
1952
+ fn.toString = () => {
1953
+ snippet_without_render_tag();
1954
+ return "";
1955
+ };
1956
+ return fn;
1957
+ }
1958
+
1959
+ // node_modules/svelte/src/internal/client/dom/blocks/snippet.js
1960
+ function snippet(node, get_snippet, ...args) {
1961
+ var branches = new BranchManager(node);
1962
+ block(() => {
1963
+ const snippet2 = get_snippet() ?? null;
1964
+ if (true_default && snippet2 == null) {
1965
+ invalid_snippet();
1966
+ }
1967
+ branches.ensure(snippet2, snippet2 && ((anchor) => snippet2(anchor, ...args)));
1968
+ }, EFFECT_TRANSPARENT);
1969
+ }
1970
+ function wrap_snippet(component, fn) {
1971
+ const snippet2 = (node, ...args) => {
1972
+ var previous_component_function = dev_current_component_function;
1973
+ set_dev_current_component_function(component);
1974
+ try {
1975
+ return fn(node, ...args);
1976
+ } finally {
1977
+ set_dev_current_component_function(previous_component_function);
1978
+ }
1979
+ };
1980
+ prevent_snippet_stringification(snippet2);
1981
+ return snippet2;
1982
+ }
1983
+ function createRawSnippet(fn) {
1984
+ return (anchor, ...params) => {
1985
+ var snippet2 = fn(...params);
1986
+ var element;
1987
+ if (hydrating) {
1988
+ element = hydrate_node;
1989
+ hydrate_next();
1990
+ } else {
1991
+ var html2 = snippet2.render().trim();
1992
+ var fragment = create_fragment_from_html(html2);
1993
+ element = get_first_child(fragment);
1994
+ if (true_default && (get_next_sibling(element) !== null || element.nodeType !== ELEMENT_NODE)) {
1995
+ invalid_raw_snippet_render();
1996
+ }
1997
+ anchor.before(element);
1998
+ }
1999
+ const result = snippet2.setup?.(element);
2000
+ assign_nodes(element, element);
2001
+ if (typeof result === "function") {
2002
+ teardown(result);
2003
+ }
2004
+ };
2005
+ }
2006
+ // node_modules/svelte/src/internal/client/dom/blocks/svelte-component.js
2007
+ function component(node, get_component, render_fn) {
2008
+ var hydration_start_node;
2009
+ if (hydrating) {
2010
+ hydration_start_node = hydrate_node;
2011
+ hydrate_next();
2012
+ }
2013
+ var branches = new BranchManager(node);
2014
+ block(() => {
2015
+ var component2 = get_component() ?? null;
2016
+ if (hydrating) {
2017
+ var data = read_hydration_instruction(hydration_start_node);
2018
+ var server_had_component = data === HYDRATION_START;
2019
+ var client_has_component = component2 !== null;
2020
+ if (server_had_component !== client_has_component) {
2021
+ var anchor = skip_nodes();
2022
+ set_hydrate_node(anchor);
2023
+ branches.anchor = anchor;
2024
+ set_hydrating(false);
2025
+ branches.ensure(component2, component2 && ((target) => render_fn(target, component2)));
2026
+ set_hydrating(true);
2027
+ return;
2028
+ }
2029
+ }
2030
+ branches.ensure(component2, component2 && ((target) => render_fn(target, component2)));
2031
+ }, EFFECT_TRANSPARENT);
2032
+ }
2033
+ // node_modules/svelte/src/internal/client/timing.js
2034
+ var now = true_default ? () => performance.now() : () => Date.now();
2035
+ var raf = {
2036
+ tick: (_) => (true_default ? requestAnimationFrame : noop)(_),
2037
+ now: () => now(),
2038
+ tasks: new Set
2039
+ };
2040
+
2041
+ // node_modules/svelte/src/internal/client/loop.js
2042
+ function run_tasks() {
2043
+ const now2 = raf.now();
2044
+ raf.tasks.forEach((task) => {
2045
+ if (!task.c(now2)) {
2046
+ raf.tasks.delete(task);
2047
+ task.f();
2048
+ }
2049
+ });
2050
+ if (raf.tasks.size !== 0) {
2051
+ raf.tick(run_tasks);
2052
+ }
2053
+ }
2054
+ function loop(callback) {
2055
+ let task;
2056
+ if (raf.tasks.size === 0) {
2057
+ raf.tick(run_tasks);
2058
+ }
2059
+ return {
2060
+ promise: new Promise((fulfill) => {
2061
+ raf.tasks.add(task = { c: callback, f: fulfill });
2062
+ }),
2063
+ abort() {
2064
+ raf.tasks.delete(task);
2065
+ }
2066
+ };
2067
+ }
2068
+
2069
+ // node_modules/svelte/src/internal/client/dom/elements/transitions.js
2070
+ function dispatch_event(element, type) {
2071
+ without_reactive_context(() => {
2072
+ element.dispatchEvent(new CustomEvent(type));
2073
+ });
2074
+ }
2075
+ function css_property_to_camelcase(style) {
2076
+ if (style === "float")
2077
+ return "cssFloat";
2078
+ if (style === "offset")
2079
+ return "cssOffset";
2080
+ if (style.startsWith("--"))
2081
+ return style;
2082
+ const parts = style.split("-");
2083
+ if (parts.length === 1)
2084
+ return parts[0];
2085
+ return parts[0] + parts.slice(1).map((word) => word[0].toUpperCase() + word.slice(1)).join("");
2086
+ }
2087
+ function css_to_keyframe(css) {
2088
+ const keyframe = {};
2089
+ const parts = css.split(";");
2090
+ for (const part of parts) {
2091
+ const [property, value] = part.split(":");
2092
+ if (!property || value === undefined)
2093
+ break;
2094
+ const formatted_property = css_property_to_camelcase(property.trim());
2095
+ keyframe[formatted_property] = value.trim();
2096
+ }
2097
+ return keyframe;
2098
+ }
2099
+ var linear = (t) => t;
2100
+ var animation_effect_override = null;
2101
+ function set_animation_effect_override(v) {
2102
+ animation_effect_override = v;
2103
+ }
2104
+ function animation(element, get_fn, get_params) {
2105
+ var effect2 = animation_effect_override ?? active_effect;
2106
+ var nodes = effect2.nodes;
2107
+ var from;
2108
+ var to;
2109
+ var animation2;
2110
+ var original_styles = null;
2111
+ nodes.a ??= {
2112
+ element,
2113
+ measure() {
2114
+ from = this.element.getBoundingClientRect();
2115
+ },
2116
+ apply() {
2117
+ animation2?.abort();
2118
+ to = this.element.getBoundingClientRect();
2119
+ if (from.left !== to.left || from.right !== to.right || from.top !== to.top || from.bottom !== to.bottom) {
2120
+ const options = get_fn()(this.element, { from, to }, get_params?.());
2121
+ animation2 = animate(this.element, options, undefined, 1, () => {
2122
+ animation2?.abort();
2123
+ animation2 = undefined;
2124
+ });
2125
+ }
2126
+ },
2127
+ fix() {
2128
+ if (element.getAnimations().length)
2129
+ return;
2130
+ var { position, width, height } = getComputedStyle(element);
2131
+ if (position !== "absolute" && position !== "fixed") {
2132
+ var style = element.style;
2133
+ original_styles = {
2134
+ position: style.position,
2135
+ width: style.width,
2136
+ height: style.height,
2137
+ transform: style.transform
2138
+ };
2139
+ style.position = "absolute";
2140
+ style.width = width;
2141
+ style.height = height;
2142
+ var to2 = element.getBoundingClientRect();
2143
+ if (from.left !== to2.left || from.top !== to2.top) {
2144
+ var transform = `translate(${from.left - to2.left}px, ${from.top - to2.top}px)`;
2145
+ style.transform = style.transform ? `${style.transform} ${transform}` : transform;
2146
+ }
2147
+ }
2148
+ },
2149
+ unfix() {
2150
+ if (original_styles) {
2151
+ var style = element.style;
2152
+ style.position = original_styles.position;
2153
+ style.width = original_styles.width;
2154
+ style.height = original_styles.height;
2155
+ style.transform = original_styles.transform;
2156
+ }
2157
+ }
2158
+ };
2159
+ nodes.a.element = element;
2160
+ }
2161
+ function transition(flags, element, get_fn, get_params) {
2162
+ var is_intro = (flags & TRANSITION_IN) !== 0;
2163
+ var is_outro = (flags & TRANSITION_OUT) !== 0;
2164
+ var is_both = is_intro && is_outro;
2165
+ var is_global = (flags & TRANSITION_GLOBAL) !== 0;
2166
+ var direction = is_both ? "both" : is_intro ? "in" : "out";
2167
+ var current_options;
2168
+ var inert = element.inert;
2169
+ var overflow = element.style.overflow;
2170
+ var intro;
2171
+ var outro;
2172
+ function get_options() {
2173
+ return without_reactive_context(() => {
2174
+ return current_options ??= get_fn()(element, get_params?.() ?? {}, {
2175
+ direction
2176
+ });
2177
+ });
2178
+ }
2179
+ var transition2 = {
2180
+ is_global,
2181
+ in() {
2182
+ element.inert = inert;
2183
+ if (!is_intro) {
2184
+ outro?.abort();
2185
+ outro?.reset?.();
2186
+ return;
2187
+ }
2188
+ if (!is_outro) {
2189
+ intro?.abort();
2190
+ }
2191
+ intro = animate(element, get_options(), outro, 1, () => {
2192
+ dispatch_event(element, "introend");
2193
+ intro?.abort();
2194
+ intro = current_options = undefined;
2195
+ element.style.overflow = overflow;
2196
+ });
2197
+ },
2198
+ out(fn) {
2199
+ if (!is_outro) {
2200
+ fn?.();
2201
+ current_options = undefined;
2202
+ return;
2203
+ }
2204
+ element.inert = true;
2205
+ outro = animate(element, get_options(), intro, 0, () => {
2206
+ dispatch_event(element, "outroend");
2207
+ fn?.();
2208
+ });
2209
+ },
2210
+ stop: () => {
2211
+ intro?.abort();
2212
+ outro?.abort();
2213
+ }
2214
+ };
2215
+ var e = active_effect;
2216
+ (e.nodes.t ??= []).push(transition2);
2217
+ if (is_intro && should_intro) {
2218
+ var run2 = is_global;
2219
+ if (!run2) {
2220
+ var block2 = e.parent;
2221
+ while (block2 && (block2.f & EFFECT_TRANSPARENT) !== 0) {
2222
+ while (block2 = block2.parent) {
2223
+ if ((block2.f & BLOCK_EFFECT) !== 0)
2224
+ break;
2225
+ }
2226
+ }
2227
+ run2 = !block2 || (block2.f & REACTION_RAN) !== 0;
2228
+ }
2229
+ if (run2) {
2230
+ effect(() => {
2231
+ untrack(() => transition2.in());
2232
+ });
2233
+ }
2234
+ }
2235
+ }
2236
+ function animate(element, options, counterpart, t2, on_finish) {
2237
+ var is_intro = t2 === 1;
2238
+ if (is_function(options)) {
2239
+ var a;
2240
+ var aborted = false;
2241
+ queue_micro_task(() => {
2242
+ if (aborted)
2243
+ return;
2244
+ var o = options({ direction: is_intro ? "in" : "out" });
2245
+ a = animate(element, o, counterpart, t2, on_finish);
2246
+ });
2247
+ return {
2248
+ abort: () => {
2249
+ aborted = true;
2250
+ a?.abort();
2251
+ },
2252
+ deactivate: () => a.deactivate(),
2253
+ reset: () => a.reset(),
2254
+ t: () => a.t()
2255
+ };
2256
+ }
2257
+ counterpart?.deactivate();
2258
+ if (!options?.duration && !options?.delay) {
2259
+ dispatch_event(element, is_intro ? "introstart" : "outrostart");
2260
+ on_finish();
2261
+ return {
2262
+ abort: noop,
2263
+ deactivate: noop,
2264
+ reset: noop,
2265
+ t: () => t2
2266
+ };
2267
+ }
2268
+ const { delay = 0, css, tick: tick2, easing = linear } = options;
2269
+ var keyframes = [];
2270
+ if (is_intro && counterpart === undefined) {
2271
+ if (tick2) {
2272
+ tick2(0, 1);
2273
+ }
2274
+ if (css) {
2275
+ var styles = css_to_keyframe(css(0, 1));
2276
+ keyframes.push(styles, styles);
2277
+ }
2278
+ }
2279
+ var get_t = () => 1 - t2;
2280
+ var animation2 = element.animate(keyframes, { duration: delay, fill: "forwards" });
2281
+ animation2.onfinish = () => {
2282
+ animation2.cancel();
2283
+ dispatch_event(element, is_intro ? "introstart" : "outrostart");
2284
+ var t1 = counterpart?.t() ?? 1 - t2;
2285
+ counterpart?.abort();
2286
+ var delta = t2 - t1;
2287
+ var duration = options.duration * Math.abs(delta);
2288
+ var keyframes2 = [];
2289
+ if (duration > 0) {
2290
+ var needs_overflow_hidden = false;
2291
+ if (css) {
2292
+ var n = Math.ceil(duration / (1000 / 60));
2293
+ for (var i = 0;i <= n; i += 1) {
2294
+ var t = t1 + delta * easing(i / n);
2295
+ var styles2 = css_to_keyframe(css(t, 1 - t));
2296
+ keyframes2.push(styles2);
2297
+ needs_overflow_hidden ||= styles2.overflow === "hidden";
2298
+ }
2299
+ }
2300
+ if (needs_overflow_hidden) {
2301
+ element.style.overflow = "hidden";
2302
+ }
2303
+ get_t = () => {
2304
+ var time = animation2.currentTime;
2305
+ return t1 + delta * easing(time / duration);
2306
+ };
2307
+ if (tick2) {
2308
+ loop(() => {
2309
+ if (animation2.playState !== "running")
2310
+ return false;
2311
+ var t3 = get_t();
2312
+ tick2(t3, 1 - t3);
2313
+ return true;
2314
+ });
2315
+ }
2316
+ }
2317
+ animation2 = element.animate(keyframes2, { duration, fill: "forwards" });
2318
+ animation2.onfinish = () => {
2319
+ get_t = () => t2;
2320
+ tick2?.(t2, 1 - t2);
2321
+ on_finish();
2322
+ };
2323
+ };
2324
+ return {
2325
+ abort: () => {
2326
+ if (animation2) {
2327
+ animation2.cancel();
2328
+ animation2.effect = null;
2329
+ animation2.onfinish = noop;
2330
+ }
2331
+ },
2332
+ deactivate: () => {
2333
+ on_finish = noop;
2334
+ },
2335
+ reset: () => {
2336
+ if (t2 === 0) {
2337
+ tick2?.(1, 0);
2338
+ }
2339
+ },
2340
+ t: () => get_t()
2341
+ };
2342
+ }
2343
+
2344
+ // node_modules/svelte/src/internal/client/dom/blocks/svelte-element.js
2345
+ function element(node, get_tag, is_svg, render_fn, get_namespace, location) {
2346
+ let was_hydrating = hydrating;
2347
+ if (hydrating) {
2348
+ hydrate_next();
2349
+ }
2350
+ var filename = true_default && location && component_context?.function[FILENAME];
2351
+ var element2 = null;
2352
+ if (hydrating && hydrate_node.nodeType === ELEMENT_NODE) {
2353
+ element2 = hydrate_node;
2354
+ hydrate_next();
2355
+ }
2356
+ var anchor = hydrating ? hydrate_node : node;
2357
+ var parent_effect = active_effect;
2358
+ var branches = new BranchManager(anchor, false);
2359
+ block(() => {
2360
+ const next_tag = get_tag() || null;
2361
+ var ns = get_namespace ? get_namespace() : is_svg || next_tag === "svg" ? NAMESPACE_SVG : undefined;
2362
+ if (next_tag === null) {
2363
+ branches.ensure(null, null);
2364
+ set_should_intro(true);
2365
+ return;
2366
+ }
2367
+ branches.ensure(next_tag, (anchor2) => {
2368
+ if (next_tag) {
2369
+ element2 = hydrating ? element2 : create_element(next_tag, ns);
2370
+ if (true_default && location) {
2371
+ element2.__svelte_meta = {
2372
+ parent: dev_stack,
2373
+ loc: {
2374
+ file: filename,
2375
+ line: location[0],
2376
+ column: location[1]
2377
+ }
2378
+ };
2379
+ }
2380
+ assign_nodes(element2, element2);
2381
+ if (render_fn) {
2382
+ if (hydrating && is_raw_text_element(next_tag)) {
2383
+ element2.append(document.createComment(""));
2384
+ }
2385
+ var child_anchor = hydrating ? get_first_child(element2) : element2.appendChild(create_text());
2386
+ if (hydrating) {
2387
+ if (child_anchor === null) {
2388
+ set_hydrating(false);
2389
+ } else {
2390
+ set_hydrate_node(child_anchor);
2391
+ }
2392
+ }
2393
+ set_animation_effect_override(parent_effect);
2394
+ render_fn(element2, child_anchor);
2395
+ set_animation_effect_override(null);
2396
+ }
2397
+ active_effect.nodes.end = element2;
2398
+ anchor2.before(element2);
2399
+ }
2400
+ if (hydrating) {
2401
+ set_hydrate_node(anchor2);
2402
+ }
2403
+ });
2404
+ set_should_intro(true);
2405
+ return () => {
2406
+ if (next_tag) {
2407
+ set_should_intro(false);
2408
+ }
2409
+ };
2410
+ }, EFFECT_TRANSPARENT);
2411
+ teardown(() => {
2412
+ set_should_intro(true);
2413
+ });
2414
+ if (was_hydrating) {
2415
+ set_hydrating(true);
2416
+ set_hydrate_node(anchor);
2417
+ }
2418
+ }
2419
+ // node_modules/svelte/src/internal/client/dom/blocks/svelte-head.js
2420
+ function head(hash2, render_fn) {
2421
+ let previous_hydrate_node = null;
2422
+ let was_hydrating = hydrating;
2423
+ var anchor;
2424
+ if (hydrating) {
2425
+ previous_hydrate_node = hydrate_node;
2426
+ var head_anchor = get_first_child(document.head);
2427
+ while (head_anchor !== null && (head_anchor.nodeType !== COMMENT_NODE || head_anchor.data !== hash2)) {
2428
+ head_anchor = get_next_sibling(head_anchor);
2429
+ }
2430
+ if (head_anchor === null) {
2431
+ set_hydrating(false);
2432
+ } else {
2433
+ var start = get_next_sibling(head_anchor);
2434
+ head_anchor.remove();
2435
+ set_hydrate_node(start);
2436
+ }
2437
+ }
2438
+ if (!hydrating) {
2439
+ anchor = document.head.appendChild(create_text());
2440
+ }
2441
+ try {
2442
+ block(() => render_fn(anchor), HEAD_EFFECT | EFFECT_PRESERVED);
2443
+ } finally {
2444
+ if (was_hydrating) {
2445
+ set_hydrating(true);
2446
+ set_hydrate_node(previous_hydrate_node);
2447
+ }
2448
+ }
2449
+ }
2450
+ // node_modules/svelte/src/internal/client/dom/css.js
2451
+ function append_styles(anchor, css) {
2452
+ effect(() => {
2453
+ var root = anchor.getRootNode();
2454
+ var target = root.host ? root : root.head ?? root.ownerDocument.head;
2455
+ if (!target.querySelector("#" + css.hash)) {
2456
+ const style = create_element("style");
2457
+ style.id = css.hash;
2458
+ style.textContent = css.code;
2459
+ target.appendChild(style);
2460
+ if (true_default) {
2461
+ register_style(css.hash, style);
2462
+ }
2463
+ }
2464
+ });
2465
+ }
2466
+ // node_modules/svelte/src/internal/client/dom/elements/actions.js
2467
+ function action(dom, action2, get_value) {
2468
+ effect(() => {
2469
+ var payload = untrack(() => action2(dom, get_value?.()) || {});
2470
+ if (get_value && payload?.update) {
2471
+ var inited = false;
2472
+ var prev = {};
2473
+ render_effect(() => {
2474
+ var value = get_value();
2475
+ deep_read_state(value);
2476
+ if (inited && safe_not_equal(prev, value)) {
2477
+ prev = value;
2478
+ payload.update(value);
2479
+ }
2480
+ });
2481
+ inited = true;
2482
+ }
2483
+ if (payload?.destroy) {
2484
+ return () => payload.destroy();
2485
+ }
2486
+ });
2487
+ }
2488
+ // node_modules/svelte/src/internal/client/dom/elements/attachments.js
2489
+ function attach(node, get_fn) {
2490
+ var fn = undefined;
2491
+ var e;
2492
+ managed(() => {
2493
+ if (fn !== (fn = get_fn())) {
2494
+ if (e) {
2495
+ destroy_effect(e);
2496
+ e = null;
2497
+ }
2498
+ if (fn) {
2499
+ e = branch(() => {
2500
+ effect(() => fn(node));
2501
+ });
2502
+ }
2503
+ }
2504
+ });
2505
+ }
2506
+ // node_modules/svelte/src/escaping.js
2507
+ var ATTR_REGEX = /[&"<]/g;
2508
+ var CONTENT_REGEX = /[&<]/g;
2509
+ function escape_html(value, is_attr) {
2510
+ const str = String(value ?? "");
2511
+ const pattern = is_attr ? ATTR_REGEX : CONTENT_REGEX;
2512
+ pattern.lastIndex = 0;
2513
+ let escaped = "";
2514
+ let last = 0;
2515
+ while (pattern.test(str)) {
2516
+ const i = pattern.lastIndex - 1;
2517
+ const ch = str[i];
2518
+ escaped += str.substring(last, i) + (ch === "&" ? "&amp;" : ch === '"' ? "&quot;" : "&lt;");
2519
+ last = i + 1;
2520
+ }
2521
+ return escaped + str.substring(last);
2522
+ }
2523
+
2524
+ // node_modules/clsx/dist/clsx.mjs
2525
+ function r(e) {
2526
+ var t, f, n = "";
2527
+ if (typeof e == "string" || typeof e == "number")
2528
+ n += e;
2529
+ else if (typeof e == "object")
2530
+ if (Array.isArray(e)) {
2531
+ var o = e.length;
2532
+ for (t = 0;t < o; t++)
2533
+ e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
2534
+ } else
2535
+ for (f in e)
2536
+ e[f] && (n && (n += " "), n += f);
2537
+ return n;
2538
+ }
2539
+ function clsx() {
2540
+ for (var e, t, f = 0, n = "", o = arguments.length;f < o; f++)
2541
+ (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
2542
+ return n;
2543
+ }
2544
+
2545
+ // node_modules/svelte/src/internal/shared/attributes.js
2546
+ var replacements = {
2547
+ translate: new Map([
2548
+ [true, "yes"],
2549
+ [false, "no"]
2550
+ ])
2551
+ };
2552
+ function attr(name, value, is_boolean = false) {
2553
+ if (name === "hidden" && value !== "until-found") {
2554
+ is_boolean = true;
2555
+ }
2556
+ if (value == null || !value && is_boolean)
2557
+ return "";
2558
+ const normalized = has_own_property.call(replacements, name) && replacements[name].get(value) || value;
2559
+ const assignment = is_boolean ? `=""` : `="${escape_html(normalized, true)}"`;
2560
+ return ` ${name}${assignment}`;
2561
+ }
2562
+ function clsx2(value) {
2563
+ if (typeof value === "object") {
2564
+ return clsx(value);
2565
+ } else {
2566
+ return value ?? "";
2567
+ }
2568
+ }
2569
+ var whitespace = [...`
2570
+ \r\f \v\uFEFF`];
2571
+ function to_class(value, hash2, directives) {
2572
+ var classname = value == null ? "" : "" + value;
2573
+ if (hash2) {
2574
+ classname = classname ? classname + " " + hash2 : hash2;
2575
+ }
2576
+ if (directives) {
2577
+ for (var key2 of Object.keys(directives)) {
2578
+ if (directives[key2]) {
2579
+ classname = classname ? classname + " " + key2 : key2;
2580
+ } else if (classname.length) {
2581
+ var len = key2.length;
2582
+ var a = 0;
2583
+ while ((a = classname.indexOf(key2, a)) >= 0) {
2584
+ var b = a + len;
2585
+ if ((a === 0 || whitespace.includes(classname[a - 1])) && (b === classname.length || whitespace.includes(classname[b]))) {
2586
+ classname = (a === 0 ? "" : classname.substring(0, a)) + classname.substring(b + 1);
2587
+ } else {
2588
+ a = b;
2589
+ }
2590
+ }
2591
+ }
2592
+ }
2593
+ }
2594
+ return classname === "" ? null : classname;
2595
+ }
2596
+ function append_styles2(styles, important = false) {
2597
+ var separator = important ? " !important;" : ";";
2598
+ var css = "";
2599
+ for (var key2 of Object.keys(styles)) {
2600
+ var value = styles[key2];
2601
+ if (value != null && value !== "") {
2602
+ css += " " + key2 + ": " + value + separator;
2603
+ }
2604
+ }
2605
+ return css;
2606
+ }
2607
+ function to_css_name(name) {
2608
+ if (name[0] !== "-" || name[1] !== "-") {
2609
+ return name.toLowerCase();
2610
+ }
2611
+ return name;
2612
+ }
2613
+ function to_style(value, styles) {
2614
+ if (styles) {
2615
+ var new_style = "";
2616
+ var normal_styles;
2617
+ var important_styles;
2618
+ if (Array.isArray(styles)) {
2619
+ normal_styles = styles[0];
2620
+ important_styles = styles[1];
2621
+ } else {
2622
+ normal_styles = styles;
2623
+ }
2624
+ if (value) {
2625
+ value = String(value).replaceAll(/\s*\/\*.*?\*\/\s*/g, "").trim();
2626
+ var in_str = false;
2627
+ var in_apo = 0;
2628
+ var in_comment = false;
2629
+ var reserved_names = [];
2630
+ if (normal_styles) {
2631
+ reserved_names.push(...Object.keys(normal_styles).map(to_css_name));
2632
+ }
2633
+ if (important_styles) {
2634
+ reserved_names.push(...Object.keys(important_styles).map(to_css_name));
2635
+ }
2636
+ var start_index = 0;
2637
+ var name_index = -1;
2638
+ const len = value.length;
2639
+ for (var i = 0;i < len; i++) {
2640
+ var c = value[i];
2641
+ if (in_comment) {
2642
+ if (c === "/" && value[i - 1] === "*") {
2643
+ in_comment = false;
2644
+ }
2645
+ } else if (in_str) {
2646
+ if (in_str === c) {
2647
+ in_str = false;
2648
+ }
2649
+ } else if (c === "/" && value[i + 1] === "*") {
2650
+ in_comment = true;
2651
+ } else if (c === '"' || c === "'") {
2652
+ in_str = c;
2653
+ } else if (c === "(") {
2654
+ in_apo++;
2655
+ } else if (c === ")") {
2656
+ in_apo--;
2657
+ }
2658
+ if (!in_comment && in_str === false && in_apo === 0) {
2659
+ if (c === ":" && name_index === -1) {
2660
+ name_index = i;
2661
+ } else if (c === ";" || i === len - 1) {
2662
+ if (name_index !== -1) {
2663
+ var name = to_css_name(value.substring(start_index, name_index).trim());
2664
+ if (!reserved_names.includes(name)) {
2665
+ if (c !== ";") {
2666
+ i++;
2667
+ }
2668
+ var property = value.substring(start_index, i).trim();
2669
+ new_style += " " + property + ";";
2670
+ }
2671
+ }
2672
+ start_index = i + 1;
2673
+ name_index = -1;
2674
+ }
2675
+ }
2676
+ }
2677
+ }
2678
+ if (normal_styles) {
2679
+ new_style += append_styles2(normal_styles);
2680
+ }
2681
+ if (important_styles) {
2682
+ new_style += append_styles2(important_styles, true);
2683
+ }
2684
+ new_style = new_style.trim();
2685
+ return new_style === "" ? null : new_style;
2686
+ }
2687
+ return value == null ? null : String(value);
2688
+ }
2689
+
2690
+ // node_modules/svelte/src/internal/client/dom/elements/class.js
2691
+ function set_class(dom, is_html, value, hash2, prev_classes, next_classes) {
2692
+ var prev = dom.__className;
2693
+ if (hydrating || prev !== value || prev === undefined) {
2694
+ var next_class_name = to_class(value, hash2, next_classes);
2695
+ if (!hydrating || next_class_name !== dom.getAttribute("class")) {
2696
+ if (next_class_name == null) {
2697
+ dom.removeAttribute("class");
2698
+ } else if (is_html) {
2699
+ dom.className = next_class_name;
2700
+ } else {
2701
+ dom.setAttribute("class", next_class_name);
2702
+ }
2703
+ }
2704
+ dom.__className = value;
2705
+ } else if (next_classes && prev_classes !== next_classes) {
2706
+ for (var key2 in next_classes) {
2707
+ var is_present = !!next_classes[key2];
2708
+ if (prev_classes == null || is_present !== !!prev_classes[key2]) {
2709
+ dom.classList.toggle(key2, is_present);
2710
+ }
2711
+ }
2712
+ }
2713
+ return next_classes;
2714
+ }
2715
+
2716
+ // node_modules/svelte/src/internal/client/dom/elements/style.js
2717
+ function update_styles(dom, prev = {}, next, priority) {
2718
+ for (var key2 in next) {
2719
+ var value = next[key2];
2720
+ if (prev[key2] !== value) {
2721
+ if (next[key2] == null) {
2722
+ dom.style.removeProperty(key2);
2723
+ } else {
2724
+ dom.style.setProperty(key2, value, priority);
2725
+ }
2726
+ }
2727
+ }
2728
+ }
2729
+ function set_style(dom, value, prev_styles, next_styles) {
2730
+ var prev = dom.__style;
2731
+ if (hydrating || prev !== value) {
2732
+ var next_style_attr = to_style(value, next_styles);
2733
+ if (!hydrating || next_style_attr !== dom.getAttribute("style")) {
2734
+ if (next_style_attr == null) {
2735
+ dom.removeAttribute("style");
2736
+ } else {
2737
+ dom.style.cssText = next_style_attr;
2738
+ }
2739
+ }
2740
+ dom.__style = value;
2741
+ } else if (next_styles) {
2742
+ if (Array.isArray(next_styles)) {
2743
+ update_styles(dom, prev_styles?.[0], next_styles[0]);
2744
+ update_styles(dom, prev_styles?.[1], next_styles[1], "important");
2745
+ } else {
2746
+ update_styles(dom, prev_styles, next_styles);
2747
+ }
2748
+ }
2749
+ return next_styles;
2750
+ }
2751
+
2752
+ // node_modules/svelte/src/internal/client/dom/elements/bindings/select.js
2753
+ function select_option(select, value, mounting = false) {
2754
+ if (select.multiple) {
2755
+ if (value == undefined) {
2756
+ return;
2757
+ }
2758
+ if (!is_array(value)) {
2759
+ return select_multiple_invalid_value();
2760
+ }
2761
+ for (var option of select.options) {
2762
+ option.selected = value.includes(get_option_value(option));
2763
+ }
2764
+ return;
2765
+ }
2766
+ for (option of select.options) {
2767
+ var option_value = get_option_value(option);
2768
+ if (is(option_value, value)) {
2769
+ option.selected = true;
2770
+ return;
2771
+ }
2772
+ }
2773
+ if (!mounting || value !== undefined) {
2774
+ select.selectedIndex = -1;
2775
+ }
2776
+ }
2777
+ function init_select(select) {
2778
+ var observer = new MutationObserver(() => {
2779
+ select_option(select, select.__value);
2780
+ });
2781
+ observer.observe(select, {
2782
+ childList: true,
2783
+ subtree: true,
2784
+ attributes: true,
2785
+ attributeFilter: ["value"]
2786
+ });
2787
+ teardown(() => {
2788
+ observer.disconnect();
2789
+ });
2790
+ }
2791
+ function bind_select_value(select, get2, set2 = get2) {
2792
+ var batches = new WeakSet;
2793
+ var mounting = true;
2794
+ listen_to_event_and_reset_event(select, "change", (is_reset) => {
2795
+ var query = is_reset ? "[selected]" : ":checked";
2796
+ var value;
2797
+ if (select.multiple) {
2798
+ value = [].map.call(select.querySelectorAll(query), get_option_value);
2799
+ } else {
2800
+ var selected_option = select.querySelector(query) ?? select.querySelector("option:not([disabled])");
2801
+ value = selected_option && get_option_value(selected_option);
2802
+ }
2803
+ set2(value);
2804
+ select.__value = value;
2805
+ if (current_batch !== null) {
2806
+ batches.add(current_batch);
2807
+ }
2808
+ });
2809
+ effect(() => {
2810
+ var value = get2();
2811
+ if (select === document.activeElement) {
2812
+ var batch = async_mode_flag ? previous_batch : current_batch;
2813
+ if (batches.has(batch)) {
2814
+ return;
2815
+ }
2816
+ }
2817
+ select_option(select, value, mounting);
2818
+ if (mounting && value === undefined) {
2819
+ var selected_option = select.querySelector(":checked");
2820
+ if (selected_option !== null) {
2821
+ value = get_option_value(selected_option);
2822
+ set2(value);
2823
+ }
2824
+ }
2825
+ select.__value = value;
2826
+ mounting = false;
2827
+ });
2828
+ init_select(select);
2829
+ }
2830
+ function get_option_value(option) {
2831
+ if ("__value" in option) {
2832
+ return option.__value;
2833
+ } else {
2834
+ return option.value;
2835
+ }
2836
+ }
2837
+
2838
+ // node_modules/svelte/src/internal/client/dom/elements/attributes.js
2839
+ var CLASS = Symbol("class");
2840
+ var STYLE = Symbol("style");
2841
+ var IS_CUSTOM_ELEMENT = Symbol("is custom element");
2842
+ var IS_HTML = Symbol("is html");
2843
+ var LINK_TAG = IS_XHTML ? "link" : "LINK";
2844
+ var INPUT_TAG = IS_XHTML ? "input" : "INPUT";
2845
+ var OPTION_TAG = IS_XHTML ? "option" : "OPTION";
2846
+ var SELECT_TAG = IS_XHTML ? "select" : "SELECT";
2847
+ var PROGRESS_TAG = IS_XHTML ? "progress" : "PROGRESS";
2848
+ function remove_input_defaults(input) {
2849
+ if (!hydrating)
2850
+ return;
2851
+ var already_removed = false;
2852
+ var remove_defaults = () => {
2853
+ if (already_removed)
2854
+ return;
2855
+ already_removed = true;
2856
+ if (input.hasAttribute("value")) {
2857
+ var value = input.value;
2858
+ set_attribute2(input, "value", null);
2859
+ input.value = value;
2860
+ }
2861
+ if (input.hasAttribute("checked")) {
2862
+ var checked = input.checked;
2863
+ set_attribute2(input, "checked", null);
2864
+ input.checked = checked;
2865
+ }
2866
+ };
2867
+ input.__on_r = remove_defaults;
2868
+ queue_micro_task(remove_defaults);
2869
+ add_form_reset_listener();
2870
+ }
2871
+ function set_value(element2, value) {
2872
+ var attributes = get_attributes(element2);
2873
+ if (attributes.value === (attributes.value = value ?? undefined) || element2.value === value && (value !== 0 || element2.nodeName !== PROGRESS_TAG)) {
2874
+ return;
2875
+ }
2876
+ element2.value = value ?? "";
2877
+ }
2878
+ function set_checked(element2, checked) {
2879
+ var attributes = get_attributes(element2);
2880
+ if (attributes.checked === (attributes.checked = checked ?? undefined)) {
2881
+ return;
2882
+ }
2883
+ element2.checked = checked;
2884
+ }
2885
+ function set_selected(element2, selected) {
2886
+ if (selected) {
2887
+ if (!element2.hasAttribute("selected")) {
2888
+ element2.setAttribute("selected", "");
2889
+ }
2890
+ } else {
2891
+ element2.removeAttribute("selected");
2892
+ }
2893
+ }
2894
+ function set_default_checked(element2, checked) {
2895
+ const existing_value = element2.checked;
2896
+ element2.defaultChecked = checked;
2897
+ element2.checked = existing_value;
2898
+ }
2899
+ function set_default_value(element2, value) {
2900
+ const existing_value = element2.value;
2901
+ element2.defaultValue = value;
2902
+ element2.value = existing_value;
2903
+ }
2904
+ function set_attribute2(element2, attribute, value, skip_warning) {
2905
+ var attributes = get_attributes(element2);
2906
+ if (hydrating) {
2907
+ attributes[attribute] = element2.getAttribute(attribute);
2908
+ if (attribute === "src" || attribute === "srcset" || attribute === "href" && element2.nodeName === LINK_TAG) {
2909
+ if (!skip_warning) {
2910
+ check_src_in_dev_hydration(element2, attribute, value ?? "");
2911
+ }
2912
+ return;
2913
+ }
2914
+ }
2915
+ if (attributes[attribute] === (attributes[attribute] = value))
2916
+ return;
2917
+ if (attribute === "loading") {
2918
+ element2[LOADING_ATTR_SYMBOL] = value;
2919
+ }
2920
+ if (value == null) {
2921
+ element2.removeAttribute(attribute);
2922
+ } else if (typeof value !== "string" && get_setters(element2).includes(attribute)) {
2923
+ element2[attribute] = value;
2924
+ } else {
2925
+ element2.setAttribute(attribute, value);
2926
+ }
2927
+ }
2928
+ function set_xlink_attribute(dom, attribute, value) {
2929
+ dom.setAttributeNS("http://www.w3.org/1999/xlink", attribute, value);
2930
+ }
2931
+ function set_custom_element_data(node, prop, value) {
2932
+ var previous_reaction = active_reaction;
2933
+ var previous_effect = active_effect;
2934
+ let was_hydrating = hydrating;
2935
+ if (hydrating) {
2936
+ set_hydrating(false);
2937
+ }
2938
+ set_active_reaction(null);
2939
+ set_active_effect(null);
2940
+ try {
2941
+ 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")) {
2942
+ node[prop] = value;
2943
+ } else {
2944
+ set_attribute2(node, prop, value == null ? value : String(value));
2945
+ }
2946
+ } finally {
2947
+ set_active_reaction(previous_reaction);
2948
+ set_active_effect(previous_effect);
2949
+ if (was_hydrating) {
2950
+ set_hydrating(true);
2951
+ }
2952
+ }
2953
+ }
2954
+ function set_attributes(element2, prev, next, css_hash, should_remove_defaults = false, skip_warning = false) {
2955
+ if (hydrating && should_remove_defaults && element2.nodeName === INPUT_TAG) {
2956
+ var input = element2;
2957
+ var attribute = input.type === "checkbox" ? "defaultChecked" : "defaultValue";
2958
+ if (!(attribute in next)) {
2959
+ remove_input_defaults(input);
2960
+ }
2961
+ }
2962
+ var attributes = get_attributes(element2);
2963
+ var is_custom_element = attributes[IS_CUSTOM_ELEMENT];
2964
+ var preserve_attribute_case = !attributes[IS_HTML];
2965
+ let is_hydrating_custom_element = hydrating && is_custom_element;
2966
+ if (is_hydrating_custom_element) {
2967
+ set_hydrating(false);
2968
+ }
2969
+ var current = prev || {};
2970
+ var is_option_element = element2.nodeName === OPTION_TAG;
2971
+ for (var key2 in prev) {
2972
+ if (!(key2 in next)) {
2973
+ next[key2] = null;
2974
+ }
2975
+ }
2976
+ if (next.class) {
2977
+ next.class = clsx2(next.class);
2978
+ } else if (css_hash || next[CLASS]) {
2979
+ next.class = null;
2980
+ }
2981
+ if (next[STYLE]) {
2982
+ next.style ??= null;
2983
+ }
2984
+ var setters = get_setters(element2);
2985
+ for (const key3 in next) {
2986
+ let value = next[key3];
2987
+ if (is_option_element && key3 === "value" && value == null) {
2988
+ element2.value = element2.__value = "";
2989
+ current[key3] = value;
2990
+ continue;
2991
+ }
2992
+ if (key3 === "class") {
2993
+ var is_html = element2.namespaceURI === "http://www.w3.org/1999/xhtml";
2994
+ set_class(element2, is_html, value, css_hash, prev?.[CLASS], next[CLASS]);
2995
+ current[key3] = value;
2996
+ current[CLASS] = next[CLASS];
2997
+ continue;
2998
+ }
2999
+ if (key3 === "style") {
3000
+ set_style(element2, value, prev?.[STYLE], next[STYLE]);
3001
+ current[key3] = value;
3002
+ current[STYLE] = next[STYLE];
3003
+ continue;
3004
+ }
3005
+ var prev_value = current[key3];
3006
+ if (value === prev_value && !(value === undefined && element2.hasAttribute(key3))) {
3007
+ continue;
3008
+ }
3009
+ current[key3] = value;
3010
+ var prefix = key3[0] + key3[1];
3011
+ if (prefix === "$$")
3012
+ continue;
3013
+ if (prefix === "on") {
3014
+ const opts = {};
3015
+ const event_handle_key = "$$" + key3;
3016
+ let event_name = key3.slice(2);
3017
+ var is_delegated = can_delegate_event(event_name);
3018
+ if (is_capture_event(event_name)) {
3019
+ event_name = event_name.slice(0, -7);
3020
+ opts.capture = true;
3021
+ }
3022
+ if (!is_delegated && prev_value) {
3023
+ if (value != null)
3024
+ continue;
3025
+ element2.removeEventListener(event_name, current[event_handle_key], opts);
3026
+ current[event_handle_key] = null;
3027
+ }
3028
+ if (is_delegated) {
3029
+ delegated(event_name, element2, value);
3030
+ delegate([event_name]);
3031
+ } else if (value != null) {
3032
+ let handle = function(evt) {
3033
+ current[key3].call(this, evt);
3034
+ };
3035
+ current[event_handle_key] = create_event(event_name, element2, handle, opts);
3036
+ }
3037
+ } else if (key3 === "style") {
3038
+ set_attribute2(element2, key3, value);
3039
+ } else if (key3 === "autofocus") {
3040
+ autofocus(element2, Boolean(value));
3041
+ } else if (!is_custom_element && (key3 === "__value" || key3 === "value" && value != null)) {
3042
+ element2.value = element2.__value = value;
3043
+ } else if (key3 === "selected" && is_option_element) {
3044
+ set_selected(element2, value);
3045
+ } else {
3046
+ var name = key3;
3047
+ if (!preserve_attribute_case) {
3048
+ name = normalize_attribute(name);
3049
+ }
3050
+ var is_default = name === "defaultValue" || name === "defaultChecked";
3051
+ if (value == null && !is_custom_element && !is_default) {
3052
+ attributes[key3] = null;
3053
+ if (name === "value" || name === "checked") {
3054
+ let input2 = element2;
3055
+ const use_default = prev === undefined;
3056
+ if (name === "value") {
3057
+ let previous = input2.defaultValue;
3058
+ input2.removeAttribute(name);
3059
+ input2.defaultValue = previous;
3060
+ input2.value = input2.__value = use_default ? previous : null;
3061
+ } else {
3062
+ let previous = input2.defaultChecked;
3063
+ input2.removeAttribute(name);
3064
+ input2.defaultChecked = previous;
3065
+ input2.checked = use_default ? previous : false;
3066
+ }
3067
+ } else {
3068
+ element2.removeAttribute(key3);
3069
+ }
3070
+ } else if (is_default || setters.includes(name) && (is_custom_element || typeof value !== "string")) {
3071
+ element2[name] = value;
3072
+ if (name in attributes)
3073
+ attributes[name] = UNINITIALIZED;
3074
+ } else if (typeof value !== "function") {
3075
+ set_attribute2(element2, name, value, skip_warning);
3076
+ }
3077
+ }
3078
+ }
3079
+ if (is_hydrating_custom_element) {
3080
+ set_hydrating(true);
3081
+ }
3082
+ return current;
3083
+ }
3084
+ function attribute_effect(element2, fn, sync = [], async2 = [], blockers = [], css_hash, should_remove_defaults = false, skip_warning = false) {
3085
+ flatten(blockers, sync, async2, (values) => {
3086
+ var prev = undefined;
3087
+ var effects = {};
3088
+ var is_select = element2.nodeName === SELECT_TAG;
3089
+ var inited = false;
3090
+ managed(() => {
3091
+ var next = fn(...values.map(get));
3092
+ var current = set_attributes(element2, prev, next, css_hash, should_remove_defaults, skip_warning);
3093
+ if (inited && is_select && "value" in next) {
3094
+ select_option(element2, next.value);
3095
+ }
3096
+ for (let symbol of Object.getOwnPropertySymbols(effects)) {
3097
+ if (!next[symbol])
3098
+ destroy_effect(effects[symbol]);
3099
+ }
3100
+ for (let symbol of Object.getOwnPropertySymbols(next)) {
3101
+ var n = next[symbol];
3102
+ if (symbol.description === ATTACHMENT_KEY && (!prev || n !== prev[symbol])) {
3103
+ if (effects[symbol])
3104
+ destroy_effect(effects[symbol]);
3105
+ effects[symbol] = branch(() => attach(element2, () => n));
3106
+ }
3107
+ current[symbol] = n;
3108
+ }
3109
+ prev = current;
3110
+ });
3111
+ if (is_select) {
3112
+ var select = element2;
3113
+ effect(() => {
3114
+ select_option(select, prev.value, true);
3115
+ init_select(select);
3116
+ });
3117
+ }
3118
+ inited = true;
3119
+ });
3120
+ }
3121
+ function get_attributes(element2) {
3122
+ return element2.__attributes ??= {
3123
+ [IS_CUSTOM_ELEMENT]: element2.nodeName.includes("-"),
3124
+ [IS_HTML]: element2.namespaceURI === NAMESPACE_HTML
3125
+ };
3126
+ }
3127
+ var setters_cache = new Map;
3128
+ function get_setters(element2) {
3129
+ var cache_key = element2.getAttribute("is") || element2.nodeName;
3130
+ var setters = setters_cache.get(cache_key);
3131
+ if (setters)
3132
+ return setters;
3133
+ setters_cache.set(cache_key, setters = []);
3134
+ var descriptors;
3135
+ var proto = element2;
3136
+ var element_proto = Element.prototype;
3137
+ while (element_proto !== proto) {
3138
+ descriptors = get_descriptors(proto);
3139
+ for (var key2 in descriptors) {
3140
+ if (descriptors[key2].set) {
3141
+ setters.push(key2);
3142
+ }
3143
+ }
3144
+ proto = get_prototype_of(proto);
3145
+ }
3146
+ return setters;
3147
+ }
3148
+ function check_src_in_dev_hydration(element2, attribute, value) {
3149
+ if (!true_default)
3150
+ return;
3151
+ if (attribute === "srcset" && srcset_url_equal(element2, value))
3152
+ return;
3153
+ if (src_url_equal(element2.getAttribute(attribute) ?? "", value))
3154
+ return;
3155
+ hydration_attribute_changed(attribute, element2.outerHTML.replace(element2.innerHTML, element2.innerHTML && "..."), String(value));
3156
+ }
3157
+ function src_url_equal(element_src, url) {
3158
+ if (element_src === url)
3159
+ return true;
3160
+ return new URL(element_src, document.baseURI).href === new URL(url, document.baseURI).href;
3161
+ }
3162
+ function split_srcset(srcset) {
3163
+ return srcset.split(",").map((src) => src.trim().split(" ").filter(Boolean));
3164
+ }
3165
+ function srcset_url_equal(element2, srcset) {
3166
+ var element_urls = split_srcset(element2.srcset);
3167
+ var urls = split_srcset(srcset);
3168
+ 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])));
3169
+ }
3170
+ // node_modules/svelte/src/internal/client/dom/elements/customizable-select.js
3171
+ var supported = null;
3172
+ function is_supported() {
3173
+ if (supported === null) {
3174
+ var select = create_element("select");
3175
+ select.innerHTML = create_trusted_html("<option><span>t</span></option>");
3176
+ supported = select.firstChild?.firstChild?.nodeType === 1;
3177
+ }
3178
+ return supported;
3179
+ }
3180
+ function selectedcontent(element2, update_element) {
3181
+ if (!is_supported())
3182
+ return;
3183
+ attach(element2, () => () => {
3184
+ const select = element2.closest("select");
3185
+ if (!select)
3186
+ return;
3187
+ const observer = new MutationObserver((entries) => {
3188
+ var selected = false;
3189
+ for (const entry of entries) {
3190
+ if (entry.target === element2) {
3191
+ return;
3192
+ }
3193
+ selected ||= !!entry.target.parentElement?.closest("option")?.selected;
3194
+ }
3195
+ if (selected) {
3196
+ element2.replaceWith(element2 = element2.cloneNode(true));
3197
+ update_element(element2);
3198
+ }
3199
+ });
3200
+ observer.observe(select, {
3201
+ childList: true,
3202
+ characterData: true,
3203
+ subtree: true
3204
+ });
3205
+ return () => {
3206
+ observer.disconnect();
3207
+ };
3208
+ });
3209
+ }
3210
+ function customizable_select(element2, rich_fn) {
3211
+ var was_hydrating = hydrating;
3212
+ if (!is_supported()) {
3213
+ set_hydrating(false);
3214
+ element2.textContent = "";
3215
+ element2.append(create_comment(""));
3216
+ }
3217
+ try {
3218
+ rich_fn();
3219
+ } finally {
3220
+ if (was_hydrating) {
3221
+ if (hydrating) {
3222
+ reset(element2);
3223
+ } else {
3224
+ set_hydrating(true);
3225
+ set_hydrate_node(element2);
3226
+ }
3227
+ }
3228
+ }
3229
+ }
3230
+ // node_modules/svelte/src/internal/client/dom/elements/bindings/document.js
3231
+ function bind_active_element(update2) {
3232
+ listen(document, ["focusin", "focusout"], (event2) => {
3233
+ if (event2 && event2.type === "focusout" && event2.relatedTarget) {
3234
+ return;
3235
+ }
3236
+ update2(document.activeElement);
3237
+ });
3238
+ }
3239
+ // node_modules/svelte/src/internal/client/dom/elements/bindings/input.js
3240
+ function bind_value(input, get2, set2 = get2) {
3241
+ var batches = new WeakSet;
3242
+ listen_to_event_and_reset_event(input, "input", async (is_reset) => {
3243
+ if (true_default && input.type === "checkbox") {
3244
+ bind_invalid_checkbox_value();
3245
+ }
3246
+ var value = is_reset ? input.defaultValue : input.value;
3247
+ value = is_numberlike_input(input) ? to_number(value) : value;
3248
+ set2(value);
3249
+ if (current_batch !== null) {
3250
+ batches.add(current_batch);
3251
+ }
3252
+ await tick();
3253
+ if (value !== (value = get2())) {
3254
+ var start = input.selectionStart;
3255
+ var end = input.selectionEnd;
3256
+ var length = input.value.length;
3257
+ input.value = value ?? "";
3258
+ if (end !== null) {
3259
+ var new_length = input.value.length;
3260
+ if (start === end && end === length && new_length > length) {
3261
+ input.selectionStart = new_length;
3262
+ input.selectionEnd = new_length;
3263
+ } else {
3264
+ input.selectionStart = start;
3265
+ input.selectionEnd = Math.min(end, new_length);
3266
+ }
3267
+ }
3268
+ }
3269
+ });
3270
+ if (hydrating && input.defaultValue !== input.value || untrack(get2) == null && input.value) {
3271
+ set2(is_numberlike_input(input) ? to_number(input.value) : input.value);
3272
+ if (current_batch !== null) {
3273
+ batches.add(current_batch);
3274
+ }
3275
+ }
3276
+ render_effect(() => {
3277
+ if (true_default && input.type === "checkbox") {
3278
+ bind_invalid_checkbox_value();
3279
+ }
3280
+ var value = get2();
3281
+ if (input === document.activeElement) {
3282
+ var batch = async_mode_flag ? previous_batch : current_batch;
3283
+ if (batches.has(batch)) {
3284
+ return;
3285
+ }
3286
+ }
3287
+ if (is_numberlike_input(input) && value === to_number(input.value)) {
3288
+ return;
3289
+ }
3290
+ if (input.type === "date" && !value && !input.value) {
3291
+ return;
3292
+ }
3293
+ if (value !== input.value) {
3294
+ input.value = value ?? "";
3295
+ }
3296
+ });
3297
+ }
3298
+ var pending = new Set;
3299
+ function bind_group(inputs, group_index, input, get2, set2 = get2) {
3300
+ var is_checkbox = input.getAttribute("type") === "checkbox";
3301
+ var binding_group = inputs;
3302
+ let hydration_mismatch2 = false;
3303
+ if (group_index !== null) {
3304
+ for (var index2 of group_index) {
3305
+ binding_group = binding_group[index2] ??= [];
3306
+ }
3307
+ }
3308
+ binding_group.push(input);
3309
+ listen_to_event_and_reset_event(input, "change", () => {
3310
+ var value = input.__value;
3311
+ if (is_checkbox) {
3312
+ value = get_binding_group_value(binding_group, value, input.checked);
3313
+ }
3314
+ set2(value);
3315
+ }, () => set2(is_checkbox ? [] : null));
3316
+ render_effect(() => {
3317
+ var value = get2();
3318
+ if (hydrating && input.defaultChecked !== input.checked) {
3319
+ hydration_mismatch2 = true;
3320
+ return;
3321
+ }
3322
+ if (is_checkbox) {
3323
+ value = value || [];
3324
+ input.checked = value.includes(input.__value);
3325
+ } else {
3326
+ input.checked = is(input.__value, value);
3327
+ }
3328
+ });
3329
+ teardown(() => {
3330
+ var index3 = binding_group.indexOf(input);
3331
+ if (index3 !== -1) {
3332
+ binding_group.splice(index3, 1);
3333
+ }
3334
+ });
3335
+ if (!pending.has(binding_group)) {
3336
+ pending.add(binding_group);
3337
+ queue_micro_task(() => {
3338
+ binding_group.sort((a, b) => a.compareDocumentPosition(b) === 4 ? -1 : 1);
3339
+ pending.delete(binding_group);
3340
+ });
3341
+ }
3342
+ queue_micro_task(() => {
3343
+ if (hydration_mismatch2) {
3344
+ var value;
3345
+ if (is_checkbox) {
3346
+ value = get_binding_group_value(binding_group, value, input.checked);
3347
+ } else {
3348
+ var hydration_input = binding_group.find((input2) => input2.checked);
3349
+ value = hydration_input?.__value;
3350
+ }
3351
+ set2(value);
3352
+ }
3353
+ });
3354
+ }
3355
+ function bind_checked(input, get2, set2 = get2) {
3356
+ listen_to_event_and_reset_event(input, "change", (is_reset) => {
3357
+ var value = is_reset ? input.defaultChecked : input.checked;
3358
+ set2(value);
3359
+ });
3360
+ if (hydrating && input.defaultChecked !== input.checked || untrack(get2) == null) {
3361
+ set2(input.checked);
3362
+ }
3363
+ render_effect(() => {
3364
+ var value = get2();
3365
+ input.checked = Boolean(value);
3366
+ });
3367
+ }
3368
+ function get_binding_group_value(group, __value, checked) {
3369
+ var value = new Set;
3370
+ for (var i = 0;i < group.length; i += 1) {
3371
+ if (group[i].checked) {
3372
+ value.add(group[i].__value);
3373
+ }
3374
+ }
3375
+ if (!checked) {
3376
+ value.delete(__value);
3377
+ }
3378
+ return Array.from(value);
3379
+ }
3380
+ function is_numberlike_input(input) {
3381
+ var type = input.type;
3382
+ return type === "number" || type === "range";
3383
+ }
3384
+ function to_number(value) {
3385
+ return value === "" ? null : +value;
3386
+ }
3387
+ function bind_files(input, get2, set2 = get2) {
3388
+ listen_to_event_and_reset_event(input, "change", () => {
3389
+ set2(input.files);
3390
+ });
3391
+ if (hydrating && input.files) {
3392
+ set2(input.files);
3393
+ }
3394
+ render_effect(() => {
3395
+ input.files = get2();
3396
+ });
3397
+ }
3398
+ // node_modules/svelte/src/internal/client/dom/elements/bindings/media.js
3399
+ function time_ranges_to_array(ranges) {
3400
+ var array = [];
3401
+ for (var i = 0;i < ranges.length; i += 1) {
3402
+ array.push({ start: ranges.start(i), end: ranges.end(i) });
3403
+ }
3404
+ return array;
3405
+ }
3406
+ function bind_current_time(media, get2, set2 = get2) {
3407
+ var raf_id;
3408
+ var value;
3409
+ var callback = () => {
3410
+ cancelAnimationFrame(raf_id);
3411
+ if (!media.paused) {
3412
+ raf_id = requestAnimationFrame(callback);
3413
+ }
3414
+ var next_value = media.currentTime;
3415
+ if (value !== next_value) {
3416
+ set2(value = next_value);
3417
+ }
3418
+ };
3419
+ raf_id = requestAnimationFrame(callback);
3420
+ media.addEventListener("timeupdate", callback);
3421
+ render_effect(() => {
3422
+ var next_value = Number(get2());
3423
+ if (value !== next_value && !isNaN(next_value)) {
3424
+ media.currentTime = value = next_value;
3425
+ }
3426
+ });
3427
+ teardown(() => {
3428
+ cancelAnimationFrame(raf_id);
3429
+ media.removeEventListener("timeupdate", callback);
3430
+ });
3431
+ }
3432
+ function bind_buffered(media, set2) {
3433
+ var current;
3434
+ listen(media, ["loadedmetadata", "progress", "timeupdate", "seeking"], () => {
3435
+ var ranges = media.buffered;
3436
+ if (!current || current.length !== ranges.length || current.some((range, i) => ranges.start(i) !== range.start || ranges.end(i) !== range.end)) {
3437
+ current = time_ranges_to_array(ranges);
3438
+ set2(current);
3439
+ }
3440
+ });
3441
+ }
3442
+ function bind_seekable(media, set2) {
3443
+ listen(media, ["loadedmetadata"], () => set2(time_ranges_to_array(media.seekable)));
3444
+ }
3445
+ function bind_played(media, set2) {
3446
+ listen(media, ["timeupdate"], () => set2(time_ranges_to_array(media.played)));
3447
+ }
3448
+ function bind_seeking(media, set2) {
3449
+ listen(media, ["seeking", "seeked"], () => set2(media.seeking));
3450
+ }
3451
+ function bind_ended(media, set2) {
3452
+ listen(media, ["timeupdate", "ended"], () => set2(media.ended));
3453
+ }
3454
+ function bind_ready_state(media, set2) {
3455
+ listen(media, ["loadedmetadata", "loadeddata", "canplay", "canplaythrough", "playing", "waiting", "emptied"], () => set2(media.readyState));
3456
+ }
3457
+ function bind_playback_rate(media, get2, set2 = get2) {
3458
+ effect(() => {
3459
+ var value = Number(get2());
3460
+ if (value !== media.playbackRate && !isNaN(value)) {
3461
+ media.playbackRate = value;
3462
+ }
3463
+ });
3464
+ effect(() => {
3465
+ listen(media, ["ratechange"], () => {
3466
+ set2(media.playbackRate);
3467
+ });
3468
+ });
3469
+ }
3470
+ function bind_paused(media, get2, set2 = get2) {
3471
+ var paused = get2();
3472
+ var update2 = () => {
3473
+ if (paused !== media.paused) {
3474
+ set2(paused = media.paused);
3475
+ }
3476
+ };
3477
+ listen(media, ["play", "pause", "canplay"], update2, paused == null);
3478
+ effect(() => {
3479
+ if ((paused = !!get2()) !== media.paused) {
3480
+ if (paused) {
3481
+ media.pause();
3482
+ } else {
3483
+ media.play().catch((error) => {
3484
+ set2(paused = true);
3485
+ throw error;
3486
+ });
3487
+ }
3488
+ }
3489
+ });
3490
+ }
3491
+ function bind_volume(media, get2, set2 = get2) {
3492
+ var callback = () => {
3493
+ set2(media.volume);
3494
+ };
3495
+ if (get2() == null) {
3496
+ callback();
3497
+ }
3498
+ listen(media, ["volumechange"], callback, false);
3499
+ render_effect(() => {
3500
+ var value = Number(get2());
3501
+ if (value !== media.volume && !isNaN(value)) {
3502
+ media.volume = value;
3503
+ }
3504
+ });
3505
+ }
3506
+ function bind_muted(media, get2, set2 = get2) {
3507
+ var callback = () => {
3508
+ set2(media.muted);
3509
+ };
3510
+ if (get2() == null) {
3511
+ callback();
3512
+ }
3513
+ listen(media, ["volumechange"], callback, false);
3514
+ render_effect(() => {
3515
+ var value = !!get2();
3516
+ if (media.muted !== value)
3517
+ media.muted = value;
3518
+ });
3519
+ }
3520
+ // node_modules/svelte/src/internal/client/dom/elements/bindings/navigator.js
3521
+ function bind_online(update2) {
3522
+ listen(window, ["online", "offline"], () => {
3523
+ update2(navigator.onLine);
3524
+ });
3525
+ }
3526
+ // node_modules/svelte/src/internal/client/dom/elements/bindings/props.js
3527
+ function bind_prop(props, prop, value) {
3528
+ var desc = get_descriptor(props, prop);
3529
+ if (desc && desc.set) {
3530
+ props[prop] = value;
3531
+ teardown(() => {
3532
+ props[prop] = null;
3533
+ });
3534
+ }
3535
+ }
3536
+ // node_modules/svelte/src/internal/client/dom/elements/bindings/size.js
3537
+ class ResizeObserverSingleton {
3538
+ #listeners = new WeakMap;
3539
+ #observer;
3540
+ #options;
3541
+ static entries = new WeakMap;
3542
+ constructor(options) {
3543
+ this.#options = options;
3544
+ }
3545
+ observe(element2, listener) {
3546
+ var listeners2 = this.#listeners.get(element2) || new Set;
3547
+ listeners2.add(listener);
3548
+ this.#listeners.set(element2, listeners2);
3549
+ this.#getObserver().observe(element2, this.#options);
3550
+ return () => {
3551
+ var listeners3 = this.#listeners.get(element2);
3552
+ listeners3.delete(listener);
3553
+ if (listeners3.size === 0) {
3554
+ this.#listeners.delete(element2);
3555
+ this.#observer.unobserve(element2);
3556
+ }
3557
+ };
3558
+ }
3559
+ #getObserver() {
3560
+ return this.#observer ?? (this.#observer = new ResizeObserver((entries) => {
3561
+ for (var entry of entries) {
3562
+ ResizeObserverSingleton.entries.set(entry.target, entry);
3563
+ for (var listener of this.#listeners.get(entry.target) || []) {
3564
+ listener(entry);
3565
+ }
3566
+ }
3567
+ }));
3568
+ }
3569
+ }
3570
+ var resize_observer_content_box = /* @__PURE__ */ new ResizeObserverSingleton({
3571
+ box: "content-box"
3572
+ });
3573
+ var resize_observer_border_box = /* @__PURE__ */ new ResizeObserverSingleton({
3574
+ box: "border-box"
3575
+ });
3576
+ var resize_observer_device_pixel_content_box = /* @__PURE__ */ new ResizeObserverSingleton({
3577
+ box: "device-pixel-content-box"
3578
+ });
3579
+ function bind_resize_observer(element2, type, set2) {
3580
+ var observer = type === "contentRect" || type === "contentBoxSize" ? resize_observer_content_box : type === "borderBoxSize" ? resize_observer_border_box : resize_observer_device_pixel_content_box;
3581
+ var unsub = observer.observe(element2, (entry) => set2(entry[type]));
3582
+ teardown(unsub);
3583
+ }
3584
+ function bind_element_size(element2, type, set2) {
3585
+ var unsub = resize_observer_border_box.observe(element2, () => set2(element2[type]));
3586
+ effect(() => {
3587
+ untrack(() => set2(element2[type]));
3588
+ return unsub;
3589
+ });
3590
+ }
3591
+ // node_modules/svelte/src/internal/client/dom/elements/bindings/this.js
3592
+ function is_bound_this(bound_value, element_or_component) {
3593
+ return bound_value === element_or_component || bound_value?.[STATE_SYMBOL] === element_or_component;
3594
+ }
3595
+ function bind_this(element_or_component = {}, update2, get_value, get_parts) {
3596
+ var component_effect = component_context.r;
3597
+ var parent = active_effect;
3598
+ effect(() => {
3599
+ var old_parts;
3600
+ var parts;
3601
+ render_effect(() => {
3602
+ old_parts = parts;
3603
+ parts = get_parts?.() || [];
3604
+ untrack(() => {
3605
+ if (element_or_component !== get_value(...parts)) {
3606
+ update2(element_or_component, ...parts);
3607
+ if (old_parts && is_bound_this(get_value(...old_parts), element_or_component)) {
3608
+ update2(null, ...old_parts);
3609
+ }
3610
+ }
3611
+ });
3612
+ });
3613
+ return () => {
3614
+ let p = parent;
3615
+ while (p !== component_effect && p.parent !== null && p.parent.f & DESTROYING) {
3616
+ p = p.parent;
3617
+ }
3618
+ const teardown2 = () => {
3619
+ if (parts && is_bound_this(get_value(...parts), element_or_component)) {
3620
+ update2(null, ...parts);
3621
+ }
3622
+ };
3623
+ const original_teardown = p.teardown;
3624
+ p.teardown = () => {
3625
+ teardown2();
3626
+ original_teardown?.();
3627
+ };
3628
+ };
3629
+ });
3630
+ return element_or_component;
3631
+ }
3632
+ // node_modules/svelte/src/internal/client/dom/elements/bindings/universal.js
3633
+ function bind_content_editable(property, element2, get2, set2 = get2) {
3634
+ element2.addEventListener("input", () => {
3635
+ set2(element2[property]);
3636
+ });
3637
+ render_effect(() => {
3638
+ var value = get2();
3639
+ if (element2[property] !== value) {
3640
+ if (value == null) {
3641
+ var non_null_value = element2[property];
3642
+ set2(non_null_value);
3643
+ } else {
3644
+ element2[property] = value + "";
3645
+ }
3646
+ }
3647
+ });
3648
+ }
3649
+ function bind_property(property, event_name, element2, set2, get2) {
3650
+ var handler = () => {
3651
+ set2(element2[property]);
3652
+ };
3653
+ element2.addEventListener(event_name, handler);
3654
+ if (get2) {
3655
+ render_effect(() => {
3656
+ element2[property] = get2();
3657
+ });
3658
+ } else {
3659
+ handler();
3660
+ }
3661
+ if (element2 === document.body || element2 === window || element2 === document) {
3662
+ teardown(() => {
3663
+ element2.removeEventListener(event_name, handler);
3664
+ });
3665
+ }
3666
+ }
3667
+ function bind_focused(element2, set2) {
3668
+ listen(element2, ["focus", "blur"], () => {
3669
+ set2(element2 === document.activeElement);
3670
+ });
3671
+ }
3672
+ // node_modules/svelte/src/internal/client/dom/elements/bindings/window.js
3673
+ function bind_window_scroll(type, get2, set2 = get2) {
3674
+ var is_scrolling_x = type === "x";
3675
+ var target_handler = () => without_reactive_context(() => {
3676
+ scrolling = true;
3677
+ clearTimeout(timeout);
3678
+ timeout = setTimeout(clear, 100);
3679
+ set2(window[is_scrolling_x ? "scrollX" : "scrollY"]);
3680
+ });
3681
+ addEventListener("scroll", target_handler, {
3682
+ passive: true
3683
+ });
3684
+ var scrolling = false;
3685
+ var timeout;
3686
+ var clear = () => {
3687
+ scrolling = false;
3688
+ };
3689
+ var first = true;
3690
+ render_effect(() => {
3691
+ var latest_value = get2();
3692
+ if (first) {
3693
+ first = false;
3694
+ } else if (!scrolling && latest_value != null) {
3695
+ scrolling = true;
3696
+ clearTimeout(timeout);
3697
+ if (is_scrolling_x) {
3698
+ scrollTo(latest_value, window.scrollY);
3699
+ } else {
3700
+ scrollTo(window.scrollX, latest_value);
3701
+ }
3702
+ timeout = setTimeout(clear, 100);
3703
+ }
3704
+ });
3705
+ effect(target_handler);
3706
+ teardown(() => {
3707
+ removeEventListener("scroll", target_handler);
3708
+ });
3709
+ }
3710
+ function bind_window_size(type, set2) {
3711
+ listen(window, ["resize"], () => without_reactive_context(() => set2(window[type])));
3712
+ }
3713
+ // node_modules/svelte/src/internal/client/dom/legacy/event-modifiers.js
3714
+ function trusted(fn) {
3715
+ return function(...args) {
3716
+ var event2 = args[0];
3717
+ if (event2.isTrusted) {
3718
+ fn?.apply(this, args);
3719
+ }
3720
+ };
3721
+ }
3722
+ function self(fn) {
3723
+ return function(...args) {
3724
+ var event2 = args[0];
3725
+ if (event2.target === this) {
3726
+ fn?.apply(this, args);
3727
+ }
3728
+ };
3729
+ }
3730
+ function stopPropagation(fn) {
3731
+ return function(...args) {
3732
+ var event2 = args[0];
3733
+ event2.stopPropagation();
3734
+ return fn?.apply(this, args);
3735
+ };
3736
+ }
3737
+ function once(fn) {
3738
+ var ran = false;
3739
+ return function(...args) {
3740
+ if (ran)
3741
+ return;
3742
+ ran = true;
3743
+ return fn?.apply(this, args);
3744
+ };
3745
+ }
3746
+ function stopImmediatePropagation(fn) {
3747
+ return function(...args) {
3748
+ var event2 = args[0];
3749
+ event2.stopImmediatePropagation();
3750
+ return fn?.apply(this, args);
3751
+ };
3752
+ }
3753
+ function preventDefault(fn) {
3754
+ return function(...args) {
3755
+ var event2 = args[0];
3756
+ event2.preventDefault();
3757
+ return fn?.apply(this, args);
3758
+ };
3759
+ }
3760
+ // node_modules/svelte/src/internal/client/dom/legacy/lifecycle.js
3761
+ function init(immutable = false) {
3762
+ const context = component_context;
3763
+ const callbacks = context.l.u;
3764
+ if (!callbacks)
3765
+ return;
3766
+ let props = () => deep_read_state(context.s);
3767
+ if (immutable) {
3768
+ let version = 0;
3769
+ let prev = {};
3770
+ const d = derived(() => {
3771
+ let changed = false;
3772
+ const props2 = context.s;
3773
+ for (const key2 in props2) {
3774
+ if (props2[key2] !== prev[key2]) {
3775
+ prev[key2] = props2[key2];
3776
+ changed = true;
3777
+ }
3778
+ }
3779
+ if (changed)
3780
+ version++;
3781
+ return version;
3782
+ });
3783
+ props = () => get(d);
3784
+ }
3785
+ if (callbacks.b.length) {
3786
+ user_pre_effect(() => {
3787
+ observe_all(context, props);
3788
+ run_all(callbacks.b);
3789
+ });
3790
+ }
3791
+ user_effect(() => {
3792
+ const fns = untrack(() => callbacks.m.map(run));
3793
+ return () => {
3794
+ for (const fn of fns) {
3795
+ if (typeof fn === "function") {
3796
+ fn();
3797
+ }
3798
+ }
3799
+ };
3800
+ });
3801
+ if (callbacks.a.length) {
3802
+ user_effect(() => {
3803
+ observe_all(context, props);
3804
+ run_all(callbacks.a);
3805
+ });
3806
+ }
3807
+ }
3808
+ function observe_all(context, props) {
3809
+ if (context.l.s) {
3810
+ for (const signal of context.l.s)
3811
+ get(signal);
3812
+ }
3813
+ props();
3814
+ }
3815
+ // node_modules/svelte/src/internal/client/dom/legacy/misc.js
3816
+ function reactive_import(fn) {
3817
+ var s = source(0);
3818
+ return function() {
3819
+ if (arguments.length === 1) {
3820
+ set(s, get(s) + 1);
3821
+ return arguments[0];
3822
+ } else {
3823
+ get(s);
3824
+ return fn();
3825
+ }
3826
+ };
3827
+ }
3828
+ function bubble_event($$props, event2) {
3829
+ var events = $$props.$$events?.[event2.type];
3830
+ var callbacks = is_array(events) ? events.slice() : events == null ? [] : [events];
3831
+ for (var fn of callbacks) {
3832
+ fn.call(this, event2);
3833
+ }
3834
+ }
3835
+ function add_legacy_event_listener($$props, event_name, event_callback) {
3836
+ $$props.$$events ||= {};
3837
+ $$props.$$events[event_name] ||= [];
3838
+ $$props.$$events[event_name].push(event_callback);
3839
+ }
3840
+ function update_legacy_props($$new_props) {
3841
+ for (var key2 in $$new_props) {
3842
+ if (key2 in this) {
3843
+ this[key2] = $$new_props[key2];
3844
+ }
3845
+ }
3846
+ }
3847
+ // node_modules/svelte/src/internal/client/reactivity/props.js
3848
+ function update_prop(fn, d = 1) {
3849
+ const value = fn();
3850
+ fn(value + d);
3851
+ return value;
3852
+ }
3853
+ function update_pre_prop(fn, d = 1) {
3854
+ const value = fn() + d;
3855
+ fn(value);
3856
+ return value;
3857
+ }
3858
+ var rest_props_handler = {
3859
+ get(target, key2) {
3860
+ if (target.exclude.includes(key2))
3861
+ return;
3862
+ return target.props[key2];
3863
+ },
3864
+ set(target, key2) {
3865
+ if (true_default) {
3866
+ props_rest_readonly(`${target.name}.${String(key2)}`);
3867
+ }
3868
+ return false;
3869
+ },
3870
+ getOwnPropertyDescriptor(target, key2) {
3871
+ if (target.exclude.includes(key2))
3872
+ return;
3873
+ if (key2 in target.props) {
3874
+ return {
3875
+ enumerable: true,
3876
+ configurable: true,
3877
+ value: target.props[key2]
3878
+ };
3879
+ }
3880
+ },
3881
+ has(target, key2) {
3882
+ if (target.exclude.includes(key2))
3883
+ return false;
3884
+ return key2 in target.props;
3885
+ },
3886
+ ownKeys(target) {
3887
+ return Reflect.ownKeys(target.props).filter((key2) => !target.exclude.includes(key2));
3888
+ }
3889
+ };
3890
+ function rest_props(props, exclude, name) {
3891
+ return new Proxy(true_default ? { props, exclude, name, other: {}, to_proxy: [] } : { props, exclude }, rest_props_handler);
3892
+ }
3893
+ var legacy_rest_props_handler = {
3894
+ get(target, key2) {
3895
+ if (target.exclude.includes(key2))
3896
+ return;
3897
+ get(target.version);
3898
+ return key2 in target.special ? target.special[key2]() : target.props[key2];
3899
+ },
3900
+ set(target, key2, value) {
3901
+ if (!(key2 in target.special)) {
3902
+ var previous_effect = active_effect;
3903
+ try {
3904
+ set_active_effect(target.parent_effect);
3905
+ target.special[key2] = prop({
3906
+ get [key2]() {
3907
+ return target.props[key2];
3908
+ }
3909
+ }, key2, PROPS_IS_UPDATED);
3910
+ } finally {
3911
+ set_active_effect(previous_effect);
3912
+ }
3913
+ }
3914
+ target.special[key2](value);
3915
+ update(target.version);
3916
+ return true;
3917
+ },
3918
+ getOwnPropertyDescriptor(target, key2) {
3919
+ if (target.exclude.includes(key2))
3920
+ return;
3921
+ if (key2 in target.props) {
3922
+ return {
3923
+ enumerable: true,
3924
+ configurable: true,
3925
+ value: target.props[key2]
3926
+ };
3927
+ }
3928
+ },
3929
+ deleteProperty(target, key2) {
3930
+ if (target.exclude.includes(key2))
3931
+ return true;
3932
+ target.exclude.push(key2);
3933
+ update(target.version);
3934
+ return true;
3935
+ },
3936
+ has(target, key2) {
3937
+ if (target.exclude.includes(key2))
3938
+ return false;
3939
+ return key2 in target.props;
3940
+ },
3941
+ ownKeys(target) {
3942
+ return Reflect.ownKeys(target.props).filter((key2) => !target.exclude.includes(key2));
3943
+ }
3944
+ };
3945
+ function legacy_rest_props(props, exclude) {
3946
+ return new Proxy({
3947
+ props,
3948
+ exclude,
3949
+ special: {},
3950
+ version: source(0),
3951
+ parent_effect: active_effect
3952
+ }, legacy_rest_props_handler);
3953
+ }
3954
+ var spread_props_handler = {
3955
+ get(target, key2) {
3956
+ let i = target.props.length;
3957
+ while (i--) {
3958
+ let p = target.props[i];
3959
+ if (is_function(p))
3960
+ p = p();
3961
+ if (typeof p === "object" && p !== null && key2 in p)
3962
+ return p[key2];
3963
+ }
3964
+ },
3965
+ set(target, key2, value) {
3966
+ let i = target.props.length;
3967
+ while (i--) {
3968
+ let p = target.props[i];
3969
+ if (is_function(p))
3970
+ p = p();
3971
+ const desc = get_descriptor(p, key2);
3972
+ if (desc && desc.set) {
3973
+ desc.set(value);
3974
+ return true;
3975
+ }
3976
+ }
3977
+ return false;
3978
+ },
3979
+ getOwnPropertyDescriptor(target, key2) {
3980
+ let i = target.props.length;
3981
+ while (i--) {
3982
+ let p = target.props[i];
3983
+ if (is_function(p))
3984
+ p = p();
3985
+ if (typeof p === "object" && p !== null && key2 in p) {
3986
+ const descriptor = get_descriptor(p, key2);
3987
+ if (descriptor && !descriptor.configurable) {
3988
+ descriptor.configurable = true;
3989
+ }
3990
+ return descriptor;
3991
+ }
3992
+ }
3993
+ },
3994
+ has(target, key2) {
3995
+ if (key2 === STATE_SYMBOL || key2 === LEGACY_PROPS)
3996
+ return false;
3997
+ for (let p of target.props) {
3998
+ if (is_function(p))
3999
+ p = p();
4000
+ if (p != null && key2 in p)
4001
+ return true;
4002
+ }
4003
+ return false;
4004
+ },
4005
+ ownKeys(target) {
4006
+ const keys = [];
4007
+ for (let p of target.props) {
4008
+ if (is_function(p))
4009
+ p = p();
4010
+ if (!p)
4011
+ continue;
4012
+ for (const key2 in p) {
4013
+ if (!keys.includes(key2))
4014
+ keys.push(key2);
4015
+ }
4016
+ for (const key2 of Object.getOwnPropertySymbols(p)) {
4017
+ if (!keys.includes(key2))
4018
+ keys.push(key2);
4019
+ }
4020
+ }
4021
+ return keys;
4022
+ }
4023
+ };
4024
+ function spread_props(...props) {
4025
+ return new Proxy({ props }, spread_props_handler);
4026
+ }
4027
+ function prop(props, key2, flags, fallback) {
4028
+ var runes = !legacy_mode_flag || (flags & PROPS_IS_RUNES) !== 0;
4029
+ var bindable = (flags & PROPS_IS_BINDABLE) !== 0;
4030
+ var lazy = (flags & PROPS_IS_LAZY_INITIAL) !== 0;
4031
+ var fallback_value = fallback;
4032
+ var fallback_dirty = true;
4033
+ var get_fallback = () => {
4034
+ if (fallback_dirty) {
4035
+ fallback_dirty = false;
4036
+ fallback_value = lazy ? untrack(fallback) : fallback;
4037
+ }
4038
+ return fallback_value;
4039
+ };
4040
+ let setter;
4041
+ if (bindable) {
4042
+ var is_entry_props = STATE_SYMBOL in props || LEGACY_PROPS in props;
4043
+ setter = get_descriptor(props, key2)?.set ?? (is_entry_props && key2 in props ? (v) => props[key2] = v : undefined);
4044
+ }
4045
+ var initial_value;
4046
+ var is_store_sub = false;
4047
+ if (bindable) {
4048
+ [initial_value, is_store_sub] = capture_store_binding(() => props[key2]);
4049
+ } else {
4050
+ initial_value = props[key2];
4051
+ }
4052
+ if (initial_value === undefined && fallback !== undefined) {
4053
+ initial_value = get_fallback();
4054
+ if (setter) {
4055
+ if (runes)
4056
+ props_invalid_value(key2);
4057
+ setter(initial_value);
4058
+ }
4059
+ }
4060
+ var getter;
4061
+ if (runes) {
4062
+ getter = () => {
4063
+ var value = props[key2];
4064
+ if (value === undefined)
4065
+ return get_fallback();
4066
+ fallback_dirty = true;
4067
+ return value;
4068
+ };
4069
+ } else {
4070
+ getter = () => {
4071
+ var value = props[key2];
4072
+ if (value !== undefined) {
4073
+ fallback_value = undefined;
4074
+ }
4075
+ return value === undefined ? fallback_value : value;
4076
+ };
4077
+ }
4078
+ if (runes && (flags & PROPS_IS_UPDATED) === 0) {
4079
+ return getter;
4080
+ }
4081
+ if (setter) {
4082
+ var legacy_parent = props.$$legacy;
4083
+ return function(value, mutation) {
4084
+ if (arguments.length > 0) {
4085
+ if (!runes || !mutation || legacy_parent || is_store_sub) {
4086
+ setter(mutation ? getter() : value);
4087
+ }
4088
+ return value;
4089
+ }
4090
+ return getter();
4091
+ };
4092
+ }
4093
+ var overridden = false;
4094
+ var d = ((flags & PROPS_IS_IMMUTABLE) !== 0 ? derived : derived_safe_equal)(() => {
4095
+ overridden = false;
4096
+ return getter();
4097
+ });
4098
+ if (true_default) {
4099
+ d.label = key2;
4100
+ }
4101
+ if (bindable)
4102
+ get(d);
4103
+ var parent_effect = active_effect;
4104
+ return function(value, mutation) {
4105
+ if (arguments.length > 0) {
4106
+ const new_value = mutation ? get(d) : runes && bindable ? proxy(value) : value;
4107
+ set(d, new_value);
4108
+ overridden = true;
4109
+ if (fallback_value !== undefined) {
4110
+ fallback_value = new_value;
4111
+ }
4112
+ return value;
4113
+ }
4114
+ if (is_destroying_effect && overridden || (parent_effect.f & DESTROYED) !== 0) {
4115
+ return d.v;
4116
+ }
4117
+ return get(d);
4118
+ };
4119
+ }
4120
+ // node_modules/svelte/src/internal/client/validate.js
4121
+ function validate_binding(binding, blockers, get_object, get_property, line, column) {
4122
+ run_after_blockers(blockers, () => {
4123
+ var warned = false;
4124
+ var filename = dev_current_component_function?.[FILENAME];
4125
+ render_effect(() => {
4126
+ if (warned)
4127
+ return;
4128
+ var [object, is_store_sub] = capture_store_binding(get_object);
4129
+ if (is_store_sub)
4130
+ return;
4131
+ var property = get_property();
4132
+ var ran = false;
4133
+ var effect2 = render_effect(() => {
4134
+ if (ran)
4135
+ return;
4136
+ object[property];
4137
+ });
4138
+ ran = true;
4139
+ if (effect2.deps === null) {
4140
+ var location = `${filename}:${line}:${column}`;
4141
+ binding_property_non_reactive(binding, location);
4142
+ warned = true;
4143
+ }
4144
+ });
4145
+ });
4146
+ }
4147
+ // node_modules/svelte/src/legacy/legacy-client.js
4148
+ function createClassComponent(options) {
4149
+ return new Svelte4Component(options);
4150
+ }
4151
+ class Svelte4Component {
4152
+ #events;
4153
+ #instance;
4154
+ constructor(options) {
4155
+ var sources = new Map;
4156
+ var add_source = (key2, value) => {
4157
+ var s = mutable_source(value, false, false);
4158
+ sources.set(key2, s);
4159
+ return s;
4160
+ };
4161
+ const props = new Proxy({ ...options.props || {}, $$events: {} }, {
4162
+ get(target, prop2) {
4163
+ return get(sources.get(prop2) ?? add_source(prop2, Reflect.get(target, prop2)));
4164
+ },
4165
+ has(target, prop2) {
4166
+ if (prop2 === LEGACY_PROPS)
4167
+ return true;
4168
+ get(sources.get(prop2) ?? add_source(prop2, Reflect.get(target, prop2)));
4169
+ return Reflect.has(target, prop2);
4170
+ },
4171
+ set(target, prop2, value) {
4172
+ set(sources.get(prop2) ?? add_source(prop2, value), value);
4173
+ return Reflect.set(target, prop2, value);
4174
+ }
4175
+ });
4176
+ this.#instance = (options.hydrate ? hydrate : mount)(options.component, {
4177
+ target: options.target,
4178
+ anchor: options.anchor,
4179
+ props,
4180
+ context: options.context,
4181
+ intro: options.intro ?? false,
4182
+ recover: options.recover,
4183
+ transformError: options.transformError
4184
+ });
4185
+ if (!async_mode_flag && (!options?.props?.$$host || options.sync === false)) {
4186
+ flushSync();
4187
+ }
4188
+ this.#events = props.$$events;
4189
+ for (const key2 of Object.keys(this.#instance)) {
4190
+ if (key2 === "$set" || key2 === "$destroy" || key2 === "$on")
4191
+ continue;
4192
+ define_property(this, key2, {
4193
+ get() {
4194
+ return this.#instance[key2];
4195
+ },
4196
+ set(value) {
4197
+ this.#instance[key2] = value;
4198
+ },
4199
+ enumerable: true
4200
+ });
4201
+ }
4202
+ this.#instance.$set = (next) => {
4203
+ Object.assign(props, next);
4204
+ };
4205
+ this.#instance.$destroy = () => {
4206
+ unmount(this.#instance);
4207
+ };
4208
+ }
4209
+ $set(props) {
4210
+ this.#instance.$set(props);
4211
+ }
4212
+ $on(event2, callback) {
4213
+ this.#events[event2] = this.#events[event2] || [];
4214
+ const cb = (...args) => callback.call(this, ...args);
4215
+ this.#events[event2].push(cb);
4216
+ return () => {
4217
+ this.#events[event2] = this.#events[event2].filter((fn) => fn !== cb);
4218
+ };
4219
+ }
4220
+ $destroy() {
4221
+ this.#instance.$destroy();
4222
+ }
4223
+ }
4224
+
4225
+ // node_modules/svelte/src/internal/client/dom/elements/custom-element.js
4226
+ var SvelteElement;
4227
+ if (typeof HTMLElement === "function") {
4228
+ SvelteElement = class extends HTMLElement {
4229
+ $$ctor;
4230
+ $$s;
4231
+ $$c;
4232
+ $$cn = false;
4233
+ $$d = {};
4234
+ $$r = false;
4235
+ $$p_d = {};
4236
+ $$l = {};
4237
+ $$l_u = new Map;
4238
+ $$me;
4239
+ $$shadowRoot = null;
4240
+ constructor($$componentCtor, $$slots, shadow_root_init) {
4241
+ super();
4242
+ this.$$ctor = $$componentCtor;
4243
+ this.$$s = $$slots;
4244
+ if (shadow_root_init) {
4245
+ this.$$shadowRoot = this.attachShadow(shadow_root_init);
4246
+ }
4247
+ }
4248
+ addEventListener(type, listener, options) {
4249
+ this.$$l[type] = this.$$l[type] || [];
4250
+ this.$$l[type].push(listener);
4251
+ if (this.$$c) {
4252
+ const unsub = this.$$c.$on(type, listener);
4253
+ this.$$l_u.set(listener, unsub);
4254
+ }
4255
+ super.addEventListener(type, listener, options);
4256
+ }
4257
+ removeEventListener(type, listener, options) {
4258
+ super.removeEventListener(type, listener, options);
4259
+ if (this.$$c) {
4260
+ const unsub = this.$$l_u.get(listener);
4261
+ if (unsub) {
4262
+ unsub();
4263
+ this.$$l_u.delete(listener);
4264
+ }
4265
+ }
4266
+ }
4267
+ async connectedCallback() {
4268
+ this.$$cn = true;
4269
+ if (!this.$$c) {
4270
+ let create_slot = function(name) {
4271
+ return (anchor) => {
4272
+ const slot2 = create_element("slot");
4273
+ if (name !== "default")
4274
+ slot2.name = name;
4275
+ append(anchor, slot2);
4276
+ };
4277
+ };
4278
+ await Promise.resolve();
4279
+ if (!this.$$cn || this.$$c) {
4280
+ return;
4281
+ }
4282
+ const $$slots = {};
4283
+ const existing_slots = get_custom_elements_slots(this);
4284
+ for (const name of this.$$s) {
4285
+ if (name in existing_slots) {
4286
+ if (name === "default" && !this.$$d.children) {
4287
+ this.$$d.children = create_slot(name);
4288
+ $$slots.default = true;
4289
+ } else {
4290
+ $$slots[name] = create_slot(name);
4291
+ }
4292
+ }
4293
+ }
4294
+ for (const attribute of this.attributes) {
4295
+ const name = this.$$g_p(attribute.name);
4296
+ if (!(name in this.$$d)) {
4297
+ this.$$d[name] = get_custom_element_value(name, attribute.value, this.$$p_d, "toProp");
4298
+ }
4299
+ }
4300
+ for (const key2 in this.$$p_d) {
4301
+ if (!(key2 in this.$$d) && this[key2] !== undefined) {
4302
+ this.$$d[key2] = this[key2];
4303
+ delete this[key2];
4304
+ }
4305
+ }
4306
+ this.$$c = createClassComponent({
4307
+ component: this.$$ctor,
4308
+ target: this.$$shadowRoot || this,
4309
+ props: {
4310
+ ...this.$$d,
4311
+ $$slots,
4312
+ $$host: this
4313
+ }
4314
+ });
4315
+ this.$$me = effect_root(() => {
4316
+ render_effect(() => {
4317
+ this.$$r = true;
4318
+ for (const key2 of object_keys(this.$$c)) {
4319
+ if (!this.$$p_d[key2]?.reflect)
4320
+ continue;
4321
+ this.$$d[key2] = this.$$c[key2];
4322
+ const attribute_value = get_custom_element_value(key2, this.$$d[key2], this.$$p_d, "toAttribute");
4323
+ if (attribute_value == null) {
4324
+ this.removeAttribute(this.$$p_d[key2].attribute || key2);
4325
+ } else {
4326
+ this.setAttribute(this.$$p_d[key2].attribute || key2, attribute_value);
4327
+ }
4328
+ }
4329
+ this.$$r = false;
4330
+ });
4331
+ });
4332
+ for (const type in this.$$l) {
4333
+ for (const listener of this.$$l[type]) {
4334
+ const unsub = this.$$c.$on(type, listener);
4335
+ this.$$l_u.set(listener, unsub);
4336
+ }
4337
+ }
4338
+ this.$$l = {};
4339
+ }
4340
+ }
4341
+ attributeChangedCallback(attr2, _oldValue, newValue) {
4342
+ if (this.$$r)
4343
+ return;
4344
+ attr2 = this.$$g_p(attr2);
4345
+ this.$$d[attr2] = get_custom_element_value(attr2, newValue, this.$$p_d, "toProp");
4346
+ this.$$c?.$set({ [attr2]: this.$$d[attr2] });
4347
+ }
4348
+ disconnectedCallback() {
4349
+ this.$$cn = false;
4350
+ Promise.resolve().then(() => {
4351
+ if (!this.$$cn && this.$$c) {
4352
+ this.$$c.$destroy();
4353
+ this.$$me();
4354
+ this.$$c = undefined;
4355
+ }
4356
+ });
4357
+ }
4358
+ $$g_p(attribute_name) {
4359
+ return object_keys(this.$$p_d).find((key2) => this.$$p_d[key2].attribute === attribute_name || !this.$$p_d[key2].attribute && key2.toLowerCase() === attribute_name) || attribute_name;
4360
+ }
4361
+ };
4362
+ }
4363
+ function get_custom_element_value(prop2, value, props_definition, transform) {
4364
+ const type = props_definition[prop2]?.type;
4365
+ value = type === "Boolean" && typeof value !== "boolean" ? value != null : value;
4366
+ if (!transform || !props_definition[prop2]) {
4367
+ return value;
4368
+ } else if (transform === "toAttribute") {
4369
+ switch (type) {
4370
+ case "Object":
4371
+ case "Array":
4372
+ return value == null ? null : JSON.stringify(value);
4373
+ case "Boolean":
4374
+ return value ? "" : null;
4375
+ case "Number":
4376
+ return value == null ? null : value;
4377
+ default:
4378
+ return value;
4379
+ }
4380
+ } else {
4381
+ switch (type) {
4382
+ case "Object":
4383
+ case "Array":
4384
+ return value && JSON.parse(value);
4385
+ case "Boolean":
4386
+ return value;
4387
+ case "Number":
4388
+ return value != null ? +value : value;
4389
+ default:
4390
+ return value;
4391
+ }
4392
+ }
4393
+ }
4394
+ function get_custom_elements_slots(element2) {
4395
+ const result = {};
4396
+ element2.childNodes.forEach((node) => {
4397
+ result[node.slot || "default"] = true;
4398
+ });
4399
+ return result;
4400
+ }
4401
+ function create_custom_element(Component, props_definition, slots, exports, shadow_root_init, extend) {
4402
+ let Class = class extends SvelteElement {
4403
+ constructor() {
4404
+ super(Component, slots, shadow_root_init);
4405
+ this.$$p_d = props_definition;
4406
+ }
4407
+ static get observedAttributes() {
4408
+ return object_keys(props_definition).map((key2) => (props_definition[key2].attribute || key2).toLowerCase());
4409
+ }
4410
+ };
4411
+ object_keys(props_definition).forEach((prop2) => {
4412
+ define_property(Class.prototype, prop2, {
4413
+ get() {
4414
+ return this.$$c && prop2 in this.$$c ? this.$$c[prop2] : this.$$d[prop2];
4415
+ },
4416
+ set(value) {
4417
+ value = get_custom_element_value(prop2, value, props_definition);
4418
+ this.$$d[prop2] = value;
4419
+ var component2 = this.$$c;
4420
+ if (component2) {
4421
+ var setter = get_descriptor(component2, prop2)?.get;
4422
+ if (setter) {
4423
+ component2[prop2] = value;
4424
+ } else {
4425
+ component2.$set({ [prop2]: value });
4426
+ }
4427
+ }
4428
+ }
4429
+ });
4430
+ });
4431
+ exports.forEach((property) => {
4432
+ define_property(Class.prototype, property, {
4433
+ get() {
4434
+ return this.$$c?.[property];
4435
+ }
4436
+ });
4437
+ });
4438
+ if (extend) {
4439
+ Class = extend(Class);
4440
+ }
4441
+ Component.element = Class;
4442
+ return Class;
4443
+ }
4444
+ // node_modules/svelte/src/internal/client/dev/console-log.js
4445
+ function log_if_contains_state(method, ...objects) {
4446
+ untrack(() => {
4447
+ try {
4448
+ let has_state = false;
4449
+ const transformed = [];
4450
+ for (const obj of objects) {
4451
+ if (obj && typeof obj === "object" && STATE_SYMBOL in obj) {
4452
+ transformed.push(snapshot(obj, true));
4453
+ has_state = true;
4454
+ } else {
4455
+ transformed.push(obj);
4456
+ }
4457
+ }
4458
+ if (has_state) {
4459
+ console_log_state(method);
4460
+ console.log("%c[snapshot]", "color: grey", ...transformed);
4461
+ }
4462
+ } catch {}
4463
+ });
4464
+ return objects;
4465
+ }
4466
+ // node_modules/svelte/src/internal/client/hydratable.js
4467
+ function hydratable(key2, fn) {
4468
+ if (!async_mode_flag) {
4469
+ experimental_async_required("hydratable");
4470
+ }
4471
+ if (hydrating) {
4472
+ const store = window.__svelte?.h;
4473
+ if (store?.has(key2)) {
4474
+ return store.get(key2);
4475
+ }
4476
+ if (true_default) {
4477
+ hydratable_missing_but_required(key2);
4478
+ } else {
4479
+ hydratable_missing_but_expected(key2);
4480
+ }
4481
+ }
4482
+ return fn();
4483
+ }
4484
+
4485
+ // node_modules/svelte/src/index-client.js
4486
+ if (true_default) {
4487
+ let throw_rune_error = function(rune) {
4488
+ if (!(rune in globalThis)) {
4489
+ let value;
4490
+ Object.defineProperty(globalThis, rune, {
4491
+ configurable: true,
4492
+ get: () => {
4493
+ if (value !== undefined) {
4494
+ return value;
4495
+ }
4496
+ rune_outside_svelte(rune);
4497
+ },
4498
+ set: (v) => {
4499
+ value = v;
4500
+ }
4501
+ });
4502
+ }
4503
+ };
4504
+ throw_rune_error("$state");
4505
+ throw_rune_error("$effect");
4506
+ throw_rune_error("$derived");
4507
+ throw_rune_error("$inspect");
4508
+ throw_rune_error("$props");
4509
+ throw_rune_error("$bindable");
4510
+ }
4511
+ function getAbortSignal() {
4512
+ if (active_reaction === null) {
4513
+ get_abort_signal_outside_reaction();
4514
+ }
4515
+ return (active_reaction.ac ??= new AbortController).signal;
4516
+ }
4517
+ function onMount(fn) {
4518
+ if (component_context === null) {
4519
+ lifecycle_outside_component("onMount");
4520
+ }
4521
+ if (legacy_mode_flag && component_context.l !== null) {
4522
+ init_update_callbacks(component_context).m.push(fn);
4523
+ } else {
4524
+ user_effect(() => {
4525
+ const cleanup = untrack(fn);
4526
+ if (typeof cleanup === "function")
4527
+ return cleanup;
4528
+ });
4529
+ }
4530
+ }
4531
+ function onDestroy(fn) {
4532
+ if (component_context === null) {
4533
+ lifecycle_outside_component("onDestroy");
4534
+ }
4535
+ onMount(() => () => untrack(fn));
4536
+ }
4537
+ function create_custom_event(type, detail, { bubbles = false, cancelable = false } = {}) {
4538
+ return new CustomEvent(type, { detail, bubbles, cancelable });
4539
+ }
4540
+ function createEventDispatcher() {
4541
+ const active_component_context = component_context;
4542
+ if (active_component_context === null) {
4543
+ lifecycle_outside_component("createEventDispatcher");
4544
+ }
4545
+ return (type, detail, options) => {
4546
+ const events = active_component_context.s.$$events?.[type];
4547
+ if (events) {
4548
+ const callbacks = is_array(events) ? events.slice() : [events];
4549
+ const event2 = create_custom_event(type, detail, options);
4550
+ for (const fn of callbacks) {
4551
+ fn.call(active_component_context.x, event2);
4552
+ }
4553
+ return !event2.defaultPrevented;
4554
+ }
4555
+ return true;
4556
+ };
4557
+ }
4558
+ function beforeUpdate(fn) {
4559
+ if (component_context === null) {
4560
+ lifecycle_outside_component("beforeUpdate");
4561
+ }
4562
+ if (component_context.l === null) {
4563
+ lifecycle_legacy_only("beforeUpdate");
4564
+ }
4565
+ init_update_callbacks(component_context).b.push(fn);
4566
+ }
4567
+ function afterUpdate(fn) {
4568
+ if (component_context === null) {
4569
+ lifecycle_outside_component("afterUpdate");
4570
+ }
4571
+ if (component_context.l === null) {
4572
+ lifecycle_legacy_only("afterUpdate");
4573
+ }
4574
+ init_update_callbacks(component_context).a.push(fn);
4575
+ }
4576
+ function init_update_callbacks(context) {
4577
+ var l = context.l;
4578
+ return l.u ??= { a: [], b: [], m: [] };
4579
+ }
4580
+
4581
+ // node_modules/svelte/src/attachments/index.js
4582
+ function createAttachmentKey() {
4583
+ return Symbol(ATTACHMENT_KEY);
4584
+ }
4585
+
4586
+ export { createAttachmentKey, assign, assign_async, cleanup_styles, add_locations, replay_events, event, delegated, delegate, apply, from_html, from_svg, from_mathml, from_tree, with_script, text, comment, append, props_id, set_text, mount, hydrate, unmount, hmr, create_ownership_validator, check_target, legacy_api, inspect, async, validate_snippet_args, await_block, if_block, key, css_props, index, each, html, slot, sanitize_slots, validate_void_dynamic_element, validate_dynamic_element_tag, validate_store, prevent_snippet_stringification, snippet, wrap_snippet, createRawSnippet, component, raf, animation, transition, element, head, append_styles, action, attach, attr, clsx2 as clsx, set_class, set_style, select_option, init_select, bind_select_value, CLASS, STYLE, remove_input_defaults, set_value, set_checked, set_selected, set_default_checked, set_default_value, set_attribute2 as set_attribute, set_xlink_attribute, set_custom_element_data, attribute_effect, selectedcontent, customizable_select, bind_active_element, bind_value, bind_group, bind_checked, bind_files, bind_current_time, bind_buffered, bind_seekable, bind_played, bind_seeking, bind_ended, bind_ready_state, bind_playback_rate, bind_paused, bind_volume, bind_muted, bind_online, bind_prop, bind_resize_observer, bind_element_size, bind_this, bind_content_editable, bind_property, bind_focused, bind_window_scroll, bind_window_size, trusted, self, stopPropagation, once, stopImmediatePropagation, preventDefault, init, reactive_import, bubble_event, add_legacy_event_listener, update_legacy_props, update_prop, update_pre_prop, rest_props, legacy_rest_props, spread_props, prop, validate_binding, create_custom_element, log_if_contains_state, hydratable, getAbortSignal, onMount, onDestroy, createEventDispatcher, beforeUpdate, afterUpdate };