wherever-dev 0.2.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.
- package/LICENSE +21 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1264 -0
- package/dist/index.js.map +1 -0
- package/dist/protocol.d.ts +157 -0
- package/dist/protocol.d.ts.map +1 -0
- package/dist/protocol.js +2 -0
- package/dist/protocol.js.map +1 -0
- package/dist/session-pool.d.ts +119 -0
- package/dist/session-pool.d.ts.map +1 -0
- package/dist/session-pool.js +909 -0
- package/dist/session-pool.js.map +1 -0
- package/dist/session-types.d.ts +44 -0
- package/dist/session-types.d.ts.map +1 -0
- package/dist/session-types.js +2 -0
- package/dist/session-types.js.map +1 -0
- package/package.json +42 -0
- package/public/_app/env.js +1 -0
- package/public/_app/immutable/assets/0.DvZxoQjW.css +2754 -0
- package/public/_app/immutable/chunks/B5WJGjcR.js +23 -0
- package/public/_app/immutable/chunks/B5WJGjcR.js.map +1 -0
- package/public/_app/immutable/chunks/BEWoN05F.js +110 -0
- package/public/_app/immutable/chunks/BEWoN05F.js.map +1 -0
- package/public/_app/immutable/chunks/BqMutrfe.js +2129 -0
- package/public/_app/immutable/chunks/BqMutrfe.js.map +1 -0
- package/public/_app/immutable/chunks/DFxBx2vA.js +897 -0
- package/public/_app/immutable/chunks/DFxBx2vA.js.map +1 -0
- package/public/_app/immutable/chunks/DiYtJzYU.js +396 -0
- package/public/_app/immutable/chunks/DiYtJzYU.js.map +1 -0
- package/public/_app/immutable/chunks/_lppinj8.js +879 -0
- package/public/_app/immutable/chunks/_lppinj8.js.map +1 -0
- package/public/_app/immutable/chunks/rMw82gDs.js +3048 -0
- package/public/_app/immutable/chunks/rMw82gDs.js.map +1 -0
- package/public/_app/immutable/entry/app.BFki2czn.js +309 -0
- package/public/_app/immutable/entry/app.BFki2czn.js.map +1 -0
- package/public/_app/immutable/entry/start.BceUuq27.js +6 -0
- package/public/_app/immutable/entry/start.BceUuq27.js.map +1 -0
- package/public/_app/immutable/nodes/0.BzvDOlXz.js +546 -0
- package/public/_app/immutable/nodes/0.BzvDOlXz.js.map +1 -0
- package/public/_app/immutable/nodes/1.DMtW3tA5.js +24 -0
- package/public/_app/immutable/nodes/1.DMtW3tA5.js.map +1 -0
- package/public/_app/immutable/nodes/2.CnZp8abw.js +5152 -0
- package/public/_app/immutable/nodes/2.CnZp8abw.js.map +1 -0
- package/public/_app/version.json +1 -0
- package/public/icon.png +0 -0
- package/public/index.html +84 -0
- package/public/logo.svg +52 -0
- package/public/pwa/apple-touch-icon.png +0 -0
- package/public/pwa/favicon-192.png +0 -0
- package/public/pwa/favicon-512.png +0 -0
- package/public/pwa/favicon.ico +0 -0
- package/public/pwa/favicon.png +0 -0
- package/public/pwa/manifest.webmanifest +27 -0
- package/public/service-worker.js +305 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { c as stores, p as page$2 } from "./BqMutrfe.js";
|
|
2
|
+
const page$1 = {
|
|
3
|
+
get error() {
|
|
4
|
+
return page$2.error;
|
|
5
|
+
},
|
|
6
|
+
get state() {
|
|
7
|
+
return page$2.state;
|
|
8
|
+
},
|
|
9
|
+
get status() {
|
|
10
|
+
return page$2.status;
|
|
11
|
+
},
|
|
12
|
+
get url() {
|
|
13
|
+
return page$2.url;
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
({
|
|
17
|
+
check: stores.updated.check
|
|
18
|
+
});
|
|
19
|
+
const page = page$1;
|
|
20
|
+
export {
|
|
21
|
+
page as p
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=B5WJGjcR.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"B5WJGjcR.js","sources":["../../../../../../../node_modules/.pnpm/@sveltejs+kit@2.60.1_@sveltejs+vite-plugin-svelte@6.2.4_svelte@5.55.9_vite@7.3.3_@types_ac1ec6d1aabbf669ecff7a76377acaa9/node_modules/@sveltejs/kit/src/runtime/app/state/client.js","../../../../../../../node_modules/.pnpm/@sveltejs+kit@2.60.1_@sveltejs+vite-plugin-svelte@6.2.4_svelte@5.55.9_vite@7.3.3_@types_ac1ec6d1aabbf669ecff7a76377acaa9/node_modules/@sveltejs/kit/src/runtime/app/state/index.js"],"sourcesContent":["import {\n\tpage as _page,\n\tnavigating as _navigating,\n\tupdated as _updated\n} from '../../client/state.svelte.js';\nimport { stores } from '../../client/client.js';\n\nexport const page = {\n\tget data() {\n\t\treturn _page.data;\n\t},\n\tget error() {\n\t\treturn _page.error;\n\t},\n\tget form() {\n\t\treturn _page.form;\n\t},\n\tget params() {\n\t\treturn _page.params;\n\t},\n\tget route() {\n\t\treturn _page.route;\n\t},\n\tget state() {\n\t\treturn _page.state;\n\t},\n\tget status() {\n\t\treturn _page.status;\n\t},\n\tget url() {\n\t\treturn _page.url;\n\t}\n};\n\nexport const navigating = {\n\tget from() {\n\t\treturn _navigating.current ? _navigating.current.from : null;\n\t},\n\tget to() {\n\t\treturn _navigating.current ? _navigating.current.to : null;\n\t},\n\tget type() {\n\t\treturn _navigating.current ? _navigating.current.type : null;\n\t},\n\tget willUnload() {\n\t\treturn _navigating.current ? _navigating.current.willUnload : null;\n\t},\n\tget delta() {\n\t\treturn _navigating.current ? _navigating.current.delta : null;\n\t},\n\tget complete() {\n\t\treturn _navigating.current ? _navigating.current.complete : null;\n\t}\n};\n\nObject.defineProperty(navigating, 'current', {\n\tget() {\n\t\t// between 2.12.0 and 2.12.1 `navigating.current` existed\n\t\tthrow new Error('Replace navigating.current.<prop> with navigating.<prop>');\n\t}\n});\n\nexport const updated = {\n\tget current() {\n\t\treturn _updated.current;\n\t},\n\tcheck: stores.updated.check\n};\n","import {\n\tpage as client_page,\n\tnavigating as client_navigating,\n\tupdated as client_updated\n} from './client.js';\nimport {\n\tpage as server_page,\n\tnavigating as server_navigating,\n\tupdated as server_updated\n} from './server.js';\nimport { BROWSER } from 'esm-env';\n\n/**\n * A read-only reactive object with information about the current page, serving several use cases:\n * - retrieving the combined `data` of all pages/layouts anywhere in your component tree (also see [loading data](https://svelte.dev/docs/kit/load))\n * - retrieving the current value of the `form` prop anywhere in your component tree (also see [form actions](https://svelte.dev/docs/kit/form-actions))\n * - retrieving the page state that was set through `goto`, `pushState` or `replaceState` (also see [goto](https://svelte.dev/docs/kit/$app-navigation#goto) and [shallow routing](https://svelte.dev/docs/kit/shallow-routing))\n * - retrieving metadata such as the URL you're on, the current route and its parameters, and whether or not there was an error\n *\n * ```svelte\n * <!--- file: +layout.svelte --->\n * <script>\n * \timport { page } from '$app/state';\n * </script>\n *\n * <p>Currently at {page.url.pathname}</p>\n *\n * {#if page.error}\n * \t<span class=\"red\">Problem detected</span>\n * {:else}\n * \t<span class=\"small\">All systems operational</span>\n * {/if}\n * ```\n *\n * Changes to `page` are available exclusively with runes. (The legacy reactivity syntax will not reflect any changes)\n *\n * ```svelte\n * <!--- file: +page.svelte --->\n * <script>\n * \timport { page } from '$app/state';\n * \tconst id = $derived(page.params.id); // This will correctly update id for usage on this page\n * \t$: badId = page.params.id; // Do not use; will never update after initial load\n * </script>\n * ```\n *\n * On the server, values can only be read during rendering (in other words _not_ in e.g. `load` functions). In the browser, the values can be read at any time.\n *\n * @type {import('@sveltejs/kit').Page}\n */\nexport const page = BROWSER ? client_page : server_page;\n\n/**\n * A read-only object representing an in-progress navigation, with `from`, `to`, `type` and (if `type === 'popstate'`) `delta` properties.\n * Values are `null` when no navigation is occurring, or during server rendering.\n * @type {import('@sveltejs/kit').Navigation | { from: null, to: null, type: null, willUnload: null, delta: null, complete: null }}\n */\n// @ts-expect-error\nexport const navigating = BROWSER ? client_navigating : server_navigating;\n\n/**\n * A read-only reactive value that's initially `false`. If [`version.pollInterval`](https://svelte.dev/docs/kit/configuration#version) is a non-zero value, SvelteKit will poll for new versions of the app and update `current` to `true` when it detects one. `updated.check()` will force an immediate check, regardless of polling.\n * @type {{ get current(): boolean; check(): Promise<boolean>; }}\n */\nexport const updated = BROWSER ? client_updated : server_updated;\n"],"names":["page","_page","client_page"],"mappings":";AAOO,MAAMA,SAAO;AAAA,EAInB,IAAI,QAAQ;AACX,WAAOC,OAAM;AAAA,EACd;AAAA,EAUA,IAAI,QAAQ;AACX,WAAOA,OAAM;AAAA,EACd;AAAA,EACA,IAAI,SAAS;AACZ,WAAOA,OAAM;AAAA,EACd;AAAA,EACA,IAAI,MAAM;AACT,WAAOA,OAAM;AAAA,EACd;AACD;AAAA,CA8BuB;AAAA,EAItB,OAAO,OAAO,QAAQ;AACvB;AClBY,MAAC,OAAiBC;","x_google_ignoreList":[0,1]}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { X as component_context, aa as effect, aR as render_effect, bd as untrack, J as active_effect, e as DESTROYING, S as STATE_SYMBOL } from "./rMw82gDs.js";
|
|
2
|
+
function is_bound_this(bound_value, element_or_component) {
|
|
3
|
+
return bound_value === element_or_component || bound_value?.[STATE_SYMBOL] === element_or_component;
|
|
4
|
+
}
|
|
5
|
+
function bind_this(element_or_component = {}, update, get_value, get_parts) {
|
|
6
|
+
var component_effect = (
|
|
7
|
+
/** @type {ComponentContext} */
|
|
8
|
+
component_context.r
|
|
9
|
+
);
|
|
10
|
+
var parent = (
|
|
11
|
+
/** @type {Effect} */
|
|
12
|
+
active_effect
|
|
13
|
+
);
|
|
14
|
+
effect(() => {
|
|
15
|
+
var old_parts;
|
|
16
|
+
var parts;
|
|
17
|
+
render_effect(() => {
|
|
18
|
+
old_parts = parts;
|
|
19
|
+
parts = [];
|
|
20
|
+
untrack(() => {
|
|
21
|
+
if (!is_bound_this(get_value(...parts), element_or_component)) {
|
|
22
|
+
update(element_or_component, ...parts);
|
|
23
|
+
if (old_parts && is_bound_this(get_value(...old_parts), element_or_component)) {
|
|
24
|
+
update(null, ...old_parts);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
return () => {
|
|
30
|
+
let p = parent;
|
|
31
|
+
while (p !== component_effect && p.parent !== null && p.parent.f & DESTROYING) {
|
|
32
|
+
p = p.parent;
|
|
33
|
+
}
|
|
34
|
+
const teardown = () => {
|
|
35
|
+
if (parts && is_bound_this(get_value(...parts), element_or_component)) {
|
|
36
|
+
update(null, ...parts);
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
const original_teardown = p.teardown;
|
|
40
|
+
p.teardown = () => {
|
|
41
|
+
teardown();
|
|
42
|
+
original_teardown?.();
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
});
|
|
46
|
+
return element_or_component;
|
|
47
|
+
}
|
|
48
|
+
const scriptRel = "modulepreload";
|
|
49
|
+
const assetsURL = function(dep, importerUrl) {
|
|
50
|
+
return new URL(dep, importerUrl).href;
|
|
51
|
+
};
|
|
52
|
+
const seen = {};
|
|
53
|
+
const __vitePreload = function preload(baseModule, deps, importerUrl) {
|
|
54
|
+
let promise = Promise.resolve();
|
|
55
|
+
if (deps && deps.length > 0) {
|
|
56
|
+
let allSettled = function(promises$2) {
|
|
57
|
+
return Promise.all(promises$2.map((p) => Promise.resolve(p).then((value$1) => ({
|
|
58
|
+
status: "fulfilled",
|
|
59
|
+
value: value$1
|
|
60
|
+
}), (reason) => ({
|
|
61
|
+
status: "rejected",
|
|
62
|
+
reason
|
|
63
|
+
}))));
|
|
64
|
+
};
|
|
65
|
+
const links = document.getElementsByTagName("link");
|
|
66
|
+
const cspNonceMeta = document.querySelector("meta[property=csp-nonce]");
|
|
67
|
+
const cspNonce = cspNonceMeta?.nonce || cspNonceMeta?.getAttribute("nonce");
|
|
68
|
+
promise = allSettled(deps.map((dep) => {
|
|
69
|
+
dep = assetsURL(dep, importerUrl);
|
|
70
|
+
if (dep in seen) return;
|
|
71
|
+
seen[dep] = true;
|
|
72
|
+
const isCss = dep.endsWith(".css");
|
|
73
|
+
const cssSelector = isCss ? '[rel="stylesheet"]' : "";
|
|
74
|
+
if (!!importerUrl) for (let i$1 = links.length - 1; i$1 >= 0; i$1--) {
|
|
75
|
+
const link$1 = links[i$1];
|
|
76
|
+
if (link$1.href === dep && (!isCss || link$1.rel === "stylesheet")) return;
|
|
77
|
+
}
|
|
78
|
+
else if (document.querySelector(`link[href="${dep}"]${cssSelector}`)) return;
|
|
79
|
+
const link = document.createElement("link");
|
|
80
|
+
link.rel = isCss ? "stylesheet" : scriptRel;
|
|
81
|
+
if (!isCss) link.as = "script";
|
|
82
|
+
link.crossOrigin = "";
|
|
83
|
+
link.href = dep;
|
|
84
|
+
if (cspNonce) link.setAttribute("nonce", cspNonce);
|
|
85
|
+
document.head.appendChild(link);
|
|
86
|
+
if (isCss) return new Promise((res, rej) => {
|
|
87
|
+
link.addEventListener("load", res);
|
|
88
|
+
link.addEventListener("error", () => rej(/* @__PURE__ */ new Error(`Unable to preload CSS for ${dep}`)));
|
|
89
|
+
});
|
|
90
|
+
}));
|
|
91
|
+
}
|
|
92
|
+
function handlePreloadError(err$2) {
|
|
93
|
+
const e$1 = new Event("vite:preloadError", { cancelable: true });
|
|
94
|
+
e$1.payload = err$2;
|
|
95
|
+
window.dispatchEvent(e$1);
|
|
96
|
+
if (!e$1.defaultPrevented) throw err$2;
|
|
97
|
+
}
|
|
98
|
+
return promise.then((res) => {
|
|
99
|
+
for (const item of res || []) {
|
|
100
|
+
if (item.status !== "rejected") continue;
|
|
101
|
+
handlePreloadError(item.reason);
|
|
102
|
+
}
|
|
103
|
+
return baseModule().catch(handlePreloadError);
|
|
104
|
+
});
|
|
105
|
+
};
|
|
106
|
+
export {
|
|
107
|
+
__vitePreload as _,
|
|
108
|
+
bind_this as b
|
|
109
|
+
};
|
|
110
|
+
//# sourceMappingURL=BEWoN05F.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BEWoN05F.js","sources":["../../../../../../../node_modules/.pnpm/svelte@5.55.9/node_modules/svelte/src/internal/client/dom/elements/bindings/this.js"],"sourcesContent":["/** @import { ComponentContext, Effect } from '#client' */\nimport { DESTROYING, STATE_SYMBOL } from '#client/constants';\nimport { component_context } from '../../../context.js';\nimport { effect, render_effect } from '../../../reactivity/effects.js';\nimport { active_effect, untrack } from '../../../runtime.js';\n\n/**\n * @param {any} bound_value\n * @param {Element} element_or_component\n * @returns {boolean}\n */\nfunction is_bound_this(bound_value, element_or_component) {\n\treturn (\n\t\tbound_value === element_or_component || bound_value?.[STATE_SYMBOL] === element_or_component\n\t);\n}\n\n/**\n * @param {any} element_or_component\n * @param {(value: unknown, ...parts: unknown[]) => void} update\n * @param {(...parts: unknown[]) => unknown} get_value\n * @param {() => unknown[]} [get_parts] Set if the this binding is used inside an each block,\n * \t\t\t\t\t\t\t\t\t\treturns all the parts of the each block context that are used in the expression\n * @returns {void}\n */\nexport function bind_this(element_or_component = {}, update, get_value, get_parts) {\n\tvar component_effect = /** @type {ComponentContext} */ (component_context).r;\n\tvar parent = /** @type {Effect} */ (active_effect);\n\n\teffect(() => {\n\t\t/** @type {unknown[]} */\n\t\tvar old_parts;\n\n\t\t/** @type {unknown[]} */\n\t\tvar parts;\n\n\t\trender_effect(() => {\n\t\t\told_parts = parts;\n\t\t\t// We only track changes to the parts, not the value itself to avoid unnecessary reruns.\n\t\t\tparts = get_parts?.() || [];\n\n\t\t\tuntrack(() => {\n\t\t\t\tif (!is_bound_this(get_value(...parts), element_or_component)) {\n\t\t\t\t\tupdate(element_or_component, ...parts);\n\t\t\t\t\t// If this is an effect rerun (cause: each block context changes), then nullify the binding at\n\t\t\t\t\t// the previous position if it isn't already taken over by a different effect.\n\t\t\t\t\tif (old_parts && is_bound_this(get_value(...old_parts), element_or_component)) {\n\t\t\t\t\t\tupdate(null, ...old_parts);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\n\t\treturn () => {\n\t\t\t// When the bind:this effect is destroyed, we go up the effect parent chain until we find the last parent effect that is destroyed,\n\t\t\t// or the effect containing the component bind:this is in (whichever comes first). That way we can time the nulling of the binding\n\t\t\t// as close to user/developer expectation as possible.\n\t\t\t// TODO Svelte 6: Decide if we want to keep this logic or just always null the binding in the component effect's teardown\n\t\t\t// (which would be simpler, but less intuitive in some cases, and breaks the `ondestroy-before-cleanup` test)\n\t\t\tlet p = parent;\n\t\t\twhile (p !== component_effect && p.parent !== null && p.parent.f & DESTROYING) {\n\t\t\t\tp = p.parent;\n\t\t\t}\n\t\t\tconst teardown = () => {\n\t\t\t\tif (parts && is_bound_this(get_value(...parts), element_or_component)) {\n\t\t\t\t\tupdate(null, ...parts);\n\t\t\t\t}\n\t\t\t};\n\t\t\tconst original_teardown = p.teardown;\n\t\t\tp.teardown = () => {\n\t\t\t\tteardown();\n\t\t\t\toriginal_teardown?.();\n\t\t\t};\n\t\t};\n\t});\n\n\treturn element_or_component;\n}\n"],"names":[],"mappings":";AAWA,SAAS,cAAc,aAAa,sBAAsB;AACzD,SACC,gBAAgB,wBAAwB,cAAc,YAAY,MAAM;AAE1E;AAUO,SAAS,UAAU,uBAAuB,CAAA,GAAI,QAAQ,WAAW,WAAW;AAClF,MAAI;AAAA;AAAA,IAAoD,kBAAmB;AAAA;AAC3E,MAAI;AAAA;AAAA,IAAgC;AAAA;AAEpC,SAAO,MAAM;AAEZ,QAAI;AAGJ,QAAI;AAEJ,kBAAc,MAAM;AACnB,kBAAY;AAEZ,cAAyB,CAAA;AAEzB,cAAQ,MAAM;AACb,YAAI,CAAC,cAAc,UAAU,GAAG,KAAK,GAAG,oBAAoB,GAAG;AAC9D,iBAAO,sBAAsB,GAAG,KAAK;AAGrC,cAAI,aAAa,cAAc,UAAU,GAAG,SAAS,GAAG,oBAAoB,GAAG;AAC9E,mBAAO,MAAM,GAAG,SAAS;AAAA,UAC1B;AAAA,QACD;AAAA,MACD,CAAC;AAAA,IACF,CAAC;AAED,WAAO,MAAM;AAMZ,UAAI,IAAI;AACR,aAAO,MAAM,oBAAoB,EAAE,WAAW,QAAQ,EAAE,OAAO,IAAI,YAAY;AAC9E,YAAI,EAAE;AAAA,MACP;AACA,YAAM,WAAW,MAAM;AACtB,YAAI,SAAS,cAAc,UAAU,GAAG,KAAK,GAAG,oBAAoB,GAAG;AACtE,iBAAO,MAAM,GAAG,KAAK;AAAA,QACtB;AAAA,MACD;AACA,YAAM,oBAAoB,EAAE;AAC5B,QAAE,WAAW,MAAM;AAClB,iBAAQ;AACR,4BAAiB;AAAA,MAClB;AAAA,IACD;AAAA,EACD,CAAC;AAED,SAAO;AACR;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[0]}
|