@krate/runtime 0.5.0-rc.1 → 0.5.0-rc.11
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/action-context.js +1 -1
- package/dist/actions.d.ts +7 -0
- package/dist/actions.js +34 -10
- package/dist/after.d.ts +28 -0
- package/dist/after.js +48 -0
- package/dist/assets-static.d.ts +10 -1
- package/dist/assets-static.js +10 -2
- package/dist/base-path.d.ts +7 -0
- package/dist/base-path.js +20 -0
- package/dist/boundary.js +1 -1
- package/dist/builtin-tags.d.ts +12 -0
- package/dist/builtin-tags.js +42 -0
- package/dist/cache-adapter.js +1 -1
- package/dist/cache-scope.d.ts +8 -0
- package/dist/cache-scope.js +14 -1
- package/dist/cloudflare-workers.d.ts +2 -0
- package/dist/cloudflare-workers.js +27 -0
- package/dist/context.d.ts +5 -0
- package/dist/context.js +28 -17
- package/dist/dev-overlay.d.ts +54 -3
- package/dist/dev-overlay.js +470 -77
- package/dist/dom.js +18 -3
- package/dist/effects.js +2 -2
- package/dist/flight-props.d.ts +7 -0
- package/dist/flight-props.js +105 -0
- package/dist/handler-html.js +4 -4
- package/dist/handler-routing.d.ts +2 -23
- package/dist/handler-routing.js +9 -190
- package/dist/handler-segments.d.ts +6 -0
- package/dist/handler-segments.js +18 -4
- package/dist/head-tags.d.ts +9 -0
- package/dist/head-tags.js +93 -6
- package/dist/highlight-bind.js +1 -1
- package/dist/highlight.d.ts +3 -2
- package/dist/highlight.js +17 -12
- package/dist/hints.d.ts +25 -2
- package/dist/hints.js +147 -74
- package/dist/index.d.ts +2 -0
- package/dist/index.js +3 -0
- package/dist/island-swap.d.ts +47 -0
- package/dist/island-swap.js +635 -0
- package/dist/jsx-dev-runtime.d.ts +1 -1
- package/dist/jsx-types.d.ts +99 -3
- package/dist/krate-core.js +1 -1
- package/dist/krate-dev.js +385 -66
- package/dist/krate-f-actions.js +1 -1
- package/dist/krate-f-classes.js +1 -1
- package/dist/krate-f-highlight.js +1 -1
- package/dist/krate-f-list.js +1 -1
- package/dist/krate-f-navigation.js +1 -1
- package/dist/krate-f-router-lite.js +1 -1
- package/dist/krate-f-router.js +1 -1
- package/dist/krate-features.json +454 -0
- package/dist/krate-hydrate-lite.js +5 -5
- package/dist/krate-hydrate.js +5 -5
- package/dist/krate-island-swap.js +1 -0
- package/dist/krate-runtime.js +5 -5
- package/dist/list.d.ts +14 -4
- package/dist/list.js +4 -5
- package/dist/metadata.js +5 -2
- package/dist/navigation-react.d.ts +13 -0
- package/dist/navigation-react.js +86 -0
- package/dist/navigation.d.ts +19 -0
- package/dist/navigation.js +35 -0
- package/dist/node-server.js +3 -3
- package/dist/og.js +1 -1
- package/dist/platform.d.ts +52 -0
- package/dist/platform.js +57 -0
- package/dist/react-compat.d.ts +39 -0
- package/dist/react-compat.js +359 -0
- package/dist/react-server.d.ts +63 -0
- package/dist/react-server.js +125 -0
- package/dist/region-wire.d.ts +10 -0
- package/dist/region-wire.js +154 -0
- package/dist/request-context.js +1 -1
- package/dist/request-extras.d.ts +4 -0
- package/dist/request-extras.js +51 -0
- package/dist/resp.js +1 -1
- package/dist/route-source.d.ts +39 -0
- package/dist/route-source.js +532 -0
- package/dist/router-lite.js +3 -9
- package/dist/router.d.ts +1 -1
- package/dist/router.js +628 -98
- package/dist/server-handler.d.ts +69 -1
- package/dist/server-handler.js +515 -96
- package/dist/server-renderer.js +16 -7
- package/dist/server.d.ts +73 -16
- package/dist/server.js +619 -102
- package/dist/sha256.js +9 -9
- package/dist/signal.js +0 -6
- package/dist/site-config.d.ts +15 -0
- package/dist/site-config.js +28 -0
- package/dist/slot.d.ts +12 -0
- package/dist/slot.js +23 -0
- package/dist/ssr-core.d.ts +2 -0
- package/dist/ssr-core.js +12 -4
- package/dist/testing.d.ts +62 -0
- package/dist/testing.js +90 -0
- package/dist/use-id.js +1 -1
- package/package.json +28 -3
- package/dist/action-context.test.d.ts +0 -1
- package/dist/action-context.test.js +0 -72
- package/dist/actions.test.d.ts +0 -1
- package/dist/actions.test.js +0 -477
- package/dist/cache-adapter.test.d.ts +0 -1
- package/dist/cache-adapter.test.js +0 -244
- package/dist/cache.test.d.ts +0 -1
- package/dist/cache.test.js +0 -233
- package/dist/class-component.test.d.ts +0 -1
- package/dist/class-component.test.js +0 -462
- package/dist/class-helpers.test.d.ts +0 -1
- package/dist/class-helpers.test.js +0 -169
- package/dist/context.test.d.ts +0 -1
- package/dist/context.test.js +0 -57
- package/dist/derived.test.d.ts +0 -1
- package/dist/derived.test.js +0 -140
- package/dist/dev-overlay.test.d.ts +0 -1
- package/dist/dev-overlay.test.js +0 -165
- package/dist/discrete.test.d.ts +0 -1
- package/dist/discrete.test.js +0 -100
- package/dist/dom.test.d.ts +0 -1
- package/dist/dom.test.js +0 -39
- package/dist/effect-errors.test.d.ts +0 -1
- package/dist/effect-errors.test.js +0 -199
- package/dist/effects.test.d.ts +0 -1
- package/dist/effects.test.js +0 -485
- package/dist/events.test.d.ts +0 -1
- package/dist/events.test.js +0 -447
- package/dist/handler-html.test.d.ts +0 -1
- package/dist/handler-html.test.js +0 -256
- package/dist/handler-routing.test.d.ts +0 -1
- package/dist/handler-routing.test.js +0 -99
- package/dist/handler-segments.test.d.ts +0 -1
- package/dist/handler-segments.test.js +0 -217
- package/dist/head-tags.test.d.ts +0 -1
- package/dist/head-tags.test.js +0 -131
- package/dist/highlight-bind.test.d.ts +0 -1
- package/dist/highlight-bind.test.js +0 -124
- package/dist/highlight.test.d.ts +0 -1
- package/dist/highlight.test.js +0 -56
- package/dist/lanes.test.d.ts +0 -1
- package/dist/lanes.test.js +0 -59
- package/dist/list.test.d.ts +0 -1
- package/dist/list.test.js +0 -435
- package/dist/metadata.test.d.ts +0 -1
- package/dist/metadata.test.js +0 -167
- package/dist/navigation.test.d.ts +0 -1
- package/dist/navigation.test.js +0 -130
- package/dist/node-server.test.d.ts +0 -1
- package/dist/node-server.test.js +0 -492
- package/dist/optimistic-lanes.test.d.ts +0 -1
- package/dist/optimistic-lanes.test.js +0 -45
- package/dist/patterns.test.d.ts +0 -1
- package/dist/patterns.test.js +0 -125
- package/dist/portal.test.d.ts +0 -1
- package/dist/portal.test.js +0 -99
- package/dist/react-effects.test.d.ts +0 -1
- package/dist/react-effects.test.js +0 -133
- package/dist/react-suspense.test.d.ts +0 -1
- package/dist/react-suspense.test.js +0 -194
- package/dist/react.test.d.ts +0 -1
- package/dist/react.test.js +0 -60
- package/dist/react19.test.d.ts +0 -1
- package/dist/react19.test.js +0 -176
- package/dist/reactivity-core.test.d.ts +0 -1
- package/dist/reactivity-core.test.js +0 -152
- package/dist/reconcile.test.d.ts +0 -1
- package/dist/reconcile.test.js +0 -110
- package/dist/refs.test.d.ts +0 -1
- package/dist/refs.test.js +0 -257
- package/dist/router-layout.test.d.ts +0 -1
- package/dist/router-layout.test.js +0 -249
- package/dist/router-nav.test.d.ts +0 -1
- package/dist/router-nav.test.js +0 -559
- package/dist/router-slots.test.d.ts +0 -1
- package/dist/router-slots.test.js +0 -144
- package/dist/router-speculation.test.d.ts +0 -1
- package/dist/router-speculation.test.js +0 -25
- package/dist/router-styles.test.d.ts +0 -1
- package/dist/router-styles.test.js +0 -98
- package/dist/router.test.d.ts +0 -1
- package/dist/router.test.js +0 -36
- package/dist/server-async.test.d.ts +0 -1
- package/dist/server-async.test.js +0 -216
- package/dist/server-handler.test.d.ts +0 -1
- package/dist/server-handler.test.js +0 -535
- package/dist/server-highlight.test.d.ts +0 -1
- package/dist/server-highlight.test.js +0 -32
- package/dist/server-renderer.test.d.ts +0 -1
- package/dist/server-renderer.test.js +0 -266
- package/dist/server.test.d.ts +0 -1
- package/dist/server.test.js +0 -88
- package/dist/sha256.test.d.ts +0 -1
- package/dist/sha256.test.js +0 -13
- package/dist/signal-lanes.test.d.ts +0 -1
- package/dist/signal-lanes.test.js +0 -32
- package/dist/signal.test.d.ts +0 -1
- package/dist/signal.test.js +0 -68
- package/dist/slots.test.d.ts +0 -1
- package/dist/slots.test.js +0 -187
- package/dist/snapshots.test.d.ts +0 -1
- package/dist/snapshots.test.js +0 -208
- package/dist/ssr-core-behavior.test.d.ts +0 -1
- package/dist/ssr-core-behavior.test.js +0 -620
- package/dist/ssr-core.test.d.ts +0 -1
- package/dist/ssr-core.test.js +0 -324
- package/dist/static-memory.test.d.ts +0 -1
- package/dist/static-memory.test.js +0 -26
- package/dist/storage.test.d.ts +0 -1
- package/dist/storage.test.js +0 -46
- package/dist/suspense-actions.test.d.ts +0 -1
- package/dist/suspense-actions.test.js +0 -72
- package/dist/suspense.test.d.ts +0 -1
- package/dist/suspense.test.js +0 -556
package/dist/jsx-types.d.ts
CHANGED
|
@@ -679,7 +679,7 @@ declare global {
|
|
|
679
679
|
width?: number | string;
|
|
680
680
|
disablePictureInPicture?: boolean;
|
|
681
681
|
}
|
|
682
|
-
interface SVGAttributes extends AriaAttributes,
|
|
682
|
+
interface SVGAttributes extends AriaAttributes, ClipboardEventHandler, CompositionEventHandler, FocusEventHandler, FormEventHandler, KeyboardEventHandler, MouseEventHandler, PointerEventHandler, TouchEventHandler, WheelEventHandler, AnimationEventHandler, TransitionEventHandler, UIEventHandler, MediaEventHandler, DOMAttributes {
|
|
683
683
|
children?: unknown[] | unknown;
|
|
684
684
|
key?: string | number;
|
|
685
685
|
ref?: ((el: globalThis.Element) => void) | {
|
|
@@ -930,6 +930,40 @@ declare global {
|
|
|
930
930
|
yChannelSelector?: string;
|
|
931
931
|
z?: number | string;
|
|
932
932
|
zoomAndPan?: string;
|
|
933
|
+
xmlns?: string;
|
|
934
|
+
xmlnsXlink?: string;
|
|
935
|
+
'xmlns:xlink'?: string;
|
|
936
|
+
xmlSpace?: 'default' | 'preserve';
|
|
937
|
+
'xml:space'?: 'default' | 'preserve';
|
|
938
|
+
xmlLang?: string;
|
|
939
|
+
'xml:lang'?: string;
|
|
940
|
+
xmlBase?: string;
|
|
941
|
+
'xml:base'?: string;
|
|
942
|
+
xlinkHref?: string;
|
|
943
|
+
'xlink:href'?: string;
|
|
944
|
+
xlinkTitle?: string;
|
|
945
|
+
'xlink:title'?: string;
|
|
946
|
+
xlinkActuate?: string;
|
|
947
|
+
'xlink:actuate'?: string;
|
|
948
|
+
xlinkArcrole?: string;
|
|
949
|
+
'xlink:arcrole'?: string;
|
|
950
|
+
xlinkRole?: string;
|
|
951
|
+
'xlink:role'?: string;
|
|
952
|
+
xlinkShow?: string;
|
|
953
|
+
'xlink:show'?: string;
|
|
954
|
+
xlinkType?: string;
|
|
955
|
+
'xlink:type'?: string;
|
|
956
|
+
type?: string;
|
|
957
|
+
target?: string;
|
|
958
|
+
crossOrigin?: 'anonymous' | 'use-credentials' | '';
|
|
959
|
+
mixBlendMode?: string;
|
|
960
|
+
isolation?: string;
|
|
961
|
+
transformOrigin?: string;
|
|
962
|
+
transformBox?: string;
|
|
963
|
+
color?: string;
|
|
964
|
+
dangerouslySetInnerHTML?: {
|
|
965
|
+
__html: string;
|
|
966
|
+
};
|
|
933
967
|
}
|
|
934
968
|
interface IntrinsicElements {
|
|
935
969
|
a: AnchorHTMLAttributes;
|
|
@@ -1051,6 +1085,57 @@ declare global {
|
|
|
1051
1085
|
circle: SVGAttributes;
|
|
1052
1086
|
rect: SVGAttributes;
|
|
1053
1087
|
g: SVGAttributes;
|
|
1088
|
+
animate: SVGAttributes;
|
|
1089
|
+
animateMotion: SVGAttributes;
|
|
1090
|
+
animateTransform: SVGAttributes;
|
|
1091
|
+
clipPath: SVGAttributes;
|
|
1092
|
+
defs: SVGAttributes;
|
|
1093
|
+
desc: SVGAttributes;
|
|
1094
|
+
ellipse: SVGAttributes;
|
|
1095
|
+
feBlend: SVGAttributes;
|
|
1096
|
+
feColorMatrix: SVGAttributes;
|
|
1097
|
+
feComponentTransfer: SVGAttributes;
|
|
1098
|
+
feComposite: SVGAttributes;
|
|
1099
|
+
feConvolveMatrix: SVGAttributes;
|
|
1100
|
+
feDiffuseLighting: SVGAttributes;
|
|
1101
|
+
feDisplacementMap: SVGAttributes;
|
|
1102
|
+
feDistantLight: SVGAttributes;
|
|
1103
|
+
feDropShadow: SVGAttributes;
|
|
1104
|
+
feFlood: SVGAttributes;
|
|
1105
|
+
feFuncA: SVGAttributes;
|
|
1106
|
+
feFuncB: SVGAttributes;
|
|
1107
|
+
feFuncG: SVGAttributes;
|
|
1108
|
+
feFuncR: SVGAttributes;
|
|
1109
|
+
feGaussianBlur: SVGAttributes;
|
|
1110
|
+
feImage: SVGAttributes;
|
|
1111
|
+
feMerge: SVGAttributes;
|
|
1112
|
+
feMergeNode: SVGAttributes;
|
|
1113
|
+
feMorphology: SVGAttributes;
|
|
1114
|
+
feOffset: SVGAttributes;
|
|
1115
|
+
fePointLight: SVGAttributes;
|
|
1116
|
+
feSpecularLighting: SVGAttributes;
|
|
1117
|
+
feSpotLight: SVGAttributes;
|
|
1118
|
+
feTile: SVGAttributes;
|
|
1119
|
+
feTurbulence: SVGAttributes;
|
|
1120
|
+
filter: SVGAttributes;
|
|
1121
|
+
foreignObject: SVGAttributes;
|
|
1122
|
+
image: SVGAttributes;
|
|
1123
|
+
linearGradient: SVGAttributes;
|
|
1124
|
+
marker: SVGAttributes;
|
|
1125
|
+
mask: SVGAttributes;
|
|
1126
|
+
metadata: SVGAttributes;
|
|
1127
|
+
mpath: SVGAttributes;
|
|
1128
|
+
pattern: SVGAttributes;
|
|
1129
|
+
radialGradient: SVGAttributes;
|
|
1130
|
+
set: SVGAttributes;
|
|
1131
|
+
stop: SVGAttributes;
|
|
1132
|
+
switch: SVGAttributes;
|
|
1133
|
+
symbol: SVGAttributes;
|
|
1134
|
+
text: SVGAttributes;
|
|
1135
|
+
textPath: SVGAttributes;
|
|
1136
|
+
tspan: SVGAttributes;
|
|
1137
|
+
use: SVGAttributes;
|
|
1138
|
+
view: SVGAttributes;
|
|
1054
1139
|
}
|
|
1055
1140
|
interface ImageProps {
|
|
1056
1141
|
src: string;
|
|
@@ -1067,9 +1152,20 @@ declare global {
|
|
|
1067
1152
|
href: KrateHref;
|
|
1068
1153
|
className?: string;
|
|
1069
1154
|
external?: boolean;
|
|
1155
|
+
/**
|
|
1156
|
+
* `false` links to a URL served outside this site on the same domain
|
|
1157
|
+
* (for example the marketing site at `/` while Krate runs under a base
|
|
1158
|
+
* path): the href is used as written and the link is a normal navigation.
|
|
1159
|
+
*/
|
|
1160
|
+
basePath?: false;
|
|
1070
1161
|
children?: any;
|
|
1071
|
-
/**
|
|
1072
|
-
|
|
1162
|
+
/**
|
|
1163
|
+
* Prefetch the target page. Default (`true`): on hover, focus or touch.
|
|
1164
|
+
* `"viewport"` also prefetches once the link scrolls near the viewport
|
|
1165
|
+
* (at most 5 per page). `false` never prefetches. Nothing is prefetched
|
|
1166
|
+
* when Save-Data is on or the connection is 2g.
|
|
1167
|
+
*/
|
|
1168
|
+
prefetch?: boolean | "viewport";
|
|
1073
1169
|
/** Replace the current history entry instead of pushing a new one. */
|
|
1074
1170
|
replace?: boolean;
|
|
1075
1171
|
/** Scroll to the top on navigation (default: true). */
|
package/dist/krate-core.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var __krate_exports=(()=>{var un=Object.defineProperty;var Do=Object.getOwnPropertyDescriptor;var Io=Object.getOwnPropertyNames;var jo=Object.prototype.hasOwnProperty;var qo=(e,n)=>{for(var t in n)un(e,t,{get:n[t],enumerable:!0})},zo=(e,n,t,o)=>{if(n&&typeof n=="object"||typeof n=="function")for(let r of Io(n))!jo.call(e,r)&&r!==t&&un(e,r,{get:()=>n[r],enumerable:!(o=Do(n,r))||o.enumerable});return e};var Vo=e=>zo(un({},"__esModule",{value:!0}),e);var Ji={};qo(Ji,{BLOCKED_URL:()=>fo,KRATE_CONTEXT:()=>pt,__krate_useId:()=>Bi,adoptValue:()=>rn,afterFlush:()=>sr,appendChild:()=>xe,clearBetween:()=>ut,clearNodes:()=>yo,clearPersisted:()=>Xo,createCSSChoice:()=>fr,createCSSFlags:()=>pr,createCSSGroup:()=>gr,createCSSRange:()=>hr,createCSSStack:()=>mr,createCSSToggle:()=>dr,createCallbackDeps:()=>Br,createContext:()=>ln,createEffect:()=>y,createEffectDeps:()=>Dr,createEffectEvent:()=>Vr,createMemo:()=>Cr,createMemoDeps:()=>Bt,createReducer:()=>Ar,createResource:()=>Ii,createRoot:()=>xr,createScope:()=>Uo,createScopeFlags:()=>Wo,createSignal:()=>v,disposeAll:()=>xt,disposeNode:()=>se,flushPassive:()=>te,forwardRef:()=>Nr,h:()=>Fi,hydrate:()=>Di,insert:()=>xi,insertAt:()=>ie,isDerivedGetter:()=>Ke,isSignalGetter:()=>wr,krateApplyStyle:()=>wo,krateAttachRef:()=>Se,krateBindRef:()=>vi,krateCommitSnapshot:()=>yt,krateCommitting:()=>Q,krateCondActivity:()=>Kr,krateCondDetached:()=>mi,krateCondReset:()=>ki,krateCondSwap:()=>yi,krateContextRows:()=>Go,krateControl:()=>Je,krateCurrentScope:()=>F,krateCustomProp:()=>So,krateDepsOf:()=>Ur,krateDerived:()=>kr,krateDisposeExcept:()=>ar,krateDisposeOwner:()=>me,krateDisposeScopes:()=>lr,krateEnterScope:()=>Zo,krateEpoch:()=>He,krateEventName:()=>Zn,krateEventRoot:()=>Xe,krateFlushSync:()=>De,krateForgetOwner:()=>Mr,krateGetOwner:()=>J,krateHintPreconnect:()=>Gi,krateHintPrefetchDNS:()=>$i,krateHintPreinit:()=>Xi,krateHintPreinitModule:()=>Qi,krateHintPreload:()=>Ui,krateHintPreloadModule:()=>Wi,krateHook:()=>yr,krateHookState:()=>Jo,krateIsDiscrete:()=>ir,krateKeepScopes:()=>nr,krateLeaveScope:()=>er,krateMount:()=>Lr,krateMountFields:()=>Qe,krateMountPortals:()=>pi,krateMuteEvents:()=>oi,krateOn:()=>ve,krateOnAfterFlush:()=>Nn,krateOnBeforeFlush:()=>Rn,krateOnDispose:()=>_n,krateOnHookError:()=>Ir,krateOnLayoutCommit:()=>qr,krateOnSettle:()=>vr,krateOnUnmount:()=>Or,krateOwner:()=>Hr,krateOwnerId:()=>Pr,krateParam:()=>ji,kratePendingFlush:()=>On,kratePortalFind:()=>gi,kratePortalMount:()=>nt,kratePortalReset:()=>hi,kratePortalScan:()=>uo,kratePortalTarget:()=>li,kratePortalUnmount:()=>en,kratePortalsEnter:()=>rt,kratePortalsIn:()=>ot,kratePortalsLeave:()=>it,kratePruneSnapshots:()=>xn,krateReadAt:()=>Me,krateRefsEnter:()=>Ue,krateRefsFlush:()=>Wn,krateRefsHold:()=>Gt,krateRefsLeave:()=>Be,krateRenderPhase:()=>tr,krateRequestFlush:()=>Tr,krateRunEvent:()=>Le,krateSanitizeAttr:()=>st,krateScopeOfId:()=>Mn,krateSetControl:()=>V,krateSetOwner:()=>b,krateSetRef:()=>Wt,krateSlotReplaced:()=>Fr,krateSpread:()=>Ai,krateSynthetic:()=>$e,krateTagOwner:()=>he,krateTakeSyncLane:()=>Cn,krateTrackNode:()=>nn,krateTransitionWrites:()=>rr,krateUnmount:()=>z,krateWithIdScope:()=>Vi,krateWithOwner:()=>Vn,mount:()=>Ki,onCleanup:()=>I,onMount:()=>br,readDurableState:()=>gn,readPersisted:()=>hn,removeRest:()=>Oo,resetContexts:()=>Ce,resolvePersist:()=>pn,runAfterFlush:()=>ke,sameValue:()=>ur,setOwnerHooks:()=>Yo,subscribePersist:()=>kn,trackEffect:()=>A,untrack:()=>E,useRef:()=>Rr,withDOM:()=>bo,withVNodes:()=>xo,writePersisted:()=>mn});var Bo=0,pt=Symbol.for("krate.context"),ae=class{constructor(n){this.get=n}};function an(e){if(e instanceof Node)return e;let n=document.createDocumentFragment();if(Array.isArray(e))for(let t of e)n.appendChild(an(t));else e!=null&&e!==!1&&e!==!0&&n.appendChild(document.createTextNode(String(e)));return n}var O=new Map;function Ce(){for(let[e,n]of O)if(n.length>0){let t=n[0];O.set(e,[t])}}function Uo(){return ln({})}function Wo(){return ln({})}function ln(e){let n=Bo++;O.set(n,[e]);let t=()=>{let c=O.get(n);if(c&&c.length>0){let u=c[c.length-1];return u instanceof ae?u.get():u}return e},o=()=>{let c=O.get(n),u=c&&c.length>0?c[c.length-1]:e;return u instanceof ae?()=>u.get():()=>u},r=c=>{let u=O.get(n)||[e];u.push(c.value),O.set(n,u);let a=document.createElement("div");a.style.display="contents";let f=c.children;if(f)for(let p of Array.isArray(f)?f:[f])p instanceof Node?a.appendChild(p):p!=null&&a.appendChild(document.createTextNode(String(p)));return u.pop(),u.length===0&&u.push(e),a},i=c=>{let u=c.children;return Array.isArray(u)&&(u=u.find(a=>typeof a=="function")),an(typeof u=="function"?u(t()):null)},s=(c=>r(c));return s.$$typeof=pt,s.id=n,s.defaultValue=e,s.Provider=r,s.Consumer=i,s.useContext=t,s.use=t,s.useContextLive=o,s}function Go(e,n){return(...t)=>{let o=[];for(let[r,i]of e){let s=O.get(r.id);s&&(s.push(new ae(i)),o.push(s))}try{return n(...t)}finally{for(let r of o)r.pop()}}}function $o(){let e=new Map;return{getItem:n=>e.has(n)?e.get(n):null,setItem:(n,t)=>{e.set(n,t)},removeItem:n=>{e.delete(n)}}}var fn=$o();function ht(){return typeof window<"u"}function dn(e){if(e&&typeof e=="object")return e;if(!ht())return fn;try{return e==="session"?window.sessionStorage:e==="memory"?fn:window.localStorage}catch{return fn}}function pn(e){let n=typeof e=="string"?{key:e}:e;if(!n.key)throw new Error("[krate] createSignal persist requires a key");let t=n.store??"local";return{key:n.key,store:t,serialize:n.serialize??(o=>JSON.stringify(o)),deserialize:n.deserialize??(o=>JSON.parse(o)),sync:n.sync??t==="local"}}function gn(e,n){let o=globalThis.__KRATE_STATE__;if(!o||!Object.prototype.hasOwnProperty.call(o,e))return{found:!1};let r=o[e];if(typeof r=="string")try{return{found:!0,value:n(r)}}catch{return{found:!0,value:r}}return{found:!0,value:r}}function hn(e){let n=dn(e.store),t;try{t=n.getItem(e.key)}catch{return{found:!1}}if(t==null)return{found:!1};try{return{found:!0,value:e.deserialize(t)}}catch{return{found:!1}}}function mn(e,n){let t=dn(e.store);try{t.setItem(e.key,e.serialize(n))}catch{}}function Xo(e){let n=dn(e.store);try{n.removeItem(e.key)}catch{}}var Ae=new Map,gt=!1;function Qo(){gt||!ht()||(gt=!0,window.addEventListener("storage",e=>{if(e.key===null)return;let n=Ae.get(e.key);if(n)for(let t of n)t(e.newValue)}))}function kn(e,n){if(!e.sync)return()=>{};let t=Ae.get(e.key)??new Set;return t.add(n),Ae.set(e.key,t),Qo(),()=>{t.delete(n),t.size===0&&Ae.delete(e.key)}}var Jo={react:!0},d=[],mt=[],wn=!1,m=null;function Yo(e){m=e}var _e=[],x=new Set,le=[],U=null,kt=new Set,L=new Map;function Zo(e){return kt.has(e)?!1:(U=e,h=null,!0)}function er(){U=null,h=null}function F(){let e=d[d.length-1];return e?e.scope:U!==null?U:h!==null&&L.has(h)?L.get(h)??null:null}function nr(e){kt=new Set(e)}function he(e,n){e!==null&&!L.has(e)&&L.set(e,n)}var w=[],fe=!1;function W(e){let n=F(),t={fn:e,cleanups:[],disposed:!1,sources:new Set,running:!1,rerun:!1,queued:!1,owner:h,boundaryOwner:m?m.current():null,scope:n};if(h!==null){he(h,n);let o=K.get(h);o||K.set(h,o=new Set),o.add(t)}return t}var K=new Map,G=new Map;function me(e){let n=K.get(e);if(K.delete(e),n)for(let o of n)Hn(o),x.delete(o);let t=G.get(e);if(G.delete(e),L.delete(e),t)for(let o of t)try{o()}catch{}}var D=0,S=null,Re=0,$=new Set,de=new Set;function tr(e){D++;let n=S;S=null;try{return e()}finally{S=n,D--}}function yt(){Re++;for(let e of $)e.commit(Re);return $.clear(),Re}function He(){return Re}function Me(e,n){let t=S;S=e;try{return n()}finally{S=t}}function xn(e){for(let n of de)n.prune(e)||de.delete(n)}var bn=new Set("auxclick beforeinput blur cancel change click close compositionend compositionstart compositionupdate contextmenu copy cut dblclick dragend dragstart drop focusin focusout input invalid keydown keypress keyup mousedown mouseup paste pause play pointercancel pointerdown pointerup ratechange reset resize seeked select submit touchcancel touchend touchstart volumechange focus".split(" ")),En=0,pe=!1,Ne=0;function or(){if(Ne>0)return!0;let e=typeof window<"u"?window.event:void 0;return!!e&&bn.has(e.type)}var Oe=0;function rr(e){Oe++;try{return e()}finally{Oe--}}function ir(e){return bn.has(e)}function Le(e,n,t){if(!bn.has(e)){t();return}Ne++;try{t()}finally{Ne--,n&&Ne===0&&Sn===0&&En===0&&(w.length>0||pe)&&De()}}function Q(e){En+=e?1:-1}function Cn(){let e=pe;return pe=!1,e}function wt(){return d[d.length-1]||null}var h=null;function J(){return h}function b(e){let n=h;return h=e,n}var St=[],vt=[],An=[];function Rn(e){St.push(e)}function Nn(e){vt.push(e)}function _n(e){An.push(e)}function On(){return w.length>0}function E(e){d.push(null);try{return e()}finally{d.pop()}}function sr(e){_e.push(e),Fn()}function cr(){if(_e.length===0)return;let e=_e.splice(0);for(let n of e)n()}function ur(e,n){return Object.is(e,n)}function Pn(e){let n=!1,t;for(let o of e.splice(0))try{o()}catch(r){n?typeof console<"u"&&console.error(r):(n=!0,t=r)}if(n)throw t}function ge(e){if(!e.disposed){e.disposed=!0,e.owner!==null&&K.get(e.owner)?.delete(e);for(let n of e.sources)n.delete(e);e.sources.clear(),Pn(e.cleanups)}}function Hn(e){try{ge(e)}catch(n){typeof console<"u"&&console.error(n)}}function ar(e){if(e.length===0){xt();return}let n=new Set(e);Tt(t=>!(t!=null&&n.has(t)),!0)}function lr(e){if(e.length===0)return;let n=new Set(e);Tt(t=>t!=null&&n.has(t),!1)}function Mn(e){if(e.charCodeAt(0)!==95)return null;let n=e.indexOf("_",1);return n>0?e.slice(0,n+1):null}function Tt(e,n){for(let s of An)try{s(e)}catch(c){typeof console<"u"&&console.error(c)}for(let s of Array.from(x))e(s.scope)&&(Hn(s),x.delete(s));let t=[];for(let s of le.splice(0)){if(!e(s.scope)){t.push(s);continue}try{s.fn()}catch{}}le.push(...t);let o=new Set([...G.keys(),...K.keys()]);for(let s of o)e(L.get(s)??null)&&me(s);if(!n)return;let r=globalThis,i=r.__krate_island_cleanups;if(Array.isArray(i)){r.__krate_island_cleanups=[];for(let s of i)try{s()}catch{}}U=null,Ce()}function xt(){U=null;for(let t of An)try{t(null)}catch(o){typeof console<"u"&&console.error(o)}for(let t of x)Hn(t);x.clear();for(let t of le)try{t.fn()}catch{}le.length=0;for(let t of Array.from(G.keys()))me(t);K.clear(),L.clear(),$.clear(),de.clear(),S=null;let e=globalThis,n=e.__krate_island_cleanups;if(Array.isArray(n)){e.__krate_island_cleanups=[];for(let t of n)try{t()}catch{}}w.length=0,_e.length=0,fe=!1,P=0,X++,pe=!1,Ce()}function fr(e,n){return Fe(v(e))}function dr(e,n){return Fe(v(e))}function pr(e,n){let t={};for(let i of e){let[s]=v(!1);t[i]=s}let r=[t,(i,s)=>{}];return r.trigger=i=>({"data-krate-scope":"trigger",value:i}),r.panel=i=>({"data-krate-scope":"panel",value:i}),r.close=()=>({"data-krate-scope":"close"}),r}function gr(e,n){return Fe(v(e))}function hr(e,n){return Fe(v(e))}function Fe(e){let n=e;return n.trigger=t=>({"data-krate-scope":"trigger",value:t}),n.panel=t=>({"data-krate-scope":"panel",value:t}),n.close=()=>({"data-krate-scope":"close"}),n.current=()=>e[0](),n}function mr(e,n){let t=()=>e[0];return[{top:t,peek:t},{push:o=>{},pop:()=>{},clear:()=>{}}]}function v(e,n){let t=e,o=null;if(n?.persist){o=pn(n.persist);let l=gn(o.key,o.deserialize);if(l.found)t=l.value;else{let g=hn(o);g.found&&(t=g.value)}}let r=new Set,i=!!n?.react,s=t,c=null,u=i?{commit(l){Object.is(s,t)||(c||(c=[[0,s]]),c.push([l,t]),s=t,de.add(u))},prune(l){if(!c)return!1;for(;c.length>1&&c[1][0]<=l;)c.shift();return c.length===1?(c=null,!1):!0}}:null,a=l=>{if(!c)return s;for(let g=c.length-1;g>=0;g--)if(c[g][0]<=l)return c[g][1];return c[0][1]},f=()=>{let l=d[d.length-1];if(l&&!l.disposed&&(r.add(l),l.sources.add(r)),i){if(S!==null)return a(S);if(D===0)return s}return t},p=(l=!1)=>bt(r,l),R=l=>{let g=typeof l=="function"?l(t):l;Object.is(g,t)||(t=g,o&&mn(o,t),u&&$.add(u),p(i))};if(o&&o.sync){let l=o,g=kn(l,ue=>{if(ue!==null)try{let be=l.deserialize(ue);Object.is(be,t)||(t=be,p())}catch{}});I(g)}return Ln.add(f),[f,R]}function bt(e,n=!1){let t=Array.from(e);for(let o of t){if(o.disposed){e.delete(o);continue}if(o.mark){o.mark(n);continue}if(o.running){o.rerun=!0;continue}o.queued||(o.queued=!0,w.push(o))}Fn(n)}var Et=new WeakSet;function kr(e,n){let t,o=!0,r=new Set,i=W(()=>{});i.mark=u=>{o||(o=!0,bt(r,u))},x.add(i);let s=()=>{let u=d[d.length-1];if(u&&!u.disposed&&(r.add(u),u.sources.add(r)),(D===0||S!==null)&&($.size>0||S!==null&&de.size>0))return E(e);if(o&&!i.disposed){for(let a of i.sources)a.delete(i);i.sources.clear(),o=!1,d.push(i);try{n&&n(),t=e()}catch(a){throw o=!0,a}finally{d.pop()}}else if(i.disposed)return E(e);return t},c=d[d.length-1];return c&&c.cleanups.push(()=>{ge(i),x.delete(i)}),Et.add(s),Ln.add(s),s}function Ke(e){return typeof e=="function"&&Et.has(e)}function yr(e){return Ke(e)?e:()=>e}var Ln=new WeakSet;function wr(e){return typeof e=="function"&&Ln.has(e)}var P=0,X=0;function Fn(e=!1){let n=Oe===0&&or();n&&(pe=!0);let o=!(e||Oe>0)||n||En>0||D>0||typeof setTimeout!="function";if(P===1||!o&&P===2)return;fe=!0;let r=++X,i=()=>{r===X&&Kn()};o?(P=1,queueMicrotask(i)):(P=2,setTimeout(i,0))}var Sn=0;function Kn(){Sn++;try{Sr()}finally{Sn--}}function Sr(){fe=!1,P=0,X++;let e=!1,n,t=r=>{e?typeof console<"u"&&console.error(r):(e=!0,n=r)};for(let r of St)r();let o=0;for(;w.length>0&&o<Ct;o++){let r=w.splice(0);vn=r;for(let i of r)if(!i.disposed){i.queued=!1,i.rerun=!1;try{Pe(i)}catch(s){t(s)}if(i.rerun&&!i.disposed){i.rerun=!1;try{Pe(i)}catch(s){t(s)}}}}if(w.length>0)try{Tn()}catch(r){t(r)}if(w.length===0&&(P=0,fe=!1,X++),w.length===0){for(let r of At)try{r()}catch(i){t(i)}if(w.length>0){if(yn>=50)try{Tn()}catch(r){throw t(r),n}yn++;try{Kn()}catch(r){t(r)}finally{yn--}if(e)throw n;return}try{ke()}catch(r){t(r)}}if(e)throw n}var Ct=100,vn=[];function Tn(){let e=w.splice(0);for(let r of e)r.queued=!1;fe=!1,P=0,X++;let n=e.length>0?e:vn;vn=[];let t=Array.from(new Set(n.map(r=>r.fn.name||"anonymous effect"))).slice(0,3).join(", "),o=new Error("Maximum update depth exceeded. An effect keeps writing state that re-runs itself or another effect ("+t+"). Make the write conditional or remove the dependency that changes on every run.");for(let r of n)if(r.boundaryOwner&&m&&m.error(r.boundaryOwner,o))return;throw o}var At=[],yn=0;function vr(e){At.push(e)}function Tr(){Fn()}function ke(){$.size>0&&yt(),typeof document<"u"&&document.activeElement;for(let e of vt)e();cr()}function De(){if(w.length===0){ke();return}let e=0;for(;w.length>0;)e++>=Ct&&Tn(),Kn()}function Pe(e){e.running=!0;let n=!1,t=h;h=e.owner,D++;let o=S;S=null;try{Pn(e.cleanups);for(let i of e.sources)i.delete(e);e.sources.clear(),d.push(e),n=!0;let r=e.fn();typeof r=="function"&&e.cleanups.push(r)}catch(r){if(!(e.boundaryOwner&&m&&m.error(e.boundaryOwner,r)))throw r}finally{S=o,D--,h=t,n&&d.pop(),e.running=!1}}function y(e){let n=W(e);x.add(n);let t=d[d.length-1],o=()=>{ge(n),x.delete(n)};return n.boundaryOwner&&m&&m.cleanup(n.boundaryOwner,o),Pe(n),t&&!t.disposed?t.cleanups.push(o):t&&t.root&&Dn(t,o),o}function I(e){let n=wt();if(n){Dn(n,e);return}let t=m?m.current():null;if(t&&m)m.cleanup(t,e);else if(h!==null){he(h,F());let o=G.get(h);o||G.set(h,o=[]),o.push(e)}else le.push({fn:e,scope:F()})}function Dn(e,n){if(e.dead){n();return}e.cleanups.push(n)}function xr(e){let n=W(()=>{});n.disposed=!0,n.root=!0;let t=()=>{if(n.dead)return;n.dead=!0;let o=n.cleanups.splice(0);for(let r of o)try{r()}catch(i){console.error(i)}};d.push(n);try{return e(t)}finally{d.pop()}}function br(e){mt.push({fn:e,owner:d[d.length-1],boundary:m?m.current():null}),wn||(wn=!0,queueMicrotask(Er))}function Er(){wn=!1;let e=mt.splice(0);for(let{fn:n,owner:t,boundary:o}of e){let r=()=>{if(!t){n();return}if(t.dead||!t.root&&t.disposed)return;let i=W(()=>{});i.disposed=!0,d.push(i);try{n()}finally{d.pop()}for(let s of i.cleanups)Dn(t,s)};o&&m?m.run(o,r):r()}}function Cr(e){let[n,t]=v(void 0),o=!0,r=W(()=>{});x.add(r);let i=()=>{Pn(r.cleanups);for(let p of r.sources)p.delete(r);r.sources.clear(),o=!1,d.push(r);let f;try{f=e()}catch(p){throw o=!0,p}finally{d.pop()}t(f)},s=W(()=>{o&&!r.disposed&&i()});x.add(s),r.mark=()=>{o=!0,!s.queued&&!s.disposed&&(s.queued=!0,w.push(s))},Pe(s);let c=()=>(o&&!r.disposed&&i(),n()),u=wt(),a=()=>{r.disposed||(ge(r),x.delete(r),ge(s),x.delete(s))};return u?u.cleanups.push(a):s.boundaryOwner&&m&&m.cleanup(s.boundaryOwner,a),c}function Ar(e,n,t,o){t&&typeof t=="object"&&(o=t,t=void 0);let r=typeof t=="function"?t(n):n,[i,s]=v(r,o);return[i,u=>s(a=>e(a,u))]}function Rr(e){return{current:e}}function Nr(e){return n=>e(n,n.ref||(()=>{}))}var k=je(null,null),C=new Map,N=new Map,q=new Set,_=new Set,_r=0,Ie=!1,H=null,M=[],j=[],Y=[],Z=new Map,_t=[];function je(e,n){let t=n&&n.parent!==null?n.scope:n?F():null,o={id:e,parent:n,children:[],hooks:[],disposed:!1,shown:!0,conds:[],slot:null,record:null,scope:t};return n&&he(o,t),o}function Or(e){_t.push(e)}function Pr(e){return qe(e).id}function qe(e){return e&&typeof e=="object"&&"hooks"in e?e:k}function ee(e){for(let n=e;n;n=n.parent)if(n.disposed||!n.shown)return!1;return!0}function Ot(e){for(let[n,t]of e.conds){let o=N.get(n);if(o!==void 0&&o!==t)return!1}return!0}function Hr(e,n,t,o){if(e==null){b(null);return}let r=C.get(e);if(!r){let i=n!=null&&C.get(n)||k;r=je(e,i);for(let s=i;s;s=s.parent)s.disposed&&(r.disposed=!0);i.children.push(r),C.set(e,r);for(let[s,c,u]of t||[])r.conds.push([s,c]),N.has(s)||N.set(s,u?c:c==="c"?"a":"c");r.shown=Ot(r),o&&(r.slot=o,q.has(o)&&(r.disposed=!0))}b(r)}function Vn(e){let n=qe(J()),t=je(null,n);n.children.push(t);let o=b(t);try{return{value:e(),owner:t}}finally{b(o)}}function z(e){let n=qe(e);if(n===k||n.disposed)return;let t=ee(n),o=[];if(ze(n,t,o),n.parent){let r=n.parent.children,i=r.indexOf(n);i>=0&&r.splice(i,1)}o.length&&(M.push(...o),Bn())}function ze(e,n,t){e.disposed=!0;for(let o of e.hooks){if(o.stop(),_.delete(o),!n){o.mounted&&(o.mounted=!1,o.cleanup=null,zn(o.epoch));continue}if(o.phase==="passive"){let r=ye(o);r&&t.push(r)}else ne(o)}for(let o of _t)o(e,e.id);me(e),e.record&&e.record.owner===e&&(e.record.owner=null);for(let o of e.children.slice())ze(o,n&&o.shown,t)}function Mr(e){let n=C.get(e);n&&(z(n),C.delete(e))}function Lr(e,n,t,o,r){let i={id:e,parentId:n,conds:[],slot:o||null,fn:r,owner:null};for(let[s,c,u]of t||[])i.conds.push([s,c]),N.has(s)||N.set(s,u?c:c==="c"?"a":"c");Y.push(i),In(i)&&Ht(i)}function Pt(e){if(e.parentId==null)return k;let n=C.get(e.parentId);if(!n)return k;for(let t=n;t;t=t.parent)if(t.disposed)return null;return n}function In(e){if(e.slot&&q.has(e.slot))return!1;for(let[n,t]of e.conds){let o=N.get(n);if(o!==void 0&&o!==t)return!1}return Pt(e)!==null}function Ht(e){let n=Pt(e)||k,t=je(e.id,n);t.record=e,t.slot=e.slot,n.children.push(t),C.set(e.id,t),e.owner=t;let o=b(t);try{E(e.fn)}finally{b(o)}}function Fr(e){if(!q.has(e)){q.add(e);for(let n of Array.from(C.values()))n.slot===e&&z(n)}}function Kr(e,n){if(N.get(e)===n)return;N.set(e,n);for(let r of Y)r.owner&&!r.owner.disposed&&!In(r)&&z(r.owner);for(let r of Y)!r.owner&&In(r)&&Ht(r);let t=[];for(let r of C.values())!r.record&&r.conds.some(([i])=>i===e)&&t.push(r);let o=[];for(let r of t){let i=Ot(r);if(i===r.shown)continue;let s=ee(r);r.shown=i;let c=ee(r);s&&!c?Mt(r,o):!s&&c&&Lt(r)}o.length&&(M.push(...o),o=[],Bn()),It()}function Mt(e,n){for(let t of e.hooks)if(_.delete(t),t.phase==="passive"){let o=ye(t);o&&n.push(o)}else ne(t);for(let t of e.children)t.shown&&!t.disposed&&Mt(t,n)}function Lt(e){for(let n of e.hooks)Dt(n);for(let n of e.children)n.shown&&!n.disposed&&Lt(n)}function Ft(e,n){if(!e||!n||e.length!==n.length)return!1;for(let t=0;t<e.length;t++)if(!Object.is(e[t],n[t]))return!1;return!0}function Kt(e){if(e!=null)return Array.isArray(e)?e:Array.from(e)}function Dt(e){e.dirty=!0,_.add(e),It()}function It(){Ie||(Ie=!0,queueMicrotask(()=>{On()||(te(),ke())}))}function Dr(e,n,t="passive"){let o=qe(J()),r={owner:o,phase:t,fn:e,deps:n||null,prev:void 0,hasPrev:!1,cleanup:null,mounted:!1,epoch:0,dirty:!1,seq:_r++,stop:()=>{},scope:o===k?F():o.scope};o.hooks.push(r),!o.disposed&&(r.stop=y(()=>{let i=r.deps?Kt(r.deps()):[];r.hasPrev&&Ft(r.prev,i)||(r.prev=i,r.hasPrev=!0,ee(r.owner)&&Dt(r))}))}function jn(e,n){if(e.owner.disposed)return;let t;try{t=Me(n,()=>E(e.fn))}catch(o){jt(o,e.owner);return}e.cleanup=typeof t=="function"?t:null,e.mounted=!0,e.epoch=n,Z.set(n,(Z.get(n)||0)+1)}var qn=null;function Ir(e){qn=e}function jt(e,n){let t=null;for(let o=n;o&&t===null;o=o.parent)t=o.id;if(!(qn&&qn(e,t)))throw e}function qt(e,n){try{E(e)}catch(t){jt(t,n)}}function zt(e){if(!e.mounted)return null;e.mounted=!1;let n=e.epoch,t=e.cleanup;return e.cleanup=null,t?()=>{try{Me(n,()=>E(t))}finally{zn(n)}}:(zn(n),null)}function zn(e){let n=(Z.get(e)||1)-1;n>0?Z.set(e,n):Z.delete(e)}function ne(e){let n=zt(e);n&&qt(n,e.owner)}function ye(e){let n=zt(e);return n?()=>qt(n,e.owner):null}function Rt(){let e=He();for(let n of Z.keys())n<e&&(e=n);xn(e)}function jr(e){let n=new Map,t=0,o=r=>{for(let i of r.children)o(i);n.set(r,t++)};for(let r of k.children)o(r);return n.set(k,t++),Array.from(e).sort((r,i)=>{let s=n.get(r.owner)??t,c=n.get(i.owner)??t;return s!==c?s-c:r.seq-i.seq})}var Vt=[];function qr(e){Vt.push(e)}function Nt(){for(let e of Vt)e()}function zr(){Ie=!1;let e=He(),n=Cn();if(_.size===0){Nt(),n&&te(),Rt();return}let t=jr(_).filter(o=>ee(o.owner));_.clear();for(let o of t)o.dirty=!1;Q(!0);try{let o=0;for(;o<t.length;){let i=t[o].owner,s=o;for(;s<t.length&&t[s].owner===i;)s++;for(let c=o;c<s;c++)t[c].phase==="insertion"&&(ne(t[c]),jn(t[c],e));for(let c=o;c<s;c++)t[c].phase==="layout"&&ne(t[c]);o=s}for(let i of t)i.phase==="layout"&&jn(i,e);Nt();let r=!1;for(let i of t){if(i.phase!=="passive")continue;let s=ye(i);s&&M.push(s),j.push([i,e]),r=!0}r&&Bn(),n&&te()}finally{Q(!1)}Rt()}function Bn(){H===null&&(H=setTimeout(te,0))}function te(){H!==null&&(clearTimeout(H),H=null);let e=!1,n,t=o=>{e?typeof console<"u"&&console.error(o):(e=!0,n=o)};for(;M.length||j.length;){let o=M,r=j;M=[],j=[],Q(!0);try{for(let i of o)try{i()}catch(s){t(s)}for(let[i,s]of r)if(ee(i.owner))try{jn(i,s)}catch(c){t(c)}}finally{Q(!1)}}if(e)throw n}function Bt(e,n){let t,o=!1,r;return()=>{let i=Kt(n())||[];return(!o||!Ft(t,i))&&(t=i,o=!0,r=E(e)),r}}function Vr(e){return function(...t){return E(()=>e.apply(this,t))}}function Br(e,n){let t=!0;return Bt(()=>{if(t)return t=!1,e;let o=e;return function(...r){return o.apply(this,r)}},n)}function Ur(e){if(e&&typeof e=="object"){let n=Object.getPrototypeOf(e);if(n===Object.prototype||n===null){let t=[];for(let o of Object.keys(e))o!=="children"&&t.push(e[o]);return t}}return[e]}function Wr(e){let n=[];for(let r of k.children.slice()){if(!e(r.scope))continue;ze(r,r.shown,n);let i=k.children.indexOf(r);i>=0&&k.children.splice(i,1)}let t=[];for(let r of k.hooks){if(!e(r.scope)){t.push(r);continue}if(r.stop(),_.delete(r),r.phase==="passive"){let i=ye(r);i&&n.push(i)}else ne(r)}k.hooks=t;for(let[r,i]of Array.from(C))(i.disposed||e(i.scope))&&C.delete(r);let o=r=>!e(Mn(r));for(let r of Array.from(N.keys()))o(r)||N.delete(r);for(let r of Array.from(q))o(r)||q.delete(r);for(let r=Y.length-1;r>=0;r--)o(Y[r].id)||Y.splice(r,1);for(let r of Array.from(_))r.owner.disposed&&_.delete(r);j=j.filter(([r])=>!r.owner.disposed&&!(r.owner===k&&e(r.scope)));for(let r of n)try{E(r)}catch{}b(null)}function Gr(e){if(e){Wr(e);return}let n=[];for(let o of k.children.slice())ze(o,o.shown,n);for(let o of k.hooks)if(o.stop(),o.phase==="passive"){let r=ye(o);r&&n.push(r)}else ne(o);k.children.length=0,k.hooks.length=0,C.clear(),N.clear(),q.clear(),_.clear(),j=[];let t=M.concat(n);M=[],H!==null&&(clearTimeout(H),H=null);for(let o of t)try{E(o)}catch{}Ie=!1,b(null)}Rn(te);Nn(zr);_n(Gr);var we=new Set;function Ut(e){let n,t=!1;if(y(()=>{try{e()}catch(o){n=o,t=!0}})(),t)throw n}function Ve(e){if(e.on)return;e.on=!0;let n=e.ref;Ut(()=>{if(typeof n=="function"){let t=n(e.el);e.undo=typeof t=="function"?t:()=>n(null)}else if(n&&typeof n=="object")n.current=e.el,e.undo=()=>{n.current=null};else if(e.assign){let t=e.assign;t(e.el),e.undo=()=>t(null)}else e.undo=null})}function Un(e){if(!e.on)return;e.on=!1;let n=e.undo;e.undo=null,n&&Ut(n)}function Wt(e,n){let t={el:n,ref:e,on:!1,undo:null};return Ve(t),()=>Un(t)}var oe=null;function Gt(){oe||(oe=[],queueMicrotask(Wn))}function Wn(){let e=oe;if(oe=null,!!e)for(let n of e)we.has(n)&&n.el.isConnected&&Ve(n)}function Se(e,n,t,o){let r={el:e,ref:n,assign:t,on:!1,undo:null};return we.add(r),o==="defer"&&oe?oe.push(r):(o==="now"||e.isConnected)&&Ve(r),()=>{we.delete(r),Un(r)}}function Be(e){for(let n of we)n.on&&e.contains(n.el)&&Un(n)}function Ue(){for(let e of we)!e.on&&e.el.isConnected&&Ve(e)}var $r={doubleclick:"dblclick",focus:"focusin",blur:"focusout"},Xr={dblclick:"doubleclick",focusin:"focus",focusout:"blur"},Qr={focusin:"focus",focusout:"blur"},Jr=new Set("scroll scrollend load error abort cancel close invalid toggle beforetoggle mouseenter mouseleave pointerenter pointerleave canplay canplaythrough durationchange emptied encrypted ended loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" ")),Yt={change:["change","input","click"],beforeinput:["beforeinput","compositionend"]},Yr={preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()},stopPropagation(){this._s=!0,this.nativeEvent.stopPropagation()},isDefaultPrevented(){return this.defaultPrevented},isPropagationStopped(){return!!this._s},persist(){},isPersistent(){return!0}},Zr={get(e,n){if(n in e)return e[n];let t=e.nativeEvent,o=t[n];return typeof o=="function"?o.bind(t):o}};function $e(e,n,t){let o=Object.create(Yr),r=t===void 0?e.target:t;return r&&r.nodeType===3&&(r=r.parentNode),o.type=n||Qr[e.type]||e.type,o.target=r,o.currentTarget=null,o.nativeEvent=e,o.defaultPrevented=e.defaultPrevented,new Proxy(o,Zr)}var Gn,We=!1;function Zt(e,n){try{e(n)}catch(t){We||(We=!0,Gn=t)}}function eo(){if(We){let e=Gn;throw We=!1,Gn=void 0,e}}function Yn(e,n,t,o,r){let i=[],s=[];for(let a=t;a;a=a.__kpp||a.parentNode){let f=a.__kh;if(!f)continue;let p;o&1&&(p=f[n+"$"])&&i.unshift(a,p),o&2&&(p=f[n])&&s.push(a,p)}if(!i.length&&!s.length)return null;let c=$e(e,r,t),u=i.concat(s);for(let a=0;a<u.length&&!c._s;a+=2)c.currentTarget=u[a],Zt(u[a+1],c);return c.currentTarget=null,c}var $t=new WeakMap,$n=new Set,no=new Set;function ei(){return typeof document>"u"?null:document.getElementById("root")||document.body}function Xn(e,n){let t=$t.get(e);t||(t=new Set,$t.set(e,t)),!t.has(n)&&(t.add(n),e.addEventListener(n,ni,!0),e.addEventListener(n,ti,!1))}function Qn(e){no.add(e);let n=ei();n&&($n.add(n),Xn(n,e));for(let t of $n)t!==n&&t.isConnected&&Xn(t,e)}function Xe(e){$n.add(e);for(let n of no)Xn(e,n)}function ni(e){to(e,!0)}function ti(e){to(e,!1)}var Ge=0;function oi(e){Ge++;try{return e()}finally{Ge--}}function to(e,n){if(Ge>0)return;let t=n?"__kdc":"__kdb",o=e;if(o[t])return;o[t]=1;let r=e.type,i=e.target;Le(r,!n,()=>{r!=="change"&&r!=="beforeinput"&&Yn(e,Xr[r]||r,i,n?1:2),n||(r==="change"||r==="input"||r==="click"?ui(e):(r==="beforeinput"||r==="compositionend")&&ai(e))}),eo()}function ri(e){oo(this,e,!1)}function ii(e){oo(this,e,!0)}function oo(e,n,t){if(Ge>0)return;let o=e.__kh,r=o&&o[n.type+(t?"$":"")];if(!r)return;let i=$e(n);i.currentTarget=e,Le(n.type,!0,()=>Zt(r,i)),i.currentTarget=null,eo()}function Zn(e){let n=e.slice(2),t=!1;return n.length>7&&n.slice(-7)==="Capture"&&!/^(Got|Lost)PointerCapture$/.test(n)&&(n=n.slice(0,-7),t=!0),[n.toLowerCase(),t]}function ve(e,n,t){let[o,r]=Zn(n),i=e,s=i.__kh||(i.__kh={}),c=o+(r?"$":"");if(typeof t!="function"){s[c]=void 0;return}if(s[c]=t,Jr.has(o)){let a=i.__kd||(i.__kd={});a[c]||(a[c]=1,e.addEventListener(o,r?ii:ri,r));return}let u=Yt[o];if(u){for(let a of u)Qn(a);o==="change"&&so(e)}else Qn($r[o]||o)}function Qe(e){let n=e.querySelectorAll("input[value]");for(let t=0;t<n.length;t++){let o=n[t];if(!ro.has(o.type||"text")||!o.value||o.ownerDocument.activeElement===o)continue;let r=o.value;o.value="",o.value=r}}var ro=new Set("color date datetime datetime-local email month number password range search tel text time url week".split(" "));function et(e){return e.tagName==="INPUT"&&(e.type==="checkbox"||e.type==="radio")}function io(e){return et(e)?String(e.checked):String(e.value)}function so(e){e.__kv===void 0&&(e.tagName==="INPUT"||e.tagName==="TEXTAREA")&&(e.__kv=io(e))}function Jn(e){let n=io(e);return e.__kv===n?!1:(e.__kv=n,!0)}function si(e){if(!e.name||!e.ownerDocument)return[e];let n=[],t=e.ownerDocument.getElementsByName(e.name);for(let o=0;o<t.length;o++){let r=t[o];r.tagName==="INPUT"&&r.type==="radio"&&r.form===e.form&&n.push(r)}return n}function ci(e){let n=e.target;if(!n||!n.tagName)return null;let t=e.type,o=n.tagName;return o==="SELECT"||o==="INPUT"&&n.type==="file"?t==="change"?n:null:et(n)?t==="click"&&Jn(n)?n:null:(o==="TEXTAREA"||o==="INPUT"&&ro.has(n.type||"text"))&&t!=="click"&&Jn(n)?n:null}function ui(e){let n=ci(e);if(n)if(Yn(e,"change",n,3,"change"),n.type==="radio")for(let t of si(n))Jn(t),Jt(t);else Jt(n)}function ai(e){let n=e;e.type==="beforeinput"&&(n.isComposing||typeof n.data!="string"||n.data==="")||e.type==="compositionend"&&!n.data||Yn(e,"beforeinput",e.target,3,"beforeinput")}function Xt(e,n){e.__kw||(e.__kw=1,console.error(n))}function Qt(e,n,t){let o=e.options;if(e.multiple){let s=new Set((Array.isArray(n)?n:[n]).map(String));for(let c=0;c<o.length;c++){let u=s.has(o[c].value);t?o[c].defaultSelected=u:o[c].selected!==u&&(o[c].selected=u)}return}let r=String(n),i=null;for(let s=0;s<o.length;s++){if(o[s].value===r){t?o[s].defaultSelected=!0:o[s].selected=!0;return}!i&&!o[s].disabled&&(i=o[s])}i&&!t&&(i.selected=!0)}function V(e,n,t){let o=e;switch(n){case"value":{if(t==null)return;if(o.tagName==="SELECT"){Qt(o,t,!1);return}let r=String(t);o.value!==r&&(o.value=r),o.type!=="file"&&!(o.type==="number"&&o.ownerDocument&&o.ownerDocument.activeElement===o)&&o.defaultValue!==r&&(o.defaultValue=r),et(o)||(o.__kv=r);return}case"checked":{if(t==null)return;let r=!!t;o.checked!==r&&(o.checked=r),o.__kv=String(r);return}case"defaultValue":o.tagName==="SELECT"?Qt(o,t,!0):o.defaultValue=t==null?"":String(t);return;case"defaultChecked":o.defaultChecked=!!t;return;default:o[n]=!!t}}function Jt(e){let n=e.__kc;n&&(De(),n.value&&V(e,"value",n.value()),n.checked&&V(e,"checked",n.checked()))}function Je(e,n,t){let o=e,r=n==="value"||n==="checked";if(r){(o.__kc||(o.__kc={}))[n]=t;for(let c of Yt.change)Qn(c);so(o)}let i,s=!1;return y(()=>{let c=t();if(r){let u=c!=null;c===null&&n==="value"?Xt(o,"`value` prop on `"+o.tagName.toLowerCase()+"` should not be null. Use an empty string to clear it or `undefined` for an uncontrolled field."):i!==void 0&&i!==u&&Xt(o,"A component is changing "+(i?"a controlled":"an uncontrolled")+" input to be "+(u?"controlled":"uncontrolled")+". Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),i=u}V(o,n,c),!s&&n==="value"&&o.tagName==="TEXTAREA"&&o.ownerDocument.activeElement!==o&&o.setSelectionRange(0,0),s=!0})}var co="template[data-krate-portal]",Ye=new Map,Ze=new Set;function li(e,n){Ye.set(e,n)}function fi(e){return!!e&&typeof e=="object"&&(e.nodeType===1||e.nodeType===11)}function di(e){let n=e.getAttribute("data-krate-portal")||"",t=Ye.get(n);if(t){let r=null;try{r=t()}catch{r=null}return fi(r)?r:null}let o=e.getAttribute("data-krate-portal-target");if(!o||o==="body")return document.body;try{return document.querySelector(o)}catch{return null}}function nt(e){if(e.__kpn||!e.isConnected)return;let n=di(e);if(!n)return;let t=Array.from(e.content.childNodes),o=document.createDocumentFragment();for(let i of t)i.__kpp=e,o.appendChild(i);n.appendChild(o),e.__kpn=t,Ze.add(e);let r=document.getElementById("root");n.nodeType===1&&!(r&&r.contains(n))&&Xe(n),e.__kpd||(e.__kpd=!0,nn(e,()=>en(e,!0)))}function en(e,n){let t=e.__kpn;if(t){e.__kpn=void 0,Ze.delete(e);for(let o of t)n?o.parentNode&&o.parentNode.removeChild(o):e.content.appendChild(o),o.__kpp=void 0}}function tt(e){let n=[];return e.matches?.(co)&&n.push(e),e.querySelectorAll(co).forEach(t=>n.push(t)),n}function pi(e){if(!(typeof document>"u"))for(let n of tt(e||document))nt(n)}function ot(e){return tt(e)}function rt(e){for(let n of e)nt(n)}function it(e){for(let n of tt(e))en(n)}function uo(e,n){let t=e.slice(),o=new Set;for(;t.length;)t.shift().querySelectorAll("template").forEach(i=>{if(o.has(i))return;o.add(i);let s=i;s.hasAttribute("data-krate-portal")&&n(s.content),t.push(s.content)})}function gi(e,n){for(let o of Ze)for(let r of o.__kpn||[]){if(r.nodeType!==1)continue;let i=r;if(i.matches(e))return i;let s=i.querySelector(e);if(s)return s}let t=null;return uo(n,o=>{t||(t=o.querySelector(e))}),t}function hi(){let e=new Set;for(let n of Array.from(Ze))n.isConnected?e.add(n.getAttribute("data-krate-portal")||""):en(n,!0);for(let n of Array.from(Ye.keys()))e.has(n)||Ye.delete(n)}var re=new Set,lo=new WeakMap;function mi(){return Array.from(re)}function ki(){let e=new Set,n=!0;for(;n;){n=!1;for(let t of re){if(e.has(t))continue;let o=lo.get(t);if(!o)continue;let r=o.getRootNode();(o.isConnected||e.has(r))&&(e.add(t),n=!0)}}for(let t of Array.from(re))e.has(t)||re.delete(t)}function ao(e){let n="/"+(e.nodeValue||"");for(let t=e.nextSibling;t;t=t.nextSibling)if(t.nodeType===8&&t.nodeValue===n)return t;return null}function yi(e,n,t){let o=e,r=n?"c":"a",i=o.__krateCond;if(!i){let l=t?t.getAttribute("data-kb"):null;i={shown:l==="c"?"a":l==="a"?"c":r,other:null,tpl:t,end:ao(e)},o.__krateCond=i}if(i.shown===r)return;let s=e.parentNode;if(!s)return;(!i.end||i.end.parentNode!==s)&&(i.end=ao(e));let c=i.end,u=document.createDocumentFragment(),a=e.nextSibling;for(;a&&a!==c;){let l=a.nextSibling;u.appendChild(a),a=l}Be(u),it(u);let f=i.other;if(!f&&(f=document.createDocumentFragment(),i.tpl&&(f.appendChild(i.tpl.content),i.tpl.getAttribute("data-kns")==="svg"))){let l=f.firstChild;if(l&&l.nodeType===1){for(;l.firstChild;)f.insertBefore(l.firstChild,l);f.removeChild(l)}}re.delete(f);let p=f.querySelector("[autofocus]");Qe(f);let R=ot(f);s.insertBefore(f,c),rt(R),i.other=u,re.add(u),lo.set(u,e),i.shown=r,Ue(),p&&(p.removeAttribute("autofocus"),p.focus())}var wi={href:!0,src:!0,action:!0,formaction:!0,"xlink:href":!0},Si=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i,fo="javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')";function st(e,n){return wi[e.toLowerCase()]&&Si.test(n)?fo:n}var Te=new WeakMap;function A(e,n){nn(e,n)}function nn(e,n){let t=Te.get(e);t||(t=[],Te.set(e,t)),t.push(n)}function mo(e,n){let t=()=>z(n);if(typeof DocumentFragment<"u"&&e instanceof DocumentFragment)for(let o=0;o<e.childNodes.length;o++)A(e.childNodes[o],t);else if(typeof Node<"u"&&e instanceof Node)A(e,t);else if(Array.isArray(e))for(let o of e)mo(o,n);else at(e)&&(e.u||(e.u=[])).push(n)}function ko(e,n){if(e.u)for(let t of e.u)A(n,()=>z(t))}function vi(e,n,t){let o=!0,r=y(()=>{let i=Se(e,n?n():void 0,t,o?"defer":void 0);o=!1,I(i)});return A(e,r),r}function se(e){let n=Te.get(e);if(n){for(let t of n)t();n.length=0}for(let t=0;t<e.childNodes.length;t++)se(e.childNodes[t])}function Ti(e){let n=e.nextSibling;for(;n;){if(n.nodeType===8&&n.nodeValue==="k")return n;n=n.nextSibling}return null}function yo(e,n){let t=e.parentNode;if(!t)return;let o=e.nextSibling;for(;o&&o!==n;){let r=o.nextSibling;se(o),t.removeChild(o),o=r}}function xi(e,n,t){let o=Ti(t);o?(yo(t,o),ct(e,n,o)):ct(e,n,null)}function ct(e,n,t){if(!(n==null||n===!1||n===!0)){if(typeof n=="string"||typeof n=="number"||typeof n=="bigint")e.insertBefore(document.createTextNode(String(n)),t);else if(n instanceof Node)e.insertBefore(n,t);else if(Array.isArray(n))for(let o of n)ct(e,o,t)}}var bi={htmlFor:"for"},Ei=new Set(["animation-iteration-count","aspect-ratio","border-image-outset","border-image-slice","border-image-width","box-flex","box-flex-group","box-ordinal-group","column-count","columns","flex","flex-grow","flex-positive","flex-shrink","flex-negative","flex-order","grid-area","grid-row","grid-row-end","grid-row-span","grid-row-start","grid-column","grid-column-end","grid-column-span","grid-column-start","font-weight","line-clamp","line-height","opacity","order","orphans","scale","tab-size","widows","z-index","zoom","fill-opacity","flood-opacity","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","stroke-opacity","stroke-width"]);function Ci(e){if(e.startsWith("--"))return e;let n=e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase());return n.startsWith("ms-")?"-"+n:n}var po=new WeakMap;function wo(e,n){let t=e.style;if(!t)return;let o=new Set;for(let i of Object.keys(n)){let s=n[i];if(s==null||typeof s=="boolean"||s==="")continue;let c=Ci(i),u=c.replace(/^-(webkit|moz|ms|o)-/,""),a=typeof s=="number"&&s!==0&&!c.startsWith("--")&&!Ei.has(u)?s+"px":String(s);t.setProperty(c,a),o.add(c)}let r=po.get(e);if(r)for(let i of r)o.has(i)||t.removeProperty(i);po.set(e,o)}function So(e,n,t){if(e.localName.indexOf("-")<1||n.indexOf("-")>=0)return!1;let o=typeof t=="object"&&t!==null||typeof t=="function";if(!o&&!(n in e))return!1;e[n]=t;let r=typeof customElements<"u"?customElements:null;return o&&r&&!r.get(e.localName)&&typeof r.whenDefined=="function"&&r.whenDefined(e.localName).then(()=>{let i=e;delete i[n],i[n]=t}),!0}function tn(e,n,t){if(!(e.localName.indexOf("-")>0&&n!=="class"&&n!=="className"&&n!=="style"&&n!=="ref"&&n!=="key"&&n!=="children"&&!n.startsWith("on")&&So(e,n,t))){if(n==="class"||n==="className"){let o=t===!1||t===null||t===void 0?"":String(t);if(e.getAttribute("class")!==o){if(o===""&&!e.hasAttribute("class")&&typeof t!="string")return;e.setAttribute("class",o)}}else if(n==="style")typeof t=="string"?e.getAttribute("style")!==t&&e.setAttribute("style",t):t&&typeof t=="object"?wo(e,t):(t==null||t===!1)&&e.removeAttribute("style");else if(n.startsWith("on")&&typeof t=="function")ve(e,n,t);else if(n==="value"||n==="checked"||n==="selected"||n==="defaultValue"||n==="defaultChecked")V(e,n,t);else if(n==="ref"){let o=Se(e,t,void 0,"now");A(e,o),I(o)}else if(!(n==="key"||n==="children"||n==="dangerouslySetInnerHTML")){let o=bi[n]||n,r=/^(aria|data)-/.test(o);if(t==null||typeof t=="function"||typeof t=="symbol"||t===!1&&!r)e.hasAttribute(o)&&e.removeAttribute(o);else{let i=t===!0&&!r?"":st(o,String(t));e.getAttribute(o)!==i&&e.setAttribute(o,i)}}}}function vo(e,n){for(let o in n){let r=n[o];typeof r=="function"&&(o==="value"||o==="checked")?A(e,Je(e,o,r)):typeof r=="function"&&!o.startsWith("on")&&o!=="ref"?A(e,y(()=>tn(e,o,r()))):tn(e,o,r)}let t=n.dangerouslySetInnerHTML;if(t&&typeof t=="object"&&t.__html!=null){let o=String(t.__html);e.innerHTML!==o&&(e.innerHTML=o)}}var go=new WeakMap;function Ai(e,n){A(e,y(()=>{let t=n()||{},o=new Set;for(let i of Object.keys(t))i==="children"||i==="key"||i==="dangerouslySetInnerHTML"||(o.add(i),tn(e,i,t[i]));let r=go.get(e);if(r)for(let i of r)o.has(i)||(i.startsWith("on")?ve(e,i,null):tn(e,i,void 0));go.set(e,o)}))}function To(e,n){if(e===void 0)return n();let t=b(e);try{return n()}finally{b(t)}}var B=0;function xo(e){let n=B;B=n+1;try{return e()}finally{B=n}}function bo(e){let n=B;B=0;try{return e()}finally{B=n}}function at(e){return!!e&&typeof e=="object"&&e.__kv===1}function Eo(e){return!!e&&typeof e=="object"&&e.__ka===1}var on="http://www.w3.org/2000/svg",Ri=new Set(["svg","g","defs","symbol","use","switch","desc","metadata","path","circle","ellipse","line","polygon","polyline","rect","text","tspan","textPath","image","foreignObject","marker","mask","pattern","clipPath","linearGradient","radialGradient","stop","filter","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","animate","animateMotion","animateTransform","set","mpath","view"]);function Ni(e){return Ri.has(e)?document.createElementNS(on,e):document.createElement(e)}function _i(e){let n=e;return n.namespaceURI===on&&n.localName!=="foreignObject"}function ho(e,n){let t=n;if(t.nodeType!==1||t.namespaceURI===on||!_i(e))return n;let o=document.createElementNS(on,t.localName);for(let r of Array.from(t.attributes))o.setAttribute(r.name,r.value);for(;t.firstChild;)o.appendChild(t.firstChild);return o}function Co(e,n,t){let o=Ni(e);if(n&&vo(o,n),!n||!n.dangerouslySetInnerHTML)for(let r of t)xe(o,r);return o}function Ao(e){let n=To(e.o,()=>bo(()=>Co(e.tag,e.props,e.children)));return ko(e,n),n}function lt(e){return e==null||typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="bigint"}function ft(e){return e==null||typeof e=="boolean"?"":String(e)}function xe(e,n){if(!(n==null||n===!1||n===!0)){if(Array.isArray(n)){for(let t of n)xe(e,t);return}if(typeof n=="function"){Hi(e,n,null);return}if(at(n)){e.appendChild(ho(e,Ao(n)));return}if(Eo(n)){e.appendChild(n.mount());return}e.appendChild(n instanceof Node?ho(e,n):document.createTextNode(String(n)))}}function Oi(e,n){let t=Te.get(e);if(t){Te.delete(e);for(let o of t)A(n,o)}}function ut(e,n){let t=e.parentNode;if(!t)return;let o=e.nextSibling;for(;o&&o!==n;){let r=o.nextSibling;se(o),t.removeChild(o),o=r}}function Pi(e){if(!e.text)return;let n=e.text,t=n.parentNode;e.start=document.createComment(""),e.end=document.createComment(""),t.insertBefore(e.start,n),t.insertBefore(e.end,n.nextSibling),Oi(n,e.start),t.removeChild(n),e.text=null}function Ro(e,n){if(lt(n)){let o=ft(n);if(e.text){e.text.data!==o&&(e.text.data=o);return}ut(e.start,e.end),o!==""&&e.end.parentNode.insertBefore(document.createTextNode(o),e.end);return}Pi(e),ut(e.start,e.end);let t=document.createDocumentFragment();xe(t,n),e.end.parentNode.insertBefore(t,e.end)}function Hi(e,n,t){let o={text:null,start:null,end:null},r=!0,i=y(()=>{let s=n();if(!r){Ro(o,s);return}if(r=!1,lt(s)){o.text=document.createTextNode(ft(s)),e.insertBefore(o.text,t);return}o.start=document.createComment(""),o.end=document.createComment(""),e.insertBefore(o.start,t);let c=document.createDocumentFragment();xe(c,s),e.insertBefore(c,t),e.insertBefore(o.end,t)});A(o.text||o.start,i)}function No(e){for(;e.next&&e.next.nodeType===8;)e.next=e.next.nextSibling}function ie(e,n){e.parent.insertBefore(n,e.next)}function _o(e,n){No(e);let t=e.next;if(n!==""&&t&&t.nodeType===3){let r=t;return r.data.length>n.length&&r.data.startsWith(n)?r.splitText(n.length):r.data!==n&&(r.data=n),e.next=r.nextSibling,r}let o=document.createTextNode(n);return ie(e,o),o}function Oo(e,n){let t=e.next;for(;t&&t!==n;){let o=t.nextSibling;se(t),e.parent.removeChild(t),t=o}e.next=n}function Mi(e,n){No(n);let t=n.next;if(t&&t.nodeType===1&&t.localName.toLowerCase()===e.tag.toLowerCase()){n.next=t.nextSibling;let o=t;ko(e,o),To(e.o,()=>{if(e.props&&vo(o,e.props),!e.props||!e.props.dangerouslySetInnerHTML){let r={parent:o,next:o.firstChild};for(let i of e.children)rn(i,r);Oo(r,null)}});return}ie(n,Ao(e))}function Li(e,n){let t={text:null,start:null,end:null},o=!0,r=y(()=>{if(!o){Ro(t,e());return}o=!1;let i=xo(e);if(lt(i)){t.text=_o(n,ft(i));return}t.start=document.createComment(""),ie(n,t.start),rn(i,n),t.end=document.createComment(""),ie(n,t.end)});A(t.text||t.start,r)}function rn(e,n){if(!(e==null||typeof e=="boolean")){if(Array.isArray(e)){for(let t of e)rn(t,n);return}if(typeof e=="function"){Li(e,n);return}if(at(e)){Mi(e,n);return}if(Eo(e)){e.adopt(n);return}if(e instanceof Node){ie(n,e);return}_o(n,String(e))}}function Fi(e,n,...t){if(typeof e=="function"){let o=n||{};(t.length>0||!("children"in o))&&(o.children=t);let{value:r,owner:i}=Vn(()=>e(o));return mo(r,i),r}return B>0?{__kv:1,tag:e,props:n,children:t,o:J()}:Co(e,n,t)}function Po(e){if(typeof e=="string"){let n=document.querySelector(e);if(!n)throw new Error(`Container "${e}" not found`);return n}return e}function Ki(e,n){let t=Po(n),o=!1;y(()=>{o||(o=!0,t.appendChild(e()))})}function Di(e,n){let t=Po(n);if(t.childNodes.length===0){t.appendChild(e());return}let o=e();o&&se(o)}function Ho(){return globalThis.__krateSuspenseHook}function Ii(e,n){let[t,o]=v(void 0),[r,i]=v(!0),[s,c]=v(void 0),[u,a]=v("unresolved"),[f,p]=v(0),R,l=Ho()?.current()??null,g=null,ue=null,be=()=>typeof e=="function"?e():e,Lo=()=>{let T=Fo();return g=T,T.then(()=>{g===T&&(g=null)}),T},Fo=async()=>{R&&R.abort(),R=new AbortController;let T=R,Ko=be();a(f()>0?"refreshing":"loading"),i(!0),c(void 0);try{let Ee=await n(Ko,{signal:T.signal});T.signal.aborted||(o(()=>Ee),a("ready"))}catch(Ee){Ee?.name!=="AbortError"&&!T.signal.aborted&&(c(Ee),a("error"))}finally{T.signal.aborted||i(!1)}};y(()=>{typeof e=="function"&&e.length===0&&e(),f(),Lo(),I(()=>{R&&(R.abort(),R=void 0)})});let dt=function(){return l&&g&&ue!==g&&(ue=g,Ho()?.suspend(l,g)),t()};return Object.defineProperties(dt,{loading:{get:()=>r()},error:{get:()=>s()},state:{get:()=>u()}}),[dt,{mutate:T=>{o(T)},refetch:()=>{p(T=>T+1)}}]}function ji(e){return Ke(e)?e():e}var ce=null,qi=0,Mo=typeof TextEncoder<"u"?new TextEncoder:null;function zi(e){return e.replace(/[^A-Za-z0-9_.:$-]/gu,n=>(Mo?Array.from(Mo.encode(n)):[n.charCodeAt(0)&255]).map(o=>"%"+o.toString(16).toUpperCase().padStart(2,"0")).join(""))}function Vi(e,n){if(!e)return n();let t=ce;ce={prefix:zi(e),n:0};try{return n()}finally{ce=t}}function Bi(){return ce?"krate-"+ce.prefix+"-u"+ce.n++:"krate_u"+qi++}function sn(e){return!!document.head.querySelector(e)}function cn(e,n,t){if(typeof document>"u"||!n)return;let o='link[rel="'+e+'"][href="'+(window.CSS&&CSS.escape?CSS.escape(n):n)+'"]';if(sn(o))return;let r=document.createElement("link");r.rel=e,r.href=n,t&&(t.as&&(r.as=t.as),t.crossOrigin!==void 0&&(r.crossOrigin=t.crossOrigin),t.integrity&&(r.integrity=t.integrity),t.type&&(r.type=t.type),t.media&&(r.media=t.media),t.nonce&&(r.nonce=t.nonce),t.fetchPriority&&r.setAttribute("fetchpriority",t.fetchPriority),t.referrerPolicy&&(r.referrerPolicy=t.referrerPolicy),t.imageSrcSet&&r.setAttribute("imagesrcset",t.imageSrcSet),t.imageSizes&&r.setAttribute("imagesizes",t.imageSizes)),document.head.appendChild(r)}function Ui(e,n){cn("preload",e,n)}function Wi(e,n){cn("modulepreload",e,n)}function Gi(e,n){cn("preconnect",e,n)}function $i(e){cn("dns-prefetch",e)}function Xi(e,n){if(typeof document>"u"||!e)return;if(n&&n.as==="script"){if(sn('script[src="'+e+'"]'))return;let o=document.createElement("script");o.src=e,o.async=!0,n.crossOrigin!==void 0&&(o.crossOrigin=n.crossOrigin),n.integrity&&(o.integrity=n.integrity),n.nonce&&(o.nonce=n.nonce),document.head.appendChild(o);return}if(sn('link[rel="stylesheet"][href="'+e+'"]'))return;let t=document.createElement("link");t.rel="stylesheet",t.href=e,n&&n.crossOrigin!==void 0&&(t.crossOrigin=n.crossOrigin),n&&n.integrity&&(t.integrity=n.integrity),n&&n.media&&(t.media=n.media),document.head.appendChild(t)}function Qi(e,n){if(typeof document>"u"||!e||sn('script[type="module"][src="'+e+'"]'))return;let t=document.createElement("script");t.type="module",t.src=e,n&&n.crossOrigin!==void 0&&(t.crossOrigin=n.crossOrigin),n&&n.integrity&&(t.integrity=n.integrity),document.head.appendChild(t)}return Vo(Ji);})();
|
|
1
|
+
var __krate_exports=(()=>{var sn=Object.defineProperty;var Jo=Object.getOwnPropertyDescriptor;var Yo=Object.getOwnPropertyNames;var Zo=Object.prototype.hasOwnProperty;var er=(e,n)=>{for(var t in n)sn(e,t,{get:n[t],enumerable:!0})},nr=(e,n,t,o)=>{if(n&&typeof n=="object"||typeof n=="function")for(let r of Yo(n))!Zo.call(e,r)&&r!==t&&sn(e,r,{get:()=>n[r],enumerable:!(o=Jo(n,r))||o.enumerable});return e};var tr=e=>nr(sn({},"__esModule",{value:!0}),e);var ys={};er(ys,{BLOCKED_URL:()=>go,KRATE_CONTEXT:()=>gt,__krate_useId:()=>is,adoptValue:()=>rn,afterFlush:()=>wr,appendChild:()=>xe,clearBetween:()=>st,clearNodes:()=>xo,clearPersisted:()=>ur,createCSSChoice:()=>br,createCSSFlags:()=>Cr,createCSSGroup:()=>Ar,createCSSRange:()=>_r,createCSSStack:()=>Rr,createCSSToggle:()=>Er,createCallbackDeps:()=>oi,createContext:()=>un,createEffect:()=>y,createEffectDeps:()=>Jr,createEffectEvent:()=>ti,createMemo:()=>Ir,createMemoDeps:()=>Gt,createReducer:()=>jr,createResource:()=>es,createRoot:()=>Fr,createScope:()=>rr,createScopeFlags:()=>ir,createSignal:()=>v,disposeAll:()=>Et,disposeNode:()=>se,flushPassive:()=>te,flushSync:()=>ks,forwardRef:()=>Br,h:()=>Ji,hydrate:()=>Zi,insert:()=>Di,insertAt:()=>ie,isDerivedGetter:()=>Ke,isSignalGetter:()=>Pr,krateApplyStyle:()=>To,krateAttachRef:()=>we,krateBindRef:()=>Fi,krateCommitSnapshot:()=>St,krateCommitting:()=>Q,krateCondActivity:()=>Qr,krateCondDetached:()=>Ri,krateCondReset:()=>Ni,krateCondSwap:()=>Oi,krateContextRows:()=>sr,krateControl:()=>Je,krateCurrentScope:()=>F,krateCustomProp:()=>bo,krateDepsOf:()=>ri,krateDerived:()=>Nr,krateDisposeExcept:()=>xr,krateDisposeOwner:()=>he,krateDisposeScopes:()=>Tr,krateEnterScope:()=>dr,krateEpoch:()=>He,krateEventName:()=>Jn,krateEventRoot:()=>Xe,krateFlushSync:()=>De,krateForgetOwner:()=>Wr,krateGetOwner:()=>J,krateHintPreconnect:()=>Vo,krateHintPrefetchDNS:()=>Uo,krateHintPreinit:()=>Go,krateHintPreinitModule:()=>Wo,krateHintPreload:()=>Bo,krateHintPreloadModule:()=>zo,krateHintTags:()=>ls,krateHook:()=>Or,krateHookState:()=>lr,krateIsDiscrete:()=>yr,krateKeepScopes:()=>gr,krateLeaveScope:()=>pr,krateMount:()=>$r,krateMountFields:()=>Qe,krateMountPortals:()=>Ci,krateMuteEvents:()=>mi,krateOn:()=>Se,krateOnAfterFlush:()=>An,krateOnBeforeFlush:()=>Cn,krateOnDispose:()=>_n,krateOnHookError:()=>Yr,krateOnLayoutCommit:()=>ei,krateOnSettle:()=>Lr,krateOnUnmount:()=>Vr,krateOwner:()=>Gr,krateOwnerId:()=>Ur,krateParam:()=>ns,kratePendingFlush:()=>Rn,kratePortalFind:()=>Ai,kratePortalMount:()=>Zn,kratePortalReset:()=>_i,kratePortalScan:()=>lo,kratePortalTarget:()=>Ti,kratePortalUnmount:()=>en,kratePortalsEnter:()=>tt,kratePortalsIn:()=>nt,kratePortalsLeave:()=>ot,kratePruneSnapshots:()=>vn,krateReadAt:()=>Le,krateRefsEnter:()=>Ue,krateRefsFlush:()=>Vn,krateRefsHold:()=>Xt,krateRefsLeave:()=>Ve,krateRenderPhase:()=>hr,krateRequestFlush:()=>Mr,krateRunEvent:()=>Me,krateSanitizeAttr:()=>rt,krateScopeOfId:()=>Pn,krateSetControl:()=>z,krateSetOwner:()=>b,krateSetRef:()=>$t,krateSlotReplaced:()=>Xr,krateSpread:()=>Bi,krateSynthetic:()=>$e,krateTagOwner:()=>ge,krateTakeSyncLane:()=>bn,krateTrackNode:()=>nn,krateTransitionWrites:()=>kr,krateUnmount:()=>B,krateWithContexts:()=>ht,krateWithIdScope:()=>rs,krateWithOwner:()=>qn,mount:()=>Yi,onCleanup:()=>I,onMount:()=>Kr,preconnect:()=>ps,prefetchDNS:()=>gs,preinit:()=>ds,preinitModule:()=>ms,preload:()=>fs,preloadModule:()=>hs,readDurableState:()=>dn,readPersisted:()=>pn,removeRest:()=>Fo,resetContexts:()=>Ce,resolvePersist:()=>fn,runAfterFlush:()=>me,sameValue:()=>vr,setOwnerHooks:()=>fr,subscribePersist:()=>hn,trackEffect:()=>A,untrack:()=>E,useRef:()=>qr,withDOM:()=>Ro,withVNodes:()=>_o,writePersisted:()=>gn});var or=0,gt=Symbol.for("krate.context"),ae=class{constructor(n){this.get=n}};function cn(e){if(e instanceof Node)return e;let n=document.createDocumentFragment();if(Array.isArray(e))for(let t of e)n.appendChild(cn(t));else e!=null&&e!==!1&&e!==!0&&n.appendChild(document.createTextNode(String(e)));return n}var O=new Map;function Ce(){for(let[e,n]of O)if(n.length>0){let t=n[0];O.set(e,[t])}}function rr(){return un({})}function ir(){return un({})}function un(e){let n=or++;O.set(n,[e]);let t=()=>{let c=O.get(n);if(c&&c.length>0){let u=c[c.length-1];return u instanceof ae?u.get():u}return e},o=()=>{let c=O.get(n),u=c&&c.length>0?c[c.length-1]:e;return u instanceof ae?()=>u.get():()=>u},r=c=>{let u=O.get(n)||[e];u.push(c.value),O.set(n,u);let a=document.createElement("div");a.style.display="contents";let f=c.children;if(f)for(let p of Array.isArray(f)?f:[f])p instanceof Node?a.appendChild(p):p!=null&&a.appendChild(document.createTextNode(String(p)));return u.pop(),u.length===0&&u.push(e),a},i=c=>{let u=c.children;return Array.isArray(u)&&(u=u.find(a=>typeof a=="function")),cn(typeof u=="function"?u(t()):null)},s=(c=>r(c));return s.$$typeof=gt,s.id=n,s.defaultValue=e,s.Provider=r,r.__kctxOf=s,s.Consumer=i,s.useContext=t,s.use=t,s.useContextLive=o,s}function sr(e,n){let t=(...o)=>ht(e,()=>n(...o));return t.__kctx=e,t}function ht(e,n){let t=[];for(let[o,r]of e){let i=O.get(o.id);i&&(i.push(new ae(r)),t.push(i))}try{return n()}finally{for(let o=t.length-1;o>=0;o--)t[o].pop()}}function cr(){let e=new Map;return{getItem:n=>e.has(n)?e.get(n):null,setItem:(n,t)=>{e.set(n,t)},removeItem:n=>{e.delete(n)}}}var an=cr();function kt(){return typeof window<"u"}function ln(e){if(e&&typeof e=="object")return e;if(!kt())return an;try{return e==="session"?window.sessionStorage:e==="memory"?an:window.localStorage}catch{return an}}function fn(e){let n=typeof e=="string"?{key:e}:e;if(!n.key)throw new Error("[krate] createSignal persist requires a key");let t=n.store??"local";return{key:n.key,store:t,serialize:n.serialize??(o=>JSON.stringify(o)),deserialize:n.deserialize??(o=>JSON.parse(o)),sync:n.sync??t==="local"}}function dn(e,n){let o=globalThis.__KRATE_STATE__;if(!o||!Object.prototype.hasOwnProperty.call(o,e))return{found:!1};let r=o[e];if(typeof r=="string")try{return{found:!0,value:n(r)}}catch{return{found:!0,value:r}}return{found:!0,value:r}}function pn(e){let n=ln(e.store),t;try{t=n.getItem(e.key)}catch{return{found:!1}}if(t==null)return{found:!1};try{return{found:!0,value:e.deserialize(t)}}catch{return{found:!1}}}function gn(e,n){let t=ln(e.store);try{t.setItem(e.key,e.serialize(n))}catch{}}function ur(e){let n=ln(e.store);try{n.removeItem(e.key)}catch{}}var Ae=new Map,mt=!1;function ar(){mt||!kt()||(mt=!0,window.addEventListener("storage",e=>{if(e.key===null)return;let n=Ae.get(e.key);if(n)for(let t of n)t(e.newValue)}))}function hn(e,n){if(!e.sync)return()=>{};let t=Ae.get(e.key)??new Set;return t.add(n),Ae.set(e.key,t),ar(),()=>{t.delete(n),t.size===0&&Ae.delete(e.key)}}var lr={react:!0},d=[],yt=[],kn=!1,m=null;function fr(e){m=e}var Ne=[],T=new Set,le=[],U=null,wt=new Set,M=new Map;function dr(e){return wt.has(e)?!1:(U=e,h=null,!0)}function pr(){U=null,h=null}function F(){let e=d[d.length-1];return e?e.scope:U!==null?U:h!==null&&M.has(h)?M.get(h)??null:null}function gr(e){wt=new Set(e)}function ge(e,n){e!==null&&!M.has(e)&&M.set(e,n)}var w=[];function G(e){let n=F(),t={fn:e,cleanups:[],disposed:!1,sources:new Set,running:!1,rerun:!1,queued:!1,owner:h,boundaryOwner:m?m.current():null,scope:n};if(h!==null){ge(h,n);let o=K.get(h);o||K.set(h,o=new Set),o.add(t)}return t}var K=new Map,W=new Map;function he(e){let n=K.get(e);if(K.delete(e),n)for(let o of n)On(o),T.delete(o);let t=W.get(e);if(W.delete(e),M.delete(e),t)for(let o of t)try{o()}catch{}}var D=0,S=null,_e=0,$=new Set,fe=new Set;function hr(e){D++;let n=S;S=null;try{return e()}finally{S=n,D--}}function St(){_e++;for(let e of $)e.commit(_e);return $.clear(),_e}function He(){return _e}function Le(e,n){let t=S;S=e;try{return n()}finally{S=t}}function vn(e){for(let n of fe)n.prune(e)||fe.delete(n)}var xn=new Set("auxclick beforeinput blur cancel change click close compositionend compositionstart compositionupdate contextmenu copy cut dblclick dragend dragstart drop focusin focusout input invalid keydown keypress keyup mousedown mouseup paste pause play pointercancel pointerdown pointerup ratechange reset resize seeked select submit touchcancel touchend touchstart volumechange focus".split(" ")),Tn=0,de=!1,Re=0;function mr(){if(Re>0)return!0;let e=typeof window<"u"?window.event:void 0;return!!e&&xn.has(e.type)}var Oe=0;function kr(e){Oe++;try{return e()}finally{Oe--}}function yr(e){return xn.has(e)}function Me(e,n,t){if(!xn.has(e)){t();return}Re++;try{t()}finally{Re--,n&&Re===0&&yn===0&&Tn===0&&(w.length>0||de)&&De()}}function Q(e){Tn+=e?1:-1}function bn(){let e=de;return de=!1,e}function vt(){return d[d.length-1]||null}var h=null;function J(){return h}function b(e){let n=h;return h=e,n}var xt=[],Tt=[],En=[];function Cn(e){xt.push(e)}function An(e){Tt.push(e)}function _n(e){En.push(e)}function Rn(){return w.length>0}function E(e){d.push(null);try{return e()}finally{d.pop()}}function wr(e){Ne.push(e),Ln()}function Sr(){if(Ne.length===0)return;let e=Ne.splice(0);for(let n of e)n()}function vr(e,n){return Object.is(e,n)}function Nn(e){let n=!1,t;for(let o of e.splice(0))try{o()}catch(r){n?typeof console<"u"&&console.error(r):(n=!0,t=r)}if(n)throw t}function pe(e){if(!e.disposed){e.disposed=!0,e.owner!==null&&K.get(e.owner)?.delete(e);for(let n of e.sources)n.delete(e);e.sources.clear(),Nn(e.cleanups)}}function On(e){try{pe(e)}catch(n){typeof console<"u"&&console.error(n)}}function xr(e){if(e.length===0){Et();return}let n=new Set(e);bt(t=>!(t!=null&&n.has(t)),!0)}function Tr(e){if(e.length===0)return;let n=new Set(e);bt(t=>t!=null&&n.has(t),!1)}function Pn(e){if(e.charCodeAt(0)!==95)return null;let n=e.indexOf("_",1);return n>0?e.slice(0,n+1):null}function bt(e,n){for(let s of En)try{s(e)}catch(c){typeof console<"u"&&console.error(c)}for(let s of Array.from(T))e(s.scope)&&(On(s),T.delete(s));let t=[];for(let s of le.splice(0)){if(!e(s.scope)){t.push(s);continue}try{s.fn()}catch{}}le.push(...t);let o=new Set([...W.keys(),...K.keys()]);for(let s of o)e(M.get(s)??null)&&he(s);if(!n)return;let r=globalThis,i=r.__krate_island_cleanups;if(Array.isArray(i)){r.__krate_island_cleanups=[];for(let s of i)try{s()}catch{}}U=null,Ce()}function Et(){U=null;for(let t of En)try{t(null)}catch(o){typeof console<"u"&&console.error(o)}for(let t of T)On(t);T.clear();for(let t of le)try{t.fn()}catch{}le.length=0;for(let t of Array.from(W.keys()))he(t);K.clear(),M.clear(),$.clear(),fe.clear(),S=null;let e=globalThis,n=e.__krate_island_cleanups;if(Array.isArray(n)){e.__krate_island_cleanups=[];for(let t of n)try{t()}catch{}}w.length=0,Ne.length=0,P=0,X++,de=!1,Ce()}function br(e,n){return Fe(v(e))}function Er(e,n){return Fe(v(e))}function Cr(e,n){let t={};for(let i of e){let[s]=v(!1);t[i]=s}let r=[t,(i,s)=>{}];return r.trigger=i=>({"data-krate-scope":"trigger",value:i}),r.panel=i=>({"data-krate-scope":"panel",value:i}),r.close=()=>({"data-krate-scope":"close"}),r}function Ar(e,n){return Fe(v(e))}function _r(e,n){return Fe(v(e))}function Fe(e){let n=e;return n.trigger=t=>({"data-krate-scope":"trigger",value:t}),n.panel=t=>({"data-krate-scope":"panel",value:t}),n.close=()=>({"data-krate-scope":"close"}),n.current=()=>e[0](),n}function Rr(e,n){let t=()=>e[0];return[{top:t,peek:t},{push:o=>{},pop:()=>{},clear:()=>{}}]}function v(e,n){let t=e,o=null;if(n?.persist){o=fn(n.persist);let l=dn(o.key,o.deserialize);if(l.found)t=l.value;else{let g=pn(o);g.found&&(t=g.value)}}let r=new Set,i=!!n?.react,s=t,c=null,u=i?{commit(l){Object.is(s,t)||(c||(c=[[0,s]]),c.push([l,t]),s=t,fe.add(u))},prune(l){if(!c)return!1;for(;c.length>1&&c[1][0]<=l;)c.shift();return c.length===1?(c=null,!1):!0}}:null,a=l=>{if(!c)return s;for(let g=c.length-1;g>=0;g--)if(c[g][0]<=l)return c[g][1];return c[0][1]},f=()=>{let l=d[d.length-1];if(l&&!l.disposed&&(r.add(l),l.sources.add(r)),i){if(S!==null)return a(S);if(D===0)return s}return t},p=(l=!1)=>Ct(r,l),_=l=>{let g=typeof l=="function"?l(t):l;Object.is(g,t)||(t=g,o&&gn(o,t),u&&$.add(u),p(i))};if(o&&o.sync){let l=o,g=hn(l,ue=>{if(ue!==null)try{let be=l.deserialize(ue);Object.is(be,t)||(t=be,p())}catch{}});I(g)}return Hn.add(f),[f,_]}function Ct(e,n=!1){let t=Array.from(e);for(let o of t){if(o.disposed){e.delete(o);continue}if(o.mark){o.mark(n);continue}if(o.running){o.rerun=!0;continue}o.queued||(o.queued=!0,w.push(o))}Ln(n)}var At=new WeakSet;function Nr(e,n){let t,o=!0,r=new Set,i=G(()=>{});i.mark=u=>{o||(o=!0,Ct(r,u))},T.add(i);let s=()=>{let u=d[d.length-1];if(u&&!u.disposed&&(r.add(u),u.sources.add(r)),(D===0||S!==null)&&($.size>0||S!==null&&fe.size>0))return E(e);if(o&&!i.disposed){for(let a of i.sources)a.delete(i);i.sources.clear(),o=!1,d.push(i);try{n&&n(),t=e()}catch(a){throw o=!0,a}finally{d.pop()}}else if(i.disposed)return E(e);return t},c=d[d.length-1];return c&&c.cleanups.push(()=>{pe(i),T.delete(i)}),At.add(s),Hn.add(s),s}function Ke(e){return typeof e=="function"&&At.has(e)}function Or(e){return Ke(e)?e:()=>e}var Hn=new WeakSet;function Pr(e){return typeof e=="function"&&Hn.has(e)}var P=0,X=0;function Ln(e=!1){let n=Oe===0&&mr();n&&(de=!0);let o=!(e||Oe>0)||n||Tn>0||D>0||typeof setTimeout!="function";if(P===1||!o&&P===2)return;let r=++X,i=()=>{r===X&&Mn()};o?(P=1,queueMicrotask(i)):(P=2,setTimeout(i,0))}var yn=0;function Mn(){yn++;try{Hr()}finally{yn--}}function Hr(){P=0,X++;let e=!1,n,t=r=>{e?typeof console<"u"&&console.error(r):(e=!0,n=r)};for(let r of xt)r();let o=0;for(;w.length>0&&o<_t;o++){let r=w.splice(0);wn=r;for(let i of r)if(!i.disposed){i.queued=!1,i.rerun=!1;try{Pe(i)}catch(s){t(s)}if(i.rerun&&!i.disposed){i.rerun=!1;try{Pe(i)}catch(s){t(s)}}}}if(w.length>0)try{Sn()}catch(r){t(r)}if(w.length===0&&(P=0,X++),w.length===0){for(let r of Rt)try{r()}catch(i){t(i)}if(w.length>0){if(mn>=50)try{Sn()}catch(r){throw t(r),n}mn++;try{Mn()}catch(r){t(r)}finally{mn--}if(e)throw n;return}try{me()}catch(r){t(r)}}if(e)throw n}var _t=100,wn=[];function Sn(){let e=w.splice(0);for(let r of e)r.queued=!1;P=0,X++;let n=e.length>0?e:wn;wn=[];let t=Array.from(new Set(n.map(r=>r.fn.name||"anonymous effect"))).slice(0,3).join(", "),o=new Error("Maximum update depth exceeded. An effect keeps writing state that re-runs itself or another effect ("+t+"). Make the write conditional or remove the dependency that changes on every run.");for(let r of n)if(r.boundaryOwner&&m&&m.error(r.boundaryOwner,o))return;throw o}var Rt=[],mn=0;function Lr(e){Rt.push(e)}function Mr(){Ln()}function me(){$.size>0&&St(),typeof document<"u"&&document.activeElement;for(let e of Tt)e();Sr()}function De(){if(w.length===0){me();return}let e=0;for(;w.length>0;)e++>=_t&&Sn(),Mn()}function Pe(e){e.running=!0;let n=!1,t=h;h=e.owner,D++;let o=S;S=null;try{Nn(e.cleanups);for(let i of e.sources)i.delete(e);e.sources.clear(),d.push(e),n=!0;let r=e.fn();typeof r=="function"&&e.cleanups.push(r)}catch(r){if(!(e.boundaryOwner&&m&&m.error(e.boundaryOwner,r)))throw r}finally{S=o,D--,h=t,n&&d.pop(),e.running=!1}}function y(e){let n=G(e);T.add(n);let t=d[d.length-1],o=()=>{pe(n),T.delete(n)};return n.boundaryOwner&&m&&m.cleanup(n.boundaryOwner,o),Pe(n),t&&!t.disposed?t.cleanups.push(o):t&&t.root&&Fn(t,o),o}function I(e){let n=vt();if(n){Fn(n,e);return}let t=m?m.current():null;if(t&&m)m.cleanup(t,e);else if(h!==null){ge(h,F());let o=W.get(h);o||W.set(h,o=[]),o.push(e)}else le.push({fn:e,scope:F()})}function Fn(e,n){if(e.dead){n();return}e.cleanups.push(n)}function Fr(e){let n=G(()=>{});n.disposed=!0,n.root=!0;let t=()=>{if(n.dead)return;n.dead=!0;let o=n.cleanups.splice(0);for(let r of o)try{r()}catch(i){console.error(i)}};d.push(n);try{return e(t)}finally{d.pop()}}function Kr(e){yt.push({fn:e,owner:d[d.length-1],boundary:m?m.current():null}),kn||(kn=!0,queueMicrotask(Dr))}function Dr(){kn=!1;let e=yt.splice(0);for(let{fn:n,owner:t,boundary:o}of e){let r=()=>{if(!t){n();return}if(t.dead||!t.root&&t.disposed)return;let i=G(()=>{});i.disposed=!0,d.push(i);try{n()}finally{d.pop()}for(let s of i.cleanups)Fn(t,s)};o&&m?m.run(o,r):r()}}function Ir(e){let[n,t]=v(void 0),o=!0,r=G(()=>{});T.add(r);let i=()=>{Nn(r.cleanups);for(let p of r.sources)p.delete(r);r.sources.clear(),o=!1,d.push(r);let f;try{f=e()}catch(p){throw o=!0,p}finally{d.pop()}t(f)},s=G(()=>{o&&!r.disposed&&i()});T.add(s),r.mark=()=>{o=!0,!s.queued&&!s.disposed&&(s.queued=!0,w.push(s))},Pe(s);let c=()=>(o&&!r.disposed&&i(),n()),u=vt(),a=()=>{r.disposed||(pe(r),T.delete(r),pe(s),T.delete(s))};return u?u.cleanups.push(a):s.boundaryOwner&&m&&m.cleanup(s.boundaryOwner,a),c}function jr(e,n,t,o){t&&typeof t=="object"&&(o=t,t=void 0);let r=typeof t=="function"?t(n):n,[i,s]=v(r,o);return[i,u=>s(a=>e(a,u))]}function qr(e){return{current:e}}function Br(e){return n=>e(n,n.ref||(()=>{}))}var k=je(null,null),C=new Map,R=new Map,q=new Set,N=new Set,zr=0,Ie=!1,H=null,L=[],j=[],Y=[],Z=new Map,Pt=[];function je(e,n){let t=n&&n.parent!==null?n.scope:n?F():null,o={id:e,parent:n,children:[],hooks:[],disposed:!1,shown:!0,conds:[],slot:null,record:null,scope:t};return n&&ge(o,t),o}function Vr(e){Pt.push(e)}function Ur(e){return qe(e).id}function qe(e){return e&&typeof e=="object"&&"hooks"in e?e:k}function ee(e){for(let n=e;n;n=n.parent)if(n.disposed||!n.shown)return!1;return!0}function Ht(e){for(let[n,t]of e.conds){let o=R.get(n);if(o!==void 0&&o!==t)return!1}return!0}function Gr(e,n,t,o){if(e==null){b(null);return}let r=C.get(e);if(!r){let i=n!=null&&C.get(n)||k;r=je(e,i);for(let s=i;s;s=s.parent)s.disposed&&(r.disposed=!0);i.children.push(r),C.set(e,r);for(let[s,c,u]of t||[])r.conds.push([s,c]),R.has(s)||R.set(s,u?c:c==="c"?"a":"c");r.shown=Ht(r),o&&(r.slot=o,q.has(o)&&(r.disposed=!0))}b(r)}function qn(e){let n=qe(J()),t=je(null,n);n.children.push(t);let o=b(t);try{return{value:e(),owner:t}}finally{b(o)}}function B(e){let n=qe(e);if(n===k||n.disposed)return;let t=ee(n),o=[];if(Be(n,t,o),n.parent){let r=n.parent.children,i=r.indexOf(n);i!==-1&&r.splice(i,1)}o.length&&(L.push(...o),Bn())}function Be(e,n,t){e.disposed=!0;for(let o of e.hooks){if(o.stop(),N.delete(o),!n){o.mounted&&(o.mounted=!1,o.cleanup=null,jn(o.epoch));continue}if(o.phase==="passive"){let r=ke(o);r&&t.push(r)}else ne(o)}for(let o of Pt)o(e,e.id);he(e),e.record&&e.record.owner===e&&(e.record.owner=null);for(let o of e.children.slice())Be(o,n&&o.shown,t)}function Wr(e){let n=C.get(e);n&&(B(n),C.delete(e))}function $r(e,n,t,o,r){let i={id:e,parentId:n,conds:[],slot:o||null,fn:r,owner:null};for(let[s,c,u]of t||[])i.conds.push([s,c]),R.has(s)||R.set(s,u?c:c==="c"?"a":"c");Y.push(i),Kn(i)&&Mt(i)}function Lt(e){if(e.parentId==null)return k;let n=C.get(e.parentId);if(!n)return k;for(let t=n;t;t=t.parent)if(t.disposed)return null;return n}function Kn(e){if(e.slot&&q.has(e.slot))return!1;for(let[n,t]of e.conds){let o=R.get(n);if(o!==void 0&&o!==t)return!1}return Lt(e)!==null}function Mt(e){let n=Lt(e)||k,t=je(e.id,n);t.record=e,t.slot=e.slot,n.children.push(t),C.set(e.id,t),e.owner=t;let o=b(t);try{E(e.fn)}finally{b(o)}}function Xr(e){if(!q.has(e)){q.add(e);for(let n of Array.from(C.values()))n.slot===e&&B(n)}}function Qr(e,n){if(R.get(e)===n)return;R.set(e,n);for(let r of Y)r.owner&&!r.owner.disposed&&!Kn(r)&&B(r.owner);for(let r of Y)!r.owner&&Kn(r)&&Mt(r);let t=[];for(let r of C.values())!r.record&&r.conds.some(([i])=>i===e)&&t.push(r);let o=[];for(let r of t){let i=Ht(r);if(i===r.shown)continue;let s=ee(r);r.shown=i;let c=ee(r);s&&!c?Ft(r,o):!s&&c&&Kt(r)}o.length&&(L.push(...o),o=[],Bn()),qt()}function Ft(e,n){for(let t of e.hooks)if(N.delete(t),t.phase==="passive"){let o=ke(t);o&&n.push(o)}else ne(t);for(let t of e.children)t.shown&&!t.disposed&&Ft(t,n)}function Kt(e){for(let n of e.hooks)jt(n);for(let n of e.children)n.shown&&!n.disposed&&Kt(n)}function Dt(e,n){if(!e||!n||e.length!==n.length)return!1;for(let t=0;t<e.length;t++)if(!Object.is(e[t],n[t]))return!1;return!0}function It(e){if(e!=null)return Array.isArray(e)?e:Array.from(e)}function jt(e){e.dirty=!0,N.add(e),qt()}function qt(){Ie||(Ie=!0,queueMicrotask(()=>{Rn()||(te(),me())}))}function Jr(e,n,t="passive"){let o=qe(J()),r={owner:o,phase:t,fn:e,deps:n||null,prev:void 0,hasPrev:!1,cleanup:null,mounted:!1,epoch:0,dirty:!1,seq:zr++,stop:()=>{},scope:o===k?F():o.scope};o.hooks.push(r),!o.disposed&&(r.stop=y(()=>{let i=r.deps?It(r.deps()):[];r.hasPrev&&Dt(r.prev,i)||(r.prev=i,r.hasPrev=!0,ee(r.owner)&&jt(r))}))}function Dn(e,n){if(e.owner.disposed)return;let t;try{t=Le(n,()=>E(e.fn))}catch(o){Bt(o,e.owner);return}e.cleanup=typeof t=="function"?t:null,e.mounted=!0,e.epoch=n,Z.set(n,(Z.get(n)||0)+1)}var In=null;function Yr(e){In=e}function Bt(e,n){let t=null;for(let o=n;o&&t===null;o=o.parent)t=o.id;if(!(In&&In(e,t)))throw e}function zt(e,n){try{E(e)}catch(t){Bt(t,n)}}function Vt(e){if(!e.mounted)return null;e.mounted=!1;let n=e.epoch,t=e.cleanup;return e.cleanup=null,t?()=>{try{Le(n,()=>E(t))}finally{jn(n)}}:(jn(n),null)}function jn(e){let n=(Z.get(e)||1)-1;n>0?Z.set(e,n):Z.delete(e)}function ne(e){let n=Vt(e);n&&zt(n,e.owner)}function ke(e){let n=Vt(e);return n?()=>zt(n,e.owner):null}function Nt(){let e=He();for(let n of Z.keys())n<e&&(e=n);vn(e)}function Zr(e){let n=new Map,t=0,o=r=>{for(let i of r.children)o(i);n.set(r,t++)};for(let r of k.children)o(r);return n.set(k,t++),Array.from(e).sort((r,i)=>{let s=n.get(r.owner)??t,c=n.get(i.owner)??t;return s!==c?s-c:r.seq-i.seq})}var Ut=[];function ei(e){Ut.push(e)}function Ot(){for(let e of Ut)e()}function ni(){Ie=!1;let e=He(),n=bn();if(N.size===0){Ot(),n&&te(),Nt();return}let t=Zr(N).filter(o=>ee(o.owner));N.clear();for(let o of t)o.dirty=!1;Q(!0);try{let o=0;for(;o<t.length;){let i=t[o].owner,s=o;for(;s<t.length&&t[s].owner===i;)s++;for(let c=o;c<s;c++)t[c].phase==="insertion"&&(ne(t[c]),Dn(t[c],e));for(let c=o;c<s;c++)t[c].phase==="layout"&&ne(t[c]);o=s}for(let i of t)i.phase==="layout"&&Dn(i,e);Ot();let r=!1;for(let i of t){if(i.phase!=="passive")continue;let s=ke(i);s&&L.push(s),j.push([i,e]),r=!0}r&&Bn(),n&&te()}finally{Q(!1)}Nt()}function Bn(){H===null&&(H=setTimeout(te,0))}function te(){H!==null&&(clearTimeout(H),H=null);let e=!1,n,t=o=>{e?typeof console<"u"&&console.error(o):(e=!0,n=o)};for(;L.length||j.length;){let o=L,r=j;L=[],j=[],Q(!0);try{for(let i of o)try{i()}catch(s){t(s)}for(let[i,s]of r)if(ee(i.owner))try{Dn(i,s)}catch(c){t(c)}}finally{Q(!1)}}if(e)throw n}function Gt(e,n){let t,o=!1,r;return()=>{let i=It(n())||[];return(!o||!Dt(t,i))&&(t=i,o=!0,r=E(e)),r}}function ti(e){return function(...t){return E(()=>e.apply(this,t))}}function oi(e,n){let t=!0;return Gt(()=>{if(t)return t=!1,e;let o=e;return function(...r){return o.apply(this,r)}},n)}function ri(e){if(e&&typeof e=="object"){let n=Object.getPrototypeOf(e);if(n===Object.prototype||n===null){let t=[];for(let o of Object.keys(e))o!=="children"&&t.push(e[o]);return t}}return[e]}function ii(e){let n=[];for(let r of k.children.slice()){if(!e(r.scope))continue;Be(r,r.shown,n);let i=k.children.indexOf(r);i!==-1&&k.children.splice(i,1)}let t=[];for(let r of k.hooks){if(!e(r.scope)){t.push(r);continue}if(r.stop(),N.delete(r),r.phase==="passive"){let i=ke(r);i&&n.push(i)}else ne(r)}k.hooks=t;for(let[r,i]of Array.from(C))(i.disposed||e(i.scope))&&C.delete(r);let o=r=>!e(Pn(r));for(let r of Array.from(R.keys()))o(r)||R.delete(r);for(let r of Array.from(q))o(r)||q.delete(r);for(let r=Y.length-1;r>=0;r--)o(Y[r].id)||Y.splice(r,1);for(let r of Array.from(N))r.owner.disposed&&N.delete(r);j=j.filter(([r])=>!r.owner.disposed&&!(r.owner===k&&e(r.scope)));for(let r of n)try{E(r)}catch{}b(null)}function si(e){if(e){ii(e);return}let n=[];for(let o of k.children.slice())Be(o,o.shown,n);for(let o of k.hooks)if(o.stop(),o.phase==="passive"){let r=ke(o);r&&n.push(r)}else ne(o);k.children.length=0,k.hooks.length=0,C.clear(),R.clear(),q.clear(),N.clear(),j=[];let t=L.concat(n);L=[],H!==null&&(clearTimeout(H),H=null);for(let o of t)try{E(o)}catch{}Ie=!1,b(null)}Cn(te);An(ni);_n(si);var ye=new Set;function Wt(e){let n,t=!1;if(y(()=>{try{e()}catch(o){n=o,t=!0}})(),t)throw n}function ze(e){if(e.on)return;e.on=!0;let n=e.ref;Wt(()=>{if(typeof n=="function"){let t=n(e.el);e.undo=typeof t=="function"?t:()=>n(null)}else if(n&&typeof n=="object")n.current=e.el,e.undo=()=>{n.current=null};else if(e.assign){let t=e.assign;t(e.el),e.undo=()=>t(null)}else e.undo=null})}function zn(e){if(!e.on)return;e.on=!1;let n=e.undo;e.undo=null,n&&Wt(n)}function $t(e,n){let t={el:n,ref:e,on:!1,undo:null};return ze(t),()=>zn(t)}var oe=null;function Xt(){oe||(oe=[],queueMicrotask(Vn))}function Vn(){let e=oe;if(oe=null,!!e)for(let n of e)ye.has(n)&&n.el.isConnected&&ze(n)}function we(e,n,t,o){let r={el:e,ref:n,assign:t,on:!1,undo:null};return ye.add(r),o==="defer"&&oe?oe.push(r):(o==="now"||e.isConnected)&&ze(r),()=>{ye.delete(r),zn(r)}}function Ve(e){for(let n of ye)n.on&&e.contains(n.el)&&zn(n)}function Ue(){for(let e of ye)!e.on&&e.el.isConnected&&ze(e)}var ci={doubleclick:"dblclick",focus:"focusin",blur:"focusout"},ui={dblclick:"doubleclick",focusin:"focus",focusout:"blur"},ai={focusin:"focus",focusout:"blur"},li=new Set("scroll scrollend load error abort cancel close invalid toggle beforetoggle mouseenter mouseleave pointerenter pointerleave canplay canplaythrough durationchange emptied encrypted ended loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" ")),eo={change:["change","input","click"],beforeinput:["beforeinput","compositionend"]},fi={preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()},stopPropagation(){this._s=!0,this.nativeEvent.stopPropagation()},isDefaultPrevented(){return this.defaultPrevented},isPropagationStopped(){return!!this._s},persist(){},isPersistent(){return!0}},di={get(e,n){if(n in e)return e[n];let t=e.nativeEvent,o=t[n];return typeof o=="function"?o.bind(t):o}};function $e(e,n,t){let o=Object.create(fi),r=t===void 0?e.target:t;return r&&r.nodeType===3&&(r=r.parentNode),o.type=n||ai[e.type]||e.type,o.target=r,o.currentTarget=null,o.nativeEvent=e,o.defaultPrevented=e.defaultPrevented,new Proxy(o,di)}var Un,Ge=!1;function no(e,n){try{e(n)}catch(t){Ge||(Ge=!0,Un=t)}}function to(){if(Ge){let e=Un;throw Ge=!1,Un=void 0,e}}function Qn(e,n,t,o,r){let i=[],s=[];for(let a=t;a;a=a.__kpp||a.parentNode){let f=a.__kh;if(!f)continue;let p;o&1&&(p=f[n+"$"])&&i.unshift(a,p),o&2&&(p=f[n])&&s.push(a,p)}if(!i.length&&!s.length)return null;let c=$e(e,r,t),u=i.concat(s);for(let a=0;a<u.length&&!c._s;a+=2)c.currentTarget=u[a],no(u[a+1],c);return c.currentTarget=null,c}var Qt=new WeakMap,Gn=new Set,oo=new Set;function pi(){return typeof document>"u"?null:document.getElementById("root")||document.body}function Wn(e,n){let t=Qt.get(e);t||(t=new Set,Qt.set(e,t)),!t.has(n)&&(t.add(n),e.addEventListener(n,gi,!0),e.addEventListener(n,hi,!1))}function $n(e){oo.add(e);let n=pi();n&&(Gn.add(n),Wn(n,e));for(let t of Gn)t!==n&&t.isConnected&&Wn(t,e)}function Xe(e){Gn.add(e);for(let n of oo)Wn(e,n)}function gi(e){ro(e,!0)}function hi(e){ro(e,!1)}var We=0;function mi(e){We++;try{return e()}finally{We--}}function ro(e,n){if(We>0)return;let t=n?"__kdc":"__kdb",o=e;if(o[t])return;o[t]=1;let r=e.type,i=e.target;Me(r,!n,()=>{r!=="change"&&r!=="beforeinput"&&Qn(e,ui[r]||r,i,n?1:2),n||(r==="change"||r==="input"||r==="click"?vi(e):(r==="beforeinput"||r==="compositionend")&&xi(e))}),to()}function ki(e){io(this,e,!1)}function yi(e){io(this,e,!0)}function io(e,n,t){if(We>0)return;let o=e.__kh,r=o&&o[n.type+(t?"$":"")];if(!r)return;let i=$e(n);i.currentTarget=e,Me(n.type,!0,()=>no(r,i)),i.currentTarget=null,to()}function Jn(e){let n=e.slice(2),t=!1;return n.length>7&&n.slice(-7)==="Capture"&&!/^(Got|Lost)PointerCapture$/.test(n)&&(n=n.slice(0,-7),t=!0),[n.toLowerCase(),t]}function Se(e,n,t){let[o,r]=Jn(n),i=e,s=i.__kh||(i.__kh={}),c=o+(r?"$":"");if(typeof t!="function"){s[c]=void 0;return}if(s[c]=t,li.has(o)){let a=i.__kd||(i.__kd={});a[c]||(a[c]=1,e.addEventListener(o,r?yi:ki,r));return}let u=eo[o];if(u){for(let a of u)$n(a);o==="change"&&uo(e)}else $n(ci[o]||o)}function Qe(e){let n=e.querySelectorAll("input[value]");for(let t=0;t<n.length;t++){let o=n[t];if(!so.has(o.type||"text")||!o.value||o.ownerDocument.activeElement===o)continue;let r=o.value;o.value="",o.value=r}}var so=new Set("color date datetime datetime-local email month number password range search tel text time url week".split(" "));function Yn(e){return e.tagName==="INPUT"&&(e.type==="checkbox"||e.type==="radio")}function co(e){return Yn(e)?String(e.checked):String(e.value)}function uo(e){e.__kv===void 0&&(e.tagName==="INPUT"||e.tagName==="TEXTAREA")&&(e.__kv=co(e))}function Xn(e){let n=co(e);return e.__kv===n?!1:(e.__kv=n,!0)}function wi(e){if(!e.name||!e.ownerDocument)return[e];let n=[],t=e.ownerDocument.getElementsByName(e.name);for(let o=0;o<t.length;o++){let r=t[o];r.tagName==="INPUT"&&r.type==="radio"&&r.form===e.form&&n.push(r)}return n}function Si(e){let n=e.target;if(!n||!n.tagName)return null;let t=e.type,o=n.tagName;return o==="SELECT"||o==="INPUT"&&n.type==="file"?t==="change"?n:null:Yn(n)?t==="click"&&Xn(n)?n:null:(o==="TEXTAREA"||o==="INPUT"&&so.has(n.type||"text"))&&t!=="click"&&Xn(n)?n:null}function vi(e){let n=Si(e);if(n)if(Qn(e,"change",n,3,"change"),n.type==="radio")for(let t of wi(n))Xn(t),Zt(t);else Zt(n)}function xi(e){let n=e;e.type==="beforeinput"&&(n.isComposing||typeof n.data!="string"||n.data==="")||e.type==="compositionend"&&!n.data||Qn(e,"beforeinput",e.target,3,"beforeinput")}function Jt(e,n){e.__kw||(e.__kw=1,console.error(n))}function Yt(e,n,t){let o=e.options;if(e.multiple){let s=new Set((Array.isArray(n)?n:[n]).map(String));for(let c=0;c<o.length;c++){let u=s.has(o[c].value);t?o[c].defaultSelected=u:o[c].selected!==u&&(o[c].selected=u)}return}let r=String(n),i=null;for(let s=0;s<o.length;s++){if(o[s].value===r){t?o[s].defaultSelected=!0:o[s].selected=!0;return}!i&&!o[s].disabled&&(i=o[s])}i&&!t&&(i.selected=!0)}function z(e,n,t){let o=e;switch(n){case"value":{if(t==null)return;if(o.tagName==="SELECT"){Yt(o,t,!1);return}let r=String(t);o.value!==r&&(o.value=r),o.type!=="file"&&!(o.type==="number"&&o.ownerDocument&&o.ownerDocument.activeElement===o)&&o.defaultValue!==r&&(o.defaultValue=r),Yn(o)||(o.__kv=r);return}case"checked":{if(t==null)return;let r=!!t;o.checked!==r&&(o.checked=r),o.__kv=String(r);return}case"defaultValue":o.tagName==="SELECT"?Yt(o,t,!0):o.defaultValue=t==null?"":String(t);return;case"defaultChecked":o.defaultChecked=!!t;return;default:o[n]=!!t}}function Zt(e){let n=e.__kc;n&&(De(),n.value&&z(e,"value",n.value()),n.checked&&z(e,"checked",n.checked()))}function Je(e,n,t){let o=e,r=n==="value"||n==="checked";if(r){(o.__kc||(o.__kc={}))[n]=t;for(let c of eo.change)$n(c);uo(o)}let i,s=!1;return y(()=>{let c=t();if(r){let u=c!=null;c===null&&n==="value"?Jt(o,"`value` prop on `"+o.tagName.toLowerCase()+"` should not be null. Use an empty string to clear it or `undefined` for an uncontrolled field."):i!==void 0&&i!==u&&Jt(o,"A component is changing "+(i?"a controlled":"an uncontrolled")+" input to be "+(u?"controlled":"uncontrolled")+". Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),i=u}z(o,n,c),!s&&n==="value"&&o.tagName==="TEXTAREA"&&o.ownerDocument.activeElement!==o&&o.setSelectionRange(0,0),s=!0})}var ao="template[data-krate-portal]",Ye=new Map,Ze=new Set;function Ti(e,n){Ye.set(e,n)}function bi(e){return!!e&&typeof e=="object"&&(e.nodeType===1||e.nodeType===11)}function Ei(e){let n=e.getAttribute("data-krate-portal")||"",t=Ye.get(n);if(t){let r=null;try{r=t()}catch{r=null}return bi(r)?r:null}let o=e.getAttribute("data-krate-portal-target");if(!o||o==="body")return document.body;try{return document.querySelector(o)}catch{return null}}function Zn(e){if(e.__kpn||!e.isConnected)return;let n=Ei(e);if(!n)return;let t=Array.from(e.content.childNodes),o=document.createDocumentFragment();for(let i of t)i.__kpp=e,o.appendChild(i);n.appendChild(o),e.__kpn=t,Ze.add(e);let r=document.getElementById("root");n.nodeType===1&&!(r&&r.contains(n))&&Xe(n),e.__kpd||(e.__kpd=!0,nn(e,()=>en(e,!0)))}function en(e,n){let t=e.__kpn;if(t){e.__kpn=void 0,Ze.delete(e);for(let o of t)n?o.parentNode&&o.parentNode.removeChild(o):e.content.appendChild(o),o.__kpp=void 0}}function et(e){let n=[];return e.matches?.(ao)&&n.push(e),e.querySelectorAll(ao).forEach(t=>n.push(t)),n}function Ci(e){if(!(typeof document>"u"))for(let n of et(e||document))Zn(n)}function nt(e){return et(e)}function tt(e){for(let n of e)Zn(n)}function ot(e){for(let n of et(e))en(n)}function lo(e,n){let t=e.slice(),o=new Set;for(;t.length;)t.shift().querySelectorAll("template").forEach(i=>{if(o.has(i))return;o.add(i);let s=i;s.hasAttribute("data-krate-portal")&&n(s.content),t.push(s.content)})}function Ai(e,n){for(let o of Ze)for(let r of o.__kpn||[]){if(r.nodeType!==1)continue;let i=r;if(i.matches(e))return i;let s=i.querySelector(e);if(s)return s}let t=null;return lo(n,o=>{t||(t=o.querySelector(e))}),t}function _i(){let e=new Set;for(let n of Array.from(Ze))n.isConnected?e.add(n.getAttribute("data-krate-portal")||""):en(n,!0);for(let n of Array.from(Ye.keys()))e.has(n)||Ye.delete(n)}var re=new Set,po=new WeakMap;function Ri(){return Array.from(re)}function Ni(){let e=new Set,n=!0;for(;n;){n=!1;for(let t of re){if(e.has(t))continue;let o=po.get(t);if(!o)continue;let r=o.getRootNode();(o.isConnected||e.has(r))&&(e.add(t),n=!0)}}for(let t of Array.from(re))e.has(t)||re.delete(t)}function fo(e){let n="/"+(e.nodeValue||"");for(let t=e.nextSibling;t;t=t.nextSibling)if(t.nodeType===8&&t.nodeValue===n)return t;return null}function Oi(e,n,t){let o=e,r=n?"c":"a",i=o.__krateCond;if(!i){let l=t?t.getAttribute("data-kb"):null;i={shown:l==="c"?"a":l==="a"?"c":r,other:null,tpl:t,end:fo(e)},o.__krateCond=i}if(i.shown===r)return;let s=e.parentNode;if(!s)return;(!i.end||i.end.parentNode!==s)&&(i.end=fo(e));let c=i.end,u=document.createDocumentFragment(),a=e.nextSibling;for(;a&&a!==c;){let l=a.nextSibling;u.appendChild(a),a=l}Ve(u),ot(u);let f=i.other;if(!f&&(f=document.createDocumentFragment(),i.tpl&&(f.appendChild(i.tpl.content),i.tpl.getAttribute("data-kns")==="svg"))){let l=f.firstChild;if(l&&l.nodeType===1){for(;l.firstChild;)f.insertBefore(l.firstChild,l);f.removeChild(l)}}re.delete(f);let p=f.querySelector("[autofocus]");Qe(f);let _=nt(f);s.insertBefore(f,c),tt(_),i.other=u,re.add(u),po.set(u,e),i.shown=r,Ue(),p&&(p.removeAttribute("autofocus"),p.focus())}var Pi={href:!0,src:!0,action:!0,formaction:!0,"xlink:href":!0},Hi=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i,go="javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')";function rt(e,n){return Pi[e.toLowerCase()]&&Hi.test(n)?go:n}var Li="__krate_cfg__";function ho(){let e=globalThis;if(e.__KRATE_CFG__)return e.__KRATE_CFG__;let n=e.document,t=n&&typeof n.getElementById=="function"?n.getElementById(Li):null;if(t)try{let o=JSON.parse(t.textContent||"{}");if(o&&typeof o=="object")return e.__KRATE_CFG__=o,o}catch{}return{}}function Mi(){let e=ho(),n=e&&e.basePath||"";return!n||n==="/"?"":"/"+n.replace(/^\/+|\/+$/g,"")}function mo(e){let n=Mi();return n&&e.charCodeAt(0)===47&&e.charCodeAt(1)!==47?n+e:e}var ve=new WeakMap;function A(e,n){nn(e,n)}function nn(e,n){let t=ve.get(e);t||(t=[],ve.set(e,t)),t.push(n)}function So(e,n){let t=()=>B(n);if(typeof DocumentFragment<"u"&&e instanceof DocumentFragment)for(let o=0;o<e.childNodes.length;o++)A(e.childNodes[o],t);else if(typeof Node<"u"&&e instanceof Node)A(e,t);else if(Array.isArray(e))for(let o of e)So(o,n);else ut(e)&&(e.u||(e.u=[])).push(n)}function vo(e,n){if(e.u)for(let t of e.u)A(n,()=>B(t))}function Fi(e,n,t){let o=!0,r=y(()=>{let i=we(e,n?n():void 0,t,o?"defer":void 0);o=!1,I(i)});return A(e,r),r}function se(e){let n=ve.get(e);if(n){for(let t of n)t();n.length=0}for(let t=0;t<e.childNodes.length;t++)se(e.childNodes[t])}function Ki(e){let n=e.nextSibling;for(;n;){if(n.nodeType===8&&n.nodeValue==="k")return n;n=n.nextSibling}return null}function xo(e,n){let t=e.parentNode;if(!t)return;let o=e.nextSibling;for(;o&&o!==n;){let r=o.nextSibling;se(o),t.removeChild(o),o=r}}function Di(e,n,t){let o=Ki(t);o?(xo(t,o),it(e,n,o)):it(e,n,null)}function it(e,n,t){if(!(n==null||n===!1||n===!0)){if(typeof n=="string"||typeof n=="number"||typeof n=="bigint")e.insertBefore(document.createTextNode(String(n)),t);else if(n instanceof Node)e.insertBefore(n,t);else if(Array.isArray(n))for(let o of n)it(e,o,t)}}var Ii={htmlFor:"for"},ji=new Set(["animation-iteration-count","aspect-ratio","border-image-outset","border-image-slice","border-image-width","box-flex","box-flex-group","box-ordinal-group","column-count","columns","flex","flex-grow","flex-positive","flex-shrink","flex-negative","flex-order","grid-area","grid-row","grid-row-end","grid-row-span","grid-row-start","grid-column","grid-column-end","grid-column-span","grid-column-start","font-weight","line-clamp","line-height","opacity","order","orphans","scale","tab-size","widows","z-index","zoom","fill-opacity","flood-opacity","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","stroke-opacity","stroke-width"]);function qi(e){if(e.startsWith("--"))return e;let n=e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase());return n.startsWith("ms-")?"-"+n:n}var ko=new WeakMap;function To(e,n){let t=e.style;if(!t)return;let o=new Set;for(let i of Object.keys(n)){let s=n[i];if(s==null||typeof s=="boolean"||s==="")continue;let c=qi(i),u=c.replace(/^-(webkit|moz|ms|o)-/,""),a=typeof s=="number"&&s!==0&&!c.startsWith("--")&&!ji.has(u)?s+"px":String(s);t.setProperty(c,a),o.add(c)}let r=ko.get(e);if(r)for(let i of r)o.has(i)||t.removeProperty(i);ko.set(e,o)}function bo(e,n,t){if(e.localName.indexOf("-")<1||n.includes("-"))return!1;let o=typeof t=="object"&&t!==null||typeof t=="function";if(!o&&!(n in e))return!1;e[n]=t;let r=typeof customElements<"u"?customElements:null;return o&&r&&!r.get(e.localName)&&typeof r.whenDefined=="function"&&r.whenDefined(e.localName).then(()=>{let i=e;delete i[n],i[n]=t}),!0}function tn(e,n,t){if(!(e.localName.indexOf("-")>0&&n!=="class"&&n!=="className"&&n!=="style"&&n!=="ref"&&n!=="key"&&n!=="children"&&!n.startsWith("on")&&bo(e,n,t))){if(n==="class"||n==="className"){let o=t===!1||t===null||t===void 0?"":String(t);if(e.getAttribute("class")!==o){if(o===""&&!e.hasAttribute("class")&&typeof t!="string")return;e.setAttribute("class",o)}}else if(n==="style")typeof t=="string"?e.getAttribute("style")!==t&&e.setAttribute("style",t):t&&typeof t=="object"?To(e,t):(t==null||t===!1)&&e.removeAttribute("style");else if(n.startsWith("on")&&typeof t=="function")Se(e,n,t);else if(n==="value"||n==="checked"||n==="selected"||n==="defaultValue"||n==="defaultChecked")z(e,n,t);else if(n==="ref"){let o=we(e,t,void 0,"now");A(e,o),I(o)}else if(!(n==="key"||n==="children"||n==="dangerouslySetInnerHTML")){let o=Ii[n]||n,r=/^(aria|data)-/.test(o);if(t==null||typeof t=="function"||typeof t=="symbol"||t===!1&&!r)e.hasAttribute(o)&&e.removeAttribute(o);else{let i=t===!0&&!r?"":rt(o,String(t));e.getAttribute(o)!==i&&e.setAttribute(o,i)}}}}function Eo(e){return"data-krate-no-base"in e?!1:"data-krate-link"in e||"data-krate-external"in e}function ct(e){return typeof e=="string"?mo(e):typeof e=="function"?()=>ct(e()):e}function Co(e,n){for(let o in n){let r=o==="href"&&Eo(n)?ct(n[o]):n[o];typeof r=="function"&&(o==="value"||o==="checked")?A(e,Je(e,o,r)):typeof r=="function"&&!o.startsWith("on")&&o!=="ref"?A(e,y(()=>tn(e,o,r()))):tn(e,o,r)}let t=n.dangerouslySetInnerHTML;if(t&&typeof t=="object"&&t.__html!=null){let o=String(t.__html);e.innerHTML!==o&&(e.innerHTML=o)}}var yo=new WeakMap;function Bi(e,n){A(e,y(()=>{let t=n()||{},o=new Set;for(let i of Object.keys(t)){if(i==="children"||i==="key"||i==="dangerouslySetInnerHTML")continue;o.add(i);let s=i==="href"&&(Eo(t)||e.hasAttribute("data-krate-link")&&!("data-krate-no-base"in t));tn(e,i,s?ct(t[i]):t[i])}let r=yo.get(e);if(r)for(let i of r)o.has(i)||(i.startsWith("on")?Se(e,i,null):tn(e,i,void 0));yo.set(e,o)}))}function Ao(e,n){if(e===void 0)return n();let t=b(e);try{return n()}finally{b(t)}}var V=0;function _o(e){let n=V;V=n+1;try{return e()}finally{V=n}}function Ro(e){let n=V;V=0;try{return e()}finally{V=n}}function ut(e){return!!e&&typeof e=="object"&&e.__kv===1}function No(e){return!!e&&typeof e=="object"&&e.__ka===1}var on="http://www.w3.org/2000/svg",zi=new Set(["svg","g","defs","symbol","use","switch","desc","metadata","path","circle","ellipse","line","polygon","polyline","rect","text","tspan","textPath","image","foreignObject","marker","mask","pattern","clipPath","linearGradient","radialGradient","stop","filter","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","animate","animateMotion","animateTransform","set","mpath","view"]);function Vi(e){return zi.has(e)?document.createElementNS(on,e):document.createElement(e)}function Ui(e){let n=e;return n.namespaceURI===on&&n.localName!=="foreignObject"}function wo(e,n){let t=n;if(t.nodeType!==1||t.namespaceURI===on||!Ui(e))return n;let o=document.createElementNS(on,t.localName);for(let r of Array.from(t.attributes))o.setAttribute(r.name,r.value);for(;t.firstChild;)o.appendChild(t.firstChild);return o}function Oo(e,n,t){let o=Vi(e);if(n&&Co(o,n),!n||!n.dangerouslySetInnerHTML)for(let r of t)xe(o,r);return o}function Po(e){let n=Ao(e.o,()=>Ro(()=>Oo(e.tag,e.props,e.children)));return vo(e,n),n}function at(e){return e==null||typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="bigint"}function lt(e){return e==null||typeof e=="boolean"?"":String(e)}function xe(e,n){if(!(n==null||n===!1||n===!0)){if(Array.isArray(n)){for(let t of n)xe(e,t);return}if(typeof n=="function"){$i(e,n,null);return}if(ut(n)){e.appendChild(wo(e,Po(n)));return}if(No(n)){e.appendChild(n.mount());return}e.appendChild(n instanceof Node?wo(e,n):document.createTextNode(String(n)))}}function Gi(e,n){let t=ve.get(e);if(t){ve.delete(e);for(let o of t)A(n,o)}}function st(e,n){let t=e.parentNode;if(!t)return;let o=e.nextSibling;for(;o&&o!==n;){let r=o.nextSibling;se(o),t.removeChild(o),o=r}}function Wi(e){if(!e.text)return;let n=e.text,t=n.parentNode;e.start=document.createComment(""),e.end=document.createComment(""),t.insertBefore(e.start,n),t.insertBefore(e.end,n.nextSibling),Gi(n,e.start),t.removeChild(n),e.text=null}function Ho(e,n){if(at(n)){let o=lt(n);if(e.text){e.text.data!==o&&(e.text.data=o);return}st(e.start,e.end),o!==""&&e.end.parentNode.insertBefore(document.createTextNode(o),e.end);return}Wi(e),st(e.start,e.end);let t=document.createDocumentFragment();xe(t,n),e.end.parentNode.insertBefore(t,e.end)}function $i(e,n,t){let o={text:null,start:null,end:null},r=!0,i=y(()=>{let s=n();if(!r){Ho(o,s);return}if(r=!1,at(s)){o.text=document.createTextNode(lt(s)),e.insertBefore(o.text,t);return}o.start=document.createComment(""),o.end=document.createComment(""),e.insertBefore(o.start,t);let c=document.createDocumentFragment();xe(c,s),e.insertBefore(c,t),e.insertBefore(o.end,t)});A(o.text||o.start,i)}function Lo(e){for(;e.next&&e.next.nodeType===8;)e.next=e.next.nextSibling}function ie(e,n){e.parent.insertBefore(n,e.next)}function Mo(e,n){Lo(e);let t=e.next;if(n!==""&&t&&t.nodeType===3){let r=t;return r.data.length>n.length&&r.data.startsWith(n)?r.splitText(n.length):r.data!==n&&(r.data=n),e.next=r.nextSibling,r}let o=document.createTextNode(n);return ie(e,o),o}function Fo(e,n){let t=e.next;for(;t&&t!==n;){let o=t.nextSibling;se(t),e.parent.removeChild(t),t=o}e.next=n}function Xi(e,n){Lo(n);let t=n.next;if(t&&t.nodeType===1&&t.localName.toLowerCase()===e.tag.toLowerCase()){n.next=t.nextSibling;let o=t;vo(e,o),Ao(e.o,()=>{if(e.props&&Co(o,e.props),!e.props||!e.props.dangerouslySetInnerHTML){let r={parent:o,next:o.firstChild};for(let i of e.children)rn(i,r);Fo(r,null)}});return}ie(n,Po(e))}function Qi(e,n){let t={text:null,start:null,end:null},o=!0,r=y(()=>{if(!o){Ho(t,e());return}o=!1;let i=_o(e);if(at(i)){t.text=Mo(n,lt(i));return}t.start=document.createComment(""),ie(n,t.start),rn(i,n),t.end=document.createComment(""),ie(n,t.end)});A(t.text||t.start,r)}function rn(e,n){if(!(e==null||typeof e=="boolean")){if(Array.isArray(e)){for(let t of e)rn(t,n);return}if(typeof e=="function"){Qi(e,n);return}if(ut(e)){Xi(e,n);return}if(No(e)){e.adopt(n);return}if(e instanceof Node){ie(n,e);return}Mo(n,String(e))}}function Ji(e,n,...t){if(typeof e=="function"){let o=n||{};(t.length>0||!("children"in o))&&(o.children=t);let{value:r,owner:i}=qn(()=>e(o));return So(r,i),r}return V>0?{__kv:1,tag:e,props:n,children:t,o:J()}:Oo(e,n,t)}function Ko(e){if(typeof e=="string"){let n=document.querySelector(e);if(!n)throw new Error(`Container "${e}" not found`);return n}return e}function Yi(e,n){let t=Ko(n),o=!1;y(()=>{o||(o=!0,t.appendChild(e()))})}function Zi(e,n){let t=Ko(n);if(t.childNodes.length===0){t.appendChild(e());return}let o=e();o&&se(o)}function Do(){return globalThis.__krateSuspenseHook}function es(e,n){let[t,o]=v(void 0),[r,i]=v(!0),[s,c]=v(void 0),[u,a]=v("unresolved"),[f,p]=v(0),_,l=Do()?.current()??null,g=null,ue=null,be=()=>typeof e=="function"?e():e,$o=()=>{let x=Xo();return g=x,x.then(()=>{g===x&&(g=null)}),x},Xo=async()=>{_&&_.abort(),_=new AbortController;let x=_,Qo=be();a(f()>0?"refreshing":"loading"),i(!0),c(void 0);try{let Ee=await n(Qo,{signal:x.signal});x.signal.aborted||(o(()=>Ee),a("ready"))}catch(Ee){Ee?.name!=="AbortError"&&!x.signal.aborted&&(c(Ee),a("error"))}finally{x.signal.aborted||i(!1)}};y(()=>{typeof e=="function"&&e.length===0&&e(),f(),$o(),I(()=>{_&&(_.abort(),_=void 0)})});let pt=function(){return l&&g&&ue!==g&&(ue=g,Do()?.suspend(l,g)),t()};return Object.defineProperties(pt,{loading:{get:()=>r()},error:{get:()=>s()},state:{get:()=>u()}}),[pt,{mutate:x=>{o(x)},refetch:()=>{p(x=>x+1)}}]}function ns(e){return Ke(e)?e():e}var ce=null,ts=0,Io=typeof TextEncoder<"u"?new TextEncoder:null;function os(e){return e.replace(/[^A-Za-z0-9_.:$-]/gu,n=>(Io?Array.from(Io.encode(n)):[n.charCodeAt(0)&255]).map(o=>"%"+o.toString(16).toUpperCase().padStart(2,"0")).join(""))}function rs(e,n){if(!e)return n();let t=ce;ce={prefix:os(e),n:0};try{return n()}finally{ce=t}}function is(){return ce?"krate-"+ce.prefix+"-u"+ce.n++:"krate_u"+ts++}function ft(e,n){let t=[];if(!e)return t;for(let o of n){let r=e[o];if(r==null||r===!1||r===""&&o!=="crossOrigin")continue;let i=o==="crossOrigin"?"crossorigin":o==="fetchPriority"?"fetchpriority":o==="referrerPolicy"?"referrerpolicy":o==="imageSrcSet"?"imagesrcset":o==="imageSizes"?"imagesizes":o;if(o==="crossOrigin"){t.push([i,r==="use-credentials"?r:""]);continue}t.push([i,r===!0?"":String(r)])}return t}function ss(e){return e.replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}function cs(){let e=globalThis[Symbol.for("krate.cache.runtime")],n=e&&e.renderStore;return n&&typeof n.getStore=="function"?n.getStore():void 0}function qo(){let e=cs();if(e)return e.hints??(e.hints=new Set);let n=globalThis.__krate_island_hints;return n instanceof Set?n:void 0}function jo(e){try{return new URL(e,document.baseURI).href}catch{return e}}function us(e,n){let t=s=>{for(let[c,u]of n)if(c===s)return u};if(e==="script"){let s=jo(t("src")||""),c=t("type")==="module";for(let u of Array.from(document.querySelectorAll("script[src]")))if(u.src===s&&u.type==="module"===c)return!0;return!1}let o=t("rel")||"",r=jo(t("href")||""),i=t("as");for(let s of Array.from(document.querySelectorAll("link[href]")))if(s.href===r&&(s.getAttribute("rel")||"").toLowerCase()===o&&!(o==="preload"&&(s.getAttribute("as")||"")!==(i||"")))return!0;return!1}function as(e,n){let t=n.map(([o,r])=>r===""&&o!=="crossorigin"?" "+o:" "+o+'="'+ss(r)+'"').join("");return e==="link"?"<link"+t+">":"<script"+t+"><\/script>"}function dt(e,n){if(typeof document>"u"){qo()?.add(as(e,n));return}if(us(e,n))return;let t=document.createElement(e);for(let[o,r]of n)t.setAttribute(o,r);document.head.appendChild(t)}function Te(e,n,t,o){!n||typeof n!="string"||dt("link",[["rel",e],["href",n],...ft(t,o)])}function ls(e){if(typeof document<"u")return;let n=qo();if(n)for(let t of e)n.add(t)}function Bo(e,n){Te("preload",e,n,["as","crossOrigin","integrity","type","media","nonce","fetchPriority","referrerPolicy","imageSrcSet","imageSizes"])}function zo(e,n){Te("modulepreload",e,n,["as","crossOrigin","integrity","nonce"])}function Vo(e,n){Te("preconnect",e,n,["crossOrigin"])}function Uo(e){Te("dns-prefetch",e,void 0,[])}function Go(e,n){if(!(!e||typeof e!="string")){if(n&&n.as==="script"){dt("script",[["src",e],["async",""],...ft(n,["crossOrigin","integrity","nonce","fetchPriority"])]);return}Te("stylesheet",e,n,["crossOrigin","integrity","media","nonce","fetchPriority"])}}function Wo(e,n){!e||typeof e!="string"||dt("script",[["type","module"],["src",e],["async",""],...ft(n,["crossOrigin","integrity","nonce"])])}var fs=Bo,ds=Go,ps=Vo,gs=Uo,hs=zo,ms=Wo;function ks(e){return e()}return tr(ys);})();
|
|
2
2
|
for (const k in __krate_exports) { window[k] = __krate_exports[k]; }
|