Compare commits

...

16 Commits

Author SHA1 Message Date
eewing c7f54ef52e Enhance training page with video link support. Added a conditional link to open external video URLs if available, improving user access to training content. Updated aria-label for better accessibility.
CI / build (push) Has been skipped
CI / deploy (push) Successful in 1m9s
2026-03-18 08:15:46 -05:00
eewing 50d8fd326f Refactor training page and admin access control. Updated user role checks to include 'training_admin' for permissions, removed unnecessary admin checks from the training page, and added video deletion functionality with appropriate error handling. Improved UI for video management actions.
CI / build (push) Has been skipped
CI / deploy (push) Successful in 1m13s
2026-03-18 08:12:47 -05:00
eewing ab226470a1 Enhance training route and admin functionality. Added new admin route for training, updated type definitions to include admin checks, and modified training page to conditionally display admin link based on user permissions. Improved data handling for training videos and user roles.
CI / build (push) Has been skipped
CI / deploy (push) Successful in 1m5s
2026-03-18 07:59:13 -05:00
eewing 89f9f04504 Add custom scrollbar styles for app shell page view
CI / build (push) Has been skipped
CI / deploy (push) Successful in 1m10s
Implemented Shadcn-style scrollbars for scrollable areas in the app shell. Adjusted scrollbar width and colors for both light and dark themes to enhance user experience and visual consistency.
2026-03-17 09:21:47 -05:00
eewing a37575d810 Update training page to support YouTube video links. Refactored video upload handling to accept YouTube URLs, improved layout for better user experience, and added new route type definitions for training videos. Enhanced video display with embedded player support.
CI / build (push) Has been skipped
CI / deploy (push) Successful in 1m8s
2026-03-17 09:13:27 -05:00
eewing 59056d3f41 Enhance routing and type definitions for training page. Added new training route and updated related components, including navigation links and user data handling. Refactored layout for improved user experience and consistency across site pages.
CI / build (push) Has been skipped
CI / deploy (push) Successful in 1m31s
2026-03-16 14:05:11 -05:00
eewing 60ac4a8f79 Refactor login page to support user registration. Enhanced form handling by adding name and password confirmation fields, improved error messaging, and updated button labels for better user experience. Adjusted internal server options to reflect changes in form data structure.
CI / build (push) Has been skipped
CI / deploy (push) Successful in 1m52s
2026-02-26 15:11:24 -06:00
eewing 790357cc13 Update notifications page layout and internal server version hash. Added a navigation button to return to the base page and updated the version hash for server options.
CI / build (push) Has been skipped
CI / deploy (push) Successful in 1m25s
2026-02-23 15:21:32 -06:00
eewing 1068a3b53a Update internal server options and enhance cookie management. Changed version hash and added maxAge and secure attributes to the cookie settings for improved session persistence and security in production environments.
CI / build (push) Has been skipped
CI / deploy (push) Successful in 1m19s
2026-02-23 15:17:36 -06:00
eewing 1597a6a704 Refactor layout styles to improve text scaling and input readability. Adjusted font size settings for better responsiveness across devices and ensured inputs inherit font size for consistency with system text size.
CI / build (push) Has been skipped
CI / deploy (push) Successful in 1m59s
2026-02-23 15:13:20 -06:00
eewing 7de66442aa Enhance routing and type definitions for new API endpoints. Added support for notifications and SSO routes, updated layout parameters, and improved type safety in route metadata. Refactored component imports for user and profile pages.
CI / build (push) Has been skipped
CI / deploy (push) Successful in 1m27s
2026-02-23 15:06:11 -06:00
eewing 121a6b5844 feat(sso): issue one-time tokens for iframe apps
CI / build (push) Has been skipped
CI / deploy (push) Successful in 1m24s
Generate short-lived SSO tokens in the site iframe route and add an exchange API to let child apps bootstrap their PocketBase session.
2026-02-19 09:35:58 -06:00
eewing 5c68a42703 Refactor environment variable definitions and update internal server options. Removed deprecated route metadata file, adjusted service worker options to null, and improved layout styles in the login page for better responsiveness.
CI / build (push) Has been skipped
CI / deploy (push) Successful in 1m25s
2026-02-19 08:03:06 -06:00
eewing d0c241b0e1 Enhance site information display by adding descriptions for each site. Updated button labels in site links to include both title and description for improved user context.
CI / build (push) Has been skipped
CI / deploy (push) Successful in 1m22s
2026-02-19 08:00:46 -06:00
eewing c0fae761da PWA
CI / build (push) Has been skipped
CI / deploy (push) Successful in 1m24s
2026-02-19 07:41:49 -06:00
eewing 5776a1fdb1 Enhance user routing and layout management. Added support for user-specific routes, including dynamic user ID handling and updated component imports. Improved type definitions and user data mapping in hooks for better user experience. 2026-02-18 15:59:16 -06:00
11069 changed files with 882469 additions and 81499 deletions
+15
View File
@@ -0,0 +1,15 @@
.DS_Store
Thumbs.db
node_modules
/.svelte-kit
/build
/.output
.env
.env.*
!.env.example
!.env.test
vite.config.js.timestamp-*
vite.config.ts.timestamp-*
+94 -4
View File
@@ -18,6 +18,14 @@
"_utils2.js"
]
},
"_card-title.js": {
"file": "chunks/card-title.js",
"name": "card-title",
"imports": [
"_index2.js",
"_utils2.js"
]
},
"_environment.js": {
"file": "chunks/environment.js",
"name": "environment"
@@ -76,6 +84,10 @@
"_utils.js"
]
},
"_sites.js": {
"file": "chunks/sites.js",
"name": "sites"
},
"_state.svelte.js": {
"file": "chunks/state.svelte.js",
"name": "state.svelte",
@@ -85,6 +97,10 @@
"_root.js"
]
},
"_user-from-record.js": {
"file": "chunks/user-from-record.js",
"name": "user-from-record"
},
"_utils.js": {
"file": "chunks/utils.js",
"name": "utils"
@@ -138,7 +154,10 @@
"name": "entries/hooks.server",
"src": "src/hooks.server.ts",
"isEntry": true,
"isDynamicEntry": true
"isDynamicEntry": true,
"imports": [
"_user-from-record.js"
]
},
"src/routes/+layout.server.ts": {
"file": "entries/pages/_layout.server.ts.js",
@@ -155,13 +174,15 @@
"_index2.js",
"_exports.js",
"_utils.js",
"_index.js",
"_root.js",
"_state.svelte.js",
"_utils2.js",
"_label.js"
"_label.js",
"_sites.js"
],
"css": [
"_app/immutable/assets/_layout.Dc5DVfXz.css"
"_app/immutable/assets/_layout.DrtJTkyF.css"
]
},
"src/routes/+page.svelte": {
@@ -170,6 +191,33 @@
"src": "src/routes/+page.svelte",
"isEntry": true,
"imports": [
"_index2.js",
"_button.js",
"_sites.js"
]
},
"src/routes/[site]/+layout.svelte": {
"file": "entries/pages/_site_/_layout.svelte.js",
"name": "entries/pages/_site_/_layout.svelte",
"src": "src/routes/[site]/+layout.svelte",
"isEntry": true
},
"src/routes/[site]/+page.server.ts": {
"file": "entries/pages/_site_/_page.server.ts.js",
"name": "entries/pages/_site_/_page.server.ts",
"src": "src/routes/[site]/+page.server.ts",
"isEntry": true,
"imports": [
"_sites.js"
]
},
"src/routes/[site]/+page.svelte": {
"file": "entries/pages/_site_/_page.svelte.js",
"name": "entries/pages/_site_/_page.svelte",
"src": "src/routes/[site]/+page.svelte",
"isEntry": true,
"imports": [
"_index2.js",
"_button.js"
]
},
@@ -198,7 +246,8 @@
"_state.svelte.js",
"_button.js",
"_utils2.js",
"_label.js"
"_label.js",
"_card-title.js"
]
},
"src/routes/logout/+page.server.ts": {
@@ -220,5 +269,46 @@
"_state.svelte.js",
"_button.js"
]
},
"src/routes/users/+page.server.ts": {
"file": "entries/pages/users/_page.server.ts.js",
"name": "entries/pages/users/_page.server.ts",
"src": "src/routes/users/+page.server.ts",
"isEntry": true,
"imports": [
"_user-from-record.js"
]
},
"src/routes/users/+page.svelte": {
"file": "entries/pages/users/_page.svelte.js",
"name": "entries/pages/users/_page.svelte",
"src": "src/routes/users/+page.svelte",
"isEntry": true,
"imports": [
"_index2.js",
"_card-title.js",
"_utils2.js",
"_button.js"
]
},
"src/routes/users/[id]/+page.server.ts": {
"file": "entries/pages/users/_id_/_page.server.ts.js",
"name": "entries/pages/users/_id_/_page.server.ts",
"src": "src/routes/users/[id]/+page.server.ts",
"isEntry": true,
"imports": [
"_user-from-record.js"
]
},
"src/routes/users/[id]/+page.svelte": {
"file": "entries/pages/users/_id_/_page.svelte.js",
"name": "entries/pages/users/_id_/_page.svelte",
"src": "src/routes/users/[id]/+page.svelte",
"isEntry": true,
"imports": [
"_index2.js",
"_card-title.js",
"_button.js"
]
}
}
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -1,4 +1,4 @@
import { b as attributes, j as clsx, c as bind_props } from "./index2.js";
import { b as attributes, o as clsx, c as bind_props } from "./index2.js";
import { c as cn } from "./utils2.js";
import { tv } from "tailwind-variants";
const buttonVariants = tv({
@@ -0,0 +1,109 @@
import { b as attributes, o as clsx, c as bind_props } from "./index2.js";
import { c as cn } from "./utils2.js";
function Card($$renderer, $$props) {
$$renderer.component(($$renderer2) => {
let {
ref = null,
class: className,
children,
$$slots,
$$events,
...restProps
} = $$props;
$$renderer2.push(`<div${attributes({
"data-slot": "card",
class: clsx(cn("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm", className)),
...restProps
})}>`);
children?.($$renderer2);
$$renderer2.push(`<!----></div>`);
bind_props($$props, { ref });
});
}
function Card_content($$renderer, $$props) {
$$renderer.component(($$renderer2) => {
let {
ref = null,
class: className,
children,
$$slots,
$$events,
...restProps
} = $$props;
$$renderer2.push(`<div${attributes({
"data-slot": "card-content",
class: clsx(cn("px-6", className)),
...restProps
})}>`);
children?.($$renderer2);
$$renderer2.push(`<!----></div>`);
bind_props($$props, { ref });
});
}
function Card_description($$renderer, $$props) {
$$renderer.component(($$renderer2) => {
let {
ref = null,
class: className,
children,
$$slots,
$$events,
...restProps
} = $$props;
$$renderer2.push(`<p${attributes({
"data-slot": "card-description",
class: clsx(cn("text-muted-foreground text-sm", className)),
...restProps
})}>`);
children?.($$renderer2);
$$renderer2.push(`<!----></p>`);
bind_props($$props, { ref });
});
}
function Card_header($$renderer, $$props) {
$$renderer.component(($$renderer2) => {
let {
ref = null,
class: className,
children,
$$slots,
$$events,
...restProps
} = $$props;
$$renderer2.push(`<div${attributes({
"data-slot": "card-header",
class: clsx(cn("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6", className)),
...restProps
})}>`);
children?.($$renderer2);
$$renderer2.push(`<!----></div>`);
bind_props($$props, { ref });
});
}
function Card_title($$renderer, $$props) {
$$renderer.component(($$renderer2) => {
let {
ref = null,
class: className,
children,
$$slots,
$$events,
...restProps
} = $$props;
$$renderer2.push(`<div${attributes({
"data-slot": "card-title",
class: clsx(cn("leading-none font-semibold", className)),
...restProps
})}>`);
children?.($$renderer2);
$$renderer2.push(`<!----></div>`);
bind_props($$props, { ref });
});
}
export {
Card as C,
Card_header as a,
Card_title as b,
Card_description as c,
Card_content as d
};
+21 -1
View File
@@ -1,6 +1,20 @@
import { n as noop } from "./index2.js";
import { s as safe_not_equal } from "./root.js";
import { u as untrack, s as safe_not_equal } from "./root.js";
import "clsx";
function subscribe_to_store(store, run, invalidate) {
if (store == null) {
run(void 0);
return noop;
}
const unsub = untrack(
() => store.subscribe(
run,
// @ts-expect-error
invalidate
)
);
return unsub.unsubscribe ? () => unsub.unsubscribe() : unsub;
}
const subscriber_queue = [];
function readable(value, start) {
return {
@@ -54,7 +68,13 @@ function writable(value, start = noop) {
}
return { set, update, subscribe };
}
function get(store) {
let value;
subscribe_to_store(store, (_) => value = _)();
return value;
}
export {
get as g,
readable as r,
writable as w
};
+72 -52
View File
@@ -271,6 +271,7 @@ function to_style(value, styles) {
}
const BLOCK_OPEN = `<!--${HYDRATION_START}-->`;
const BLOCK_CLOSE = `<!--${HYDRATION_END}-->`;
const EMPTY_COMMENT = `<!---->`;
let controller = null;
function abort() {
controller?.abort(STALE_REACTION);
@@ -444,10 +445,10 @@ class Renderer {
* @param {(renderer: Renderer) => void} fn
*/
head(fn) {
const head = new Renderer(this.global, this);
head.type = "head";
this.#out.push(head);
head.child(fn);
const head2 = new Renderer(this.global, this);
head2.type = "head";
this.#out.push(head2);
head2.child(fn);
}
/**
* @param {Array<Promise<void>>} blockers
@@ -581,7 +582,7 @@ class Renderer {
*/
option(attrs, body, css_hash, classes, styles, flags, is_rich) {
this.#out.push(`<option${attributes(attrs, css_hash, classes, styles, flags)}`);
const close = (renderer, value, { head, body: body2 }) => {
const close = (renderer, value, { head: head2, body: body2 }) => {
if (has_own_property.call(attrs, "value")) {
value = attrs.value;
}
@@ -589,8 +590,8 @@ class Renderer {
renderer.#out.push(' selected=""');
}
renderer.#out.push(`>${body2}${is_rich ? "<!>" : ""}</option>`);
if (head) {
renderer.head((child) => child.push(head));
if (head2) {
renderer.head((child) => child.push(head2));
}
};
if (typeof body === "function") {
@@ -615,8 +616,8 @@ class Renderer {
*/
title(fn) {
const path = this.get_path();
const close = (head) => {
this.global.set_title(head, path);
const close = (head2) => {
this.global.set_title(head2, path);
};
this.child((renderer) => {
const r = new Renderer(renderer.global, renderer);
@@ -901,13 +902,13 @@ class Renderer {
for (const cleanup of renderer.#collect_on_destroy()) {
cleanup();
}
let head = content.head + renderer.global.get_title();
let head2 = content.head + renderer.global.get_title();
let body = content.body;
for (const { hash, code } of renderer.global.css) {
head += `<style id="${hash}">${code}</style>`;
head2 += `<style id="${hash}">${code}</style>`;
}
return {
head,
head: head2,
body,
hashes: {
script: renderer.global.csp.script_hashes
@@ -1011,6 +1012,13 @@ function render(component, options = {}) {
options
);
}
function head(hash, renderer, fn) {
renderer.head((renderer2) => {
renderer2.push(`<!--${hash}-->`);
renderer2.child(fn);
renderer2.push(EMPTY_COMMENT);
});
}
function attributes(attrs, css_hash, classes, styles, flags = 0) {
if (styles) {
attrs.style = to_style(attrs.style, styles);
@@ -1062,6 +1070,9 @@ function spread_props(props) {
}
return merged_props;
}
function stringify(value) {
return typeof value === "string" ? value : value == null ? "" : value + "";
}
function bind_props(props_parent, props_now) {
for (const key of Object.keys(props_now)) {
const initial_value = props_parent[key];
@@ -1071,6 +1082,12 @@ function bind_props(props_parent, props_now) {
}
}
}
function ensure_array_like(array_like_or_iterator) {
if (array_like_or_iterator) {
return array_like_or_iterator.length !== void 0 ? array_like_or_iterator : Array.from(array_like_or_iterator);
}
return [];
}
function once(get_value) {
let value = (
/** @type {V} */
@@ -1100,67 +1117,70 @@ function derived(fn) {
};
}
export {
is_array as $,
array_prototype as $,
ATTACHMENT_KEY as A,
BOUNDARY_EFFECT as B,
COMMENT_NODE as C,
DIRTY as D,
ERROR_VALUE as E,
ROOT_EFFECT as F,
RENDER_EFFECT as G,
BLOCK_EFFECT as F,
deferred as G,
HYDRATION_ERROR as H,
INERT as I,
MANAGED_EFFECT as J,
HEAD_EFFECT as K,
DESTROYED as L,
BRANCH_EFFECT as J,
ROOT_EFFECT as K,
RENDER_EFFECT as L,
MAYBE_DIRTY as M,
ASYNC as N,
includes as O,
EFFECT_TRANSPARENT as P,
EFFECT_PRESERVED as Q,
MANAGED_EFFECT as N,
HEAD_EFFECT as O,
DESTROYED as P,
ASYNC as Q,
REACTION_RAN as R,
STALE_REACTION as S,
EAGER_EFFECT as T,
includes as S,
EFFECT_TRANSPARENT as T,
UNINITIALIZED as U,
STATE_SYMBOL as V,
EFFECT_PRESERVED as V,
WAS_MARKED as W,
object_prototype as X,
array_prototype as Y,
get_descriptor as Z,
get_prototype_of as _,
STALE_REACTION as X,
EAGER_EFFECT as Y,
STATE_SYMBOL as Z,
object_prototype as _,
getAllContexts as a,
is_extensible as a0,
USER_EFFECT as a1,
REACTION_IS_UPDATING as a2,
index_of as a3,
define_property as a4,
array_from as a5,
is_passive_event as a6,
LEGACY_PROPS as a7,
render as a8,
get_descriptor as a0,
get_prototype_of as a1,
is_array as a2,
is_extensible as a3,
USER_EFFECT as a4,
REACTION_IS_UPDATING as a5,
index_of as a6,
define_property as a7,
array_from as a8,
is_passive_event as a9,
LEGACY_PROPS as aa,
render as ab,
attributes as b,
bind_props as c,
derived as d,
spread_props as e,
escape_html as f,
head as f,
getContext as g,
hasContext as h,
attr as i,
clsx as j,
HYDRATION_END as k,
escape_html as i,
ensure_array_like as j,
attr as k,
lifecycle_function_unavailable as l,
HYDRATION_START as m,
stringify as m,
noop as n,
HYDRATION_START_ELSE as o,
clsx as o,
props_id as p,
run_all as q,
HYDRATION_END as q,
run as r,
setContext as s,
EFFECT as t,
CONNECTED as u,
CLEAN as v,
DERIVED as w,
BLOCK_EFFECT as x,
deferred as y,
BRANCH_EFFECT as z
HYDRATION_START as t,
HYDRATION_START_ELSE as u,
run_all as v,
EFFECT as w,
CONNECTED as x,
CLEAN as y,
DERIVED as z
};
+3 -3
View File
@@ -27,9 +27,9 @@ const options = {
preload_strategy: "modulepreload",
root,
service_worker: false,
service_worker_options: void 0,
service_worker_options: null,
templates: {
app: ({ head, body, assets, nonce, env }) => '<!DOCTYPE html>\n<html lang="en">\n <head>\n <meta charset="utf-8" />\n <link rel="icon" href="' + assets + '/favicon.png" />\n <meta name="viewport" content="width=device-width, initial-scale=1" />\n ' + head + '\n </head>\n <body data-sveltekit-preload-data="hover">\n <div style="display: contents">' + body + "</div>\n </body>\n</html>\n",
app: ({ head, body, assets, nonce, env }) => '<!DOCTYPE html>\n<html lang="en">\n <head>\n <meta charset="utf-8" />\n <link rel="icon" href="' + assets + '/favicon.png" />\n <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=5, viewport-fit=cover" />\n ' + head + '\n </head>\n <body data-sveltekit-preload-data="hover">\n <div style="display: contents">' + body + "</div>\n </body>\n</html>\n",
error: ({ status, message }) => '<!doctype html>\n<html lang="en">\n <head>\n <meta charset="utf-8" />\n <title>' + message + `</title>
<style>
@@ -101,7 +101,7 @@ const options = {
<div class="error">
<span class="status">` + status + '</span>\n <div class="message">\n <h1>' + message + "</h1>\n </div>\n </div>\n </body>\n</html>\n"
},
version_hash: "tyxfvh"
version_hash: "x0o6jd"
};
async function get_hooks() {
let handle;
+30 -7
View File
@@ -1,4 +1,4 @@
import { H as HYDRATION_ERROR, C as COMMENT_NODE, k as HYDRATION_END, m as HYDRATION_START, o as HYDRATION_START_ELSE, q as run_all, B as BOUNDARY_EFFECT, R as REACTION_RAN, E as ERROR_VALUE, t as EFFECT, u as CONNECTED, v as CLEAN, M as MAYBE_DIRTY, D as DIRTY, w as DERIVED, W as WAS_MARKED, I as INERT, x as BLOCK_EFFECT, U as UNINITIALIZED, y as deferred, z as BRANCH_EFFECT, F as ROOT_EFFECT, G as RENDER_EFFECT, J as MANAGED_EFFECT, K as HEAD_EFFECT, L as DESTROYED, N as ASYNC, O as includes, P as EFFECT_TRANSPARENT, Q as EFFECT_PRESERVED, S as STALE_REACTION, n as noop, T as EAGER_EFFECT, V as STATE_SYMBOL, X as object_prototype, Y as array_prototype, Z as get_descriptor, _ as get_prototype_of, $ as is_array, a0 as is_extensible, a1 as USER_EFFECT, a2 as REACTION_IS_UPDATING, a3 as index_of, a4 as define_property, a5 as array_from, a6 as is_passive_event, a7 as LEGACY_PROPS, a8 as render, s as setContext } from "./index2.js";
import { H as HYDRATION_ERROR, C as COMMENT_NODE, q as HYDRATION_END, t as HYDRATION_START, u as HYDRATION_START_ELSE, v as run_all, B as BOUNDARY_EFFECT, R as REACTION_RAN, E as ERROR_VALUE, w as EFFECT, x as CONNECTED, y as CLEAN, M as MAYBE_DIRTY, D as DIRTY, z as DERIVED, W as WAS_MARKED, I as INERT, F as BLOCK_EFFECT, U as UNINITIALIZED, G as deferred, J as BRANCH_EFFECT, K as ROOT_EFFECT, L as RENDER_EFFECT, N as MANAGED_EFFECT, O as HEAD_EFFECT, P as DESTROYED, Q as ASYNC, S as includes, T as EFFECT_TRANSPARENT, V as EFFECT_PRESERVED, X as STALE_REACTION, n as noop, Y as EAGER_EFFECT, Z as STATE_SYMBOL, _ as object_prototype, $ as array_prototype, a0 as get_descriptor, a1 as get_prototype_of, a2 as is_array, a3 as is_extensible, a4 as USER_EFFECT, a5 as REACTION_IS_UPDATING, a6 as index_of, a7 as define_property, a8 as array_from, a9 as is_passive_event, aa as LEGACY_PROPS, ab as render, s as setContext } from "./index2.js";
import { b as browser } from "./false.js";
import "clsx";
function equals(value) {
@@ -2597,7 +2597,8 @@ function Root($$renderer, $$props) {
components = [],
form,
data_0 = null,
data_1 = null
data_1 = null,
data_2 = null
} = $$props;
{
setContext("__svelte__", stores);
@@ -2605,7 +2606,7 @@ function Root($$renderer, $$props) {
{
stores.page.set(page);
}
const Pyramid_1 = constructors[1];
const Pyramid_2 = constructors[2];
if (constructors[1]) {
$$renderer2.push("<!--[-->");
const Pyramid_0 = constructors[0];
@@ -2615,9 +2616,30 @@ function Root($$renderer, $$props) {
form,
params: page.params,
children: ($$renderer3) => {
$$renderer3.push("<!---->");
Pyramid_1?.($$renderer3, { data: data_1, form, params: page.params });
$$renderer3.push(`<!---->`);
if (constructors[2]) {
$$renderer3.push("<!--[-->");
const Pyramid_1 = constructors[1];
$$renderer3.push("<!---->");
Pyramid_1?.($$renderer3, {
data: data_1,
form,
params: page.params,
children: ($$renderer4) => {
$$renderer4.push("<!---->");
Pyramid_2?.($$renderer4, { data: data_2, form, params: page.params });
$$renderer4.push(`<!---->`);
},
$$slots: { default: true }
});
$$renderer3.push(`<!---->`);
} else {
$$renderer3.push("<!--[!-->");
const Pyramid_1 = constructors[1];
$$renderer3.push("<!---->");
Pyramid_1?.($$renderer3, { data: data_1, form, params: page.params });
$$renderer3.push(`<!---->`);
}
$$renderer3.push(`<!--]-->`);
},
$$slots: { default: true }
});
@@ -2640,5 +2662,6 @@ const root = asClassComponent(Root);
export {
on as o,
root as r,
safe_not_equal as s
safe_not_equal as s,
untrack as u
};
+23
View File
@@ -0,0 +1,23 @@
const sites = {
prism: {
url: "https://prism.ccllc.pro",
title: "Prism"
},
tasgrid: {
url: "https://tasgrid.ccllc.pro",
title: "TasGrid"
},
stackq: {
url: "https://stackq.ccllc.pro",
title: "Stackq"
},
hrm: {
url: "https://hrm.ccllc.pro",
title: "HRM"
}
};
const siteSlugs = Object.keys(sites);
export {
sites as a,
siteSlugs as s
};
@@ -0,0 +1,23 @@
function bool(r, ...keys) {
for (const k of keys) {
const v = r[k];
if (v === true || v === "true") return true;
}
return false;
}
function mapUserRecord(r) {
return {
id: r.id,
email: r.email,
name: r.name,
avatar: r.avatar,
darkmode: bool(r, "darkmode"),
prism: bool(r, "PRISM", "prism", "Prism"),
tasgrid: bool(r, "TasGrid", "tasgrid"),
stackq: bool(r, "Stackq", "stackq"),
hrm: bool(r, "HRM", "hrm", "Hrm")
};
}
export {
mapUserRecord as m
};
@@ -1,4 +1,4 @@
import { g as getContext, f as escape_html } from "../../chunks/index2.js";
import { g as getContext, i as escape_html } from "../../chunks/index2.js";
import "clsx";
import "../../chunks/state.svelte.js";
import "@sveltejs/kit/internal";
@@ -1,5 +1,6 @@
import { redirect } from "@sveltejs/kit";
import PocketBase from "pocketbase";
import { m as mapUserRecord } from "../chunks/user-from-record.js";
const POCKETBASE_URL = process.env.VITE_POCKETBASE_URL ?? "https://pocketbase.ccllc.pro";
const LOGIN_PATH = "/login";
const LOGOUT_PATH = "/logout";
@@ -17,13 +18,16 @@ const handle = async ({ event, resolve }) => {
event.locals.pb.authStore.clear();
}
const record = event.locals.pb.authStore.record;
event.locals.user = record ? {
id: record.id,
email: record.email,
name: record.name,
avatar: record.avatar,
darkmode: !!record.darkmode
} : null;
if (!record) {
event.locals.user = null;
} else {
try {
const full = await event.locals.pb.collection("users").getOne(record.id);
event.locals.user = mapUserRecord(full);
} catch {
event.locals.user = mapUserRecord(record);
}
}
if (!event.locals.user && !isPublicRoute(event.url.pathname)) {
const redirectTo = event.url.pathname + event.url.search;
const loginUrl = redirectTo && redirectTo !== "/" ? `${LOGIN_PATH}?redirectTo=${encodeURIComponent(redirectTo)}` : LOGIN_PATH;
@@ -1,15 +1,22 @@
import { l as lifecycle_function_unavailable, h as hasContext, g as getContext, s as setContext, d as derived, a as getAllContexts, p as props_id, b as attributes, c as bind_props, e as spread_props, f as escape_html } from "../../chunks/index2.js";
import "clsx";
import { l as lifecycle_function_unavailable, g as getContext, h as hasContext, s as setContext, d as derived, a as getAllContexts, p as props_id, b as attributes, c as bind_props, e as spread_props, f as head, i as escape_html } from "../../chunks/index2.js";
import "@sveltejs/kit/internal";
import "../../chunks/exports.js";
import "../../chunks/utils.js";
import { g as get$2 } from "../../chunks/index.js";
import "@sveltejs/kit/internal/server";
import { o as on } from "../../chunks/root.js";
import "../../chunks/state.svelte.js";
import "clsx";
import { c as cn } from "../../chunks/utils2.js";
import { i as isWritableSymbol, B as BoxSymbol, b as boxFrom, a as boxWith, c as boxFlatten, t as toReadonlyBox, d as isBox, e as isWritableBox, s as styleToString, f as isObject, g as executeCallbacks, h as attachRef, j as createBitsAttrs, k as getDataOpenClosed, l as boolToEmptyStrOrUndef, m as boolToStr, n as simpleBox, o as composeHandlers, p as createId, q as mergeProps, r as cssToStyleObj, u as getDataChecked, v as getAriaChecked, w as boolToTrueOrUndef, L as Label } from "../../chunks/label.js";
import { isTabbable, tabbable, isFocusable, focusable } from "tabbable";
import { computePosition, offset, shift, limitShift, flip, size, arrow, hide } from "@floating-ui/dom";
import { s as siteSlugs } from "../../chunks/sites.js";
function html(value) {
var html2 = String(value);
var open = "<!---->";
return open + html2 + "<!---->";
}
function mount() {
lifecycle_function_unavailable("mount");
}
@@ -18,6 +25,27 @@ function unmount() {
}
async function tick() {
}
const getStores = () => {
const stores$1 = getContext("__svelte__");
return {
/** @type {typeof page} */
page: {
subscribe: stores$1.page.subscribe
},
/** @type {typeof navigating} */
navigating: {
subscribe: stores$1.navigating.subscribe
},
/** @type {typeof updated} */
updated: stores$1.updated
};
};
const page = {
subscribe(fn) {
const store = getStores().page;
return store.subscribe(fn);
}
};
function box(initialValue) {
let current = initialValue;
return {
@@ -2219,6 +2247,50 @@ class AvatarRootState {
return this.#props($$value);
}
}
class AvatarImageState {
static create(opts) {
return new AvatarImageState(opts, AvatarRootContext.get());
}
opts;
root;
attachment;
constructor(opts, root) {
this.opts = opts;
this.root = root;
this.attachment = attachRef(this.opts.ref);
watch.pre(
[
() => this.opts.src.current,
() => this.opts.crossOrigin.current
],
([src, crossOrigin]) => {
if (!src) {
this.root.opts.loadingStatus.current = "error";
return;
}
this.root.loadImage(src, crossOrigin, this.opts.referrerPolicy.current);
}
);
}
#props = derived(() => ({
id: this.opts.id.current,
style: {
display: this.root.opts.loadingStatus.current === "loaded" ? "block" : "none"
},
"data-status": this.root.opts.loadingStatus.current,
[avatarAttrs.image]: "",
src: this.opts.src.current,
crossorigin: this.opts.crossOrigin.current,
referrerpolicy: this.opts.referrerPolicy.current,
...this.attachment
}));
get props() {
return this.#props();
}
set props($$value) {
return this.#props($$value);
}
}
class AvatarFallbackState {
static create(opts) {
return new AvatarFallbackState(opts, AvatarRootContext.get());
@@ -2292,6 +2364,40 @@ function Avatar$1($$renderer, $$props) {
bind_props($$props, { loadingStatus, ref });
});
}
function Avatar_image$1($$renderer, $$props) {
$$renderer.component(($$renderer2) => {
const uid = props_id($$renderer2);
let {
src,
child,
id = createId(uid),
ref = null,
crossorigin = void 0,
referrerpolicy = void 0,
$$slots,
$$events,
...restProps
} = $$props;
const imageState = AvatarImageState.create({
src: boxWith(() => src),
id: boxWith(() => id),
ref: boxWith(() => ref, (v) => ref = v),
crossOrigin: boxWith(() => crossorigin),
referrerPolicy: boxWith(() => referrerpolicy)
});
const mergedProps = mergeProps(restProps, imageState.props);
if (child) {
$$renderer2.push("<!--[-->");
child($$renderer2, { props: mergedProps });
$$renderer2.push(`<!---->`);
} else {
$$renderer2.push("<!--[!-->");
$$renderer2.push(`<img${attributes({ ...mergedProps, src })} onload="this.__e=event" onerror="this.__e=event"/>`);
}
$$renderer2.push(`<!--]-->`);
bind_props($$props, { ref });
});
}
function Avatar_fallback$1($$renderer, $$props) {
$$renderer.component(($$renderer2) => {
const uid = props_id($$renderer2);
@@ -3644,6 +3750,46 @@ function Avatar($$renderer, $$props) {
bind_props($$props, { ref, loadingStatus });
});
}
function Avatar_image($$renderer, $$props) {
$$renderer.component(($$renderer2) => {
let {
ref = null,
class: className,
$$slots,
$$events,
...restProps
} = $$props;
let $$settled = true;
let $$inner_renderer;
function $$render_inner($$renderer3) {
$$renderer3.push("<!---->");
Avatar_image$1?.($$renderer3, spread_props([
{
"data-slot": "avatar-image",
class: cn("aspect-square size-full", className)
},
restProps,
{
get ref() {
return ref;
},
set ref($$value) {
ref = $$value;
$$settled = false;
}
}
]));
$$renderer3.push(`<!---->`);
}
do {
$$settled = true;
$$inner_renderer = $$renderer2.copy();
$$render_inner($$inner_renderer);
} while (!$$settled);
$$renderer2.subsume($$inner_renderer);
bind_props($$props, { ref });
});
}
function Avatar_fallback($$renderer, $$props) {
$$renderer.component(($$renderer2) => {
let {
@@ -3899,31 +4045,44 @@ function Switch($$renderer, $$props) {
bind_props($$props, { ref, checked });
});
}
const pwaInfo = { "webManifest": { "linkTag": '<link rel="manifest" href="/manifest.webmanifest">' } };
function _layout($$renderer, $$props) {
$$renderer.component(($$renderer2) => {
let { data, children } = $$props;
let pathname = get$2(page).url.pathname;
const isSiteRoute = siteSlugs.includes(pathname.slice(1).split("/")[0] ?? "");
let darkmode = false;
let onDarkmodeChange = () => {
};
head("12qhfyh", $$renderer2, ($$renderer3) => {
{
$$renderer3.push("<!--[-->");
$$renderer3.push(`${html(pwaInfo.webManifest.linkTag)}`);
}
$$renderer3.push(`<!--]-->`);
});
$$renderer2.push(`<div class="app-shell">`);
if (data.user) {
if (data.user && !isSiteRoute) {
$$renderer2.push("<!--[-->");
$$renderer2.push(`<header class="flex items-center justify-between w-full"><h1 class="text-lg font-semibold">Base</h1> `);
$$renderer2.push(`<header class="fixed right-0 top-0 z-50 flex items-center gap-2 p-2 pr-[max(0.5rem,env(safe-area-inset-right))] pt-[max(0.5rem,env(safe-area-inset-top))]" aria-label="User menu">`);
$$renderer2.push("<!---->");
Dropdown_menu?.($$renderer2, {
children: ($$renderer3) => {
$$renderer3.push("<!---->");
Dropdown_menu_trigger?.($$renderer3, {
class: "rounded-full border border-input bg-background hover:bg-accent",
class: "border-0 bg-transparent hover:bg-muted inline-flex size-10 shrink-0 items-center justify-center rounded-full focus:outline-none focus-visible:ring-2 focus-visible:ring-ring",
onclick: (e) => e.preventDefault(),
children: ($$renderer4) => {
$$renderer4.push("<!---->");
Avatar?.($$renderer4, {
class: "h-8 w-8",
class: "size-10 rounded-full",
children: ($$renderer5) => {
$$renderer5.push("<!---->");
Avatar_image?.($$renderer5, { src: data.user.avatar, alt: "" });
$$renderer5.push(`<!----> `);
$$renderer5.push("<!---->");
Avatar_fallback?.($$renderer5, {
class: "text-xs",
class: "bg-muted text-muted-foreground flex size-10 items-center justify-center rounded-full text-sm font-medium",
children: ($$renderer6) => {
$$renderer6.push(`<!---->${escape_html(data.user.name ? String(data.user.name).slice(0, 2).toUpperCase() : data.user.email ? String(data.user.email).slice(0, 2).toUpperCase() : "?")}`);
},
@@ -3941,7 +4100,7 @@ function _layout($$renderer, $$props) {
$$renderer3.push("<!---->");
Dropdown_menu_content?.($$renderer3, {
align: "end",
class: "w-48",
class: "w-56",
children: ($$renderer4) => {
$$renderer4.push(`<div class="relative flex cursor-default items-center gap-2 rounded-sm py-1.5 px-2 text-sm outline-none select-none" role="button" tabindex="0">`);
Label($$renderer4, {
@@ -3973,9 +4132,9 @@ function _layout($$renderer, $$props) {
} else {
$$renderer2.push("<!--[!-->");
}
$$renderer2.push(`<!--]--> <main class="flex-1 flex flex-col gap-4 min-h-0">`);
$$renderer2.push(`<!--]--> <div class="page-view">`);
children?.($$renderer2);
$$renderer2.push(`<!----></main></div>`);
$$renderer2.push(`<!----></div></div>`);
});
}
export {
@@ -1,47 +1,32 @@
import "clsx";
import { j as ensure_array_like, k as attr, i as escape_html, m as stringify } from "../../chunks/index2.js";
import { B as Button } from "../../chunks/button.js";
import { s as siteSlugs, a as sites } from "../../chunks/sites.js";
function _page($$renderer, $$props) {
let { data } = $$props;
{
$$renderer.push("<!--[!-->");
$$renderer.push(`<main class="flex min-h-0 flex-1 flex-col items-center justify-center gap-6 p-6"><h1 class="text-2xl font-semibold">Base</h1> <div class="flex w-full max-w-xs flex-col gap-3"><a href="https://prism.ccllc.pro" class="block" target="_blank" rel="noopener noreferrer">`);
Button($$renderer, {
class: "h-12 w-full min-h-12",
children: ($$renderer2) => {
$$renderer2.push(`<!---->Prism`);
},
$$slots: { default: true }
});
$$renderer.push(`<!----></a> <a href="https://tasgrid.ccllc.pro" class="block" target="_blank" rel="noopener noreferrer">`);
Button($$renderer, {
class: "h-12 min-h-12 w-full",
variant: "outline",
children: ($$renderer2) => {
$$renderer2.push(`<!---->TasGrid`);
},
$$slots: { default: true }
});
$$renderer.push(`<!----></a> <a href="https://stackq.ccllc.pro" class="block" target="_blank" rel="noopener noreferrer">`);
Button($$renderer, {
class: "h-12 min-h-12 w-full",
variant: "outline",
children: ($$renderer2) => {
$$renderer2.push(`<!---->Stackq`);
},
$$slots: { default: true }
});
$$renderer.push(`<!----></a> <a href="https://hrm.ccllc.pro" class="block" target="_blank" rel="noopener noreferrer">`);
Button($$renderer, {
class: "h-12 min-h-12 w-full",
variant: "outline",
children: ($$renderer2) => {
$$renderer2.push(`<!---->HRM`);
},
$$slots: { default: true }
});
$$renderer.push(`<!----></a></div></main>`);
}
$$renderer.push(`<!--]-->`);
$$renderer.component(($$renderer2) => {
let { data } = $$props;
const visibleSlugs = data.user ? siteSlugs.filter((slug) => data.user && data.user[slug] === true) : [];
{
$$renderer2.push("<!--[!-->");
$$renderer2.push(`<main class="flex min-h-0 flex-1 flex-col items-center justify-center gap-4 p-4 sm:gap-6 sm:p-6"><h1 class="text-2xl font-semibold">Base</h1> <div class="flex w-full max-w-xs flex-col gap-3"><!--[-->`);
const each_array = ensure_array_like(visibleSlugs);
for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
let slug = each_array[$$index];
const site = sites[slug];
$$renderer2.push(`<a${attr("href", `/${stringify(slug)}`)} class="block">`);
Button($$renderer2, {
class: "h-16 w-full min-h-16",
variant: "outline",
children: ($$renderer3) => {
$$renderer3.push(`<!---->${escape_html(site.title)}`);
},
$$slots: { default: true }
});
$$renderer2.push(`<!----></a>`);
}
$$renderer2.push(`<!--]--></div></main>`);
}
$$renderer2.push(`<!--]-->`);
});
}
export {
_page as default
@@ -0,0 +1,10 @@
import "clsx";
function _layout($$renderer, $$props) {
let { children } = $$props;
$$renderer.push(`<div class="site-fullscreen">`);
children?.($$renderer);
$$renderer.push(`<!----></div>`);
}
export {
_layout as default
};
@@ -0,0 +1,17 @@
import { a as sites } from "../../../chunks/sites.js";
import { error } from "@sveltejs/kit";
function load({ params }) {
const slug = params.site?.toLowerCase();
const site = slug && slug in sites ? sites[slug] : null;
if (!site) {
throw error(404, `Unknown site: ${params.site}`);
}
return {
slug,
url: site.url,
title: site.title
};
}
export {
load
};
@@ -0,0 +1,26 @@
import { f as head, k as attr, i as escape_html } from "../../../chunks/index2.js";
import { B as Button } from "../../../chunks/button.js";
function _page($$renderer, $$props) {
$$renderer.component(($$renderer2) => {
let { data } = $$props;
head("mbpe06", $$renderer2, ($$renderer3) => {
$$renderer3.title(($$renderer4) => {
$$renderer4.push(`<title>${escape_html(data.title)} — Base</title>`);
});
});
$$renderer2.push(`<main class="relative flex-1 min-h-0 min-w-0 flex flex-col"><iframe id="app-iframe"${attr("title", data.title)}${attr("src", data.url)} class="absolute inset-0 w-full h-full border-0 rounded-none"></iframe> <div class="absolute top-2 left-1/2 -translate-x-1/2 z-10 flex items-center justify-center pointer-events-none pt-[env(safe-area-inset-top)]" aria-hidden="true"><div class="pointer-events-auto"><a href="/">`);
Button($$renderer2, {
type: "button",
variant: "secondary",
class: "shadow-md",
children: ($$renderer3) => {
$$renderer3.push(`<!---->Base`);
},
$$slots: { default: true }
});
$$renderer2.push(`<!----></a></div></div></main>`);
});
}
export {
_page as default
};
@@ -1,4 +1,4 @@
import { b as attributes, j as clsx, c as bind_props, i as attr, f as escape_html } from "../../../chunks/index2.js";
import { b as attributes, o as clsx, c as bind_props, k as attr, i as escape_html } from "../../../chunks/index2.js";
import "@sveltejs/kit/internal";
import "../../../chunks/exports.js";
import "../../../chunks/utils.js";
@@ -8,6 +8,7 @@ import "../../../chunks/state.svelte.js";
import { B as Button } from "../../../chunks/button.js";
import { c as cn } from "../../../chunks/utils2.js";
import { L as Label } from "../../../chunks/label.js";
import { C as Card, a as Card_header, b as Card_title, c as Card_description, d as Card_content } from "../../../chunks/card-title.js";
import "clsx";
function Input($$renderer, $$props) {
$$renderer.component(($$renderer2) => {
@@ -56,106 +57,6 @@ function Input($$renderer, $$props) {
bind_props($$props, { ref, value, files });
});
}
function Card($$renderer, $$props) {
$$renderer.component(($$renderer2) => {
let {
ref = null,
class: className,
children,
$$slots,
$$events,
...restProps
} = $$props;
$$renderer2.push(`<div${attributes({
"data-slot": "card",
class: clsx(cn("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm", className)),
...restProps
})}>`);
children?.($$renderer2);
$$renderer2.push(`<!----></div>`);
bind_props($$props, { ref });
});
}
function Card_content($$renderer, $$props) {
$$renderer.component(($$renderer2) => {
let {
ref = null,
class: className,
children,
$$slots,
$$events,
...restProps
} = $$props;
$$renderer2.push(`<div${attributes({
"data-slot": "card-content",
class: clsx(cn("px-6", className)),
...restProps
})}>`);
children?.($$renderer2);
$$renderer2.push(`<!----></div>`);
bind_props($$props, { ref });
});
}
function Card_description($$renderer, $$props) {
$$renderer.component(($$renderer2) => {
let {
ref = null,
class: className,
children,
$$slots,
$$events,
...restProps
} = $$props;
$$renderer2.push(`<p${attributes({
"data-slot": "card-description",
class: clsx(cn("text-muted-foreground text-sm", className)),
...restProps
})}>`);
children?.($$renderer2);
$$renderer2.push(`<!----></p>`);
bind_props($$props, { ref });
});
}
function Card_header($$renderer, $$props) {
$$renderer.component(($$renderer2) => {
let {
ref = null,
class: className,
children,
$$slots,
$$events,
...restProps
} = $$props;
$$renderer2.push(`<div${attributes({
"data-slot": "card-header",
class: clsx(cn("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6", className)),
...restProps
})}>`);
children?.($$renderer2);
$$renderer2.push(`<!----></div>`);
bind_props($$props, { ref });
});
}
function Card_title($$renderer, $$props) {
$$renderer.component(($$renderer2) => {
let {
ref = null,
class: className,
children,
$$slots,
$$events,
...restProps
} = $$props;
$$renderer2.push(`<div${attributes({
"data-slot": "card-title",
class: clsx(cn("leading-none font-semibold", className)),
...restProps
})}>`);
children?.($$renderer2);
$$renderer2.push(`<!----></div>`);
bind_props($$props, { ref });
});
}
function _page($$renderer, $$props) {
$$renderer.component(($$renderer2) => {
let { data, formAction } = $$props;
@@ -1,4 +1,4 @@
import { i as attr } from "../../../chunks/index2.js";
import { k as attr } from "../../../chunks/index2.js";
import "@sveltejs/kit/internal";
import "../../../chunks/exports.js";
import "../../../chunks/utils.js";
@@ -0,0 +1,15 @@
import { error } from "@sveltejs/kit";
import { m as mapUserRecord } from "../../../../chunks/user-from-record.js";
const load = async ({ params, locals }) => {
const id = params.id;
if (!id) throw error(404, "User not found");
try {
const record = await locals.pb.collection("users").getOne(id);
return { user: mapUserRecord(record) };
} catch {
throw error(404, "User not found");
}
};
export {
load
};
@@ -0,0 +1,74 @@
import { f as head, i as escape_html } from "../../../../chunks/index2.js";
import { C as Card, a as Card_header, b as Card_title, c as Card_description, d as Card_content } from "../../../../chunks/card-title.js";
import "clsx";
import { B as Button } from "../../../../chunks/button.js";
function _page($$renderer, $$props) {
$$renderer.component(($$renderer2) => {
let { data } = $$props;
const user = data.user;
head("xnw5yb", $$renderer2, ($$renderer3) => {
$$renderer3.title(($$renderer4) => {
$$renderer4.push(`<title>${escape_html(user.name ?? user.email ?? "User")} — Base</title>`);
});
});
$$renderer2.push(`<main class="flex min-h-0 flex-1 flex-col gap-4 p-4 sm:gap-6 sm:p-6"><a href="/users" class="self-start">`);
Button($$renderer2, {
variant: "ghost",
size: "sm",
children: ($$renderer3) => {
$$renderer3.push(`<!---->← Users`);
},
$$slots: { default: true }
});
$$renderer2.push(`<!----></a> `);
$$renderer2.push("<!---->");
Card?.($$renderer2, {
class: "max-w-md",
children: ($$renderer3) => {
$$renderer3.push("<!---->");
Card_header?.($$renderer3, {
children: ($$renderer4) => {
$$renderer4.push("<!---->");
Card_title?.($$renderer4, {
children: ($$renderer5) => {
$$renderer5.push(`<!---->${escape_html(user.name ?? user.email ?? user.id)}`);
},
$$slots: { default: true }
});
$$renderer4.push(`<!----> `);
if (user.email) {
$$renderer4.push("<!--[-->");
$$renderer4.push("<!---->");
Card_description?.($$renderer4, {
children: ($$renderer5) => {
$$renderer5.push(`<!---->${escape_html(user.email)}`);
},
$$slots: { default: true }
});
$$renderer4.push(`<!---->`);
} else {
$$renderer4.push("<!--[!-->");
}
$$renderer4.push(`<!--]-->`);
},
$$slots: { default: true }
});
$$renderer3.push(`<!----> `);
$$renderer3.push("<!---->");
Card_content?.($$renderer3, {
class: "flex flex-col gap-2",
children: ($$renderer4) => {
$$renderer4.push(`<p class="text-muted-foreground text-sm"><span class="font-medium text-foreground">Access:</span><br/> Prism ${escape_html(user.prism ? "✓" : "—")} · TasGrid ${escape_html(user.tasgrid ? "✓" : "—")} · Stackq ${escape_html(user.stackq ? "✓" : "—")} · HRM ${escape_html(user.hrm ? "✓" : "—")}</p> <p class="text-muted-foreground text-sm"><span class="font-medium text-foreground">Dark mode:</span> ${escape_html(user.darkmode ? "On" : "Off")}</p>`);
},
$$slots: { default: true }
});
$$renderer3.push(`<!---->`);
},
$$slots: { default: true }
});
$$renderer2.push(`<!----></main>`);
});
}
export {
_page as default
};
@@ -0,0 +1,9 @@
import { m as mapUserRecord } from "../../../chunks/user-from-record.js";
const load = async ({ locals }) => {
const list = await locals.pb.collection("users").getFullList();
const users = list.map((r) => mapUserRecord(r));
return { users };
};
export {
load
};
@@ -0,0 +1,111 @@
import { b as attributes, o as clsx, c as bind_props, f as head, j as ensure_array_like, i as escape_html, k as attr, m as stringify } from "../../../chunks/index2.js";
import { C as Card, a as Card_header, b as Card_title, c as Card_description, d as Card_content } from "../../../chunks/card-title.js";
import { c as cn } from "../../../chunks/utils2.js";
import "clsx";
import { B as Button } from "../../../chunks/button.js";
function Card_footer($$renderer, $$props) {
$$renderer.component(($$renderer2) => {
let {
ref = null,
class: className,
children,
$$slots,
$$events,
...restProps
} = $$props;
$$renderer2.push(`<div${attributes({
"data-slot": "card-footer",
class: clsx(cn("flex items-center px-6 [.border-t]:pt-6", className)),
...restProps
})}>`);
children?.($$renderer2);
$$renderer2.push(`<!----></div>`);
bind_props($$props, { ref });
});
}
function _page($$renderer, $$props) {
$$renderer.component(($$renderer2) => {
let { data } = $$props;
head("9fk07v", $$renderer2, ($$renderer3) => {
$$renderer3.title(($$renderer4) => {
$$renderer4.push(`<title>Users — Base</title>`);
});
});
$$renderer2.push(`<main class="flex min-h-0 flex-1 flex-col gap-4 p-4 sm:gap-6 sm:p-6"><h1 class="text-2xl font-semibold">Users</h1> <div class="grid gap-4 sm:grid-cols-2 lg:grid-cols-3"><!--[-->`);
const each_array = ensure_array_like(data.users);
for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
let user = each_array[$$index];
$$renderer2.push("<!---->");
Card?.($$renderer2, {
class: "flex flex-col",
children: ($$renderer3) => {
$$renderer3.push("<!---->");
Card_header?.($$renderer3, {
class: "flex flex-row items-center gap-3",
children: ($$renderer4) => {
$$renderer4.push(`<div class="flex size-10 shrink-0 items-center justify-center rounded-full bg-muted text-muted-foreground text-sm font-medium">${escape_html(user.name ? String(user.name).slice(0, 2).toUpperCase() : user.email ? String(user.email).slice(0, 2).toUpperCase() : "?")}</div> <div class="min-w-0 flex-1">`);
$$renderer4.push("<!---->");
Card_title?.($$renderer4, {
class: "truncate",
children: ($$renderer5) => {
$$renderer5.push(`<!---->${escape_html(user.name ?? user.email ?? user.id)}`);
},
$$slots: { default: true }
});
$$renderer4.push(`<!----> `);
if (user.email && user.name) {
$$renderer4.push("<!--[-->");
$$renderer4.push("<!---->");
Card_description?.($$renderer4, {
class: "truncate text-xs",
children: ($$renderer5) => {
$$renderer5.push(`<!---->${escape_html(user.email)}`);
},
$$slots: { default: true }
});
$$renderer4.push(`<!---->`);
} else {
$$renderer4.push("<!--[!-->");
}
$$renderer4.push(`<!--]--></div>`);
},
$$slots: { default: true }
});
$$renderer3.push(`<!----> `);
$$renderer3.push("<!---->");
Card_content?.($$renderer3, {
class: "flex-1",
children: ($$renderer4) => {
$$renderer4.push(`<p class="text-muted-foreground text-sm">Prism ${escape_html(user.prism ? "✓" : "—")} · TasGrid ${escape_html(user.tasgrid ? "✓" : "—")} · Stackq ${escape_html(user.stackq ? "✓" : "—")} · HRM ${escape_html(user.hrm ? "✓" : "—")}</p>`);
},
$$slots: { default: true }
});
$$renderer3.push(`<!----> `);
$$renderer3.push("<!---->");
Card_footer?.($$renderer3, {
children: ($$renderer4) => {
$$renderer4.push(`<a${attr("href", `/users/${stringify(user.id)}`)} class="block">`);
Button($$renderer4, {
variant: "outline",
class: "w-full",
children: ($$renderer5) => {
$$renderer5.push(`<!---->View`);
},
$$slots: { default: true }
});
$$renderer4.push(`<!----></a>`);
},
$$slots: { default: true }
});
$$renderer3.push(`<!---->`);
},
$$slots: { default: true }
});
$$renderer2.push(`<!---->`);
}
$$renderer2.push(`<!--]--></div></main>`);
});
}
export {
_page as default
};
File diff suppressed because it is too large Load Diff
+14
View File
@@ -0,0 +1,14 @@
import "./chunks/root.js";
import { s, e, f } from "./chunks/environment.js";
import { g, o, c, s as s2, a, b } from "./chunks/internal.js";
export {
g as get_hooks,
o as options,
s as set_assets,
e as set_building,
c as set_manifest,
f as set_prerendering,
s2 as set_private_env,
a as set_public_env,
b as set_read_implementation
};
+66
View File
@@ -0,0 +1,66 @@
export const manifest = (() => {
function __memo(fn) {
let value;
return () => value ??= (value = fn());
}
return {
appDir: "_app",
appPath: "_app",
assets: new Set([]),
mimeTypes: {},
_: {
client: {start:"_app/immutable/entry/start.DoE5rVjp.js",app:"_app/immutable/entry/app.D90yBOXx.js",imports:["_app/immutable/entry/start.DoE5rVjp.js","_app/immutable/chunks/BX9MO-1l.js","_app/immutable/chunks/CPmvlhtF.js","_app/immutable/chunks/nEbfNkJh.js","_app/immutable/entry/app.D90yBOXx.js","_app/immutable/chunks/D4nn9Y_6.js","_app/immutable/chunks/nEbfNkJh.js","_app/immutable/chunks/CPmvlhtF.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/zcqfpVBB.js","_app/immutable/chunks/BpNSSBPP.js","_app/immutable/chunks/DTd9pe6t.js"],stylesheets:[],fonts:[],uses_env_dynamic_public:false},
nodes: [
__memo(() => import('./nodes/0.js')),
__memo(() => import('./nodes/1.js')),
__memo(() => import('./nodes/2.js')),
__memo(() => import('./nodes/3.js')),
__memo(() => import('./nodes/4.js'))
],
remotes: {
},
routes: [
{
id: "/",
pattern: /^\/$/,
params: [],
page: { layouts: [0,], errors: [1,], leaf: 2 },
endpoint: null
},
{
id: "/api/darkmode",
pattern: /^\/api\/darkmode\/?$/,
params: [],
page: null,
endpoint: __memo(() => import('./entries/endpoints/api/darkmode/_server.ts.js'))
},
{
id: "/login",
pattern: /^\/login\/?$/,
params: [],
page: { layouts: [0,], errors: [1,], leaf: 4 },
endpoint: null
},
{
id: "/logout",
pattern: /^\/logout\/?$/,
params: [],
page: { layouts: [0,], errors: [1,], leaf: 3 },
endpoint: null
}
],
prerendered_routes: new Set([]),
matchers: async () => {
return { };
},
server_assets: {}
}
}
})();
export const prerendered = new Set([]);
export const base = "";
+30 -5
View File
@@ -10,13 +10,17 @@ return {
assets: new Set([]),
mimeTypes: {},
_: {
client: {start:"_app/immutable/entry/start.DoE5rVjp.js",app:"_app/immutable/entry/app.D90yBOXx.js",imports:["_app/immutable/entry/start.DoE5rVjp.js","_app/immutable/chunks/BX9MO-1l.js","_app/immutable/chunks/CPmvlhtF.js","_app/immutable/chunks/nEbfNkJh.js","_app/immutable/entry/app.D90yBOXx.js","_app/immutable/chunks/D4nn9Y_6.js","_app/immutable/chunks/nEbfNkJh.js","_app/immutable/chunks/CPmvlhtF.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/zcqfpVBB.js","_app/immutable/chunks/BpNSSBPP.js","_app/immutable/chunks/DTd9pe6t.js"],stylesheets:[],fonts:[],uses_env_dynamic_public:false},
client: {start:"_app/immutable/entry/start.AEgxPUqz.js",app:"_app/immutable/entry/app.DbqfQuH9.js",imports:["_app/immutable/entry/start.AEgxPUqz.js","_app/immutable/chunks/CW15Ts-p.js","_app/immutable/chunks/DTyTeadx.js","_app/immutable/chunks/BfGs3WDN.js","_app/immutable/chunks/Dc4kZMuG.js","_app/immutable/chunks/BlBMKpZ6.js","_app/immutable/entry/app.DbqfQuH9.js","_app/immutable/chunks/D4nn9Y_6.js","_app/immutable/chunks/BfGs3WDN.js","_app/immutable/chunks/Dc4kZMuG.js","_app/immutable/chunks/BlBMKpZ6.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/DTyTeadx.js","_app/immutable/chunks/CQe9XmLJ.js","_app/immutable/chunks/C2sKwo1m.js","_app/immutable/chunks/BIDFgmbM.js","_app/immutable/chunks/BSLeMsiy.js"],stylesheets:[],fonts:[],uses_env_dynamic_public:false},
nodes: [
__memo(() => import('./nodes/0.js')),
__memo(() => import('./nodes/1.js')),
__memo(() => import('./nodes/2.js')),
__memo(() => import('./nodes/3.js')),
__memo(() => import('./nodes/4.js'))
__memo(() => import('./nodes/4.js')),
__memo(() => import('./nodes/5.js')),
__memo(() => import('./nodes/6.js')),
__memo(() => import('./nodes/7.js')),
__memo(() => import('./nodes/8.js'))
],
remotes: {
@@ -26,7 +30,7 @@ return {
id: "/",
pattern: /^\/$/,
params: [],
page: { layouts: [0,], errors: [1,], leaf: 2 },
page: { layouts: [0,], errors: [1,], leaf: 3 },
endpoint: null
},
{
@@ -40,14 +44,35 @@ return {
id: "/login",
pattern: /^\/login\/?$/,
params: [],
page: { layouts: [0,], errors: [1,], leaf: 4 },
page: { layouts: [0,], errors: [1,], leaf: 8 },
endpoint: null
},
{
id: "/logout",
pattern: /^\/logout\/?$/,
params: [],
page: { layouts: [0,], errors: [1,], leaf: 3 },
page: { layouts: [0,], errors: [1,], leaf: 4 },
endpoint: null
},
{
id: "/users",
pattern: /^\/users\/?$/,
params: [],
page: { layouts: [0,], errors: [1,], leaf: 5 },
endpoint: null
},
{
id: "/users/[id]",
pattern: /^\/users\/([^/]+?)\/?$/,
params: [{"name":"id","optional":false,"rest":false,"chained":false}],
page: { layouts: [0,], errors: [1,], leaf: 6 },
endpoint: null
},
{
id: "/[site]",
pattern: /^\/([^/]+?)\/?$/,
params: [{"name":"site","optional":false,"rest":false,"chained":false}],
page: { layouts: [0,2,], errors: [1,,], leaf: 7 },
endpoint: null
}
],
+30 -5
View File
@@ -10,13 +10,17 @@ return {
assets: new Set([]),
mimeTypes: {},
_: {
client: {start:"_app/immutable/entry/start.DoE5rVjp.js",app:"_app/immutable/entry/app.D90yBOXx.js",imports:["_app/immutable/entry/start.DoE5rVjp.js","_app/immutable/chunks/BX9MO-1l.js","_app/immutable/chunks/CPmvlhtF.js","_app/immutable/chunks/nEbfNkJh.js","_app/immutable/entry/app.D90yBOXx.js","_app/immutable/chunks/D4nn9Y_6.js","_app/immutable/chunks/nEbfNkJh.js","_app/immutable/chunks/CPmvlhtF.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/zcqfpVBB.js","_app/immutable/chunks/BpNSSBPP.js","_app/immutable/chunks/DTd9pe6t.js"],stylesheets:[],fonts:[],uses_env_dynamic_public:false},
client: {start:"_app/immutable/entry/start.AEgxPUqz.js",app:"_app/immutable/entry/app.DbqfQuH9.js",imports:["_app/immutable/entry/start.AEgxPUqz.js","_app/immutable/chunks/CW15Ts-p.js","_app/immutable/chunks/DTyTeadx.js","_app/immutable/chunks/BfGs3WDN.js","_app/immutable/chunks/Dc4kZMuG.js","_app/immutable/chunks/BlBMKpZ6.js","_app/immutable/entry/app.DbqfQuH9.js","_app/immutable/chunks/D4nn9Y_6.js","_app/immutable/chunks/BfGs3WDN.js","_app/immutable/chunks/Dc4kZMuG.js","_app/immutable/chunks/BlBMKpZ6.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/DTyTeadx.js","_app/immutable/chunks/CQe9XmLJ.js","_app/immutable/chunks/C2sKwo1m.js","_app/immutable/chunks/BIDFgmbM.js","_app/immutable/chunks/BSLeMsiy.js"],stylesheets:[],fonts:[],uses_env_dynamic_public:false},
nodes: [
__memo(() => import('./nodes/0.js')),
__memo(() => import('./nodes/1.js')),
__memo(() => import('./nodes/2.js')),
__memo(() => import('./nodes/3.js')),
__memo(() => import('./nodes/4.js'))
__memo(() => import('./nodes/4.js')),
__memo(() => import('./nodes/5.js')),
__memo(() => import('./nodes/6.js')),
__memo(() => import('./nodes/7.js')),
__memo(() => import('./nodes/8.js'))
],
remotes: {
@@ -26,7 +30,7 @@ return {
id: "/",
pattern: /^\/$/,
params: [],
page: { layouts: [0,], errors: [1,], leaf: 2 },
page: { layouts: [0,], errors: [1,], leaf: 3 },
endpoint: null
},
{
@@ -40,14 +44,35 @@ return {
id: "/login",
pattern: /^\/login\/?$/,
params: [],
page: { layouts: [0,], errors: [1,], leaf: 4 },
page: { layouts: [0,], errors: [1,], leaf: 8 },
endpoint: null
},
{
id: "/logout",
pattern: /^\/logout\/?$/,
params: [],
page: { layouts: [0,], errors: [1,], leaf: 3 },
page: { layouts: [0,], errors: [1,], leaf: 4 },
endpoint: null
},
{
id: "/users",
pattern: /^\/users\/?$/,
params: [],
page: { layouts: [0,], errors: [1,], leaf: 5 },
endpoint: null
},
{
id: "/users/[id]",
pattern: /^\/users\/([^/]+?)\/?$/,
params: [{"name":"id","optional":false,"rest":false,"chained":false}],
page: { layouts: [0,], errors: [1,], leaf: 6 },
endpoint: null
},
{
id: "/[site]",
pattern: /^\/([^/]+?)\/?$/,
params: [{"name":"site","optional":false,"rest":false,"chained":false}],
page: { layouts: [0,2,], errors: [1,,], leaf: 7 },
endpoint: null
}
],
+2 -2
View File
@@ -5,6 +5,6 @@ let component_cache;
export const component = async () => component_cache ??= (await import('../entries/pages/_layout.svelte.js')).default;
export { server };
export const server_id = "src/routes/+layout.server.ts";
export const imports = ["_app/immutable/nodes/0.DsCqkoz9.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/CPmvlhtF.js","_app/immutable/chunks/nEbfNkJh.js","_app/immutable/chunks/zcqfpVBB.js","_app/immutable/chunks/Xjya7ye4.js","_app/immutable/chunks/BpNSSBPP.js","_app/immutable/chunks/CoAkxMBS.js","_app/immutable/chunks/BX9MO-1l.js","_app/immutable/chunks/CvA4ASMA.js","_app/immutable/chunks/ggIfGDPQ.js"];
export const stylesheets = ["_app/immutable/assets/0.Ci1WSy1v.css"];
export const imports = ["_app/immutable/nodes/0.gS3vEFmL.js","_app/immutable/chunks/D4nn9Y_6.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/DTyTeadx.js","_app/immutable/chunks/BfGs3WDN.js","_app/immutable/chunks/Dc4kZMuG.js","_app/immutable/chunks/BlBMKpZ6.js","_app/immutable/chunks/CQe9XmLJ.js","_app/immutable/chunks/C2sKwo1m.js","_app/immutable/chunks/By9q4dnk.js","_app/immutable/chunks/BIDFgmbM.js","_app/immutable/chunks/B52PvkJe.js","_app/immutable/chunks/_58MWSf2.js","_app/immutable/chunks/CW15Ts-p.js","_app/immutable/chunks/D7710T35.js","_app/immutable/chunks/BcNtEwNR.js","_app/immutable/chunks/CDS-2UO6.js","_app/immutable/chunks/8KX3cYnK.js"];
export const stylesheets = ["_app/immutable/assets/0.CY2MjnKQ.css"];
export const fonts = [];
+1 -1
View File
@@ -3,6 +3,6 @@
export const index = 1;
let component_cache;
export const component = async () => component_cache ??= (await import('../entries/fallbacks/error.svelte.js')).default;
export const imports = ["_app/immutable/nodes/1.CwhQAky3.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/ggIfGDPQ.js","_app/immutable/chunks/nEbfNkJh.js","_app/immutable/chunks/CPmvlhtF.js","_app/immutable/chunks/BX9MO-1l.js"];
export const imports = ["_app/immutable/nodes/1.BXG5ltEU.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/CDS-2UO6.js","_app/immutable/chunks/BfGs3WDN.js","_app/immutable/chunks/Dc4kZMuG.js","_app/immutable/chunks/BlBMKpZ6.js","_app/immutable/chunks/CW15Ts-p.js","_app/immutable/chunks/DTyTeadx.js"];
export const stylesheets = [];
export const fonts = [];
+2 -2
View File
@@ -2,7 +2,7 @@
export const index = 2;
let component_cache;
export const component = async () => component_cache ??= (await import('../entries/pages/_page.svelte.js')).default;
export const imports = ["_app/immutable/nodes/2.B4w5AQ-r.js","_app/immutable/chunks/D4nn9Y_6.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/nEbfNkJh.js","_app/immutable/chunks/zcqfpVBB.js","_app/immutable/chunks/BpNSSBPP.js","_app/immutable/chunks/uf3Is7Es.js","_app/immutable/chunks/Xjya7ye4.js","_app/immutable/chunks/DTd9pe6t.js"];
export const component = async () => component_cache ??= (await import('../entries/pages/_site_/_layout.svelte.js')).default;
export const imports = ["_app/immutable/nodes/2.Cn3ypPuH.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/BfGs3WDN.js","_app/immutable/chunks/By9q4dnk.js","_app/immutable/chunks/C2sKwo1m.js"];
export const stylesheets = [];
export const fonts = [];
+3 -5
View File
@@ -1,10 +1,8 @@
import * as server from '../entries/pages/logout/_page.server.ts.js';
export const index = 3;
let component_cache;
export const component = async () => component_cache ??= (await import('../entries/pages/logout/_page.svelte.js')).default;
export { server };
export const server_id = "src/routes/logout/+page.server.ts";
export const imports = ["_app/immutable/nodes/3.sctq0uPd.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/nEbfNkJh.js","_app/immutable/chunks/CoAkxMBS.js","_app/immutable/chunks/BX9MO-1l.js","_app/immutable/chunks/CPmvlhtF.js","_app/immutable/chunks/Xjya7ye4.js","_app/immutable/chunks/zcqfpVBB.js","_app/immutable/chunks/uf3Is7Es.js","_app/immutable/chunks/DTd9pe6t.js"];
export const component = async () => component_cache ??= (await import('../entries/pages/_page.svelte.js')).default;
export const imports = ["_app/immutable/nodes/3.Dvp2-Ekr.js","_app/immutable/chunks/D4nn9Y_6.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/BfGs3WDN.js","_app/immutable/chunks/C2sKwo1m.js","_app/immutable/chunks/CQe9XmLJ.js","_app/immutable/chunks/BIDFgmbM.js","_app/immutable/chunks/DecArsLH.js","_app/immutable/chunks/D7710T35.js","_app/immutable/chunks/BlBMKpZ6.js","_app/immutable/chunks/By9q4dnk.js","_app/immutable/chunks/BSLeMsiy.js"];
export const stylesheets = [];
export const fonts = [];
+4 -4
View File
@@ -1,10 +1,10 @@
import * as server from '../entries/pages/login/_page.server.ts.js';
import * as server from '../entries/pages/logout/_page.server.ts.js';
export const index = 4;
let component_cache;
export const component = async () => component_cache ??= (await import('../entries/pages/login/_page.svelte.js')).default;
export const component = async () => component_cache ??= (await import('../entries/pages/logout/_page.svelte.js')).default;
export { server };
export const server_id = "src/routes/login/+page.server.ts";
export const imports = ["_app/immutable/nodes/4.BG9kRLiv.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/nEbfNkJh.js","_app/immutable/chunks/CPmvlhtF.js","_app/immutable/chunks/zcqfpVBB.js","_app/immutable/chunks/BpNSSBPP.js","_app/immutable/chunks/CoAkxMBS.js","_app/immutable/chunks/BX9MO-1l.js","_app/immutable/chunks/Xjya7ye4.js","_app/immutable/chunks/uf3Is7Es.js","_app/immutable/chunks/DTd9pe6t.js","_app/immutable/chunks/CvA4ASMA.js"];
export const server_id = "src/routes/logout/+page.server.ts";
export const imports = ["_app/immutable/nodes/4.Dk1RIVGS.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/BfGs3WDN.js","_app/immutable/chunks/_58MWSf2.js","_app/immutable/chunks/CW15Ts-p.js","_app/immutable/chunks/DTyTeadx.js","_app/immutable/chunks/Dc4kZMuG.js","_app/immutable/chunks/BlBMKpZ6.js","_app/immutable/chunks/D7710T35.js","_app/immutable/chunks/DecArsLH.js","_app/immutable/chunks/By9q4dnk.js","_app/immutable/chunks/C2sKwo1m.js","_app/immutable/chunks/CQe9XmLJ.js","_app/immutable/chunks/BSLeMsiy.js"];
export const stylesheets = [];
export const fonts = [];
+10
View File
@@ -0,0 +1,10 @@
import * as server from '../entries/pages/users/_page.server.ts.js';
export const index = 5;
let component_cache;
export const component = async () => component_cache ??= (await import('../entries/pages/users/_page.svelte.js')).default;
export { server };
export const server_id = "src/routes/users/+page.server.ts";
export const imports = ["_app/immutable/nodes/5.DNte91Oq.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/BfGs3WDN.js","_app/immutable/chunks/Dc4kZMuG.js","_app/immutable/chunks/BlBMKpZ6.js","_app/immutable/chunks/CQe9XmLJ.js","_app/immutable/chunks/C2sKwo1m.js","_app/immutable/chunks/BVBXfAos.js","_app/immutable/chunks/BIDFgmbM.js","_app/immutable/chunks/B52PvkJe.js","_app/immutable/chunks/D7710T35.js","_app/immutable/chunks/C3gUTv4t.js","_app/immutable/chunks/By9q4dnk.js","_app/immutable/chunks/BSLeMsiy.js","_app/immutable/chunks/DecArsLH.js"];
export const stylesheets = [];
export const fonts = [];
+10
View File
@@ -0,0 +1,10 @@
import * as server from '../entries/pages/users/_id_/_page.server.ts.js';
export const index = 6;
let component_cache;
export const component = async () => component_cache ??= (await import('../entries/pages/users/_id_/_page.svelte.js')).default;
export { server };
export const server_id = "src/routes/users/[id]/+page.server.ts";
export const imports = ["_app/immutable/nodes/6.Vre0jbUi.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/BfGs3WDN.js","_app/immutable/chunks/Dc4kZMuG.js","_app/immutable/chunks/BlBMKpZ6.js","_app/immutable/chunks/CQe9XmLJ.js","_app/immutable/chunks/C2sKwo1m.js","_app/immutable/chunks/BIDFgmbM.js","_app/immutable/chunks/B52PvkJe.js","_app/immutable/chunks/C3gUTv4t.js","_app/immutable/chunks/By9q4dnk.js","_app/immutable/chunks/D7710T35.js","_app/immutable/chunks/BSLeMsiy.js","_app/immutable/chunks/DecArsLH.js"];
export const stylesheets = [];
export const fonts = [];
+10
View File
@@ -0,0 +1,10 @@
import * as server from '../entries/pages/_site_/_page.server.ts.js';
export const index = 7;
let component_cache;
export const component = async () => component_cache ??= (await import('../entries/pages/_site_/_page.svelte.js')).default;
export { server };
export const server_id = "src/routes/[site]/+page.server.ts";
export const imports = ["_app/immutable/nodes/7.3uaraxa_.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/BfGs3WDN.js","_app/immutable/chunks/B52PvkJe.js","_app/immutable/chunks/D7710T35.js","_app/immutable/chunks/BlBMKpZ6.js","_app/immutable/chunks/DecArsLH.js","_app/immutable/chunks/By9q4dnk.js","_app/immutable/chunks/C2sKwo1m.js","_app/immutable/chunks/CQe9XmLJ.js","_app/immutable/chunks/BSLeMsiy.js"];
export const stylesheets = [];
export const fonts = [];
+10
View File
@@ -0,0 +1,10 @@
import * as server from '../entries/pages/login/_page.server.ts.js';
export const index = 8;
let component_cache;
export const component = async () => component_cache ??= (await import('../entries/pages/login/_page.svelte.js')).default;
export { server };
export const server_id = "src/routes/login/+page.server.ts";
export const imports = ["_app/immutable/nodes/8.CQbjEMpm.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/BfGs3WDN.js","_app/immutable/chunks/Dc4kZMuG.js","_app/immutable/chunks/BlBMKpZ6.js","_app/immutable/chunks/CQe9XmLJ.js","_app/immutable/chunks/C2sKwo1m.js","_app/immutable/chunks/BIDFgmbM.js","_app/immutable/chunks/_58MWSf2.js","_app/immutable/chunks/CW15Ts-p.js","_app/immutable/chunks/DTyTeadx.js","_app/immutable/chunks/D7710T35.js","_app/immutable/chunks/DecArsLH.js","_app/immutable/chunks/By9q4dnk.js","_app/immutable/chunks/BSLeMsiy.js","_app/immutable/chunks/BcNtEwNR.js","_app/immutable/chunks/C3gUTv4t.js"];
export const stylesheets = [];
export const fonts = [];
+557
View File
@@ -0,0 +1,557 @@
import { get_request_store, with_request_store } from "@sveltejs/kit/internal/server";
import { parse } from "devalue";
import { error, json } from "@sveltejs/kit";
import { u as stringify_remote_arg, v as flatten_issues, w as create_field_proxy, x as normalize_issue, y as set_nested_value, z as deep_set, k as stringify, f as create_remote_key, h as handle_error_and_jsonify } from "./chunks/shared.js";
import { ValidationError, HttpError, SvelteKitError } from "@sveltejs/kit/internal";
import { b as browser } from "./chunks/false.js";
import { b as base, c as app_dir, p as prerendering } from "./chunks/environment.js";
function create_validator(validate_or_fn, maybe_fn) {
if (!maybe_fn) {
return (arg) => {
if (arg !== void 0) {
error(400, "Bad Request");
}
};
}
if (validate_or_fn === "unchecked") {
return (arg) => arg;
}
if ("~standard" in validate_or_fn) {
return async (arg) => {
const { event, state } = get_request_store();
const result = await validate_or_fn["~standard"].validate(arg);
if (result.issues) {
error(
400,
await state.handleValidationError({
issues: result.issues,
event
})
);
}
return result.value;
};
}
throw new Error(
'Invalid validator passed to remote function. Expected "unchecked" or a Standard Schema (https://standardschema.dev)'
);
}
async function get_response(info, arg, state, get_result) {
await 0;
const cache = get_cache(info, state);
return cache[stringify_remote_arg(arg, state.transport)] ??= get_result();
}
function parse_remote_response(data, transport) {
const revivers = {};
for (const key in transport) {
revivers[key] = transport[key].decode;
}
return parse(data, revivers);
}
async function run_remote_function(event, state, allow_cookies, get_input, fn) {
const store = {
event: {
...event,
setHeaders: () => {
throw new Error("setHeaders is not allowed in remote functions");
},
cookies: {
...event.cookies,
set: (name, value, opts) => {
if (!allow_cookies) {
throw new Error("Cannot set cookies in `query` or `prerender` functions");
}
if (opts.path && !opts.path.startsWith("/")) {
throw new Error("Cookies set in remote functions must have an absolute path");
}
return event.cookies.set(name, value, opts);
},
delete: (name, opts) => {
if (!allow_cookies) {
throw new Error("Cannot delete cookies in `query` or `prerender` functions");
}
if (opts.path && !opts.path.startsWith("/")) {
throw new Error("Cookies deleted in remote functions must have an absolute path");
}
return event.cookies.delete(name, opts);
}
}
},
state: {
...state,
is_in_remote_function: true
}
};
const input = await with_request_store(store, get_input);
return with_request_store(store, () => fn(input));
}
function get_cache(info, state = get_request_store().state) {
let cache = state.remote_data?.get(info);
if (cache === void 0) {
cache = {};
(state.remote_data ??= /* @__PURE__ */ new Map()).set(info, cache);
}
return cache;
}
// @__NO_SIDE_EFFECTS__
function command(validate_or_fn, maybe_fn) {
const fn = maybe_fn ?? validate_or_fn;
const validate = create_validator(validate_or_fn, maybe_fn);
const __ = { type: "command", id: "", name: "" };
const wrapper = (arg) => {
const { event, state } = get_request_store();
if (state.is_endpoint_request) {
if (!["POST", "PUT", "PATCH", "DELETE"].includes(event.request.method)) {
throw new Error(
`Cannot call a command (\`${__.name}(${maybe_fn ? "..." : ""})\`) from a ${event.request.method} handler`
);
}
} else if (!event.isRemoteRequest) {
throw new Error(
`Cannot call a command (\`${__.name}(${maybe_fn ? "..." : ""})\`) during server-side rendering`
);
}
state.refreshes ??= {};
const promise = Promise.resolve(
run_remote_function(event, state, true, () => validate(arg), fn)
);
promise.updates = () => {
throw new Error(`Cannot call '${__.name}(...).updates(...)' on the server`);
};
return (
/** @type {ReturnType<RemoteCommand<Input, Output>>} */
promise
);
};
Object.defineProperty(wrapper, "__", { value: __ });
Object.defineProperty(wrapper, "pending", {
get: () => 0
});
return wrapper;
}
// @__NO_SIDE_EFFECTS__
function form(validate_or_fn, maybe_fn) {
const fn = maybe_fn ?? validate_or_fn;
const schema = !maybe_fn || validate_or_fn === "unchecked" ? null : (
/** @type {any} */
validate_or_fn
);
function create_instance(key) {
const instance = {};
instance.method = "POST";
Object.defineProperty(instance, "enhance", {
value: () => {
return { action: instance.action, method: instance.method };
}
});
const __ = {
type: "form",
name: "",
id: "",
fn: async (data, meta, form_data) => {
const output = {};
output.submission = true;
const { event, state } = get_request_store();
const validated = await schema?.["~standard"].validate(data);
if (meta.validate_only) {
return validated?.issues?.map((issue) => normalize_issue(issue, true)) ?? [];
}
if (validated?.issues !== void 0) {
handle_issues(output, validated.issues, form_data);
} else {
if (validated !== void 0) {
data = validated.value;
}
state.refreshes ??= {};
const issue = create_issues();
try {
output.result = await run_remote_function(
event,
state,
true,
() => data,
(data2) => !maybe_fn ? fn() : fn(data2, issue)
);
} catch (e) {
if (e instanceof ValidationError) {
handle_issues(output, e.issues, form_data);
} else {
throw e;
}
}
}
if (!event.isRemoteRequest) {
get_cache(__, state)[""] ??= output;
}
return output;
}
};
Object.defineProperty(instance, "__", { value: __ });
Object.defineProperty(instance, "action", {
get: () => `?/remote=${__.id}`,
enumerable: true
});
Object.defineProperty(instance, "fields", {
get() {
const data = get_cache(__)?.[""];
const issues = flatten_issues(data?.issues ?? []);
return create_field_proxy(
{},
() => data?.input ?? {},
(path, value) => {
if (data?.submission) {
return;
}
const input = path.length === 0 ? value : deep_set(data?.input ?? {}, path.map(String), value);
(get_cache(__)[""] ??= {}).input = input;
},
() => issues
);
}
});
Object.defineProperty(instance, "result", {
get() {
try {
return get_cache(__)?.[""]?.result;
} catch {
return void 0;
}
}
});
Object.defineProperty(instance, "pending", {
get: () => 0
});
Object.defineProperty(instance, "preflight", {
// preflight is a noop on the server
value: () => instance
});
Object.defineProperty(instance, "validate", {
value: () => {
throw new Error("Cannot call validate() on the server");
}
});
if (key == void 0) {
Object.defineProperty(instance, "for", {
/** @type {RemoteForm<any, any>['for']} */
value: (key2) => {
const { state } = get_request_store();
const cache_key = __.id + "|" + JSON.stringify(key2);
let instance2 = (state.form_instances ??= /* @__PURE__ */ new Map()).get(cache_key);
if (!instance2) {
instance2 = create_instance(key2);
instance2.__.id = `${__.id}/${encodeURIComponent(JSON.stringify(key2))}`;
instance2.__.name = __.name;
state.form_instances.set(cache_key, instance2);
}
return instance2;
}
});
}
return instance;
}
return create_instance();
}
function handle_issues(output, issues, form_data) {
output.issues = issues.map((issue) => normalize_issue(issue, true));
if (form_data) {
output.input = {};
for (let key of form_data.keys()) {
if (/^[.\]]?_/.test(key)) continue;
const is_array = key.endsWith("[]");
const values = form_data.getAll(key).filter((value) => typeof value === "string");
if (is_array) key = key.slice(0, -2);
set_nested_value(
/** @type {Record<string, any>} */
output.input,
key,
is_array ? values : values[0]
);
}
}
}
function create_issues() {
return (
/** @type {InvalidField<any>} */
new Proxy(
/** @param {string} message */
(message) => {
if (typeof message !== "string") {
throw new Error(
"`invalid` should now be imported from `@sveltejs/kit` to throw validation issues. The second parameter provided to the form function (renamed to `issue`) is still used to construct issues, e.g. `invalid(issue.field('message'))`. For more info see https://github.com/sveltejs/kit/pulls/14768"
);
}
return create_issue(message);
},
{
get(target, prop) {
if (typeof prop === "symbol") return (
/** @type {any} */
target[prop]
);
return create_issue_proxy(prop, []);
}
}
)
);
function create_issue(message, path = []) {
return {
message,
path
};
}
function create_issue_proxy(key, path) {
const new_path = [...path, key];
const issue_func = (message) => create_issue(message, new_path);
return new Proxy(issue_func, {
get(target, prop) {
if (typeof prop === "symbol") return (
/** @type {any} */
target[prop]
);
if (/^\d+$/.test(prop)) {
return create_issue_proxy(parseInt(prop, 10), new_path);
}
return create_issue_proxy(prop, new_path);
}
});
}
}
// @__NO_SIDE_EFFECTS__
function prerender(validate_or_fn, fn_or_options, maybe_options) {
const maybe_fn = typeof fn_or_options === "function" ? fn_or_options : void 0;
const options = maybe_options ?? (maybe_fn ? void 0 : fn_or_options);
const fn = maybe_fn ?? validate_or_fn;
const validate = create_validator(validate_or_fn, maybe_fn);
const __ = {
type: "prerender",
id: "",
name: "",
has_arg: !!maybe_fn,
inputs: options?.inputs,
dynamic: options?.dynamic
};
const wrapper = (arg) => {
const promise = (async () => {
const { event, state } = get_request_store();
const payload = stringify_remote_arg(arg, state.transport);
const id = __.id;
const url = `${base}/${app_dir}/remote/${id}${payload ? `/${payload}` : ""}`;
if (!state.prerendering && !browser && !event.isRemoteRequest) {
try {
return await get_response(__, arg, state, async () => {
const key = stringify_remote_arg(arg, state.transport);
const cache = get_cache(__, state);
const promise3 = cache[key] ??= fetch(new URL(url, event.url.origin).href).then(
async (response) => {
if (!response.ok) {
throw new Error("Prerendered response not found");
}
const prerendered = await response.json();
if (prerendered.type === "error") {
error(prerendered.status, prerendered.error);
}
return prerendered.result;
}
);
return parse_remote_response(await promise3, state.transport);
});
} catch {
}
}
if (state.prerendering?.remote_responses.has(url)) {
return (
/** @type {Promise<any>} */
state.prerendering.remote_responses.get(url)
);
}
const promise2 = get_response(
__,
arg,
state,
() => run_remote_function(event, state, false, () => validate(arg), fn)
);
if (state.prerendering) {
state.prerendering.remote_responses.set(url, promise2);
}
const result = await promise2;
if (state.prerendering) {
const body = { type: "result", result: stringify(result, state.transport) };
state.prerendering.dependencies.set(url, {
body: JSON.stringify(body),
response: json(body)
});
}
return result;
})();
promise.catch(() => {
});
return (
/** @type {RemoteResource<Output>} */
promise
);
};
Object.defineProperty(wrapper, "__", { value: __ });
return wrapper;
}
// @__NO_SIDE_EFFECTS__
function query(validate_or_fn, maybe_fn) {
const fn = maybe_fn ?? validate_or_fn;
const validate = create_validator(validate_or_fn, maybe_fn);
const __ = { type: "query", id: "", name: "" };
const wrapper = (arg) => {
if (prerendering) {
throw new Error(
`Cannot call query '${__.name}' while prerendering, as prerendered pages need static data. Use 'prerender' from $app/server instead`
);
}
const { event, state } = get_request_store();
const get_remote_function_result = () => run_remote_function(event, state, false, () => validate(arg), fn);
const promise = get_response(__, arg, state, get_remote_function_result);
promise.catch(() => {
});
promise.set = (value) => update_refresh_value(get_refresh_context(__, "set", arg), value);
promise.refresh = () => {
const refresh_context = get_refresh_context(__, "refresh", arg);
const is_immediate_refresh = !refresh_context.cache[refresh_context.cache_key];
const value = is_immediate_refresh ? promise : get_remote_function_result();
return update_refresh_value(refresh_context, value, is_immediate_refresh);
};
promise.withOverride = () => {
throw new Error(`Cannot call '${__.name}.withOverride()' on the server`);
};
return (
/** @type {RemoteQuery<Output>} */
promise
);
};
Object.defineProperty(wrapper, "__", { value: __ });
return wrapper;
}
// @__NO_SIDE_EFFECTS__
function batch(validate_or_fn, maybe_fn) {
const fn = maybe_fn ?? validate_or_fn;
const validate = create_validator(validate_or_fn, maybe_fn);
const __ = {
type: "query_batch",
id: "",
name: "",
run: async (args, options) => {
const { event, state } = get_request_store();
return run_remote_function(
event,
state,
false,
async () => Promise.all(args.map(validate)),
async (input) => {
const get_result = await fn(input);
return Promise.all(
input.map(async (arg, i) => {
try {
return { type: "result", data: get_result(arg, i) };
} catch (error2) {
return {
type: "error",
error: await handle_error_and_jsonify(event, state, options, error2),
status: error2 instanceof HttpError || error2 instanceof SvelteKitError ? error2.status : 500
};
}
})
);
}
);
}
};
let batching = { args: [], resolvers: [] };
const wrapper = (arg) => {
if (prerendering) {
throw new Error(
`Cannot call query.batch '${__.name}' while prerendering, as prerendered pages need static data. Use 'prerender' from $app/server instead`
);
}
const { event, state } = get_request_store();
const get_remote_function_result = () => {
return new Promise((resolve, reject) => {
batching.args.push(arg);
batching.resolvers.push({ resolve, reject });
if (batching.args.length > 1) return;
setTimeout(async () => {
const batched = batching;
batching = { args: [], resolvers: [] };
try {
return await run_remote_function(
event,
state,
false,
async () => Promise.all(batched.args.map(validate)),
async (input) => {
const get_result = await fn(input);
for (let i = 0; i < batched.resolvers.length; i++) {
try {
batched.resolvers[i].resolve(get_result(input[i], i));
} catch (error2) {
batched.resolvers[i].reject(error2);
}
}
}
);
} catch (error2) {
for (const resolver of batched.resolvers) {
resolver.reject(error2);
}
}
}, 0);
});
};
const promise = get_response(__, arg, state, get_remote_function_result);
promise.catch(() => {
});
promise.set = (value) => update_refresh_value(get_refresh_context(__, "set", arg), value);
promise.refresh = () => {
const refresh_context = get_refresh_context(__, "refresh", arg);
const is_immediate_refresh = !refresh_context.cache[refresh_context.cache_key];
const value = is_immediate_refresh ? promise : get_remote_function_result();
return update_refresh_value(refresh_context, value, is_immediate_refresh);
};
promise.withOverride = () => {
throw new Error(`Cannot call '${__.name}.withOverride()' on the server`);
};
return (
/** @type {RemoteQuery<Output>} */
promise
);
};
Object.defineProperty(wrapper, "__", { value: __ });
return wrapper;
}
Object.defineProperty(query, "batch", { value: batch, enumerable: true });
function get_refresh_context(__, action, arg) {
const { state } = get_request_store();
const { refreshes } = state;
if (!refreshes) {
const name = __.type === "query_batch" ? `query.batch '${__.name}'` : `query '${__.name}'`;
throw new Error(
`Cannot call ${action} on ${name} because it is not executed in the context of a command/form remote function`
);
}
const cache = get_cache(__, state);
const cache_key = stringify_remote_arg(arg, state.transport);
const refreshes_key = create_remote_key(__.id, cache_key);
return { __, state, refreshes, refreshes_key, cache, cache_key };
}
function update_refresh_value({ __, refreshes, refreshes_key, cache, cache_key }, value, is_immediate_refresh = false) {
const promise = Promise.resolve(value);
if (!is_immediate_refresh) {
cache[cache_key] = promise;
}
if (__.id) {
refreshes[refreshes_key] = promise;
}
return promise.then(() => {
});
}
export {
command,
form,
prerender,
query
};
+11 -4
View File
@@ -5,15 +5,22 @@ export const nodes = [
() => import('./nodes/1'),
() => import('./nodes/2'),
() => import('./nodes/3'),
() => import('./nodes/4')
() => import('./nodes/4'),
() => import('./nodes/5'),
() => import('./nodes/6'),
() => import('./nodes/7'),
() => import('./nodes/8')
];
export const server_loads = [0];
export const dictionary = {
"/": [2],
"/login": [~4],
"/logout": [3]
"/": [3],
"/login": [~8],
"/logout": [4],
"/users": [~5],
"/users/[id]": [~6],
"/[site]": [~7,[2]]
};
export const hooks = {
@@ -1 +1 @@
export { default as component } from "../../../../src/routes/+page.svelte";
export { default as component } from "../../../../src/routes/[site]/+layout.svelte";
@@ -1 +1 @@
export { default as component } from "../../../../src/routes/logout/+page.svelte";
export { default as component } from "../../../../src/routes/+page.svelte";
@@ -1 +1 @@
export { default as component } from "../../../../src/routes/login/+page.svelte";
export { default as component } from "../../../../src/routes/logout/+page.svelte";
@@ -0,0 +1 @@
export { default as component } from "../../../../src/routes/users/+page.svelte";
@@ -0,0 +1 @@
export { default as component } from "../../../../src/routes/users/[id]/+page.svelte";
@@ -0,0 +1 @@
export { default as component } from "../../../../src/routes/[site]/+page.svelte";
@@ -0,0 +1 @@
export { default as component } from "../../../../src/routes/login/+page.svelte";
+18 -4
View File
@@ -7,16 +7,30 @@ export const nodes = [
() => import('./nodes/3'),
() => import('./nodes/4'),
() => import('./nodes/5'),
() => import('./nodes/6')
() => import('./nodes/6'),
() => import('./nodes/7'),
() => import('./nodes/8'),
() => import('./nodes/9'),
() => import('./nodes/10'),
() => import('./nodes/11'),
() => import('./nodes/12'),
() => import('./nodes/13')
];
export const server_loads = [0];
export const dictionary = {
"/": [3],
"/login": [~6],
"/logout": [~4],
"/[site]": [~5,[2]]
"/login": [~5],
"/logout": [~6],
"/notifications": [~7],
"/profile": [8],
"/training": [~9],
"/training/admin": [~11],
"/training/[id]": [~10],
"/users": [~12],
"/users/[id]": [~13],
"/[site]": [~4,[2]]
};
export const hooks = {
+1 -1
View File
@@ -1 +1 @@
export { default as component } from "../../../../src/routes/logout/+page.svelte";
export { default as component } from "../../../../src/routes/[site]/+page.svelte";
+1 -1
View File
@@ -1 +1 @@
export { default as component } from "../../../../src/routes/[site]/+page.svelte";
export { default as component } from "../../../../src/routes/login/+page.svelte";
+1 -1
View File
@@ -1 +1 @@
export { default as component } from "../../../../src/routes/login/+page.svelte";
export { default as component } from "../../../../src/routes/logout/+page.svelte";
+1
View File
@@ -0,0 +1 @@
export { default as component } from "../../../../src/routes/notifications/+page.svelte";
+1
View File
@@ -0,0 +1 @@
export { default as component } from "../../../../src/routes/profile/+page.svelte";
+3 -3
View File
@@ -19,12 +19,12 @@ export const options = {
preload_strategy: "modulepreload",
root,
service_worker: false,
service_worker_options: undefined,
service_worker_options: null,
templates: {
app: ({ head, body, assets, nonce, env }) => "<!DOCTYPE html>\n<html lang=\"en\">\n <head>\n <meta charset=\"utf-8\" />\n <link rel=\"icon\" href=\"" + assets + "/favicon.png\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=5, viewport-fit=cover\" />\n " + head + "\n </head>\n <body data-sveltekit-preload-data=\"hover\">\n <div style=\"display: contents\">" + body + "</div>\n </body>\n</html>\n",
app: ({ head, body, assets, nonce, env }) => "<!DOCTYPE html>\n<html lang=\"en\">\n <head>\n <meta charset=\"utf-8\" />\n <link rel=\"icon\" href=\"" + assets + "/favicon.png\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=5, viewport-fit=cover\" />\n <meta name=\"theme-color\" content=\"#0f172a\" />\n " + head + "\n </head>\n <body data-sveltekit-preload-data=\"hover\">\n <div style=\"display: contents\">" + body + "</div>\n </body>\n</html>\n",
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"
},
version_hash: "xmp3r"
version_hash: "sskapp"
};
export async function get_hooks() {
+18 -4
View File
@@ -27,19 +27,33 @@ export {};
declare module "$app/types" {
export interface AppTypes {
RouteId(): "/" | "/api" | "/api/darkmode" | "/login" | "/logout" | "/[site]";
RouteId(): "/" | "/api" | "/api/darkmode" | "/api/notifications" | "/api/notifications/[id]" | "/api/sso" | "/api/sso/exchange" | "/login" | "/logout" | "/notifications" | "/profile" | "/training" | "/training/admin" | "/training/[id]" | "/users" | "/users/[id]" | "/[site]";
RouteParams(): {
"/api/notifications/[id]": { id: string };
"/training/[id]": { id: string };
"/users/[id]": { id: string };
"/[site]": { site: string }
};
LayoutParams(): {
"/": { site?: string };
"/api": Record<string, never>;
"/": { id?: string; site?: string };
"/api": { id?: string };
"/api/darkmode": Record<string, never>;
"/api/notifications": { id?: string };
"/api/notifications/[id]": { id: string };
"/api/sso": Record<string, never>;
"/api/sso/exchange": Record<string, never>;
"/login": Record<string, never>;
"/logout": Record<string, never>;
"/notifications": Record<string, never>;
"/profile": Record<string, never>;
"/training": { id?: string };
"/training/admin": Record<string, never>;
"/training/[id]": { id: string };
"/users": { id?: string };
"/users/[id]": { id: string };
"/[site]": { site: string }
};
Pathname(): "/" | "/api/darkmode" | "/login" | "/logout" | `/${string}` & {};
Pathname(): "/" | "/api/darkmode" | "/api/notifications" | `/api/notifications/${string}` & {} | "/api/sso/exchange" | "/login" | "/logout" | "/notifications" | "/profile" | "/training" | "/training/admin" | `/training/${string}` & {} | "/users" | `/users/${string}` & {} | `/${string}` & {};
ResolvedPathname(): `${"" | `/${string}`}${ReturnType<AppTypes['Pathname']>}`;
Asset(): string & {};
}
+275 -108
View File
@@ -1,225 +1,392 @@
{
"../../../../../@vite-plugin-pwa/virtual:pwa-register": {
"file": "_app/immutable/chunks/QRbP8TAd.js",
"name": "virtual_pwa-register",
"src": "../../../../../@vite-plugin-pwa/virtual:pwa-register",
"isDynamicEntry": true,
"imports": [
"_D4nn9Y_6.js"
],
"dynamicImports": [
"node_modules/workbox-window/build/workbox-window.prod.es5.mjs"
]
},
".svelte-kit/generated/client-optimized/app.js": {
"file": "_app/immutable/entry/app.D90yBOXx.js",
"file": "_app/immutable/entry/app.DbqfQuH9.js",
"name": "entry/app",
"src": ".svelte-kit/generated/client-optimized/app.js",
"isEntry": true,
"imports": [
"_D4nn9Y_6.js",
"_nEbfNkJh.js",
"_CPmvlhtF.js",
"_BfGs3WDN.js",
"_Dc4kZMuG.js",
"_Bzak7iHL.js",
"_zcqfpVBB.js",
"_BpNSSBPP.js",
"_DTd9pe6t.js"
"_DTyTeadx.js",
"_CQe9XmLJ.js",
"_BIDFgmbM.js",
"_BSLeMsiy.js"
],
"dynamicImports": [
".svelte-kit/generated/client-optimized/nodes/0.js",
".svelte-kit/generated/client-optimized/nodes/1.js",
".svelte-kit/generated/client-optimized/nodes/2.js",
".svelte-kit/generated/client-optimized/nodes/3.js",
".svelte-kit/generated/client-optimized/nodes/4.js"
".svelte-kit/generated/client-optimized/nodes/4.js",
".svelte-kit/generated/client-optimized/nodes/5.js",
".svelte-kit/generated/client-optimized/nodes/6.js",
".svelte-kit/generated/client-optimized/nodes/7.js",
".svelte-kit/generated/client-optimized/nodes/8.js"
]
},
".svelte-kit/generated/client-optimized/nodes/0.js": {
"file": "_app/immutable/nodes/0.DsCqkoz9.js",
"file": "_app/immutable/nodes/0.gS3vEFmL.js",
"name": "nodes/0",
"src": ".svelte-kit/generated/client-optimized/nodes/0.js",
"isEntry": true,
"isDynamicEntry": true,
"imports": [
"_D4nn9Y_6.js",
"_Bzak7iHL.js",
"_CPmvlhtF.js",
"_nEbfNkJh.js",
"_zcqfpVBB.js",
"_Xjya7ye4.js",
"_BpNSSBPP.js",
"_CoAkxMBS.js",
"_BX9MO-1l.js",
"_CvA4ASMA.js",
"_ggIfGDPQ.js"
"_DTyTeadx.js",
"_BfGs3WDN.js",
"_Dc4kZMuG.js",
"_CQe9XmLJ.js",
"_By9q4dnk.js",
"_BIDFgmbM.js",
"_B52PvkJe.js",
"__58MWSf2.js",
"_BlBMKpZ6.js",
"_CW15Ts-p.js",
"_D7710T35.js",
"_BcNtEwNR.js",
"_C2sKwo1m.js",
"_CDS-2UO6.js",
"_8KX3cYnK.js"
],
"dynamicImports": [
"../../../../../@vite-plugin-pwa/virtual:pwa-register"
],
"css": [
"_app/immutable/assets/0.Ci1WSy1v.css"
"_app/immutable/assets/0.CY2MjnKQ.css"
]
},
".svelte-kit/generated/client-optimized/nodes/1.js": {
"file": "_app/immutable/nodes/1.CwhQAky3.js",
"file": "_app/immutable/nodes/1.BXG5ltEU.js",
"name": "nodes/1",
"src": ".svelte-kit/generated/client-optimized/nodes/1.js",
"isEntry": true,
"isDynamicEntry": true,
"imports": [
"_Bzak7iHL.js",
"_ggIfGDPQ.js",
"_nEbfNkJh.js",
"_CPmvlhtF.js",
"_BX9MO-1l.js"
"_CDS-2UO6.js",
"_BfGs3WDN.js",
"_Dc4kZMuG.js",
"_CW15Ts-p.js"
]
},
".svelte-kit/generated/client-optimized/nodes/2.js": {
"file": "_app/immutable/nodes/2.B4w5AQ-r.js",
"file": "_app/immutable/nodes/2.Cn3ypPuH.js",
"name": "nodes/2",
"src": ".svelte-kit/generated/client-optimized/nodes/2.js",
"isEntry": true,
"isDynamicEntry": true,
"imports": [
"_D4nn9Y_6.js",
"_Bzak7iHL.js",
"_nEbfNkJh.js",
"_zcqfpVBB.js",
"_BpNSSBPP.js",
"_uf3Is7Es.js"
],
"dynamicImports": [
"src/routes/HomeWithDialog.svelte"
"_BfGs3WDN.js",
"_By9q4dnk.js"
]
},
".svelte-kit/generated/client-optimized/nodes/3.js": {
"file": "_app/immutable/nodes/3.sctq0uPd.js",
"file": "_app/immutable/nodes/3.Dvp2-Ekr.js",
"name": "nodes/3",
"src": ".svelte-kit/generated/client-optimized/nodes/3.js",
"isEntry": true,
"isDynamicEntry": true,
"imports": [
"_D4nn9Y_6.js",
"_Bzak7iHL.js",
"_nEbfNkJh.js",
"_CoAkxMBS.js",
"_Xjya7ye4.js",
"_uf3Is7Es.js"
"_BfGs3WDN.js",
"_C2sKwo1m.js",
"_CQe9XmLJ.js",
"_BIDFgmbM.js",
"_DecArsLH.js"
],
"dynamicImports": [
"src/routes/HomeWithDialog.svelte"
]
},
".svelte-kit/generated/client-optimized/nodes/4.js": {
"file": "_app/immutable/nodes/4.BG9kRLiv.js",
"file": "_app/immutable/nodes/4.Dk1RIVGS.js",
"name": "nodes/4",
"src": ".svelte-kit/generated/client-optimized/nodes/4.js",
"isEntry": true,
"isDynamicEntry": true,
"imports": [
"_Bzak7iHL.js",
"_nEbfNkJh.js",
"_CPmvlhtF.js",
"_zcqfpVBB.js",
"_BpNSSBPP.js",
"_CoAkxMBS.js",
"_Xjya7ye4.js",
"_uf3Is7Es.js",
"_CvA4ASMA.js",
"_DTd9pe6t.js"
"_BfGs3WDN.js",
"__58MWSf2.js",
"_D7710T35.js",
"_DecArsLH.js"
]
},
"_BX9MO-1l.js": {
"file": "_app/immutable/chunks/BX9MO-1l.js",
"name": "entry",
".svelte-kit/generated/client-optimized/nodes/5.js": {
"file": "_app/immutable/nodes/5.DNte91Oq.js",
"name": "nodes/5",
"src": ".svelte-kit/generated/client-optimized/nodes/5.js",
"isEntry": true,
"isDynamicEntry": true,
"imports": [
"_CPmvlhtF.js",
"_nEbfNkJh.js"
"_Bzak7iHL.js",
"_BfGs3WDN.js",
"_Dc4kZMuG.js",
"_CQe9XmLJ.js",
"_BVBXfAos.js",
"_BIDFgmbM.js",
"_B52PvkJe.js",
"_D7710T35.js",
"_C3gUTv4t.js",
"_By9q4dnk.js",
"_BSLeMsiy.js",
"_DecArsLH.js"
]
},
"_BpNSSBPP.js": {
"file": "_app/immutable/chunks/BpNSSBPP.js",
".svelte-kit/generated/client-optimized/nodes/6.js": {
"file": "_app/immutable/nodes/6.Vre0jbUi.js",
"name": "nodes/6",
"src": ".svelte-kit/generated/client-optimized/nodes/6.js",
"isEntry": true,
"isDynamicEntry": true,
"imports": [
"_Bzak7iHL.js",
"_BfGs3WDN.js",
"_Dc4kZMuG.js",
"_CQe9XmLJ.js",
"_BIDFgmbM.js",
"_B52PvkJe.js",
"_C3gUTv4t.js",
"_DecArsLH.js"
]
},
".svelte-kit/generated/client-optimized/nodes/7.js": {
"file": "_app/immutable/nodes/7.3uaraxa_.js",
"name": "nodes/7",
"src": ".svelte-kit/generated/client-optimized/nodes/7.js",
"isEntry": true,
"isDynamicEntry": true,
"imports": [
"_Bzak7iHL.js",
"_BfGs3WDN.js",
"_B52PvkJe.js",
"_D7710T35.js",
"_DecArsLH.js"
]
},
".svelte-kit/generated/client-optimized/nodes/8.js": {
"file": "_app/immutable/nodes/8.CQbjEMpm.js",
"name": "nodes/8",
"src": ".svelte-kit/generated/client-optimized/nodes/8.js",
"isEntry": true,
"isDynamicEntry": true,
"imports": [
"_Bzak7iHL.js",
"_BfGs3WDN.js",
"_Dc4kZMuG.js",
"_CQe9XmLJ.js",
"_BIDFgmbM.js",
"__58MWSf2.js",
"_D7710T35.js",
"_DecArsLH.js",
"_BcNtEwNR.js",
"_BSLeMsiy.js",
"_C3gUTv4t.js"
]
},
"_8KX3cYnK.js": {
"file": "_app/immutable/chunks/8KX3cYnK.js",
"name": "sites"
},
"_B52PvkJe.js": {
"file": "_app/immutable/chunks/B52PvkJe.js",
"name": "svelte-head",
"imports": [
"_BfGs3WDN.js"
]
},
"_BIDFgmbM.js": {
"file": "_app/immutable/chunks/BIDFgmbM.js",
"name": "svelte-component",
"imports": [
"_nEbfNkJh.js",
"_zcqfpVBB.js"
"_BfGs3WDN.js",
"_C2sKwo1m.js"
]
},
"_BSLeMsiy.js": {
"file": "_app/immutable/chunks/BSLeMsiy.js",
"name": "this",
"imports": [
"_BfGs3WDN.js"
]
},
"_BVBXfAos.js": {
"file": "_app/immutable/chunks/BVBXfAos.js",
"name": "each",
"imports": [
"_BfGs3WDN.js"
]
},
"_BcNtEwNR.js": {
"file": "_app/immutable/chunks/BcNtEwNR.js",
"name": "label",
"imports": [
"_BfGs3WDN.js",
"_Bzak7iHL.js",
"_BIDFgmbM.js",
"_CQe9XmLJ.js",
"_D7710T35.js",
"_By9q4dnk.js"
]
},
"_BfGs3WDN.js": {
"file": "_app/immutable/chunks/BfGs3WDN.js",
"name": "template"
},
"_BlBMKpZ6.js": {
"file": "_app/immutable/chunks/BlBMKpZ6.js",
"name": "events",
"imports": [
"_BfGs3WDN.js"
]
},
"_By9q4dnk.js": {
"file": "_app/immutable/chunks/By9q4dnk.js",
"name": "snippet",
"imports": [
"_BfGs3WDN.js",
"_C2sKwo1m.js"
]
},
"_Bzak7iHL.js": {
"file": "_app/immutable/chunks/Bzak7iHL.js",
"name": "disclose-version"
},
"_CPmvlhtF.js": {
"file": "_app/immutable/chunks/CPmvlhtF.js",
"name": "index-client",
"_C2sKwo1m.js": {
"file": "_app/immutable/chunks/C2sKwo1m.js",
"name": "branches",
"imports": [
"_nEbfNkJh.js"
"_BfGs3WDN.js"
]
},
"_CoAkxMBS.js": {
"file": "_app/immutable/chunks/CoAkxMBS.js",
"name": "forms",
"_C3gUTv4t.js": {
"file": "_app/immutable/chunks/C3gUTv4t.js",
"name": "card-title",
"imports": [
"_nEbfNkJh.js",
"_BX9MO-1l.js"
]
},
"_CvA4ASMA.js": {
"file": "_app/immutable/chunks/CvA4ASMA.js",
"name": "label",
"imports": [
"_nEbfNkJh.js",
"_Bzak7iHL.js",
"_BpNSSBPP.js",
"_zcqfpVBB.js",
"_Xjya7ye4.js"
"_BfGs3WDN.js",
"_By9q4dnk.js",
"_D7710T35.js",
"_BSLeMsiy.js",
"_CQe9XmLJ.js"
]
},
"_CDS-2UO6.js": {
"file": "_app/immutable/chunks/CDS-2UO6.js",
"name": "legacy",
"imports": [
"_BfGs3WDN.js"
]
},
"_CQe9XmLJ.js": {
"file": "_app/immutable/chunks/CQe9XmLJ.js",
"name": "props",
"imports": [
"_BfGs3WDN.js",
"_C2sKwo1m.js"
]
},
"_CW15Ts-p.js": {
"file": "_app/immutable/chunks/CW15Ts-p.js",
"name": "entry",
"imports": [
"_DTyTeadx.js",
"_BfGs3WDN.js"
]
},
"_D4nn9Y_6.js": {
"file": "_app/immutable/chunks/D4nn9Y_6.js",
"name": "preload-helper"
},
"_DTd9pe6t.js": {
"file": "_app/immutable/chunks/DTd9pe6t.js",
"name": "this",
"imports": [
"_nEbfNkJh.js"
]
},
"_Xjya7ye4.js": {
"file": "_app/immutable/chunks/Xjya7ye4.js",
"_D7710T35.js": {
"file": "_app/immutable/chunks/D7710T35.js",
"name": "utils",
"imports": [
"_nEbfNkJh.js",
"_zcqfpVBB.js"
"_BfGs3WDN.js",
"_BlBMKpZ6.js"
]
},
"_ggIfGDPQ.js": {
"file": "_app/immutable/chunks/ggIfGDPQ.js",
"name": "legacy",
"_DTyTeadx.js": {
"file": "_app/immutable/chunks/DTyTeadx.js",
"name": "index-client",
"imports": [
"_nEbfNkJh.js"
"_BfGs3WDN.js",
"_Dc4kZMuG.js"
]
},
"_nEbfNkJh.js": {
"file": "_app/immutable/chunks/nEbfNkJh.js",
"name": "template"
"_Dc4kZMuG.js": {
"file": "_app/immutable/chunks/Dc4kZMuG.js",
"name": "render",
"imports": [
"_BfGs3WDN.js",
"_BlBMKpZ6.js"
]
},
"_uf3Is7Es.js": {
"file": "_app/immutable/chunks/uf3Is7Es.js",
"_DecArsLH.js": {
"file": "_app/immutable/chunks/DecArsLH.js",
"name": "button",
"imports": [
"_Bzak7iHL.js",
"_Xjya7ye4.js",
"_nEbfNkJh.js",
"_zcqfpVBB.js",
"_DTd9pe6t.js"
"_D7710T35.js",
"_BfGs3WDN.js",
"_By9q4dnk.js",
"_CQe9XmLJ.js",
"_BSLeMsiy.js"
]
},
"_zcqfpVBB.js": {
"file": "_app/immutable/chunks/zcqfpVBB.js",
"name": "props",
"__58MWSf2.js": {
"file": "_app/immutable/chunks/_58MWSf2.js",
"name": "forms",
"imports": [
"_nEbfNkJh.js"
"_BfGs3WDN.js",
"_CW15Ts-p.js"
]
},
"node_modules/@sveltejs/kit/src/runtime/client/entry.js": {
"file": "_app/immutable/entry/start.DoE5rVjp.js",
"file": "_app/immutable/entry/start.AEgxPUqz.js",
"name": "entry/start",
"src": "node_modules/@sveltejs/kit/src/runtime/client/entry.js",
"isEntry": true,
"imports": [
"_BX9MO-1l.js"
"_CW15Ts-p.js"
]
},
"node_modules/workbox-window/build/workbox-window.prod.es5.mjs": {
"file": "_app/immutable/chunks/BIl4cyR9.js",
"name": "workbox-window.prod.es5",
"src": "node_modules/workbox-window/build/workbox-window.prod.es5.mjs",
"isDynamicEntry": true
},
"src/routes/HomeWithDialog.svelte": {
"file": "_app/immutable/chunks/D8bjufgL.js",
"file": "_app/immutable/chunks/pCdotK-X.js",
"name": "HomeWithDialog",
"src": "src/routes/HomeWithDialog.svelte",
"isDynamicEntry": true,
"imports": [
"_Bzak7iHL.js",
"_nEbfNkJh.js",
"_uf3Is7Es.js"
"_BfGs3WDN.js",
"_Dc4kZMuG.js",
"_BVBXfAos.js",
"_D7710T35.js",
"_DecArsLH.js",
"_8KX3cYnK.js"
]
}
}
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
const t={prism:{url:"https://prism.ccllc.pro",title:"Prism"},tasgrid:{url:"https://tasgrid.ccllc.pro",title:"TasGrid"},stackq:{url:"https://stackq.ccllc.pro",title:"Stackq"},hrm:{url:"https://hrm.ccllc.pro",title:"HRM"}},s=Object.keys(t);export{s as a,t as s};
@@ -0,0 +1 @@
import{j as y,k as o,H as _,l as t,C as g,m as a,o as i,q as d,u as m,v as p}from"./BfGs3WDN.js";function E(n,r){let s=null,f=t;var l;if(t){s=m;for(var e=p(document.head);e!==null&&(e.nodeType!==g||e.data!==n);)e=a(e);if(e===null)i(!1);else{var u=a(e);e.remove(),d(u)}}t||(l=document.head.appendChild(y()));try{o(()=>r(l),_)}finally{f&&(i(!0),d(s))}}export{E as h};
@@ -0,0 +1 @@
import{k as s,l as c,K as m,L as i}from"./BfGs3WDN.js";import{B as p}from"./C2sKwo1m.js";function l(n,r,o){c&&m();var e=new p(n);s(()=>{var a=r()??null;e.ensure(a,a&&(t=>o(t,a)))},i)}export{l as c};
@@ -0,0 +1,2 @@
try{self["workbox:window:7.3.0"]&&_()}catch{}function b(n,r){return new Promise((function(t){var o=new MessageChannel;o.port1.onmessage=function(f){t(f.data)},n.postMessage(r,[o.port2])}))}function P(n,r){(r==null||r>n.length)&&(r=n.length);for(var t=0,o=Array(r);t<r;t++)o[t]=n[t];return o}function j(n,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(n,W(o.key),o)}}function S(n,r){var t=typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t)return(t=t.call(n)).next.bind(t);if(Array.isArray(n)||(t=(function(f,c){if(f){if(typeof f=="string")return P(f,c);var a={}.toString.call(f).slice(8,-1);return a==="Object"&&f.constructor&&(a=f.constructor.name),a==="Map"||a==="Set"?Array.from(f):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?P(f,c):void 0}})(n))||r){t&&(n=t);var o=0;return function(){return o>=n.length?{done:!0}:{done:!1,value:n[o++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function w(n,r){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,o){return t.__proto__=o,t},w(n,r)}function W(n){var r=(function(t,o){if(typeof t!="object"||!t)return t;var f=t[Symbol.toPrimitive];if(f!==void 0){var c=f.call(t,o);if(typeof c!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)})(n,"string");return typeof r=="symbol"?r:r+""}try{self["workbox:core:7.3.0"]&&_()}catch{}var m=function(){var n=this;this.promise=new Promise((function(r,t){n.resolve=r,n.reject=t}))};function y(n,r){var t=location.href;return new URL(n,t).href===new URL(r,t).href}var d=function(n,r){this.type=n,Object.assign(this,r)};function l(n,r,t){return t?r?r(n):n:(n&&n.then||(n=Promise.resolve(n)),r?n.then(r):n)}function k(){}var L={type:"SKIP_WAITING"};function E(n,r){return n&&n.then?n.then(k):Promise.resolve()}var O=(function(n){function r(c,a){var e,i;return a===void 0&&(a={}),(e=n.call(this)||this).nn={},e.tn=0,e.rn=new m,e.en=new m,e.on=new m,e.un=0,e.an=new Set,e.cn=function(){var u=e.fn,s=u.installing;e.tn>0||!y(s.scriptURL,e.sn.toString())||performance.now()>e.un+6e4?(e.vn=s,u.removeEventListener("updatefound",e.cn)):(e.hn=s,e.an.add(s),e.rn.resolve(s)),++e.tn,s.addEventListener("statechange",e.ln)},e.ln=function(u){var s=e.fn,v=u.target,h=v.state,p=v===e.vn,g={sw:v,isExternal:p,originalEvent:u};!p&&e.mn&&(g.isUpdate=!0),e.dispatchEvent(new d(h,g)),h==="installed"?e.wn=self.setTimeout((function(){h==="installed"&&s.waiting===v&&e.dispatchEvent(new d("waiting",g))}),200):h==="activating"&&(clearTimeout(e.wn),p||e.en.resolve(v))},e.yn=function(u){var s=e.hn,v=s!==navigator.serviceWorker.controller;e.dispatchEvent(new d("controlling",{isExternal:v,originalEvent:u,sw:s,isUpdate:e.mn})),v||e.on.resolve(s)},e.gn=(i=function(u){var s=u.data,v=u.ports,h=u.source;return l(e.getSW(),(function(){e.an.has(h)&&e.dispatchEvent(new d("message",{data:s,originalEvent:u,ports:v,sw:h}))}))},function(){for(var u=[],s=0;s<arguments.length;s++)u[s]=arguments[s];try{return Promise.resolve(i.apply(this,u))}catch(v){return Promise.reject(v)}}),e.sn=c,e.nn=a,navigator.serviceWorker.addEventListener("message",e.gn),e}var t,o;o=n,(t=r).prototype=Object.create(o.prototype),t.prototype.constructor=t,w(t,o);var f=r.prototype;return f.register=function(c){var a=(c===void 0?{}:c).immediate,e=a!==void 0&&a;try{var i=this;return l((function(u,s){var v=u();return v&&v.then?v.then(s):s(v)})((function(){if(!e&&document.readyState!=="complete")return E(new Promise((function(u){return window.addEventListener("load",u)})))}),(function(){return i.mn=!!navigator.serviceWorker.controller,i.dn=i.pn(),l(i.bn(),(function(u){i.fn=u,i.dn&&(i.hn=i.dn,i.en.resolve(i.dn),i.on.resolve(i.dn),i.dn.addEventListener("statechange",i.ln,{once:!0}));var s=i.fn.waiting;return s&&y(s.scriptURL,i.sn.toString())&&(i.hn=s,Promise.resolve().then((function(){i.dispatchEvent(new d("waiting",{sw:s,wasWaitingBeforeRegister:!0}))})).then((function(){}))),i.hn&&(i.rn.resolve(i.hn),i.an.add(i.hn)),i.fn.addEventListener("updatefound",i.cn),navigator.serviceWorker.addEventListener("controllerchange",i.yn),i.fn}))})))}catch(u){return Promise.reject(u)}},f.update=function(){try{return this.fn?l(E(this.fn.update())):l()}catch(c){return Promise.reject(c)}},f.getSW=function(){return this.hn!==void 0?Promise.resolve(this.hn):this.rn.promise},f.messageSW=function(c){try{return l(this.getSW(),(function(a){return b(a,c)}))}catch(a){return Promise.reject(a)}},f.messageSkipWaiting=function(){this.fn&&this.fn.waiting&&b(this.fn.waiting,L)},f.pn=function(){var c=navigator.serviceWorker.controller;return c&&y(c.scriptURL,this.sn.toString())?c:void 0},f.bn=function(){try{var c=this;return l((function(a,e){try{var i=a()}catch(u){return e(u)}return i&&i.then?i.then(void 0,e):i})((function(){return l(navigator.serviceWorker.register(c.sn,c.nn),(function(a){return c.un=performance.now(),a}))}),(function(a){throw a})))}catch(a){return Promise.reject(a)}},(function(c,a,e){return a&&j(c.prototype,a),Object.defineProperty(c,"prototype",{writable:!1}),c})(r,[{key:"active",get:function(){return this.en.promise}},{key:"controlling",get:function(){return this.on.promise}}])})((function(){function n(){this.Pn=new Map}var r=n.prototype;return r.addEventListener=function(t,o){this.jn(t).add(o)},r.removeEventListener=function(t,o){this.jn(t).delete(o)},r.dispatchEvent=function(t){t.target=this;for(var o,f=S(this.jn(t.type));!(o=f()).done;)(0,o.value)(t)},r.jn=function(t){return this.Pn.has(t)||this.Pn.set(t,new Set),this.Pn.get(t)},n})());export{O as Workbox,d as WorkboxEvent,b as messageSW};
@@ -0,0 +1 @@
import{M as S,N as h,A as k,O as A,S as M}from"./BfGs3WDN.js";function t(r,i){return r===i||(r==null?void 0:r[M])===i}function c(r={},i,a,O){return S(()=>{var f,s;return h(()=>{f=s,s=[],k(()=>{r!==a(...s)&&(i(r,...s),f&&t(a(...f),r)&&i(null,...f))})}),()=>{A(()=>{s&&t(a(...s),r)&&i(null,...s)})}}),r}export{c as b};
@@ -0,0 +1 @@
import{j as F,k as W,l as R,q as H,v as Z,K as G,X as B,Z as J,_ as $,a0 as L,o as z,u as M,C as j,a1 as ee,a2 as U,P as re,a3 as w,U as O,a4 as ne,W as ae,a5 as fe,a6 as le,a7 as q,a8 as ie,a9 as ue,aa as se,ab as V,ac as oe,Q as Y,T as K,ad as D,ae as ve,af as te,R as de,m as ce}from"./BfGs3WDN.js";function Ee(e,f){return f}function pe(e,f,l){for(var d=[],h=f.length,u,i=f.length,n=0;n<h;n++){let s=f[n];K(s,()=>{if(u){if(u.pending.delete(s),u.done.add(s),u.pending.size===0){var p=e.outrogroups;y(q(u.done)),p.delete(u),p.size===0&&(e.outrogroups=null)}}else i-=1},!1)}if(i===0){var o=d.length===0&&l!==null;if(o){var a=l,v=a.parentNode;te(v),v.append(a),e.items.clear()}y(f,!o)}else u={pending:new Set(f),done:new Set},(e.outrogroups??(e.outrogroups=new Set)).add(u)}function y(e,f=!0){for(var l=0;l<e.length;l++)de(e[l],f)}var X;function Te(e,f,l,d,h,u=null){var i=e,n=new Map;{var o=e;i=R?H(Z(o)):o.appendChild(F())}R&&G();var a=null,v=fe(()=>{var c=l();return le(c)?c:c==null?[]:q(c)}),s,p=!0;function b(){_.fallback=a,he(_,s,i,f,d),a!==null&&(s.length===0?(a.f&w)===0?Y(a):(a.f^=w,S(a,null,i)):K(a,()=>{a=null}))}var r=W(()=>{s=B(v);var c=s.length;let E=!1;if(R){var g=J(i)===$;g!==(c===0)&&(i=L(),H(i),z(!1),E=!0)}for(var I=new Set,T=re,A=ae(),m=0;m<c;m+=1){R&&M.nodeType===j&&M.data===ee&&(i=M,E=!0,z(!1));var k=s[m],N=d(k,m),t=p?null:n.get(N);t?(t.v&&U(t.v,k),t.i&&U(t.i,m),A&&T.unskip_effect(t.e)):(t=ge(n,p?i:X??(X=F()),k,N,m,h,f,l),p||(t.e.f|=w),n.set(N,t)),I.add(N)}if(c===0&&u&&!a&&(p?a=O(()=>u(i)):(a=O(()=>u(X??(X=F()))),a.f|=w)),c>I.size&&ne(),R&&c>0&&H(L()),!p)if(A){for(const[P,Q]of n)I.has(P)||T.skip_effect(Q.e);T.oncommit(b),T.ondiscard(()=>{})}else b();E&&z(!0),B(v)}),_={effect:r,items:n,outrogroups:null,fallback:a};p=!1,R&&(i=M)}function x(e){for(;e!==null&&(e.f&ve)===0;)e=e.next;return e}function he(e,f,l,d,h){var N;var u=f.length,i=e.items,n=x(e.effect.first),o,a=null,v=[],s=[],p,b,r,_;for(_=0;_<u;_+=1){if(p=f[_],b=h(p,_),r=i.get(b).e,e.outrogroups!==null)for(const t of e.outrogroups)t.pending.delete(r),t.done.delete(r);if((r.f&w)!==0)if(r.f^=w,r===n)S(r,null,l);else{var c=a?a.next:n;r===e.effect.last&&(e.effect.last=r.prev),r.prev&&(r.prev.next=r.next),r.next&&(r.next.prev=r.prev),C(e,a,r),C(e,r,c),S(r,c,l),a=r,v=[],s=[],n=x(a.next);continue}if((r.f&D)!==0&&Y(r),r!==n){if(o!==void 0&&o.has(r)){if(v.length<s.length){var E=s[0],g;a=E.prev;var I=v[0],T=v[v.length-1];for(g=0;g<v.length;g+=1)S(v[g],E,l);for(g=0;g<s.length;g+=1)o.delete(s[g]);C(e,I.prev,T.next),C(e,a,I),C(e,T,E),n=E,a=T,_-=1,v=[],s=[]}else o.delete(r),S(r,n,l),C(e,r.prev,r.next),C(e,r,a===null?e.effect.first:a.next),C(e,a,r),a=r;continue}for(v=[],s=[];n!==null&&n!==r;)(o??(o=new Set)).add(n),s.push(n),n=x(n.next);if(n===null)continue}(r.f&w)===0&&v.push(r),a=r,n=x(r.next)}if(e.outrogroups!==null){for(const t of e.outrogroups)t.pending.size===0&&(y(q(t.done)),(N=e.outrogroups)==null||N.delete(t));e.outrogroups.size===0&&(e.outrogroups=null)}if(n!==null||o!==void 0){var A=[];if(o!==void 0)for(r of o)(r.f&D)===0&&A.push(r);for(;n!==null;)(n.f&D)===0&&n!==e.fallback&&A.push(n),n=x(n.next);var m=A.length;if(m>0){var k=u===0?l:null;pe(e,A,k)}}}function ge(e,f,l,d,h,u,i,n){var o=(i&ie)!==0?(i&ue)===0?se(l,!1,!1):V(l):null,a=(i&oe)!==0?V(h):null;return{v:o,i:a,e:O(()=>(u(f,o??l,a??h,n),()=>{e.delete(d)}))}}function S(e,f,l){if(e.nodes)for(var d=e.nodes.start,h=e.nodes.end,u=f&&(f.f&w)===0?f.nodes.start:l;d!==null;){var i=ce(d);if(u.before(d),d===h)return;d=i}}function C(e,f,l){f===null?e.effect.first=l:f.next=l,l===null?e.effect.last=f:l.prev=f}export{Te as e,Ee as i};
File diff suppressed because one or more lines are too long
@@ -0,0 +1,5 @@
var ae=Object.defineProperty;var H=e=>{throw TypeError(e)};var ce=(e,t,n)=>t in e?ae(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var T=(e,t,n)=>ce(e,typeof t!="symbol"?t+"":t,n),Y=(e,t,n)=>t.has(e)||H("Cannot "+n);var y=(e,t,n)=>(Y(e,t,"read from private field"),n?n.call(e):t.get(e)),x=(e,t,n)=>t.has(e)?H("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),j=(e,t,n,r)=>(Y(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);import{bd as ue,bj as Z,l as J,N as Q,P as _,B as le,A as W,bk as fe,X as E,Y as I,b5 as de,aD as pe,aE as ee,bl as me,p as te,i as B,h as M,a as O,e as ne,c as he,n as be,r as ve,f as ye}from"./BfGs3WDN.js";import"./Bzak7iHL.js";import{c as ge}from"./BIDFgmbM.js";import{p as V,i as Ee,r as re,s as _e}from"./CQe9XmLJ.js";import{d as P,a as Se,c as we}from"./D7710T35.js";import{s as D}from"./By9q4dnk.js";function Ae(){return Symbol(ue)}function yt(e,t,n=t){var r=new WeakSet;Z(e,"input",async o=>{var s=o?e.defaultValue:e.value;if(s=L(e)?N(s):s,n(s),_!==null&&r.add(_),await le(),s!==(s=t())){var a=e.selectionStart,u=e.selectionEnd,f=e.value.length;if(e.value=s??"",u!==null){var l=e.value.length;a===u&&u===f&&l>f?(e.selectionStart=l,e.selectionEnd=l):(e.selectionStart=a,e.selectionEnd=Math.min(u,l))}}}),(J&&e.defaultValue!==e.value||W(t)==null&&e.value)&&(n(L(e)?N(e.value):e.value),_!==null&&r.add(_)),Q(()=>{var o=t();if(e===document.activeElement){var s=fe??_;if(r.has(s))return}L(e)&&o===N(e.value)||e.type==="date"&&!o&&!e.value||o!==e.value&&(e.value=o??"")})}function L(e){var t=e.type;return t==="number"||t==="range"}function N(e){return e===""?null:+e}function gt(e,t,n=t){Z(e,"change",()=>{n(e.files)}),J&&e.files&&n(e.files),Q(()=>{e.files=t()})}function Te(e){return typeof e=="function"}function xe(e){return e!==null&&typeof e=="object"}const ke=["string","number","bigint","boolean"];function C(e){return e==null||ke.includes(typeof e)?!0:Array.isArray(e)?e.every(t=>C(t)):typeof e=="object"?Object.getPrototypeOf(e)===Object.prototype:!1}const S=Symbol("box"),U=Symbol("is-writable");function F(e,t){const n=I(e);return t?{[S]:!0,[U]:!0,get current(){return E(n)},set current(r){t(r)}}:{[S]:!0,get current(){return e()}}}function R(e){return xe(e)&&S in e}function oe(e){return R(e)&&U in e}function Et(e){return R(e)?e:Te(e)?F(e):Oe(e)}function _t(e){return Object.entries(e).reduce((t,[n,r])=>R(r)?(oe(r)?Object.defineProperty(t,n,{get(){return r.current},set(o){r.current=o}}):Object.defineProperty(t,n,{get(){return r.current}}),t):Object.assign(t,{[n]:r}),{})}function St(e){return oe(e)?{[S]:!0,get current(){return e.current}}:e}function Oe(e){let t=de(pe(e));return{[S]:!0,[U]:!0,get current(){return E(t)},set current(n){ee(t,n,!0)}}}function Ie(...e){return function(t){var n;for(const r of e)if(r){if(t.defaultPrevented)return;typeof r=="function"?r.call(this,t):(n=r.current)==null||n.call(this,t)}}}var K=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Re=/\n/g,je=/^\s*/,Pe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Le=/^:\s*/,Ne=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,We=/^[;\s]*/,Be=/^\s+|\s+$/g,Me=`
`,$="/",z="*",v="",Ve="comment",Ce="declaration";function Fe(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function o(c){var i=c.match(Re);i&&(n+=i.length);var h=c.lastIndexOf(Me);r=~h?c.length-h:r+c.length}function s(){var c={line:n,column:r};return function(i){return i.position=new a(c),l(),i}}function a(c){this.start=c,this.end={line:n,column:r},this.source=t.source}a.prototype.content=e;function u(c){var i=new Error(t.source+":"+n+":"+r+": "+c);if(i.reason=c,i.filename=t.source,i.line=n,i.column=r,i.source=e,!t.silent)throw i}function f(c){var i=c.exec(e);if(i){var h=i[0];return o(h),e=e.slice(h.length),i}}function l(){f(je)}function m(c){var i;for(c=c||[];i=b();)i!==!1&&c.push(i);return c}function b(){var c=s();if(!($!=e.charAt(0)||z!=e.charAt(1))){for(var i=2;v!=e.charAt(i)&&(z!=e.charAt(i)||$!=e.charAt(i+1));)++i;if(i+=2,v===e.charAt(i-1))return u("End of comment missing");var h=e.slice(2,i-2);return r+=2,o(h),e=e.slice(i),r+=2,c({type:Ve,comment:h})}}function p(){var c=s(),i=f(Pe);if(i){if(b(),!f(Le))return u("property missing ':'");var h=f(Ne),ie=c({type:Ce,property:q(i[0].replace(K,v)),value:h?q(h[0].replace(K,v)):v});return f(We),ie}}function d(){var c=[];m(c);for(var i;i=p();)i!==!1&&(c.push(i),m(c));return c}return l(),d()}function q(e){return e?e.replace(Be,v):v}function Ge(e,t){let n=null;if(!e||typeof e!="string")return n;const r=Fe(e),o=typeof t=="function";return r.forEach(s=>{if(s.type!=="declaration")return;const{property:a,value:u}=s;o?t(a,u,s):u&&(n=n||{},n[a]=u)}),n}const Ue=/\d/,Xe=["-","_","/","."];function He(e=""){if(!Ue.test(e))return e!==e.toLowerCase()}function Ye(e){const t=[];let n="",r,o;for(const s of e){const a=Xe.includes(s);if(a===!0){t.push(n),n="",r=void 0;continue}const u=He(s);if(o===!1){if(r===!1&&u===!0){t.push(n),n=s,r=u;continue}if(r===!0&&u===!1&&n.length>1){const f=n.at(-1);t.push(n.slice(0,Math.max(0,n.length-1))),n=f+s,r=u;continue}}n+=s,r=u,o=a}return t.push(n),t}function se(e){return e?Ye(e).map(t=>Ke(t)).join(""):""}function De(e){return $e(se(e||""))}function Ke(e){return e?e[0].toUpperCase()+e.slice(1):""}function $e(e){return e?e[0].toLowerCase()+e.slice(1):""}function k(e){if(!e)return{};const t={};function n(r,o){if(r.startsWith("-moz-")||r.startsWith("-webkit-")||r.startsWith("-ms-")||r.startsWith("-o-")){t[se(r)]=o;return}if(r.startsWith("--")){t[r]=o;return}t[De(r)]=o}return Ge(e,n),t}function ze(...e){return(...t)=>{for(const n of e)typeof n=="function"&&n(...t)}}function qe(e,t){const n=RegExp(e,"g");return r=>{if(typeof r!="string")throw new TypeError(`expected an argument of type string, but got ${typeof r}`);return r.match(n)?r.replace(n,t):r}}const Ze=qe(/[A-Z]/,e=>`-${e.toLowerCase()}`);function Je(e){if(!e||typeof e!="object"||Array.isArray(e))throw new TypeError(`expected an argument of type object, but got ${typeof e}`);return Object.keys(e).map(t=>`${Ze(t)}: ${e[t]};`).join(`
`)}function Qe(e={}){return Je(e).replace(`
`," ")}const et=["onabort","onanimationcancel","onanimationend","onanimationiteration","onanimationstart","onauxclick","onbeforeinput","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncompositionend","oncompositionstart","oncompositionupdate","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onfocusin","onfocusout","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onselectionchange","onselectstart","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitioncancel","ontransitionend","ontransitionrun","ontransitionstart","onvolumechange","onwaiting","onwebkitanimationend","onwebkitanimationiteration","onwebkitanimationstart","onwebkittransitionend","onwheel"],tt=new Set(et);function nt(e){return tt.has(e)}function rt(...e){const t={...e[0]};for(let n=1;n<e.length;n++){const r=e[n];if(r){for(const o of Object.keys(r)){const s=t[o],a=r[o],u=typeof s=="function",f=typeof a=="function";if(u&&nt(o)){const l=s,m=a;t[o]=Ie(l,m)}else if(u&&f)t[o]=ze(s,a);else if(o==="class"){const l=C(s),m=C(a);l&&m?t[o]=P(s,a):l?t[o]=P(s):m&&(t[o]=P(a))}else if(o==="style"){const l=typeof s=="object",m=typeof a=="object",b=typeof s=="string",p=typeof a=="string";if(l&&m)t[o]={...s,...a};else if(l&&p){const d=k(a);t[o]={...s,...d}}else if(b&&m){const d=k(s);t[o]={...d,...a}}else if(b&&p){const d=k(s),c=k(a);t[o]={...d,...c}}else l?t[o]=s:m?t[o]=a:b?t[o]=s:p&&(t[o]=a)}else t[o]=a!==void 0?a:s}for(const o of Object.getOwnPropertySymbols(r)){const s=t[o],a=r[o];t[o]=a!==void 0?a:s}}}return typeof t.style=="object"&&(t.style=Qe(t.style).replaceAll(`
`," ")),t.hidden===!1&&(t.hidden=void 0,delete t.hidden),t.disabled===!1&&(t.disabled=void 0,delete t.disabled),t}function ot(e,t){return{[Ae()]:n=>R(e)?(e.current=n,W(()=>t==null?void 0:t(n)),()=>{"isConnected"in n&&n.isConnected||(e.current=null,t==null||t(null))}):(e(n),W(()=>t==null?void 0:t(n)),()=>{"isConnected"in n&&n.isConnected||(e(null),t==null||t(null))})}}function wt(e){return e?"true":"false"}function At(e){return e?"":void 0}function Tt(e){return e?!0:void 0}function xt(e){return e?"open":"closed"}function kt(e){return e?"checked":"unchecked"}function Ot(e,t){return e?"true":"false"}var g,w;class st{constructor(t){x(this,g);x(this,w);T(this,"attrs");j(this,g,t.getVariant?t.getVariant():null),j(this,w,y(this,g)?`data-${y(this,g)}-`:`data-${t.component}-`),this.getAttr=this.getAttr.bind(this),this.selector=this.selector.bind(this),this.attrs=Object.fromEntries(t.parts.map(n=>[n,this.getAttr(n)]))}getAttr(t,n){return n?`data-${n}-${t}`:`${y(this,w)}${t}`}selector(t,n){return`[${this.getAttr(t,n)}]`}}g=new WeakMap,w=new WeakMap;function it(e){const t=new st(e);return{...t.attrs,selector:t.selector,getAttr:t.getAttr}}function at(e,t){return`bits-${e}`}const ct=it({component:"label",parts:["root"]});var A;const X=class X{constructor(t){T(this,"opts");T(this,"attachment");x(this,A,I(()=>({id:this.opts.id.current,[ct.root]:"",onmousedown:this.onmousedown,...this.attachment})));this.opts=t,this.attachment=ot(this.opts.ref),this.onmousedown=this.onmousedown.bind(this)}static create(t){return new X(t)}onmousedown(t){t.detail>1&&t.preventDefault()}get props(){return E(y(this,A))}set props(t){ee(y(this,A),t)}};A=new WeakMap;let G=X;var ut=ye("<label><!></label>");function lt(e,t){const n=me();te(t,!0);let r=V(t,"id",19,()=>at(n)),o=V(t,"ref",15,null),s=re(t,["$$slots","$$events","$$legacy","children","child","id","ref","for"]);const a=G.create({id:F(()=>r()),ref:F(()=>o(),p=>o(p))}),u=I(()=>rt(s,a.props,{for:t.for}));var f=B(),l=M(f);{var m=p=>{var d=B(),c=M(d);D(c,()=>t.child,()=>({props:E(u)})),O(p,d)},b=p=>{var d=ut();Se(d,()=>({...E(u),for:t.for}));var c=he(d);D(c,()=>t.children??be),ve(d),O(p,d)};Ee(l,p=>{t.child?p(m):p(b,!1)})}O(e,f),ne()}function It(e,t){te(t,!0);let n=V(t,"ref",15,null),r=re(t,["$$slots","$$events","$$legacy","ref","class"]);var o=B(),s=M(o);{let a=I(()=>we("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",t.class));ge(s,()=>lt,(u,f)=>{f(u,_e({"data-slot":"label",get class(){return E(a)}},()=>r,{get ref(){return n()},set ref(l){n(l)}}))})}O(e,o),ne()}export{S as B,It as L,yt as a,gt as b,Et as c,F as d,_t as e,R as f,oe as g,xe as h,U as i,ze as j,ot as k,xt as l,At as m,wt as n,it as o,Oe as p,Ie as q,at as r,Qe as s,St as t,rt as u,k as v,kt as w,Ot as x,Tt as y};
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
import{at as S,au as g,av as w,aw as T,ax as A,O as m,ay as L,l as V}from"./BfGs3WDN.js";function C(e){return e.endsWith("capture")&&e!=="gotpointercapture"&&e!=="lostpointercapture"}const I=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function D(e){return I.includes(e)}const O={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function W(e){return e=e.toLowerCase(),O[e]??e}const P=["touchstart","touchmove"];function j(e){return P.includes(e)}const i=Symbol("events"),x=new Set,M=new Set;function R(e){if(!V)return;e.removeAttribute("onload"),e.removeAttribute("onerror");const t=e.__e;t!==void 0&&(e.__e=void 0,queueMicrotask(()=>{e.isConnected&&e.dispatchEvent(t)}))}function N(e,t,r,u={}){function o(a){if(u.capture||q.call(t,a),!a.cancelBubble)return L(()=>r==null?void 0:r.call(this,a))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?m(()=>{t.addEventListener(e,o,u)}):t.addEventListener(e,o,u),o}function z(e,t,r,u={}){var o=N(t,e,r,u);return()=>{e.removeEventListener(t,o,u)}}function F(e,t,r){(t[i]??(t[i]={}))[e]=r}function G(e){for(var t=0;t<e.length;t++)x.add(e[t]);for(var r of M)r(e)}let y=null;function q(e){var h,b;var t=this,r=t.ownerDocument,u=e.type,o=((h=e.composedPath)==null?void 0:h.call(e))||[],a=o[0]||e.target;y=e;var f=0,d=y===e&&e[i];if(d){var s=o.indexOf(d);if(s!==-1&&(t===document||t===window)){e[i]=t;return}var p=o.indexOf(t);if(p===-1)return;s<=p&&(f=s)}if(a=o[f]||e.target,a!==t){S(e,"currentTarget",{configurable:!0,get(){return a||r}});var E=T,k=A;g(null),w(null);try{for(var n,_=[];a!==null;){var l=a.assignedSlot||a.parentNode||a.host||null;try{var v=(b=a[i])==null?void 0:b[u];v!=null&&(!a.disabled||e.target===a)&&v.call(a,e)}catch(c){n?_.push(c):n=c}if(e.cancelBubble||l===t||l===null)break;a=l}if(n){for(let c of _)queueMicrotask(()=>{throw c});throw n}}finally{e[i]=t,delete e.currentTarget,g(E),w(k)}}}export{x as a,C as b,G as c,F as d,N as e,D as f,R as g,q as h,j as i,W as n,z as o,M as r};
@@ -1 +0,0 @@
import{d as s,h as c,e as m,E as h}from"./nEbfNkJh.js";import{B as i}from"./zcqfpVBB.js";function E(n,r,e){c&&m();var o=new i(n);s(()=>{var a=r()??null;o.ensure(a,a&&(t=>e(t,a)))},h)}export{E as c};
@@ -0,0 +1 @@
import{k as p,L as t}from"./BfGs3WDN.js";import{B as c}from"./C2sKwo1m.js";function f(r,s,...a){var e=new c(r);p(()=>{const n=s()??null;e.ensure(n,n&&(o=>n(o,...a)))},t)}export{f as s};
@@ -0,0 +1 @@
var D=Object.defineProperty;var g=i=>{throw TypeError(i)};var F=(i,e,s)=>e in i?D(i,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[e]=s;var w=(i,e,s)=>F(i,typeof e!="symbol"?e+"":e,s),y=(i,e,s)=>e.has(i)||g("Cannot "+s);var t=(i,e,s)=>(y(i,e,"read from private field"),s?s.call(i):e.get(i)),l=(i,e,s)=>e.has(i)?g("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,s),M=(i,e,s,a)=>(y(i,e,"write to private field"),a?a.call(i,s):e.set(i,s),s);import{P as x,Q as j,R as k,T as C,j as A,U as B,l as P,u as Q,V as R,W as S}from"./BfGs3WDN.js";var r,n,h,u,p,_,v;class V{constructor(e,s=!0){w(this,"anchor");l(this,r,new Map);l(this,n,new Map);l(this,h,new Map);l(this,u,new Set);l(this,p,!0);l(this,_,()=>{var e=x;if(t(this,r).has(e)){var s=t(this,r).get(e),a=t(this,n).get(s);if(a)j(a),t(this,u).delete(s);else{var c=t(this,h).get(s);c&&(t(this,n).set(s,c.effect),t(this,h).delete(s),c.fragment.lastChild.remove(),this.anchor.before(c.fragment),a=c.effect)}for(const[f,o]of t(this,r)){if(t(this,r).delete(f),f===e)break;const d=t(this,h).get(o);d&&(k(d.effect),t(this,h).delete(o))}for(const[f,o]of t(this,n)){if(f===s||t(this,u).has(f))continue;const d=()=>{if(Array.from(t(this,r).values()).includes(f)){var b=document.createDocumentFragment();R(o,b),b.append(A()),t(this,h).set(f,{effect:o,fragment:b})}else k(o);t(this,u).delete(f),t(this,n).delete(f)};t(this,p)||!a?(t(this,u).add(f),C(o,d,!1)):d()}}});l(this,v,e=>{t(this,r).delete(e);const s=Array.from(t(this,r).values());for(const[a,c]of t(this,h))s.includes(a)||(k(c.effect),t(this,h).delete(a))});this.anchor=e,M(this,p,s)}ensure(e,s){var a=x,c=S();if(s&&!t(this,n).has(e)&&!t(this,h).has(e))if(c){var f=document.createDocumentFragment(),o=A();f.append(o),t(this,h).set(e,{effect:B(()=>s(o)),fragment:f})}else t(this,n).set(e,B(()=>s(this.anchor)));if(t(this,r).set(a,e),c){for(const[d,m]of t(this,n))d===e?a.unskip_effect(m):a.skip_effect(m);for(const[d,m]of t(this,h))d===e?a.unskip_effect(m.effect):a.skip_effect(m.effect);a.oncommit(t(this,_)),a.ondiscard(t(this,v))}else P&&(this.anchor=Q),t(this,_).call(this)}}r=new WeakMap,n=new WeakMap,h=new WeakMap,u=new WeakMap,p=new WeakMap,_=new WeakMap,v=new WeakMap;export{V as B};
@@ -0,0 +1 @@
import"./Bzak7iHL.js";import{p as o,c,n,r as i,a as f,e as v,f as u}from"./BfGs3WDN.js";import{s as h}from"./By9q4dnk.js";import{a as m,c as g}from"./D7710T35.js";import{b}from"./BSLeMsiy.js";import{p as _,r as x}from"./CQe9XmLJ.js";var y=u("<div><!></div>");function E(s,a){o(a,!0);let t=_(a,"ref",15,null),d=x(a,["$$slots","$$events","$$legacy","ref","class","children"]);var e=y();m(e,r=>({"data-slot":"card",class:r,...d}),[()=>g("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",a.class)]);var l=c(e);h(l,()=>a.children??n),i(e),b(e,r=>t(r),()=>t()),f(s,e),v()}var C=u("<div><!></div>");function F(s,a){o(a,!0);let t=_(a,"ref",15,null),d=x(a,["$$slots","$$events","$$legacy","ref","class","children"]);var e=C();m(e,r=>({"data-slot":"card-content",class:r,...d}),[()=>g("px-6",a.class)]);var l=c(e);h(l,()=>a.children??n),i(e),b(e,r=>t(r),()=>t()),f(s,e),v()}var P=u("<p><!></p>");function G(s,a){o(a,!0);let t=_(a,"ref",15,null),d=x(a,["$$slots","$$events","$$legacy","ref","class","children"]);var e=P();m(e,r=>({"data-slot":"card-description",class:r,...d}),[()=>g("text-muted-foreground text-sm",a.class)]);var l=c(e);h(l,()=>a.children??n),i(e),b(e,r=>t(r),()=>t()),f(s,e),v()}var w=u("<div><!></div>");function H(s,a){o(a,!0);let t=_(a,"ref",15,null),d=x(a,["$$slots","$$events","$$legacy","ref","class","children"]);var e=w();m(e,r=>({"data-slot":"card-header",class:r,...d}),[()=>g("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",a.class)]);var l=c(e);h(l,()=>a.children??n),i(e),b(e,r=>t(r),()=>t()),f(s,e),v()}var j=u("<div><!></div>");function I(s,a){o(a,!0);let t=_(a,"ref",15,null),d=x(a,["$$slots","$$events","$$legacy","ref","class","children"]);var e=j();m(e,r=>({"data-slot":"card-title",class:r,...d}),[()=>g("leading-none font-semibold",a.class)]);var l=c(e);h(l,()=>a.children??n),i(e),b(e,r=>t(r),()=>t()),f(s,e),v()}export{H as C,I as a,F as b,G as c,E as d};
@@ -0,0 +1 @@
import{y as g,ag as d,x as c,A as m,ah as i,ai as b,X as p,aj as h,ak as k,al as v}from"./BfGs3WDN.js";function x(t=!1){const s=g,e=s.l.u;if(!e)return;let f=()=>h(s.s);if(t){let n=0,a={};const _=k(()=>{let l=!1;const r=s.s;for(const o in r)r[o]!==a[o]&&(a[o]=r[o],l=!0);return l&&n++,n});f=()=>p(_)}e.b.length&&d(()=>{u(s,f),i(e.b)}),c(()=>{const n=m(()=>e.m.map(b));return()=>{for(const a of n)typeof a=="function"&&a()}}),e.a.length&&c(()=>{u(s,f),i(e.a)})}function u(t,s){if(t.l.s)for(const e of t.l.s)p(e);s()}v();export{x as i};
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
import{k as L,l as E,K as B,L as N,Z as y,az as Y,_ as K,a0 as M,q as j,o as I,aA as P,aB as z,aC as C,X as g,aD as F,aE as H,ax as U,aF as q,aG as G,A as Z,z as $,aH as J,aI as X,ak as Q,a5 as V,aJ as W,aK as k,S as O,aL as w,aM as v}from"./BfGs3WDN.js";import{B as ee}from"./C2sKwo1m.js";function ie(e,r,s=!1){E&&B();var n=new ee(e),a=s?N:0;function i(o,f){if(E){const l=y(e);var u;if(l===Y?u=0:l===K?u=!1:u=parseInt(l.substring(1)),o!==u){var c=M();j(c),n.anchor=c,I(!1),n.ensure(o,f),I(!0);return}}n.ensure(o,f)}L(()=>{var o=!1;r((f,u=0)=>{o=!0,i(u,f)}),o||i(!1,null)},a)}let S=!1;function re(e){var r=S;try{return S=!1,[e(),S]}finally{S=r}}const ne={get(e,r){if(!e.exclude.includes(r))return e.props[r]},set(e,r){return!1},getOwnPropertyDescriptor(e,r){if(!e.exclude.includes(r)&&r in e.props)return{enumerable:!0,configurable:!0,value:e.props[r]}},has(e,r){return e.exclude.includes(r)?!1:r in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(r=>!e.exclude.includes(r))}};function fe(e,r,s){return new Proxy({props:e,exclude:r},ne)}const se={get(e,r){let s=e.props.length;for(;s--;){let n=e.props[s];if(v(n)&&(n=n()),typeof n=="object"&&n!==null&&r in n)return n[r]}},set(e,r,s){let n=e.props.length;for(;n--;){let a=e.props[n];v(a)&&(a=a());const i=P(a,r);if(i&&i.set)return i.set(s),!0}return!1},getOwnPropertyDescriptor(e,r){let s=e.props.length;for(;s--;){let n=e.props[s];if(v(n)&&(n=n()),typeof n=="object"&&n!==null&&r in n){const a=P(n,r);return a&&!a.configurable&&(a.configurable=!0),a}}},has(e,r){if(r===O||r===w)return!1;for(let s of e.props)if(v(s)&&(s=s()),s!=null&&r in s)return!0;return!1},ownKeys(e){const r=[];for(let s of e.props)if(v(s)&&(s=s()),!!s){for(const n in s)r.includes(n)||r.push(n);for(const n of Object.getOwnPropertySymbols(s))r.includes(n)||r.push(n)}return r}};function ue(...e){return new Proxy({props:e},se)}function le(e,r,s,n){var R;var a=!$||(s&J)!==0,i=(s&G)!==0,o=(s&W)!==0,f=n,u=!0,c=()=>(u&&(u=!1,f=o?Z(n):n),f),l;if(i){var x=O in e||w in e;l=((R=P(e,r))==null?void 0:R.set)??(x&&r in e?t=>e[r]=t:void 0)}var d,A=!1;i?[d,A]=re(()=>e[r]):d=e[r],d===void 0&&n!==void 0&&(d=c(),l&&(a&&z(),l(d)));var _;if(a?_=()=>{var t=e[r];return t===void 0?c():(u=!0,t)}:_=()=>{var t=e[r];return t!==void 0&&(f=void 0),t===void 0?f:t},a&&(s&C)===0)return _;if(l){var D=e.$$legacy;return(function(t,h){return arguments.length>0?((!a||!h||D||A)&&l(h?_():t),t):_()})}var b=!1,p=((s&X)!==0?Q:V)(()=>(b=!1,_()));i&&g(p);var m=U;return(function(t,h){if(arguments.length>0){const T=h?g(p):a&&i?F(t):t;return H(p,T),b=!0,f!==void 0&&(f=T),t}return k&&b||(m.f&q)!==0?p.v:g(p)})}export{ie as i,le as p,fe as r,ue as s};
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
import{g as E,u as L}from"./nEbfNkJh.js";import{i as x,a as T,p as k,b as H}from"./BX9MO-1l.js";function C(t,r,i){E(()=>{var o=L(()=>r(t,i==null?void 0:i())||{});if(o!=null&&o.destroy)return()=>o.destroy()})}function M(t){const r=JSON.parse(t);return r.data&&(r.data=k(r.data,H.decoders)),r}function d(t){return HTMLElement.prototype.cloneNode.call(t)}function N(t,r=()=>{}){const i=async({action:e,result:l,reset:n=!0,invalidateAll:c=!0})=>{l.type==="success"&&(n&&HTMLFormElement.prototype.reset.call(t),c&&await x()),(location.origin+location.pathname===e.origin+e.pathname||l.type==="redirect"||l.type==="error")&&await T(l)};async function o(e){var f,b,y;if(((f=e.submitter)!=null&&f.hasAttribute("formmethod")?e.submitter.formMethod:d(t).method)!=="post")return;e.preventDefault();const n=new URL((b=e.submitter)!=null&&b.hasAttribute("formaction")?e.submitter.formAction:d(t).action),c=(y=e.submitter)!=null&&y.hasAttribute("formenctype")?e.submitter.formEnctype:d(t).enctype,m=new FormData(t,e.submitter),u=new AbortController;let p=!1;const w=await r({action:n,cancel:()=>p=!0,controller:u,formData:m,formElement:t,submitter:e.submitter})??i;if(p)return;let s;try{const a=new Headers({accept:"application/json","x-sveltekit-action":"true"});c!=="multipart/form-data"&&a.set("Content-Type",/^(:?application\/x-www-form-urlencoded|text\/plain)$/.test(c)?c:"application/x-www-form-urlencoded");const A=c==="multipart/form-data"?m:new URLSearchParams(m),h=await fetch(n,{method:"POST",headers:a,cache:"no-store",body:A,signal:u.signal});s=M(await h.text()),s.type==="error"&&(s.status=h.status)}catch(a){if((a==null?void 0:a.name)==="AbortError")return;s={type:"error",error:a}}await w({action:n,formData:m,formElement:t,update:a=>i({action:n,result:s,reset:a==null?void 0:a.reset,invalidateAll:a==null?void 0:a.invalidateAll}),result:s})}return HTMLFormElement.prototype.addEventListener.call(t,"submit",o),{destroy(){HTMLFormElement.prototype.removeEventListener.call(t,"submit",o)}}}export{C as a,N as e};
@@ -1,5 +0,0 @@
var ae=Object.defineProperty;var X=e=>{throw TypeError(e)};var ce=(e,t,n)=>t in e?ae(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var T=(e,t,n)=>ce(e,typeof t!="symbol"?t+"":t,n),Y=(e,t,n)=>t.has(e)||X("Cannot "+n);var y=(e,t,n)=>(Y(e,t,"read from private field"),n?n.call(e):t.get(e)),x=(e,t,n)=>t.has(e)?X("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),j=(e,t,n,r)=>(Y(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);import{b6 as ue,bi as q,h as Q,i as J,aG as _,az as le,u as W,bj as fe,p as E,P as I,aZ as de,aN as pe,aO as ee,bk as me,Q as te,N as M,O as V,a as O,R as ne,c as he,aF as be,r as ve,f as ye}from"./nEbfNkJh.js";import"./Bzak7iHL.js";import{c as ge}from"./BpNSSBPP.js";import{p as B,i as Ee,r as re,s as _e}from"./zcqfpVBB.js";import{f as P,b as D,a as Se,c as we}from"./Xjya7ye4.js";function Ae(){return Symbol(ue)}function vt(e,t,n=t){var r=new WeakSet;q(e,"input",async o=>{var s=o?e.defaultValue:e.value;if(s=L(e)?N(s):s,n(s),_!==null&&r.add(_),await le(),s!==(s=t())){var a=e.selectionStart,u=e.selectionEnd,f=e.value.length;if(e.value=s??"",u!==null){var l=e.value.length;a===u&&u===f&&l>f?(e.selectionStart=l,e.selectionEnd=l):(e.selectionStart=a,e.selectionEnd=Math.min(u,l))}}}),(Q&&e.defaultValue!==e.value||W(t)==null&&e.value)&&(n(L(e)?N(e.value):e.value),_!==null&&r.add(_)),J(()=>{var o=t();if(e===document.activeElement){var s=fe??_;if(r.has(s))return}L(e)&&o===N(e.value)||e.type==="date"&&!o&&!e.value||o!==e.value&&(e.value=o??"")})}function L(e){var t=e.type;return t==="number"||t==="range"}function N(e){return e===""?null:+e}function yt(e,t,n=t){q(e,"change",()=>{n(e.files)}),Q&&e.files&&n(e.files),J(()=>{e.files=t()})}function Te(e){return typeof e=="function"}function xe(e){return e!==null&&typeof e=="object"}const ke=["string","number","bigint","boolean"];function C(e){return e==null||ke.includes(typeof e)?!0:Array.isArray(e)?e.every(t=>C(t)):typeof e=="object"?Object.getPrototypeOf(e)===Object.prototype:!1}const S=Symbol("box"),U=Symbol("is-writable");function F(e,t){const n=I(e);return t?{[S]:!0,[U]:!0,get current(){return E(n)},set current(r){t(r)}}:{[S]:!0,get current(){return e()}}}function R(e){return xe(e)&&S in e}function oe(e){return R(e)&&U in e}function gt(e){return R(e)?e:Te(e)?F(e):Oe(e)}function Et(e){return Object.entries(e).reduce((t,[n,r])=>R(r)?(oe(r)?Object.defineProperty(t,n,{get(){return r.current},set(o){r.current=o}}):Object.defineProperty(t,n,{get(){return r.current}}),t):Object.assign(t,{[n]:r}),{})}function _t(e){return oe(e)?{[S]:!0,get current(){return e.current}}:e}function Oe(e){let t=de(pe(e));return{[S]:!0,[U]:!0,get current(){return E(t)},set current(n){ee(t,n,!0)}}}function Ie(...e){return function(t){var n;for(const r of e)if(r){if(t.defaultPrevented)return;typeof r=="function"?r.call(this,t):(n=r.current)==null||n.call(this,t)}}}var z=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Re=/\n/g,je=/^\s*/,Pe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Le=/^:\s*/,Ne=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,We=/^[;\s]*/,Me=/^\s+|\s+$/g,Ve=`
`,K="/",$="*",v="",Be="comment",Ce="declaration";function Fe(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function o(c){var i=c.match(Re);i&&(n+=i.length);var h=c.lastIndexOf(Ve);r=~h?c.length-h:r+c.length}function s(){var c={line:n,column:r};return function(i){return i.position=new a(c),l(),i}}function a(c){this.start=c,this.end={line:n,column:r},this.source=t.source}a.prototype.content=e;function u(c){var i=new Error(t.source+":"+n+":"+r+": "+c);if(i.reason=c,i.filename=t.source,i.line=n,i.column=r,i.source=e,!t.silent)throw i}function f(c){var i=c.exec(e);if(i){var h=i[0];return o(h),e=e.slice(h.length),i}}function l(){f(je)}function m(c){var i;for(c=c||[];i=b();)i!==!1&&c.push(i);return c}function b(){var c=s();if(!(K!=e.charAt(0)||$!=e.charAt(1))){for(var i=2;v!=e.charAt(i)&&($!=e.charAt(i)||K!=e.charAt(i+1));)++i;if(i+=2,v===e.charAt(i-1))return u("End of comment missing");var h=e.slice(2,i-2);return r+=2,o(h),e=e.slice(i),r+=2,c({type:Be,comment:h})}}function p(){var c=s(),i=f(Pe);if(i){if(b(),!f(Le))return u("property missing ':'");var h=f(Ne),ie=c({type:Ce,property:Z(i[0].replace(z,v)),value:h?Z(h[0].replace(z,v)):v});return f(We),ie}}function d(){var c=[];m(c);for(var i;i=p();)i!==!1&&(c.push(i),m(c));return c}return l(),d()}function Z(e){return e?e.replace(Me,v):v}function Ge(e,t){let n=null;if(!e||typeof e!="string")return n;const r=Fe(e),o=typeof t=="function";return r.forEach(s=>{if(s.type!=="declaration")return;const{property:a,value:u}=s;o?t(a,u,s):u&&(n=n||{},n[a]=u)}),n}const Ue=/\d/,He=["-","_","/","."];function Xe(e=""){if(!Ue.test(e))return e!==e.toLowerCase()}function Ye(e){const t=[];let n="",r,o;for(const s of e){const a=He.includes(s);if(a===!0){t.push(n),n="",r=void 0;continue}const u=Xe(s);if(o===!1){if(r===!1&&u===!0){t.push(n),n=s,r=u;continue}if(r===!0&&u===!1&&n.length>1){const f=n.at(-1);t.push(n.slice(0,Math.max(0,n.length-1))),n=f+s,r=u;continue}}n+=s,r=u,o=a}return t.push(n),t}function se(e){return e?Ye(e).map(t=>ze(t)).join(""):""}function De(e){return Ke(se(e||""))}function ze(e){return e?e[0].toUpperCase()+e.slice(1):""}function Ke(e){return e?e[0].toLowerCase()+e.slice(1):""}function k(e){if(!e)return{};const t={};function n(r,o){if(r.startsWith("-moz-")||r.startsWith("-webkit-")||r.startsWith("-ms-")||r.startsWith("-o-")){t[se(r)]=o;return}if(r.startsWith("--")){t[r]=o;return}t[De(r)]=o}return Ge(e,n),t}function $e(...e){return(...t)=>{for(const n of e)typeof n=="function"&&n(...t)}}function Ze(e,t){const n=RegExp(e,"g");return r=>{if(typeof r!="string")throw new TypeError(`expected an argument of type string, but got ${typeof r}`);return r.match(n)?r.replace(n,t):r}}const qe=Ze(/[A-Z]/,e=>`-${e.toLowerCase()}`);function Qe(e){if(!e||typeof e!="object"||Array.isArray(e))throw new TypeError(`expected an argument of type object, but got ${typeof e}`);return Object.keys(e).map(t=>`${qe(t)}: ${e[t]};`).join(`
`)}function Je(e={}){return Qe(e).replace(`
`," ")}const et=["onabort","onanimationcancel","onanimationend","onanimationiteration","onanimationstart","onauxclick","onbeforeinput","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncompositionend","oncompositionstart","oncompositionupdate","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onfocusin","onfocusout","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onselectionchange","onselectstart","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitioncancel","ontransitionend","ontransitionrun","ontransitionstart","onvolumechange","onwaiting","onwebkitanimationend","onwebkitanimationiteration","onwebkitanimationstart","onwebkittransitionend","onwheel"],tt=new Set(et);function nt(e){return tt.has(e)}function rt(...e){const t={...e[0]};for(let n=1;n<e.length;n++){const r=e[n];if(r){for(const o of Object.keys(r)){const s=t[o],a=r[o],u=typeof s=="function",f=typeof a=="function";if(u&&nt(o)){const l=s,m=a;t[o]=Ie(l,m)}else if(u&&f)t[o]=$e(s,a);else if(o==="class"){const l=C(s),m=C(a);l&&m?t[o]=P(s,a):l?t[o]=P(s):m&&(t[o]=P(a))}else if(o==="style"){const l=typeof s=="object",m=typeof a=="object",b=typeof s=="string",p=typeof a=="string";if(l&&m)t[o]={...s,...a};else if(l&&p){const d=k(a);t[o]={...s,...d}}else if(b&&m){const d=k(s);t[o]={...d,...a}}else if(b&&p){const d=k(s),c=k(a);t[o]={...d,...c}}else l?t[o]=s:m?t[o]=a:b?t[o]=s:p&&(t[o]=a)}else t[o]=a!==void 0?a:s}for(const o of Object.getOwnPropertySymbols(r)){const s=t[o],a=r[o];t[o]=a!==void 0?a:s}}}return typeof t.style=="object"&&(t.style=Je(t.style).replaceAll(`
`," ")),t.hidden===!1&&(t.hidden=void 0,delete t.hidden),t.disabled===!1&&(t.disabled=void 0,delete t.disabled),t}function ot(e,t){return{[Ae()]:n=>R(e)?(e.current=n,W(()=>t==null?void 0:t(n)),()=>{"isConnected"in n&&n.isConnected||(e.current=null,t==null||t(null))}):(e(n),W(()=>t==null?void 0:t(n)),()=>{"isConnected"in n&&n.isConnected||(e(null),t==null||t(null))})}}function St(e){return e?"true":"false"}function wt(e){return e?"":void 0}function At(e){return e?!0:void 0}function Tt(e){return e?"open":"closed"}function xt(e){return e?"checked":"unchecked"}function kt(e,t){return e?"true":"false"}var g,w;class st{constructor(t){x(this,g);x(this,w);T(this,"attrs");j(this,g,t.getVariant?t.getVariant():null),j(this,w,y(this,g)?`data-${y(this,g)}-`:`data-${t.component}-`),this.getAttr=this.getAttr.bind(this),this.selector=this.selector.bind(this),this.attrs=Object.fromEntries(t.parts.map(n=>[n,this.getAttr(n)]))}getAttr(t,n){return n?`data-${n}-${t}`:`${y(this,w)}${t}`}selector(t,n){return`[${this.getAttr(t,n)}]`}}g=new WeakMap,w=new WeakMap;function it(e){const t=new st(e);return{...t.attrs,selector:t.selector,getAttr:t.getAttr}}function at(e,t){return`bits-${e}`}const ct=it({component:"label",parts:["root"]});var A;const H=class H{constructor(t){T(this,"opts");T(this,"attachment");x(this,A,I(()=>({id:this.opts.id.current,[ct.root]:"",onmousedown:this.onmousedown,...this.attachment})));this.opts=t,this.attachment=ot(this.opts.ref),this.onmousedown=this.onmousedown.bind(this)}static create(t){return new H(t)}onmousedown(t){t.detail>1&&t.preventDefault()}get props(){return E(y(this,A))}set props(t){ee(y(this,A),t)}};A=new WeakMap;let G=H;var ut=ye("<label><!></label>");function lt(e,t){const n=me();te(t,!0);let r=B(t,"id",19,()=>at(n)),o=B(t,"ref",15,null),s=re(t,["$$slots","$$events","$$legacy","children","child","id","ref","for"]);const a=G.create({id:F(()=>r()),ref:F(()=>o(),p=>o(p))}),u=I(()=>rt(s,a.props,{for:t.for}));var f=M(),l=V(f);{var m=p=>{var d=M(),c=V(d);D(c,()=>t.child,()=>({props:E(u)})),O(p,d)},b=p=>{var d=ut();Se(d,()=>({...E(u),for:t.for}));var c=he(d);D(c,()=>t.children??be),ve(d),O(p,d)};Ee(l,p=>{t.child?p(m):p(b,!1)})}O(e,f),ne()}function Ot(e,t){te(t,!0);let n=B(t,"ref",15,null),r=re(t,["$$slots","$$events","$$legacy","ref","class"]);var o=M(),s=V(o);{let a=I(()=>we("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",t.class));ge(s,()=>lt,(u,f)=>{f(u,_e({"data-slot":"label",get class(){return E(a)}},()=>r,{get ref(){return n()},set ref(l){n(l)}}))})}O(e,o),ne()}export{S as B,Ot as L,vt as a,yt as b,gt as c,F as d,Et as e,R as f,oe as g,xe as h,U as i,$e as j,ot as k,Tt as l,wt as m,St as n,it as o,Oe as p,Ie as q,at as r,Je as s,_t as t,rt as u,k as v,xt as w,kt as x,At as y};
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
import"./Bzak7iHL.js";import{s,c as e,n as o,b as n,a as t,r as l,f as k}from"./nEbfNkJh.js";import{B as c}from"./uf3Is7Es.js";var g=k('<main class="flex min-h-0 flex-1 flex-col items-center justify-center gap-6 p-6"><h1 class="text-2xl font-semibold">Base</h1> <div class="flex w-full max-w-xs flex-col gap-3"><a href="https://prism.ccllc.pro" class="block" target="_blank" rel="noopener noreferrer"><!></a> <a href="https://tasgrid.ccllc.pro" class="block" target="_blank" rel="noopener noreferrer"><!></a> <a href="https://stackq.ccllc.pro" class="block" target="_blank" rel="noopener noreferrer"><!></a> <a href="https://hrm.ccllc.pro" class="block" target="_blank" rel="noopener noreferrer"><!></a></div></main>');function H(u,w){var i=g(),d=s(e(i),2),f=e(d),$=e(f);c($,{class:"h-12 w-full min-h-12",children:(r,m)=>{o();var a=n("Prism");t(r,a)},$$slots:{default:!0}}),l(f);var p=s(f,2),x=e(p);c(x,{class:"h-12 min-h-12 w-full",variant:"outline",children:(r,m)=>{o();var a=n("TasGrid");t(r,a)},$$slots:{default:!0}}),l(p);var h=s(p,2),_=e(h);c(_,{class:"h-12 min-h-12 w-full",variant:"outline",children:(r,m)=>{o();var a=n("Stackq");t(r,a)},$$slots:{default:!0}}),l(h);var v=s(h,2),b=e(v);c(b,{class:"h-12 min-h-12 w-full",variant:"outline",children:(r,m)=>{o();var a=n("HRM");t(r,a)},$$slots:{default:!0}}),l(v),l(d),l(i),t(u,i)}export{H as default};
@@ -1 +0,0 @@
import{g as S,i as h,u as k,q,S as T}from"./nEbfNkJh.js";function t(r,i){return r===i||(r==null?void 0:r[T])===i}function A(r={},i,a,c){return S(()=>{var f,s;return h(()=>{f=s,s=[],k(()=>{r!==a(...s)&&(i(r,...s),f&&t(a(...f),r)&&i(null,...f))})}),()=>{q(()=>{s&&t(a(...s),r)&&i(null,...s)})}}),r}export{A as b};
@@ -0,0 +1 @@
import{w as s,x as a,y as o,z as l,A as n,B as u,D as c,E as r,F as f,G as i,I as m,J as _}from"./BfGs3WDN.js";import{h as p,m as y,u as d}from"./Dc4kZMuG.js";function x(e){o===null&&s(),l&&o.l!==null?g(o).m.push(e):a(()=>{const t=n(e);if(typeof t=="function")return t})}function g(e){var t=e.l;return t.u??(t.u={a:[],b:[],m:[]})}const C=Object.freeze(Object.defineProperty({__proto__:null,flushSync:c,getAllContexts:r,getContext:f,hasContext:i,hydrate:p,mount:y,onMount:x,setContext:m,settled:_,tick:u,unmount:d,untrack:n},Symbol.toStringTag,{value:"Module"}));export{x as o,C as s};
@@ -0,0 +1,2 @@
var Ne=Object.defineProperty;var ne=i=>{throw TypeError(i)};var De=(i,e,s)=>e in i?Ne(i,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[e]=s;var X=(i,e,s)=>De(i,typeof e!="symbol"?e+"":e,s),K=(i,e,s)=>e.has(i)||ne("Cannot "+s);var t=(i,e,s)=>(K(i,e,"read from private field"),s?s.call(i):e.get(i)),f=(i,e,s)=>e.has(i)?ne("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,s),r=(i,e,s,n)=>(K(i,e,"write to private field"),n?n.call(i,s):e.set(i,s),s),_=(i,e,s)=>(K(i,e,"access private method"),s);import{aN as Ae,X as ge,N as Oe,ab as ve,A as Se,aO as ae,O as L,u as D,l as A,ax as I,aP as he,k as Fe,K as Ye,_ as ke,U as F,j as ye,ao as Q,T as Z,V as Ce,aQ as fe,aR as Ie,aS as oe,aT as Me,aU as xe,av as _e,au as de,aV as le,aW as Ve,aw as Be,y as me,a2 as He,R as G,q as U,b as Le,a0 as Pe,aX as ce,aY as qe,L as Ue,aZ as We,a_ as $e,a$ as J,v as je,C as be,az as ze,m as Xe,b0 as ee,o as B,b1 as Ke,af as Qe,b2 as Ze,a7 as Ge,p as Je,b3 as et,a1 as tt,b4 as st,e as it}from"./BfGs3WDN.js";import{a as rt,r as ue,h as pe,i as nt}from"./BlBMKpZ6.js";function at(i){let e=0,s=ve(0),n;return()=>{Ae()&&(ge(s),Oe(()=>(e===0&&(n=Se(()=>i(()=>ae(s)))),e+=1,()=>{L(()=>{e-=1,e===0&&(n==null||n(),n=void 0,ae(s))})})))}}var ht=Ue|We;function ft(i,e,s){new ot(i,e,s)}var c,M,T,O,m,b,d,E,R,S,N,Y,k,C,w,W,h,Ee,Te,te,P,q,se;class ot{constructor(e,s,n){f(this,h);X(this,"parent");X(this,"is_pending",!1);f(this,c);f(this,M,A?D:null);f(this,T);f(this,O);f(this,m);f(this,b,null);f(this,d,null);f(this,E,null);f(this,R,null);f(this,S,0);f(this,N,0);f(this,Y,!1);f(this,k,new Set);f(this,C,new Set);f(this,w,null);f(this,W,at(()=>(r(this,w,ve(t(this,S))),()=>{r(this,w,null)})));r(this,c,e),r(this,T,s),r(this,O,o=>{var a=I;a.b=this,a.f|=he,n(o)}),this.parent=I.b,r(this,m,Fe(()=>{if(A){const o=t(this,M);Ye(),o.data===ke?_(this,h,Te).call(this):_(this,h,Ee).call(this)}else _(this,h,te).call(this)},ht)),A&&r(this,c,D)}defer_effect(e){xe(e,t(this,k),t(this,C))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!t(this,T).pending}update_pending_count(e){_(this,h,se).call(this,e),r(this,S,t(this,S)+e),!(!t(this,w)||t(this,Y))&&(r(this,Y,!0),L(()=>{r(this,Y,!1),t(this,w)&&He(t(this,w),t(this,S))}))}get_effect_pending(){return t(this,W).call(this),ge(t(this,w))}error(e){var s=t(this,T).onerror;let n=t(this,T).failed;if(!s&&!n)throw e;t(this,b)&&(G(t(this,b)),r(this,b,null)),t(this,d)&&(G(t(this,d)),r(this,d,null)),t(this,E)&&(G(t(this,E)),r(this,E,null)),A&&(U(t(this,M)),Le(),U(Pe()));var o=!1,a=!1;const u=()=>{if(o){$e();return}o=!0,a&&qe(),t(this,E)!==null&&Z(t(this,E),()=>{r(this,E,null)}),_(this,h,q).call(this,()=>{Q.ensure(),_(this,h,te).call(this)})};L(()=>{try{a=!0,s==null||s(e,u),a=!1}catch(l){ce(l,t(this,m)&&t(this,m).parent)}n&&r(this,E,_(this,h,q).call(this,()=>{Q.ensure();try{return F(()=>{var l=I;l.b=this,l.f|=he,n(t(this,c),()=>e,()=>u)})}catch(l){return ce(l,t(this,m).parent),null}}))})}}c=new WeakMap,M=new WeakMap,T=new WeakMap,O=new WeakMap,m=new WeakMap,b=new WeakMap,d=new WeakMap,E=new WeakMap,R=new WeakMap,S=new WeakMap,N=new WeakMap,Y=new WeakMap,k=new WeakMap,C=new WeakMap,w=new WeakMap,W=new WeakMap,h=new WeakSet,Ee=function(){try{r(this,b,F(()=>t(this,O).call(this,t(this,c))))}catch(e){this.error(e)}},Te=function(){const e=t(this,T).pending;e&&(this.is_pending=!0,r(this,d,F(()=>e(t(this,c)))),L(()=>{var s=r(this,R,document.createDocumentFragment()),n=ye();s.append(n),r(this,b,_(this,h,q).call(this,()=>(Q.ensure(),F(()=>t(this,O).call(this,n))))),t(this,N)===0&&(t(this,c).before(s),r(this,R,null),Z(t(this,d),()=>{r(this,d,null)}),_(this,h,P).call(this))}))},te=function(){try{if(this.is_pending=this.has_pending_snippet(),r(this,N,0),r(this,S,0),r(this,b,F(()=>{t(this,O).call(this,t(this,c))})),t(this,N)>0){var e=r(this,R,document.createDocumentFragment());Ce(t(this,b),e);const s=t(this,T).pending;r(this,d,F(()=>s(t(this,c))))}else _(this,h,P).call(this)}catch(s){this.error(s)}},P=function(){this.is_pending=!1;for(const e of t(this,k))fe(e,Ie),oe(e);for(const e of t(this,C))fe(e,Me),oe(e);t(this,k).clear(),t(this,C).clear()},q=function(e){var s=I,n=Be,o=me;_e(t(this,m)),de(t(this,m)),le(t(this,m).ctx);try{return e()}catch(a){return Ve(a),null}finally{_e(s),de(n),le(o)}},se=function(e){var s;if(!this.has_pending_snippet()){this.parent&&_(s=this.parent,h,se).call(s,e);return}r(this,N,t(this,N)+e),t(this,N)===0&&(_(this,h,P).call(this),t(this,d)&&Z(t(this,d),()=>{r(this,d,null)}),t(this,R)&&(t(this,c).before(t(this,R)),r(this,R,null)))};function ut(i,e){var s=e==null?"":typeof e=="object"?e+"":e;s!==(i.__t??(i.__t=i.nodeValue))&&(i.__t=s,i.nodeValue=s+"")}function _t(i,e){return Re(i,e)}function pt(i,e){J(),e.intro=e.intro??!1;const s=e.target,n=A,o=D;try{for(var a=je(s);a&&(a.nodeType!==be||a.data!==ze);)a=Xe(a);if(!a)throw ee;B(!0),U(a);const u=Re(i,{...e,anchor:a});return B(!1),u}catch(u){if(u instanceof Error&&u.message.split(`
`).some(l=>l.startsWith("https://svelte.dev/e/")))throw u;return u!==ee&&console.warn("Failed to hydrate: ",u),e.recover===!1&&Ke(),J(),Qe(s),B(!1),_t(i,e)}finally{B(n),U(o)}}const H=new Map;function Re(i,{target:e,anchor:s,props:n={},events:o,context:a,intro:u=!0}){J();var l=void 0,we=Ze(()=>{var x=s??e.appendChild(ye());ft(x,{pending:()=>{}},p=>{Je({});var g=me;if(a&&(g.c=a),o&&(n.$$events=o),A&&et(p,null),l=i(p,n)||{},A&&(I.nodes.end=D,D===null||D.nodeType!==be||D.data!==tt))throw st(),ee;it()});var $=new Set,j=p=>{for(var g=0;g<p.length;g++){var v=p[g];if(!$.has(v)){$.add(v);var V=nt(v);for(const z of[e,document]){var y=H.get(z);y===void 0&&(y=new Map,H.set(z,y));var re=y.get(v);re===void 0?(z.addEventListener(v,pe,{passive:V}),y.set(v,1)):y.set(v,re+1)}}}};return j(Ge(rt)),ue.add(j),()=>{var V;for(var p of $)for(const y of[e,document]){var g=H.get(y),v=g.get(p);--v==0?(y.removeEventListener(p,pe),g.delete(p),g.size===0&&H.delete(y)):g.set(p,v)}ue.delete(j),x!==s&&((V=x.parentNode)==null||V.removeChild(x))}});return ie.set(l,we),l}let ie=new WeakMap;function gt(i,e){const s=ie.get(i);return s?(ie.delete(i),s(e)):Promise.resolve()}export{at as c,pt as h,_t as m,ut as s,gt as u};
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
import{_ as u}from"./D4nn9Y_6.js";function _(c={}){const{immediate:o=!1,onNeedRefresh:p,onOfflineReady:a,onRegistered:r,onRegisteredSW:s,onRegisterError:t}=c;let i,n;const d=async(e=!0)=>{await n};async function l(){if("serviceWorker"in navigator){if(i=await u(async()=>{const{Workbox:e}=await import("./BIl4cyR9.js");return{Workbox:e}},[],import.meta.url).then(({Workbox:e})=>new e("./sw.js",{scope:"./",type:"classic"})).catch(e=>{t==null||t(e)}),!i)return;i.addEventListener("activated",e=>{(e.isUpdate||e.isExternal)&&window.location.reload()}),i.addEventListener("installed",e=>{e.isUpdate||a==null||a()}),i.register({immediate:o}).then(e=>{s?s("./sw.js",e):r==null||r(e)}).catch(e=>{t==null||t(e)})}}return n=l(),d}export{_ as registerSW};
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
import{M as E,A as L}from"./BfGs3WDN.js";import{i as x,a as M,p as T,b as k}from"./CW15Ts-p.js";function C(t,r,i){E(()=>{var o=L(()=>r(t,i==null?void 0:i())||{});if(o!=null&&o.destroy)return()=>o.destroy()})}function H(t){const r=JSON.parse(t);return r.data&&(r.data=T(r.data,k.decoders)),r}function d(t){return HTMLElement.prototype.cloneNode.call(t)}function N(t,r=()=>{}){const i=async({action:e,result:l,reset:n=!0,invalidateAll:c=!0})=>{l.type==="success"&&(n&&HTMLFormElement.prototype.reset.call(t),c&&await x()),(location.origin+location.pathname===e.origin+e.pathname||l.type==="redirect"||l.type==="error")&&await M(l)};async function o(e){var f,b,y;if(((f=e.submitter)!=null&&f.hasAttribute("formmethod")?e.submitter.formMethod:d(t).method)!=="post")return;e.preventDefault();const n=new URL((b=e.submitter)!=null&&b.hasAttribute("formaction")?e.submitter.formAction:d(t).action),c=(y=e.submitter)!=null&&y.hasAttribute("formenctype")?e.submitter.formEnctype:d(t).enctype,m=new FormData(t,e.submitter),p=new AbortController;let u=!1;const w=await r({action:n,cancel:()=>u=!0,controller:p,formData:m,formElement:t,submitter:e.submitter})??i;if(u)return;let s;try{const a=new Headers({accept:"application/json","x-sveltekit-action":"true"});c!=="multipart/form-data"&&a.set("Content-Type",/^(:?application\/x-www-form-urlencoded|text\/plain)$/.test(c)?c:"application/x-www-form-urlencoded");const A=c==="multipart/form-data"?m:new URLSearchParams(m),h=await fetch(n,{method:"POST",headers:a,cache:"no-store",body:A,signal:p.signal});s=H(await h.text()),s.type==="error"&&(s.status=h.status)}catch(a){if((a==null?void 0:a.name)==="AbortError")return;s={type:"error",error:a}}await w({action:n,formData:m,formElement:t,update:a=>i({action:n,result:s,reset:a==null?void 0:a.reset,invalidateAll:a==null?void 0:a.invalidateAll}),result:s})}return HTMLFormElement.prototype.addEventListener.call(t,"submit",o),{destroy(){HTMLFormElement.prototype.removeEventListener.call(t,"submit",o)}}}export{C as a,N as e};
@@ -1 +0,0 @@
import{j as d,k as g,l as c,u as m,m as i,o as b,p,v,w as k,x as h}from"./nEbfNkJh.js";function y(n=!1){const s=d,e=s.l.u;if(!e)return;let f=()=>v(s.s);if(n){let o=0,t={};const _=k(()=>{let l=!1;const r=s.s;for(const a in r)r[a]!==t[a]&&(t[a]=r[a],l=!0);return l&&o++,o});f=()=>p(_)}e.b.length&&g(()=>{u(s,f),i(e.b)}),c(()=>{const o=m(()=>e.m.map(b));return()=>{for(const t of o)typeof t=="function"&&t()}}),e.a.length&&c(()=>{u(s,f),i(e.a)})}function u(n,s){if(n.l.s)for(const e of n.l.s)p(e);s()}h();export{y as i};
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
import"./Bzak7iHL.js";import{p as b,s as _,c as n,b as w,d as k,t as c,X as a,a as i,r as l,Y as u,e as B,f as x}from"./BfGs3WDN.js";import{s as S}from"./Dc4kZMuG.js";import{e as j,i as y}from"./BVBXfAos.js";import{s as D}from"./D7710T35.js";import{B as H}from"./DecArsLH.js";import{s as P,a as W}from"./8KX3cYnK.js";var X=x('<a class="block"><!></a>'),Y=x('<main class="flex min-h-0 flex-1 flex-col items-center justify-center gap-4 p-4 sm:gap-6 sm:p-6"><h1 class="w-full max-w-xs shrink-0 text-center text-2xl font-semibold">Base</h1> <div class="flex w-full max-w-xs shrink-0 flex-col gap-3"></div></main>');function J(d,t){b(t,!0);const p=u(()=>t.data.user?W.filter(r=>t.data.user&&t.data.user[r]===!0):[]);var e=Y(),o=_(n(e),2);j(o,21,()=>a(p),y,(r,m)=>{const h=u(()=>P[a(m)]);var s=X(),v=n(s);H(v,{class:"h-16 min-h-16 w-full",variant:"outline",children:(g,q)=>{w();var f=k();c(()=>S(f,a(h).title)),i(g,f)},$$slots:{default:!0}}),l(s),c(()=>D(s,"href",`/${a(m)??""}`)),i(r,s)}),l(o),l(e),i(d,e),B()}export{J as default};
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
var q=Object.defineProperty;var B=t=>{throw TypeError(t)};var z=(t,e,s)=>e in t?q(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s;var Y=(t,e,s)=>z(t,typeof e!="symbol"?e+"":e,s),j=(t,e,s)=>e.has(t)||B("Cannot "+s);var n=(t,e,s)=>(j(t,e,"read from private field"),s?s.call(t):e.get(t)),v=(t,e,s)=>e.has(t)?B("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,s),C=(t,e,s,r)=>(j(t,e,"write to private field"),r?r.call(t,s):e.set(t,s),s);import{aG as F,aH as J,ab as I,$ as Q,_ as H,Z as K,h as x,W as V,a0 as k,aI as ee,d as te,e as se,E as re,aJ as ne,aj as ie,H as ae,B as fe,A as oe,C as U,aK as y,aL as ue,aM as ce,p as D,aN as le,aO as de,X as he,aP as _e,aQ as pe,u as ve,ay as be,aR as ge,aS as Se,w as me,aT as Pe,aU as we,aV as Ae,S as $,aW as G,aX as P}from"./nEbfNkJh.js";var d,h,l,b,w,A,O;class Re{constructor(e,s=!0){Y(this,"anchor");v(this,d,new Map);v(this,h,new Map);v(this,l,new Map);v(this,b,new Set);v(this,w,!0);v(this,A,()=>{var e=F;if(n(this,d).has(e)){var s=n(this,d).get(e),r=n(this,h).get(s);if(r)J(r),n(this,b).delete(s);else{var i=n(this,l).get(s);i&&(n(this,h).set(s,i.effect),n(this,l).delete(s),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),r=i.effect)}for(const[a,o]of n(this,d)){if(n(this,d).delete(a),a===e)break;const f=n(this,l).get(o);f&&(I(f.effect),n(this,l).delete(o))}for(const[a,o]of n(this,h)){if(a===s||n(this,b).has(a))continue;const f=()=>{if(Array.from(n(this,d).values()).includes(a)){var _=document.createDocumentFragment();k(o,_),_.append(H()),n(this,l).set(a,{effect:o,fragment:_})}else I(o);n(this,b).delete(a),n(this,h).delete(a)};n(this,w)||!r?(n(this,b).add(a),Q(o,f,!1)):f()}}});v(this,O,e=>{n(this,d).delete(e);const s=Array.from(n(this,d).values());for(const[r,i]of n(this,l))s.includes(r)||(I(i.effect),n(this,l).delete(r))});this.anchor=e,C(this,w,s)}ensure(e,s){var r=F,i=ee();if(s&&!n(this,h).has(e)&&!n(this,l).has(e))if(i){var a=document.createDocumentFragment(),o=H();a.append(o),n(this,l).set(e,{effect:K(()=>s(o)),fragment:a})}else n(this,h).set(e,K(()=>s(this.anchor)));if(n(this,d).set(r,e),i){for(const[f,u]of n(this,h))f===e?r.unskip_effect(u):r.skip_effect(u);for(const[f,u]of n(this,l))f===e?r.unskip_effect(u.effect):r.skip_effect(u.effect);r.oncommit(n(this,A)),r.ondiscard(n(this,O))}else x&&(this.anchor=V),n(this,A).call(this)}}d=new WeakMap,h=new WeakMap,l=new WeakMap,b=new WeakMap,w=new WeakMap,A=new WeakMap,O=new WeakMap;function xe(t,e,s=!1){x&&se();var r=new Re(t),i=s?re:0;function a(o,f){if(x){const p=ne(t);var u;if(p===ie?u=0:p===ae?u=!1:u=parseInt(p.substring(1)),o!==u){var _=fe();oe(_),r.anchor=_,U(!1),r.ensure(o,f),U(!0);return}}r.ensure(o,f)}te(()=>{var o=!1;e((f,u=0)=>{o=!0,a(u,f)}),o||a(!1,null)},i)}let T=!1;function Te(t){var e=T;try{return T=!1,[t(),T]}finally{T=e}}const Oe={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function ye(t,e,s){return new Proxy({props:t,exclude:e},Oe)}const Ee={get(t,e){let s=t.props.length;for(;s--;){let r=t.props[s];if(P(r)&&(r=r()),typeof r=="object"&&r!==null&&e in r)return r[e]}},set(t,e,s){let r=t.props.length;for(;r--;){let i=t.props[r];P(i)&&(i=i());const a=y(i,e);if(a&&a.set)return a.set(s),!0}return!1},getOwnPropertyDescriptor(t,e){let s=t.props.length;for(;s--;){let r=t.props[s];if(P(r)&&(r=r()),typeof r=="object"&&r!==null&&e in r){const i=y(r,e);return i&&!i.configurable&&(i.configurable=!0),i}}},has(t,e){if(e===$||e===G)return!1;for(let s of t.props)if(P(s)&&(s=s()),s!=null&&e in s)return!0;return!1},ownKeys(t){const e=[];for(let s of t.props)if(P(s)&&(s=s()),!!s){for(const r in s)e.includes(r)||e.push(r);for(const r of Object.getOwnPropertySymbols(s))e.includes(r)||e.push(r)}return e}};function Le(...t){return new Proxy({props:t},Ee)}function Me(t,e,s,r){var M;var i=!be||(s&ge)!==0,a=(s&pe)!==0,o=(s&we)!==0,f=r,u=!0,_=()=>(u&&(u=!1,f=o?ve(r):r),f),p;if(a){var W=$ in t||G in t;p=((M=y(t,e))==null?void 0:M.set)??(W&&e in t?c=>t[e]=c:void 0)}var S,L=!1;a?[S,L]=Te(()=>t[e]):S=t[e],S===void 0&&r!==void 0&&(S=_(),p&&(i&&ue(),p(S)));var g;if(i?g=()=>{var c=t[e];return c===void 0?_():(u=!0,c)}:g=()=>{var c=t[e];return c!==void 0&&(f=void 0),c===void 0?f:c},i&&(s&ce)===0)return g;if(p){var X=t.$$legacy;return(function(c,R){return arguments.length>0?((!i||!R||X||L)&&p(R?g():c),c):g()})}var E=!1,m=((s&Se)!==0?me:Pe)(()=>(E=!1,g()));a&&D(m);var Z=he;return(function(c,R){if(arguments.length>0){const N=R?D(m):i&&a?le(c):c;return de(m,N),E=!0,f!==void 0&&(f=N),c}return Ae&&E||(Z.f&_e)!==0?m.v:D(m)})}export{Re as B,xe as i,Me as p,ye as r,Le as s};
@@ -1,2 +0,0 @@
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.DsCqkoz9.js","../chunks/Bzak7iHL.js","../chunks/CPmvlhtF.js","../chunks/nEbfNkJh.js","../chunks/zcqfpVBB.js","../chunks/Xjya7ye4.js","../chunks/BpNSSBPP.js","../chunks/CoAkxMBS.js","../chunks/BX9MO-1l.js","../chunks/CvA4ASMA.js","../chunks/ggIfGDPQ.js","../assets/0.Ci1WSy1v.css","../nodes/1.CwhQAky3.js","../nodes/2.B4w5AQ-r.js","../chunks/D4nn9Y_6.js","../chunks/uf3Is7Es.js","../chunks/DTd9pe6t.js","../nodes/3.sctq0uPd.js","../nodes/4.BG9kRLiv.js"])))=>i.map(i=>d[i]);
var M=e=>{throw TypeError(e)};var Y=(e,t,r)=>t.has(e)||M("Cannot "+r);var o=(e,t,r)=>(Y(e,t,"read from private field"),r?r.call(e):t.get(e)),L=(e,t,r)=>t.has(e)?M("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),j=(e,t,r,n)=>(Y(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);import{_ as O}from"../chunks/D4nn9Y_6.js";import{aO as x,aW as F,p as l,J as H,aY as K,L as U,Q as X,k as $,l as tt,az as et,O as R,s as rt,a as y,R as at,aZ as k,N as w,c as st,r as ot,f as z,P as A,b as nt,t as ct}from"../chunks/nEbfNkJh.js";import{h as it,m as ut,u as mt,o as lt,s as dt}from"../chunks/CPmvlhtF.js";import"../chunks/Bzak7iHL.js";import{p,i as D}from"../chunks/zcqfpVBB.js";import{c as I}from"../chunks/BpNSSBPP.js";import{b as T}from"../chunks/DTd9pe6t.js";function ft(e){return class extends _t{constructor(t){super({component:e,...t})}}}var d,i;class _t{constructor(t){L(this,d);L(this,i);var v;var r=new Map,n=(a,s)=>{var f=U(s,!1,!1);return r.set(a,f),f};const m=new Proxy({...t.props||{},$$events:{}},{get(a,s){return l(r.get(s)??n(s,Reflect.get(a,s)))},has(a,s){return s===F?!0:(l(r.get(s)??n(s,Reflect.get(a,s))),Reflect.has(a,s))},set(a,s,f){return x(r.get(s)??n(s,f),f),Reflect.set(a,s,f)}});j(this,i,(t.hydrate?it:ut)(t.component,{target:t.target,anchor:t.anchor,props:m,context:t.context,intro:t.intro??!1,recover:t.recover})),(!((v=t==null?void 0:t.props)!=null&&v.$$host)||t.sync===!1)&&H(),j(this,d,m.$$events);for(const a of Object.keys(o(this,i)))a==="$set"||a==="$destroy"||a==="$on"||K(this,a,{get(){return o(this,i)[a]},set(s){o(this,i)[a]=s},enumerable:!0});o(this,i).$set=a=>{Object.assign(m,a)},o(this,i).$destroy=()=>{mt(o(this,i))}}$set(t){o(this,i).$set(t)}$on(t,r){o(this,d)[t]=o(this,d)[t]||[];const n=(...m)=>r.call(this,...m);return o(this,d)[t].push(n),()=>{o(this,d)[t]=o(this,d)[t].filter(m=>m!==n)}}$destroy(){o(this,i).$destroy()}}d=new WeakMap,i=new WeakMap;const wt={};var ht=z('<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"><!></div>'),gt=z("<!> <!>",1);function vt(e,t){X(t,!0);let r=p(t,"components",23,()=>[]),n=p(t,"data_0",3,null),m=p(t,"data_1",3,null);$(()=>t.stores.page.set(t.page)),tt(()=>{t.stores,t.page,t.constructors,r(),t.form,n(),m(),t.stores.page.notify()});let v=k(!1),a=k(!1),s=k(null);lt(()=>{const c=t.stores.page.subscribe(()=>{l(v)&&(x(a,!0),et().then(()=>{x(s,document.title||"untitled page",!0)}))});return x(v,!0),c});const f=A(()=>t.constructors[1]);var V=gt(),C=R(V);{var J=c=>{const _=A(()=>t.constructors[0]);var h=w(),E=R(h);I(E,()=>l(_),(g,b)=>{T(b(g,{get data(){return n()},get form(){return t.form},get params(){return t.page.params},children:(u,yt)=>{var S=w(),Z=R(S);I(Z,()=>l(f),(q,B)=>{T(B(q,{get data(){return m()},get form(){return t.form},get params(){return t.page.params}}),P=>r()[1]=P,()=>{var P;return(P=r())==null?void 0:P[1]})}),y(u,S)},$$slots:{default:!0}}),u=>r()[0]=u,()=>{var u;return(u=r())==null?void 0:u[0]})}),y(c,h)},N=c=>{const _=A(()=>t.constructors[0]);var h=w(),E=R(h);I(E,()=>l(_),(g,b)=>{T(b(g,{get data(){return n()},get form(){return t.form},get params(){return t.page.params}}),u=>r()[0]=u,()=>{var u;return(u=r())==null?void 0:u[0]})}),y(c,h)};D(C,c=>{t.constructors[1]?c(J):c(N,!1)})}var Q=rt(C,2);{var W=c=>{var _=ht(),h=st(_);{var E=g=>{var b=nt();ct(()=>dt(b,l(s))),y(g,b)};D(h,g=>{l(a)&&g(E)})}ot(_),y(c,_)};D(Q,c=>{l(v)&&c(W)})}y(e,V),at()}const At=ft(vt),pt=[()=>O(()=>import("../nodes/0.DsCqkoz9.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url),()=>O(()=>import("../nodes/1.CwhQAky3.js"),__vite__mapDeps([12,1,10,3,2,8]),import.meta.url),()=>O(()=>import("../nodes/2.B4w5AQ-r.js"),__vite__mapDeps([13,14,1,3,4,6,15,5,16]),import.meta.url),()=>O(()=>import("../nodes/3.sctq0uPd.js"),__vite__mapDeps([17,1,3,7,8,2,5,4,15,16]),import.meta.url),()=>O(()=>import("../nodes/4.BG9kRLiv.js"),__vite__mapDeps([18,1,3,2,4,6,7,8,5,15,16,9]),import.meta.url)],Dt=[0],It={"/":[2],"/login":[-5],"/logout":[3]},G={handleError:(({error:e})=>{console.error(e)}),reroute:(()=>{}),transport:{}},bt=Object.fromEntries(Object.entries(G.transport).map(([e,t])=>[e,t.decode])),Tt=Object.fromEntries(Object.entries(G.transport).map(([e,t])=>[e,t.encode])),Vt=!1,Ct=(e,t)=>bt[e](t);export{Ct as decode,bt as decoders,It as dictionary,Tt as encoders,Vt as hash,G as hooks,wt as matchers,pt as nodes,At as root,Dt as server_loads};
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
import{l as o,e as r}from"../chunks/CW15Ts-p.js";export{o as load_css,r as start};
@@ -1 +0,0 @@
import{l as o,e as r}from"../chunks/BX9MO-1l.js";export{o as load_css,r as start};
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long

Some files were not shown because too many files have changed in this diff Show More