@luna_ui/luna 0.2.1 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/event-utils-C_M2XBNj.js +1 -0
- package/dist/event-utils.d.ts +142 -0
- package/dist/event-utils.js +1 -0
- package/dist/index.d.ts +14 -3
- package/dist/index.js +1 -1
- package/dist/jsx-dev-runtime.js +1 -1
- package/dist/jsx-runtime.d.ts +1 -1
- package/dist/jsx-runtime.js +1 -1
- package/dist/src-BuWZp_n_.js +1 -0
- package/package.json +5 -1
- package/dist/src-D2Q2UhWb.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e){return e.target?.value??``}function t(e){return e.target?.checked??!1}function n(e){return e.target?.selectedIndex??-1}function r(e){if(`touches`in e&&e.touches.length>0)return{x:e.touches[0].clientX,y:e.touches[0].clientY};let t=e;return{x:t.clientX,y:t.clientY}}function i(e){return{x:e.offsetX,y:e.offsetY}}function a(e){if(`touches`in e&&e.touches.length>0)return{x:e.touches[0].pageX,y:e.touches[0].pageY};let t=e;return{x:t.pageX,y:t.pageY}}function o(e){return{dx:e.movementX,dy:e.movementY}}function s(e,t){return e.target?.closest(`[data-${t}]`)?.getAttribute(`data-${t}`)??null}function c(e){return s(e,`id`)}function l(e){return e.target?.dataset??{}}function u(e,t){return e.target?.matches?.(t)??!1}function d(e,t){return e.target?.closest?.(t)}function f(e){e.preventDefault()}function p(e){e.stopPropagation()}function m(e){e.preventDefault(),e.stopPropagation()}function h(e){return e.isComposing??!1}function g(e,t){switch(t){case`ctrl`:return e.ctrlKey;case`alt`:return e.altKey;case`shift`:return e.shiftKey;case`meta`:return e.metaKey}}function _(e){return e.metaKey||e.ctrlKey}function v(e){return e.key}function y(e){return e.key===`Enter`&&!h(e)}function b(e){return e.key===`Escape`}function x(e){return{deltaX:e.deltaX,deltaY:e.deltaY,deltaZ:e.deltaZ}}function S(e){return e.button}function C(e){return e.button===0}function w(e){return e.button===2}function T(e){return e.dataTransfer?.files??null}function E(e){return(`dataTransfer`in e?e.dataTransfer:e.clipboardData)?.getData(`text/plain`)??``}export{w as C,p as D,m as E,C as S,f as T,_,c as a,y as b,v as c,a as d,n as f,x as g,E as h,s as i,o as l,e as m,r as n,l as o,t as p,d as r,T as s,S as t,i as u,g as v,u as w,b as x,h as y};
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
//#region src/event-utils.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Event utilities for common event handling patterns
|
|
4
|
+
*
|
|
5
|
+
* These utilities are tree-shakeable - only import what you use.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* import { getTargetValue, getDataId, stopEvent } from "@luna_ui/luna/event-utils";
|
|
9
|
+
*
|
|
10
|
+
* on=events().input(fn(e) {
|
|
11
|
+
* const value = getTargetValue(e);
|
|
12
|
+
* setValue(value);
|
|
13
|
+
* })
|
|
14
|
+
*/
|
|
15
|
+
/**
|
|
16
|
+
* Get value from input/textarea/select element
|
|
17
|
+
*/
|
|
18
|
+
declare function getTargetValue(e: Event): string;
|
|
19
|
+
/**
|
|
20
|
+
* Get checked state from checkbox/radio input
|
|
21
|
+
*/
|
|
22
|
+
declare function getTargetChecked(e: Event): boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Get selected index from select element
|
|
25
|
+
*/
|
|
26
|
+
declare function getSelectedIndex(e: Event): number;
|
|
27
|
+
/**
|
|
28
|
+
* Get client position (relative to viewport) from mouse/pointer/touch event
|
|
29
|
+
*/
|
|
30
|
+
declare function getClientPos(e: MouseEvent | PointerEvent | TouchEvent): {
|
|
31
|
+
x: number;
|
|
32
|
+
y: number;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Get offset position (relative to target element) from mouse/pointer event
|
|
36
|
+
*/
|
|
37
|
+
declare function getOffsetPos(e: MouseEvent | PointerEvent): {
|
|
38
|
+
x: number;
|
|
39
|
+
y: number;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Get page position (relative to document) from mouse/pointer/touch event
|
|
43
|
+
*/
|
|
44
|
+
declare function getPagePos(e: MouseEvent | PointerEvent | TouchEvent): {
|
|
45
|
+
x: number;
|
|
46
|
+
y: number;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* Get movement delta from mouse/pointer event
|
|
50
|
+
*/
|
|
51
|
+
declare function getMovement(e: MouseEvent | PointerEvent): {
|
|
52
|
+
dx: number;
|
|
53
|
+
dy: number;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* Get data attribute from event target or closest ancestor
|
|
57
|
+
*/
|
|
58
|
+
declare function getDataAttr(e: Event, key: string): string | null;
|
|
59
|
+
/**
|
|
60
|
+
* Get data-id from closest ancestor (common pattern for list items)
|
|
61
|
+
*/
|
|
62
|
+
declare function getDataId(e: Event): string | null;
|
|
63
|
+
/**
|
|
64
|
+
* Get all data attributes from event target as object
|
|
65
|
+
*/
|
|
66
|
+
declare function getDataset(e: Event): DOMStringMap;
|
|
67
|
+
/**
|
|
68
|
+
* Check if event target matches a CSS selector
|
|
69
|
+
*/
|
|
70
|
+
declare function matchesSelector(e: Event, selector: string): boolean;
|
|
71
|
+
/**
|
|
72
|
+
* Get closest ancestor matching selector from event target
|
|
73
|
+
*/
|
|
74
|
+
declare function getClosest<T extends Element = HTMLElement>(e: Event, selector: string): T | null;
|
|
75
|
+
/**
|
|
76
|
+
* Prevent default behavior
|
|
77
|
+
*/
|
|
78
|
+
declare function preventDefault(e: Event): void;
|
|
79
|
+
/**
|
|
80
|
+
* Stop event propagation
|
|
81
|
+
*/
|
|
82
|
+
declare function stopPropagation(e: Event): void;
|
|
83
|
+
/**
|
|
84
|
+
* Prevent default and stop propagation (convenience)
|
|
85
|
+
*/
|
|
86
|
+
declare function stopEvent(e: Event): void;
|
|
87
|
+
/**
|
|
88
|
+
* Check if IME is composing (for input/keyboard events)
|
|
89
|
+
* Use this to avoid handling partial IME input
|
|
90
|
+
*/
|
|
91
|
+
declare function isComposing(e: Event): boolean;
|
|
92
|
+
/**
|
|
93
|
+
* Check if modifier key is pressed
|
|
94
|
+
*/
|
|
95
|
+
declare function hasModifier(e: KeyboardEvent | MouseEvent, modifier: "ctrl" | "alt" | "shift" | "meta"): boolean;
|
|
96
|
+
/**
|
|
97
|
+
* Check if Cmd (Mac) or Ctrl (Windows/Linux) is pressed
|
|
98
|
+
*/
|
|
99
|
+
declare function hasCmdOrCtrl(e: KeyboardEvent | MouseEvent): boolean;
|
|
100
|
+
/**
|
|
101
|
+
* Get keyboard key with normalized names
|
|
102
|
+
*/
|
|
103
|
+
declare function getKey(e: KeyboardEvent): string;
|
|
104
|
+
/**
|
|
105
|
+
* Check if Enter key was pressed (outside IME composition)
|
|
106
|
+
*/
|
|
107
|
+
declare function isEnterKey(e: KeyboardEvent): boolean;
|
|
108
|
+
/**
|
|
109
|
+
* Check if Escape key was pressed
|
|
110
|
+
*/
|
|
111
|
+
declare function isEscapeKey(e: KeyboardEvent): boolean;
|
|
112
|
+
/**
|
|
113
|
+
* Get wheel delta (normalized across browsers)
|
|
114
|
+
*/
|
|
115
|
+
declare function getWheelDelta(e: WheelEvent): {
|
|
116
|
+
deltaX: number;
|
|
117
|
+
deltaY: number;
|
|
118
|
+
deltaZ: number;
|
|
119
|
+
};
|
|
120
|
+
/**
|
|
121
|
+
* Get which mouse button was pressed
|
|
122
|
+
* 0 = primary (left), 1 = auxiliary (middle), 2 = secondary (right)
|
|
123
|
+
*/
|
|
124
|
+
declare function getButton(e: MouseEvent): number;
|
|
125
|
+
/**
|
|
126
|
+
* Check if primary (left) mouse button was pressed
|
|
127
|
+
*/
|
|
128
|
+
declare function isPrimaryButton(e: MouseEvent): boolean;
|
|
129
|
+
/**
|
|
130
|
+
* Check if secondary (right) mouse button was pressed
|
|
131
|
+
*/
|
|
132
|
+
declare function isSecondaryButton(e: MouseEvent): boolean;
|
|
133
|
+
/**
|
|
134
|
+
* Get files from drag event
|
|
135
|
+
*/
|
|
136
|
+
declare function getDroppedFiles(e: DragEvent): FileList | null;
|
|
137
|
+
/**
|
|
138
|
+
* Get text data from drag/clipboard event
|
|
139
|
+
*/
|
|
140
|
+
declare function getTextData(e: DragEvent | ClipboardEvent): string;
|
|
141
|
+
//#endregion
|
|
142
|
+
export { getButton, getClientPos, getClosest, getDataAttr, getDataId, getDataset, getDroppedFiles, getKey, getMovement, getOffsetPos, getPagePos, getSelectedIndex, getTargetChecked, getTargetValue, getTextData, getWheelDelta, hasCmdOrCtrl, hasModifier, isComposing, isEnterKey, isEscapeKey, isPrimaryButton, isSecondaryButton, matchesSelector, preventDefault, stopEvent, stopPropagation };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{C as e,D as t,E as n,S as r,T as i,_ as a,a as o,b as s,c,d as l,f as u,g as d,h as f,i as p,l as m,m as h,n as g,o as _,p as v,r as y,s as b,t as x,u as S,v as C,w,x as T,y as E}from"./event-utils-C_M2XBNj.js";export{x as getButton,g as getClientPos,y as getClosest,p as getDataAttr,o as getDataId,_ as getDataset,b as getDroppedFiles,c as getKey,m as getMovement,S as getOffsetPos,l as getPagePos,u as getSelectedIndex,v as getTargetChecked,h as getTargetValue,f as getTextData,d as getWheelDelta,a as hasCmdOrCtrl,C as hasModifier,E as isComposing,s as isEnterKey,T as isEscapeKey,r as isPrimaryButton,e as isSecondaryButton,w as matchesSelector,i as preventDefault,n as stopEvent,t as stopPropagation};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { getButton, getClientPos, getClosest, getDataAttr, getDataId, getDataset, getDroppedFiles, getKey, getMovement, getOffsetPos, getPagePos, getSelectedIndex, getTargetChecked, getTargetValue, getTextData, getWheelDelta, hasCmdOrCtrl, hasModifier, isComposing, isEnterKey, isEscapeKey, isPrimaryButton, isSecondaryButton, matchesSelector, preventDefault, stopEvent, stopPropagation } from "./event-utils.js";
|
|
2
|
+
|
|
1
3
|
//#region ../../target/js/release/build/platform/js/api/moonbit.d.ts
|
|
2
4
|
|
|
3
5
|
type Unit = undefined;
|
|
@@ -44,7 +46,7 @@ declare function mathmlNs(): String;
|
|
|
44
46
|
declare function svgNs(): String;
|
|
45
47
|
declare function createElementNs(ns: String, tag: String, attrs: any, children: any): any;
|
|
46
48
|
declare function createElement(tag: String, attrs: any, children: any): any;
|
|
47
|
-
declare function Fragment(children: any): any;
|
|
49
|
+
declare function Fragment$1(children: any): any;
|
|
48
50
|
declare function jsxs(tag: String, attrs: any, children: any): any;
|
|
49
51
|
declare function jsx(tag: String, attrs: any, children: any): any;
|
|
50
52
|
declare function show(cond: () => Bool, render: () => any): any;
|
|
@@ -179,6 +181,14 @@ declare function createDeferred<T>(): [ResourceAccessor<T>, (value: T) => void,
|
|
|
179
181
|
* Debounces a signal (returns SolidJS-style signal)
|
|
180
182
|
*/
|
|
181
183
|
declare function debounced<T>(signal: Signal<T>, delayMs: number): Signal<T>;
|
|
184
|
+
/**
|
|
185
|
+
* JSX-compatible Fragment component.
|
|
186
|
+
* Wraps children in a DomNode fragment for use in JSX.
|
|
187
|
+
* Also supports direct array call for backwards compatibility: Fragment([...])
|
|
188
|
+
*/
|
|
189
|
+
declare function Fragment(propsOrChildren: {
|
|
190
|
+
children?: any;
|
|
191
|
+
} | any[]): any;
|
|
182
192
|
/**
|
|
183
193
|
* For component for list rendering (SolidJS-style)
|
|
184
194
|
*/
|
|
@@ -206,7 +216,8 @@ declare function Switch(props: SwitchProps): any;
|
|
|
206
216
|
declare function Match<T>(props: MatchProps<T>): {
|
|
207
217
|
__isMatch: true;
|
|
208
218
|
when: () => boolean;
|
|
209
|
-
|
|
219
|
+
condition: () => T;
|
|
220
|
+
children: () => any;
|
|
210
221
|
};
|
|
211
222
|
/**
|
|
212
223
|
* Portal component for rendering outside the component tree (SolidJS-style)
|
|
@@ -231,4 +242,4 @@ declare function produce(fn: any): (state: any) => any;
|
|
|
231
242
|
*/
|
|
232
243
|
declare function reconcile(value: any): () => any;
|
|
233
244
|
//#endregion
|
|
234
|
-
export { Accessor, Context, For, ForProps, Fragment, Index, IndexProps, Match, MatchProps, Portal, PortalProps, Provider, ProviderProps, ResourceAccessor, SetStoreFunction, Setter, Show, ShowProps, Signal, Switch, SwitchProps, batch, batchEnd, batchStart, combine, createContext, createDeferred, createEffect, createElement, createElementNs, createMemo, createResource, createRoot, createRouter, createSignal, createStore, debounced, effect, events, forEach, get, getOwner, hasOwner, jsx, jsxs, map, mathmlNs, mergeProps, mount, on, onCleanup, onMount, peek, portalToBody, portalToElementWithShadow, portalToSelector, portalWithShadow, produce, provide, reconcile, render, resourceError, resourceGet, resourceIsFailure, resourceIsPending, resourceIsSuccess, resourcePeek, resourceRefetch, resourceValue, routePage, routePageFull, routePageTitled, routerGetBase, routerGetMatch, routerGetPath, routerNavigate, routerReplace, runUntracked, runUntracked as untrack, runWithOwner, set, show, splitProps, stateError, stateIsFailure, stateIsPending, stateIsSuccess, stateValue, subscribe, svgNs, text, textDyn, update, useContext };
|
|
245
|
+
export { Accessor, Context, For, ForProps, Fragment, Index, IndexProps, Match, MatchProps, Portal, PortalProps, Provider, ProviderProps, ResourceAccessor, SetStoreFunction, Setter, Show, ShowProps, Signal, Switch, SwitchProps, batch, batchEnd, batchStart, combine, createContext, createDeferred, createEffect, createElement, createElementNs, createMemo, createResource, createRoot, createRouter, createSignal, createStore, debounced, effect, events, forEach, Fragment$1 as fragment, get, getButton, getClientPos, getClosest, getDataAttr, getDataId, getDataset, getDroppedFiles, getKey, getMovement, getOffsetPos, getOwner, getPagePos, getSelectedIndex, getTargetChecked, getTargetValue, getTextData, getWheelDelta, hasCmdOrCtrl, hasModifier, hasOwner, isComposing, isEnterKey, isEscapeKey, isPrimaryButton, isSecondaryButton, jsx, jsxs, map, matchesSelector, mathmlNs, mergeProps, mount, on, onCleanup, onMount, peek, portalToBody, portalToElementWithShadow, portalToSelector, portalWithShadow, preventDefault, produce, provide, reconcile, render, resourceError, resourceGet, resourceIsFailure, resourceIsPending, resourceIsSuccess, resourcePeek, resourceRefetch, resourceValue, routePage, routePageFull, routePageTitled, routerGetBase, routerGetMatch, routerGetPath, routerNavigate, routerReplace, runUntracked, runUntracked as untrack, runWithOwner, set, show, splitProps, stateError, stateIsFailure, stateIsPending, stateIsSuccess, stateValue, stopEvent, stopPropagation, subscribe, svgNs, text, textDyn, update, useContext };
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as
|
|
1
|
+
import{$ as ee,A as te,B as ne,C as e,Ct as t,D as n,Dt as r,E as i,Et as a,F as o,G as s,H as c,I as l,J as u,K as d,L as f,M as p,N as m,O as h,P as g,Q as _,R as v,S as y,St as b,T as x,Tt as S,U as C,V as w,W as T,X as E,Y as D,Z as O,_ as k,_t as A,a as j,at as M,b as N,bt as P,c as F,ct as I,d as L,dt as R,et as z,f as B,ft as V,g as H,gt as U,h as W,ht as G,i as K,it as q,j as J,k as Y,l as X,lt as Z,m as re,mt as Q,n as ie,nt as ae,o as oe,ot as se,p as ce,pt as $,q as le,r as ue,rt as de,s as fe,st as pe,t as me,tt as he,u as ge,ut as _e,v as ve,vt as ye,w as be,wt as xe,x as Se,xt as Ce,y as we,yt as Te,z as Ee}from"./src-BuWZp_n_.js";import{C as De,D as Oe,E as ke,S as Ae,T as je,_ as Me,a as Ne,b as Pe,c as Fe,d as Ie,f as Le,g as Re,h as ze,i as Be,l as Ve,m as He,n as Ue,o as We,p as Ge,r as Ke,s as qe,t as Je,u as Ye,v as Xe,w as Ze,x as Qe,y as $e}from"./event-utils-C_M2XBNj.js";export{me as For,ie as Fragment,ue as Index,K as Match,j as Portal,oe as Provider,fe as Show,F as Switch,Se as batch,y as batchEnd,e as batchStart,be as combine,x as createContext,X as createDeferred,ge as createEffect,i as createElement,n as createElementNs,L as createMemo,B as createResource,h as createRoot,Y as createRouter,ce as createSignal,re as createStore,W as debounced,te as effect,J as events,p as forEach,m as fragment,g as get,Je as getButton,Ue as getClientPos,Ke as getClosest,Be as getDataAttr,Ne as getDataId,We as getDataset,qe as getDroppedFiles,Fe as getKey,Ve as getMovement,Ye as getOffsetPos,o as getOwner,Ie as getPagePos,Le as getSelectedIndex,Ge as getTargetChecked,He as getTargetValue,ze as getTextData,Re as getWheelDelta,Me as hasCmdOrCtrl,Xe as hasModifier,l as hasOwner,$e as isComposing,Pe as isEnterKey,Qe as isEscapeKey,Ae as isPrimaryButton,De as isSecondaryButton,f as jsx,v as jsxs,Ee as map,Ze as matchesSelector,ne as mathmlNs,H as mergeProps,w as mount,k as on,c as onCleanup,C as onMount,T as peek,s as portalToBody,d as portalToElementWithShadow,le as portalToSelector,u as portalWithShadow,je as preventDefault,ve as produce,D as provide,we as reconcile,E as render,O as resourceError,_ as resourceGet,ee as resourceIsFailure,z as resourceIsPending,he as resourceIsSuccess,ae as resourcePeek,de as resourceRefetch,q as resourceValue,M as routePage,se as routePageFull,pe as routePageTitled,I as routerGetBase,Z as routerGetMatch,_e as routerGetPath,R as routerNavigate,V as routerReplace,$ as runUntracked,$ as untrack,Q as runWithOwner,G as set,U as show,N as splitProps,A as stateError,ye as stateIsFailure,Te as stateIsPending,P as stateIsSuccess,Ce as stateValue,ke as stopEvent,Oe as stopPropagation,b as subscribe,t as svgNs,xe as text,S as textDyn,a as update,r as useContext};
|
package/dist/jsx-dev-runtime.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./src-
|
|
1
|
+
import"./src-BuWZp_n_.js";import{Fragment as e,jsx as t,jsxDEV as n,jsxs as r}from"./jsx-runtime.js";export{e as Fragment,t as jsx,n as jsxDEV,r as jsxs};
|
package/dist/jsx-runtime.d.ts
CHANGED
package/dist/jsx-runtime.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{E as e,Tt as t,n,wt as r}from"./src-BuWZp_n_.js";function i(e){return typeof e==`string`?e:typeof e!=`object`||!e?``:Object.entries(e).map(([e,t])=>`${e.replace(/([A-Z])/g,`-$1`).toLowerCase()}: ${t}`).join(`; `)}function a(e){if(!e)return[];let t=[];for(let[n,r]of Object.entries(e)){if(n===`children`)continue;let e=n,a;if(n===`className`&&(e=`class`),n===`style`){a={$tag:0,_0:i(r)},t.push({_0:e,_1:a});continue}if(n===`ref`&&typeof r==`function`){e=`__ref`,a={$tag:2,_0:r},t.push({_0:e,_1:a});continue}if(n.startsWith(`on`)&&typeof r==`function`){e=n.slice(2).toLowerCase(),a={$tag:2,_0:r},t.push({_0:e,_1:a});continue}a=typeof r==`function`?{$tag:1,_0:r}:{$tag:0,_0:String(r)},t.push({_0:e,_1:a})}return t}function o(e){if(!e)return[];let n;return n=Array.isArray(e)?e:[e],n.flat().map(e=>typeof e==`string`?r(e):typeof e==`number`?r(String(e)):typeof e==`function`&&e.length===0?t(()=>String(e())):e).filter(Boolean)}function s(t,n){let{children:r,...i}=n||{},s=a(i),c=o(r);if(typeof t==`string`)return e(t,s,c);if(typeof t==`function`)return t({...i,children:r});throw Error(`Invalid JSX type: ${t}`)}const c=s;function l({children:e}){return n(o(e))}const u=s;export{l as Fragment,s as jsx,u as jsxDEV,c as jsxs};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={$tag:0};function t(e){this._0=e}t.prototype.$tag=1;var n=class extends Error{};function r(){throw new n}function i(e,t){if(t<0||t>=e.length)throw Error(`Index out of bounds`)}function a(e,t){let n=Array(e);return n.fill(t),n}function o(e){this._0=e}o.prototype.$tag=0;function s(e){this._0=e}s.prototype.$tag=1;const c={$tag:1},l={$tag:0},u=(e,t)=>e.toString(t),d=(e,t)=>{e.push(t)},f={$tag:0};function ee(e){this._0=e}ee.prototype.$tag=1;function te(e){this._0=e}te.prototype.$tag=2;function ne(e){this._0=e}ne.prototype.$tag=3;function re(e){this._0=e}re.prototype.$tag=4;const ie=e=>e.slice(0),p=(e,t)=>{e.length=t},ae=e=>e.pop(),oe=(e,t,n)=>e.splice(t,n),se=(e,t)=>e[t],m=(e,t,n)=>e[t](...n),ce=e=>e==null,le=()=>({}),h=(e,t,n)=>{e[t]=n},ue=()=>null,de=e=>Object.fromEntries(e.map(e=>[e._0,e._1])),fe={$tag:0};function g(e){this._0=e}g.prototype.$tag=1;const pe={$tag:0};function _(e){this._0=e}_.prototype.$tag=1;const me={$tag:0};function he(e){this._0=e}he.prototype.$tag=1;const ge=(e,t)=>setTimeout(e,t),_e=e=>clearTimeout(e),v=()=>document,ve=(e,t)=>e.createElement(t),ye=(e,t,n)=>e.createElementNS(t,n),be=(e,t)=>e.createTextNode(t),xe={$tag:0};function Se(e){this._0=e}Se.prototype.$tag=1;const y={$tag:0};function Ce(e){this._0=e}Ce.prototype.$tag=1;function we(e){this._0=e}we.prototype.$tag=2;function Te(e){this._0=e}Te.prototype.$tag=0;function Ee(e){this._0=e}Ee.prototype.$tag=1;function b(e){this._0=e}b.prototype.$tag=2;function De(e){this._0=e}De.prototype.$tag=3;const Oe=(e,t)=>document.createElementNS(e,t),ke=(e,t,n)=>e.addEventListener(t,n),Ae=(e,t)=>e===t,je=(e,t,n)=>{if(typeof e.moveBefore==`function`)try{return e.moveBefore(t,n),t}catch{return e.insertBefore(t,n)}else return e.insertBefore(t,n)},Me=(e,t)=>{if(typeof e.moveBefore==`function`)try{return e.moveBefore(t,null),t}catch{return e.insertBefore(t,null)}else return e.insertBefore(t,null)},Ne=(e,t)=>e.nextSibling===t,Pe=(e,t)=>{try{t.parentNode===e?e.removeChild(t):t.parentNode&&t.parentNode.removeChild(t)}catch{}},Fe={$tag:0};function Ie(e){this._0=e}Ie.prototype.$tag=1;function Le(e){this._0=e}Le.prototype.$tag=0;function Re(e){this._0=e}Re.prototype.$tag=1;function ze(e){this._0=e}ze.prototype.$tag=2;const x={$tag:0};function Be(e){this._0=e}Be.prototype.$tag=1;const Ve=()=>window.location.pathname,He=()=>window.location.search,Ue=e=>window.history.pushState(null,``,e),We=e=>window.history.replaceState(null,``,e),Ge=e=>window.addEventListener(`popstate`,()=>e());function S(e,t,n,r){this._0=e,this._1=t,this._2=n,this._3=r}S.prototype.$tag=0;function Ke(e,t,n){this._0=e,this._1=t,this._2=n}Ke.prototype.$tag=1;function qe(e,t){this._0=e,this._1=t}qe.prototype.$tag=2;function Je(e,t){this._0=e,this._1=t}Je.prototype.$tag=3;const Ye=()=>void 0,Xe={method_0:At,method_1:jt,method_2:Ht,method_3:ft},Ze={val:0},C={current_subscriber:void 0,current_owner:void 0,current_cleanups:e,batch_depth:0,pending_effects:[],pending_ids:[]},Qe={val:0};function $e(e){return r()}function et(e){return r()}function tt(e){return r()}function nt(e){return r()}function rt(e){r()}function it(e){return r()}function at(e,t){return e===0?t===0:t===1}function ot(e,t){return $e(`${e}\n at ${k(t)}\n`)}function st(e,t){return et(`${e}\n at ${k(t)}\n`)}function ct(e,t){return tt(`${e}\n at ${k(t)}\n`)}function lt(e,t){return nt(`${e}\n at ${k(t)}\n`)}function ut(e,t){rt(`${e}\n at ${k(t)}\n`)}function dt(e,t){return it(`${e}\n at ${k(t)}\n`)}function w(e){return{val:``}}function ft(e,t){let n=e;n.val=`${n.val}${String.fromCodePoint(t)}`}function pt(e,t){return(((Math.imul(e-55296|0,1024)|0)+t|0)-56320|0)+65536|0}function mt(e,t){return!at(e,t)}function ht(e,t){let n=e.length;return t>=0&&t<n?(i(e,t),e[t]):r()}function gt(e,t){let n=e.length;return t>=0&&t<n?(i(e,t),e[t]):r()}function _t(e,t){let n=e.length;return t>=0&&t<n?(i(e,t),e[t]):r()}function vt(e,t){let n=e.length;return t>=0&&t<n?(i(e,t),e[t]):r()}function yt(e,t){let n=e.length;return t>=0&&t<n?(i(e,t),e[t]):r()}function bt(e,t){let n=e.length;return t>=0&&t<n?(i(e,t),e[t]):r()}function xt(e,t){let n=e.length;return t>=0&&t<n?(i(e,t),e[t]):r()}function T(e,t){let n=e.length;return t>=0&&t<n?(i(e,t),e[t]):r()}function St(e,t){let n=e.length;return t>=0&&t<n?(i(e,t),e[t]):r()}function Ct(e,t){let n=e.end-e.start|0,r=t.end-t.start|0;if(r>0)if(n>=r){let o=a(256,r),s=r-1|0,c=0;for(;;){let e=c;if(e<s){let n=t.str,a=t.start+e|0,s=n.charCodeAt(a)&255;i(o,s),o[s]=(r-1|0)-e|0,c=e+1|0;continue}else break}let l=0;for(;;){let a=l;if(a<=(n-r|0)){let n=r-1|0,s=0;for(;;){let r=s;if(r<=n){let n=a+r|0,i=e.str,o=e.start+n|0,c=i.charCodeAt(o),l=t.str,u=t.start+r|0;if(c!==l.charCodeAt(u))break;s=r+1|0;continue}else return a}let c=(a+r|0)-1|0,u=e.str,d=e.start+c|0,f=u.charCodeAt(d)&255;i(o,f),l=a+o[f]|0;continue}else break}return}else return;else return 0}function wt(e,t){let n=e.end-e.start|0,r=t.end-t.start|0;if(r>0)if(n>=r){let i=t.str,a=t.start+0|0,o=i.charCodeAt(a),s=n-r|0,c=0;for(;c<=s;){for(;;){let t;if(c<=s){let n=c,r=e.str,i=e.start+n|0;t=r.charCodeAt(i)!==o}else t=!1;if(t){c=c+1|0;continue}else break}if(c<=s){let n=1;for(;;){let i=n;if(i<r){let r=c+i|0,a=e.str,o=e.start+r|0,s=a.charCodeAt(o),l=t.str,u=t.start+i|0;if(s!==l.charCodeAt(u))break;n=i+1|0;continue}else return c}c=c+1|0}}return}else return;else return 0}function E(e,t){return(t.end-t.start|0)<=4?wt(e,t):Ct(e,t)}function Tt(e,t){let n=e.end-e.start|0,r=t.end-t.start|0;if(r>0)if(n>=r){let o=a(256,r),s=r-1|0;for(;;){let e=s;if(e>0){let n=t.str,r=t.start+e|0,a=n.charCodeAt(r)&255;i(o,a),o[a]=e,s=e-1|0;continue}else break}let c=n-r|0;for(;;){let n=c;if(n>=0){let a=0;for(;;){let i=a;if(i<r){let r=n+i|0,o=e.str,s=e.start+r|0,c=o.charCodeAt(s),l=t.str,u=t.start+i|0;if(c!==l.charCodeAt(u))break;a=i+1|0;continue}else return n}let s=e.str,l=e.start+n|0,u=s.charCodeAt(l)&255;i(o,u),c=n-o[u]|0;continue}else break}return}else return;else return n}function Et(e,t){let n=e.end-e.start|0,r=t.end-t.start|0;if(r>0)if(n>=r){let i=t.str,a=t.start+0|0,o=i.charCodeAt(a),s=n-r|0;for(;s>=0;){for(;;){let t;if(s>=0){let n=s,r=e.str,i=e.start+n|0;t=r.charCodeAt(i)!==o}else t=!1;if(t){s=s-1|0;continue}else break}if(s>=0){let n=1;for(;;){let i=n;if(i<r){let r=s+i|0,a=e.str,o=e.start+r|0,c=a.charCodeAt(o),l=t.str,u=t.start+i|0;if(c!==l.charCodeAt(u))break;n=i+1|0;continue}else return s}s=s-1|0}}return}else return;else return n}function Dt(e,t){return(t.end-t.start|0)<=4?Et(e,t):Tt(e,t)}function D(e,t,n){let r;return r=n===void 0?e.end-e.start|0:n,t>=0&&t<=r&&r<=(e.end-e.start|0)?{str:e.str,start:e.start+t|0,end:e.start+r|0}:lt(`Invalid index for View`,`@moonbitlang/core/builtin:stringview.mbt:111:5-111:36`)}function Ot(e){let t=E(e,{str:`:`,start:0,end:1});if(t!==void 0){let n=t;return n>0&&(n+1|0)<(e.end-e.start|0)?{_0:D(e,0,n),_1:D(e,n+1|0,void 0)}:void 0}}function kt(e){_L:if(Rt(e,1,0,e.length))if(e.charCodeAt(0)===64){let t=Vt(e,1,0,e.length),n;n=t===void 0?e.length:t;let i={str:e,start:n,end:e.length},a=E(i,{str:`:`,start:0,end:1});if(a===void 0)return r();{let e=a,t=D(i,0,e),n=Dt(i,{str:`-`,start:0,end:1});if(n===void 0)return r();{let a=n;if((a+1|0)<(i.end-i.start|0)){let n=Ot(D(i,a+1|0,void 0));if(n===void 0)return r();{let o=n,s=o._0,c=o._1,l=D(i,0,a);_L$2:{let n=Dt(l,{str:`:`,start:0,end:1});if(n===void 0)break _L$2;{let i=Dt(D(l,0,n),{str:`:`,start:0,end:1});if(i===void 0)break _L$2;{let n=i;if((n+1|0)<(l.end-l.start|0)){let i=Ot(D(l,n+1|0,void 0));if(i===void 0)return r();{let a=i,o=a._0,u=a._1;return n>(e+1|0)?{pkg:t,filename:D(l,e+1|0,n),start_line:o,start_column:u,end_line:s,end_column:c}:r()}}else return r()}}}return r()}}else return r()}}}else break _L;else break _L;return r()}function At(e,t){let n=e;n.val=`${n.val}${t}`}function O(e,t,n){let r=e.length,i;if(n===void 0)i=r;else{let e=n;i=e<0?r+e|0:e}let a=t<0?r+t|0:t;if(a>=0&&a<=i&&i<=r){let t;if(a<r){let n=e.charCodeAt(a);t=56320<=n&&n<=57343}else t=!1;if(t)return new o(l);let n;if(i<r){let t=e.charCodeAt(i);n=56320<=t&&t<=57343}else n=!1;return n?new o(l):new s({str:e,start:a,end:i})}else return new o(c)}function jt(e,t,n,i){let a;_L:{_L$2:{let e=O(t,n,n+i|0);if(e.$tag===1)a=e._0;else{e._0;break _L$2}break _L}a=r()}Ht(e,a)}function Mt(e){let t=w(0);return an(e,{self:t,method_table:Xe}),t.val}function k(e){let t=w(0);return fn(e,{self:t,method_table:Xe}),t.val}function Nt(e,t){return u(e,t)}function A(e){return e.str.substring(e.start,e.end)}function Pt(e){return e()}function Ft(e){return e()}function It(e){return t=>{for(;;){let n=Pt(e);if(n===void 0)return 1;if(t(n)!==1)return 0}}}function Lt(e){return t=>{for(;;){let n=Ft(e);if(n===-1)return 1;if(t(n)!==1)return 0}}}function j(e){let t=w(Math.imul(e.end-e.start|0,4)|0),n=e.end-e.start|0,r=0;for(;;){let i=r;if(i<n){let n=e.buf[e.start+i|0];ft(t,n),r=i+1|0;continue}else break}return t.val}function Rt(e,t,n,r){let i;i=r===void 0?e.length:r;let a=n,o=0;for(;;){let n=a,r=o;if(n<i&&r<t){let t=e.charCodeAt(n);if(55296<=t&&t<=56319&&(n+1|0)<i){let t=n+1|0,i=e.charCodeAt(t);if(56320<=i&&i<=57343){a=n+2|0,o=r+1|0;continue}else ut(`invalid surrogate pair`,`@moonbitlang/core/builtin:string.mbt:491:9-491:40`)}a=n+1|0,o=r+1|0;continue}else return r>=t}}function zt(e,t,n,r){let i=0,a=r;for(;(a-1|0)>=n&&i<t;){let t=a-1|0,n=e.charCodeAt(t);a=56320<=n&&n<=57343?a-2|0:a-1|0,i=i+1|0}return i<t||a<n?void 0:a}function Bt(e,t,n,r){if(n>=0&&n<=r){let i=n,a=0;for(;i<r&&a<t;){let t=i,n=e.charCodeAt(t);i=55296<=n&&n<=56319?i+2|0:i+1|0,a=a+1|0}return a<t||i>=r?void 0:i}else return dt(`Invalid start index`,`@moonbitlang/core/builtin:string.mbt:366:5-366:33`)}function Vt(e,t,n,r){let i;return i=r===void 0?e.length:r,t>=0?Bt(e,t,n,i):zt(e,-t|0,n,i)}function Ht(e,t){let n=e;n.val=`${n.val}${A(t)}`}function Ut(e,t){let n=Dt(e,t);return n===void 0?!1:n===((e.end-e.start|0)-(t.end-t.start|0)|0)}function M(e,t){return Ut({str:e,start:0,end:e.length},t)}function Wt(e,t){let n=E(e,t);return n===void 0?!1:n===0}function N(e,t){return Wt({str:e,start:0,end:e.length},t)}function Gt(e){return[]}function P(e,t){d(e,t)}function Kt(e,t){d(e,t)}function qt(e,t){d(e,t)}function Jt(e,t){d(e,t)}function Yt(e,t){d(e,t)}function Xt(e,t){d(e,t)}function Zt(e,t){d(e,t)}function Qt(e,t){d(e,t)}function F(e,t){d(e,t)}function I(e,t){d(e,t)}function L(e,t){d(e,t)}function $t(e){let t=e.length,n={val:0};return()=>{if(n.val<t){let r=n.val,i=e.charCodeAt(r);if(55296<=i&&i<=56319&&(n.val+1|0)<t){let t=n.val+1|0,r=e.charCodeAt(t);if(56320<=r&&r<=57343){let e=pt(i,r);return n.val=n.val+2|0,e}}return n.val=n.val+1|0,i}else return-1}}function en(e){return Lt($t(e))}function tn(e,t){return e(t)}function nn(e){return String.fromCodePoint(e)}function rn(e){let t=en(e),n={val:Gt(e.length)},i={val:f};t(e=>{let t=n.val;return L(t,e),n.val=t,1});let a=i.val;switch(a.$tag){case 0:break;case 1:a._0;break;case 2:return a._0;case 3:r();break;default:r()}return n.val}function an(e,t){t.method_table.method_0(t.self,Nt(e,10))}function on(e){let t={val:0};return()=>{if(t.val<(e.end-e.start|0)){let n=e.buf[e.start+t.val|0];return t.val=t.val+1|0,n}else return}}function sn(e){return on({buf:e,start:0,end:e.length})}function R(e){return It(sn(e))}function z(e,t){return mt(tn(e,e=>t(e)?0:1),1)}function cn(e,t){let n=Array(e),r=0;for(;;){let i=r;if(i<e){n[i]=t,r=i+1|0;continue}else break}return n}function ln(e,t,n){let a=e.length;if(t>=0&&t<a){i(e,t),e[t]=n;return}else{r();return}}function un(e,t,n){let a=e.length;if(t>=0&&t<a){i(e,t),e[t]=n;return}else{r();return}}function dn(e,t){let n=e.pkg,r=E(n,{str:`/`,start:0,end:1}),i;if(r===void 0)i={_0:n,_1:void 0};else{let e=r,t=E(D(n,e+1|0,void 0),{str:`/`,start:0,end:1});if(t===void 0)i={_0:n,_1:void 0};else{let r=t,a=(e+1|0)+r|0;i={_0:D(n,0,a),_1:D(n,a+1|0,void 0)}}}let a=i._0,o=i._1;if(o!==void 0){let e=o;t.method_table.method_2(t.self,e),t.method_table.method_3(t.self,47)}t.method_table.method_2(t.self,e.filename),t.method_table.method_3(t.self,58),t.method_table.method_2(t.self,e.start_line),t.method_table.method_3(t.self,58),t.method_table.method_2(t.self,e.start_column),t.method_table.method_3(t.self,45),t.method_table.method_2(t.self,e.end_line),t.method_table.method_3(t.self,58),t.method_table.method_2(t.self,e.end_column),t.method_table.method_3(t.self,64),t.method_table.method_2(t.self,a)}function fn(e,t){dn(kt(e),t)}function pn(e,t,n){let r=e.length,i;if(n===void 0)i=r;else{let e=n;i=e<0?r+e|0:e}let a=t<0?r+t|0:t;return a>=0&&a<=i&&i<=r?{buf:e,start:a,end:i}:ct(`View index out of bounds`,`@moonbitlang/core/builtin:arrayview.mbt:200:5-200:38`)}function mn(e,t){p(e,t)}function hn(e,t){p(e,t)}function gn(e,t){p(e,t)}function _n(e,t){p(e,t)}function vn(e,t){p(e,t)}function yn(e){return ae(e)}function bn(e){return e.length===0?-1:yn(e)}function xn(e,t){if(t>=0&&t<e.length){i(e,t);let n=e[t];return oe(e,t,1),n}else return ot(`index out of bounds: the len is from 0 to ${Mt(e.length)} but the index is ${Mt(t)}`,`@moonbitlang/core/builtin:arraycore_js.mbt:241:5-243:6`)}function Sn(e,t){if(t>=0&&t<e.length){i(e,t);let n=e[t];return oe(e,t,1),n}else return st(`index out of bounds: the len is from 0 to ${Mt(e.length)} but the index is ${Mt(t)}`,`@moonbitlang/core/builtin:arraycore_js.mbt:241:5-243:6`)}function Cn(e){return ie(e)}function wn(e){hn(e,0)}function Tn(e){gn(e,0)}function En(e){vn(e,0)}function Dn(e){return ce(e)?fe:new g(e)}function On(e){return ce(e)?pe:new _(e)}function kn(e){return ce(e)?me:new he(e)}function An(e,t,n){return{mode:e,delegatesFocus:t,slotAssignment:n}}function jn(e,t){return m(e,`attachShadow`,[de([{_0:`mode`,_1:t.mode},{_0:`delegatesFocus`,_1:t.delegatesFocus},{_0:`slotAssignment`,_1:t.slotAssignment}])])}function B(e){return Dn(se(e,`parentNode`))}function V(e,t){return m(e,`appendChild`,[t])}function Mn(e,t){return m(e,`removeChild`,[t])}function Nn(e,t,n){if(n.$tag===1){let r=n._0;return m(e,`insertBefore`,[t,r])}else return m(e,`insertBefore`,[t,ue()])}function Pn(e,t){h(e,`textContent`,t)}function Fn(e,t){h(e,`className`,t)}function In(e,t,n){m(e,`setAttribute`,[t,n])}function Ln(e,t){m(e,`removeAttribute`,[t])}function Rn(e,t){return On(m(e,`querySelector`,[t]))}function zn(e){return kn(se(e,`body`))}function Bn(e){return m(e,`createDocumentFragment`,[])}function Vn(e,t){return m(e,`createComment`,[t])}function H(){let e=Ze.val;return Ze.val=e+1|0,e}function Hn(e){let t=C.current_owner;t!==void 0&&Kt(t.disposers,e)}function Un(e){let t=e.length-1|0;for(;;){let n=t;if(n>=0){gt(e,n)(),t=n-1|0;continue}else break}wn(e)}function Wn(e){let t=C.current_cleanups;return C.current_cleanups=e,t}function Gn(e,n){let r=Wn(new t(e));n(),C.current_cleanups=r}function Kn(e,t){let n=C.current_subscriber;C.current_subscriber=e;let r=t();return C.current_subscriber=n,r}function qn(e,t){let n=C.current_subscriber;C.current_subscriber=e,t(),C.current_subscriber=n}function U(e){let t={active:!0,cleanups:[]},n=H(),r={val:void 0},i=()=>{if(!t.active)return;Un(t.cleanups);let n=r.val;n!==void 0&&qn(n,()=>{Gn(t.cleanups,e)})};r.val={id:n,run:i},i();let a=()=>{t.active=!1,Un(t.cleanups)};return Hn(a),a}function W(e){let t=C.current_subscriber;if(t!==void 0){let n=t;z(R(e.subscribers),e=>e.id===n.id)||P(e.subscribers,n)}return e.value}function Jn(e){let t=C.current_subscriber;if(t!==void 0){let n=t;z(R(e.subscribers),e=>e.id===n.id)||P(e.subscribers,n)}return e.value}function Yn(e){let t=C.current_subscriber;if(t!==void 0){let n=t;z(R(e.subscribers),e=>e.id===n.id)||P(e.subscribers,n)}return e.value}function Xn(e){let t=C.current_subscriber;if(t!==void 0){let n=t;z(R(e.subscribers),e=>e.id===n.id)||P(e.subscribers,n)}return e.value}function Zn(e){return{value:e,subscribers:[]}}function Qn(e){return{value:e,subscribers:[]}}function $n(e){return{value:e,subscribers:[]}}function er(e){return{value:e,subscribers:[]}}function tr(e){return Zn(e)}function nr(e){return Qn(e)}function rr(e){return $n(e)}function ir(e){return er(e)}function ar(e){let t=C.pending_ids,n=t.length,r=0;for(;;){let i=r;if(i<n){if(t[i]===e)return!0;r=i+1|0;continue}else break}return!1}function G(e){if(C.batch_depth>0){if(ar(e.id))return;Jt(C.pending_ids,e.id),P(C.pending_effects,e);return}else{let t=e.run;t();return}}function or(e){let t=e.subscribers,n=t.length,r=0;for(;;){let e=r;if(e<n){let n=t[e];G(n),r=e+1|0;continue}else return}}function sr(e){let t=e.subscribers,n=t.length,r=0;for(;;){let e=r;if(e<n){let n=t[e];G(n),r=e+1|0;continue}else return}}function cr(e){let t=e.subscribers,n=t.length,r=0;for(;;){let e=r;if(e<n){let n=t[e];G(n),r=e+1|0;continue}else return}}function lr(e){let t=e.subscribers,n=t.length,r=0;for(;;){let e=r;if(e<n){let n=t[e];G(n),r=e+1|0;continue}else return}}function ur(e,t){e.value=t,or(e)}function K(e,t){e.value=t,sr(e)}function dr(e,t){e.value=t,cr(e)}function fr(e,t){e.value=t,lr(e)}function pr(e,t){e.value=t(e.value),or(e)}function mr(e){let t=H(),n={value:xe,dirty:!0,subscribers:[]},r={val:void 0};return r.val={id:t,run:()=>{if(!n.dirty){n.dirty=!0;let e=n.subscribers,t=e.length,r=0;for(;;){let n=r;if(n<t){let t=e[n];G(t),r=n+1|0;continue}else return}}}},()=>{let t=C.current_subscriber;if(t!==void 0){let e=t;z(R(n.subscribers),t=>t.id===e.id)||P(n.subscribers,e)}if(n.dirty){let t=r.val;t===void 0||(n.value=new Se(Kn(t,e)),n.dirty=!1)}let i=n.value;if(i.$tag===1)return i._0;{let t=e();return n.value=new Se(t),t}}}function hr(e,t){let n=e.subscribers,r=n.length,i=0,a=0;for(;;){let e=i,o=a;if(e<r){let r=n[e];if(r.id!==t){n[o]=r,i=e+1|0,a=o+1|0;continue}i=e+1|0;continue}else{mn(n,o);return}}}function gr(e,t){let n=H(),r={val:!0},i={id:n,run:()=>{if(r.val){t(e.value);return}else return}};return P(e.subscribers,i),()=>{r.val=!1,hr(e,n)}}function _r(e){return e.$tag===0}function vr(e){return e.$tag===1}function yr(e){return e.$tag===2}function br(e){if(e.$tag===1){let t=e._0;return new Se(t)}else return xe}function xr(e){if(e.$tag===2)return e._0}function Sr(e){return Xn(e.state)}function Cr(e){return e.state.value}function wr(e){let t=e.state;return _r(t.value)}function Tr(e){let t=e.state;return vr(t.value)}function Er(e){let t=e.state;return yr(t.value)}function Dr(e){let t=e.state;return br(t.value)}function Or(e){let t=e.state;return xr(t.value)}function kr(e){let t=e.refetch_;t()}function Ar(e){let t=nr(y),n=e=>{K(t,new Ce(e))},r=e=>{K(t,new we(e))},i=()=>{K(t,y),e(n,r)};return i(),{state:t,refetch_:i}}function jr(){let e=nr(y);return{_0:{state:e,refetch_:()=>{K(e,y)}},_1:t=>{K(e,new Ce(t))},_2:t=>{K(e,new we(t))}}}function Mr(e){let t=Qe.val;return Qe.val=t+1|0,{id:t,default_value:()=>e,providers:[]}}function Nr(e,t){let n=t;for(;;){let t=n;if(t===void 0)return!1;{let r=t;if(r.id===e)return!r.disposed;n=r.parent;continue}}}function Pr(e,t){let n=e.providers.length-1|0;for(;;){let r=n;if(r>=0){let i=vt(e.providers,r),a=i._0,o=i._1;if(Nr(a,t))return o;n=r-1|0;continue}else break}}function Fr(e,t){let n=C.current_owner;C.current_owner=e;let r=t();return C.current_owner=n,r}function Ir(e,t){let n=C.current_owner;C.current_owner=e;let r=t();return C.current_owner=n,r}function Lr(e){if(e.disposed)return;e.disposed=!0;let t=e.children.length-1|0;for(;;){let n=t;if(n>=0){Lr(_t(e.children,n)),t=n-1|0;continue}else break}let n=e.disposers.length-1|0;for(;;){let t=n;if(t>=0){gt(e.disposers,t)(),n=t-1|0;continue}else break}let r=e.cleanups.length-1|0;for(;;){let t=r;if(t>=0){gt(e.cleanups,t)(),r=t-1|0;continue}else break}Tn(e.children),wn(e.disposers),wn(e.cleanups);let i=e.parent;if(i!==void 0){let t=i.children,n=t.length,r=0,a=0;for(;;){let i=r,o=a;if(i<n){let n=t[i];if(n.id!==e.id){t[o]=n,r=i+1|0,a=o+1|0;continue}r=i+1|0;continue}else{gn(t,o);return}}}}function Rr(e){let t={id:H(),parent:e,children:[],cleanups:[],disposers:[],disposed:!1};return e===void 0||Yt(e.children,t),t}function zr(e){let t=Rr(C.current_owner),n=()=>{Lr(t)};return Fr(t,()=>e(n))}function Br(e,t,n){let r=C.current_owner,i=Rr(r),a=i.id;return Xt(e.providers,{_0:a,_1:()=>t}),Kt(i.cleanups,()=>{let t=e.providers,n=t.length,r=0,i=0;for(;;){let e=r,o=i;if(e<n){let n=t[e];if(n._0!==a){t[o]=n,r=e+1|0,i=o+1|0;continue}r=e+1|0;continue}else{_n(t,o);return}}}),Fr(i,n)}function Vr(e,t,n){return C.current_owner===void 0?zr(r=>Br(e,t,n)):Br(e,t,n)}function Hr(e){let t=C.current_owner,n=Pr(e,t);if(n===void 0){let t=e.default_value;return t()}else return n()}function Ur(e){let t=C.current_subscriber;C.current_subscriber=void 0;let n=e();return C.current_subscriber=t,n}function Wr(e){let t=C.current_subscriber;C.current_subscriber=void 0,e(),C.current_subscriber=t}function Gr(e){Wr(e)}function Kr(){C.batch_depth=C.batch_depth+1|0}function qr(){for(;;)if(C.pending_effects.length>0){let e=xn(C.pending_effects,0);Sn(C.pending_ids,0);let t=e.run;t();continue}else return}function Jr(){if(C.batch_depth=C.batch_depth-1|0,C.batch_depth===0){qr();return}else return}function Yr(e){Kr();let t=e();return Jr(),t}function Xr(e){let t=C.current_cleanups;if(t.$tag===1){let n=t._0;Kt(n,e);return}else return}function Zr(e,t){return mr(()=>t(W(e)))}function Qr(e,t,n){return mr(()=>n(W(e),W(t)))}function q(e,t){let n=[],r=rn(e),i=[],a=r.length,o=0;for(;;){let e=o;if(e<a){let a=r[e];a===t?(F(n,j({buf:i,start:0,end:i.length})),En(i)):L(i,a),o=e+1|0;continue}else break}return F(n,j({buf:i,start:0,end:i.length})),n}function $r(e){let t=be(v(),e());return U(()=>{Pn(t,e())}),new Ee(t)}function ei(e,t,n){if(t===`className`){Fn(e,n);return}else if(t===`value`){h(e,`value`,n);return}else if(t===`checked`){h(e,`checked`,n===`true`);return}else if(t===`disabled`)if(n===`true`){In(e,`disabled`,``);return}else{Ln(e,`disabled`);return}else{In(e,t,n);return}}function ti(e,t){In(e,`style`,t)}function ni(e,t,n){switch(n.$tag){case 0:{let r=n._0;if(t===`style`){ti(e,r);return}else{ei(e,t,r);return}}case 1:{let r=n._0;U(()=>{let n=r();if(t===`style`){ti(e,n);return}else{ei(e,t,n);return}});return}default:{let r=n._0;if(t===`__ref`){r(e);return}else{ke(e,t,r);return}}}}function ri(e){return{inner:e}}function J(e){switch(e.$tag){case 0:return e._0.inner;case 1:return e._0;case 2:return e._0;default:return e._0}}function ii(e,t,n,r){let i=Oe(e,t),a=n.length,o=0;for(;;){let e=o;if(e<a){let t=n[e],r=t._0,a=t._1;ni(i,r,a),o=e+1|0;continue}else break}let s=r.length,c=0;for(;;){let e=c;if(e<s){let t=r[e];V(i,J(t)),c=e+1|0;continue}else break}return new Te(ri(i))}function ai(e,t,n){let r=ve(v(),e),i=t.length,a=0;for(;;){let e=a;if(e<i){let n=t[e],i=n._0,o=n._1;ni(r,i,o),a=e+1|0;continue}else break}let o=n.length,s=0;for(;;){let e=s;if(e<o){let t=n[e];V(r,J(t)),s=e+1|0;continue}else break}return new Te(ri(r))}function oi(e,t){V(e,J(t))}function si(e){Pn(e,``)}function ci(e,t){si(e),oi(e,t)}function li(e){switch(e.length){case 0:return new b(Bn(v()));case 1:return ht(e,0);default:{let t=Bn(v()),n=e.length,r=0;for(;;){let i=r;if(i<n){let n=e[i];V(t,J(n)),r=i+1|0;continue}else break}return new b(t)}}}function ui(e,t){let n=Vn(v(),`show`),r=C.current_owner,i=e(),a;if(i){let e;e=r===void 0?t():Ir(r,t),a=new g(J(e))}else a=fe;let o={val:a};if(U(()=>{let i=e(),a=o.val;if(i===!0)if(a.$tag===0){let e=B(n);if(e.$tag===1){let i=e._0,a;a=r===void 0?t():Ir(r,t),Nn(i,J(a),new g(n)),o.val=new g(J(a));return}else return}else return;else if(a.$tag===1){let e=a._0,t=B(e);if(t.$tag===1){let n=t._0;Mn(n,e),o.val=fe;return}else return}else return}),a.$tag===1){let e=a._0;return li([new b(e),new b(n)])}else return new b(n)}function di(e,t){return Ae(e,t)}function fi(e,t){let n=e.length,r=0;for(;;){let i=r;if(i<n){let n=e[i];if(di(n.item,t))return i;r=i+1|0;continue}else break}return-1}function pi(e,t,n){if(n.$tag===1){let r=n._0;return je(e,t,r)}else return Me(e,t)}function mi(e,t,n,r,i){let a=n.length;if(a===0){let n=t.length,r=0;for(;;){let i=r;if(i<n){let n=t[i];Pe(e,n.dom),r=i+1|0;continue}else break}return[]}let o=[],s=0;for(;;){let e=s;if(e<a){qt(o,{item:yt(n,0),dom:i}),s=e+1|0;continue}else break}let c=cn(t.length,!1),l=i,u=a-1|0;for(;;){let i=u;if(i>=0){let a=yt(n,i),s=fi(t,a);if(s>=0){let n=bt(t,s);ln(c,s,!0),Ne(n.dom,l)||pi(e,n.dom,new g(l)),l=n.dom,un(o,i,n)}else{let t=r(a,i);Nn(e,t,new g(l)),l=t,un(o,i,{item:a,dom:t})}u=i-1|0;continue}else break}let d=t.length,f=0;for(;;){let n=f;if(n<d){let r=t[n];xt(c,n)||Pe(e,r.dom),f=n+1|0;continue}else break}return o}function hi(e,t,n,r){let i=B(t);if(i.$tag===1){let a=i._0;e.val=mi(a,e.val,n,r,t);return}else return}function gi(e,t){return{item:e,dom:t}}function _i(e,t){let n=v(),r=Vn(n,`for`),i={val:[]},a={val:!0},o=C.current_owner,s=(e,n)=>J(o===void 0?t(e,n):Ir(o,()=>t(e,n))),c=Bn(n),l=e(),u=l.length,d=0;for(;;){let e=d;if(e<u){let t=l[e],n=s(t,e);qt(i.val,gi(t,n)),V(c,n),d=e+1|0;continue}else break}return V(c,r),U(()=>{let t=e();if(a.val){a.val=!1;return}hi(i,r,t,s)}),new b(c)}function vi(e){return new Ee(be(v(),e))}function yi(e){return new b(e)}function bi(){return le()}function xi(e){return vi(e)}function Si(e){return $r(e)}function Ci(e,t,n){return ai(e,t,n)}function wi(e,t,n){return ai(e,t,n)}function Ti(e,t){let n=Zn(e.value),r={val:Fe};return gr(e,e=>{let i=r.val;if(i.$tag===1){let e=i._0;_e(e)}r.val=new Ie(ge(()=>{ur(n,e)},t))}),n}function Ei(e){switch(e.$tag){case 0:return e._0;case 1:return e._0;default:return e._0}}function Di(){return{mount:pe,use_shadow:!1,is_svg:!1}}function Oi(e){return{mount:new _(e),use_shadow:!1,is_svg:!1}}function ki(){return{mount:pe,use_shadow:!0,is_svg:!1}}function Y(e,t){let n=v(),r=e.mount,i;if(r.$tag===1)i=r._0;else{let e=zn(n);i=e.$tag===1?e._0:ve(n,`div`)}let a=e.is_svg?ye(n,`http://www.w3.org/2000/svg`,`g`):ve(n,`div`),o;e.use_shadow?(V(jn(i,An(`open`,!1,`named`)),a),o=a):(V(i,a),o=a);let s=[],c=t.length,l=0;for(;;){let e=l;if(e<c){let n=t[e],r=Ei(n);V(o,r),Zt(s,r),l=e+1|0;continue}else break}return Xr(()=>{let e=s.length,t=0;for(;;){let n=t;if(n<e){let e=s[n],r=B(e);if(r.$tag===1){let t=r._0;Mn(t,e)}t=n+1|0;continue}else break}let n=B(a);if(n.$tag===1){let e=n._0;Mn(e,a);return}else return}),new ze(Vn(n,`portal`))}function Ai(e){return Y(Di(),e)}function ji(e,t){let n=Rn(v(),e),r;if(n.$tag===1){let e=n._0;r=Oi(e)}else r=Di();return Y(r,t)}function Mi(e){return Y(ki(),e)}function Ni(e,t){return Y({mount:new _(e),use_shadow:!0,is_svg:!1},t)}function Pi(e){if(e!==``){let t=[],n=q(e,38),r=n.length,i=0;for(;;){let e=i;if(e<r){let r=n[e],a=q(r,61);if(a.length===2)I(t,{_0:T(a,0),_1:T(a,1)});else{let e;e=a.length===1?T(a,0)!==``:!1,e&&I(t,{_0:T(a,0),_1:``})}i=e+1|0;continue}else break}return t}else return[]}function Fi(e){let t=rn(e),n=-1,r=t.length,i=0;for(;;){let e=i;if(e<r){if(t[e]===63){n=e;break}i=e+1|0;continue}else break}return n===-1?{_0:e,_1:[]}:{_0:j(pn(t,0,n)),_1:Pi(j(pn(t,n+1|0,void 0)))}}function Ii(e){return N(e,{str:`[`,start:0,end:1})&&M(e,{str:`]`,start:0,end:1})&&!N(e,{str:`[...`,start:0,end:4})&&!N(e,{str:`[[...`,start:0,end:5})}function Li(e){if(e.length===0)return``;let t=w(0),n=e.length,r=0;for(;;){let i=r;if(i<n){let n=e[i];i>0&&At(t,`/`),At(t,n),r=i+1|0;continue}else break}return t.val}function Ri(e){let t=q(e,47),n=[],r=t.length,i=0;for(;;){let e=i;if(e<r){let r=t[e];r!==``&&F(n,r),i=e+1|0;continue}else break}return n}function zi(e,t){let n=nn(t);return N(e,{str:n,start:0,end:n.length})}function Bi(e,t){let n=Ri(t.pattern),r=Ri(e),i=t.catch_all;if(i===void 0){if(n.length!==r.length)return x;let e=[],i=0,a=n.length,o=0;for(;;){let s=o;if(s<a){let a=n[s],c=T(r,s);if(zi(a,58)||Ii(a))if(i<t.param_names.length)I(e,{_0:T(t.param_names,i),_1:c}),i=i+1|0;else return x;else if(a!==c)return x;o=s+1|0;continue}else break}return new Be(e)}else{let e=i,a=n.length-1|0,o=r.length;if(e.optional){if(o<a)return x}else if(o<=a)return x;let s=[],c=0,l=0;for(;;){let e=l;if(e<a){let i=T(n,e),a=T(r,e);if(zi(i,58)||Ii(i))if(c<t.param_names.length)I(s,{_0:T(t.param_names,c),_1:a}),c=c+1|0;else return x;else if(i!==a)return x;l=e+1|0;continue}else break}let u=[],d=a;for(;;){let e=d;if(e<o){F(u,T(r,e)),d=e+1|0;continue}else break}let f=Li(u);return I(s,{_0:e.name,_1:f}),new Be(s)}}function Vi(e,t){let n=Fi(e),r=n._0,i=n._1,a=t.length,o=0;for(;;){let e=o;if(e<a){let n=t[e],a=Bi(r,n);if(a.$tag===1)return{route:n,params:a._0,query:i,path:r};o=e+1|0;continue}else break}}function Hi(e){if(e===``||e===`/`)return`/`;let t=rn(e),n=[],r=!1,i=t.length,a=0;for(;;){let e=a;if(e<i){let i=t[e];i===47?(r||L(n,i),r=!0):(L(n,i),r=!1),a=e+1|0;continue}else break}let o=n.length;return o>1&&St(n,o-1|0)===47&&bn(n),j({buf:n,start:0,end:n.length})}function Ui(e){let t=[],n=q(e,47),r=n.length,i=0;for(;;){let e=i;if(e<r){_L:{let r=n[e];if(N(r,{str:`:`,start:0,end:1})&&r.length>1){let e;_L$2:{_L$3:{let t=O(r,1,void 0),n;if(t.$tag===1)n=t._0;else{t._0;break _L$3}e=A(n);break _L$2}break _L}F(t,e)}else if(N(r,{str:`[`,start:0,end:1})&&!N(r,{str:`[...`,start:0,end:4})&&!N(r,{str:`[[...`,start:0,end:5})&&M(r,{str:`]`,start:0,end:1})&&r.length>2){let e;_L$2:{_L$3:{let t=O(r,1,r.length-1|0),n;if(t.$tag===1)n=t._0;else{t._0;break _L$3}e=A(n);break _L$2}break _L}F(t,e)}break _L}i=e+1|0;continue}else break}return t}function Wi(e){let t=q(e,47);if(t.length===0)return;let n=T(t,t.length-1|0);if(N(n,{str:`[[...`,start:0,end:5})&&M(n,{str:`]]`,start:0,end:2})&&n.length>7){let e;_L:{_L$2:{let t=O(n,5,n.length-2|0),r;if(t.$tag===1)r=t._0;else{t._0;break _L$2}e=A(r);break _L}return}return{name:e,optional:!0}}if(N(n,{str:`[...`,start:0,end:4})&&M(n,{str:`]`,start:0,end:1})&&n.length>5){let e;_L:{_L$2:{let t=O(n,4,n.length-1|0),r;if(t.$tag===1)r=t._0;else{t._0;break _L$2}e=A(r);break _L}return}return{name:e,optional:!1}}}function Gi(e,t,n,r){let i=e.length,a=0;for(;;){let o=a;if(o<i){let i=e[o];switch(i.$tag){case 0:{let e=i,a=e._0,o=e._1,s=e._2,c=e._3,l=Hi(`${t}${a}`),u=Ui(l),d=Wi(l);Qt(r,{pattern:l,param_names:u,component:o,layouts:Cn(n),kind:0,title:s,meta:c,catch_all:d});break}case 2:{let e=i,n=e._0,a=e._1,o=Hi(`${t}${n}`);Qt(r,{pattern:o,param_names:Ui(o),component:a,layouts:[],kind:1,title:``,meta:[],catch_all:Wi(o)});break}case 3:{let e=i,n=e._0,a=e._1,o=Hi(`${t}${n}`);Qt(r,{pattern:o,param_names:Ui(o),component:a,layouts:[],kind:2,title:``,meta:[],catch_all:Wi(o)});break}default:{let e=i,a=e._0,o=e._1,s=e._2,c=Hi(`${t}${a}`),l=Cn(n);F(l,s),Gi(o,c,l,r)}}a=o+1|0;continue}else return}}function Ki(e,t){let n=[];return Gi(e,t,[],n),n}function qi(){let e=Ve(),t=He();return t===``?e:`${e}${t}`}function Ji(e){let t=qi();dr(e.current_path,t),fr(e.current_match,Vi(t,e.routes))}function Yi(e,t){let n=Ki(e,t),r=qi(),i=Vi(r,n),a={routes:n,base:t,current_path:rr(r),current_match:ir(i)};return Ge(()=>{Ji(a)}),a}function Xi(e,t){dr(e.current_path,t),fr(e.current_match,Vi(t,e.routes))}function Zi(e,t){Ue(t),Xi(e,t)}function Qi(e,t){We(t),Xi(e,t)}function $i(e){return Jn(e.current_path)}function ea(e){return Yn(e.current_match)}function ta(e){return tr(e)}function na(e){return W(e)}function X(e,t){ur(e,t)}function ra(e,t){pr(e,t)}function ia(e){return e.value}function aa(e,t){return gr(e,t)}function oa(e,t){return Zr(e,t)}function sa(e){return mr(e)}function ca(e,t,n){return Qr(e,t,n)}function la(e){return U(e)}function ua(){Kr()}function da(){Jr()}function fa(e){return Ur(e)}function pa(e){return Yr(e)}function ma(e){Xr(e)}function ha(e){return zr(e)}function ga(){let e=C.current_owner;if(e!==void 0)return e}function _a(e,t){return Fr(e,t)}function va(){return C.current_owner!==void 0}function ya(e){Gr(e)}function ba(e,t){return _i(e,t)}function xa(e){return xi(e)}function Sa(e){return Si(e)}function Ca(e,t){ci(e,t)}function wa(e,t){oi(e,t)}function Z(e,t){return ui(e,t)}function Ta(e,t,n){return Ci(e,t,n)}function Ea(e,t,n){return wi(e,t,n)}function Q(e){return li(e)}function Da(e,t,n){return ai(e,t,n)}function Oa(e,t,n,r){return ii(e,t,n,r)}function ka(){return`http://www.w3.org/2000/svg`}function Aa(){return`http://www.w3.org/1998/Math/MathML`}function ja(){return bi()}function Ma(e,t){return Ti(e,t)}function Na(e,t){return new S(e,t,``,[])}function Pa(e,t,n){return new S(e,t,n,[])}function Fa(e,t,n,r){return new S(e,t,n,r)}function Ia(e,t){return Yi(e,t)}function La(e,t){let n;return n=t===void 0?``:t,Ia(e,n)}function Ra(e,t){Zi(e,t)}function za(e,t){Qi(e,t)}function Ba(e){return $i(e)}function Va(e){return ea(e)}function Ha(e){return e.base}function Ua(e){return Mr(e)}function Wa(e,t,n){return Vr(e,t,n)}function Ga(e){return Hr(e)}function Ka(e){return Ar(e)}function qa(){let e=jr();return{_0:e._0,_1:e._1,_2:e._2}}function Ja(e){return Sr(e)}function Ya(e){return Cr(e)}function Xa(e){kr(e)}function Za(e){return wr(e)}function Qa(e){return Tr(e)}function $a(e){return Er(e)}function eo(e){let t=Dr(e);return t.$tag===1?t._0:Ye()}function to(e){let t=Or(e);return t===void 0?``:t}function no(e){return _r(e)}function ro(e){return vr(e)}function io(e){return yr(e)}function ao(e){let t=br(e);return t.$tag===1?t._0:Ye()}function oo(e){let t=xr(e);return t===void 0?``:t}function so(e){return new ze(J(e))}function $(e){return yi(Ei(e))}function co(e){let t=Array(e.length),n=e.length,r=0;for(;;){let i=r;if(i<n){let n=e[i];t[i]=so(n),r=i+1|0;continue}else break}return $(Ai(t))}function lo(e,t){let n=Array(t.length),r=t.length,i=0;for(;;){let e=i;if(e<r){let r=t[e];n[e]=so(r),i=e+1|0;continue}else break}return $(ji(e,n))}function uo(e){let t=Array(e.length),n=e.length,r=0;for(;;){let i=r;if(i<n){let n=e[i];t[i]=so(n),r=i+1|0;continue}else break}return $(Mi(t))}function fo(e,t){let n=Array(t.length),r=t.length,i=0;for(;;){let e=i;if(e<r){let r=t[e];n[e]=so(r),i=e+1|0;continue}else break}return $(Ni(e,n))}function po(e){let t=ta(e);return[()=>na(t),e=>{typeof e==`function`?ra(t,e):X(t,e)}]}function mo(e){return la(e)}function ho(e){return sa(e)}function go(e,t,n={}){let{defer:r=!1}=n,i=Array.isArray(e),a,o,s=!0;return n=>{let c=i?e.map(e=>e()):e();if(r&&s){s=!1,a=c;return}let l=t(c,a,n??o);return a=c,o=l,s=!1,l}}function _o(...e){let t={};for(let n of e)if(n)for(let e of Object.keys(n)){let r=n[e];if(e.startsWith(`on`)&&typeof r==`function`){let n=t[e];typeof n==`function`?t[e]=(...e)=>{n(...e),r(...e)}:t[e]=r}else if(e===`ref`&&typeof r==`function`){let n=t[e];typeof n==`function`?t[e]=e=>{n(e),r(e)}:t[e]=r}else if(e===`class`||e===`className`){let n=t[e];n?t[e]=`${n} ${r}`:t[e]=r}else e===`style`&&typeof r==`object`&&typeof t[e]==`object`?t[e]={...t[e],...r}:t[e]=r}return t}function vo(e,...t){let n=[],r={...e};for(let e of t){let t={};for(let n of e)n in r&&(t[n]=r[n],delete r[n]);n.push(t)}return n.push(r),n}function yo(e){let t=Ka(e),n=()=>ao(Ja(t));return Object.defineProperties(n,{loading:{get:()=>Za(t)},error:{get:()=>to(t)},state:{get:()=>Za(t)?`pending`:Qa(t)?`ready`:$a(t)?`errored`:`unresolved`},latest:{get:()=>Ya(t)}}),[n,{refetch:()=>Xa(t)}]}function bo(){let e=qa(),t=e._0,n=e._1,r=e._2,i=()=>ao(Ja(t));return Object.defineProperties(i,{loading:{get:()=>Za(t)},error:{get:()=>to(t)}}),[i,n,r]}function xo(e,t){let[n]=e,r=ta(n()),i=Ma(r,t);return[()=>na(i),e=>X(r,e)]}function So(e,...t){if(typeof e==`function`){let n=e(...t);return Array.isArray(n)?Q(n):n}return Array.isArray(e)?Q(e):e}function Co(e){if(Array.isArray(e))return Q(e);let{children:t}=e||{};return Q(t?Array.isArray(t)?t:[t]:[])}function wo(e){let{each:t,fallback:n,children:r}=e;return t?ba(typeof t==`function`?t:()=>t,(e,t)=>r(e,()=>t)):n??null}function To(e){let{when:t,children:n}=e,r=typeof t==`function`?t:()=>t;return Z(()=>!!r(),()=>So(n,r()))}function Eo(e){let{each:t,fallback:n,children:r}=e;if(!t)return n??null;let i=typeof t==`function`?t:()=>t;return i().length===0&&n?n:ba(i,(e,t)=>r(()=>i()[t],t))}function Do(e){let{context:t,value:n,children:r}=e;return Wa(t,n,()=>typeof r==`function`?r():r)}function Oo(e){let{fallback:t,children:n}=e,r;r=n?Array.isArray(n)?n.flat():[n]:[];let i=r.filter(e=>e&&e.__isMatch);if(i.length===0)return t??null;let a=ho(()=>{for(let e=0;e<i.length;e++)if(i[e].when())return e;return-1}),o=[];for(let e=0;e<i.length;e++){let t=i[e],n=e;o.push(Z(()=>a()===n,t.children))}return t&&o.push(Z(()=>a()===-1,()=>So(t))),Q(o)}function ko(e){let{when:t,children:n}=e,r=typeof t==`function`?t:()=>t;return{__isMatch:!0,when:()=>!!r(),condition:r,children:()=>So(n,r())}}function Ao(e){let{mount:t,useShadow:n=!1,children:r}=e,i=typeof r==`function`?[r()]:Array.isArray(r)?r:[r];if(n){if(typeof t==`string`){let e=document.querySelector(t);if(e)return fo(e,i)}else if(t)return fo(t,i);return uo(i)}return typeof t==`string`?lo(t,i):co(i)}function jo(e){let t=new Map,n=structuredClone(e);function r(e){let r=e.join(`.`);if(!t.has(r)){let a=i(n,e);t.set(r,ta(a))}return t.get(r)}function i(e,t){let n=e;for(let e of t){if(n==null)return;n=n[e]}return n}function a(e,t,n){if(t.length===0)return;let r=e;for(let e=0;e<t.length-1;e++){let n=t[e];if(r[n]==null){let i=t[e+1];r[n]=typeof i==`number`||/^\d+$/.test(i)?[]:{}}r=r[n]}r[t[t.length-1]]=n}function o(e){let r=e.join(`.`);ua();try{for(let[e,a]of t.entries())(e===r||e.startsWith(r+`.`))&&X(a,i(n,e.split(`.`)))}finally{da()}}function s(e,t=[]){return typeof e!=`object`||!e?e:new Proxy(e,{get(e,n){if(typeof n==`symbol`)return e[n];let i=[...t,n];na(r(i));let a=e[n];return typeof a==`object`&&a?s(a,i):a},set(e,n,r){let i=[...t,n];return e[n]=r,o(i),!0}})}function c(...e){if(e.length===0)return;let r=[],s=0;for(;s<e.length-1&&typeof e[s]==`string`;)r.push(e[s]),s++;let c=e[s];if(r.length===0&&typeof c==`object`&&c){Object.assign(n,c);for(let[e,r]of t.entries())X(r,i(n,e.split(`.`)));return}let l=i(n,r),u;u=typeof c==`function`?c(l):Array.isArray(c)?c:typeof c==`object`&&c&&typeof l==`object`&&l&&!Array.isArray(l)?{...l,...c}:c,a(n,r,u),o(r)}return[s(n),c]}function Mo(e){return t=>{let n=structuredClone(t);return e(n),n}}function No(e){return()=>e}export{$a as $,la as A,Aa as B,ua as C,ka as Ct,Oa as D,Ga as Dt,Da as E,ra as Et,ga as F,co as G,ma as H,va as I,uo as J,fo as K,Ta as L,ba as M,Q as N,ha as O,na as P,Ja as Q,Ea as R,da as S,aa as St,Ua as T,Sa as Tt,ya as U,wa as V,ia as W,Ca as X,Wa as Y,to as Z,go as _,oo as _t,Ao as a,Na as at,vo as b,ro as bt,Oo as c,Ha as ct,ho as d,Ra as dt,Za as et,yo as f,za as ft,_o as g,Z as gt,xo as h,X as ht,ko as i,eo as it,ja as j,La as k,bo as l,Va as lt,jo as m,_a as mt,Co as n,Ya as nt,Do as o,Fa as ot,po as p,fa as pt,lo as q,Eo as r,Xa as rt,To as s,Pa as st,wo as t,Qa as tt,mo as u,Ba as ut,Mo as v,io as vt,ca as w,xa as wt,pa as x,ao as xt,No as y,no as yt,oa as z};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luna_ui/luna",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"description": "Fine-grained reactive UI library for Moonbit/JS",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -14,6 +14,10 @@
|
|
|
14
14
|
"types": "./dist/index.d.ts",
|
|
15
15
|
"import": "./dist/index.js"
|
|
16
16
|
},
|
|
17
|
+
"./event-utils": {
|
|
18
|
+
"types": "./dist/event-utils.d.ts",
|
|
19
|
+
"import": "./dist/event-utils.js"
|
|
20
|
+
},
|
|
17
21
|
"./jsx-runtime": {
|
|
18
22
|
"types": "./dist/jsx-runtime.d.ts",
|
|
19
23
|
"import": "./dist/jsx-runtime.js"
|
package/dist/src-D2Q2UhWb.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e={$tag:0};function t(e){this._0=e}t.prototype.$tag=1;var n=class extends Error{};function r(){throw new n}function i(e,t){if(t<0||t>=e.length)throw Error(`Index out of bounds`)}function a(e,t){let n=Array(e);return n.fill(t),n}function o(e){this._0=e}o.prototype.$tag=0;function s(e){this._0=e}s.prototype.$tag=1;const c={$tag:1},l={$tag:0},u=(e,t)=>e.toString(t),d=(e,t)=>{e.push(t)},f={$tag:0};function ee(e){this._0=e}ee.prototype.$tag=1;function te(e){this._0=e}te.prototype.$tag=2;function ne(e){this._0=e}ne.prototype.$tag=3;function re(e){this._0=e}re.prototype.$tag=4;const ie=e=>e.slice(0),p=(e,t)=>{e.length=t},ae=e=>e.pop(),oe=(e,t,n)=>e.splice(t,n),se=(e,t)=>e[t],m=(e,t,n)=>e[t](...n),ce=e=>e==null,le=()=>({}),h=(e,t,n)=>{e[t]=n},ue=()=>null,de=e=>Object.fromEntries(e.map(e=>[e._0,e._1])),fe={$tag:0};function g(e){this._0=e}g.prototype.$tag=1;const pe={$tag:0};function _(e){this._0=e}_.prototype.$tag=1;const me={$tag:0};function he(e){this._0=e}he.prototype.$tag=1;const ge=(e,t)=>setTimeout(e,t),_e=e=>clearTimeout(e),v=()=>document,ve=(e,t)=>e.createElement(t),ye=(e,t,n)=>e.createElementNS(t,n),be=(e,t)=>e.createTextNode(t),xe={$tag:0};function y(e){this._0=e}y.prototype.$tag=1;const b={$tag:0};function Se(e){this._0=e}Se.prototype.$tag=1;function Ce(e){this._0=e}Ce.prototype.$tag=2;function we(e){this._0=e}we.prototype.$tag=0;function Te(e){this._0=e}Te.prototype.$tag=1;function x(e){this._0=e}x.prototype.$tag=2;function Ee(e){this._0=e}Ee.prototype.$tag=3;const De=(e,t)=>document.createElementNS(e,t),Oe=(e,t,n)=>e.addEventListener(t,n),ke=(e,t)=>e===t,Ae=(e,t,n)=>typeof e.moveBefore==`function`?(e.moveBefore(t,n),t):e.insertBefore(t,n),je=(e,t)=>typeof e.moveBefore==`function`?(e.moveBefore(t,null),t):e.insertBefore(t,null),Me=(e,t)=>e.nextSibling===t,Ne={$tag:0};function Pe(e){this._0=e}Pe.prototype.$tag=1;function Fe(e){this._0=e}Fe.prototype.$tag=0;function Ie(e){this._0=e}Ie.prototype.$tag=1;function Le(e){this._0=e}Le.prototype.$tag=2;const S={$tag:0};function Re(e){this._0=e}Re.prototype.$tag=1;const ze=()=>window.location.pathname,Be=()=>window.location.search,Ve=e=>window.history.pushState(null,``,e),He=e=>window.history.replaceState(null,``,e),Ue=e=>window.addEventListener(`popstate`,()=>e());function C(e,t,n,r){this._0=e,this._1=t,this._2=n,this._3=r}C.prototype.$tag=0;function We(e,t,n){this._0=e,this._1=t,this._2=n}We.prototype.$tag=1;function Ge(e,t){this._0=e,this._1=t}Ge.prototype.$tag=2;function Ke(e,t){this._0=e,this._1=t}Ke.prototype.$tag=3;const qe=()=>void 0,Je={method_0:Dt,method_1:Ot,method_2:Rt,method_3:ut},Ye={val:0},w={current_subscriber:void 0,current_owner:void 0,current_cleanups:e,batch_depth:0,pending_effects:[],pending_ids:[]},Xe={val:0};function Ze(e){return r()}function Qe(e){return r()}function $e(e){return r()}function et(e){return r()}function tt(e){r()}function nt(e){return r()}function rt(e,t){return e===0?t===0:t===1}function it(e,t){return Ze(`${e}\n at ${M(t)}\n`)}function at(e,t){return Qe(`${e}\n at ${M(t)}\n`)}function ot(e,t){return $e(`${e}\n at ${M(t)}\n`)}function st(e,t){return et(`${e}\n at ${M(t)}\n`)}function ct(e,t){tt(`${e}\n at ${M(t)}\n`)}function lt(e,t){return nt(`${e}\n at ${M(t)}\n`)}function T(e){return{val:``}}function ut(e,t){let n=e;n.val=`${n.val}${String.fromCodePoint(t)}`}function dt(e,t){return(((Math.imul(e-55296|0,1024)|0)+t|0)-56320|0)+65536|0}function ft(e,t){return!rt(e,t)}function pt(e,t){let n=e.length;return t>=0&&t<n?(i(e,t),e[t]):r()}function mt(e,t){let n=e.length;return t>=0&&t<n?(i(e,t),e[t]):r()}function ht(e,t){let n=e.length;return t>=0&&t<n?(i(e,t),e[t]):r()}function gt(e,t){let n=e.length;return t>=0&&t<n?(i(e,t),e[t]):r()}function _t(e,t){let n=e.length;return t>=0&&t<n?(i(e,t),e[t]):r()}function vt(e,t){let n=e.length;return t>=0&&t<n?(i(e,t),e[t]):r()}function yt(e,t){let n=e.length;return t>=0&&t<n?(i(e,t),e[t]):r()}function E(e,t){let n=e.length;return t>=0&&t<n?(i(e,t),e[t]):r()}function bt(e,t){let n=e.length;return t>=0&&t<n?(i(e,t),e[t]):r()}function xt(e,t){let n=e.end-e.start|0,r=t.end-t.start|0;if(r>0)if(n>=r){let o=a(256,r),s=r-1|0,c=0;for(;;){let e=c;if(e<s){let n=t.str,a=t.start+e|0,s=n.charCodeAt(a)&255;i(o,s),o[s]=(r-1|0)-e|0,c=e+1|0;continue}else break}let l=0;for(;;){let a=l;if(a<=(n-r|0)){let n=r-1|0,s=0;for(;;){let r=s;if(r<=n){let n=a+r|0,i=e.str,o=e.start+n|0,c=i.charCodeAt(o),l=t.str,u=t.start+r|0;if(c!==l.charCodeAt(u))break;s=r+1|0;continue}else return a}let c=(a+r|0)-1|0,u=e.str,d=e.start+c|0,f=u.charCodeAt(d)&255;i(o,f),l=a+o[f]|0;continue}else break}return}else return;else return 0}function St(e,t){let n=e.end-e.start|0,r=t.end-t.start|0;if(r>0)if(n>=r){let i=t.str,a=t.start+0|0,o=i.charCodeAt(a),s=n-r|0,c=0;for(;c<=s;){for(;;){let t;if(c<=s){let n=c,r=e.str,i=e.start+n|0;t=r.charCodeAt(i)!==o}else t=!1;if(t){c=c+1|0;continue}else break}if(c<=s){let n=1;for(;;){let i=n;if(i<r){let r=c+i|0,a=e.str,o=e.start+r|0,s=a.charCodeAt(o),l=t.str,u=t.start+i|0;if(s!==l.charCodeAt(u))break;n=i+1|0;continue}else return c}c=c+1|0}}return}else return;else return 0}function D(e,t){return(t.end-t.start|0)<=4?St(e,t):xt(e,t)}function Ct(e,t){let n=e.end-e.start|0,r=t.end-t.start|0;if(r>0)if(n>=r){let o=a(256,r),s=r-1|0;for(;;){let e=s;if(e>0){let n=t.str,r=t.start+e|0,a=n.charCodeAt(r)&255;i(o,a),o[a]=e,s=e-1|0;continue}else break}let c=n-r|0;for(;;){let n=c;if(n>=0){let a=0;for(;;){let i=a;if(i<r){let r=n+i|0,o=e.str,s=e.start+r|0,c=o.charCodeAt(s),l=t.str,u=t.start+i|0;if(c!==l.charCodeAt(u))break;a=i+1|0;continue}else return n}let s=e.str,l=e.start+n|0,u=s.charCodeAt(l)&255;i(o,u),c=n-o[u]|0;continue}else break}return}else return;else return n}function wt(e,t){let n=e.end-e.start|0,r=t.end-t.start|0;if(r>0)if(n>=r){let i=t.str,a=t.start+0|0,o=i.charCodeAt(a),s=n-r|0;for(;s>=0;){for(;;){let t;if(s>=0){let n=s,r=e.str,i=e.start+n|0;t=r.charCodeAt(i)!==o}else t=!1;if(t){s=s-1|0;continue}else break}if(s>=0){let n=1;for(;;){let i=n;if(i<r){let r=s+i|0,a=e.str,o=e.start+r|0,c=a.charCodeAt(o),l=t.str,u=t.start+i|0;if(c!==l.charCodeAt(u))break;n=i+1|0;continue}else return s}s=s-1|0}}return}else return;else return n}function O(e,t){return(t.end-t.start|0)<=4?wt(e,t):Ct(e,t)}function k(e,t,n){let r;return r=n===void 0?e.end-e.start|0:n,t>=0&&t<=r&&r<=(e.end-e.start|0)?{str:e.str,start:e.start+t|0,end:e.start+r|0}:st(`Invalid index for View`,`@moonbitlang/core/builtin:stringview.mbt:111:5-111:36`)}function Tt(e){let t=D(e,{str:`:`,start:0,end:1});if(t!==void 0){let n=t;return n>0&&(n+1|0)<(e.end-e.start|0)?{_0:k(e,0,n),_1:k(e,n+1|0,void 0)}:void 0}}function Et(e){_L:if(Pt(e,1,0,e.length))if(e.charCodeAt(0)===64){let t=Lt(e,1,0,e.length),n;n=t===void 0?e.length:t;let i={str:e,start:n,end:e.length},a=D(i,{str:`:`,start:0,end:1});if(a===void 0)return r();{let e=a,t=k(i,0,e),n=O(i,{str:`-`,start:0,end:1});if(n===void 0)return r();{let a=n;if((a+1|0)<(i.end-i.start|0)){let n=Tt(k(i,a+1|0,void 0));if(n===void 0)return r();{let o=n,s=o._0,c=o._1,l=k(i,0,a);_L$2:{let n=O(l,{str:`:`,start:0,end:1});if(n===void 0)break _L$2;{let i=O(k(l,0,n),{str:`:`,start:0,end:1});if(i===void 0)break _L$2;{let n=i;if((n+1|0)<(l.end-l.start|0)){let i=Tt(k(l,n+1|0,void 0));if(i===void 0)return r();{let a=i,o=a._0,u=a._1;return n>(e+1|0)?{pkg:t,filename:k(l,e+1|0,n),start_line:o,start_column:u,end_line:s,end_column:c}:r()}}else return r()}}}return r()}}else return r()}}}else break _L;else break _L;return r()}function Dt(e,t){let n=e;n.val=`${n.val}${t}`}function A(e,t,n){let r=e.length,i;if(n===void 0)i=r;else{let e=n;i=e<0?r+e|0:e}let a=t<0?r+t|0:t;if(a>=0&&a<=i&&i<=r){let t;if(a<r){let n=e.charCodeAt(a);t=56320<=n&&n<=57343}else t=!1;if(t)return new o(l);let n;if(i<r){let t=e.charCodeAt(i);n=56320<=t&&t<=57343}else n=!1;return n?new o(l):new s({str:e,start:a,end:i})}else return new o(c)}function Ot(e,t,n,i){let a;_L:{_L$2:{let e=A(t,n,n+i|0);if(e.$tag===1)a=e._0;else{e._0;break _L$2}break _L}a=r()}Rt(e,a)}function j(e){let t=T(0);return en(e,{self:t,method_table:Je}),t.val}function M(e){let t=T(0);return cn(e,{self:t,method_table:Je}),t.val}function kt(e,t){return u(e,t)}function N(e){return e.str.substring(e.start,e.end)}function At(e){return e()}function jt(e){return e()}function Mt(e){return t=>{for(;;){let n=At(e);if(n===void 0)return 1;if(t(n)!==1)return 0}}}function Nt(e){return t=>{for(;;){let n=jt(e);if(n===-1)return 1;if(t(n)!==1)return 0}}}function P(e){let t=T(Math.imul(e.end-e.start|0,4)|0),n=e.end-e.start|0,r=0;for(;;){let i=r;if(i<n){let n=e.buf[e.start+i|0];ut(t,n),r=i+1|0;continue}else break}return t.val}function Pt(e,t,n,r){let i;i=r===void 0?e.length:r;let a=n,o=0;for(;;){let n=a,r=o;if(n<i&&r<t){let t=e.charCodeAt(n);if(55296<=t&&t<=56319&&(n+1|0)<i){let t=n+1|0,i=e.charCodeAt(t);if(56320<=i&&i<=57343){a=n+2|0,o=r+1|0;continue}else ct(`invalid surrogate pair`,`@moonbitlang/core/builtin:string.mbt:491:9-491:40`)}a=n+1|0,o=r+1|0;continue}else return r>=t}}function Ft(e,t,n,r){let i=0,a=r;for(;(a-1|0)>=n&&i<t;){let t=a-1|0,n=e.charCodeAt(t);a=56320<=n&&n<=57343?a-2|0:a-1|0,i=i+1|0}return i<t||a<n?void 0:a}function It(e,t,n,r){if(n>=0&&n<=r){let i=n,a=0;for(;i<r&&a<t;){let t=i,n=e.charCodeAt(t);i=55296<=n&&n<=56319?i+2|0:i+1|0,a=a+1|0}return a<t||i>=r?void 0:i}else return lt(`Invalid start index`,`@moonbitlang/core/builtin:string.mbt:366:5-366:33`)}function Lt(e,t,n,r){let i;return i=r===void 0?e.length:r,t>=0?It(e,t,n,i):Ft(e,-t|0,n,i)}function Rt(e,t){let n=e;n.val=`${n.val}${N(t)}`}function zt(e,t){let n=O(e,t);return n===void 0?!1:n===((e.end-e.start|0)-(t.end-t.start|0)|0)}function F(e,t){return zt({str:e,start:0,end:e.length},t)}function Bt(e,t){let n=D(e,t);return n===void 0?!1:n===0}function I(e,t){return Bt({str:e,start:0,end:e.length},t)}function Vt(e){return[]}function L(e,t){d(e,t)}function Ht(e,t){d(e,t)}function Ut(e,t){d(e,t)}function Wt(e,t){d(e,t)}function Gt(e,t){d(e,t)}function Kt(e,t){d(e,t)}function qt(e,t){d(e,t)}function Jt(e,t){d(e,t)}function R(e,t){d(e,t)}function z(e,t){d(e,t)}function B(e,t){d(e,t)}function Yt(e){let t=e.length,n={val:0};return()=>{if(n.val<t){let r=n.val,i=e.charCodeAt(r);if(55296<=i&&i<=56319&&(n.val+1|0)<t){let t=n.val+1|0,r=e.charCodeAt(t);if(56320<=r&&r<=57343){let e=dt(i,r);return n.val=n.val+2|0,e}}return n.val=n.val+1|0,i}else return-1}}function Xt(e){return Nt(Yt(e))}function Zt(e,t){return e(t)}function Qt(e){return String.fromCodePoint(e)}function $t(e){let t=Xt(e),n={val:Vt(e.length)},i={val:f};t(e=>{let t=n.val;return B(t,e),n.val=t,1});let a=i.val;switch(a.$tag){case 0:break;case 1:a._0;break;case 2:return a._0;case 3:r();break;default:r()}return n.val}function en(e,t){t.method_table.method_0(t.self,kt(e,10))}function tn(e){let t={val:0};return()=>{if(t.val<(e.end-e.start|0)){let n=e.buf[e.start+t.val|0];return t.val=t.val+1|0,n}else return}}function nn(e){return tn({buf:e,start:0,end:e.length})}function V(e){return Mt(nn(e))}function H(e,t){return ft(Zt(e,e=>t(e)?0:1),1)}function rn(e,t){let n=Array(e),r=0;for(;;){let i=r;if(i<e){n[i]=t,r=i+1|0;continue}else break}return n}function an(e,t,n){let a=e.length;if(t>=0&&t<a){i(e,t),e[t]=n;return}else{r();return}}function on(e,t,n){let a=e.length;if(t>=0&&t<a){i(e,t),e[t]=n;return}else{r();return}}function sn(e,t){let n=e.pkg,r=D(n,{str:`/`,start:0,end:1}),i;if(r===void 0)i={_0:n,_1:void 0};else{let e=r,t=D(k(n,e+1|0,void 0),{str:`/`,start:0,end:1});if(t===void 0)i={_0:n,_1:void 0};else{let r=t,a=(e+1|0)+r|0;i={_0:k(n,0,a),_1:k(n,a+1|0,void 0)}}}let a=i._0,o=i._1;if(o!==void 0){let e=o;t.method_table.method_2(t.self,e),t.method_table.method_3(t.self,47)}t.method_table.method_2(t.self,e.filename),t.method_table.method_3(t.self,58),t.method_table.method_2(t.self,e.start_line),t.method_table.method_3(t.self,58),t.method_table.method_2(t.self,e.start_column),t.method_table.method_3(t.self,45),t.method_table.method_2(t.self,e.end_line),t.method_table.method_3(t.self,58),t.method_table.method_2(t.self,e.end_column),t.method_table.method_3(t.self,64),t.method_table.method_2(t.self,a)}function cn(e,t){sn(Et(e),t)}function ln(e,t,n){let r=e.length,i;if(n===void 0)i=r;else{let e=n;i=e<0?r+e|0:e}let a=t<0?r+t|0:t;return a>=0&&a<=i&&i<=r?{buf:e,start:a,end:i}:ot(`View index out of bounds`,`@moonbitlang/core/builtin:arrayview.mbt:200:5-200:38`)}function un(e,t){p(e,t)}function dn(e,t){p(e,t)}function fn(e,t){p(e,t)}function pn(e,t){p(e,t)}function mn(e,t){p(e,t)}function hn(e){return ae(e)}function gn(e){return e.length===0?-1:hn(e)}function _n(e,t){if(t>=0&&t<e.length){i(e,t);let n=e[t];return oe(e,t,1),n}else return it(`index out of bounds: the len is from 0 to ${j(e.length)} but the index is ${j(t)}`,`@moonbitlang/core/builtin:arraycore_js.mbt:241:5-243:6`)}function vn(e,t){if(t>=0&&t<e.length){i(e,t);let n=e[t];return oe(e,t,1),n}else return at(`index out of bounds: the len is from 0 to ${j(e.length)} but the index is ${j(t)}`,`@moonbitlang/core/builtin:arraycore_js.mbt:241:5-243:6`)}function yn(e){return ie(e)}function bn(e){dn(e,0)}function xn(e){fn(e,0)}function Sn(e){mn(e,0)}function Cn(e){return ce(e)?fe:new g(e)}function wn(e){return ce(e)?pe:new _(e)}function Tn(e){return ce(e)?me:new he(e)}function En(e,t,n){return{mode:e,delegatesFocus:t,slotAssignment:n}}function Dn(e,t){return m(e,`attachShadow`,[de([{_0:`mode`,_1:t.mode},{_0:`delegatesFocus`,_1:t.delegatesFocus},{_0:`slotAssignment`,_1:t.slotAssignment}])])}function U(e){return Cn(se(e,`parentNode`))}function W(e,t){return m(e,`appendChild`,[t])}function G(e,t){return m(e,`removeChild`,[t])}function On(e,t,n){if(n.$tag===1){let r=n._0;return m(e,`insertBefore`,[t,r])}else return m(e,`insertBefore`,[t,ue()])}function kn(e,t){h(e,`textContent`,t)}function An(e,t){h(e,`className`,t)}function jn(e,t,n){m(e,`setAttribute`,[t,n])}function Mn(e,t){m(e,`removeAttribute`,[t])}function Nn(e,t){return wn(m(e,`querySelector`,[t]))}function Pn(e){return Tn(se(e,`body`))}function Fn(e){return m(e,`createDocumentFragment`,[])}function In(e,t){return m(e,`createComment`,[t])}function K(){let e=Ye.val;return Ye.val=e+1|0,e}function Ln(e){let t=w.current_owner;t!==void 0&&Ht(t.disposers,e)}function Rn(e){let t=e.length-1|0;for(;;){let n=t;if(n>=0){mt(e,n)(),t=n-1|0;continue}else break}bn(e)}function zn(e){let t=w.current_cleanups;return w.current_cleanups=e,t}function Bn(e,n){let r=zn(new t(e));n(),w.current_cleanups=r}function Vn(e,t){let n=w.current_subscriber;w.current_subscriber=e;let r=t();return w.current_subscriber=n,r}function Hn(e,t){let n=w.current_subscriber;w.current_subscriber=e,t(),w.current_subscriber=n}function q(e){let t={active:!0,cleanups:[]},n=K(),r={val:void 0},i=()=>{if(!t.active)return;Rn(t.cleanups);let n=r.val;n!==void 0&&Hn(n,()=>{Bn(t.cleanups,e)})};r.val={id:n,run:i},i();let a=()=>{t.active=!1,Rn(t.cleanups)};return Ln(a),a}function J(e){let t=w.current_subscriber;if(t!==void 0){let n=t;H(V(e.subscribers),e=>e.id===n.id)||L(e.subscribers,n)}return e.value}function Un(e){let t=w.current_subscriber;if(t!==void 0){let n=t;H(V(e.subscribers),e=>e.id===n.id)||L(e.subscribers,n)}return e.value}function Wn(e){let t=w.current_subscriber;if(t!==void 0){let n=t;H(V(e.subscribers),e=>e.id===n.id)||L(e.subscribers,n)}return e.value}function Gn(e){let t=w.current_subscriber;if(t!==void 0){let n=t;H(V(e.subscribers),e=>e.id===n.id)||L(e.subscribers,n)}return e.value}function Kn(e){return{value:e,subscribers:[]}}function qn(e){return{value:e,subscribers:[]}}function Jn(e){return{value:e,subscribers:[]}}function Yn(e){return{value:e,subscribers:[]}}function Xn(e){return Kn(e)}function Zn(e){return qn(e)}function Qn(e){return Jn(e)}function $n(e){return Yn(e)}function er(e){let t=w.pending_ids,n=t.length,r=0;for(;;){let i=r;if(i<n){if(t[i]===e)return!0;r=i+1|0;continue}else break}return!1}function Y(e){if(w.batch_depth>0){if(er(e.id))return;Wt(w.pending_ids,e.id),L(w.pending_effects,e);return}else{let t=e.run;t();return}}function tr(e){let t=e.subscribers,n=t.length,r=0;for(;;){let e=r;if(e<n){let n=t[e];Y(n),r=e+1|0;continue}else return}}function nr(e){let t=e.subscribers,n=t.length,r=0;for(;;){let e=r;if(e<n){let n=t[e];Y(n),r=e+1|0;continue}else return}}function rr(e){let t=e.subscribers,n=t.length,r=0;for(;;){let e=r;if(e<n){let n=t[e];Y(n),r=e+1|0;continue}else return}}function ir(e){let t=e.subscribers,n=t.length,r=0;for(;;){let e=r;if(e<n){let n=t[e];Y(n),r=e+1|0;continue}else return}}function ar(e,t){e.value=t,tr(e)}function X(e,t){e.value=t,nr(e)}function or(e,t){e.value=t,rr(e)}function sr(e,t){e.value=t,ir(e)}function cr(e,t){e.value=t(e.value),tr(e)}function lr(e){let t=K(),n={value:xe,dirty:!0,subscribers:[]},r={val:void 0};return r.val={id:t,run:()=>{if(!n.dirty){n.dirty=!0;let e=n.subscribers,t=e.length,r=0;for(;;){let n=r;if(n<t){let t=e[n];Y(t),r=n+1|0;continue}else return}}}},()=>{let t=w.current_subscriber;if(t!==void 0){let e=t;H(V(n.subscribers),t=>t.id===e.id)||L(n.subscribers,e)}if(n.dirty){let t=r.val;t===void 0||(n.value=new y(Vn(t,e)),n.dirty=!1)}let i=n.value;if(i.$tag===1)return i._0;{let t=e();return n.value=new y(t),t}}}function ur(e,t){let n=e.subscribers,r=n.length,i=0,a=0;for(;;){let e=i,o=a;if(e<r){let r=n[e];if(r.id!==t){n[o]=r,i=e+1|0,a=o+1|0;continue}i=e+1|0;continue}else{un(n,o);return}}}function dr(e,t){let n=K(),r={val:!0},i={id:n,run:()=>{if(r.val){t(e.value);return}else return}};return L(e.subscribers,i),()=>{r.val=!1,ur(e,n)}}function fr(e){return e.$tag===0}function pr(e){return e.$tag===1}function mr(e){return e.$tag===2}function hr(e){if(e.$tag===1){let t=e._0;return new y(t)}else return xe}function gr(e){if(e.$tag===2)return e._0}function _r(e){return Gn(e.state)}function vr(e){return e.state.value}function yr(e){let t=e.state;return fr(t.value)}function br(e){let t=e.state;return pr(t.value)}function xr(e){let t=e.state;return mr(t.value)}function Sr(e){let t=e.state;return hr(t.value)}function Cr(e){let t=e.state;return gr(t.value)}function wr(e){let t=e.refetch_;t()}function Tr(e){let t=Zn(b),n=e=>{X(t,new Se(e))},r=e=>{X(t,new Ce(e))},i=()=>{X(t,b),e(n,r)};return i(),{state:t,refetch_:i}}function Er(){let e=Zn(b);return{_0:{state:e,refetch_:()=>{X(e,b)}},_1:t=>{X(e,new Se(t))},_2:t=>{X(e,new Ce(t))}}}function Dr(e){let t=Xe.val;return Xe.val=t+1|0,{id:t,default_value:()=>e,providers:[]}}function Or(e,t){let n=t;for(;;){let t=n;if(t===void 0)return!1;{let r=t;if(r.id===e)return!r.disposed;n=r.parent;continue}}}function kr(e,t){let n=e.providers.length-1|0;for(;;){let r=n;if(r>=0){let i=gt(e.providers,r),a=i._0,o=i._1;if(Or(a,t))return o;n=r-1|0;continue}else break}}function Ar(e,t){let n=w.current_owner;w.current_owner=e;let r=t();return w.current_owner=n,r}function jr(e,t){let n=w.current_owner;w.current_owner=e;let r=t();return w.current_owner=n,r}function Mr(e){if(e.disposed)return;e.disposed=!0;let t=e.children.length-1|0;for(;;){let n=t;if(n>=0){Mr(ht(e.children,n)),t=n-1|0;continue}else break}let n=e.disposers.length-1|0;for(;;){let t=n;if(t>=0){mt(e.disposers,t)(),n=t-1|0;continue}else break}let r=e.cleanups.length-1|0;for(;;){let t=r;if(t>=0){mt(e.cleanups,t)(),r=t-1|0;continue}else break}xn(e.children),bn(e.disposers),bn(e.cleanups);let i=e.parent;if(i!==void 0){let t=i.children,n=t.length,r=0,a=0;for(;;){let i=r,o=a;if(i<n){let n=t[i];if(n.id!==e.id){t[o]=n,r=i+1|0,a=o+1|0;continue}r=i+1|0;continue}else{fn(t,o);return}}}}function Nr(e){let t={id:K(),parent:e,children:[],cleanups:[],disposers:[],disposed:!1};return e===void 0||Gt(e.children,t),t}function Pr(e){let t=Nr(w.current_owner),n=()=>{Mr(t)};return Ar(t,()=>e(n))}function Fr(e,t,n){let r=w.current_owner,i=Nr(r),a=i.id;return Kt(e.providers,{_0:a,_1:()=>t}),Ht(i.cleanups,()=>{let t=e.providers,n=t.length,r=0,i=0;for(;;){let e=r,o=i;if(e<n){let n=t[e];if(n._0!==a){t[o]=n,r=e+1|0,i=o+1|0;continue}r=e+1|0;continue}else{pn(t,o);return}}}),Ar(i,n)}function Ir(e,t,n){return w.current_owner===void 0?Pr(r=>Fr(e,t,n)):Fr(e,t,n)}function Lr(e){let t=w.current_owner,n=kr(e,t);if(n===void 0){let t=e.default_value;return t()}else return n()}function Rr(e){let t=w.current_subscriber;w.current_subscriber=void 0;let n=e();return w.current_subscriber=t,n}function zr(e){let t=w.current_subscriber;w.current_subscriber=void 0,e(),w.current_subscriber=t}function Br(e){zr(e)}function Vr(){w.batch_depth=w.batch_depth+1|0}function Hr(){for(;;)if(w.pending_effects.length>0){let e=_n(w.pending_effects,0);vn(w.pending_ids,0);let t=e.run;t();continue}else return}function Ur(){if(w.batch_depth=w.batch_depth-1|0,w.batch_depth===0){Hr();return}else return}function Wr(e){Vr();let t=e();return Ur(),t}function Gr(e){let t=w.current_cleanups;if(t.$tag===1){let n=t._0;Ht(n,e);return}else return}function Kr(e,t){return lr(()=>t(J(e)))}function qr(e,t,n){return lr(()=>n(J(e),J(t)))}function Z(e,t){let n=[],r=$t(e),i=[],a=r.length,o=0;for(;;){let e=o;if(e<a){let a=r[e];a===t?(R(n,P({buf:i,start:0,end:i.length})),Sn(i)):B(i,a),o=e+1|0;continue}else break}return R(n,P({buf:i,start:0,end:i.length})),n}function Jr(e){let t=be(v(),e());return q(()=>{kn(t,e())}),new Te(t)}function Yr(e,t,n){if(t===`className`){An(e,n);return}else if(t===`value`){h(e,`value`,n);return}else if(t===`checked`){h(e,`checked`,n===`true`);return}else if(t===`disabled`)if(n===`true`){jn(e,`disabled`,``);return}else{Mn(e,`disabled`);return}else{jn(e,t,n);return}}function Xr(e,t){jn(e,`style`,t)}function Zr(e,t,n){switch(n.$tag){case 0:{let r=n._0;if(t===`style`){Xr(e,r);return}else{Yr(e,t,r);return}}case 1:{let r=n._0;q(()=>{let n=r();if(t===`style`){Xr(e,n);return}else{Yr(e,t,n);return}});return}default:{let r=n._0;if(t===`__ref`){r(e);return}else{Oe(e,t,r);return}}}}function Qr(e){return{inner:e}}function Q(e){switch(e.$tag){case 0:return e._0.inner;case 1:return e._0;case 2:return e._0;default:return e._0}}function $r(e,t,n,r){let i=De(e,t),a=n.length,o=0;for(;;){let e=o;if(e<a){let t=n[e],r=t._0,a=t._1;Zr(i,r,a),o=e+1|0;continue}else break}let s=r.length,c=0;for(;;){let e=c;if(e<s){let t=r[e];W(i,Q(t)),c=e+1|0;continue}else break}return new we(Qr(i))}function ei(e,t,n){let r=ve(v(),e),i=t.length,a=0;for(;;){let e=a;if(e<i){let n=t[e],i=n._0,o=n._1;Zr(r,i,o),a=e+1|0;continue}else break}let o=n.length,s=0;for(;;){let e=s;if(e<o){let t=n[e];W(r,Q(t)),s=e+1|0;continue}else break}return new we(Qr(r))}function ti(e,t){W(e,Q(t))}function ni(e){kn(e,``)}function ri(e,t){ni(e),ti(e,t)}function ii(e){switch(e.length){case 0:return new x(Fn(v()));case 1:return pt(e,0);default:{let t=Fn(v()),n=e.length,r=0;for(;;){let i=r;if(i<n){let n=e[i];W(t,Q(n)),r=i+1|0;continue}else break}return new x(t)}}}function ai(e,t){let n=In(v(),`show`),r=w.current_owner,i=e(),a;if(i){let e;e=r===void 0?t():jr(r,t),a=new g(Q(e))}else a=fe;let o={val:a};if(q(()=>{let i=e(),a=o.val;if(i===!0)if(a.$tag===0){let e=U(n);if(e.$tag===1){let i=e._0,a;a=r===void 0?t():jr(r,t),On(i,Q(a),new g(n)),o.val=new g(Q(a));return}else return}else return;else if(a.$tag===1){let e=a._0,t=U(e);if(t.$tag===1){let n=t._0;G(n,e),o.val=fe;return}else return}else return}),a.$tag===1){let e=a._0;return ii([new x(e),new x(n)])}else return new x(n)}function oi(e,t){return ke(e,t)}function si(e,t){let n=e.length,r=0;for(;;){let i=r;if(i<n){let n=e[i];if(oi(n.item,t))return i;r=i+1|0;continue}else break}return-1}function ci(e,t,n){if(n.$tag===1){let r=n._0;return Ae(e,t,r)}else return je(e,t)}function li(e,t,n,r,i){let a=n.length;if(a===0){let n=t.length,r=0;for(;;){let i=r;if(i<n){let n=t[i];G(e,n.dom),r=i+1|0;continue}else break}return[]}let o=[],s=0;for(;;){let e=s;if(e<a){Ut(o,{item:_t(n,0),dom:i}),s=e+1|0;continue}else break}let c=rn(t.length,!1),l=i,u=a-1|0;for(;;){let i=u;if(i>=0){let a=_t(n,i),s=si(t,a);if(s>=0){let n=vt(t,s);an(c,s,!0),Me(n.dom,l)||ci(e,n.dom,new g(l)),l=n.dom,on(o,i,n)}else{let t=r(a,i);On(e,t,new g(l)),l=t,on(o,i,{item:a,dom:t})}u=i-1|0;continue}else break}let d=t.length,f=0;for(;;){let n=f;if(n<d){let r=t[n];yt(c,n)||G(e,r.dom),f=n+1|0;continue}else break}return o}function ui(e,t,n,r){let i=U(t);if(i.$tag===1){let a=i._0;e.val=li(a,e.val,n,r,t);return}else return}function di(e,t){return{item:e,dom:t}}function fi(e,t){let n=v(),r=In(n,`for`),i={val:[]},a={val:!0},o=w.current_owner,s=(e,n)=>Q(o===void 0?t(e,n):jr(o,()=>t(e,n))),c=Fn(n),l=e(),u=l.length,d=0;for(;;){let e=d;if(e<u){let t=l[e],n=s(t,e);Ut(i.val,di(t,n)),W(c,n),d=e+1|0;continue}else break}return W(c,r),q(()=>{let t=e();if(a.val){a.val=!1;return}ui(i,r,t,s)}),new x(c)}function pi(e){return new Te(be(v(),e))}function mi(e){return new x(e)}function hi(){return le()}function gi(e){return pi(e)}function _i(e){return Jr(e)}function vi(e,t,n){return ei(e,t,n)}function yi(e,t,n){return ei(e,t,n)}function bi(e,t){let n=Kn(e.value),r={val:Ne};return dr(e,e=>{let i=r.val;if(i.$tag===1){let e=i._0;_e(e)}r.val=new Pe(ge(()=>{ar(n,e)},t))}),n}function xi(e){switch(e.$tag){case 0:return e._0;case 1:return e._0;default:return e._0}}function Si(){return{mount:pe,use_shadow:!1,is_svg:!1}}function Ci(e){return{mount:new _(e),use_shadow:!1,is_svg:!1}}function wi(){return{mount:pe,use_shadow:!0,is_svg:!1}}function Ti(e,t){let n=v(),r=e.mount,i;if(r.$tag===1)i=r._0;else{let e=Pn(n);i=e.$tag===1?e._0:ve(n,`div`)}let a=e.is_svg?ye(n,`http://www.w3.org/2000/svg`,`g`):ve(n,`div`),o;e.use_shadow?(W(Dn(i,En(`open`,!1,`named`)),a),o=a):(W(i,a),o=a);let s=[],c=t.length,l=0;for(;;){let e=l;if(e<c){let n=t[e],r=xi(n);W(o,r),qt(s,r),l=e+1|0;continue}else break}return Gr(()=>{let e=s.length,t=0;for(;;){let n=t;if(n<e){let e=s[n],r=U(e);if(r.$tag===1){let t=r._0;G(t,e)}t=n+1|0;continue}else break}let n=U(a);if(n.$tag===1){let e=n._0;G(e,a);return}else return}),new Le(In(n,`portal`))}function Ei(e){return Ti(Si(),e)}function Di(e,t){let n=Nn(v(),e),r;if(n.$tag===1){let e=n._0;r=Ci(e)}else r=Si();return Ti(r,t)}function Oi(e){return Ti(wi(),e)}function ki(e,t){return Ti({mount:new _(e),use_shadow:!0,is_svg:!1},t)}function Ai(e){if(e!==``){let t=[],n=Z(e,38),r=n.length,i=0;for(;;){let e=i;if(e<r){let r=n[e],a=Z(r,61);if(a.length===2)z(t,{_0:E(a,0),_1:E(a,1)});else{let e;e=a.length===1?E(a,0)!==``:!1,e&&z(t,{_0:E(a,0),_1:``})}i=e+1|0;continue}else break}return t}else return[]}function ji(e){let t=$t(e),n=-1,r=t.length,i=0;for(;;){let e=i;if(e<r){if(t[e]===63){n=e;break}i=e+1|0;continue}else break}return n===-1?{_0:e,_1:[]}:{_0:P(ln(t,0,n)),_1:Ai(P(ln(t,n+1|0,void 0)))}}function Mi(e){return I(e,{str:`[`,start:0,end:1})&&F(e,{str:`]`,start:0,end:1})&&!I(e,{str:`[...`,start:0,end:4})&&!I(e,{str:`[[...`,start:0,end:5})}function Ni(e){if(e.length===0)return``;let t=T(0),n=e.length,r=0;for(;;){let i=r;if(i<n){let n=e[i];i>0&&Dt(t,`/`),Dt(t,n),r=i+1|0;continue}else break}return t.val}function Pi(e){let t=Z(e,47),n=[],r=t.length,i=0;for(;;){let e=i;if(e<r){let r=t[e];r!==``&&R(n,r),i=e+1|0;continue}else break}return n}function Fi(e,t){let n=Qt(t);return I(e,{str:n,start:0,end:n.length})}function Ii(e,t){let n=Pi(t.pattern),r=Pi(e),i=t.catch_all;if(i===void 0){if(n.length!==r.length)return S;let e=[],i=0,a=n.length,o=0;for(;;){let s=o;if(s<a){let a=n[s],c=E(r,s);if(Fi(a,58)||Mi(a))if(i<t.param_names.length)z(e,{_0:E(t.param_names,i),_1:c}),i=i+1|0;else return S;else if(a!==c)return S;o=s+1|0;continue}else break}return new Re(e)}else{let e=i,a=n.length-1|0,o=r.length;if(e.optional){if(o<a)return S}else if(o<=a)return S;let s=[],c=0,l=0;for(;;){let e=l;if(e<a){let i=E(n,e),a=E(r,e);if(Fi(i,58)||Mi(i))if(c<t.param_names.length)z(s,{_0:E(t.param_names,c),_1:a}),c=c+1|0;else return S;else if(i!==a)return S;l=e+1|0;continue}else break}let u=[],d=a;for(;;){let e=d;if(e<o){R(u,E(r,e)),d=e+1|0;continue}else break}let f=Ni(u);return z(s,{_0:e.name,_1:f}),new Re(s)}}function Li(e,t){let n=ji(e),r=n._0,i=n._1,a=t.length,o=0;for(;;){let e=o;if(e<a){let n=t[e],a=Ii(r,n);if(a.$tag===1)return{route:n,params:a._0,query:i,path:r};o=e+1|0;continue}else break}}function Ri(e){if(e===``||e===`/`)return`/`;let t=$t(e),n=[],r=!1,i=t.length,a=0;for(;;){let e=a;if(e<i){let i=t[e];i===47?(r||B(n,i),r=!0):(B(n,i),r=!1),a=e+1|0;continue}else break}let o=n.length;return o>1&&bt(n,o-1|0)===47&&gn(n),P({buf:n,start:0,end:n.length})}function zi(e){let t=[],n=Z(e,47),r=n.length,i=0;for(;;){let e=i;if(e<r){_L:{let r=n[e];if(I(r,{str:`:`,start:0,end:1})&&r.length>1){let e;_L$2:{_L$3:{let t=A(r,1,void 0),n;if(t.$tag===1)n=t._0;else{t._0;break _L$3}e=N(n);break _L$2}break _L}R(t,e)}else if(I(r,{str:`[`,start:0,end:1})&&!I(r,{str:`[...`,start:0,end:4})&&!I(r,{str:`[[...`,start:0,end:5})&&F(r,{str:`]`,start:0,end:1})&&r.length>2){let e;_L$2:{_L$3:{let t=A(r,1,r.length-1|0),n;if(t.$tag===1)n=t._0;else{t._0;break _L$3}e=N(n);break _L$2}break _L}R(t,e)}break _L}i=e+1|0;continue}else break}return t}function Bi(e){let t=Z(e,47);if(t.length===0)return;let n=E(t,t.length-1|0);if(I(n,{str:`[[...`,start:0,end:5})&&F(n,{str:`]]`,start:0,end:2})&&n.length>7){let e;_L:{_L$2:{let t=A(n,5,n.length-2|0),r;if(t.$tag===1)r=t._0;else{t._0;break _L$2}e=N(r);break _L}return}return{name:e,optional:!0}}if(I(n,{str:`[...`,start:0,end:4})&&F(n,{str:`]`,start:0,end:1})&&n.length>5){let e;_L:{_L$2:{let t=A(n,4,n.length-1|0),r;if(t.$tag===1)r=t._0;else{t._0;break _L$2}e=N(r);break _L}return}return{name:e,optional:!1}}}function Vi(e,t,n,r){let i=e.length,a=0;for(;;){let o=a;if(o<i){let i=e[o];switch(i.$tag){case 0:{let e=i,a=e._0,o=e._1,s=e._2,c=e._3,l=Ri(`${t}${a}`),u=zi(l),d=Bi(l);Jt(r,{pattern:l,param_names:u,component:o,layouts:yn(n),kind:0,title:s,meta:c,catch_all:d});break}case 2:{let e=i,n=e._0,a=e._1,o=Ri(`${t}${n}`);Jt(r,{pattern:o,param_names:zi(o),component:a,layouts:[],kind:1,title:``,meta:[],catch_all:Bi(o)});break}case 3:{let e=i,n=e._0,a=e._1,o=Ri(`${t}${n}`);Jt(r,{pattern:o,param_names:zi(o),component:a,layouts:[],kind:2,title:``,meta:[],catch_all:Bi(o)});break}default:{let e=i,a=e._0,o=e._1,s=e._2,c=Ri(`${t}${a}`),l=yn(n);R(l,s),Vi(o,c,l,r)}}a=o+1|0;continue}else return}}function Hi(e,t){let n=[];return Vi(e,t,[],n),n}function Ui(){let e=ze(),t=Be();return t===``?e:`${e}${t}`}function Wi(e){let t=Ui();or(e.current_path,t),sr(e.current_match,Li(t,e.routes))}function Gi(e,t){let n=Hi(e,t),r=Ui(),i=Li(r,n),a={routes:n,base:t,current_path:Qn(r),current_match:$n(i)};return Ue(()=>{Wi(a)}),a}function Ki(e,t){or(e.current_path,t),sr(e.current_match,Li(t,e.routes))}function qi(e,t){Ve(t),Ki(e,t)}function Ji(e,t){He(t),Ki(e,t)}function Yi(e){return Un(e.current_path)}function Xi(e){return Wn(e.current_match)}function Zi(e){return Xn(e)}function Qi(e){return J(e)}function $(e,t){ar(e,t)}function $i(e,t){cr(e,t)}function ea(e){return e.value}function ta(e,t){return dr(e,t)}function na(e,t){return Kr(e,t)}function ra(e){return lr(e)}function ia(e,t,n){return qr(e,t,n)}function aa(e){return q(e)}function oa(){Vr()}function sa(){Ur()}function ca(e){return Rr(e)}function la(e){return Wr(e)}function ua(e){Gr(e)}function da(e){return Pr(e)}function fa(){let e=w.current_owner;if(e!==void 0)return e}function pa(e,t){return Ar(e,t)}function ma(){return w.current_owner!==void 0}function ha(e){Br(e)}function ga(e,t){return fi(e,t)}function _a(e){return gi(e)}function va(e){return _i(e)}function ya(e,t){ri(e,t)}function ba(e,t){ti(e,t)}function xa(e,t){return ai(e,t)}function Sa(e,t,n){return vi(e,t,n)}function Ca(e,t,n){return yi(e,t,n)}function wa(e){return ii(e)}function Ta(e,t,n){return ei(e,t,n)}function Ea(e,t,n,r){return $r(e,t,n,r)}function Da(){return`http://www.w3.org/2000/svg`}function Oa(){return`http://www.w3.org/1998/Math/MathML`}function ka(){return hi()}function Aa(e,t){return bi(e,t)}function ja(e,t){return new C(e,t,``,[])}function Ma(e,t,n){return new C(e,t,n,[])}function Na(e,t,n,r){return new C(e,t,n,r)}function Pa(e,t){return Gi(e,t)}function Fa(e,t){let n;return n=t===void 0?``:t,Pa(e,n)}function Ia(e,t){qi(e,t)}function La(e,t){Ji(e,t)}function Ra(e){return Yi(e)}function za(e){return Xi(e)}function Ba(e){return e.base}function Va(e){return Dr(e)}function Ha(e,t,n){return Ir(e,t,n)}function Ua(e){return Lr(e)}function Wa(e){return Tr(e)}function Ga(){let e=Er();return{_0:e._0,_1:e._1,_2:e._2}}function Ka(e){return _r(e)}function qa(e){return vr(e)}function Ja(e){wr(e)}function Ya(e){return yr(e)}function Xa(e){return br(e)}function Za(e){return xr(e)}function Qa(e){let t=Sr(e);return t.$tag===1?t._0:qe()}function $a(e){let t=Cr(e);return t===void 0?``:t}function eo(e){return fr(e)}function to(e){return pr(e)}function no(e){return mr(e)}function ro(e){let t=hr(e);return t.$tag===1?t._0:qe()}function io(e){let t=gr(e);return t===void 0?``:t}function ao(e){return new Le(Q(e))}function oo(e){return mi(xi(e))}function so(e){let t=Array(e.length),n=e.length,r=0;for(;;){let i=r;if(i<n){let n=e[i];t[i]=ao(n),r=i+1|0;continue}else break}return oo(Ei(t))}function co(e,t){let n=Array(t.length),r=t.length,i=0;for(;;){let e=i;if(e<r){let r=t[e];n[e]=ao(r),i=e+1|0;continue}else break}return oo(Di(e,n))}function lo(e){let t=Array(e.length),n=e.length,r=0;for(;;){let i=r;if(i<n){let n=e[i];t[i]=ao(n),r=i+1|0;continue}else break}return oo(Oi(t))}function uo(e,t){let n=Array(t.length),r=t.length,i=0;for(;;){let e=i;if(e<r){let r=t[e];n[e]=ao(r),i=e+1|0;continue}else break}return oo(ki(e,n))}function fo(e){let t=Zi(e);return[()=>Qi(t),e=>{typeof e==`function`?$i(t,e):$(t,e)}]}function po(e){return aa(e)}function mo(e){return ra(e)}function ho(e,t,n={}){let{defer:r=!1}=n,i=Array.isArray(e),a,o,s=!0;return n=>{let c=i?e.map(e=>e()):e();if(r&&s){s=!1,a=c;return}let l=t(c,a,n??o);return a=c,o=l,s=!1,l}}function go(...e){let t={};for(let n of e)if(n)for(let e of Object.keys(n)){let r=n[e];if(e.startsWith(`on`)&&typeof r==`function`){let n=t[e];typeof n==`function`?t[e]=(...e)=>{n(...e),r(...e)}:t[e]=r}else if(e===`ref`&&typeof r==`function`){let n=t[e];typeof n==`function`?t[e]=e=>{n(e),r(e)}:t[e]=r}else if(e===`class`||e===`className`){let n=t[e];n?t[e]=`${n} ${r}`:t[e]=r}else e===`style`&&typeof r==`object`&&typeof t[e]==`object`?t[e]={...t[e],...r}:t[e]=r}return t}function _o(e,...t){let n=[],r={...e};for(let e of t){let t={};for(let n of e)n in r&&(t[n]=r[n],delete r[n]);n.push(t)}return n.push(r),n}function vo(e){let t=Wa(e),n=()=>ro(Ka(t));return Object.defineProperties(n,{loading:{get:()=>Ya(t)},error:{get:()=>$a(t)},state:{get:()=>Ya(t)?`pending`:Xa(t)?`ready`:Za(t)?`errored`:`unresolved`},latest:{get:()=>qa(t)}}),[n,{refetch:()=>Ja(t)}]}function yo(){let e=Ga(),t=e._0,n=e._1,r=e._2,i=()=>ro(Ka(t));return Object.defineProperties(i,{loading:{get:()=>Ya(t)},error:{get:()=>$a(t)}}),[i,n,r]}function bo(e,t){let[n]=e,r=Zi(n()),i=Aa(r,t);return[()=>Qi(i),e=>$(r,e)]}function xo(e){let{each:t,fallback:n,children:r}=e;return t?ga(typeof t==`function`?t:()=>t,(e,t)=>r(e,()=>t)):n??null}function So(e){let{when:t,children:n}=e,r=typeof t==`function`?t:()=>t;return xa(()=>!!r(),typeof n==`function`?()=>n(r()):()=>n)}function Co(e){let{each:t,fallback:n,children:r}=e;if(!t)return n??null;let i=typeof t==`function`?t:()=>t;return i().length===0&&n?n:ga(i,(e,t)=>r(()=>i()[t],t))}function wo(e){let{context:t,value:n,children:r}=e;return Ha(t,n,()=>typeof r==`function`?r():r)}function To(e){let{fallback:t,children:n}=e;if(!Array.isArray(n))return t??null;let r=mo(()=>{for(let e=0;e<n.length;e++){let t=n[e];if(t&&t.__isMatch&&t.when())return e}return-1}),i=[];for(let e=0;e<n.length;e++){let t=n[e];i.push(xa(()=>r()===e,()=>typeof t.children==`function`?t.children():t.children))}return t&&i.push(xa(()=>r()===-1,()=>t)),wa(i)}function Eo(e){let{when:t,children:n}=e,r=typeof t==`function`?t:()=>t;return{__isMatch:!0,when:()=>!!r(),children:typeof n==`function`?()=>n(r()):n}}function Do(e){let{mount:t,useShadow:n=!1,children:r}=e,i=typeof r==`function`?[r()]:Array.isArray(r)?r:[r];if(n){if(typeof t==`string`){let e=document.querySelector(t);if(e)return uo(e,i)}else if(t)return uo(t,i);return lo(i)}return typeof t==`string`?co(t,i):so(i)}function Oo(e){let t=new Map,n=structuredClone(e);function r(e){let r=e.join(`.`);if(!t.has(r)){let a=i(n,e);t.set(r,Zi(a))}return t.get(r)}function i(e,t){let n=e;for(let e of t){if(n==null)return;n=n[e]}return n}function a(e,t,n){if(t.length===0)return;let r=e;for(let e=0;e<t.length-1;e++){let n=t[e];if(r[n]==null){let i=t[e+1];r[n]=typeof i==`number`||/^\d+$/.test(i)?[]:{}}r=r[n]}r[t[t.length-1]]=n}function o(e){let r=e.join(`.`);oa();try{for(let[e,a]of t.entries())(e===r||e.startsWith(r+`.`))&&$(a,i(n,e.split(`.`)))}finally{sa()}}function s(e,t=[]){return typeof e!=`object`||!e?e:new Proxy(e,{get(e,n){if(typeof n==`symbol`)return e[n];let i=[...t,n];Qi(r(i));let a=e[n];return typeof a==`object`&&a?s(a,i):a},set(e,n,r){let i=[...t,n];return e[n]=r,o(i),!0}})}function c(...e){if(e.length===0)return;let r=[],s=0;for(;s<e.length-1&&typeof e[s]==`string`;)r.push(e[s]),s++;let c=e[s];if(r.length===0&&typeof c==`object`&&c){Object.assign(n,c);for(let[e,r]of t.entries())$(r,i(n,e.split(`.`)));return}let l=i(n,r),u;u=typeof c==`function`?c(l):Array.isArray(c)?c:typeof c==`object`&&c&&typeof l==`object`&&l&&!Array.isArray(l)?{...l,...c}:c,a(n,r,u),o(r)}return[s(n),c]}function ko(e){return t=>{let n=structuredClone(t);return e(n),n}}function Ao(e){return()=>e}export{Ya as $,ka as A,ba as B,ia as C,_a as Ct,da as D,Ea as E,Ua as Et,ma as F,uo as G,ha as H,Sa as I,Ha as J,co as K,Ca as L,wa as M,Qi as N,Fa as O,fa as P,Za as Q,na as R,oa as S,Da as St,Ta as T,$i as Tt,ea as U,ua as V,so as W,$a as X,ya as Y,Ka as Z,ko as _,no as _t,wo as a,Na as at,la as b,ro as bt,yo as c,za as ct,vo as d,La as dt,Xa as et,fo as f,ca as ft,ho as g,io as gt,go as h,xa as ht,Do as i,ja as it,ga as j,aa as k,po as l,Ra as lt,bo as m,$ as mt,Co as n,Ja as nt,So as o,Ma as ot,Oo as p,pa as pt,lo as q,Eo as r,Qa as rt,To as s,Ba as st,xo as t,qa as tt,mo as u,Ia as ut,Ao as v,eo as vt,Va as w,va as wt,sa as x,ta as xt,_o as y,to as yt,Oa as z};
|