watch-tail 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +210 -0
  3. package/build/client/_app/immutable/assets/0.B1NsRRrX.css +2 -0
  4. package/build/client/_app/immutable/assets/0.B1NsRRrX.css.br +0 -0
  5. package/build/client/_app/immutable/assets/0.B1NsRRrX.css.gz +0 -0
  6. package/build/client/_app/immutable/chunks/Bjy-W4x2.js +81 -0
  7. package/build/client/_app/immutable/chunks/Bjy-W4x2.js.br +0 -0
  8. package/build/client/_app/immutable/chunks/Bjy-W4x2.js.gz +0 -0
  9. package/build/client/_app/immutable/chunks/DCKWcE8r.js +1 -0
  10. package/build/client/_app/immutable/chunks/DCKWcE8r.js.br +0 -0
  11. package/build/client/_app/immutable/chunks/DCKWcE8r.js.gz +0 -0
  12. package/build/client/_app/immutable/chunks/DDRhiz1-.js +1 -0
  13. package/build/client/_app/immutable/chunks/DDRhiz1-.js.br +0 -0
  14. package/build/client/_app/immutable/chunks/DDRhiz1-.js.gz +0 -0
  15. package/build/client/_app/immutable/chunks/ZAD2y5xJ.js +3 -0
  16. package/build/client/_app/immutable/chunks/ZAD2y5xJ.js.br +0 -0
  17. package/build/client/_app/immutable/chunks/ZAD2y5xJ.js.gz +0 -0
  18. package/build/client/_app/immutable/chunks/xihTtKlq.js +1 -0
  19. package/build/client/_app/immutable/chunks/xihTtKlq.js.br +1 -0
  20. package/build/client/_app/immutable/chunks/xihTtKlq.js.gz +0 -0
  21. package/build/client/_app/immutable/entry/app.DIoggGwf.js +2 -0
  22. package/build/client/_app/immutable/entry/app.DIoggGwf.js.br +0 -0
  23. package/build/client/_app/immutable/entry/app.DIoggGwf.js.gz +0 -0
  24. package/build/client/_app/immutable/entry/start._YXgjuSB.js +1 -0
  25. package/build/client/_app/immutable/entry/start._YXgjuSB.js.br +0 -0
  26. package/build/client/_app/immutable/entry/start._YXgjuSB.js.gz +0 -0
  27. package/build/client/_app/immutable/nodes/0.D5bYt7iX.js +1 -0
  28. package/build/client/_app/immutable/nodes/0.D5bYt7iX.js.br +0 -0
  29. package/build/client/_app/immutable/nodes/0.D5bYt7iX.js.gz +0 -0
  30. package/build/client/_app/immutable/nodes/1.DBX83mYX.js +1 -0
  31. package/build/client/_app/immutable/nodes/1.DBX83mYX.js.br +0 -0
  32. package/build/client/_app/immutable/nodes/1.DBX83mYX.js.gz +0 -0
  33. package/build/client/_app/immutable/nodes/2.DiH-2moC.js +5 -0
  34. package/build/client/_app/immutable/nodes/2.DiH-2moC.js.br +0 -0
  35. package/build/client/_app/immutable/nodes/2.DiH-2moC.js.gz +0 -0
  36. package/build/client/_app/version.json +1 -0
  37. package/build/client/_app/version.json.br +0 -0
  38. package/build/client/_app/version.json.gz +0 -0
  39. package/build/client/robots.txt +3 -0
  40. package/build/client/robots.txt.br +0 -0
  41. package/build/client/robots.txt.gz +0 -0
  42. package/build/env.js +70 -0
  43. package/build/env.js.map +1 -0
  44. package/build/handler.js +24 -0
  45. package/build/handler.js.map +1 -0
  46. package/build/index.js +147 -0
  47. package/build/index.js.map +1 -0
  48. package/build/server/chunks/chunks/env.js-l0sNRNKZ.js +2 -0
  49. package/build/server/chunks/chunks/env.js-l0sNRNKZ.js.map +1 -0
  50. package/build/server/chunks/chunks/env2.js-D7xrfc37.js +316 -0
  51. package/build/server/chunks/chunks/env2.js-D7xrfc37.js.map +1 -0
  52. package/build/server/chunks/chunks/exports.js-CvFPPbaH.js +263 -0
  53. package/build/server/chunks/chunks/exports.js-CvFPPbaH.js.map +1 -0
  54. package/build/server/chunks/chunks/internal.js-DdmUz1r3.js +1191 -0
  55. package/build/server/chunks/chunks/internal.js-DdmUz1r3.js.map +1 -0
  56. package/build/server/chunks/chunks/internal2.js-DZ8ZzzjN.js +22 -0
  57. package/build/server/chunks/chunks/internal2.js-DZ8ZzzjN.js.map +1 -0
  58. package/build/server/chunks/chunks/regions.js-IQPMyP5C.js +52 -0
  59. package/build/server/chunks/chunks/regions.js-IQPMyP5C.js.map +1 -0
  60. package/build/server/chunks/chunks/server.js-ByNB8uti.js +3659 -0
  61. package/build/server/chunks/chunks/server.js-ByNB8uti.js.map +1 -0
  62. package/build/server/chunks/chunks/shared-server.js-Dn5XheXH.js +22 -0
  63. package/build/server/chunks/chunks/shared-server.js-Dn5XheXH.js.map +1 -0
  64. package/build/server/chunks/chunks/shared.js-CgjUIvRK.js +776 -0
  65. package/build/server/chunks/chunks/shared.js-CgjUIvRK.js.map +1 -0
  66. package/build/server/chunks/chunks/state.js-ClLTNPGs.js +86 -0
  67. package/build/server/chunks/chunks/state.js-ClLTNPGs.js.map +1 -0
  68. package/build/server/chunks/chunks/time-range.js-BLMT8aU3.js +102 -0
  69. package/build/server/chunks/chunks/time-range.js-BLMT8aU3.js.map +1 -0
  70. package/build/server/chunks/chunks/uneval.js-DaakSYFQ.js +488 -0
  71. package/build/server/chunks/chunks/uneval.js-DaakSYFQ.js.map +1 -0
  72. package/build/server/chunks/chunks/utils.js-BIlHjgGW.js +933 -0
  73. package/build/server/chunks/chunks/utils.js-BIlHjgGW.js.map +1 -0
  74. package/build/server/chunks/entries/endpoints/api/health/_server.ts.js-aiNZfkco.js +41 -0
  75. package/build/server/chunks/entries/endpoints/api/health/_server.ts.js-aiNZfkco.js.map +1 -0
  76. package/build/server/chunks/entries/endpoints/api/log-groups/_server.ts.js-D143-vRl.js +120 -0
  77. package/build/server/chunks/entries/endpoints/api/log-groups/_server.ts.js-D143-vRl.js.map +1 -0
  78. package/build/server/chunks/entries/endpoints/api/regions/_server.ts.js-CDNL7msU.js +88 -0
  79. package/build/server/chunks/entries/endpoints/api/regions/_server.ts.js-CDNL7msU.js.map +1 -0
  80. package/build/server/chunks/entries/endpoints/api/stream/_server.ts.js-D_i-xW6_.js +610 -0
  81. package/build/server/chunks/entries/endpoints/api/stream/_server.ts.js-D_i-xW6_.js.map +1 -0
  82. package/build/server/chunks/entries/fallbacks/error.svelte.js-qFLa8EVy.js +17 -0
  83. package/build/server/chunks/entries/fallbacks/error.svelte.js-qFLa8EVy.js.map +1 -0
  84. package/build/server/chunks/entries/pages/_layout.svelte.js-Bx7lXkAi.js +22 -0
  85. package/build/server/chunks/entries/pages/_layout.svelte.js-Bx7lXkAi.js.map +1 -0
  86. package/build/server/chunks/entries/pages/_page.svelte.js-BsvaKqbk.js +1264 -0
  87. package/build/server/chunks/entries/pages/_page.svelte.js-BsvaKqbk.js.map +1 -0
  88. package/build/server/chunks/handler-nVqa-QPz.js +1735 -0
  89. package/build/server/chunks/handler-nVqa-QPz.js.map +1 -0
  90. package/build/server/chunks/index.js-CtbhHm7L.js +3803 -0
  91. package/build/server/chunks/index.js-CtbhHm7L.js.map +1 -0
  92. package/build/server/chunks/manifest.js-BwUys8gK.js +70 -0
  93. package/build/server/chunks/manifest.js-BwUys8gK.js.map +1 -0
  94. package/build/server/chunks/nodes/0.js-Dl0J9d3p.js +9 -0
  95. package/build/server/chunks/nodes/0.js-Dl0J9d3p.js.map +1 -0
  96. package/build/server/chunks/nodes/1.js-dXZVW92o.js +9 -0
  97. package/build/server/chunks/nodes/1.js-dXZVW92o.js.map +1 -0
  98. package/build/server/chunks/nodes/2.js-aMMUenQc.js +9 -0
  99. package/build/server/chunks/nodes/2.js-aMMUenQc.js.map +1 -0
  100. package/build/shims.js +33 -0
  101. package/build/shims.js.map +1 -0
  102. package/dist/cli/bin.js +9 -0
  103. package/dist/cli/completions.js +99 -0
  104. package/dist/cli/index.js +183 -0
  105. package/dist/cli/options.js +171 -0
  106. package/dist/cli/server.js +126 -0
  107. package/dist/cli/ui.js +75 -0
  108. package/dist/lib/cli/aws.js +264 -0
  109. package/dist/lib/time-range.js +106 -0
  110. package/package.json +106 -0
@@ -0,0 +1,1191 @@
1
+ import { u as uneval } from './uneval.js-DaakSYFQ.js';
2
+ import { r as render, s as set, L as LEGACY_PROPS, g as get, f as flushSync, d as define_property, m as mutable_source, i as init_operations, a as get_first_child, b as get_next_sibling, H as HYDRATION_ERROR, c as set_hydrating, e as set_hydrate_node, h as hydration_failed, j as clear_text_content, k as component_root, l as hydrate_node, n as create_text, o as array_from, p as is_passive_event, q as set_active_reaction, t as set_active_effect, u as active_reaction, v as active_effect, w as setContext, x as hydrating, y as block, z as branch, A as queue_micro_task, B as invoke_error_boundary, C as current_batch, D as pause_effect, E as move_effect, F as defer_effect, G as set_component_context, I as Batch, J as component_context, K as internal_set, M as destroy_effect, N as next, O as skip_nodes, P as derived, Q as effect_tracking, R as render_effect, S as svelte_boundary_reset_noop, T as svelte_boundary_reset_onerror, U as source, V as untrack, W as increment, X as hydrate_next, Y as push$1, Z as mark_as_component, _ as hydration_mismatch, $ as pop$1, a0 as run, a1 as noop, a2 as hasContext, a3 as getContext, a4 as getAllContexts, a5 as createContext, a6 as ssr_context, a7 as lifecycle_function_unavailable, a8 as EFFECT_TRANSPARENT, a9 as EFFECT_PRESERVED, aa as experimental_async_required, ab as get_render_context, ac as hydratable_serialization_failed } from './server.js-ByNB8uti.js';
3
+
4
+ //#region \0rolldown/runtime.js
5
+ var __defProp = Object.defineProperty;
6
+ var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
7
+ var __exportAll = (all, no_symbols) => {
8
+ let target = {};
9
+ for (var name in all) __defProp(target, name, {
10
+ get: all[name],
11
+ enumerable: true
12
+ });
13
+ __defProp(target, Symbol.toStringTag, { value: "Module" });
14
+ return target;
15
+ };
16
+ //#endregion
17
+ //#region \0virtual:__sveltekit/server
18
+ var read_implementation = null;
19
+ function set_read_implementation(fn) {
20
+ read_implementation = fn;
21
+ }
22
+ //#endregion
23
+ //#region node_modules/.pnpm/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/elements/events.js
24
+ /**
25
+ * Used on elements, as a map of event type -> event handler,
26
+ * and on events themselves to track which element handled an event
27
+ */
28
+ var event_symbol = Symbol("events");
29
+ /** @type {Set<string>} */
30
+ var all_registered_events = /* @__PURE__ */ new Set();
31
+ /** @type {Set<(events: Array<string>) => void>} */
32
+ var root_event_handles = /* @__PURE__ */ new Set();
33
+ var last_propagated_event = null;
34
+ var last_propagated_event_clear_scheduled = false;
35
+ /**
36
+ * @this {EventTarget}
37
+ * @param {Event} event
38
+ * @returns {void}
39
+ */
40
+ function handle_event_propagation(event) {
41
+ var handler_element = this;
42
+ var owner_document = handler_element.ownerDocument;
43
+ var event_name = event.type;
44
+ var path = event.composedPath?.() || [];
45
+ var current_target = path[0] || event.target;
46
+ last_propagated_event = event;
47
+ if (!last_propagated_event_clear_scheduled) {
48
+ last_propagated_event_clear_scheduled = true;
49
+ setTimeout(() => {
50
+ last_propagated_event_clear_scheduled = false;
51
+ last_propagated_event = null;
52
+ });
53
+ }
54
+ var path_idx = 0;
55
+ var handled_at = last_propagated_event === event && event[event_symbol];
56
+ if (handled_at) {
57
+ var at_idx = path.indexOf(handled_at);
58
+ if (at_idx !== -1 && (handler_element === document || handler_element === window)) {
59
+ event[event_symbol] = handler_element;
60
+ return;
61
+ }
62
+ var handler_idx = path.indexOf(handler_element);
63
+ if (handler_idx === -1) return;
64
+ if (at_idx <= handler_idx) path_idx = at_idx;
65
+ }
66
+ current_target = path[path_idx] || event.target;
67
+ if (current_target === handler_element) return;
68
+ define_property(event, "currentTarget", {
69
+ configurable: true,
70
+ get() {
71
+ return current_target || owner_document;
72
+ }
73
+ });
74
+ var previous_reaction = active_reaction;
75
+ var previous_effect = active_effect;
76
+ set_active_reaction(null);
77
+ set_active_effect(null);
78
+ try {
79
+ /**
80
+ * @type {unknown}
81
+ */
82
+ var throw_error;
83
+ /**
84
+ * @type {unknown[]}
85
+ */
86
+ var other_errors = [];
87
+ while (current_target !== null) {
88
+ if (current_target === handler_element) break;
89
+ try {
90
+ var delegated = current_target[event_symbol]?.[event_name];
91
+ if (delegated != null && (!current_target.disabled || event.target === current_target)) delegated.call(current_target, event);
92
+ } catch (error) {
93
+ if (throw_error) other_errors.push(error);
94
+ else throw_error = error;
95
+ }
96
+ if (event.cancelBubble) break;
97
+ path_idx++;
98
+ current_target = path_idx < path.length ? path[path_idx] : null;
99
+ }
100
+ if (throw_error) {
101
+ for (let error of other_errors) queueMicrotask(() => {
102
+ throw error;
103
+ });
104
+ throw throw_error;
105
+ }
106
+ } finally {
107
+ event[event_symbol] = handler_element;
108
+ delete event.currentTarget;
109
+ set_active_reaction(previous_reaction);
110
+ set_active_effect(previous_effect);
111
+ }
112
+ }
113
+ //#endregion
114
+ //#region node_modules/.pnpm/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/template.js
115
+ /**
116
+ * @param {TemplateNode} start
117
+ * @param {TemplateNode | null} end
118
+ */
119
+ function assign_nodes(start, end) {
120
+ var effect = active_effect;
121
+ if (effect.nodes === null) effect.nodes = {
122
+ start,
123
+ end,
124
+ a: null,
125
+ t: null
126
+ };
127
+ }
128
+ //#endregion
129
+ //#region node_modules/.pnpm/svelte@5.57.0/node_modules/svelte/src/reactivity/create-subscriber.js
130
+ /**
131
+ * Returns a `subscribe` function that integrates external event-based systems with Svelte's reactivity.
132
+ * It's particularly useful for integrating with web APIs like `MediaQuery`, `IntersectionObserver`, or `WebSocket`.
133
+ *
134
+ * If `subscribe` is called inside an effect (including indirectly, for example inside a getter),
135
+ * the `start` callback will be called with an `update` function. Whenever `update` is called, the effect re-runs.
136
+ *
137
+ * If `start` returns a cleanup function, it will be called when the effect is destroyed.
138
+ *
139
+ * If `subscribe` is called in multiple effects, `start` will only be called once as long as the effects
140
+ * are active, and the returned teardown function will only be called when all effects are destroyed.
141
+ *
142
+ * It's best understood with an example. Here's an implementation of [`MediaQuery`](https://svelte.dev/docs/svelte/svelte-reactivity#MediaQuery):
143
+ *
144
+ * ```js
145
+ * import { createSubscriber } from 'svelte/reactivity';
146
+ * import { on } from 'svelte/events';
147
+ *
148
+ * export class MediaQuery {
149
+ * #query;
150
+ * #subscribe;
151
+ *
152
+ * constructor(query) {
153
+ * this.#query = window.matchMedia(`(${query})`);
154
+ *
155
+ * this.#subscribe = createSubscriber((update) => {
156
+ * // when the `change` event occurs, re-run any effects that read `this.current`
157
+ * const off = on(this.#query, 'change', update);
158
+ *
159
+ * // stop listening when all the effects are destroyed
160
+ * return () => off();
161
+ * });
162
+ * }
163
+ *
164
+ * get current() {
165
+ * // This makes the getter reactive, if read in an effect
166
+ * this.#subscribe();
167
+ *
168
+ * // Return the current state of the query, whether or not we're in an effect
169
+ * return this.#query.matches;
170
+ * }
171
+ * }
172
+ * ```
173
+ * @param {(update: () => void) => (() => void) | void} start
174
+ * @since 5.7.0
175
+ */
176
+ function createSubscriber(start) {
177
+ let subscribers = 0;
178
+ let version = source(0);
179
+ /** @type {(() => void) | void} */
180
+ let stop;
181
+ return () => {
182
+ if (effect_tracking()) {
183
+ get(version);
184
+ render_effect(() => {
185
+ if (subscribers === 0) stop = untrack(() => start(() => increment(version)));
186
+ subscribers += 1;
187
+ return () => {
188
+ queue_micro_task(() => {
189
+ subscribers -= 1;
190
+ if (subscribers === 0) {
191
+ stop?.();
192
+ stop = void 0;
193
+ increment(version);
194
+ }
195
+ });
196
+ };
197
+ });
198
+ }
199
+ };
200
+ }
201
+ //#endregion
202
+ //#region node_modules/.pnpm/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/blocks/boundary.js
203
+ /** @import { Effect, Source, TemplateNode, } from '#client' */
204
+ /**
205
+ * @typedef {{
206
+ * onerror?: ((error: unknown, reset: () => void) => void) | null;
207
+ * failed?: ((anchor: Node, error: () => unknown, reset: () => () => void) => void) | null;
208
+ * pending?: ((anchor: Node) => void) | null;
209
+ * }} BoundaryProps
210
+ */
211
+ var flags = EFFECT_TRANSPARENT | EFFECT_PRESERVED;
212
+ /**
213
+ * @param {TemplateNode} node
214
+ * @param {BoundaryProps} props
215
+ * @param {((anchor: Node) => void)} children
216
+ * @param {((error: unknown) => unknown) | undefined} [transform_error]
217
+ * @returns {void}
218
+ */
219
+ function boundary(node, props, children, transform_error) {
220
+ new Boundary(node, props, children, transform_error);
221
+ }
222
+ var Boundary = class {
223
+ /** @type {Boundary | null} */
224
+ parent;
225
+ is_pending = false;
226
+ /**
227
+ * API-level transformError transform function. Transforms errors before they reach the `failed` snippet.
228
+ * Inherited from parent boundary, or defaults to identity.
229
+ * @type {(error: unknown) => unknown}
230
+ */
231
+ transform_error;
232
+ /** @type {TemplateNode} */
233
+ #anchor;
234
+ /** @type {TemplateNode | null} */
235
+ #hydrate_open = hydrating ? hydrate_node : null;
236
+ /** @type {BoundaryProps} */
237
+ #props;
238
+ /** @type {((anchor: Node) => void)} */
239
+ #children;
240
+ /** @type {Effect} */
241
+ #effect;
242
+ /** @type {Effect | null} */
243
+ #main_effect = null;
244
+ /** @type {Effect | null} */
245
+ #pending_effect = null;
246
+ /** @type {Effect | null} */
247
+ #failed_effect = null;
248
+ /** @type {DocumentFragment | null} */
249
+ #offscreen_fragment = null;
250
+ #local_pending_count = 0;
251
+ #pending_count = 0;
252
+ #pending_count_update_queued = false;
253
+ /** @type {Set<Effect>} */
254
+ #dirty_effects = /* @__PURE__ */ new Set();
255
+ /** @type {Set<Effect>} */
256
+ #maybe_dirty_effects = /* @__PURE__ */ new Set();
257
+ /**
258
+ * A source containing the number of pending async deriveds/expressions.
259
+ * Only created if `$effect.pending()` is used inside the boundary,
260
+ * otherwise updating the source results in needless `Batch.ensure()`
261
+ * calls followed by no-op flushes
262
+ * @type {Source<number> | null}
263
+ */
264
+ #effect_pending = null;
265
+ #effect_pending_subscriber = createSubscriber(() => {
266
+ this.#effect_pending = source(this.#local_pending_count);
267
+ return () => {
268
+ this.#effect_pending = null;
269
+ };
270
+ });
271
+ /**
272
+ * @param {TemplateNode} node
273
+ * @param {BoundaryProps} props
274
+ * @param {((anchor: Node) => void)} children
275
+ * @param {((error: unknown) => unknown) | undefined} [transform_error]
276
+ */
277
+ constructor(node, props, children, transform_error) {
278
+ this.#anchor = node;
279
+ this.#props = props;
280
+ this.#children = (anchor) => {
281
+ var effect = active_effect;
282
+ effect.b = this;
283
+ effect.f |= 128;
284
+ children(anchor);
285
+ };
286
+ this.parent = active_effect.b;
287
+ this.transform_error = transform_error ?? this.parent?.transform_error ?? ((e) => e);
288
+ this.#effect = block(() => {
289
+ if (hydrating) {
290
+ const comment = this.#hydrate_open;
291
+ hydrate_next();
292
+ const server_rendered_pending = comment.data === "[!";
293
+ if (comment.data.startsWith("[?")) {
294
+ const serialized_error = JSON.parse(comment.data.slice(2));
295
+ this.#hydrate_failed_content(serialized_error);
296
+ } else if (server_rendered_pending) this.#hydrate_pending_content();
297
+ else this.#hydrate_resolved_content();
298
+ } else this.#render();
299
+ }, flags);
300
+ if (hydrating) this.#anchor = hydrate_node;
301
+ }
302
+ #hydrate_resolved_content() {
303
+ try {
304
+ this.#main_effect = branch(() => this.#children(this.#anchor));
305
+ } catch (error) {
306
+ this.error(error);
307
+ }
308
+ }
309
+ /**
310
+ * @param {unknown} error The deserialized error from the server's hydration comment
311
+ */
312
+ #hydrate_failed_content(error) {
313
+ const failed = this.#props.failed;
314
+ const { reset, invoke_onerror } = this.#create_reset(error);
315
+ queue_micro_task(invoke_onerror);
316
+ if (!failed) return;
317
+ this.#failed_effect = branch(() => {
318
+ failed(this.#anchor, () => error, () => reset);
319
+ });
320
+ }
321
+ /**
322
+ * Creates the `reset` function for a failed boundary, along with a function
323
+ * that invokes `onerror` with it (if provided)
324
+ * @param {unknown} error
325
+ * @returns {{ reset: () => void, invoke_onerror: () => void }}
326
+ */
327
+ #create_reset(error) {
328
+ var did_reset = false;
329
+ var calling_on_error = false;
330
+ const reset = () => {
331
+ if (did_reset) {
332
+ svelte_boundary_reset_noop();
333
+ return;
334
+ }
335
+ did_reset = true;
336
+ if (calling_on_error) svelte_boundary_reset_onerror();
337
+ if (this.#failed_effect !== null) pause_effect(this.#failed_effect, () => {
338
+ this.#failed_effect = null;
339
+ });
340
+ this.#run(() => {
341
+ this.#render();
342
+ });
343
+ };
344
+ const invoke_onerror = () => {
345
+ try {
346
+ calling_on_error = true;
347
+ this.#props.onerror?.(error, reset);
348
+ calling_on_error = false;
349
+ } catch (err) {
350
+ invoke_error_boundary(err, this.#effect && this.#effect.parent);
351
+ }
352
+ };
353
+ return {
354
+ reset,
355
+ invoke_onerror
356
+ };
357
+ }
358
+ #hydrate_pending_content() {
359
+ const pending = this.#props.pending;
360
+ if (!pending) return;
361
+ this.is_pending = true;
362
+ this.#pending_effect = branch(() => pending(this.#anchor));
363
+ queue_micro_task(() => {
364
+ var fragment = this.#offscreen_fragment = document.createDocumentFragment();
365
+ var anchor = create_text();
366
+ var handled = false;
367
+ fragment.append(anchor);
368
+ this.#main_effect = this.#run(() => {
369
+ try {
370
+ return branch(() => this.#children(anchor));
371
+ } catch (error) {
372
+ try {
373
+ this.error(error);
374
+ handled = true;
375
+ } catch (error) {
376
+ invoke_error_boundary(error, this.#effect.parent);
377
+ }
378
+ return null;
379
+ }
380
+ });
381
+ if (this.#main_effect === null) {
382
+ this.#offscreen_fragment = null;
383
+ if (handled) this.#resolve(current_batch);
384
+ return;
385
+ }
386
+ if (this.#pending_count === 0) {
387
+ this.#anchor.before(fragment);
388
+ this.#offscreen_fragment = null;
389
+ pause_effect(this.#pending_effect, () => {
390
+ this.#pending_effect = null;
391
+ });
392
+ this.#resolve(current_batch);
393
+ }
394
+ });
395
+ }
396
+ #render() {
397
+ try {
398
+ this.is_pending = this.has_pending_snippet();
399
+ this.#pending_count = 0;
400
+ this.#local_pending_count = 0;
401
+ this.#main_effect = branch(() => {
402
+ this.#children(this.#anchor);
403
+ });
404
+ if (this.#pending_count > 0) {
405
+ var fragment = this.#offscreen_fragment = document.createDocumentFragment();
406
+ move_effect(this.#main_effect, fragment);
407
+ const pending = this.#props.pending;
408
+ this.#pending_effect = branch(() => pending(this.#anchor));
409
+ } else this.#resolve(current_batch);
410
+ } catch (error) {
411
+ this.error(error);
412
+ }
413
+ }
414
+ /**
415
+ * @param {Batch} batch
416
+ */
417
+ #resolve(batch) {
418
+ this.is_pending = false;
419
+ batch.transfer_effects(this.#dirty_effects, this.#maybe_dirty_effects);
420
+ }
421
+ /**
422
+ * Defer an effect inside a pending boundary until the boundary resolves
423
+ * @param {Effect} effect
424
+ */
425
+ defer_effect(effect) {
426
+ defer_effect(effect, this.#dirty_effects, this.#maybe_dirty_effects);
427
+ }
428
+ /**
429
+ * Returns `false` if the effect exists inside a boundary whose pending snippet is shown
430
+ * @returns {boolean}
431
+ */
432
+ is_rendered() {
433
+ return !this.is_pending && (!this.parent || this.parent.is_rendered());
434
+ }
435
+ has_pending_snippet() {
436
+ return !!this.#props.pending;
437
+ }
438
+ /**
439
+ * @template T
440
+ * @param {() => T} fn
441
+ */
442
+ #run(fn) {
443
+ var previous_effect = active_effect;
444
+ var previous_reaction = active_reaction;
445
+ var previous_ctx = component_context;
446
+ set_active_effect(this.#effect);
447
+ set_active_reaction(this.#effect);
448
+ set_component_context(this.#effect.ctx);
449
+ try {
450
+ Batch.ensure();
451
+ return fn();
452
+ } finally {
453
+ set_active_effect(previous_effect);
454
+ set_active_reaction(previous_reaction);
455
+ set_component_context(previous_ctx);
456
+ }
457
+ }
458
+ /**
459
+ * Updates the pending count associated with the currently visible pending snippet,
460
+ * if any, such that we can replace the snippet with content once work is done
461
+ * @param {1 | -1} d
462
+ * @param {Batch} batch
463
+ */
464
+ #update_pending_count(d, batch) {
465
+ if (!this.has_pending_snippet()) {
466
+ if (this.parent) this.parent.#update_pending_count(d, batch);
467
+ return;
468
+ }
469
+ this.#pending_count += d;
470
+ if (this.#pending_count === 0) {
471
+ this.#resolve(batch);
472
+ if (this.#pending_effect) pause_effect(this.#pending_effect, () => {
473
+ this.#pending_effect = null;
474
+ });
475
+ if (this.#offscreen_fragment) {
476
+ this.#anchor.before(this.#offscreen_fragment);
477
+ this.#offscreen_fragment = null;
478
+ }
479
+ }
480
+ }
481
+ /**
482
+ * Update the source that powers `$effect.pending()` inside this boundary,
483
+ * and controls when the current `pending` snippet (if any) is removed.
484
+ * Do not call from inside the class
485
+ * @param {1 | -1} d
486
+ * @param {Batch} batch
487
+ */
488
+ update_pending_count(d, batch) {
489
+ this.#update_pending_count(d, batch);
490
+ this.#local_pending_count += d;
491
+ if (!this.#effect_pending || this.#pending_count_update_queued) return;
492
+ this.#pending_count_update_queued = true;
493
+ queue_micro_task(() => {
494
+ this.#pending_count_update_queued = false;
495
+ if (this.#effect_pending) internal_set(this.#effect_pending, this.#local_pending_count);
496
+ });
497
+ }
498
+ get_effect_pending() {
499
+ this.#effect_pending_subscriber();
500
+ return get(this.#effect_pending);
501
+ }
502
+ /** @param {unknown} error */
503
+ error(error) {
504
+ if (!this.#props.onerror && !this.#props.failed) throw error;
505
+ if (current_batch?.is_fork) {
506
+ if (this.#main_effect) current_batch.skip_effect(this.#main_effect);
507
+ if (this.#pending_effect) current_batch.skip_effect(this.#pending_effect);
508
+ if (this.#failed_effect) current_batch.skip_effect(this.#failed_effect);
509
+ current_batch.oncommit(() => {
510
+ this.#handle_error(error);
511
+ });
512
+ } else this.#handle_error(error);
513
+ }
514
+ /**
515
+ * @param {unknown} error
516
+ */
517
+ #handle_error(error) {
518
+ if (this.#main_effect) {
519
+ destroy_effect(this.#main_effect);
520
+ this.#main_effect = null;
521
+ }
522
+ if (this.#pending_effect) {
523
+ destroy_effect(this.#pending_effect);
524
+ this.#pending_effect = null;
525
+ }
526
+ if (this.#failed_effect) {
527
+ destroy_effect(this.#failed_effect);
528
+ this.#failed_effect = null;
529
+ }
530
+ if (hydrating) {
531
+ set_hydrate_node(this.#hydrate_open);
532
+ next();
533
+ set_hydrate_node(skip_nodes());
534
+ }
535
+ let failed = this.#props.failed;
536
+ /** @param {unknown} transformed_error */
537
+ const handle_error_result = (transformed_error) => {
538
+ const { reset, invoke_onerror } = this.#create_reset(transformed_error);
539
+ invoke_onerror();
540
+ if (failed) this.#failed_effect = this.#run(() => {
541
+ try {
542
+ return branch(() => {
543
+ var effect = active_effect;
544
+ effect.b = this;
545
+ effect.f |= 128;
546
+ failed(this.#anchor, () => transformed_error, () => reset);
547
+ });
548
+ } catch (error) {
549
+ invoke_error_boundary(error, this.#effect.parent);
550
+ return null;
551
+ }
552
+ });
553
+ };
554
+ queue_micro_task(() => {
555
+ /** @type {unknown} */
556
+ var result;
557
+ try {
558
+ result = this.transform_error(error);
559
+ } catch (e) {
560
+ invoke_error_boundary(e, this.#effect && this.#effect.parent);
561
+ return;
562
+ }
563
+ if (result !== null && typeof result === "object" && typeof result.then === "function")
564
+ /** @type {any} */ result.then(
565
+ handle_error_result,
566
+ /** @param {unknown} e */
567
+ (e) => invoke_error_boundary(e, this.#effect && this.#effect.parent)
568
+ );
569
+ else handle_error_result(result);
570
+ });
571
+ }
572
+ };
573
+ /**
574
+ * Mounts a component to the given target and returns the exports and potentially the props (if compiled with `accessors: true`) of the component.
575
+ * Transitions will play during the initial render unless the `intro` option is set to `false`.
576
+ *
577
+ * @template {Record<string, any>} Props
578
+ * @template {Record<string, any>} Exports
579
+ * @param {ComponentType<SvelteComponent<Props>> | Component<Props, Exports, any>} component
580
+ * @param {MountOptions<Props>} options
581
+ * @returns {Exports}
582
+ */
583
+ function mount$1(component, options) {
584
+ return _mount(component, options);
585
+ }
586
+ /**
587
+ * Hydrates a component on the given target and returns the exports and potentially the props (if compiled with `accessors: true`) of the component
588
+ *
589
+ * @template {Record<string, any>} Props
590
+ * @template {Record<string, any>} Exports
591
+ * @param {ComponentType<SvelteComponent<Props>> | Component<Props, Exports, any>} component
592
+ * @param {{} extends Props ? {
593
+ * target: Document | Element | ShadowRoot;
594
+ * props?: Props;
595
+ * events?: Record<string, (e: any) => any>;
596
+ * context?: Map<any, any>;
597
+ * intro?: boolean;
598
+ * recover?: boolean;
599
+ * transformError?: (error: unknown) => unknown;
600
+ * } : {
601
+ * target: Document | Element | ShadowRoot;
602
+ * props: Props;
603
+ * events?: Record<string, (e: any) => any>;
604
+ * context?: Map<any, any>;
605
+ * intro?: boolean;
606
+ * recover?: boolean;
607
+ * transformError?: (error: unknown) => unknown;
608
+ * }} options
609
+ * @returns {Exports}
610
+ */
611
+ function hydrate$1(component, options) {
612
+ init_operations();
613
+ options.intro = options.intro ?? false;
614
+ const target = options.target;
615
+ const was_hydrating = hydrating;
616
+ const previous_hydrate_node = hydrate_node;
617
+ try {
618
+ var anchor = /* @__PURE__ */ get_first_child(target);
619
+ while (anchor && (anchor.nodeType !== 8 || anchor.data !== "[")) anchor = /* @__PURE__ */ get_next_sibling(anchor);
620
+ if (!anchor) throw HYDRATION_ERROR;
621
+ set_hydrating(true);
622
+ set_hydrate_node(anchor);
623
+ const instance = _mount(component, {
624
+ ...options,
625
+ anchor
626
+ });
627
+ set_hydrating(false);
628
+ return instance;
629
+ } catch (error) {
630
+ if (error instanceof Error && error.message.split("\n").some((line) => line.startsWith("https://svelte.dev/e/"))) throw error;
631
+ if (error !== HYDRATION_ERROR) console.warn("Failed to hydrate: ", error);
632
+ if (options.recover === false) hydration_failed();
633
+ init_operations();
634
+ clear_text_content(target);
635
+ set_hydrating(false);
636
+ return mount$1(component, options);
637
+ } finally {
638
+ set_hydrating(was_hydrating);
639
+ set_hydrate_node(previous_hydrate_node);
640
+ }
641
+ }
642
+ /** @type {Map<EventTarget, Map<string, number>>} */
643
+ var listeners = /* @__PURE__ */ new Map();
644
+ /**
645
+ * @template {Record<string, any>} Exports
646
+ * @param {ComponentType<SvelteComponent<any>> | Component<any>} Component
647
+ * @param {MountOptions} options
648
+ * @returns {Exports}
649
+ */
650
+ function _mount(Component, { target, anchor, props = {}, events, context, intro = true, transformError }) {
651
+ init_operations();
652
+ /** @type {Exports} */
653
+ var component = void 0;
654
+ var unmount = component_root(() => {
655
+ var anchor_node = anchor ?? target.appendChild(create_text());
656
+ boundary(anchor_node, { pending: () => {} }, (anchor_node) => {
657
+ push$1({});
658
+ var ctx = component_context;
659
+ if (context) ctx.c = context;
660
+ if (events)
661
+ /** @type {any} */ props.$$events = events;
662
+ if (hydrating) assign_nodes(anchor_node, null);
663
+ component = Component(anchor_node, props) || mark_as_component();
664
+ if (hydrating) {
665
+ /** @type {Effect & { nodes: EffectNodes }} */ active_effect.nodes.end = hydrate_node;
666
+ if (hydrate_node === null || hydrate_node.nodeType !== 8 || hydrate_node.data !== "]") {
667
+ hydration_mismatch();
668
+ throw HYDRATION_ERROR;
669
+ }
670
+ }
671
+ pop$1();
672
+ }, transformError);
673
+ /** @type {Set<string>} */
674
+ var registered_events = /* @__PURE__ */ new Set();
675
+ /** @param {Array<string>} events */
676
+ var event_handle = (events) => {
677
+ for (var i = 0; i < events.length; i++) {
678
+ var event_name = events[i];
679
+ if (registered_events.has(event_name)) continue;
680
+ registered_events.add(event_name);
681
+ var passive = is_passive_event(event_name);
682
+ for (const node of [target, document]) {
683
+ var counts = listeners.get(node);
684
+ if (counts === void 0) {
685
+ counts = /* @__PURE__ */ new Map();
686
+ listeners.set(node, counts);
687
+ }
688
+ var count = counts.get(event_name);
689
+ if (count === void 0) {
690
+ node.addEventListener(event_name, handle_event_propagation, { passive });
691
+ counts.set(event_name, 1);
692
+ } else counts.set(event_name, count + 1);
693
+ }
694
+ }
695
+ };
696
+ event_handle(array_from(all_registered_events));
697
+ root_event_handles.add(event_handle);
698
+ return () => {
699
+ for (var event_name of registered_events) for (const node of [target, document]) {
700
+ var counts = listeners.get(node);
701
+ var count = counts.get(event_name);
702
+ if (--count == 0) {
703
+ node.removeEventListener(event_name, handle_event_propagation);
704
+ counts.delete(event_name);
705
+ if (counts.size === 0) listeners.delete(node);
706
+ } else counts.set(event_name, count);
707
+ }
708
+ root_event_handles.delete(event_handle);
709
+ if (anchor_node !== anchor) anchor_node.parentNode?.removeChild(anchor_node);
710
+ };
711
+ });
712
+ mounted_components.set(component, unmount);
713
+ return component;
714
+ }
715
+ /**
716
+ * References of the components that were mounted or hydrated.
717
+ * Uses a `WeakMap` to avoid memory leaks.
718
+ */
719
+ var mounted_components = /* @__PURE__ */ new WeakMap();
720
+ /**
721
+ * Unmounts a component that was previously mounted using `mount` or `hydrate`.
722
+ *
723
+ * Since 5.13.0, if `options.outro` is `true`, [transitions](https://svelte.dev/docs/svelte/transition) will play before the component is removed from the DOM.
724
+ *
725
+ * Returns a `Promise` that resolves after transitions have completed if `options.outro` is true, or immediately otherwise (prior to 5.13.0, returns `void`).
726
+ *
727
+ * ```js
728
+ * import { mount, unmount } from 'svelte';
729
+ * import App from './App.svelte';
730
+ *
731
+ * const app = mount(App, { target: document.body });
732
+ *
733
+ * // later...
734
+ * unmount(app, { outro: true });
735
+ * ```
736
+ * @param {Record<string, any>} component
737
+ * @param {{ outro?: boolean }} [options]
738
+ * @returns {Promise<void>}
739
+ */
740
+ function unmount$1(component, options) {
741
+ const fn = mounted_components.get(component);
742
+ if (fn) {
743
+ mounted_components.delete(component);
744
+ return fn(options);
745
+ }
746
+ return Promise.resolve();
747
+ }
748
+ //#endregion
749
+ //#region node_modules/.pnpm/svelte@5.57.0/node_modules/svelte/src/legacy/legacy-client.js
750
+ /** @import { ComponentConstructorOptions, ComponentType, SvelteComponent, Component } from 'svelte' */
751
+ /**
752
+ * Takes the component function and returns a Svelte 4 compatible component constructor.
753
+ *
754
+ * @deprecated Use this only as a temporary solution to migrate your imperative component code to Svelte 5.
755
+ *
756
+ * @template {Record<string, any>} Props
757
+ * @template {Record<string, any>} Exports
758
+ * @template {Record<string, any>} Events
759
+ * @template {Record<string, any>} Slots
760
+ *
761
+ * @param {SvelteComponent<Props, Events, Slots> | Component<Props>} component
762
+ * @returns {ComponentType<SvelteComponent<Props, Events, Slots> & Exports>}
763
+ */
764
+ function asClassComponent$1(component) {
765
+ return class extends Svelte4Component {
766
+ /** @param {any} options */
767
+ constructor(options) {
768
+ super({
769
+ component,
770
+ ...options
771
+ });
772
+ }
773
+ };
774
+ }
775
+ /**
776
+ * Support using the component as both a class and function during the transition period
777
+ * @typedef {{new (o: ComponentConstructorOptions): SvelteComponent;(...args: Parameters<Component<Record<string, any>>>): ReturnType<Component<Record<string, any>, Record<string, any>>>;}} LegacyComponentType
778
+ */
779
+ var Svelte4Component = class {
780
+ /** @type {any} */
781
+ #events;
782
+ /** @type {Record<string, any>} */
783
+ #instance;
784
+ /**
785
+ * @param {ComponentConstructorOptions & {
786
+ * component: any;
787
+ * }} options
788
+ */
789
+ constructor(options) {
790
+ var sources = /* @__PURE__ */ new Map();
791
+ /**
792
+ * @param {string | symbol} key
793
+ * @param {unknown} value
794
+ */
795
+ var add_source = (key, value) => {
796
+ var s = /* @__PURE__ */ mutable_source(value, false, false);
797
+ sources.set(key, s);
798
+ return s;
799
+ };
800
+ const props = new Proxy({
801
+ ...options.props || {},
802
+ $$events: {}
803
+ }, {
804
+ get(target, prop) {
805
+ return get(sources.get(prop) ?? add_source(prop, Reflect.get(target, prop)));
806
+ },
807
+ has(target, prop) {
808
+ if (prop === LEGACY_PROPS) return true;
809
+ get(sources.get(prop) ?? add_source(prop, Reflect.get(target, prop)));
810
+ return Reflect.has(target, prop);
811
+ },
812
+ set(target, prop, value) {
813
+ set(sources.get(prop) ?? add_source(prop, value), value);
814
+ return Reflect.set(target, prop, value);
815
+ }
816
+ });
817
+ this.#instance = (options.hydrate ? hydrate$1 : mount$1)(options.component, {
818
+ target: options.target,
819
+ anchor: options.anchor,
820
+ props,
821
+ context: options.context,
822
+ intro: options.intro ?? false,
823
+ recover: options.recover,
824
+ transformError: options.transformError
825
+ });
826
+ if ((!options?.props?.$$host || options.sync === false)) flushSync();
827
+ this.#events = props.$$events;
828
+ for (const key of Object.keys(this.#instance)) {
829
+ if (key === "$set" || key === "$destroy" || key === "$on") continue;
830
+ define_property(this, key, {
831
+ get() {
832
+ return this.#instance[key];
833
+ },
834
+ /** @param {any} value */
835
+ set(value) {
836
+ this.#instance[key] = value;
837
+ },
838
+ enumerable: true
839
+ });
840
+ }
841
+ this.#instance.$set = (next) => {
842
+ Object.assign(props, next);
843
+ };
844
+ this.#instance.$destroy = () => {
845
+ unmount$1(this.#instance);
846
+ };
847
+ }
848
+ /** @param {Record<string, any>} props */
849
+ $set(props) {
850
+ this.#instance.$set(props);
851
+ }
852
+ /**
853
+ * @param {string} event
854
+ * @param {(...args: any[]) => any} callback
855
+ * @returns {any}
856
+ */
857
+ $on(event, callback) {
858
+ this.#events[event] = this.#events[event] || [];
859
+ /** @param {any[]} args */
860
+ const cb = (...args) => callback.call(this, ...args);
861
+ this.#events[event].push(cb);
862
+ return () => {
863
+ this.#events[event] = this.#events[event].filter(
864
+ /** @param {any} fn */
865
+ (fn) => fn !== cb
866
+ );
867
+ };
868
+ }
869
+ $destroy() {
870
+ this.#instance.$destroy();
871
+ }
872
+ };
873
+ //#endregion
874
+ //#region node_modules/.pnpm/svelte@5.57.0/node_modules/svelte/src/legacy/legacy-server.js
875
+ /** @import { SvelteComponent } from '../index.js' */
876
+ /** @import { Csp } from '../server/public.js' */
877
+ /** @typedef {{ head: string, html: string, css: { code: string, map: null }; hashes?: { script: `sha256-${string}`[] } }} LegacyRenderResult */
878
+ /**
879
+ * Takes a Svelte 5 component and returns a Svelte 4 compatible component constructor.
880
+ *
881
+ * @deprecated Use this only as a temporary solution to migrate your imperative component code to Svelte 5.
882
+ *
883
+ * @template {Record<string, any>} Props
884
+ * @template {Record<string, any>} Exports
885
+ * @template {Record<string, any>} Events
886
+ * @template {Record<string, any>} Slots
887
+ *
888
+ * @param {SvelteComponent<Props, Events, Slots>} component
889
+ * @returns {typeof SvelteComponent<Props, Events, Slots> & Exports}
890
+ */
891
+ function asClassComponent(component) {
892
+ const component_constructor = asClassComponent$1(component);
893
+ /** @type {(props?: {}, opts?: { $$slots?: {}; context?: Map<any, any>; csp?: Csp; transformError?: (error: unknown) => unknown }) => LegacyRenderResult & PromiseLike<LegacyRenderResult> } */
894
+ const _render = (props, { context, csp, transformError } = {}) => {
895
+ const result = render(component, {
896
+ props,
897
+ context,
898
+ csp,
899
+ transformError
900
+ });
901
+ const munged = Object.defineProperties({}, {
902
+ css: { value: {
903
+ code: "",
904
+ map: null
905
+ } },
906
+ head: { get: () => result.head },
907
+ html: { get: () => result.body },
908
+ then: {
909
+ /**
910
+ * this is not type-safe, but honestly it's the best I can do right now, and it's a straightforward function.
911
+ *
912
+ * @template TResult1
913
+ * @template [TResult2=never]
914
+ * @param { (value: LegacyRenderResult) => TResult1 } onfulfilled
915
+ * @param { (reason: unknown) => TResult2 } onrejected
916
+ */
917
+ value: (onfulfilled, onrejected) => {
918
+ {
919
+ const user_result = onfulfilled({
920
+ css: munged.css,
921
+ head: munged.head,
922
+ html: munged.html
923
+ });
924
+ return Promise.resolve(user_result);
925
+ }
926
+ } }
927
+ });
928
+ return munged;
929
+ };
930
+ component_constructor.render = _render;
931
+ return component_constructor;
932
+ }
933
+ //#endregion
934
+ //#region node_modules/.pnpm/svelte@5.57.0/node_modules/svelte/src/internal/server/abort-signal.js
935
+ function getAbortSignal() {
936
+ let context = ssr_context;
937
+ while (context !== null) {
938
+ if (context.r !== null) return context.r.global.get_abort_signal();
939
+ context = context.p;
940
+ }
941
+ return new AbortController().signal;
942
+ }
943
+ //#endregion
944
+ //#region node_modules/.pnpm/svelte@5.57.0/node_modules/svelte/src/internal/server/hydratable.js
945
+ /** @import { HydratableLookupEntry } from '#server' */
946
+ /**
947
+ * @template T
948
+ * @param {string} key
949
+ * @param {() => T} fn
950
+ * @returns {T}
951
+ */
952
+ function hydratable(key, fn) {
953
+ experimental_async_required();
954
+ const { hydratable } = get_render_context();
955
+ let entry = hydratable.lookup.get(key);
956
+ if (entry !== void 0) return entry.value;
957
+ const value = fn();
958
+ entry = encode(key, value, hydratable.unresolved_promises);
959
+ hydratable.lookup.set(key, entry);
960
+ return value;
961
+ }
962
+ /**
963
+ * @param {string} key
964
+ * @param {any} value
965
+ * @param {Map<Promise<any>, string>} [unresolved]
966
+ */
967
+ function encode(key, value, unresolved) {
968
+ /** @type {HydratableLookupEntry} */
969
+ const entry = {
970
+ value,
971
+ serialized: ""
972
+ };
973
+ let uid = 1;
974
+ entry.serialized = uneval(entry.value, (value, uneval) => {
975
+ if (is_promise(value)) {
976
+ const placeholder = `"${uid++}"`;
977
+ const p = value.then((v) => {
978
+ entry.serialized = entry.serialized.replace(placeholder, () => `r(${uneval(v)})`);
979
+ }).catch((devalue_error) => hydratable_serialization_failed(key, serialization_stack(entry.stack, devalue_error?.stack)));
980
+ p.catch(() => {}).finally(() => unresolved?.delete(p));
981
+ (entry.promises ??= []).push(p);
982
+ return placeholder;
983
+ }
984
+ });
985
+ return entry;
986
+ }
987
+ /**
988
+ * @param {any} value
989
+ * @returns {value is Promise<any>}
990
+ */
991
+ function is_promise(value) {
992
+ return Object.prototype.toString.call(value) === "[object Promise]";
993
+ }
994
+ /**
995
+ * @param {string | undefined} root_stack
996
+ * @param {string | undefined} uneval_stack
997
+ */
998
+ function serialization_stack(root_stack, uneval_stack) {
999
+ let out = "";
1000
+ if (root_stack) out += root_stack + "\n";
1001
+ if (uneval_stack) out += "Caused by:\n" + uneval_stack + "\n";
1002
+ return out || "<missing stack trace>";
1003
+ }
1004
+ //#endregion
1005
+ //#region node_modules/.pnpm/svelte@5.57.0/node_modules/svelte/src/internal/server/blocks/snippet.js
1006
+ /** @import { Snippet } from 'svelte' */
1007
+ /** @import { Renderer } from '../renderer' */
1008
+ /** @import { Getters } from '#shared' */
1009
+ /**
1010
+ * Create a snippet programmatically
1011
+ * @template {unknown[]} Params
1012
+ * @param {(...params: Getters<Params>) => {
1013
+ * render: () => string
1014
+ * setup?: (element: Element) => void | (() => void)
1015
+ * }} fn
1016
+ * @returns {Snippet<Params>}
1017
+ */
1018
+ function createRawSnippet(fn) {
1019
+ return (renderer, ...args) => {
1020
+ var getters = args.map((value) => () => value);
1021
+ renderer.push(fn(...getters).render().trim());
1022
+ };
1023
+ }
1024
+ //#endregion
1025
+ //#region node_modules/.pnpm/svelte@5.57.0/node_modules/svelte/src/index-server.js
1026
+ /** @import { SSRContext } from '#server' */
1027
+ /** @import { Renderer } from './internal/server/renderer.js' */
1028
+ var index_server_exports = /* @__PURE__ */ __exportAll({
1029
+ afterUpdate: () => noop,
1030
+ beforeUpdate: () => noop,
1031
+ createContext: () => createContext,
1032
+ createEventDispatcher: () => createEventDispatcher,
1033
+ createRawSnippet: () => createRawSnippet,
1034
+ flushSync: () => noop,
1035
+ fork: () => fork,
1036
+ getAbortSignal: () => getAbortSignal,
1037
+ getAllContexts: () => getAllContexts,
1038
+ getContext: () => getContext,
1039
+ hasContext: () => hasContext,
1040
+ hydratable: () => hydratable,
1041
+ hydrate: () => hydrate,
1042
+ mount: () => mount,
1043
+ onDestroy: () => onDestroy,
1044
+ onMount: () => noop,
1045
+ setContext: () => setContext,
1046
+ settled: () => settled,
1047
+ tick: () => tick,
1048
+ unmount: () => unmount,
1049
+ untrack: () => run
1050
+ });
1051
+ /** @param {() => void} fn */
1052
+ function onDestroy(fn) {
1053
+ /** @type {Renderer} */ ssr_context.r.on_destroy(fn);
1054
+ }
1055
+ function createEventDispatcher() {
1056
+ return noop;
1057
+ }
1058
+ function mount() {
1059
+ lifecycle_function_unavailable("mount");
1060
+ }
1061
+ function hydrate() {
1062
+ lifecycle_function_unavailable("hydrate");
1063
+ }
1064
+ function unmount() {
1065
+ lifecycle_function_unavailable("unmount");
1066
+ }
1067
+ function fork() {
1068
+ lifecycle_function_unavailable("fork");
1069
+ }
1070
+ async function tick() {}
1071
+ async function settled() {}
1072
+ //#endregion
1073
+ //#region .svelte-kit/generated/root.svelte
1074
+ function Root($$renderer, $$props) {
1075
+ $$renderer.component(($$renderer) => {
1076
+ let { stores, page, constructors, components = [], form, data_0 = null, data_1 = null } = $$props;
1077
+ setContext("__svelte__", stores);
1078
+ stores.page.set(page);
1079
+ const Pyramid_1 = derived(() => constructors[1]);
1080
+ if (constructors[1]) {
1081
+ $$renderer.push("<!--[0-->");
1082
+ const Pyramid_0 = constructors[0];
1083
+ if (Pyramid_0) {
1084
+ $$renderer.push("<!--[-->");
1085
+ Pyramid_0($$renderer, {
1086
+ data: data_0,
1087
+ form,
1088
+ params: page.params,
1089
+ children: ($$renderer) => {
1090
+ if (Pyramid_1()) {
1091
+ $$renderer.push("<!--[-->");
1092
+ Pyramid_1()($$renderer, {
1093
+ data: data_1,
1094
+ form,
1095
+ params: page.params
1096
+ });
1097
+ $$renderer.push("<!--]-->");
1098
+ } else {
1099
+ $$renderer.push("<!--[!-->");
1100
+ $$renderer.push("<!--]-->");
1101
+ }
1102
+ },
1103
+ $$slots: { default: true }
1104
+ });
1105
+ $$renderer.push("<!--]-->");
1106
+ } else {
1107
+ $$renderer.push("<!--[!-->");
1108
+ $$renderer.push("<!--]-->");
1109
+ }
1110
+ } else {
1111
+ $$renderer.push("<!--[-1-->");
1112
+ const Pyramid_0 = constructors[0];
1113
+ if (Pyramid_0) {
1114
+ $$renderer.push("<!--[-->");
1115
+ Pyramid_0($$renderer, {
1116
+ data: data_0,
1117
+ form,
1118
+ params: page.params
1119
+ });
1120
+ $$renderer.push("<!--]-->");
1121
+ } else {
1122
+ $$renderer.push("<!--[!-->");
1123
+ $$renderer.push("<!--]-->");
1124
+ }
1125
+ }
1126
+ $$renderer.push(`<!--]--> `);
1127
+ $$renderer.push("<!--[-1-->");
1128
+ $$renderer.push(`<!--]-->`);
1129
+ });
1130
+ }
1131
+ //#endregion
1132
+ //#region .svelte-kit/generated/root.js
1133
+ var root_default = asClassComponent(Root);
1134
+ //#endregion
1135
+ //#region .svelte-kit/generated/shared/error-template.js
1136
+ var error_template_default = ({ status, message }) => "<!doctype html>\n<html lang=\"en\">\n <head>\n <meta charset=\"utf-8\" />\n <title>" + message + "</title>\n\n <style>\n body {\n --bg: white;\n --fg: #222;\n --divider: #ccc;\n background: var(--bg);\n color: var(--fg);\n font-family:\n system-ui,\n -apple-system,\n BlinkMacSystemFont,\n 'Segoe UI',\n Roboto,\n Oxygen,\n Ubuntu,\n Cantarell,\n 'Open Sans',\n 'Helvetica Neue',\n sans-serif;\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100vh;\n margin: 0;\n }\n\n .error {\n display: flex;\n align-items: center;\n max-width: 32rem;\n margin: 0 1rem;\n }\n\n .status {\n font-weight: 200;\n font-size: 3rem;\n line-height: 1;\n position: relative;\n top: -0.05rem;\n }\n\n .message {\n border-left: 1px solid var(--divider);\n padding: 0 0 0 1rem;\n margin: 0 0 0 1rem;\n min-height: 2.5rem;\n display: flex;\n align-items: center;\n }\n\n .message h1 {\n font-weight: 400;\n font-size: 1em;\n margin: 0;\n }\n\n @media (prefers-color-scheme: dark) {\n body {\n --bg: #222;\n --fg: #ddd;\n --divider: #666;\n }\n }\n </style>\n </head>\n <body>\n <div class=\"error\">\n <span class=\"status\">" + status + "</span>\n <div class=\"message\">\n <h1>" + message + "</h1>\n </div>\n </div>\n </body>\n</html>\n";
1137
+ //#endregion
1138
+ //#region .svelte-kit/generated/server/internal.js
1139
+ var options = {
1140
+ app_template_contains_nonce: false,
1141
+ async: false,
1142
+ csp: {
1143
+ "mode": "auto",
1144
+ "directives": {
1145
+ "upgrade-insecure-requests": false,
1146
+ "block-all-mixed-content": false
1147
+ },
1148
+ "reportOnly": {
1149
+ "upgrade-insecure-requests": false,
1150
+ "block-all-mixed-content": false
1151
+ }
1152
+ },
1153
+ csrf_check_origin: true,
1154
+ csrf_trusted_origins: [],
1155
+ embedded: false,
1156
+ env_public_prefix: "PUBLIC_",
1157
+ env_private_prefix: "",
1158
+ hash_routing: false,
1159
+ hooks: null,
1160
+ preload_strategy: "modulepreload",
1161
+ root: root_default,
1162
+ service_worker: false,
1163
+ service_worker_options: void 0,
1164
+ server_error_boundaries: false,
1165
+ templates: {
1166
+ app: ({ head, body, assets, nonce, env }) => "<!doctype html>\n<html lang=\"en\">\n <head>\n <meta charset=\"utf-8\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n <meta name=\"text-scale\" content=\"scale\" />\n " + head + "\n </head>\n <body data-sveltekit-preload-data=\"hover\">\n <div style=\"display: contents\">" + body + "</div>\n </body>\n</html>\n",
1167
+ error: error_template_default
1168
+ },
1169
+ version_hash: "cfwy7u"
1170
+ };
1171
+ async function get_hooks() {
1172
+ let handle;
1173
+ let handleFetch;
1174
+ let handleError;
1175
+ let handleValidationError;
1176
+ let init;
1177
+ let reroute;
1178
+ let transport;
1179
+ return {
1180
+ handle,
1181
+ handleFetch,
1182
+ handleError,
1183
+ handleValidationError,
1184
+ init,
1185
+ reroute,
1186
+ transport
1187
+ };
1188
+ }
1189
+
1190
+ export { __commonJSMin as _, get_hooks as g, index_server_exports as i, options as o, read_implementation as r, set_read_implementation as s };
1191
+ //# sourceMappingURL=internal.js-DdmUz1r3.js.map