assafvayner HF Staff commited on
Commit
0d1e1be
·
1 Parent(s): fe77549

fix hashes

Browse files
.svelte-kit/ambient.d.ts ADDED
@@ -0,0 +1,237 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ // this file is generated — do not edit it
3
+
4
+
5
+ /// <reference types="@sveltejs/kit" />
6
+
7
+ /**
8
+ * Environment variables [loaded by Vite](https://vitejs.dev/guide/env-and-mode.html#env-files) from `.env` files and `process.env`. Like [`$env/dynamic/private`](https://svelte.dev/docs/kit/$env-dynamic-private), this module cannot be imported into client-side code. This module only includes variables that _do not_ begin with [`config.kit.env.publicPrefix`](https://svelte.dev/docs/kit/configuration#env) _and do_ start with [`config.kit.env.privatePrefix`](https://svelte.dev/docs/kit/configuration#env) (if configured).
9
+ *
10
+ * _Unlike_ [`$env/dynamic/private`](https://svelte.dev/docs/kit/$env-dynamic-private), the values exported from this module are statically injected into your bundle at build time, enabling optimisations like dead code elimination.
11
+ *
12
+ * ```ts
13
+ * import { API_KEY } from '$env/static/private';
14
+ * ```
15
+ *
16
+ * Note that all environment variables referenced in your code should be declared (for example in an `.env` file), even if they don't have a value until the app is deployed:
17
+ *
18
+ * ```
19
+ * MY_FEATURE_FLAG=""
20
+ * ```
21
+ *
22
+ * You can override `.env` values from the command line like so:
23
+ *
24
+ * ```sh
25
+ * MY_FEATURE_FLAG="enabled" npm run dev
26
+ * ```
27
+ */
28
+ declare module '$env/static/private' {
29
+ export const NVM_INC: string;
30
+ export const COREPACK_ROOT: string;
31
+ export const XET_ACCESS_TOKEN: string;
32
+ export const TERM_PROGRAM: string;
33
+ export const NODE: string;
34
+ export const PYENV_ROOT: string;
35
+ export const NVM_CD_FLAGS: string;
36
+ export const INIT_CWD: string;
37
+ export const SHELL: string;
38
+ export const TERM: string;
39
+ export const MERCURY: string;
40
+ export const TMPDIR: string;
41
+ export const HOMEBREW_REPOSITORY: string;
42
+ export const GOBIN: string;
43
+ export const TERM_PROGRAM_VERSION: string;
44
+ export const MallocNanoZone: string;
45
+ export const ORIGINAL_XDG_CURRENT_DESKTOP: string;
46
+ export const CURSOR_TRACE_ID: string;
47
+ export const ZDOTDIR: string;
48
+ export const npm_config_registry: string;
49
+ export const ZSH: string;
50
+ export const PNPM_HOME: string;
51
+ export const USER: string;
52
+ export const NVM_DIR: string;
53
+ export const LS_COLORS: string;
54
+ export const COMMAND_MODE: string;
55
+ export const PNPM_SCRIPT_SRC_DIR: string;
56
+ export const SSH_AUTH_SOCK: string;
57
+ export const __CF_USER_TEXT_ENCODING: string;
58
+ export const VSCODE_PROFILE_INITIALIZED: string;
59
+ export const npm_execpath: string;
60
+ export const PAGER: string;
61
+ export const LSCOLORS: string;
62
+ export const npm_config_frozen_lockfile: string;
63
+ export const npm_config_verify_deps_before_run: string;
64
+ export const PATH: string;
65
+ export const npm_package_json: string;
66
+ export const __CFBundleIdentifier: string;
67
+ export const XETHUB: string;
68
+ export const USER_ZDOTDIR: string;
69
+ export const COREPACK_ENABLE_DOWNLOAD_PROMPT: string;
70
+ export const PWD: string;
71
+ export const npm_command: string;
72
+ export const npm_config__jsr_registry: string;
73
+ export const npm_lifecycle_event: string;
74
+ export const LANG: string;
75
+ export const npm_package_name: string;
76
+ export const NODE_PATH: string;
77
+ export const XPC_FLAGS: string;
78
+ export const VSCODE_GIT_ASKPASS_EXTRA_ARGS: string;
79
+ export const npm_config_node_gyp: string;
80
+ export const XPC_SERVICE_NAME: string;
81
+ export const npm_package_version: string;
82
+ export const pnpm_config_verify_deps_before_run: string;
83
+ export const VSCODE_INJECTION: string;
84
+ export const HOME: string;
85
+ export const SHLVL: string;
86
+ export const PYENV_SHELL: string;
87
+ export const AWS_SSO_PROFILE_SANDBOX: string;
88
+ export const VSCODE_GIT_ASKPASS_MAIN: string;
89
+ export const HOMEBREW_PREFIX: string;
90
+ export const LOGNAME: string;
91
+ export const LESS: string;
92
+ export const npm_lifecycle_script: string;
93
+ export const VSCODE_GIT_IPC_HANDLE: string;
94
+ export const XETCORE: string;
95
+ export const NVM_BIN: string;
96
+ export const GOPATH: string;
97
+ export const npm_config_user_agent: string;
98
+ export const HOMEBREW_CELLAR: string;
99
+ export const INFOPATH: string;
100
+ export const GIT_ASKPASS: string;
101
+ export const VSCODE_GIT_ASKPASS_NODE: string;
102
+ export const HFDIR: string;
103
+ export const CARGO_NET_GIT_FETCH_WITH_CLI: string;
104
+ export const COLORTERM: string;
105
+ export const npm_node_execpath: string;
106
+ export const NODE_ENV: string;
107
+ }
108
+
109
+ /**
110
+ * Similar to [`$env/static/private`](https://svelte.dev/docs/kit/$env-static-private), except that it only includes environment variables that begin with [`config.kit.env.publicPrefix`](https://svelte.dev/docs/kit/configuration#env) (which defaults to `PUBLIC_`), and can therefore safely be exposed to client-side code.
111
+ *
112
+ * Values are replaced statically at build time.
113
+ *
114
+ * ```ts
115
+ * import { PUBLIC_BASE_URL } from '$env/static/public';
116
+ * ```
117
+ */
118
+ declare module '$env/static/public' {
119
+
120
+ }
121
+
122
+ /**
123
+ * This module provides access to runtime environment variables, as defined by the platform you're running on. For example if you're using [`adapter-node`](https://github.com/sveltejs/kit/tree/main/packages/adapter-node) (or running [`vite preview`](https://svelte.dev/docs/kit/cli)), this is equivalent to `process.env`. This module only includes variables that _do not_ begin with [`config.kit.env.publicPrefix`](https://svelte.dev/docs/kit/configuration#env) _and do_ start with [`config.kit.env.privatePrefix`](https://svelte.dev/docs/kit/configuration#env) (if configured).
124
+ *
125
+ * This module cannot be imported into client-side code.
126
+ *
127
+ * Dynamic environment variables cannot be used during prerendering.
128
+ *
129
+ * ```ts
130
+ * import { env } from '$env/dynamic/private';
131
+ * console.log(env.DEPLOYMENT_SPECIFIC_VARIABLE);
132
+ * ```
133
+ *
134
+ * > In `dev`, `$env/dynamic` always includes environment variables from `.env`. In `prod`, this behavior will depend on your adapter.
135
+ */
136
+ declare module '$env/dynamic/private' {
137
+ export const env: {
138
+ NVM_INC: string;
139
+ COREPACK_ROOT: string;
140
+ XET_ACCESS_TOKEN: string;
141
+ TERM_PROGRAM: string;
142
+ NODE: string;
143
+ PYENV_ROOT: string;
144
+ NVM_CD_FLAGS: string;
145
+ INIT_CWD: string;
146
+ SHELL: string;
147
+ TERM: string;
148
+ MERCURY: string;
149
+ TMPDIR: string;
150
+ HOMEBREW_REPOSITORY: string;
151
+ GOBIN: string;
152
+ TERM_PROGRAM_VERSION: string;
153
+ MallocNanoZone: string;
154
+ ORIGINAL_XDG_CURRENT_DESKTOP: string;
155
+ CURSOR_TRACE_ID: string;
156
+ ZDOTDIR: string;
157
+ npm_config_registry: string;
158
+ ZSH: string;
159
+ PNPM_HOME: string;
160
+ USER: string;
161
+ NVM_DIR: string;
162
+ LS_COLORS: string;
163
+ COMMAND_MODE: string;
164
+ PNPM_SCRIPT_SRC_DIR: string;
165
+ SSH_AUTH_SOCK: string;
166
+ __CF_USER_TEXT_ENCODING: string;
167
+ VSCODE_PROFILE_INITIALIZED: string;
168
+ npm_execpath: string;
169
+ PAGER: string;
170
+ LSCOLORS: string;
171
+ npm_config_frozen_lockfile: string;
172
+ npm_config_verify_deps_before_run: string;
173
+ PATH: string;
174
+ npm_package_json: string;
175
+ __CFBundleIdentifier: string;
176
+ XETHUB: string;
177
+ USER_ZDOTDIR: string;
178
+ COREPACK_ENABLE_DOWNLOAD_PROMPT: string;
179
+ PWD: string;
180
+ npm_command: string;
181
+ npm_config__jsr_registry: string;
182
+ npm_lifecycle_event: string;
183
+ LANG: string;
184
+ npm_package_name: string;
185
+ NODE_PATH: string;
186
+ XPC_FLAGS: string;
187
+ VSCODE_GIT_ASKPASS_EXTRA_ARGS: string;
188
+ npm_config_node_gyp: string;
189
+ XPC_SERVICE_NAME: string;
190
+ npm_package_version: string;
191
+ pnpm_config_verify_deps_before_run: string;
192
+ VSCODE_INJECTION: string;
193
+ HOME: string;
194
+ SHLVL: string;
195
+ PYENV_SHELL: string;
196
+ AWS_SSO_PROFILE_SANDBOX: string;
197
+ VSCODE_GIT_ASKPASS_MAIN: string;
198
+ HOMEBREW_PREFIX: string;
199
+ LOGNAME: string;
200
+ LESS: string;
201
+ npm_lifecycle_script: string;
202
+ VSCODE_GIT_IPC_HANDLE: string;
203
+ XETCORE: string;
204
+ NVM_BIN: string;
205
+ GOPATH: string;
206
+ npm_config_user_agent: string;
207
+ HOMEBREW_CELLAR: string;
208
+ INFOPATH: string;
209
+ GIT_ASKPASS: string;
210
+ VSCODE_GIT_ASKPASS_NODE: string;
211
+ HFDIR: string;
212
+ CARGO_NET_GIT_FETCH_WITH_CLI: string;
213
+ COLORTERM: string;
214
+ npm_node_execpath: string;
215
+ NODE_ENV: string;
216
+ [key: `PUBLIC_${string}`]: undefined;
217
+ [key: `${string}`]: string | undefined;
218
+ }
219
+ }
220
+
221
+ /**
222
+ * Similar to [`$env/dynamic/private`](https://svelte.dev/docs/kit/$env-dynamic-private), but only includes variables that begin with [`config.kit.env.publicPrefix`](https://svelte.dev/docs/kit/configuration#env) (which defaults to `PUBLIC_`), and can therefore safely be exposed to client-side code.
223
+ *
224
+ * Note that public dynamic environment variables must all be sent from the server to the client, causing larger network requests — when possible, use `$env/static/public` instead.
225
+ *
226
+ * Dynamic environment variables cannot be used during prerendering.
227
+ *
228
+ * ```ts
229
+ * import { env } from '$env/dynamic/public';
230
+ * console.log(env.PUBLIC_DEPLOYMENT_SPECIFIC_VARIABLE);
231
+ * ```
232
+ */
233
+ declare module '$env/dynamic/public' {
234
+ export const env: {
235
+ [key: `PUBLIC_${string}`]: string | undefined;
236
+ }
237
+ }
.svelte-kit/generated/client/app.js ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ export { matchers } from './matchers.js';
2
+
3
+ export const nodes = [
4
+ () => import('./nodes/0'),
5
+ () => import('./nodes/1'),
6
+ () => import('./nodes/2')
7
+ ];
8
+
9
+ export const server_loads = [];
10
+
11
+ export const dictionary = {
12
+ "/": [2]
13
+ };
14
+
15
+ export const hooks = {
16
+ handleError: (({ error }) => { console.error(error) }),
17
+
18
+ reroute: (() => {}),
19
+ transport: {}
20
+ };
21
+
22
+ export const decoders = Object.fromEntries(Object.entries(hooks.transport).map(([k, v]) => [k, v.decode]));
23
+
24
+ export const hash = false;
25
+
26
+ export const decode = (type, value) => decoders[type](value);
27
+
28
+ export { default as root } from '../root.js';
.svelte-kit/generated/client/matchers.js ADDED
@@ -0,0 +1 @@
 
 
1
+ export const matchers = {};
.svelte-kit/generated/client/nodes/0.js ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ import * as universal from "../../../../src/routes/+layout.js";
2
+ export { universal };
3
+ export { default as component } from "../../../../src/routes/+layout.svelte";
.svelte-kit/generated/client/nodes/1.js ADDED
@@ -0,0 +1 @@
 
 
1
+ export { default as component } from "../../../../node_modules/.pnpm/@sveltejs+kit@2.27.0_@sveltejs+vite-plugin-svelte@6.1.0_svelte@5.37.3_vite@7.0.6__svelte@5.37.3_vite@7.0.6/node_modules/@sveltejs/kit/src/runtime/components/svelte-5/error.svelte";
.svelte-kit/generated/client/nodes/2.js ADDED
@@ -0,0 +1 @@
 
 
1
+ export { default as component } from "../../../../src/routes/+page.svelte";
.svelte-kit/generated/root.js ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ import { asClassComponent } from 'svelte/legacy';
2
+ import Root from './root.svelte';
3
+ export default asClassComponent(Root);
.svelte-kit/generated/root.svelte ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!-- This file is generated by @sveltejs/kit — do not edit it! -->
2
+ <svelte:options runes={true} />
3
+ <script>
4
+ import { setContext, onMount, tick } from 'svelte';
5
+ import { browser } from '$app/environment';
6
+
7
+ // stores
8
+ let { stores, page, constructors, components = [], form, data_0 = null, data_1 = null } = $props();
9
+
10
+ if (!browser) {
11
+ setContext('__svelte__', stores);
12
+ }
13
+
14
+ if (browser) {
15
+ $effect.pre(() => stores.page.set(page));
16
+ } else {
17
+ stores.page.set(page);
18
+ }
19
+ $effect(() => {
20
+ stores;page;constructors;components;form;data_0;data_1;
21
+ stores.page.notify();
22
+ });
23
+
24
+ let mounted = $state(false);
25
+ let navigated = $state(false);
26
+ let title = $state(null);
27
+
28
+ onMount(() => {
29
+ const unsubscribe = stores.page.subscribe(() => {
30
+ if (mounted) {
31
+ navigated = true;
32
+ tick().then(() => {
33
+ title = document.title || 'untitled page';
34
+ });
35
+ }
36
+ });
37
+
38
+ mounted = true;
39
+ return unsubscribe;
40
+ });
41
+
42
+ const Pyramid_1=$derived(constructors[1])
43
+ </script>
44
+
45
+ {#if constructors[1]}
46
+ {@const Pyramid_0 = constructors[0]}
47
+ <!-- svelte-ignore binding_property_non_reactive -->
48
+ <Pyramid_0 bind:this={components[0]} data={data_0} {form} params={page.params}>
49
+ <!-- svelte-ignore binding_property_non_reactive -->
50
+ <Pyramid_1 bind:this={components[1]} data={data_1} {form} params={page.params} />
51
+ </Pyramid_0>
52
+
53
+ {:else}
54
+ {@const Pyramid_0 = constructors[0]}
55
+ <!-- svelte-ignore binding_property_non_reactive -->
56
+ <Pyramid_0 bind:this={components[0]} data={data_0} {form} params={page.params} />
57
+
58
+ {/if}
59
+
60
+ {#if mounted}
61
+ <div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px">
62
+ {#if navigated}
63
+ {title}
64
+ {/if}
65
+ </div>
66
+ {/if}
.svelte-kit/generated/server/internal.js ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ import root from '../root.js';
3
+ import { set_building, set_prerendering } from '__sveltekit/environment';
4
+ import { set_assets } from '__sveltekit/paths';
5
+ import { set_manifest, set_read_implementation } from '__sveltekit/server';
6
+ import { set_private_env, set_public_env, set_safe_public_env } from '../../../node_modules/.pnpm/@sveltejs+kit@2.27.0_@sveltejs+vite-plugin-svelte@6.1.0_svelte@5.37.3_vite@7.0.6__svelte@5.37.3_vite@7.0.6/node_modules/@sveltejs/kit/src/runtime/shared-server.js';
7
+
8
+ export const options = {
9
+ app_template_contains_nonce: false,
10
+ csp: {"mode":"auto","directives":{"upgrade-insecure-requests":false,"block-all-mixed-content":false},"reportOnly":{"upgrade-insecure-requests":false,"block-all-mixed-content":false}},
11
+ csrf_check_origin: true,
12
+ embedded: false,
13
+ env_public_prefix: 'PUBLIC_',
14
+ env_private_prefix: '',
15
+ hash_routing: false,
16
+ hooks: null, // added lazily, via `get_hooks`
17
+ preload_strategy: "modulepreload",
18
+ root,
19
+ service_worker: false,
20
+ templates: {
21
+ app: ({ head, body, assets, nonce, env }) => "<!doctype html>\n<html lang=\"en\">\n\n<head>\n\t<meta charset=\"utf-8\" />\n\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n\t<title>XORB & Shard File Viewer</title>\n\t<meta name=\"description\" content=\"Parse and view metadata from XORB and Shard object files\" />\n\t" + head + "\n</head>\n\n<body data-sveltekit-preload-data=\"hover\">\n\t<div style=\"display: contents\">" + body + "</div>\n</body>\n\n</html>",
22
+ error: ({ status, message }) => "<!doctype html>\n<html lang=\"en\">\n\t<head>\n\t\t<meta charset=\"utf-8\" />\n\t\t<title>" + message + "</title>\n\n\t\t<style>\n\t\t\tbody {\n\t\t\t\t--bg: white;\n\t\t\t\t--fg: #222;\n\t\t\t\t--divider: #ccc;\n\t\t\t\tbackground: var(--bg);\n\t\t\t\tcolor: var(--fg);\n\t\t\t\tfont-family:\n\t\t\t\t\tsystem-ui,\n\t\t\t\t\t-apple-system,\n\t\t\t\t\tBlinkMacSystemFont,\n\t\t\t\t\t'Segoe UI',\n\t\t\t\t\tRoboto,\n\t\t\t\t\tOxygen,\n\t\t\t\t\tUbuntu,\n\t\t\t\t\tCantarell,\n\t\t\t\t\t'Open Sans',\n\t\t\t\t\t'Helvetica Neue',\n\t\t\t\t\tsans-serif;\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tjustify-content: center;\n\t\t\t\theight: 100vh;\n\t\t\t\tmargin: 0;\n\t\t\t}\n\n\t\t\t.error {\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tmax-width: 32rem;\n\t\t\t\tmargin: 0 1rem;\n\t\t\t}\n\n\t\t\t.status {\n\t\t\t\tfont-weight: 200;\n\t\t\t\tfont-size: 3rem;\n\t\t\t\tline-height: 1;\n\t\t\t\tposition: relative;\n\t\t\t\ttop: -0.05rem;\n\t\t\t}\n\n\t\t\t.message {\n\t\t\t\tborder-left: 1px solid var(--divider);\n\t\t\t\tpadding: 0 0 0 1rem;\n\t\t\t\tmargin: 0 0 0 1rem;\n\t\t\t\tmin-height: 2.5rem;\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t}\n\n\t\t\t.message h1 {\n\t\t\t\tfont-weight: 400;\n\t\t\t\tfont-size: 1em;\n\t\t\t\tmargin: 0;\n\t\t\t}\n\n\t\t\t@media (prefers-color-scheme: dark) {\n\t\t\t\tbody {\n\t\t\t\t\t--bg: #222;\n\t\t\t\t\t--fg: #ddd;\n\t\t\t\t\t--divider: #666;\n\t\t\t\t}\n\t\t\t}\n\t\t</style>\n\t</head>\n\t<body>\n\t\t<div class=\"error\">\n\t\t\t<span class=\"status\">" + status + "</span>\n\t\t\t<div class=\"message\">\n\t\t\t\t<h1>" + message + "</h1>\n\t\t\t</div>\n\t\t</div>\n\t</body>\n</html>\n"
23
+ },
24
+ version_hash: "dqmzdd"
25
+ };
26
+
27
+ export async function get_hooks() {
28
+ let handle;
29
+ let handleFetch;
30
+ let handleError;
31
+ let handleValidationError;
32
+ let init;
33
+
34
+
35
+ let reroute;
36
+ let transport;
37
+
38
+
39
+ return {
40
+ handle,
41
+ handleFetch,
42
+ handleError,
43
+ handleValidationError,
44
+ init,
45
+ reroute,
46
+ transport
47
+ };
48
+ }
49
+
50
+ export { set_assets, set_building, set_manifest, set_prerendering, set_private_env, set_public_env, set_read_implementation, set_safe_public_env };
.svelte-kit/non-ambient.d.ts ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ // this file is generated — do not edit it
3
+
4
+
5
+ declare module "svelte/elements" {
6
+ export interface HTMLAttributes<T> {
7
+ 'data-sveltekit-keepfocus'?: true | '' | 'off' | undefined | null;
8
+ 'data-sveltekit-noscroll'?: true | '' | 'off' | undefined | null;
9
+ 'data-sveltekit-preload-code'?:
10
+ | true
11
+ | ''
12
+ | 'eager'
13
+ | 'viewport'
14
+ | 'hover'
15
+ | 'tap'
16
+ | 'off'
17
+ | undefined
18
+ | null;
19
+ 'data-sveltekit-preload-data'?: true | '' | 'hover' | 'tap' | 'off' | undefined | null;
20
+ 'data-sveltekit-reload'?: true | '' | 'off' | undefined | null;
21
+ 'data-sveltekit-replacestate'?: true | '' | 'off' | undefined | null;
22
+ }
23
+ }
24
+
25
+ export {};
.svelte-kit/tsconfig.json ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "compilerOptions": {
3
+ "paths": {
4
+ "$lib": [
5
+ "../src/lib"
6
+ ],
7
+ "$lib/*": [
8
+ "../src/lib/*"
9
+ ],
10
+ "$app/types": [
11
+ "./types/index.d.ts"
12
+ ]
13
+ },
14
+ "rootDirs": [
15
+ "..",
16
+ "./types"
17
+ ],
18
+ "verbatimModuleSyntax": true,
19
+ "isolatedModules": true,
20
+ "lib": [
21
+ "esnext",
22
+ "DOM",
23
+ "DOM.Iterable"
24
+ ],
25
+ "moduleResolution": "bundler",
26
+ "module": "esnext",
27
+ "noEmit": true,
28
+ "target": "esnext"
29
+ },
30
+ "include": [
31
+ "ambient.d.ts",
32
+ "non-ambient.d.ts",
33
+ "./types/**/$types.d.ts",
34
+ "../vite.config.js",
35
+ "../vite.config.ts",
36
+ "../src/**/*.js",
37
+ "../src/**/*.ts",
38
+ "../src/**/*.svelte",
39
+ "../tests/**/*.js",
40
+ "../tests/**/*.ts",
41
+ "../tests/**/*.svelte"
42
+ ],
43
+ "exclude": [
44
+ "../node_modules/**",
45
+ "../src/service-worker.js",
46
+ "../src/service-worker/**/*.js",
47
+ "../src/service-worker.ts",
48
+ "../src/service-worker/**/*.ts",
49
+ "../src/service-worker.d.ts",
50
+ "../src/service-worker/**/*.d.ts"
51
+ ]
52
+ }
.svelte-kit/types/index.d.ts ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ type DynamicRoutes = {
2
+
3
+ };
4
+
5
+ type Layouts = {
6
+ "/": undefined
7
+ };
8
+
9
+ export type RouteId = "/";
10
+
11
+ export type RouteParams<T extends RouteId> = T extends keyof DynamicRoutes ? DynamicRoutes[T] : Record<string, never>;
12
+
13
+ export type LayoutParams<T extends RouteId> = Layouts[T] | Record<string, never>;
14
+
15
+ export type Pathname = "/";
16
+
17
+ export type ResolvedPathname = `${"" | `/${string}`}${Pathname}`;
18
+
19
+ export type Asset = "/robots.txt";
.svelte-kit/types/route_meta_data.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "/": [
3
+ "src/routes/+layout.js",
4
+ "src/routes/+layout.js"
5
+ ]
6
+ }
.svelte-kit/types/src/routes/$types.d.ts ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import type * as Kit from '@sveltejs/kit';
2
+
3
+ type Expand<T> = T extends infer O ? { [K in keyof O]: O[K] } : never;
4
+ // @ts-ignore
5
+ type MatcherParam<M> = M extends (param : string) => param is infer U ? U extends string ? U : string : string;
6
+ type RouteParams = { };
7
+ type RouteId = '/';
8
+ type MaybeWithVoid<T> = {} extends T ? T | void : T;
9
+ export type RequiredKeys<T> = { [K in keyof T]-?: {} extends { [P in K]: T[K] } ? never : K; }[keyof T];
10
+ type OutputDataShape<T> = MaybeWithVoid<Omit<App.PageData, RequiredKeys<T>> & Partial<Pick<App.PageData, keyof T & keyof App.PageData>> & Record<string, any>>
11
+ type EnsureDefined<T> = T extends null | undefined ? {} : T;
12
+ type OptionalUnion<U extends Record<string, any>, A extends keyof U = U extends U ? keyof U : never> = U extends unknown ? { [P in Exclude<A, keyof U>]?: never } & U : never;
13
+ export type Snapshot<T = any> = Kit.Snapshot<T>;
14
+ type PageParentData = EnsureDefined<LayoutData>;
15
+ type LayoutRouteId = RouteId | "/" | null
16
+ type LayoutParams = RouteParams & { }
17
+ type LayoutParentData = EnsureDefined<{}>;
18
+
19
+ export type PageServerData = null;
20
+ export type PageData = Expand<PageParentData>;
21
+ export type PageProps = { params: RouteParams; data: PageData }
22
+ export type LayoutServerData = null;
23
+ export type LayoutLoad<OutputData extends OutputDataShape<LayoutParentData> = OutputDataShape<LayoutParentData>> = Kit.Load<LayoutParams, LayoutServerData, LayoutParentData, OutputData, LayoutRouteId>;
24
+ export type LayoutLoadEvent = Parameters<LayoutLoad>[0];
25
+ export type LayoutData = Expand<Omit<LayoutParentData, keyof LayoutParentData & EnsureDefined<LayoutServerData>> & OptionalUnion<EnsureDefined<LayoutParentData & EnsureDefined<LayoutServerData>>>>;
26
+ export type LayoutProps = { params: LayoutParams; data: LayoutData; children: import("svelte").Snippet }
package.json CHANGED
@@ -21,7 +21,8 @@
21
  "svelte": "^5.0.0",
22
  "svelte-check": "^4.0.0",
23
  "typescript": "^5.0.0",
24
- "vite": "^7.0.4"
 
25
  },
26
  "pnpm": {
27
  "onlyBuiltDependencies": [
@@ -29,4 +30,4 @@
29
  ]
30
  },
31
  "packageManager": "pnpm@10.11.1+sha512.e519b9f7639869dc8d5c3c5dfef73b3f091094b0a006d7317353c72b124e80e1afd429732e28705ad6bfa1ee879c1fce46c128ccebd3192101f43dd67c667912"
32
- }
 
21
  "svelte": "^5.0.0",
22
  "svelte-check": "^4.0.0",
23
  "typescript": "^5.0.0",
24
+ "vite": "^7.0.4",
25
+ "vite-plugin-devtools-json": "^1.0.0"
26
  },
27
  "pnpm": {
28
  "onlyBuiltDependencies": [
 
30
  ]
31
  },
32
  "packageManager": "pnpm@10.11.1+sha512.e519b9f7639869dc8d5c3c5dfef73b3f091094b0a006d7317353c72b124e80e1afd429732e28705ad6bfa1ee879c1fce46c128ccebd3192101f43dd67c667912"
33
+ }
pnpm-lock.yaml CHANGED
@@ -32,6 +32,9 @@ importers:
32
  vite:
33
  specifier: ^7.0.4
34
  version: 7.0.6
 
 
 
35
 
36
  packages:
37
 
@@ -513,6 +516,15 @@ packages:
513
  engines: {node: '>=14.17'}
514
  hasBin: true
515
 
 
 
 
 
 
 
 
 
 
516
  vite@7.0.6:
517
  resolution: {integrity: sha512-MHFiOENNBd+Bd9uvc8GEsIzdkn1JxMmEeYX35tI3fv0sJBUTfW5tQsoaOwuY4KhBI09A3dUJ/DXf2yxPVPUceg==}
518
  engines: {node: ^20.19.0 || >=22.12.0}
@@ -958,6 +970,13 @@ snapshots:
958
 
959
  typescript@5.9.2: {}
960
 
 
 
 
 
 
 
 
961
  vite@7.0.6:
962
  dependencies:
963
  esbuild: 0.25.8
 
32
  vite:
33
  specifier: ^7.0.4
34
  version: 7.0.6
35
+ vite-plugin-devtools-json:
36
+ specifier: ^1.0.0
37
+ version: 1.0.0(vite@7.0.6)
38
 
39
  packages:
40
 
 
516
  engines: {node: '>=14.17'}
517
  hasBin: true
518
 
519
+ uuid@11.1.0:
520
+ resolution: {integrity: sha512-0/A9rDy9P7cJ+8w1c9WD9V//9Wj15Ce2MPz8Ri6032usz+NfePxx5AcN3bN+r6ZL6jEo066/yNYB3tn4pQEx+A==}
521
+ hasBin: true
522
+
523
+ vite-plugin-devtools-json@1.0.0:
524
+ resolution: {integrity: sha512-MobvwqX76Vqt/O4AbnNMNWoXWGrKUqZbphCUle/J2KXH82yKQiunOeKnz/nqEPosPsoWWPP9FtNuPBSYpiiwkw==}
525
+ peerDependencies:
526
+ vite: ^5.0.0 || ^6.0.0 || ^7.0.0
527
+
528
  vite@7.0.6:
529
  resolution: {integrity: sha512-MHFiOENNBd+Bd9uvc8GEsIzdkn1JxMmEeYX35tI3fv0sJBUTfW5tQsoaOwuY4KhBI09A3dUJ/DXf2yxPVPUceg==}
530
  engines: {node: ^20.19.0 || >=22.12.0}
 
970
 
971
  typescript@5.9.2: {}
972
 
973
+ uuid@11.1.0: {}
974
+
975
+ vite-plugin-devtools-json@1.0.0(vite@7.0.6):
976
+ dependencies:
977
+ uuid: 11.1.0
978
+ vite: 7.0.6
979
+
980
  vite@7.0.6:
981
  dependencies:
982
  esbuild: 0.25.8
src/lib/parsers.ts CHANGED
@@ -69,11 +69,13 @@ export class BinaryReader {
69
  }
70
 
71
  readHash(): MerkleHash {
72
- const u64_0 = this.readUint64LE();
73
- const u64_1 = this.readUint64LE();
74
- const u64_2 = this.readUint64LE();
75
- const u64_3 = this.readUint64LE();
76
- return { data: [u64_0, u64_1, u64_2, u64_3] };
 
 
77
  }
78
 
79
  readString(length: number): string {
@@ -108,23 +110,27 @@ function arraysEqual(a: Uint8Array, b: Uint8Array): boolean {
108
 
109
  function isBookendHash(hash: MerkleHash): boolean {
110
  // Bookend hash is all 0xFF bytes (all 64-bit values should be 0xFFFFFFFFFFFFFFFF)
111
- return hash.data.every((value) => value === 0xffffffffffffffffn);
 
112
  }
113
 
114
  export function formatHash(hash: MerkleHash): string {
115
- // Convert each 64-bit integer to little-endian byte representation
116
- return hash.data
117
- .map((value) => {
118
- // Convert bigint to 8 bytes in little-endian order
119
- const bytes = [];
120
- let temp = value;
121
- for (let i = 0; i < 8; i++) {
122
- bytes.push(Number(temp & 0xffn));
123
- temp = temp >> 8n;
124
- }
125
- return bytes.map((b) => b.toString(16).padStart(2, "0")).join("");
126
- })
 
127
  .join("");
 
 
128
  }
129
 
130
  // File type detection removed - type is now specified by user selection
 
69
  }
70
 
71
  readHash(): MerkleHash {
72
+ const data = this.readBytes(32);
73
+ // const u64_0 = this.readUint64LE();
74
+ // const u64_1 = this.readUint64LE();
75
+ // const u64_2 = this.readUint64LE();
76
+ // const u64_3 = this.readUint64LE();
77
+ return { data };
78
+ // return { data: [u64_0, u64_1, u64_2, u64_3] };
79
  }
80
 
81
  readString(length: number): string {
 
110
 
111
  function isBookendHash(hash: MerkleHash): boolean {
112
  // Bookend hash is all 0xFF bytes (all 64-bit values should be 0xFFFFFFFFFFFFFFFF)
113
+ return hash.data.every((value) => value === 0xff);
114
+ // return hash.data.every((value) => value === 0xffffffffffffffffn);
115
  }
116
 
117
  export function formatHash(hash: MerkleHash): string {
118
+ // For every 8 bytes in hash.data, flip the order of the 8 bytes,
119
+ // concatenate each new flipped slice, then convert the result array to a hexadecimal string.
120
+ if (!hash || !hash.data || hash.data.length !== 32) return "";
121
+ const flipped = new Uint8Array(32);
122
+ for (let i = 0; i < 4; i++) {
123
+ const start = i * 8;
124
+ for (let j = 0; j < 8; j++) {
125
+ flipped[start + j] = hash.data[start + (7 - j)];
126
+ }
127
+ }
128
+ // Convert to hex string
129
+ return Array.from(flipped)
130
+ .map((b) => b.toString(16).padStart(2, "0"))
131
  .join("");
132
+
133
+ return "";
134
  }
135
 
136
  // File type detection removed - type is now specified by user selection
src/lib/types.ts CHANGED
@@ -1,7 +1,8 @@
1
  // Type definitions for xorb and shard file formats
2
 
3
  export interface MerkleHash {
4
- data: [bigint, bigint, bigint, bigint]; // 4 x 64-bit unsigned integers (32 bytes total)
 
5
  }
6
 
7
  // === XORB Types ===
 
1
  // Type definitions for xorb and shard file formats
2
 
3
  export interface MerkleHash {
4
+ data: Uint8Array; // 4 x 64-bit unsigned integers (32 bytes total)
5
+ // data: [bigint, bigint, bigint, bigint]; // 4 x 64-bit unsigned integers (32 bytes total)
6
  }
7
 
8
  // === XORB Types ===
vite.config.ts CHANGED
@@ -1,6 +1,7 @@
 
1
  import { sveltekit } from '@sveltejs/kit/vite';
2
  import { defineConfig } from 'vite';
3
 
4
  export default defineConfig({
5
- plugins: [sveltekit()]
6
  });
 
1
+ import devtoolsJson from 'vite-plugin-devtools-json';
2
  import { sveltekit } from '@sveltejs/kit/vite';
3
  import { defineConfig } from 'vite';
4
 
5
  export default defineConfig({
6
+ plugins: [sveltekit(), devtoolsJson()]
7
  });