@wvkit/skevdb 0.0.1

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 (152) hide show
  1. package/README.md +68 -0
  2. package/bin/aldb.js +58 -0
  3. package/build/client/_app/immutable/assets/0.4921WYCN.css +2 -0
  4. package/build/client/_app/immutable/assets/0.4921WYCN.css.br +0 -0
  5. package/build/client/_app/immutable/assets/0.4921WYCN.css.gz +0 -0
  6. package/build/client/_app/immutable/assets/codicon.ngg6Pgfi.ttf +0 -0
  7. package/build/client/_app/immutable/assets/editor.DV6jjE6F.css +1 -0
  8. package/build/client/_app/immutable/assets/editor.DV6jjE6F.css.br +0 -0
  9. package/build/client/_app/immutable/assets/editor.DV6jjE6F.css.gz +0 -0
  10. package/build/client/_app/immutable/assets/geist-cyrillic-ext-wght-normal.DjL33-gN.woff2 +0 -0
  11. package/build/client/_app/immutable/assets/geist-cyrillic-wght-normal.BEAKL7Jp.woff2 +0 -0
  12. package/build/client/_app/immutable/assets/geist-latin-ext-wght-normal.DC-KSUi6.woff2 +0 -0
  13. package/build/client/_app/immutable/assets/geist-latin-wght-normal.BgDaEnEv.woff2 +0 -0
  14. package/build/client/_app/immutable/assets/geist-vietnamese-wght-normal.6IgcOCM7.woff2 +0 -0
  15. package/build/client/_app/immutable/assets/inter-cyrillic-ext-wght-normal.BOeWTOD4.woff2 +0 -0
  16. package/build/client/_app/immutable/assets/inter-cyrillic-wght-normal.DqGufNeO.woff2 +0 -0
  17. package/build/client/_app/immutable/assets/inter-greek-ext-wght-normal.DlzME5K_.woff2 +0 -0
  18. package/build/client/_app/immutable/assets/inter-greek-wght-normal.CkhJZR-_.woff2 +0 -0
  19. package/build/client/_app/immutable/assets/inter-latin-ext-wght-normal.DO1Apj_S.woff2 +0 -0
  20. package/build/client/_app/immutable/assets/inter-latin-wght-normal.Dx4kXJAl.woff2 +0 -0
  21. package/build/client/_app/immutable/assets/inter-vietnamese-wght-normal.CBcvBZtf.woff2 +0 -0
  22. package/build/client/_app/immutable/assets/noto-sans-cyrillic-ext-wght-normal.DSNfmdVt.woff2 +0 -0
  23. package/build/client/_app/immutable/assets/noto-sans-cyrillic-wght-normal.B2hlT84T.woff2 +0 -0
  24. package/build/client/_app/immutable/assets/noto-sans-devanagari-wght-normal.Cv-Vwajv.woff2 +0 -0
  25. package/build/client/_app/immutable/assets/noto-sans-greek-ext-wght-normal.12T8GTDR.woff2 +0 -0
  26. package/build/client/_app/immutable/assets/noto-sans-greek-wght-normal.Ymb6dZNd.woff2 +0 -0
  27. package/build/client/_app/immutable/assets/noto-sans-latin-ext-wght-normal.W1qJv59z.woff2 +0 -0
  28. package/build/client/_app/immutable/assets/noto-sans-latin-wght-normal.BYSzYMf3.woff2 +0 -0
  29. package/build/client/_app/immutable/assets/noto-sans-vietnamese-wght-normal.DLTJy58D.woff2 +0 -0
  30. package/build/client/_app/immutable/assets/sql.FmGBn3YN.css +1 -0
  31. package/build/client/_app/immutable/assets/sql.FmGBn3YN.css.br +0 -0
  32. package/build/client/_app/immutable/assets/sql.FmGBn3YN.css.gz +0 -0
  33. package/build/client/_app/immutable/chunks/-u0aF6D6.js +1 -0
  34. package/build/client/_app/immutable/chunks/-u0aF6D6.js.br +2 -0
  35. package/build/client/_app/immutable/chunks/-u0aF6D6.js.gz +0 -0
  36. package/build/client/_app/immutable/chunks/BZYon8uW.js +1 -0
  37. package/build/client/_app/immutable/chunks/BZYon8uW.js.br +0 -0
  38. package/build/client/_app/immutable/chunks/BZYon8uW.js.gz +0 -0
  39. package/build/client/_app/immutable/chunks/CT_ExraQ.js +820 -0
  40. package/build/client/_app/immutable/chunks/CT_ExraQ.js.br +0 -0
  41. package/build/client/_app/immutable/chunks/CT_ExraQ.js.gz +0 -0
  42. package/build/client/_app/immutable/chunks/CUXBnqxM.js +53 -0
  43. package/build/client/_app/immutable/chunks/CUXBnqxM.js.br +0 -0
  44. package/build/client/_app/immutable/chunks/CUXBnqxM.js.gz +0 -0
  45. package/build/client/_app/immutable/chunks/CqQuHtWb.js +1 -0
  46. package/build/client/_app/immutable/chunks/CqQuHtWb.js.br +0 -0
  47. package/build/client/_app/immutable/chunks/CqQuHtWb.js.gz +0 -0
  48. package/build/client/_app/immutable/chunks/DDJ7Hsqn.js +1 -0
  49. package/build/client/_app/immutable/chunks/DDJ7Hsqn.js.br +0 -0
  50. package/build/client/_app/immutable/chunks/DDJ7Hsqn.js.gz +0 -0
  51. package/build/client/_app/immutable/chunks/D_beq-47.js +3 -0
  52. package/build/client/_app/immutable/chunks/D_beq-47.js.br +0 -0
  53. package/build/client/_app/immutable/chunks/D_beq-47.js.gz +0 -0
  54. package/build/client/_app/immutable/chunks/NEE52Syq.js +1 -0
  55. package/build/client/_app/immutable/chunks/NEE52Syq.js.br +0 -0
  56. package/build/client/_app/immutable/chunks/NEE52Syq.js.gz +0 -0
  57. package/build/client/_app/immutable/chunks/h8jGUf5s.js +1 -0
  58. package/build/client/_app/immutable/chunks/h8jGUf5s.js.br +0 -0
  59. package/build/client/_app/immutable/chunks/h8jGUf5s.js.gz +0 -0
  60. package/build/client/_app/immutable/chunks/kNaey6uv.js +1 -0
  61. package/build/client/_app/immutable/chunks/kNaey6uv.js.br +0 -0
  62. package/build/client/_app/immutable/chunks/kNaey6uv.js.gz +0 -0
  63. package/build/client/_app/immutable/chunks/xihTtKlq.js +1 -0
  64. package/build/client/_app/immutable/chunks/xihTtKlq.js.br +1 -0
  65. package/build/client/_app/immutable/chunks/xihTtKlq.js.gz +0 -0
  66. package/build/client/_app/immutable/entry/app.DmcKZPoo.js +2 -0
  67. package/build/client/_app/immutable/entry/app.DmcKZPoo.js.br +0 -0
  68. package/build/client/_app/immutable/entry/app.DmcKZPoo.js.gz +0 -0
  69. package/build/client/_app/immutable/entry/start.AWD7U8zX.js +1 -0
  70. package/build/client/_app/immutable/entry/start.AWD7U8zX.js.br +1 -0
  71. package/build/client/_app/immutable/entry/start.AWD7U8zX.js.gz +0 -0
  72. package/build/client/_app/immutable/nodes/0.D42BAFic.js +46 -0
  73. package/build/client/_app/immutable/nodes/0.D42BAFic.js.br +0 -0
  74. package/build/client/_app/immutable/nodes/0.D42BAFic.js.gz +0 -0
  75. package/build/client/_app/immutable/nodes/1.EnR_repC.js +1 -0
  76. package/build/client/_app/immutable/nodes/1.EnR_repC.js.br +0 -0
  77. package/build/client/_app/immutable/nodes/1.EnR_repC.js.gz +0 -0
  78. package/build/client/_app/immutable/nodes/2.Daii4oR8.js +1 -0
  79. package/build/client/_app/immutable/nodes/2.Daii4oR8.js.br +0 -0
  80. package/build/client/_app/immutable/nodes/2.Daii4oR8.js.gz +0 -0
  81. package/build/client/_app/immutable/workers/editor.worker-Cn2oRESe.js +26 -0
  82. package/build/client/_app/immutable/workers/editor.worker-Cn2oRESe.js.br +0 -0
  83. package/build/client/_app/immutable/workers/editor.worker-Cn2oRESe.js.gz +0 -0
  84. package/build/client/_app/version.json +1 -0
  85. package/build/client/_app/version.json.br +0 -0
  86. package/build/client/_app/version.json.gz +0 -0
  87. package/build/client/robots.txt +3 -0
  88. package/build/client/robots.txt.br +0 -0
  89. package/build/client/robots.txt.gz +0 -0
  90. package/build/env.js +94 -0
  91. package/build/handler.js +1494 -0
  92. package/build/index.js +345 -0
  93. package/build/server/chunks/0-2tF2h-sW.js +13 -0
  94. package/build/server/chunks/0-2tF2h-sW.js.map +1 -0
  95. package/build/server/chunks/1-uqT1he7Y.js +9 -0
  96. package/build/server/chunks/1-uqT1he7Y.js.map +1 -0
  97. package/build/server/chunks/2-WinpGkOi.js +9 -0
  98. package/build/server/chunks/2-WinpGkOi.js.map +1 -0
  99. package/build/server/chunks/_layout.svelte-BO0NOSiE.js +43521 -0
  100. package/build/server/chunks/_layout.svelte-BO0NOSiE.js.map +1 -0
  101. package/build/server/chunks/_page.svelte-BP2EdQl3.js +5 -0
  102. package/build/server/chunks/_page.svelte-BP2EdQl3.js.map +1 -0
  103. package/build/server/chunks/_server.ts-6mqhv5WM.js +30 -0
  104. package/build/server/chunks/_server.ts-6mqhv5WM.js.map +1 -0
  105. package/build/server/chunks/_server.ts-B7evxvHU.js +61 -0
  106. package/build/server/chunks/_server.ts-B7evxvHU.js.map +1 -0
  107. package/build/server/chunks/_server.ts-BN5QAzfI.js +89 -0
  108. package/build/server/chunks/_server.ts-BN5QAzfI.js.map +1 -0
  109. package/build/server/chunks/_server.ts-BWe0PPhA.js +26 -0
  110. package/build/server/chunks/_server.ts-BWe0PPhA.js.map +1 -0
  111. package/build/server/chunks/_server.ts-BgrwjIyE.js +84 -0
  112. package/build/server/chunks/_server.ts-BgrwjIyE.js.map +1 -0
  113. package/build/server/chunks/_server.ts-CFzBDuF1.js +52 -0
  114. package/build/server/chunks/_server.ts-CFzBDuF1.js.map +1 -0
  115. package/build/server/chunks/_server.ts-CHBba1cE.js +55 -0
  116. package/build/server/chunks/_server.ts-CHBba1cE.js.map +1 -0
  117. package/build/server/chunks/_server.ts-ChxeqJr9.js +23 -0
  118. package/build/server/chunks/_server.ts-ChxeqJr9.js.map +1 -0
  119. package/build/server/chunks/_server.ts-Cq27_8sR.js +40 -0
  120. package/build/server/chunks/_server.ts-Cq27_8sR.js.map +1 -0
  121. package/build/server/chunks/_server.ts-DGK-tW9e.js +26 -0
  122. package/build/server/chunks/_server.ts-DGK-tW9e.js.map +1 -0
  123. package/build/server/chunks/_server.ts-DNbiBQKI.js +107 -0
  124. package/build/server/chunks/_server.ts-DNbiBQKI.js.map +1 -0
  125. package/build/server/chunks/_server.ts-LPl3rTE2.js +42 -0
  126. package/build/server/chunks/_server.ts-LPl3rTE2.js.map +1 -0
  127. package/build/server/chunks/_server.ts-WS7E0dC9.js +20 -0
  128. package/build/server/chunks/_server.ts-WS7E0dC9.js.map +1 -0
  129. package/build/server/chunks/_server.ts-o5h153l6.js +22 -0
  130. package/build/server/chunks/_server.ts-o5h153l6.js.map +1 -0
  131. package/build/server/chunks/error.svelte-WWFmDYfs.js +77 -0
  132. package/build/server/chunks/error.svelte-WWFmDYfs.js.map +1 -0
  133. package/build/server/chunks/index-DBqjc0Yf.js +77 -0
  134. package/build/server/chunks/index-DBqjc0Yf.js.map +1 -0
  135. package/build/server/chunks/index-Dq7YP_jO.js +134 -0
  136. package/build/server/chunks/index-Dq7YP_jO.js.map +1 -0
  137. package/build/server/chunks/internal2-R0fapQ2T.js +1164 -0
  138. package/build/server/chunks/internal2-R0fapQ2T.js.map +1 -0
  139. package/build/server/chunks/legacy-client-DEBQKXfT.js +5174 -0
  140. package/build/server/chunks/legacy-client-DEBQKXfT.js.map +1 -0
  141. package/build/server/chunks/mysql-DX3ct8Wa.js +74 -0
  142. package/build/server/chunks/mysql-DX3ct8Wa.js.map +1 -0
  143. package/build/server/chunks/plantuml-BT_hcRqZ.js +32 -0
  144. package/build/server/chunks/plantuml-BT_hcRqZ.js.map +1 -0
  145. package/build/server/chunks/shared-server-DkccXZBX.js +22 -0
  146. package/build/server/chunks/shared-server-DkccXZBX.js.map +1 -0
  147. package/build/server/index.js +4421 -0
  148. package/build/server/index.js.map +1 -0
  149. package/build/server/manifest.js +144 -0
  150. package/build/server/manifest.js.map +1 -0
  151. package/build/shims.js +32 -0
  152. package/package.json +61 -0
@@ -0,0 +1,1164 @@
1
+ import { R as is_valid_array_len, S as MAX_ARRAY_INDEX, T as is_valid_array_index, U as DevalueError, V as is_primitive, W as get_type, X as is_plain_object, Y as enumerable_symbols, Z as stringify_key, $ as stringify_string, a0 as valid_array_indices, a1 as render, a2 as asClassComponent$1, s as setContext, j as derived } from './legacy-client-DEBQKXfT.js';
2
+ import { H as HttpError, S as SvelteKitError } from './index-DBqjc0Yf.js';
3
+
4
+ //#region node_modules/.pnpm/@sveltejs+kit@2.63.1_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.3_@typescript-eslin_917f0301ec0faab725ff93a8d7806479/node_modules/@sveltejs/kit/src/utils/functions.js
5
+ function noop() {}
6
+ /**
7
+ * @template T
8
+ * @param {() => T} fn
9
+ */
10
+ function once(fn) {
11
+ let done = false;
12
+ /** @type T */
13
+ let result;
14
+ return () => {
15
+ if (done) return result;
16
+ done = true;
17
+ return result = fn();
18
+ };
19
+ }
20
+ //#endregion
21
+ //#region node_modules/.pnpm/devalue@5.8.1/node_modules/devalue/src/base64.js
22
+ /** @type {(array_buffer: ArrayBuffer) => string} */
23
+ function encode_native(array_buffer) {
24
+ return new Uint8Array(array_buffer).toBase64();
25
+ }
26
+ /** @type {(base64: string) => ArrayBuffer} */
27
+ function decode_native(base64) {
28
+ return Uint8Array.fromBase64(base64).buffer;
29
+ }
30
+ /** @type {(array_buffer: ArrayBuffer) => string} */
31
+ function encode_buffer(array_buffer) {
32
+ return Buffer.from(array_buffer).toString("base64");
33
+ }
34
+ /** @type {(base64: string) => ArrayBuffer} */
35
+ function decode_buffer(base64) {
36
+ return Uint8Array.from(Buffer.from(base64, "base64")).buffer;
37
+ }
38
+ /** @type {(array_buffer: ArrayBuffer) => string} */
39
+ function encode_legacy(array_buffer) {
40
+ const array = new Uint8Array(array_buffer);
41
+ let binary = "";
42
+ const chunk_size = 32768;
43
+ for (let i = 0; i < array.length; i += chunk_size) {
44
+ const chunk = array.subarray(i, i + chunk_size);
45
+ binary += String.fromCharCode.apply(null, chunk);
46
+ }
47
+ return btoa(binary);
48
+ }
49
+ /** @type {(base64: string) => ArrayBuffer} */
50
+ function decode_legacy(base64) {
51
+ const binary_string = atob(base64);
52
+ const len = binary_string.length;
53
+ const array = new Uint8Array(len);
54
+ for (let i = 0; i < len; i++) array[i] = binary_string.charCodeAt(i);
55
+ return array.buffer;
56
+ }
57
+ var native = typeof Uint8Array.fromBase64 === "function";
58
+ var buffer = typeof process === "object" && process.versions?.node !== void 0;
59
+ var encode64 = native ? encode_native : buffer ? encode_buffer : encode_legacy;
60
+ var decode64 = native ? decode_native : buffer ? decode_buffer : decode_legacy;
61
+ //#endregion
62
+ //#region node_modules/.pnpm/devalue@5.8.1/node_modules/devalue/src/parse.js
63
+ /**
64
+ * Revive a value serialized with `devalue.stringify`
65
+ * @param {string} serialized
66
+ * @param {Record<string, (value: any) => any>} [revivers]
67
+ */
68
+ function parse(serialized, revivers) {
69
+ return unflatten(JSON.parse(serialized), revivers);
70
+ }
71
+ /**
72
+ * Revive a value flattened with `devalue.stringify`
73
+ * @param {number | any[]} parsed
74
+ * @param {Record<string, (value: any) => any>} [revivers]
75
+ */
76
+ function unflatten(parsed, revivers) {
77
+ if (typeof parsed === "number") return hydrate(parsed, true);
78
+ if (!Array.isArray(parsed) || parsed.length === 0) throw new Error("Invalid input");
79
+ const values = parsed;
80
+ const hydrated = Array(values.length);
81
+ /**
82
+ * A set of values currently being hydrated with custom revivers,
83
+ * used to detect invalid cyclical dependencies
84
+ * @type {Set<number> | null}
85
+ */
86
+ let hydrating = null;
87
+ /**
88
+ * @param {number} index
89
+ * @returns {any}
90
+ */
91
+ function hydrate(index, standalone = false) {
92
+ if (index === -1) return void 0;
93
+ if (index === -3) return NaN;
94
+ if (index === -4) return Infinity;
95
+ if (index === -5) return -Infinity;
96
+ if (index === -6) return -0;
97
+ if (standalone || typeof index !== "number") throw new Error(`Invalid input`);
98
+ if (index in hydrated) return hydrated[index];
99
+ const value = values[index];
100
+ if (!value || typeof value !== "object") hydrated[index] = value;
101
+ else if (Array.isArray(value)) if (typeof value[0] === "string") {
102
+ const type = value[0];
103
+ const reviver = revivers && Object.hasOwn(revivers, type) ? revivers[type] : void 0;
104
+ if (reviver) {
105
+ let i = value[1];
106
+ if (typeof i !== "number") i = values.push(value[1]) - 1;
107
+ hydrating ??= /* @__PURE__ */ new Set();
108
+ if (hydrating.has(i)) throw new Error("Invalid circular reference");
109
+ hydrating.add(i);
110
+ hydrated[index] = reviver(hydrate(i));
111
+ hydrating.delete(i);
112
+ return hydrated[index];
113
+ }
114
+ switch (type) {
115
+ case "Date":
116
+ hydrated[index] = new Date(value[1]);
117
+ break;
118
+ case "Set":
119
+ const set = /* @__PURE__ */ new Set();
120
+ hydrated[index] = set;
121
+ for (let i = 1; i < value.length; i += 1) set.add(hydrate(value[i]));
122
+ break;
123
+ case "Map":
124
+ const map = /* @__PURE__ */ new Map();
125
+ hydrated[index] = map;
126
+ for (let i = 1; i < value.length; i += 2) map.set(hydrate(value[i]), hydrate(value[i + 1]));
127
+ break;
128
+ case "RegExp":
129
+ hydrated[index] = new RegExp(value[1], value[2]);
130
+ break;
131
+ case "Object": {
132
+ const wrapped_index = value[1];
133
+ if (typeof values[wrapped_index] === "object" && values[wrapped_index][0] !== "BigInt") throw new Error("Invalid input");
134
+ hydrated[index] = Object(hydrate(wrapped_index));
135
+ break;
136
+ }
137
+ case "BigInt":
138
+ hydrated[index] = BigInt(value[1]);
139
+ break;
140
+ case "null":
141
+ const obj = Object.create(null);
142
+ hydrated[index] = obj;
143
+ for (let i = 1; i < value.length; i += 2) {
144
+ if (value[i] === "__proto__") throw new Error("Cannot parse an object with a `__proto__` property");
145
+ obj[value[i]] = hydrate(value[i + 1]);
146
+ }
147
+ break;
148
+ case "Int8Array":
149
+ case "Uint8Array":
150
+ case "Uint8ClampedArray":
151
+ case "Int16Array":
152
+ case "Uint16Array":
153
+ case "Float16Array":
154
+ case "Int32Array":
155
+ case "Uint32Array":
156
+ case "Float32Array":
157
+ case "Float64Array":
158
+ case "BigInt64Array":
159
+ case "BigUint64Array":
160
+ case "DataView": {
161
+ if (values[value[1]][0] !== "ArrayBuffer") throw new Error("Invalid data");
162
+ const TypedArrayConstructor = globalThis[type];
163
+ const buffer = hydrate(value[1]);
164
+ hydrated[index] = value[2] !== void 0 ? new TypedArrayConstructor(buffer, value[2], value[3]) : new TypedArrayConstructor(buffer);
165
+ break;
166
+ }
167
+ case "ArrayBuffer": {
168
+ const base64 = value[1];
169
+ if (typeof base64 !== "string") throw new Error("Invalid ArrayBuffer encoding");
170
+ hydrated[index] = decode64(base64);
171
+ break;
172
+ }
173
+ case "Temporal.Duration":
174
+ case "Temporal.Instant":
175
+ case "Temporal.PlainDate":
176
+ case "Temporal.PlainTime":
177
+ case "Temporal.PlainDateTime":
178
+ case "Temporal.PlainMonthDay":
179
+ case "Temporal.PlainYearMonth":
180
+ case "Temporal.ZonedDateTime": {
181
+ const temporalName = type.slice(9);
182
+ hydrated[index] = Temporal[temporalName].from(value[1]);
183
+ break;
184
+ }
185
+ case "URL":
186
+ hydrated[index] = new URL(value[1]);
187
+ break;
188
+ case "URLSearchParams":
189
+ hydrated[index] = new URLSearchParams(value[1]);
190
+ break;
191
+ default: throw new Error(`Unknown type ${type}`);
192
+ }
193
+ } else if (value[0] === -7) {
194
+ const len = value[1];
195
+ if (!is_valid_array_len(len)) throw new Error("Invalid input");
196
+ /** @type {any[]} */
197
+ const array = [];
198
+ hydrated[index] = array;
199
+ array[MAX_ARRAY_INDEX] = void 0;
200
+ delete array[MAX_ARRAY_INDEX];
201
+ for (let i = 2; i < value.length; i += 2) {
202
+ const idx = value[i];
203
+ if (!is_valid_array_index(idx) || idx >= len) throw new Error("Invalid input");
204
+ array[idx] = hydrate(value[i + 1]);
205
+ }
206
+ array.length = len;
207
+ } else {
208
+ const array = new Array(value.length);
209
+ hydrated[index] = array;
210
+ for (let i = 0; i < value.length; i += 1) {
211
+ const n = value[i];
212
+ if (n === -2) continue;
213
+ array[i] = hydrate(n);
214
+ }
215
+ }
216
+ else {
217
+ /** @type {Record<string, any>} */
218
+ const object = {};
219
+ hydrated[index] = object;
220
+ for (const key of Object.keys(value)) {
221
+ if (key === "__proto__") throw new Error("Cannot parse an object with a `__proto__` property");
222
+ const n = value[key];
223
+ object[key] = hydrate(n);
224
+ }
225
+ }
226
+ return hydrated[index];
227
+ }
228
+ return hydrate(0);
229
+ }
230
+ //#endregion
231
+ //#region node_modules/.pnpm/devalue@5.8.1/node_modules/devalue/src/stringify.js
232
+ /**
233
+ * Turn a value into a JSON string that can be parsed with `devalue.parse`
234
+ * @param {any} value
235
+ * @param {Record<string, (value: any) => any>} [reducers]
236
+ */
237
+ function stringify$1(value, reducers) {
238
+ const stringified = run(false, value, reducers);
239
+ return typeof stringified === "string" ? stringified : `[${stringified.join(",")}]`;
240
+ }
241
+ /**
242
+ * @param {boolean} async
243
+ * @param {any} value
244
+ * @param {Record<string, (value: any) => any>} [reducers]
245
+ */
246
+ function run(async, value, reducers) {
247
+ /** @type {any[]} */
248
+ const stringified = [];
249
+ /** @type {Map<any, number>} */
250
+ const indexes = /* @__PURE__ */ new Map();
251
+ /** @type {Array<{ key: string, fn: (value: any) => any }>} */
252
+ const custom = [];
253
+ if (reducers) for (const key of Object.getOwnPropertyNames(reducers)) custom.push({
254
+ key,
255
+ fn: reducers[key]
256
+ });
257
+ /** @type {string[]} */
258
+ const keys = [];
259
+ let p = 0;
260
+ /**
261
+ * @param {any} thing
262
+ * @param {number} [index]
263
+ */
264
+ function flatten(thing, index) {
265
+ if (thing === void 0) return -1;
266
+ if (Number.isNaN(thing)) return -3;
267
+ if (thing === Infinity) return -4;
268
+ if (thing === -Infinity) return -5;
269
+ if (thing === 0 && 1 / thing < 0) return -6;
270
+ if (indexes.has(thing)) return indexes.get(thing);
271
+ index ??= p++;
272
+ indexes.set(thing, index);
273
+ for (const { key, fn } of custom) {
274
+ const value = fn(thing);
275
+ if (value) {
276
+ stringified[index] = `["${key}",${flatten(value)}]`;
277
+ return index;
278
+ }
279
+ }
280
+ if (typeof thing === "function") throw new DevalueError(`Cannot stringify a function`, keys, thing, value);
281
+ else if (typeof thing === "symbol") throw new DevalueError(`Cannot stringify a Symbol primitive`, keys, thing, value);
282
+ /** @type {string | Promise<any>} */
283
+ let str = "";
284
+ if (is_primitive(thing)) str = stringify_primitive(thing);
285
+ else if (typeof thing.then === "function") {
286
+ throw new DevalueError(`Cannot stringify a Promise or thenable — use stringifyAsync instead`, keys, thing, value);
287
+ } else {
288
+ const type = get_type(thing);
289
+ switch (type) {
290
+ case "Number":
291
+ case "String":
292
+ case "Boolean":
293
+ case "BigInt":
294
+ str = `["Object",${flatten(thing.valueOf())}]`;
295
+ break;
296
+ case "Date":
297
+ str = `["Date","${!isNaN(thing.getDate()) ? thing.toISOString() : ""}"]`;
298
+ break;
299
+ case "URL":
300
+ str = `["URL",${stringify_string(thing.toString())}]`;
301
+ break;
302
+ case "URLSearchParams":
303
+ str = `["URLSearchParams",${stringify_string(thing.toString())}]`;
304
+ break;
305
+ case "RegExp":
306
+ const { source, flags } = thing;
307
+ str = flags ? `["RegExp",${stringify_string(source)},"${flags}"]` : `["RegExp",${stringify_string(source)}]`;
308
+ break;
309
+ case "Array": {
310
+ let mostly_dense = false;
311
+ str = "[";
312
+ for (let i = 0; i < thing.length; i += 1) {
313
+ if (i > 0) str += ",";
314
+ if (Object.hasOwn(thing, i)) {
315
+ keys.push(`[${i}]`);
316
+ str += flatten(thing[i]);
317
+ keys.pop();
318
+ } else if (mostly_dense) str += -2;
319
+ else {
320
+ const populated_keys = valid_array_indices(thing);
321
+ const population = populated_keys.length;
322
+ const d = String(thing.length).length;
323
+ if ((thing.length - population) * 3 > 4 + d + population * (d + 1)) {
324
+ str = "[-7," + thing.length;
325
+ for (let j = 0; j < populated_keys.length; j++) {
326
+ const key = populated_keys[j];
327
+ keys.push(`[${key}]`);
328
+ str += "," + key + "," + flatten(thing[key]);
329
+ keys.pop();
330
+ }
331
+ break;
332
+ } else {
333
+ mostly_dense = true;
334
+ str += -2;
335
+ }
336
+ }
337
+ }
338
+ str += "]";
339
+ break;
340
+ }
341
+ case "Set":
342
+ str = "[\"Set\"";
343
+ for (const value of thing) str += `,${flatten(value)}`;
344
+ str += "]";
345
+ break;
346
+ case "Map":
347
+ str = "[\"Map\"";
348
+ for (const [key, value] of thing) {
349
+ keys.push(`.get(${is_primitive(key) ? stringify_primitive(key) : "..."})`);
350
+ str += `,${flatten(key)},${flatten(value)}`;
351
+ keys.pop();
352
+ }
353
+ str += "]";
354
+ break;
355
+ case "Int8Array":
356
+ case "Uint8Array":
357
+ case "Uint8ClampedArray":
358
+ case "Int16Array":
359
+ case "Uint16Array":
360
+ case "Float16Array":
361
+ case "Int32Array":
362
+ case "Uint32Array":
363
+ case "Float32Array":
364
+ case "Float64Array":
365
+ case "BigInt64Array":
366
+ case "BigUint64Array":
367
+ case "DataView": {
368
+ /** @type {import("./types.js").TypedArray} */
369
+ const typedArray = thing;
370
+ str = "[\"" + type + "\"," + flatten(typedArray.buffer);
371
+ if (typedArray.byteLength !== typedArray.buffer.byteLength) str += `,${typedArray.byteOffset},${typedArray.length}`;
372
+ str += "]";
373
+ break;
374
+ }
375
+ case "ArrayBuffer":
376
+ str = `["ArrayBuffer","${encode64(thing)}"]`;
377
+ break;
378
+ case "Temporal.Duration":
379
+ case "Temporal.Instant":
380
+ case "Temporal.PlainDate":
381
+ case "Temporal.PlainTime":
382
+ case "Temporal.PlainDateTime":
383
+ case "Temporal.PlainMonthDay":
384
+ case "Temporal.PlainYearMonth":
385
+ case "Temporal.ZonedDateTime":
386
+ str = `["${type}",${stringify_string(thing.toString())}]`;
387
+ break;
388
+ default:
389
+ if (!is_plain_object(thing)) throw new DevalueError(`Cannot stringify arbitrary non-POJOs`, keys, thing, value);
390
+ if (enumerable_symbols(thing).length > 0) throw new DevalueError(`Cannot stringify POJOs with symbolic keys`, keys, thing, value);
391
+ if (Object.getPrototypeOf(thing) === null) {
392
+ str = "[\"null\"";
393
+ for (const key of Object.keys(thing)) {
394
+ if (key === "__proto__") throw new DevalueError(`Cannot stringify objects with __proto__ keys`, keys, thing, value);
395
+ keys.push(stringify_key(key));
396
+ str += `,${stringify_string(key)},${flatten(thing[key])}`;
397
+ keys.pop();
398
+ }
399
+ str += "]";
400
+ } else {
401
+ str = "{";
402
+ let started = false;
403
+ for (const key of Object.keys(thing)) {
404
+ if (key === "__proto__") throw new DevalueError(`Cannot stringify objects with __proto__ keys`, keys, thing, value);
405
+ if (started) str += ",";
406
+ started = true;
407
+ keys.push(stringify_key(key));
408
+ str += `${stringify_string(key)}:${flatten(thing[key])}`;
409
+ keys.pop();
410
+ }
411
+ str += "}";
412
+ }
413
+ }
414
+ }
415
+ stringified[index] = str;
416
+ return index;
417
+ }
418
+ const index = flatten(value);
419
+ if (index < 0) return `${index}`;
420
+ return stringified;
421
+ }
422
+ /**
423
+ * @param {any} thing
424
+ * @returns {string}
425
+ */
426
+ function stringify_primitive(thing) {
427
+ const type = typeof thing;
428
+ if (type === "string") return stringify_string(thing);
429
+ if (thing === void 0) return (-1).toString();
430
+ if (thing === 0 && 1 / thing < 0) return (-6).toString();
431
+ if (type === "bigint") return `["BigInt","${thing}"]`;
432
+ return String(thing);
433
+ }
434
+ //#endregion
435
+ //#region node_modules/.pnpm/@sveltejs+kit@2.63.1_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.3_@typescript-eslin_917f0301ec0faab725ff93a8d7806479/node_modules/@sveltejs/kit/src/runtime/utils.js
436
+ var text_encoder = new TextEncoder();
437
+ /**
438
+ * Like node's path.relative, but without using node
439
+ * @param {string} from
440
+ * @param {string} to
441
+ */
442
+ function get_relative_path(from, to) {
443
+ const from_parts = from.split(/[/\\]/);
444
+ const to_parts = to.split(/[/\\]/);
445
+ from_parts.pop();
446
+ while (from_parts[0] === to_parts[0]) {
447
+ from_parts.shift();
448
+ to_parts.shift();
449
+ }
450
+ let i = from_parts.length;
451
+ while (i--) from_parts[i] = "..";
452
+ return from_parts.concat(to_parts).join("/");
453
+ }
454
+ /**
455
+ * @param {Uint8Array} bytes
456
+ * @returns {string}
457
+ */
458
+ function base64_encode(bytes) {
459
+ if (globalThis.Buffer) return globalThis.Buffer.from(bytes).toString("base64");
460
+ let binary = "";
461
+ for (let i = 0; i < bytes.length; i++) binary += String.fromCharCode(bytes[i]);
462
+ return btoa(binary);
463
+ }
464
+ /**
465
+ * @param {string} encoded
466
+ * @returns {Uint8Array}
467
+ */
468
+ function base64_decode(encoded) {
469
+ if (globalThis.Buffer) {
470
+ const buffer = globalThis.Buffer.from(encoded, "base64");
471
+ return new Uint8Array(buffer);
472
+ }
473
+ const binary = atob(encoded);
474
+ const bytes = new Uint8Array(binary.length);
475
+ for (let i = 0; i < binary.length; i++) bytes[i] = binary.charCodeAt(i);
476
+ return bytes;
477
+ }
478
+ //#endregion
479
+ //#region node_modules/.pnpm/@sveltejs+kit@2.63.1_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.3_@typescript-eslin_917f0301ec0faab725ff93a8d7806479/node_modules/@sveltejs/kit/src/utils/error.js
480
+ /**
481
+ * @param {unknown} err
482
+ * @return {Error}
483
+ */
484
+ function coalesce_to_error(err) {
485
+ return err instanceof Error || err && err.name && err.message ? err : new Error(JSON.stringify(err));
486
+ }
487
+ /**
488
+ * This is an identity function that exists to make TypeScript less
489
+ * paranoid about people throwing things that aren't errors, which
490
+ * frankly is not something we should care about
491
+ * @param {unknown} error
492
+ */
493
+ function normalize_error(error) {
494
+ return error;
495
+ }
496
+ /**
497
+ * @param {unknown} error
498
+ */
499
+ function get_status(error) {
500
+ return error instanceof HttpError || error instanceof SvelteKitError ? error.status : 500;
501
+ }
502
+ /**
503
+ * @param {unknown} error
504
+ */
505
+ function get_message(error) {
506
+ return error instanceof SvelteKitError ? error.text : "Internal Error";
507
+ }
508
+ var INVALIDATED_PARAM = "x-sveltekit-invalidated";
509
+ var TRAILING_SLASH_PARAM = "x-sveltekit-trailing-slash";
510
+ /**
511
+ * Try to `devalue.stringify` the data object using the provided transport encoders.
512
+ * @param {any} data
513
+ * @param {Transport} transport
514
+ */
515
+ function stringify(data, transport) {
516
+ return stringify$1(data, Object.fromEntries(Object.entries(transport).map(([k, v]) => [k, v.encode])));
517
+ }
518
+ var remote_object = "__skrao";
519
+ var remote_map = "__skram";
520
+ var remote_set = "__skras";
521
+ /** @param {Transport} transport */
522
+ function create_remote_arg_revivers(transport) {
523
+ const remote_fns_revivers = {
524
+ /** @type {(value: unknown) => unknown} */
525
+ [remote_object]: (value) => value,
526
+ /** @type {(value: unknown) => Map<unknown, unknown>} */
527
+ [remote_map]: (value) => {
528
+ if (!Array.isArray(value)) throw new Error("Invalid data for Map reviver");
529
+ const map = /* @__PURE__ */ new Map();
530
+ for (const item of value) {
531
+ if (!Array.isArray(item) || item.length !== 2 || typeof item[0] !== "string" || typeof item[1] !== "string") throw new Error("Invalid data for Map reviver");
532
+ const [key, val] = item;
533
+ map.set(parse$1(key), parse$1(val));
534
+ }
535
+ return map;
536
+ },
537
+ /** @type {(value: unknown) => Set<unknown>} */
538
+ [remote_set]: (value) => {
539
+ if (!Array.isArray(value)) throw new Error("Invalid data for Set reviver");
540
+ const set = /* @__PURE__ */ new Set();
541
+ for (const item of value) {
542
+ if (typeof item !== "string") throw new Error("Invalid data for Set reviver");
543
+ set.add(parse$1(item));
544
+ }
545
+ return set;
546
+ }
547
+ };
548
+ const all_revivers = {
549
+ ...Object.fromEntries(Object.entries(transport).map(([k, v]) => [k, v.decode])),
550
+ ...remote_fns_revivers
551
+ };
552
+ /** @type {(data: string) => unknown} */
553
+ const parse$1 = (data) => parse(data, all_revivers);
554
+ return all_revivers;
555
+ }
556
+ /**
557
+ * Parses the argument (if any) for a remote function
558
+ * @param {string} string
559
+ * @param {Transport} transport
560
+ */
561
+ function parse_remote_arg(string, transport) {
562
+ if (!string) return void 0;
563
+ return parse(new TextDecoder().decode(base64_decode(string.replaceAll("-", "+").replaceAll("_", "/"))), create_remote_arg_revivers(transport));
564
+ }
565
+ /**
566
+ * @param {string} id
567
+ * @param {string} payload
568
+ */
569
+ function create_remote_key(id, payload) {
570
+ return id + "/" + payload;
571
+ }
572
+ /**
573
+ * @param {string} key
574
+ * @returns {{ id: string; payload: string }}
575
+ */
576
+ function split_remote_key(key) {
577
+ const i = key.lastIndexOf("/");
578
+ if (i === -1) throw new Error(`Invalid remote key: ${key}`);
579
+ return {
580
+ id: key.slice(0, i),
581
+ payload: key.slice(i + 1)
582
+ };
583
+ }
584
+
585
+ // eslint-disable-next-line n/prefer-global/process
586
+ const IN_WEBCONTAINER = !!globalThis.process?.versions?.webcontainer;
587
+
588
+ /** @import { RequestEvent } from '@sveltejs/kit' */
589
+ /** @import { RequestStore } from 'types' */
590
+ /** @import { AsyncLocalStorage } from 'node:async_hooks' */
591
+
592
+
593
+ /** @type {RequestStore | null} */
594
+ let sync_store = null;
595
+
596
+ /** @type {AsyncLocalStorage<RequestStore | null> | null} */
597
+ let als;
598
+
599
+ import('node:async_hooks')
600
+ .then((hooks) => (als = new hooks.AsyncLocalStorage()))
601
+ .catch(() => {
602
+ // can't use AsyncLocalStorage, but can still call getRequestEvent synchronously.
603
+ // this isn't behind `supports` because it's basically just StackBlitz (i.e.
604
+ // in-browser usage) that doesn't support it AFAICT
605
+ });
606
+
607
+ /**
608
+ * @template T
609
+ * @param {RequestStore | null} store
610
+ * @param {() => T} fn
611
+ */
612
+ function with_request_store(store, fn) {
613
+ try {
614
+ sync_store = store;
615
+ return als ? als.run(store, fn) : fn();
616
+ } finally {
617
+ // Since AsyncLocalStorage is not working in webcontainers, we don't reset `sync_store`
618
+ // and handle only one request at a time in `src/runtime/server/index.js`.
619
+ if (!IN_WEBCONTAINER) {
620
+ sync_store = null;
621
+ }
622
+ }
623
+ }
624
+
625
+ //#region node_modules/.pnpm/@sveltejs+kit@2.63.1_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.3_@typescript-eslin_917f0301ec0faab725ff93a8d7806479/node_modules/@sveltejs/kit/src/utils/array.js
626
+ /**
627
+ * Removes nullish values from an array.
628
+ *
629
+ * @template T
630
+ * @param {Array<T>} arr
631
+ */
632
+ function compact(arr) {
633
+ return arr.filter(
634
+ /** @returns {val is NonNullable<T>} */
635
+ (val) => val != null
636
+ );
637
+ }
638
+ //#endregion
639
+ //#region node_modules/.pnpm/@sveltejs+kit@2.63.1_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.3_@typescript-eslin_917f0301ec0faab725ff93a8d7806479/node_modules/@sveltejs/kit/src/runtime/pathname.js
640
+ var DATA_SUFFIX = "/__data.json";
641
+ var HTML_DATA_SUFFIX = ".html__data.json";
642
+ /** @param {string} pathname */
643
+ function has_data_suffix(pathname) {
644
+ return pathname.endsWith(DATA_SUFFIX) || pathname.endsWith(HTML_DATA_SUFFIX);
645
+ }
646
+ /** @param {string} pathname */
647
+ function add_data_suffix(pathname) {
648
+ if (pathname.endsWith(".html")) return pathname.replace(/\.html$/, HTML_DATA_SUFFIX);
649
+ return pathname.replace(/\/$/, "") + DATA_SUFFIX;
650
+ }
651
+ /** @param {string} pathname */
652
+ function strip_data_suffix(pathname) {
653
+ if (pathname.endsWith(HTML_DATA_SUFFIX)) return pathname.slice(0, -16) + ".html";
654
+ return pathname.slice(0, -12);
655
+ }
656
+ var ROUTE_SUFFIX = "/__route.js";
657
+ /**
658
+ * @param {string} pathname
659
+ * @returns {boolean}
660
+ */
661
+ function has_resolution_suffix(pathname) {
662
+ return pathname.endsWith(ROUTE_SUFFIX);
663
+ }
664
+ /**
665
+ * Convert a regular URL to a route to send to SvelteKit's server-side route resolution endpoint
666
+ * @param {string} pathname
667
+ * @returns {string}
668
+ */
669
+ function add_resolution_suffix(pathname) {
670
+ return pathname.replace(/\/$/, "") + ROUTE_SUFFIX;
671
+ }
672
+ /**
673
+ * @param {string} pathname
674
+ * @returns {string}
675
+ */
676
+ function strip_resolution_suffix(pathname) {
677
+ return pathname.slice(0, -11);
678
+ }
679
+ //#endregion
680
+ //#region node_modules/.pnpm/@sveltejs+kit@2.63.1_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.3_@typescript-eslin_917f0301ec0faab725ff93a8d7806479/node_modules/@sveltejs/kit/src/runtime/telemetry/noop.js
681
+ /**
682
+ * @type {Span}
683
+ */
684
+ var noop_span = {
685
+ spanContext() {
686
+ return noop_span_context;
687
+ },
688
+ setAttribute() {
689
+ return this;
690
+ },
691
+ setAttributes() {
692
+ return this;
693
+ },
694
+ addEvent() {
695
+ return this;
696
+ },
697
+ setStatus() {
698
+ return this;
699
+ },
700
+ updateName() {
701
+ return this;
702
+ },
703
+ end() {
704
+ return this;
705
+ },
706
+ isRecording() {
707
+ return false;
708
+ },
709
+ recordException() {
710
+ return this;
711
+ },
712
+ addLink() {
713
+ return this;
714
+ },
715
+ addLinks() {
716
+ return this;
717
+ }
718
+ };
719
+ /**
720
+ * @type {SpanContext}
721
+ */
722
+ var noop_span_context = {
723
+ traceId: "",
724
+ spanId: "",
725
+ traceFlags: 0
726
+ };
727
+ var internal = new URL("sveltekit-internal://");
728
+ /**
729
+ * @param {string} base
730
+ * @param {string} path
731
+ */
732
+ function resolve(base, path) {
733
+ if (path[0] === "/" && path[1] === "/") return path;
734
+ let url = new URL(base, internal);
735
+ url = new URL(path, url);
736
+ return url.protocol === internal.protocol ? url.pathname + url.search + url.hash : url.href;
737
+ }
738
+ /**
739
+ * @param {string} path
740
+ * @param {import('types').TrailingSlash} trailing_slash
741
+ */
742
+ function normalize_path(path, trailing_slash) {
743
+ if (path === "/" || trailing_slash === "ignore") return path;
744
+ if (trailing_slash === "never") return path.endsWith("/") ? path.slice(0, -1) : path;
745
+ else if (trailing_slash === "always" && !path.endsWith("/")) return path + "/";
746
+ return path;
747
+ }
748
+ /**
749
+ * Decode pathname excluding %25 to prevent further double decoding of params
750
+ * @param {string} pathname
751
+ */
752
+ function decode_pathname(pathname) {
753
+ return pathname.split("%25").map(decodeURI).join("%25");
754
+ }
755
+ /** @param {Record<string, string>} params */
756
+ function decode_params(params) {
757
+ for (const key in params) params[key] = decodeURIComponent(params[key]);
758
+ return params;
759
+ }
760
+ /**
761
+ * @param {URL} url
762
+ * @param {() => void} callback
763
+ * @param {(search_param: string) => void} search_params_callback
764
+ * @param {boolean} [allow_hash]
765
+ */
766
+ function make_trackable(url, callback, search_params_callback, allow_hash = false) {
767
+ const tracked = new URL(url);
768
+ Object.defineProperty(tracked, "searchParams", {
769
+ value: new Proxy(tracked.searchParams, { get(obj, key) {
770
+ if (key === "get" || key === "getAll" || key === "has") return (param, ...rest) => {
771
+ search_params_callback(param);
772
+ return obj[key](param, ...rest);
773
+ };
774
+ callback();
775
+ const value = Reflect.get(obj, key);
776
+ return typeof value === "function" ? value.bind(obj) : value;
777
+ } }),
778
+ enumerable: true,
779
+ configurable: true
780
+ });
781
+ /**
782
+ * URL properties that could change during the lifetime of the page,
783
+ * which excludes things like `origin`
784
+ */
785
+ const tracked_url_properties = [
786
+ "href",
787
+ "pathname",
788
+ "search",
789
+ "toString",
790
+ "toJSON"
791
+ ];
792
+ if (allow_hash) tracked_url_properties.push("hash");
793
+ for (const property of tracked_url_properties) Object.defineProperty(tracked, property, {
794
+ get() {
795
+ callback();
796
+ return url[property];
797
+ },
798
+ enumerable: true,
799
+ configurable: true
800
+ });
801
+ tracked[Symbol.for("nodejs.util.inspect.custom")] = (_depth, opts, inspect) => {
802
+ return inspect(url, opts);
803
+ };
804
+ tracked.searchParams[Symbol.for("nodejs.util.inspect.custom")] = (_depth, opts, inspect) => {
805
+ return inspect(url.searchParams, opts);
806
+ };
807
+ if (!allow_hash) disable_hash(tracked);
808
+ return tracked;
809
+ }
810
+ /**
811
+ * Disallow access to `url.hash` on the server and in `load`
812
+ * @param {URL} url
813
+ */
814
+ function disable_hash(url) {
815
+ allow_nodejs_console_log(url);
816
+ Object.defineProperty(url, "hash", { get() {
817
+ throw new Error("Cannot access event.url.hash. Consider using `page.url.hash` inside a component instead");
818
+ } });
819
+ }
820
+ /**
821
+ * Disallow access to `url.search` and `url.searchParams` during prerendering
822
+ * @param {URL} url
823
+ */
824
+ function disable_search(url) {
825
+ allow_nodejs_console_log(url);
826
+ for (const property of ["search", "searchParams"]) Object.defineProperty(url, property, { get() {
827
+ throw new Error(`Cannot access url.${property} on a page with prerendering enabled`);
828
+ } });
829
+ }
830
+ /**
831
+ * Allow URL to be console logged, bypassing disabled properties.
832
+ * @param {URL} url
833
+ */
834
+ function allow_nodejs_console_log(url) {
835
+ url[Symbol.for("nodejs.util.inspect.custom")] = (_depth, opts, inspect) => {
836
+ return inspect(new URL(url), opts);
837
+ };
838
+ }
839
+ //#endregion
840
+ //#region node_modules/.pnpm/@sveltejs+kit@2.63.1_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.3_@typescript-eslin_917f0301ec0faab725ff93a8d7806479/node_modules/@sveltejs/kit/src/utils/hash.js
841
+ /**
842
+ * Hash using djb2
843
+ * @param {import('types').StrictBody[]} values
844
+ */
845
+ function hash(...values) {
846
+ let hash = 5381;
847
+ for (const value of values) if (typeof value === "string") {
848
+ let i = value.length;
849
+ while (i) hash = hash * 33 ^ value.charCodeAt(--i);
850
+ } else if (ArrayBuffer.isView(value)) {
851
+ const buffer = new Uint8Array(value.buffer, value.byteOffset, value.byteLength);
852
+ let i = buffer.length;
853
+ while (i) hash = hash * 33 ^ buffer[--i];
854
+ } else throw new TypeError("value must be a string or TypedArray");
855
+ return (hash >>> 0).toString(36);
856
+ }
857
+ //#endregion
858
+ //#region node_modules/.pnpm/@sveltejs+kit@2.63.1_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.3_@typescript-eslin_917f0301ec0faab725ff93a8d7806479/node_modules/@sveltejs/kit/src/utils/routing.js
859
+ /**
860
+ * @param {RegExpMatchArray} match
861
+ * @param {import('types').RouteParam[]} params
862
+ * @param {Record<string, import('@sveltejs/kit').ParamMatcher>} matchers
863
+ */
864
+ function exec(match, params, matchers) {
865
+ /** @type {Record<string, string>} */
866
+ const result = {};
867
+ const values = match.slice(1);
868
+ const values_needing_match = values.filter((value) => value !== void 0);
869
+ let buffered = 0;
870
+ for (let i = 0; i < params.length; i += 1) {
871
+ const param = params[i];
872
+ let value = values[i - buffered];
873
+ if (param.chained && param.rest && buffered) {
874
+ value = values.slice(i - buffered, i + 1).filter((s) => s).join("/");
875
+ buffered = 0;
876
+ }
877
+ if (value === void 0) if (param.rest) value = "";
878
+ else continue;
879
+ if (!param.matcher || matchers[param.matcher](value)) {
880
+ result[param.name] = value;
881
+ const next_param = params[i + 1];
882
+ const next_value = values[i + 1];
883
+ if (next_param && !next_param.rest && next_param.optional && next_value && param.chained) buffered = 0;
884
+ if (!next_param && !next_value && Object.keys(result).length === values_needing_match.length) buffered = 0;
885
+ continue;
886
+ }
887
+ if (param.optional && param.chained) {
888
+ buffered++;
889
+ continue;
890
+ }
891
+ return;
892
+ }
893
+ if (buffered) return;
894
+ return result;
895
+ }
896
+ /**
897
+ * Find the first route that matches the given path
898
+ * @template {{pattern: RegExp, params: import('types').RouteParam[]}} Route
899
+ * @param {string} path - The decoded pathname to match
900
+ * @param {Route[]} routes
901
+ * @param {Record<string, import('@sveltejs/kit').ParamMatcher>} matchers
902
+ * @returns {{ route: Route, params: Record<string, string> } | null}
903
+ */
904
+ function find_route(path, routes, matchers) {
905
+ for (const route of routes) {
906
+ const match = route.pattern.exec(path);
907
+ if (!match) continue;
908
+ const matched = exec(match, route.params, matchers);
909
+ if (matched) return {
910
+ route,
911
+ params: decode_params(matched)
912
+ };
913
+ }
914
+ return null;
915
+ }
916
+ //#endregion
917
+ //#region node_modules/.pnpm/@sveltejs+kit@2.63.1_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.3_@typescript-eslin_917f0301ec0faab725ff93a8d7806479/node_modules/@sveltejs/kit/src/utils/exports.js
918
+ /**
919
+ * @param {Set<string>} expected
920
+ */
921
+ function validator(expected) {
922
+ /**
923
+ * @param {any} module
924
+ * @param {string} [file]
925
+ */
926
+ function validate(module, file) {
927
+ if (!module) return;
928
+ for (const key in module) {
929
+ if (key[0] === "_" || expected.has(key)) continue;
930
+ const values = [...expected.values()];
931
+ const hint = hint_for_supported_files(key, file?.slice(file.lastIndexOf("."))) ?? `valid exports are ${values.join(", ")}, or anything with a '_' prefix`;
932
+ throw new Error(`Invalid export '${key}'${file ? ` in ${file}` : ""} (${hint})`);
933
+ }
934
+ }
935
+ return validate;
936
+ }
937
+ /**
938
+ * @param {string} key
939
+ * @param {string} ext
940
+ * @returns {string | void}
941
+ */
942
+ function hint_for_supported_files(key, ext = ".js") {
943
+ const supported_files = [];
944
+ if (valid_layout_exports.has(key)) supported_files.push(`+layout${ext}`);
945
+ if (valid_page_exports.has(key)) supported_files.push(`+page${ext}`);
946
+ if (valid_layout_server_exports.has(key)) supported_files.push(`+layout.server${ext}`);
947
+ if (valid_page_server_exports.has(key)) supported_files.push(`+page.server${ext}`);
948
+ if (valid_server_exports.has(key)) supported_files.push(`+server${ext}`);
949
+ if (supported_files.length > 0) return `'${key}' is a valid export in ${supported_files.slice(0, -1).join(", ")}${supported_files.length > 1 ? " or " : ""}${supported_files.at(-1)}`;
950
+ }
951
+ var valid_layout_exports = new Set([
952
+ "load",
953
+ "prerender",
954
+ "csr",
955
+ "ssr",
956
+ "trailingSlash",
957
+ "config"
958
+ ]);
959
+ var valid_page_exports = new Set([...valid_layout_exports, "entries"]);
960
+ var valid_layout_server_exports = new Set([...valid_layout_exports]);
961
+ var valid_page_server_exports = new Set([
962
+ ...valid_layout_server_exports,
963
+ "actions",
964
+ "entries"
965
+ ]);
966
+ var valid_server_exports = new Set([
967
+ "GET",
968
+ "POST",
969
+ "PATCH",
970
+ "PUT",
971
+ "DELETE",
972
+ "OPTIONS",
973
+ "HEAD",
974
+ "fallback",
975
+ "prerender",
976
+ "trailingSlash",
977
+ "config",
978
+ "entries"
979
+ ]);
980
+ var validate_layout_exports = validator(valid_layout_exports);
981
+ var validate_page_exports = validator(valid_page_exports);
982
+ var validate_layout_server_exports = validator(valid_layout_server_exports);
983
+ var validate_page_server_exports = validator(valid_page_server_exports);
984
+
985
+ //#endregion
986
+ //#region \0virtual:__sveltekit/server
987
+ var read_implementation = null;
988
+ function set_read_implementation(fn) {
989
+ read_implementation = fn;
990
+ }
991
+ //#endregion
992
+ //#region node_modules/.pnpm/svelte@5.56.3_@typescript-eslint+types@8.61.0/node_modules/svelte/src/legacy/legacy-server.js
993
+ /** @import { SvelteComponent } from '../index.js' */
994
+ /** @import { Csp } from '#server' */
995
+ /** @typedef {{ head: string, html: string, css: { code: string, map: null }; hashes?: { script: `sha256-${string}`[] } }} LegacyRenderResult */
996
+ /**
997
+ * Takes a Svelte 5 component and returns a Svelte 4 compatible component constructor.
998
+ *
999
+ * @deprecated Use this only as a temporary solution to migrate your imperative component code to Svelte 5.
1000
+ *
1001
+ * @template {Record<string, any>} Props
1002
+ * @template {Record<string, any>} Exports
1003
+ * @template {Record<string, any>} Events
1004
+ * @template {Record<string, any>} Slots
1005
+ *
1006
+ * @param {SvelteComponent<Props, Events, Slots>} component
1007
+ * @returns {typeof SvelteComponent<Props, Events, Slots> & Exports}
1008
+ */
1009
+ function asClassComponent(component) {
1010
+ const component_constructor = asClassComponent$1(component);
1011
+ /** @type {(props?: {}, opts?: { $$slots?: {}; context?: Map<any, any>; csp?: Csp; transformError?: (error: unknown) => unknown }) => LegacyRenderResult & PromiseLike<LegacyRenderResult> } */
1012
+ const _render = (props, { context, csp, transformError } = {}) => {
1013
+ const result = render(component, {
1014
+ props,
1015
+ context,
1016
+ csp,
1017
+ transformError
1018
+ });
1019
+ const munged = Object.defineProperties({}, {
1020
+ css: { value: {
1021
+ code: "",
1022
+ map: null
1023
+ } },
1024
+ head: { get: () => result.head },
1025
+ html: { get: () => result.body },
1026
+ then: {
1027
+ /**
1028
+ * this is not type-safe, but honestly it's the best I can do right now, and it's a straightforward function.
1029
+ *
1030
+ * @template TResult1
1031
+ * @template [TResult2=never]
1032
+ * @param { (value: LegacyRenderResult) => TResult1 } onfulfilled
1033
+ * @param { (reason: unknown) => TResult2 } onrejected
1034
+ */
1035
+ value: (onfulfilled, onrejected) => {
1036
+ {
1037
+ const user_result = onfulfilled({
1038
+ css: munged.css,
1039
+ head: munged.head,
1040
+ html: munged.html
1041
+ });
1042
+ return Promise.resolve(user_result);
1043
+ }
1044
+ } }
1045
+ });
1046
+ return munged;
1047
+ };
1048
+ component_constructor.render = _render;
1049
+ return component_constructor;
1050
+ }
1051
+ //#endregion
1052
+ //#region .svelte-kit/generated/root.svelte
1053
+ function Root($$renderer, $$props) {
1054
+ $$renderer.component(($$renderer) => {
1055
+ let { stores, page, constructors, components = [], form, data_0 = null, data_1 = null } = $$props;
1056
+ setContext("__svelte__", stores);
1057
+ stores.page.set(page);
1058
+ const Pyramid_1 = derived(() => constructors[1]);
1059
+ if (constructors[1]) {
1060
+ $$renderer.push("<!--[0-->");
1061
+ const Pyramid_0 = constructors[0];
1062
+ if (Pyramid_0) {
1063
+ $$renderer.push("<!--[-->");
1064
+ Pyramid_0($$renderer, {
1065
+ data: data_0,
1066
+ form,
1067
+ params: page.params,
1068
+ children: ($$renderer) => {
1069
+ if (Pyramid_1()) {
1070
+ $$renderer.push("<!--[-->");
1071
+ Pyramid_1()($$renderer, {
1072
+ data: data_1,
1073
+ form,
1074
+ params: page.params
1075
+ });
1076
+ $$renderer.push("<!--]-->");
1077
+ } else {
1078
+ $$renderer.push("<!--[!-->");
1079
+ $$renderer.push("<!--]-->");
1080
+ }
1081
+ },
1082
+ $$slots: { default: true }
1083
+ });
1084
+ $$renderer.push("<!--]-->");
1085
+ } else {
1086
+ $$renderer.push("<!--[!-->");
1087
+ $$renderer.push("<!--]-->");
1088
+ }
1089
+ } else {
1090
+ $$renderer.push("<!--[-1-->");
1091
+ const Pyramid_0 = constructors[0];
1092
+ if (Pyramid_0) {
1093
+ $$renderer.push("<!--[-->");
1094
+ Pyramid_0($$renderer, {
1095
+ data: data_0,
1096
+ form,
1097
+ params: page.params
1098
+ });
1099
+ $$renderer.push("<!--]-->");
1100
+ } else {
1101
+ $$renderer.push("<!--[!-->");
1102
+ $$renderer.push("<!--]-->");
1103
+ }
1104
+ }
1105
+ $$renderer.push(`<!--]--> `);
1106
+ $$renderer.push("<!--[-1-->");
1107
+ $$renderer.push(`<!--]-->`);
1108
+ });
1109
+ }
1110
+ //#endregion
1111
+ //#region .svelte-kit/generated/server/internal.js
1112
+ var options = {
1113
+ app_template_contains_nonce: false,
1114
+ async: false,
1115
+ csp: {
1116
+ "mode": "auto",
1117
+ "directives": {
1118
+ "upgrade-insecure-requests": false,
1119
+ "block-all-mixed-content": false
1120
+ },
1121
+ "reportOnly": {
1122
+ "upgrade-insecure-requests": false,
1123
+ "block-all-mixed-content": false
1124
+ }
1125
+ },
1126
+ csrf_check_origin: true,
1127
+ csrf_trusted_origins: [],
1128
+ embedded: false,
1129
+ env_public_prefix: "PUBLIC_",
1130
+ env_private_prefix: "",
1131
+ hash_routing: false,
1132
+ hooks: null,
1133
+ preload_strategy: "modulepreload",
1134
+ root: asClassComponent(Root),
1135
+ service_worker: false,
1136
+ service_worker_options: void 0,
1137
+ server_error_boundaries: false,
1138
+ templates: {
1139
+ 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",
1140
+ error: ({ 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"
1141
+ },
1142
+ version_hash: "1qlw5fj"
1143
+ };
1144
+ async function get_hooks() {
1145
+ let handle;
1146
+ let handleFetch;
1147
+ let handleError;
1148
+ let handleValidationError;
1149
+ let init;
1150
+ let reroute;
1151
+ let transport;
1152
+ return {
1153
+ handle,
1154
+ handleFetch,
1155
+ handleError,
1156
+ handleValidationError,
1157
+ init,
1158
+ reroute,
1159
+ transport
1160
+ };
1161
+ }
1162
+
1163
+ export { set_read_implementation as A, create_remote_key as B, hash as C, text_encoder as D, compact as E, once as F, normalize_error as G, make_trackable as H, INVALIDATED_PARAM as I, parse_remote_arg as J, stringify as K, stringify$1 as L, split_remote_key as M, base64_encode as N, TRAILING_SLASH_PARAM as T, get_message as a, get_hooks as b, coalesce_to_error as c, has_data_suffix as d, strip_data_suffix as e, decode_pathname as f, get_status as g, has_resolution_suffix as h, add_data_suffix as i, add_resolution_suffix as j, find_route as k, normalize_path as l, disable_search as m, noop as n, options as o, parse as p, validate_layout_exports as q, validate_page_server_exports as r, strip_resolution_suffix as s, validate_page_exports as t, noop_span as u, validate_layout_server_exports as v, with_request_store as w, resolve as x, read_implementation as y, get_relative_path as z };
1164
+ //# sourceMappingURL=internal2-R0fapQ2T.js.map