@deslop/deploy 0.1.1296 → 0.1.1298
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/client/assets/(home)-DHCnCowx.js +2 -0
- package/dist/client/assets/-marks-DHJR-96V.js +1 -0
- package/dist/client/assets/dropdown-menu-H4zmqMj0.js +1 -0
- package/dist/client/assets/effect-DDyRjlEL.js +17 -0
- package/dist/client/assets/index-BNQFB9FP.js +2 -0
- package/dist/client/assets/{react-CUZAqdXP.js → react-BPjvcVqE.js} +3 -3
- package/dist/client/assets/route-BMTtjUJp.js +1 -0
- package/dist/client/assets/schema-BUkx3zzZ.js +2 -0
- package/dist/client/assets/utils-DoaQsY-4.js +1 -0
- package/dist/client/index.html +5 -5
- package/dist/server.js +26797 -23102
- package/package.json +2 -2
- package/dist/client/assets/(home)-D9c66z4O.js +0 -2
- package/dist/client/assets/-expose-K4JxYjaH.js +0 -1
- package/dist/client/assets/dropdown-menu-Dcq6ND9h.js +0 -1
- package/dist/client/assets/effect-r9fOwH_L.js +0 -16
- package/dist/client/assets/index-BKWpGXRr.js +0 -2
- package/dist/client/assets/route-BhpxuqB9.js +0 -1
- package/dist/client/assets/schema-BkrFEFT3.js +0 -2
- package/dist/client/assets/utils-USd0nOYy.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{a as t,n,o as r}from"./react-BPjvcVqE.js";import{o as i}from"./index-BNQFB9FP.js";import{d as a,g as o,r as s}from"./schema-BUkx3zzZ.js";import{In as c,Ln as l,U as u,W as d,dr as f,ei as p,hi as m,mi as h,pi as g,si as _,yr as v}from"./effect-DDyRjlEL.js";import{A as y,D as b,E as x,F as S,Gt as C,I as w,Kt as T,Mt as E,N as D,O,Sn as k,T as A,Tn as j,U as M,_ as N,_n as P,a as F,at as I,b as L,c as R,en as z,g as B,h as V,i as ee,it as te,jt as ne,k as H,l as U,lt as W,m as G,n as re,nn as ie,on as ae,ot as oe,r as se,s as ce,st as le,t as ue,tt as de,un as fe,ut as pe,v as me,w as he,wn as ge,x as _e,y as ve}from"./-marks-DHJR-96V.js";import{B as ye,_ as K,a as q,c as J,d as be,h as xe,s as Se,t as Y,v as Ce,y as we}from"./utils-DoaQsY-4.js";var X=e(r(),1),Te=new Map([[`bold`,X.createElement(X.Fragment,null,X.createElement(`path`,{d:`M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z`}))],[`duotone`,X.createElement(X.Fragment,null,X.createElement(`path`,{d:`M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z`,opacity:`0.2`}),X.createElement(`path`,{d:`M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z`}))],[`fill`,X.createElement(X.Fragment,null,X.createElement(`path`,{d:`M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z`}))],[`light`,X.createElement(X.Fragment,null,X.createElement(`path`,{d:`M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z`}))],[`regular`,X.createElement(X.Fragment,null,X.createElement(`path`,{d:`M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z`}))],[`thin`,X.createElement(X.Fragment,null,X.createElement(`path`,{d:`M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z`}))]]),Ee=X.forwardRef((e,t)=>X.createElement(ye,{ref:t,...e,weights:Te}));Ee.displayName=`XIcon`;var De=X.createContext(void 0);function Z(e){let t=X.useContext(De);if(!e&&t===void 0)throw Error(xe(27));return t}var Oe=X.forwardRef(function(e,t){let{render:n,className:r,style:i,forceRender:a=!1,...o}=e,s=Z(),c=s.useState(`open`),l=s.useState(`nested`),u=s.useState(`mounted`),d={open:c,transitionStatus:s.useState(`transitionStatus`)};return q(`div`,e,{state:d,ref:[s.context.backdropRef,t],stateAttributesMapping:E,props:[{role:`presentation`,hidden:!u,style:{userSelect:`none`,WebkitUserSelect:`none`}},o],enabled:a||!l})}),ke=X.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,...s}=e,c=Z(),l=c.useState(`open`),{getButtonProps:u,buttonRef:d}=be({disabled:a,native:o}),f={disabled:a};function p(e){l&&c.setOpen(!1,P(ie,e.nativeEvent))}return q(`button`,e,{state:f,ref:[t,d],props:[{onClick:p},s,u]})}),Ae=X.createContext(void 0);function je(){let e=X.useContext(Ae);if(e===void 0)throw Error(xe(26));return e}var Me=`--nested-dialogs`,Ne=`data-nested-dialog-open`,Pe={...ne,...ge,nestedDialogOpen(e){return e?{[Ne]:``}:null}},Q=t(),Fe=X.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,initialFocus:o,...s}=e,c=Z(),l=c.useState(`descriptionElementId`),u=c.useState(`disablePointerDismissal`),d=c.useState(`floatingRootContext`),f=c.useState(`popupProps`),p=c.useState(`modal`),m=c.useState(`mounted`),h=c.useState(`nested`),g=c.useState(`nestedOpenDialogCount`),_=c.useState(`open`),v=c.useState(`openMethod`),y=c.useState(`titleElementId`),b=c.useState(`transitionStatus`),x=c.useState(`role`),S=d.useState(`floatingId`);je(),j({open:_,ref:c.context.popupRef,onComplete(){_&&c.context.onOpenChangeComplete?.(!0)}});let C=o===void 0?he(c.context.popupRef):o,T=g>0,E=c.useStateSetter(`popupElement`),D=q(`div`,e,{state:{open:_,nested:h,transitionStatus:b,nestedDialogOpen:T},props:[f,{id:S,"aria-labelledby":y,"aria-describedby":l,role:x,...L,hidden:!m,onKeyDown(e){W.has(e.key)&&e.stopPropagation()},style:{[Me]:g}},s],ref:[t,c.context.popupRef,E],stateAttributesMapping:Pe});return(0,Q.jsx)(w,{context:d,openInteractionType:v,disabled:!m,closeOnFocusOut:!u,initialFocus:C,returnFocus:a,modal:p!==!1,restoreFocus:`popup`,children:D})}),Ie=X.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,i=Z(),a=i.useState(`mounted`),o=i.useState(`modal`),s=i.useState(`open`);return a||n?(0,Q.jsx)(Ae.Provider,{value:n,children:(0,Q.jsxs)(M,{ref:t,...r,children:[a&&o===!0&&(0,Q.jsx)(V,{ref:i.context.internalBackdropRef,inert:pe(!s)}),e.children]})}):null});function Le({store:e,parentContext:t,isDrawer:n}){let r=e.useState(`open`),i=e.useState(`mounted`),a=e.useState(`disablePointerDismissal`),o=e.useState(`modal`),s=e.useState(`popupElement`),c=e.useState(`floatingRootContext`),[l,u]=X.useState(0),[d,f]=X.useState(0),p=l===0,m=S(c,{outsidePressEvent(){return e.context.internalBackdropRef.current||e.context.backdropRef.current?`intentional`:{mouse:o===`trap-focus`?`sloppy`:`intentional`,touch:`sloppy`}},outsidePress(t){if(!e.context.outsidePressEnabledRef.current||`button`in t&&t.button!==0)return!1;if(`touches`in t){if(t.type===`touchend`){if(t.changedTouches.length!==1||t.touches.length!==0)return!1}else if(t.touches.length!==1)return!1}let n=T(t);if(p&&!a){if(o){let t=e.context.internalBackdropRef.current,r=e.context.backdropRef.current;return t||r?t===n||r===n||C(n,s)&&!n?.hasAttribute(`data-base-ui-portal`):!0}return!0}return!1},escapeKey:p});return G(r&&o===!0,s),e.useContextCallback(`onNestedDialogOpen`,(t,n)=>{(e.select(`open`)||e.select(`mounted`))&&(u(t),f(n))}),K(()=>{!r&&!i&&(u(0),f(0))},[r,i]),K(()=>(t?.onNestedDialogOpen&&r&&t.onNestedDialogOpen(l+1,d+ +!!n),()=>{t?.onNestedDialogOpen&&r&&t.onNestedDialogOpen(0,0)}),[n,r,l,d,t]),O(e,{activeTriggerProps:m.reference,inactiveTriggerProps:m.trigger,popupProps:m.floating,nestedOpenDialogCount:l,nestedOpenDrawerCount:d}),null}var Re={...me,modal:e=>e.modal,nested:e=>e.nested,nestedOpenDialogCount:e=>e.nestedOpenDialogCount,nestedOpenDrawerCount:e=>e.nestedOpenDrawerCount,disablePointerDismissal:e=>e.disablePointerDismissal,openMethod:e=>e.openMethod,descriptionElementId:e=>e.descriptionElementId,titleElementId:e=>e.titleElementId,viewportElement:e=>e.viewportElement,role:e=>e.role},ze=class extends D{constructor(e,t,n){let r=new ve,i=Be(e,r,t,n);super(i,Ve(r),Re)}setOpen=(e,t)=>{t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)},!e&&t.trigger==null&&this.state.activeTriggerId!=null&&(t.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,t),t.isCanceled||(this.state.floatingRootContext.dispatchOpenChange(e,t),this.update(A(this.state,e,t.trigger)))}};function Be(e,t,n,r=!1){return{...N(t,n,r),modal:!0,disablePointerDismissal:!1,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:`dialog`,...e}}function Ve(e){return{popupRef:X.createRef(),backdropRef:X.createRef(),internalBackdropRef:X.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:e,onOpenChange:void 0,onOpenChangeComplete:void 0}}function He(e,t){let{children:n,open:r,defaultOpen:i=!1,onOpenChange:a,onOpenChangeComplete:o,disablePointerDismissal:s=!1,modal:c=!0,actionsRef:l,handle:u,triggerId:d,defaultTriggerId:f=null}=t,p=e===`drawer`,m=e===`alert-dialog`,h=m?!0:c,g=m||s,_=m?`alertdialog`:`dialog`,v=Z(!0),S={modal:h,disablePointerDismissal:g,nested:v!=null,role:_},C=H((e,t)=>new ze({open:i,openProp:r,activeTriggerId:f,triggerIdProp:d,...S},e,t),!0);C.useControlledProp(`openProp`,r),C.useControlledProp(`triggerIdProp`,d),C.useSyncedValues(S),C.useContextCallback(`onOpenChange`,a),C.useContextCallback(`onOpenChangeComplete`,o);let w=C.useState(`open`),T=C.useState(`mounted`),E=C.useState(`payload`);y(C,w),x(C);let{forceUnmount:D}=b(w,C);X.useImperativeHandle(l,()=>({unmount:D,close:()=>C.setOpen(!1,P(ae))}),[D,C]);let O=w||T||u!=null;return(0,Q.jsxs)(De.Provider,{value:C,children:[u&&(0,Q.jsx)(_e,{handle:u,store:C}),O&&(0,Q.jsx)(Le,{store:C,parentContext:v?.context,isDrawer:p}),typeof n==`function`?n({payload:E}):n]})}var Ue=de(function(e){return He(`dialog`,e)}),We=X.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,s=Z(),c=z(a);return s.useSyncedValueWithCleanup(`titleElementId`,c),q(`h2`,e,{ref:t,props:[{id:c},o]})}),$=n();function Ge(e){let t=(0,$.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,Q.jsx)(Ue,{"data-slot":`dialog`,...n}),t[2]=n,t[3]=r),r}function Ke(e){let t=(0,$.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,Q.jsx)(Ie,{"data-slot":`dialog-portal`,...n}),t[2]=n,t[3]=r),r}function qe(e){let t=(0,$.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,Q.jsx)(ke,{"data-slot":`dialog-close`,...n}),t[2]=n,t[3]=r),r}function Je(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=Y(`fixed inset-0 isolate z-50 bg-black/10 supports-backdrop-filter:backdrop-blur-xs`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Q.jsx)(Oe,{"data-slot":`dialog-overlay`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Ye(e){let t=(0,$.c)(15),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:r,children:n,showCloseButton:a,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=a===void 0||a,c;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,Q.jsx)(Je,{}),t[5]=c):c=t[5];let l;t[6]===r?l=t[7]:(l=Y(`fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-none bg-popover p-4 text-xs/relaxed text-popover-foreground ring-1 ring-foreground/10 outline-none sm:max-w-sm`,r),t[6]=r,t[7]=l);let u;t[8]===o?u=t[9]:(u=o&&(0,Q.jsxs)(ke,{"data-slot":`dialog-close`,render:(0,Q.jsx)(s,{variant:`ghost`,className:`absolute top-2 right-2`,size:`icon-sm`}),children:[(0,Q.jsx)(Ee,{}),(0,Q.jsx)(`span`,{className:`sr-only`,children:`Close`})]}),t[8]=o,t[9]=u);let d;return t[10]!==n||t[11]!==i||t[12]!==l||t[13]!==u?(d=(0,Q.jsxs)(Ke,{children:[c,(0,Q.jsxs)(Fe,{"data-slot":`dialog-content`,className:l,...i,children:[n,u]})]}),t[10]=n,t[11]=i,t[12]=l,t[13]=u,t[14]=d):d=t[14],d}function Xe(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=Y(`flex flex-col gap-1 text-left`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Q.jsx)(`div`,{"data-slot":`dialog-header`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Ze(e){let t=(0,$.c)(14),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:r,showCloseButton:a,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=a!==void 0&&a,c;t[5]===r?c=t[6]:(c=Y(`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end`,r),t[5]=r,t[6]=c);let l;t[7]===o?l=t[8]:(l=o&&(0,Q.jsx)(ke,{render:(0,Q.jsx)(s,{variant:`outline`}),children:`Close`}),t[7]=o,t[8]=l);let u;return t[9]!==n||t[10]!==i||t[11]!==c||t[12]!==l?(u=(0,Q.jsxs)(`div`,{"data-slot":`dialog-footer`,className:c,...i,children:[n,l]}),t[9]=n,t[10]=i,t[11]=c,t[12]=l,t[13]=u):u=t[13],u}function Qe(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=Y(`font-heading text-sm font-medium`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Q.jsx)(We,{"data-slot":`dialog-title`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var $e=`data-valid`,et=`data-invalid`,tt={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},nt={disabled:!1,valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},rt={valid(e){return e===null?null:e?{[$e]:``}:{[et]:``}}},it={invalid:void 0,name:void 0,validityData:{state:tt,errors:[],error:``,value:``,initialValue:null},setValidityData:J,disabled:void 0,setTouched:J,setDirty:J,setFilled:J,setFocused:J,focusOwnerRef:{current:void 0},validationMode:`onSubmit`,shouldValidateOnChange:()=>!1,state:nt,registerFieldControl:J,validation:{getValidationProps:(e,t=Se)=>t,inputRef:{current:null},registeredInputs:new Map,registerInput:J,getInputControl:()=>null,commit:async()=>{},change:J}},at=X.createContext(it);function ot(e=!0){let t=X.useContext(at);if(t.setValidityData===J&&!e)throw Error(xe(28));return t}var st=X.createContext({elementRef:{current:null},formRef:{current:{fields:new Map}},errors:{},clearErrors:J,validationMode:`onSubmit`,submitCountRef:{current:0}});function ct(){return X.useContext(st)}var lt=X.createContext({controlId:void 0,registerControlId:J,resetControlId:J,labelId:void 0,setLabelId:J,messageIds:[],setMessageIds:J,getDescriptionProps:e=>e});function ut(){return X.useContext(lt)}function dt(e,t,n){let{setFocused:r,focusOwnerRef:i}=ot(),a=Ce(t=>{(t?!e:i.current===a)&&(i.current=t&&a,n?.(t),r(t))});return K(()=>{let e=t.current;return e?.getRootNode()?.activeElement===e&&a(!0),()=>a(!1)},[e,t,a]),a}function ft(e,t,n,r,i=!0,a){let{registerFieldControl:o}=ot(),s=we(()=>Symbol());K(()=>{let c=s.current;i?o(c,{controlRef:e,getValue:r,id:t,name:a,value:n}):o(c,void 0)},[e,i,r,t,a,o,s,n]),K(()=>{let e=s.current;return()=>{o(e,void 0)}},[o,s])}function pt(e={}){let{id:t,enabled:n=!0}=e,{controlId:r,registerControlId:i,resetControlId:a}=ut(),o=z(),s=we(()=>Symbol()),c=X.useRef(!1),l=X.useRef(!1),u=Ce(()=>{c.current&&i!==J&&(c.current=!1,i(s.current,void 0))});return K(()=>{if(!n||i===J){u();return}let e;if(t!==void 0)l.current=!0,e=t;else if(l.current)e=o;else{a();return}e===void 0?u():(c.current=!0,i(s.current,e))},[t,n,i,a,o,s,u]),K(()=>u,[u]),(n?r:void 0)??t??o}var mt=X.forwardRef(function(e,t){let{render:n,className:r,id:i,name:a,value:o,disabled:s=!1,onValueChange:c,defaultValue:l,autoFocus:u=!1,style:d,...f}=e,{state:p,name:m,disabled:h,setTouched:g,setDirty:_,validityData:v,setFilled:y,validationMode:b,validation:x}=ot(),{clearErrors:S,elementRef:C,submitCountRef:w}=ct(),T=h||s,E=m??a,D={...p,disabled:T},{labelId:O}=ut(),A=pt({id:i}),j=o!==void 0,M=o==null?void 0:String(o),N=Ce(()=>x.inputRef.current?.value);ft(x.inputRef,A,M,N,!T,a),K(()=>{let e=M??x.inputRef.current?.value;e!==void 0&&y(e!==``)},[M,l,x.inputRef,y]),B(M,()=>{M!==void 0&&(S(E),_(M!==(v.initialValue??``)),x.change(M))});let F=X.useRef(null),I=dt(T,F),L=k();return q(`input`,e,{ref:[t,F],state:D,props:[{id:A,disabled:T,name:E,ref:x.inputRef,"aria-labelledby":O,autoFocus:u,...j?{value:o}:{defaultValue:l},onChange(e){let t=e.currentTarget.value,n=P(fe,e.nativeEvent);c?.(t,n),j||(_(t!==(v.initialValue??``)),y(t!==``),!e.nativeEvent.defaultPrevented&&!n.isCanceled&&(S(E),x.change(t)))},onFocus(){I(!0)},onBlur(e){if(g(!0),I(!1),b===`onBlur`){let t=e.currentTarget.value;x.commit(t),j&&queueMicrotask(()=>{let e=x.inputRef.current?.value;e!==void 0&&e!==t&&e!==(v.initialValue??``)&&x.commit(e)})}},onKeyDown(e){if(e.currentTarget.tagName===`INPUT`&&e.key===`Enter`){g(!0);let t=e.currentTarget.value,n=e.currentTarget.form;if(n&&n===C.current&&!e.defaultPrevented){let t=e.currentTarget,n=w.current;L.start(0,()=>{w.current===n&&x.commit(t.value)})}else x.commit(t)}}},f,e=>x.getValidationProps(T,e)],stateAttributesMapping:rt})}),ht=X.forwardRef(function(e,t){return(0,Q.jsx)(mt,{ref:t,...e})});function gt(e){let t=(0,$.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,type:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===n?a=t[5]:(a=Y(`h-8 w-full min-w-0 rounded-none border border-input bg-transparent px-2.5 py-1 text-xs outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-xs file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-1 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-1 aria-invalid:ring-destructive/20 md:text-xs dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40`,n),t[4]=n,t[5]=a);let o;return t[6]!==r||t[7]!==a||t[8]!==i?(o=(0,Q.jsx)(ht,{type:i,"data-slot":`input`,className:a,...r}),t[6]=r,t[7]=a,t[8]=i,t[9]=o):o=t[9],o}function _t(e){let t=(0,$.c)(63),[n,r]=a(ce),[i,o]=(0,X.useState)(`tailnet`),[d,p]=(0,X.useState)(``),m;if(t[0]!==e.items||t[1]!==e.port.worker){let n;t[3]===e.port.worker?n=t[4]:(n=t=>t.self===!0&&t.worker===e.port.worker,t[3]=e.port.worker,t[4]=n),m=_(g(v(e.items,n),Ct),St),t[0]=e.items,t[1]=e.port.worker,t[2]=m}else m=t[2];let h=m,y;t[5]===n?y=t[6]:(y=u(n),t[5]=n,t[6]=y);let b=y,x;t[7]!==r||t[8]!==d||t[9]!==i||t[10]!==e.port.id||t[11]!==e.port.port||t[12]!==e.port.worker||t[13]!==h?(x=t=>{t.preventDefault(),r({hostname:f(i===`public`,{onFalse:()=>h,onTrue:()=>d}),kind:i,name:f(i===`public`,{onFalse:()=>`tailnet:${e.port.port}`,onTrue:()=>`public:${d}`}),port:e.port.port??0,publicAccess:i===`public`,target:f(c(`remote:`)(e.port.id),{onFalse:xt,onTrue:()=>e.port.worker})})},t[7]=r,t[8]=d,t[9]=i,t[10]=e.port.id,t[11]=e.port.port,t[12]=e.port.worker,t[13]=h,t[14]=x):x=t[14];let S=e.port.process??e.port.name,C;t[15]===S?C=t[16]:(C=(0,Q.jsx)(ue,{name:S,small:!0}),t[15]=S,t[16]=C);let w=e.port.process??e.port.name,T;t[17]===w?T=t[18]:(T=(0,Q.jsx)(Qe,{children:w}),t[17]=w,t[18]=T);let E;t[19]===e.port.port?E=t[20]:(E=(0,Q.jsxs)(re,{variant:`outline`,children:[`:`,e.port.port]}),t[19]=e.port.port,t[20]=E);let D;t[21]!==C||t[22]!==T||t[23]!==E?(D=(0,Q.jsx)(Xe,{children:(0,Q.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[C,T,E]})}),t[21]=C,t[22]=T,t[23]=E,t[24]=D):D=t[24];let O;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(O=e=>{(e===`public`||e===`tailnet`)&&o(e)},t[25]=O):O=t[25];let k;t[26]===b?k=t[27]:(k=(0,Q.jsxs)(oe,{className:`w-full max-sm:group-data-horizontal/tabs:h-auto`,children:[(0,Q.jsx)(le,{value:`tailnet`,disabled:b,className:`max-sm:h-11`,children:`Tailnet`}),(0,Q.jsx)(le,{value:`public`,disabled:b,className:`max-sm:h-11`,children:`Public`})]}),t[26]=b,t[27]=k);let A;t[28]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,Q.jsx)(F,{htmlFor:`expose-tailnet`,children:`Address`}),t[28]=A):A=t[28];let j;t[29]!==e.port.port||t[30]!==h?(j=f(h===``,{onFalse:()=>`https://${h}:${e.port.port}`,onTrue:bt}),t[29]=e.port.port,t[30]=h,t[31]=j):j=t[31];let M;t[32]===j?M=t[33]:(M=(0,Q.jsx)(I,{value:`tailnet`,children:(0,Q.jsxs)(ee,{children:[A,(0,Q.jsx)(gt,{id:`expose-tailnet`,className:`max-sm:h-11`,readOnly:!0,value:j})]})}),t[32]=j,t[33]=M);let N;t[34]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,Q.jsx)(F,{htmlFor:`expose-public`,children:`Hostname`}),t[34]=N):N=t[34];let P=i===`public`,L;t[35]===Symbol.for(`react.memo_cache_sentinel`)?(L=e=>p(l(e.target.value)),t[35]=L):L=t[35];let R;t[36]!==d||t[37]!==b||t[38]!==P?(R=(0,Q.jsx)(I,{value:`public`,children:(0,Q.jsxs)(ee,{children:[N,(0,Q.jsx)(gt,{id:`expose-public`,className:`max-sm:h-11`,required:P,placeholder:`app.example.com`,autoCapitalize:`none`,spellCheck:!1,value:d,disabled:b,onChange:L})]})}),t[36]=d,t[37]=b,t[38]=P,t[39]=R):R=t[39];let z;t[40]!==i||t[41]!==k||t[42]!==M||t[43]!==R?(z=(0,Q.jsxs)(te,{value:i,onValueChange:O,children:[k,M,R]}),t[40]=i,t[41]=k,t[42]=M,t[43]=R,t[44]=z):z=t[44];let B;t[45]===n?B=t[46]:(B=(0,Q.jsx)(se,{result:n}),t[45]=n,t[46]=B);let V;t[47]===b?V=t[48]:(V=(0,Q.jsx)(qe,{render:(0,Q.jsx)(s,{variant:`ghost`,type:`button`,disabled:b,className:`max-sm:h-11`}),children:`Cancel`}),t[47]=b,t[48]=V);let ne=b||i===`tailnet`&&h===``||i===`public`&&d===``,H;t[49]===b?H=t[50]:(H=f(b,{onFalse:yt,onTrue:vt}),t[49]=b,t[50]=H);let U;t[51]!==ne||t[52]!==H?(U=(0,Q.jsx)(s,{type:`submit`,className:`max-sm:h-11`,disabled:ne,children:H}),t[51]=ne,t[52]=H,t[53]=U):U=t[53];let W;t[54]!==V||t[55]!==U?(W=(0,Q.jsxs)(Ze,{children:[V,U]}),t[54]=V,t[55]=U,t[56]=W):W=t[56];let G;return t[57]!==z||t[58]!==B||t[59]!==x||t[60]!==W||t[61]!==D?(G=(0,Q.jsxs)(`form`,{className:`flex flex-col gap-4`,onSubmit:x,children:[D,z,B,W]}),t[57]=z,t[58]=B,t[59]=x,t[60]=W,t[61]=D,t[62]=G):G=t[62],G}function vt(){return`Exposing…`}function yt(){return`Expose`}function bt(){return``}function xt(){return``}function St(){return``}function Ct(e){return e.hostname??``}function wt(){let e=(0,$.c)(2),[t,n]=a(R),r;return e[0]===n?r=e[1]:(r=e=>(0,Q.jsx)(Ge,{open:!0,onOpenChange:e=>{e||n(m())},children:(0,Q.jsx)(Ye,{showCloseButton:!1,children:(0,Q.jsx)(_t,{items:e.snapshot.items,port:e.port},e.port.id)})}),e[0]=n,e[1]=r),h(p({port:t,snapshot:d(o(U))}),{onNone:Tt,onSome:r})}function Tt(){return null}function Et(){let e=(0,$.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(wt,{}),(0,Q.jsx)(i,{})]}),e[0]=t):t=e[0],t}export{Et as component};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{$ as t,$n as n,$r as r,At as i,B as a,C as o,Cn as s,Ct as c,D as l,Dt as u,En as d,Et as f,F as p,Ft as m,G as h,Hr as g,J as _,Jn as v,K as y,Kn as b,L as x,M as S,Mt as C,Nt as w,O as ee,Oi as te,Or as ne,P as re,Pt as ie,Q as ae,Qn as oe,R as se,S as ce,Sn as le,Tn as ue,Tt as de,Un as fe,Xn as pe,Yn as me,Z as he,Zn as ge,_ as _e,_i as ve,_t as T,a as ye,ai as be,an as xe,ar as Se,at as Ce,b as we,bn as Te,c as Ee,cn as De,cr as Oe,ct as E,d as ke,di as Ae,dn as je,dt as Me,er as Ne,et as Pe,fi as Fe,fn as Ie,fr as Le,ft as Re,gi as ze,gn as Be,h as Ve,hi as He,hn as Ue,ht as We,i as Ge,in as Ke,ir as qe,it as D,jt as Je,ki as O,l as Ye,li as Xe,ln as Ze,lr as Qe,m as $e,mi as et,n as tt,ni as nt,nn as rt,nt as it,on as at,or as ot,ot as st,p as ct,pn as lt,pt as k,q as ut,qn as dt,r as ft,ri as pt,rn as mt,rr as ht,s as gt,sr as _t,st as A,t as vt,ti as yt,tn as bt,tr as xt,u as St,ui as Ct,un as wt,ur as Tt,ut as Et,v as Dt,vi as Ot,vn as kt,vr as At,vt as j,w as jt,wt as Mt,x as Nt,xn as Pt,xt as Ft,y as It,yt as Lt}from"./effect-DDyRjlEL.js";import{a as Rt,n as zt,o as Bt,t as Vt}from"./react-BPjvcVqE.js";import{V as Ht,a as Ut,d as Wt,r as Gt,t as Kt}from"./utils-DoaQsY-4.js";var M=e(Bt(),1),N=Rt(),qt=class extends M.Component{constructor(...e){super(...e),this.state={error:0},this.reset=()=>{this.setState({error:0})}}static getDerivedStateFromProps(e,t){let n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:0}:{resetKey:n}}static getDerivedStateFromError(e){return{error:[e]}}componentDidCatch(e,t){this.props.onCatch?.(e,t)}render(){let e=this.state.error;return e?M.createElement(this.props.errorComponent??Jt,{error:e[0],reset:this.reset}):this.props.children}};function Jt({error:e}){let[t,n]=M.useState(!1);return(0,N.jsxs)(`div`,{style:{padding:`.5rem`,maxWidth:`100%`},children:[(0,N.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,N.jsx)(`strong`,{style:{fontSize:`1rem`},children:`Something went wrong!`}),(0,N.jsx)(`button`,{style:{appearance:`none`,fontSize:`.6em`,border:`1px solid currentColor`,padding:`.1rem .2rem`,fontWeight:`bold`,borderRadius:`.25rem`},onClick:()=>n(e=>!e),children:t?`Hide Error`:`Show Error`})]}),(0,N.jsx)(`div`,{style:{height:`.25rem`}}),t?(0,N.jsx)(`div`,{children:(0,N.jsx)(`pre`,{style:{fontSize:`.7em`,border:`1px solid red`,borderRadius:`.25rem`,padding:`.3rem`,color:`red`,overflow:`auto`},children:e?.message?(0,N.jsx)(`code`,{children:e.message}):null})}):null]})}function P(e){return e[e.length-1]}function Yt(e,t){return typeof e==`function`?e(t):e}var Xt=Object.prototype.hasOwnProperty;function Zt(e){for(let t in e)if(Xt.call(e,t))return!0;return!1}var Qt=()=>Object.create(null),$t=(e,t)=>F(e,t,!0);function F(e,t,n,r=0){if(e===t)return e;if(r++>500)return t;let i=Array.isArray(e)&&Array.isArray(t);if(!i&&!(en(e)&&en(t)))return t;let a=Object.keys(e),o=a.length,s=Object.keys(t),c=s.length;if(i?o!==e.length||c!==t.length||o&&P(a)!==`${o-1}`||c&&P(s)!==`${c-1}`:o!==Object.getOwnPropertyNames(e).length||c!==Object.getOwnPropertyNames(t).length||Object.getOwnPropertySymbols(t).length)return t;let l=0,u,d,f;if(i){for(;l<c&&(f=l,d=e[f],u=t[f],u=d===u?d:typeof d==`object`?F(d,u,n,r):u,u===d);l++);if(l===c&&o===c)return e}else{let i=o===c,p=!0;for(;l<c;l++){f=s[l],d=e[f];let o=t[f];u=d===o?d:typeof d==`object`?F(d,o,n,r):o,i&&=u===d&&(a[l]===f||Xt.call(e,f)),p&&=Object.is(u,o),a[l]=u}if(i)return Object.getOwnPropertySymbols(e).length?t:e;if(p)return t}let p=i?s.fill(0):n?Qt():{};for(let o=0;o<c;o++)f=i?o:s[o],i?(d=e[f],o>l&&(u=t[f],u=d===u?d:typeof d==`object`?F(d,u,n,r):u),p[f]=o<l?d:u):p[f]=a[o];return p}function en(e){return!e||typeof e!=`object`?!1:(Object.getPrototypeOf(e)?.constructor??Object)===Object}function I(e,t,n,r){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let i=0,a=e.length;i<a;i++){let a=e[i],o=t[i];if(a!==o&&!I(a,o,n,r))return!1}return!0}if(en(e)&&en(t)){if(n){for(let i in t)if((r||t[i]!==void 0)&&!I(e[i],t[i],n,r))return!1;return!0}let i=0;if(r)i=Object.keys(e).length;else for(let t in e)e[t]!==void 0&&i++;for(let a in t)if((r||t[a]!==void 0)&&(i--===0||!I(e[a],t[a],n,r)))return!1;return i===0}return!1}function tn(e){return typeof e?.message==`string`?e.message.startsWith(`Failed to fetch dynamically imported module`)||e.message.startsWith(`error loading dynamically imported module`)||e.message.startsWith(`Importing a module script failed`):!1}var nn=/[\x00-\x1f\x7f"<>`{}]/g;function rn(e){return e.replace(nn,e=>`%`+e.charCodeAt(0).toString(16).toUpperCase().padStart(2,`0`))}function an(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,e=>{try{return decodeURI(e)}catch{return e}})}return rn(t)}var on=[`http:`,`https:`,`mailto:`,`tel:`];function sn(e){if(e[0]!==`/`&&e.includes(`:`))return/^[\x00-\x20]*([a-z][a-z\d+.\t\n\r-]*:)/i.exec(e)?.[1]?.replace(/[\t\n\r]/g,``).toLowerCase()}var cn=/^[\x00-\x20]*[\\/][\t\n\r]*[\\/]/;function ln(e,t){if(!e)return!1;if(cn.test(e))return!0;let n=sn(e);return n?!t.has(n):!1}function un(e){if(!e)return e;let t=e;if(/[%\\\x00-\x1f\x7f]/.test(e)){let n=/%25|%5C/gi,r=0,i;for(t=``;(i=n.exec(e))!==null;)t+=an(e.slice(r,i.index))+i[0],r=n.lastIndex;t+=an(r?e.slice(r):e)}return t}function dn(e){return/[\s\u0080-\uFFFF]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function fn(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function pn(){throw Error(`Invariant failed`)}function mn(e){return e.replace(/\/{2,}/g,`/`)}function hn(e){return e===`/`?e:e.replace(/^\/+/,``)}function L(e){let t=e.length;return t>1&&e[t-1]===`/`?e.replace(/\/+$/,``):e}function gn(e){return L(hn(e))}function _n(e,t){return e?.endsWith(`/`)&&e!==`/`&&e!==`${t}/`?e.slice(0,-1):e}function vn(e,t,n=`never`,r){if(t.includes(`//`)&&(t=mn(t)),t.startsWith(`/`))return t.length===1||n===`preserve`?t:n===`always`?t.endsWith(`/`)?t:`${t}/`:t.endsWith(`/`)?t.slice(0,-1):t;let i=t===`.`,a;if(r){a=i?e:e+`\0`+t;let n=r.get(a);if(n)return n}let o;if(i)o=e.split(`/`);else{for(e.includes(`//`)&&(e=mn(e)),o=e.split(`/`);o.length>1&&P(o)===``;)o.pop();let n=t.split(`/`);for(let e=0,t=n.length;e<t;e++){let r=n[e];r===``?e?e===t-1&&o.push(r):o=[r]:r===`..`?o.length>1?o.pop():o=[``]:r===`.`||o.push(r)}}o.length>1&&(P(o)===``?n===`never`&&o.pop():n===`always`&&o.push(``));let s=o.join(`/`),c=(i?mn(s):s)||`/`;return a&&r&&r.set(a,c),c}function yn(e){let t=new Map(e.map(e=>[encodeURIComponent(e),e])),n=new RegExp([...t.keys()].join(`|`).replace(/[.*()]/g,`\\$&`),`g`);return e=>e.replace(n,e=>t.get(e)??e)}function bn(e){return e==null||e===``}function xn(e,t,n){if(typeof t!=`string`)return``+(t??void 0);let r=e===`_splat`;if(r&&(!t||/^[a-zA-Z0-9\-._~!/]*$/.test(t)))return t;let i=encodeURIComponent(t);return r&&(i=i.replaceAll(`%2F`,`/`)),n?n(i):i}function Sn(e,t,n,r,i){let a=e.endsWith(`/`)?`/`:``,o=``;for(let e of t){if(typeof e==`string`){o+=e;continue}let[t,s,c,l]=e,u=t===2,d=u&&l!==void 0?l+a:l,f=n[s];if(t!==3||f!=null){if(i&&(i[s]=f,u&&(i[`*`]=f)),u&&bn(f)){if(c===`/`&&!d)continue;f=``}o+=c+xn(s,f,r)+(d||``)}}return o+a||`/`}function Cn(e={}){if(e.isNotFound=!0,e.throw)throw e;return e}function wn(e){return e?.isNotFound===!0}var Tn=`__root__`;function En(e){e.statusCode=e.statusCode||e.code||307;let t=new Headers(e.headers);e.href&&t.get(`Location`)===null&&t.set(`Location`,e.href);let n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function Dn(e){return e instanceof Response&&!!e.options}function On(e){let t=new Map,n,r;return{get(e){let n=t.get(e);if(n)return n.visited=!0,n.value},set(i,a){let o=t.get(i);if(o){o.value=a;return}if(t.size>=e){let e=n?.next().value;for(;!e||e.visited;)e?e.visited=!1:n=t.values(),e=n.next().value;e===r&&(n=void 0),t.delete(e.key)}let s={key:i,value:a,visited:!1};r=s,t.set(i,s)},clear(){t.clear(),n=void 0,r=void 0}}}var R=4,kn=5;function An(e){let t=e.names;if(t)return t;let n=[];for(let t of e)typeof t!=`string`&&n.push(t[1]);return e.names=n}function jn(e,t,n){let r=e.slice(t,n);if(r.charCodeAt(0)===36)return r.length===1?[2,`_splat`,``,void 0]:[1,r.slice(1),``,``];let i=r.indexOf(`{`);if(i>=0){let a=r.indexOf(`}`,i),o=r.charCodeAt(i+1)===45,s=i+(o?3:2);if(a>=0&&r.charCodeAt(s-1)===36&&(!o||s<a)){let c=r.slice(s,a);return[o?3:c?1:2,c||`_splat`,r.slice(0,i),e.slice(t+a+1,c?n:e.length)]}}return r}function Mn(e,t,n,r,i,a){let o=n,s=t.fullPath??t.from,c=t.options,l=s.length,u=s.endsWith(`/`)?l-1:l,d=c?.caseSensitive??e,f=c?.params?.parse??c?.parseParams,p,m=a?n-1:0;if(!r||s.includes(`$`)){p=a?.slice()??[];let e=P(p);e&&typeof e!=`string`&&e[0]===2&&(p[p.length-1]=[e[0],e[1],e[2],e[3]===void 0?void 0:e[3]+s.substring(n-(s[n-2]===`/`?2:1),u)],m=l)}for(;o<l;){let e=o,t=s.indexOf(`/`,e),n=t===-1?l:t,a=jn(s,e,n);o=n+1;let c;if(typeof a==`string`){if(!r)continue;let e=a,t;d?t=r.static??=new Map:(e=a.toLowerCase(),t=r.staticInsensitive??=new Map);let n=t.get(e);if(n)c=n;else{let n=z(r);c=n,t.set(e,n)}}else{let t=a[0],h=a[2],g=a[3]??``;if(t===2&&(n=l,o=n+1),p&&m<n&&(m<e-1&&p.push(s.slice(m,e-1)),a[2]=`/`+h,t===2&&a[3]!==void 0&&u<l&&(a[3]=g.slice(0,-1)),p.push(a),m=n),!r)continue;let _=d&&!!(h||g);d||(h=h.toLowerCase(),g=g.toLowerCase());let v=t===1?r.dynamic??=[]:t===3?r.optional??=[]:r.wildcard??=[],y=t!==2&&!f&&v.find(e=>!e.parse&&e.caseSensitive===_&&e.prefix===h&&e.suffix===g);if(y)c=y;else{let e=z(r,t,_,h,g);c=e,v.push(e),v.length===2&&i?.push(v)}}r=c}p&&m<u&&p.push(s.slice(m,u));let h=p?.slice();if(!r)return h;if(f&&t.children&&!t.isRoot&&t.id&&t.id.charCodeAt(t.id.lastIndexOf(`/`)+1)===95){let e=z(r,kn);(r.pathless??=[]).push(e),r=e}let g=(t.path||!t.children)&&!t.isRoot;if(g&&u<l){let e=z(r,R);r.index=e,r=e}return r.parse=f??null,r.priority=c?.params?.priority??0,r.route||(r.data=h,g&&(r.route=t)),[r,o,h]}function Nn(e,t){if(e.parse&&!t.parse)return-1;if(!e.parse&&t.parse)return 1;if(e.parse&&t.parse&&(e.priority||t.priority))return t.priority-e.priority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function z(e,t=0,n,r,i){return{kind:t,depth:e?e.depth+1:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,data:void 0,parent:e,parse:null,priority:0,caseSensitive:n,prefix:r,suffix:i}}function Pn(e,t){let n=z(),r=[];function i(e,t,n,a){let[o,s,c]=Mn(!1,e,t,n,r,a);if(e.children)for(let t of e.children)i(t,s,o,c)}for(let t of e)i(t,1,n);for(let e of r)e.sort(Nn);t.masksTree=n,t.flatCache=On(1e3)}function Fn(e,t){e||=`/`;let n=t.flatCache.get(e);if(n!==void 0)return n;let r=zn(e,t.masksTree);return t.flatCache.set(e,r),r}function In(e,t,n,r,i){e||=`/`,r||=`/`;let a=t?`case\0${e}`:e,o=i.singleCache.get(a);return o||(o=z(),Mn(t,{from:e},1,o),i.singleCache.set(a,o)),zn(r,o,n)}function Ln(e,t,n=!1){let r=n?e:`nofuzz\0${e}`,i=t.matchCache.get(r);if(i!==void 0)return i;e||=`/`;let a;try{a=zn(e,t.segmentTree,n)}catch(e){if(e instanceof URIError)a=null;else throw e}return a&&(a.branch=Vn(a.route)),t.matchCache.set(r,a),a}function Rn(e,t=!1){let n=z(),r=[],i={},a={},o=0;function s(e,n,c,l){if(e.init(o),e.id in i&&pn(),i[e.id]=e,o!==0&&e.path){let t=L(e.fullPath);(!a[t]||e.fullPath.endsWith(`/`))&&(a[t]=e)}o++;let[u,d,f]=Mn(t,e,n,c,r,l);if(e._interpolation=f,e.children)for(let t of e.children)s(t,d,u,f)}s(e,1,n);for(let e of r)e.sort(Nn);return{processedTree:{segmentTree:n,singleCache:On(1e3),matchCache:On(1e3),flatCache:null,masksTree:null},routesById:i,routesByPath:a}}function zn(e,t,n=!1){let r=e.split(`/`),i=Un(e,r,t,n);if(!i)return null;let[a]=Bn(e,r,i);return{route:i.node.route,rawParams:a}}function Bn(e,t,n){let r=Hn(n.node),i=n.node.data&&An(n.node.data),a=Object.create(null),o=n.extract?.part??0,s=n.extract?.node??0,c=n.extract?.path??0,l=n.extract?.param??0;for(;s<r.length;o++,s++,c++){let u=r[s];if(u.kind===R)break;if(u.kind===kn){o--,c--;continue}let d=t[o],f=c;if(d&&(c+=d.length),u.kind===1||u.kind===3){let e=i[l++];if(u.kind===3&&n.skipped&1<<s){o--,c=f-1;continue}let t=u.suffix||u.prefix?d.substring(u.prefix.length,d.length-u.suffix.length):d;(t||u.kind===1)&&(a[e]=decodeURIComponent(t))}else if(u.kind===2){let t=u,n=e.substring(f+t.prefix.length,e.length-t.suffix.length),r=decodeURIComponent(n);a[`*`]=r,a._splat=r;break}}return n.rawParams&&Object.assign(a,n.rawParams),[a,{part:o,node:s,path:c,param:l}]}function Vn(e){let t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function Hn(e){let t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function Un(e,t,n,r){if(e===`/`&&n.index)return{node:n.index,skipped:0};let i=!P(t),a=i&&e!==`/`,o=t.length-+!!i,s=[{node:n,index:1,skipped:0,statics:0,dynamics:0,optionals:0}],c=null,l=null;for(;s.length;){let n=s.pop(),{node:i,index:u,skipped:d,statics:f,dynamics:p,optionals:m}=n,{extract:h,rawParams:g}=n;if(i.kind===2&&i.route&&!qn(l,n))continue;if(i.parse){if(!Kn(e,t,n))continue;g=n.rawParams,h=n.extract}r&&i.route&&i.kind!==R&&qn(c,n)&&(c=n);let _=u===o;if(_&&(i.route&&(!a||i.kind===R||i.kind===2)&&qn(l,n)&&(l=n),!i.optional&&!i.wildcard&&!i.index&&!i.pathless))continue;let v=_?void 0:t[u],y;if(_&&i.index){let n={node:i.index,index:u,skipped:d,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g},r=!0;if(i.index.parse&&(Kn(e,t,n)||(r=!1)),r){if(!p&&!m&&!d&&Gn(f,o))return n;qn(l,n)&&(l=n)}}if(i.wildcard)for(let e=i.wildcard.length-1;e>=0;e--){let n=i.wildcard[e],{prefix:r,suffix:a}=n;if(!r||!_&&(n.caseSensitive?v:y??=v.toLowerCase()).startsWith(r)){if(a){if(_)continue;let e=t.slice(u).join(`/`),i=e.slice(-a.length);if((n.caseSensitive?i:i.toLowerCase())!==a||e.length-a.length<r.length)continue}s.push({node:n,index:o,skipped:d,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g})}}if(i.optional){let e=d|1<<i.depth+1;for(let t=i.optional.length-1;t>=0;t--){let n=i.optional[t];s.push({node:n,index:u,skipped:e,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g})}if(!_)for(let e=i.optional.length-1;e>=0;e--){let t=i.optional[e],{prefix:n,suffix:r}=t;if(n||r){let e=t.caseSensitive?v:y??=v.toLowerCase();if(n&&!e.startsWith(n)||r&&e.indexOf(r,e.length-r.length)<n.length)continue}s.push({node:t,index:u+1,skipped:d,statics:f,dynamics:p,optionals:m+Wn(o,u),extract:h,rawParams:g})}}if(!_&&i.dynamic&&v)for(let e=i.dynamic.length-1;e>=0;e--){let t=i.dynamic[e],{prefix:n,suffix:r}=t;if(n||r){let e=t.caseSensitive?v:y??=v.toLowerCase();if(n&&!e.startsWith(n)||r&&e.indexOf(r,e.length-r.length)<n.length)continue}s.push({node:t,index:u+1,skipped:d,statics:f,dynamics:p+Wn(o,u),optionals:m,extract:h,rawParams:g})}if(!_&&i.staticInsensitive){let e=i.staticInsensitive.get(y??=v.toLowerCase());e&&s.push({node:e,index:u+1,skipped:d,statics:f+Wn(o,u),dynamics:p,optionals:m,extract:h,rawParams:g})}if(!_&&i.static){let e=i.static.get(v);e&&s.push({node:e,index:u+1,skipped:d,statics:f+Wn(o,u),dynamics:p,optionals:m,extract:h,rawParams:g})}if(i.pathless)for(let e=i.pathless.length-1;e>=0;e--){let t=i.pathless[e];s.push({node:t,index:u,skipped:d,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g})}}if(l)return l;if(r&&c){let n=c.index;for(let e=0;e<c.index;e++)n+=t[e].length;let r=n===e.length?`/`:e.slice(n);return c.rawParams??=Object.create(null),c.rawParams[`**`]=decodeURIComponent(r),c}return null}function Wn(e,t){return 2**(e-t-1)}function Gn(e,t){return e===2**(t-1)-1}function Kn(e,t,n){let r,i;try{[r,i]=Bn(e,t,n)}catch{return null}if(n.rawParams=r,n.extract=i,!n.node.parse)return!0;try{if(n.node.parse(r)===!1)return null}catch{}return!0}function qn(e,t){return!e||t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===R)>(e.node.kind===R)||t.node.kind===R==(e.node.kind===R)&&t.node.depth>e.node.depth)))}function Jn(){try{return sessionStorage}catch{return}}var Yn=`tsr-scroll-restoration-v1_3`,Xn=Jn();function Zn(){try{return JSON.parse(Xn?.getItem(`tsr-scroll-restoration-v1_3`)||`{}`)}catch{return{}}}var B=Zn(),Qn=`data-scroll-restoration-id`,$n=e=>e.state.__TSR_key||e.href;function er(e){let t=e.getAttribute(Qn);if(t)return`[${Qn}="${t}"]`;let n=``,r=e,i;for(;i=r.parentNode;){let e=1,t=r;for(;t=t.previousElementSibling;)e++;let a=`${r.localName}:nth-child(${e})`;n=n?`${a} > ${n}`:a,r=i}return n}var tr=!1,nr=`window`;function rr(e){try{return typeof e==`function`?e():document.querySelector(e)}catch{}}function ir(e){let t=new Set;for(let n of e){if(n===nr)continue;let e=rr(n);e&&t.add(e)}return t}function ar(e,t){let n=t??e.options.scrollRestoration,r=e._scroll;n&&(r.e=!0);let i=e.options.getScrollRestorationKey||$n,a=new Set,o=e=>{let t=B[e]||={};for(let e of a)e===document?t[nr]={scrollX,scrollY}:e.isConnected&&(t[er(e)]={scrollX:e.scrollLeft,scrollY:e.scrollTop})};n&&!r.s&&(r.s=!0,tr=!1,history.scrollRestoration=`manual`,document.addEventListener(`scroll`,e=>{tr||a.add(e.target)},!0),e.subscribe(`onBeforeLoad`,e=>{e.fromLocation&&o(i(e.fromLocation)),a.clear()}),addEventListener(`pagehide`,()=>{history.scrollRestoration=`auto`,o(i(e.stores.resolvedLocation.get()??e.stores.location.get()));try{Xn?.setItem(Yn,JSON.stringify(B))}catch{}}),addEventListener(`pageshow`,e=>{e.persisted&&(history.scrollRestoration=`manual`)})),r.r||(r.r=!0,e.subscribe(`onRendered`,t=>{let n=e.options.scrollRestorationBehavior,o=e.options.scrollToTopSelectors,s=r.n,c=r.h,l;if(a.clear(),r.n=!0,r.h=!1,typeof e.options.scrollRestoration==`function`&&!e.options.scrollRestoration({location:e.latestLocation}))return;let u=i(t.toLocation),d=t.fromLocation&&i(t.fromLocation);if(r.e&&d&&d!==u){let e=B[d];if(e){let t=B[u];for(let n in e){if(n===nr){if(s)continue}else{let e=rr(n);if(!e||s&&o&&(l??=ir(o),l.has(e)))continue}t||=B[u]={},t[n]??=e[n]}}}tr=!0;try{let e=t.toLocation.hash,i=t.toLocation.state.__hashScrollIntoViewOptions??!0,a=!1;if(s){!e&&o&&(l??=ir(o));let t=e&&i&&c,s=r.e?B[u]:void 0;if(s)for(let e in s){let{scrollX:r,scrollY:i}=s[e];if(e===nr){if(t)continue;scrollTo({top:i,left:r,behavior:n}),a=!0}else{let t=rr(e);t&&(t.scrollLeft=r,t.scrollTop=i,l?.delete(t))}}if(!e){let e={top:0,left:0,behavior:n};if(a||scrollTo(e),l)for(let t of l)t.scrollTo(e)}}!a&&e&&i&&document.getElementById(e)?.scrollIntoView(i)}finally{tr=!1}}))}function or(e,t=String){let n;for(let r in e){let i=e[r];i!==void 0&&(n||=new URLSearchParams).set(r,t(i))}return n?n.toString():``}function sr(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function cr(e){let t=new URLSearchParams(e),n=Object.create(null);for(let[e,r]of t.entries()){let t=n[e];t==null?n[e]=sr(r):Array.isArray(t)?t.push(sr(r)):n[e]=[t,sr(r)]}return n}var lr=/^(?:\s|["[{\d-]|fa|nu|tr)/,ur=fr(JSON.parse),dr=pr(JSON.stringify,JSON.parse);function fr(e){let t=e===JSON.parse;return n=>{n[0]===`?`&&(n=n.slice(1));let r=cr(n);for(let n in r){let i=r[n];if(typeof i==`string`){if(t&&!lr.test(i))continue;try{r[n]=e(i)}catch{}}}return r}}function pr(e,t){let n=t===JSON.parse;function r(r){if(r&&typeof r==`object`)try{return e(r)}catch{}else if(t&&typeof r==`string`){if(n&&!lr.test(r))return r;try{return t(r),e(r)}catch{}}return r}return e=>{let t=or(e,r);return t?`?${t}`:``}}function mr(e,t,n){let r=gn(e),i=`/${r}`,a=t?i:i.toLowerCase(),o=`${a}/`,s={input:({url:e})=>{let n=t?e.pathname:e.pathname.toLowerCase();return n===a?e.pathname=`/`:n.startsWith(o)&&(e.pathname=e.pathname.slice(i.length)),e},output:({url:e})=>(e.pathname=mn(`/${r}${e.pathname}`),e)};return n?{input:({url:e})=>hr(n,s.input({url:e})),output:({url:e})=>s.output({url:gr(n,e)})}:s}function hr(e,t){let n=e?.input?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function gr(e,t){let n=e?.output?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function _r(e){let t=e;return{get(){return t},set(e){t=Yt(e,t)}}}function vr(e){return{get(){return e()}}}function yr(e,t){let{createMutableStore:n,createReadonlyStore:r,batch:i}=t,a=new Map,o=n(`idle`),s=n(e),c=n(void 0),l=n([]),u=r(()=>l.get().map(e=>a.get(e).get())),d=r(()=>({status:o.get(),isLoading:o.get()===`pending`,matches:u.get(),location:s.get(),resolvedLocation:c.get()}));function f(e){let t=a.get(e);return t||(t=n(void 0),a.set(e,t)),t}let p={status:o,location:s,resolvedLocation:c,ids:l,matches:u,byRoute:a,__store:d,getMatchStore:f,setMatches:m};function m(e){let t=l.get(),n=e.map(e=>e.routeId);i(()=>{fn(t,n)||l.set(n);for(let e of t)n.includes(e)||a.get(e).set(()=>void 0);for(let t of e){let e=f(t.routeId);e.get()!==t&&e.set(t)}})}return p}var V=`__TSR_index`,br=`popstate`,xr=`beforeunload`,Sr=/^[\x00-\x20]*(?:[\\/][\t\n\r]*){2,}/;function Cr(e){let t=Sr.exec(e);return t?`/`+e.slice(t[0].length):e}function wr(e){return/[\x00-\x1f\x7f]/.test(e)&&(e=e.replace(/[\x00-\x1f\x7f]/g,e=>`
|
|
2
|
+
\r`.includes(e)?``:encodeURIComponent(e))),Cr(e)}function Tr(e){let t=e.getLocation(),n=new Set,r=r=>{t=e.getLocation(),n.forEach(e=>e({location:t,action:r}))},i=n=>{e.notifyOnIndexChange??!0?r(n):t=e.getLocation()},a=async n=>{let r=n.navigateOpts?.ignoreBlocker?void 0:e.getBlockers?.();if(typeof document<`u`&&r?.length&&(n.type===`PUSH`||n.type===`REPLACE`))for(let i of r){let r=Or(n.path,n.state);if(await i.blockerFn({currentLocation:t,nextLocation:r,action:n.type})){e.onBlocked?.();return}}n.task()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:e=>(n.add(e),()=>{n.delete(e)}),push:(n,i,o)=>{let s=t.state[V];i=Er(s+1,i),a({task:()=>{e.pushState(n,i),r({type:`PUSH`})},navigateOpts:o,type:`PUSH`,path:n,state:i})},replace:(n,i,o)=>{let s=t.state[V];i=Er(s,i),a({task:()=>{e.replaceState(n,i),r({type:`REPLACE`})},navigateOpts:o,type:`REPLACE`,path:n,state:i})},go:(t,n)=>{a({task:()=>{e.go(t,n?.ignoreBlocker??!1),i({type:`GO`,index:t})},navigateOpts:n,type:`GO`})},back:t=>{a({task:()=>{e.back(t?.ignoreBlocker??!1),i({type:`BACK`})},navigateOpts:t,type:`BACK`})},forward:t=>{a({task:()=>{e.forward(t?.ignoreBlocker??!1),i({type:`FORWARD`})},navigateOpts:t,type:`FORWARD`})},canGoBack:()=>t.state[V]!==0,createHref:t=>e.createHref(t),block:t=>{if(!e.setBlockers)return()=>{};let n=e.getBlockers?.()??[];return e.setBlockers([...n,t]),()=>{let n=e.getBlockers?.()??[];e.setBlockers?.(n.filter(e=>e!==t))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r,_getBlockers:()=>e.getBlockers?.()??[]}}function Er(e,t){let n=kr();return{...t,key:n,__TSR_key:n,[V]:e}}function Dr(e){let t=e?.window??(typeof document<`u`?window:void 0),n=t.history.pushState,r=t.history.replaceState,i=[],a=()=>i,o=e=>i=e,s=t=>wr(e?.createHref?e.createHref(t):t),c=e?.parseLocation??(()=>Or(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=kr();t.history.replaceState({[V]:0,key:e,__TSR_key:e},``)}let l=c(),u,d=!1,f=!1,p=!1,m=!1,h=()=>l,g,_=()=>{g&&(S._ignoreSubscribers=!0,(g[2]?t.history.pushState:t.history.replaceState)(g[1],``,g[0]),S._ignoreSubscribers=!1,g=void 0,u=void 0)},v=(t,n,r)=>{let i=e?.createHref?s(n):void 0,a=!!g;a||(u=l),l=Or(n,r),g=[i??l.href,r,g?.[2]||t],a||queueMicrotask(()=>_())},y=e=>{l=c(),S.notify({type:e})},b=async()=>{if(m=!1,f){f=!1;return}let e=c(),n=e.state[V]-l.state[V],r=n===1,i=n===-1,o=!r&&!i||d;d=!1;let s=o?`GO`:i?`BACK`:`FORWARD`,u=o?{type:`GO`,index:n}:{type:i?`BACK`:`FORWARD`};if(p)p=!1;else{let r=a();if(typeof document<`u`&&r.length){for(let i of r)if(await i.blockerFn({currentLocation:l,nextLocation:e,action:s})){f=!0,t.history.go(-n),S.notify(u);return}}}l=c(),S.notify(u)},x=e=>{if(m){m=!1;return}let t=!1,n=a();if(typeof document<`u`&&n.length)for(let e of n){let n=e.enableBeforeUnload??!0;if(n===!0||typeof n==`function`&&n()===!0){t=!0;break}}if(t)return e.preventDefault(),e.returnValue=``},S=Tr({getLocation:h,getLength:()=>t.history.length,pushState:(e,t)=>v(!0,e,t),replaceState:(e,t)=>v(!1,e,t),back:e=>(e&&(p=!0,m=!0),t.history.back()),forward:e=>{e&&(p=!0,m=!0),t.history.forward()},go:(e,n)=>{d=!0,n&&(p=!0,m=!0),t.history.go(e)},createHref:s,flush:_,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(xr,x,{capture:!0}),t.removeEventListener(br,b)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return S._ignoreNextBeforeUnload=e=>{m=!1;try{e=new URL(e,t.document.baseURI).href,m=/^https?:/.test(e)&&(!e.includes(`#`)||e.split(`#`)[0]!==t.location.href.split(`#`)[0])}catch{}},t.addEventListener(xr,x,{capture:!0}),t.addEventListener(br,b),t.history.pushState=function(...e){let r=n.apply(t.history,e);return S._ignoreSubscribers||y(`PUSH`),r},t.history.replaceState=function(...e){let n=r.apply(t.history,e);return S._ignoreSubscribers||y(`REPLACE`),n},S}function Or(e,t){let n=wr(e),r=n.indexOf(`#`),i=n.indexOf(`?`);if(!t){let e=kr();t={[V]:0,key:e,__TSR_key:e}}return{href:n,pathname:n.slice(0,r>-1?i>-1?Math.min(r,i):r:i>-1?i:n.length),hash:r>-1?n.slice(r):``,search:i>-1?n.slice(i,r===-1?void 0:r):``,state:t}}function kr(){return(Math.random()+1).toString(36).slice(7)}function Ar(e,t){return e.protocol!==`http:`&&e.protocol!==`https:`||e.origin!==t||!!e.username||!!e.password}function jr(e){return e.pathname+e.search+e.hash}function Mr(e){return e.options.loader||e.options.beforeLoad||e.lazyFn||e.options.component?.preload||e.options.pendingComponent?.preload}function Nr(e,t){return{fromLocation:t,toLocation:e,pathChanged:t?.pathname!==e.pathname,hrefChanged:t?.href!==e.href,hashChanged:t?.hash!==e.hash}}function Pr({key:e,__TSR_key:t,__TSR_index:n,__hashScrollIntoViewOptions:r,...i}){return i}function Fr(e){return e.findIndex(e=>e.status===`error`||e.status===`notFound`||e._notFound)+1}function Ir(e,t,n,r,i,a){r&&(t=t.slice(0,r)),i&&(n=n.slice(0,i));for(let r of t){if(a&&e._tx!==a)return;n.some(e=>e.routeId===r.routeId)||e.routesById[r.routeId].options.onLeave?.(r)}for(let r of n){if(a&&e._tx!==a)return;e.routesById[r.routeId].options[t.some(e=>e.routeId===r.routeId)?`onStay`:`onEnter`]?.(r)}}var Lr=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={n:!0},this.subscribers=new Set,this._cache=new Map,this._committed=[],this.startTransition=async e=>(e(),!1),this.update=e=>{let t=this.options;this.options={...t,...e},this.isServer=this.options.isServer??!1??typeof document>`u`,this.staticLocations=new WeakMap,this.protocolAllowlist=new Set(this.options.protocolAllowlist),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.history=this.options.history?this.options.history:Dr()),this.origin=this.options.origin,this.origin||=window?.origin&&window.origin!==`null`?window.origin:`http://localhost`;let n=this.options.basepath??`/`,r=this.options.rewrite,i=this.basepath!==n||t?.rewrite!==r||t?.caseSensitive!==this.options.caseSensitive;if(i&&(this.basepath=n,this.rewrite=n!==`/`&&gn(n)?mr(n,this.options.caseSensitive,r):r),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let e;e=this.buildRouteTree(),this.setRoutes(e)}if(this.stores)i&&this.stores.location.set(this.latestLocation);else if(this.latestLocation){let e=this.getStoreConfig(this);this.batch=e.batch,this.stores=yr(this.latestLocation,e),ar(this)}},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let e=Rn(this.routeTree,this.options.caseSensitive);return this.options.routeMasks&&Pn(this.options.routeMasks,e.processedTree),{...e,resolvePathCache:On(1e3)}},this.subscribe=(e,t)=>{let n={eventType:e,fn:t};return this.subscribers.add(n),()=>{this.subscribers.delete(n)}},this.emit=e=>{for(let t of this.subscribers)if(t.eventType===e.type)try{t.fn(e)}catch(e){console.error(e)}},this.parseLocation=(e,t)=>{let n=({pathname:e,search:n,hash:r,href:i},a)=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(e)){let i=this.options.parseSearch(n),o=this.options.stringifySearch(i);return{href:e+o+r,publicHref:e+o+r,pathname:un(e),external:!1,searchStr:o,search:$t(t?.search,i),hash:un(r.slice(1)),state:F(t?.state,a)}}let o=hr(this.rewrite,new URL(i,this.origin)),s=this.options.parseSearch(o.search),c=this.options.stringifySearch(s);return o.search=c,{href:o.href.replace(o.origin,``),publicHref:i,pathname:un(Cr(o.pathname)),external:!!this.rewrite&&Ar(o,this.origin),searchStr:c,search:$t(t?.search,s),hash:un(o.hash.slice(1)),state:F(t?.state,a)}},r=n(e,e.state),{__tempLocation:i,__tempKey:a}=r.state;if(i&&(!a||a===this.tempLocationKey)){let e=n(i,{...i.state,__tempLocation:void 0,key:r.state.key,__TSR_key:r.state.__TSR_key});return e.maskedLocation=r,e}return r},this.matchRoutes=(e,t,n)=>typeof e==`string`?this.matchRoutesInternal({pathname:e,search:t},n):this.matchRoutesInternal(e,t),this.getMatchedRoutes=e=>{let t=Object.create(null),n=Ln(L(e),this.processedTree,!0);return n&&Object.assign(t,n.rawParams),[n?.branch||[this.routesById.__root__],t,n?.route]},this.buildLocation=e=>{{let t=this.staticLocations.get(e);if(t)return t}let t=!1,n=(n={})=>{if(n.href){let e=Or(n.href,{});n={...n,to:hr(this.rewrite,new URL(e.pathname,this.origin)).pathname,search:this.options.parseSearch(e.search),hash:e.hash.slice(1)}}let r=e._fromLocation||this._pendingLocation||this.latestLocation,i,a=()=>(t=!0,r),o=()=>i??=this.matchRoutesLightweight(a()),s=n.to?`${n.to}`:`.`,c=vn(s[0]===`/`?``:n.unsafeRelative===`path`?a().pathname:n.from??o()[1],s,this.options.trailingSlash,this.resolvePathCache),l=this.routesByPath[L(c)],u=c.includes(`$`),d;if(l)d=l._branch??=Vn(l);else if(u)d=[];else{let[e,t,n]=this.getMatchedRoutes(c);d=e,this.options.notFoundRoute&&(!n||n.path!==`/`&&t[`**`])&&(d=[...d,this.options.notFoundRoute])}let f=u?l?._interpolation??Mn(!1,{fullPath:c},0):void 0,p;for(let e of d){let t=e.options.params?.stringify??e.options.stringifyParams;if(t){let e=o()[3];if(p??=Hr(n.params,e),!Zt(p))break;p===e&&(p=Object.assign(Qt(),p));try{Object.assign(p,t(p))}catch{}}}p??=Hr(n.params,Ur(n.params,f)?o()[3]:Wr);let m=e.leaveParams?c:Cr(un(f?Sn(c,f,p,this.pathParamsDecoder):c)),h=Gr(d,e._includeValidateSearch),g=()=>{let t=o()[2];if(e._includeValidateSearch&&this.options.search?.strict){let e={};d.forEach(n=>{if(n.options.validateSearch)try{Object.assign(e,Vr(n.options.validateSearch,{...e,...t}))}catch{}}),t=e}return t},_=h.length?Kr(h,g(),n):n.search===!0?g():typeof n.search==`function`?n.search(g()):n.search||Wr,v=this.options.stringifySearch(_),y=n.hash===!0?a().hash:typeof n.hash==`function`?n.hash(a().hash):n.hash||void 0,b=y?`#${y}`:``,x=n.state?n.state===!0?a().state:typeof n.state==`function`?n.state(a().state):n.state:Wr,S=`${m}${v}${b}`,C,w,ee=!1;if(this.rewrite){let e=new URL(S,this.origin),t=e.origin,n=gr(this.rewrite,e);C=jr(e),Ar(n,t)?(w=n.href,ee=!0):w=Cr(jr(n))}else C=dn(S),w=C;return{publicHref:w,href:C,pathname:m,search:_,searchStr:v,state:x,hash:y??``,external:ee,unmaskOnReload:n.unmaskOnReload}},r=n(e);if(e.mask)r.maskedLocation=n({from:e.from,...e.mask});else if(this.options.routeMasks){let t=Fn(r.pathname,this.processedTree);if(t){let i=Object.assign(Qt(),t.rawParams),{from:a,params:o,...s}=t.route,c=Hr(o,i);r.maskedLocation=n({from:e.from,...s,params:c})}}return!t&&e._fromLocation&&this.staticLocations.set(e,r),r},this.commitLocation=async({viewTransition:e,ignoreBlocker:t,...n})=>{let r=n.maskedLocation??n;if(r.external)return Rr(this,r.publicHref,{replace:n.replace,ignoreBlocker:t});let i,a=L(this.latestLocation.href)===L(n.href)&&I(Pr(n.state),Pr(this.latestLocation.state)),o=this._commitPromise,s,c=new Promise(e=>{s=e});if(c.resolve=()=>{s(),o?.resolve()},this._commitPromise=c,a)this.load();else{let{maskedLocation:r,hashScrollIntoView:a,...o}=n;r&&(o={...r,state:{...r.state,__tempKey:void 0,__tempLocation:{...o,search:o.searchStr,state:{...o.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(o.unmaskOnReload??this.options.unmaskOnReload??!1)&&(o.state.__tempKey=this.tempLocationKey)),o.state={...o.state,__hashScrollIntoViewOptions:a??this.options.defaultHashScrollIntoView??!0},this.shouldViewTransition=e,i=n.replace?`REPLACE`:`PUSH`,this.history[i===`REPLACE`?`replace`:`push`](o.publicHref,o.state,{ignoreBlocker:t}),this.history.subscribers.size||this.load({action:{type:i}})}return this._scroll.n=n.resetScroll??!0,this._commitPromise},this.buildAndCommitLocation=({replace:e,resetScroll:t,hashScrollIntoView:n,viewTransition:r,ignoreBlocker:i,...a}={})=>{let o=this.buildLocation({...a,_includeValidateSearch:!0});this._pendingLocation=o;let s=this.commitLocation({...o,viewTransition:r,replace:e,resetScroll:t,hashScrollIntoView:n,ignoreBlocker:i});return queueMicrotask(()=>{this._pendingLocation===o&&(this._pendingLocation=void 0)}),s},this.navigate=async({to:e,reloadDocument:t,href:n,publicHref:r,...i})=>{let a=n?sn(n):void 0;if(a||t){if(e!==void 0||!n){let t=this.buildLocation({to:e,...i}),a=t.maskedLocation??t;n??=a.publicHref,r??=a.publicHref}let t=!a&&r?r:n;return Rr(this,t,i)}return this.buildAndCommitLocation({...i,href:n,to:e,_isNavigate:!0})},this.load=async e=>{this.updateLatestLocation(),e?.action&&(this._scroll.h=e.action.type===`PUSH`||e.action.type===`REPLACE`),await ki(this,e)},this.startViewTransition=e=>{let t=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,t&&typeof document.startViewTransition==`function`){let n;if(typeof t==`object`&&window.CSS?.supports?.(`selector(:active-view-transition-type(a))`)){let r=this.latestLocation,i=this.stores.resolvedLocation.get(),a=typeof t.types==`function`?t.types(Nr(r,i)):t.types;if(a===!1)return e();n={update:e,types:a}}else n=e;return document.startViewTransition(n).updateCallbackDone}return e()},this.invalidate=e=>{let t=this._committed,n=e?.filter,r=this._preloads,i=new Set,a=e=>{(!n||n(e))&&i.add(e.id)};t.forEach(a),this._cache.forEach(a),r?.forEach(e=>e.forEach(a)),this._tx?.[3].forEach(a);let o=[];for(let[e,t]of r??[])t.some(e=>i.has(e.id))&&(r.delete(e),o.push(e));let s=t=>{if(i.has(t.id)){let n=this.routesById[t.routeId],r={...t,invalid:!0,...(e?.forcePending||t.status===`error`||t.status===`notFound`)&&Mr(n)?{status:`pending`,error:void 0}:void 0};return t._flight=void 0,r}return t};this._committed=t.map(s);for(let[t,n]of this._cache)i.has(t)&&(n.invalid=!0,e?.forcePending&&(n.status=`pending`));for(let e of i){let t=this._flights?.get(e);this._flights?.delete(e),t&&!t[2]&&o.push(t[1])}for(let e of o)e.abort();return this.shouldViewTransition=!1,this.load({sync:e?.sync})},this.resolveRedirect=e=>{let t=e.options,n=e.headers.get(`Location`)||t.href;if(!n){let e=this.buildLocation(t);n=(e.maskedLocation??e).publicHref||`/`}let r;if(cn.test(n)||(r=sn(n))&&!this.protocolAllowlist.has(r))throw Error(`Redirect blocked: unsafe protocol`);if(r===`http:`||r===`https:`){let e=new URL(n);e.pathname.startsWith(`//`)?n=e.href:Ar(e,this.origin)||(n=jr(e),r=void 0)}return r&&(t.reloadDocument=!0),t.href=n,e.headers.set(`Location`,n),e},this.clearCache=e=>{let t=this._cache,n=this._preloads,r=e?.filter,i=[],a=[];for(let[e,n]of t)(!r||r(n))&&(a.push(e),i.push(n));let o=[];for(let[e,t]of n??[])(!r||t.some(r))&&(o.push(e),i.push(...t));for(let e of a)t.delete(e);for(let e of o)n.delete(e);for(let e of i){let t=e._flight;e._flight=void 0,t&&!--t[2]&&(this._flights?.get(e.id)===t&&this._flights.delete(e.id),o.push(t[1]))}for(let e of o)e.abort()},this.loadRouteChunk=H,this.preloadRoute=e=>Ai(this,e),this.matchRoute=(e,t)=>{let n={...e,to:e.to?vn(e.from||``,e.to,this.options.trailingSlash,this.resolvePathCache):void 0,params:e.params||{},leaveParams:!0},r=this.buildLocation(n),i=this.stores.status.get()===`pending`;if(t?.pending&&!i)return!1;let a=t?.pending??!i?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),o=In(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,a.pathname,this.processedTree);return!o||e.params&&!I(o.rawParams,e.params,!0)?!1:t?.includeSearch??!0?I(a.search,r.search,!0)?o.rawParams:!1:o.rawParams},this.getStoreConfig=t,e.pathParamsAllowedCharacters?.length&&(this.pathParamsDecoder=yn(e.pathParamsAllowedCharacters)),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??`fuzzy`,stringifySearch:e.stringifySearch??dr,parseSearch:e.parseSearch??ur,protocolAllowlist:e.protocolAllowlist??on}),self.__TSR_ROUTER__=this}isShell(){return!!this.options.isShell}get state(){return this.stores.__store.get()}setRoutes(e){Object.assign(this,e),this.lightweightCache=new WeakMap,this.staticLocations=new WeakMap;let t=this.options.notFoundRoute;t&&(t.init(99999999999),this.routesById[t.id]!==t&&(t._interpolation=Mn(!1,t,0)),this.routesById[t.id]=t)}matchRoutesInternal(e,t){let[n,r,i]=this.getMatchedRoutes(e.pathname),a=n,o=!1;(i?i.path!==`/`&&r[`**`]:L(e.pathname))&&(this.options.notFoundRoute?a=[...a,this.options.notFoundRoute]:o=!0);let s=o?qr(this.options.notFoundMode,a):void 0,c=Array(a.length),l=this._committed,u=(e,t)=>{let n=l[t];return n?.routeId===e.id?n:e===this.options.notFoundRoute?l.find(t=>t.routeId===e.id):void 0},d;for(let n=0;n<a.length;n++){let i=a[n],o=c[n-1],l,f,p;{let n=o?.search??e.search,r=o?._strictSearch??void 0;try{let e=Vr(i.options.validateSearch,{...n})??void 0;l={...n,...e},f={...r,...e}}catch(e){let r=e;if(e instanceof zr||(r=new zr(e.message,{cause:e})),t?.throwOnError)throw r;l=n,f={},p=r}}let m=``,h=``;try{m=i.options.loaderDeps?.({search:l})??``,h=m&&JSON.stringify(m)||``}catch(e){if(t?.throwOnError)throw e;p??=e}let g=Qt(),_=i._interpolation?Sn(i.fullPath,i._interpolation,r,this.pathParamsDecoder,g):i.fullPath,v=i.id+_+h,y=u(i,n),b=this._cache.get(v)??(y?.id===v?y:void 0);d=b?._strictParams??Object.assign(g,d);let x;if(!b)try{Jr(i,d)}catch(e){if(x=wn(e)||Dn(e)?e:new Br(e.message,{cause:e}),t?.throwOnError)throw x}let S=y?`stay`:`enter`,C;if(b)C={...b,cause:S,search:$t(y?y.search:b.search,l),_strictSearch:f,searchError:p};else{let e=Mr(i)?`pending`:`success`;C={id:v,ssr:i.options.ssr,index:n,routeId:i.id,params:y?.params??d,_strictParams:d,pathname:_,updatedAt:Date.now(),search:y?$t(y.search,l):l,_strictSearch:f,searchError:p,status:e,isFetching:!1,error:void 0,paramsError:x,context:{},abortController:t?._controller??new AbortController,cause:S,loaderDeps:y?F(y.loaderDeps,m):m,invalid:!1,preload:!1,staticData:i.options.staticData||{},fullPath:i.fullPath}}let w=s===i.id;C._notFound&&!w&&(C.error=void 0),C._notFound=w,c[n]=C}for(let e=0;e<c.length;e++){let n=c[e];n.params=n.cause===`stay`?$t(n.params,d):d,t?._controller&&(n.context={})}return c}matchRoutesLightweight(e){let t=P(this.stores.ids.get()),n=t?this.stores.byRoute.get(t).get():void 0,r=n?.id,i=this.lightweightCache.get(e);if(i&&i[0]===r)return i[1];let[a,o]=this.getMatchedRoutes(e.pathname),s=P(a),c={...e.search};for(let e of a)try{Object.assign(c,Vr(e.options.validateSearch,c))}catch{}let l=n&&n.routeId===s.id&&n.pathname===e.pathname,u;if(l)u=n.params;else{let e=o;for(let t of a)try{Jr(t,e)}catch{}u=e}let d=[a,s.fullPath,c,u];return this.lightweightCache.set(e,[r,d]),d}};async function Rr(e,t,{replace:n,ignoreBlocker:r}){if(!ln(t,e.protocolAllowlist)){if(!r){let t=e.history._getBlockers();for(let r of t)if(r?.blockerFn&&await r.blockerFn({currentLocation:e.history.location,nextLocation:e.history.location,action:n?`REPLACE`:`PUSH`}))return}e.history._ignoreNextBeforeUnload?.(t),n?window.location.replace(t):window.location.href=t}}var zr=class extends Error{},Br=class extends Error{};function Vr(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new zr(`Async validation not supported`);if(n.issues)throw new zr(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return`parse`in e?e.parse(t):typeof e==`function`?e(t):{}}function Hr(e,t){if(e===void 0||e===!0)return t;let n=Object.create(null);return e===!1||e===null?n:typeof e==`function`?(Object.assign(n,t),Object.assign(n,e(n))):Object.assign(n,t,e)}function Ur(e,t){return typeof e==`function`?!0:!t||e===!1||e===null?!1:e===void 0||e===!0||t.some(t=>typeof t!=`string`&&!Xt.call(e,t[1]))}var Wr=Object.freeze({});function Gr(e,t){let n=[];for(let r=0;r<e.length;r++){let i=e[r].options;`search`in i?i.search?.middlewares&&n.push(...i.search.middlewares):(i.preSearchFilters||i.postSearchFilters)&&n.push(({search:e,next:t})=>{let n=t(i.preSearchFilters?i.preSearchFilters.reduce((e,t)=>t(e),e):e);return i.postSearchFilters?i.postSearchFilters.reduce((e,t)=>t(e),n):n});let a=i.validateSearch;t&&a&&n.push(({search:e,next:t,meta:n})=>{let r=t(e);try{let e=Vr(a,r);if(n&&e)for(let t in e)t in r||(n.defaulted||=new Map).set(t,e[t]);return{...r,...e}}catch{}return r})}return n}function Kr(e,t,n){let r=(t,i,a)=>{if(t>=e.length){if(!n.search)return{};if(n.search===!0)return i;let e=Yt(n.search,i);return a&&(a.explicit=e),e}return e[t]({search:i,next:(e,n)=>{if(n){let n=a||{};return{search:r(t+1,e,n),meta:n}}return r(t+1,e,a)},meta:a})};return r(0,t)}function qr(e,t){if(e!==`root`){let e;for(let n=t.length-1;n>=0;n--){let r=t[n];if(r.options.notFoundComponent)return r.id;e||=r.children&&r.id}if(e)return e}return Tn}function Jr(e,t){let n=e.options.params?.parse??e.options.parseParams;n&&Object.assign(t,n(t))}function Yr(e,t){return e.options[t]?.preload?.()}function Xr(e,t){let n=Yr(e,`component`),r=Yr(e,`pendingComponent`);return t&&(r?r=r.then(t):t()),n&&r?Promise.all([n,r]).then(()=>{}):n??r}function H(e,t,n){let r=()=>t===!1?void 0:t?Yr(e,t):Xr(e,n),i=e._lazy;if(i)return i===!0?r():i.then(r);if(!e.lazyFn)return r();let a=e.lazyFn().then(t=>{{let{id:n,...r}=t.options;Object.assign(e.options,r),e._lazy=!0}},t=>{throw e._lazy=void 0,t});return e._lazy=a,a.then(r)}function Zr(e){let t=e.findIndex(e=>e.status!==`success`||e._notFound)+1;return t&&t<e.length?e.slice(0,t):e}function Qr(e,t,n){let r=e._tx;return t&&r?.[2]===n&&!r[3].some(e=>e.routeId===t)}var U=0,W=1,$r=2,G=3,K=[4];function ei(e){return typeof e[0]==`number`}function q(e,t){return t.aborted?Promise.race([Promise.reject(t),e]):new Promise((n,r)=>{let i=()=>r(t);t.addEventListener(`abort`,i,{once:!0}),Promise.resolve(e).then(n,r).then(()=>t.removeEventListener(`abort`,i))})}function J(e,t){return e.routesById[t.routeId]}function ti(e,t,n){return Dn(e)?[G,e]:wn(e)?(e.routeId||=n,[$r,e]):t?(typeof e?.then==`function`&&(e=Error(`A Promise was thrown`,{cause:e})),[W,e]):[U,e]}function ni(e,t){let n=ti(t,!0,e.id);if(n[0]!==W)return n;try{e.options.onError?.(n[1])}catch(t){n=ti(t,!0,e.id)}return n}function ri(e,t,n,r,i){return i[0].signal.aborted?K:gi(e,t,n,ni(n,r),i)}async function ii(e,t,n,r,i,a){let[o,s]=t,c=n[0].signal,l=!!n[3];for(let i=n[6]??0;i<r;i++){let r=s[i],u=J(e,r);r.abortController=n[0];let d=s[i-1]?.context??e.options.context??{},f={params:r.params,location:o,navigate:t=>e.navigate({...t,_fromLocation:o}),buildLocation:e.buildLocation,cause:l?`preload`:r.cause,abortController:n[0],preload:l,matches:s,routeId:u.id};try{let e=r._ctx||=u.options.context?u.options.context({...f,deps:r.loaderDeps,context:d})||{}:void 0;r.context={...d,...e}}catch(a){return Y(e,r),[i,ri(e,t,u,a,n)]}if(c.aborted)return[i,K];let p=r.paramsError??r.searchError;if(p!==void 0)return Y(e,r),[i,ri(e,t,u,p,n)];let m=u.options.beforeLoad;if(!m)continue;let h=r.status;i>=a&&(r.status=`pending`,n[7]?.());try{si(e,r,`beforeLoad`,n[0]);let a=m({...f,search:r.search,context:r.context,...e.options.additionalContext}),o=await(typeof a?.then==`function`?q(a,c):a);if(c.aborted)return[i,K];let s=gi(e,t,u,ti(o,!1,u.id),n);if(s[0]!==U)return Y(e,r),[i,s];r.context={...r.context,...o}}catch(a){return Y(e,r),[i,ri(e,t,u,a,n)]}finally{r.status=h,si(e,r,!1,n[0])}}i()}function ai(e,t,n){if(!(!n||--n[2])){if(e._flights?.get(t.id)===n){let n=e._tx;if(n&&!n[0].signal.aborted&&!n[3].includes(t)&&n[3].some(e=>e.id===t.id)&&n[3].some(e=>e.isFetching===`beforeLoad`))return;e._flights.delete(t.id)}return n[1]}}function Y(e,t){let n=t._flight;t._flight=void 0,ai(e,t,n)?.abort()}function X(e,t,n,r){let i=[];for(let a of t)if(!n?.includes(a)){let t=a._flight;if(a._flight=void 0,r&&t?.[2]===1&&e._flights?.get(a.id)===t&&n?.some(e=>e.id===a.id))t[2]=0;else{let n=ai(e,a,t);n&&i.push(n)}}for(let e of i)e.abort()}function oi(e){for(let t of e){let e=t._flight;e&&e[2]++}}function si(e,t,n,r){if(t.isFetching=n,r&&e._tx?.[0]!==r)return;let i=e.stores.byRoute.get(t.routeId),a=i?.get();a?.id===t.id&&i.set({...a,isFetching:n})}function ci(e,t,n,r,i,a,o){let s=t[0];return{params:n.params,location:s,navigate:t=>e.navigate({...t,_fromLocation:s}),cause:o?`preload`:n.cause,abortController:i,preload:o,deps:n.loaderDeps,parentMatchPromise:a,context:n.context,route:r,...e.options.additionalContext}}async function li(e,t,n,r,i,a,o){let s=o[0],c=s.signal;if(c.aborted)return K;if(!i)return[U,void 0];let l=n._flight;si(e,n,`loader`,s);try{if(!l){let s=new AbortController;l=[Promise.resolve().then(()=>i(ci(e,t,n,r,s,a,!!o[3]))).then(e=>ti(e,!1,r.id),e=>ti(e,!0,r.id)).then(t=>(t[0]!==U&&e._flights?.get(n.id)===l&&(e._flights.delete(n.id),l[2]||s.abort()),t[0]===W&&l[2]?ni(r,t[1]):t)),s,1],(e._flights??=new Map).set(n.id,l)}return n._flight=l,n.abortController=l[1],gi(e,t,r,await q(l[0],c),o)}catch(t){if(t!==c||!c.aborted)throw t;return Y(e,n),K}finally{si(e,n,!1,s)}}function ui(e,t,n){t[0]!==G&&(e.status=`success`,e.error=void 0,t[0]===U?(e.loaderData=t[1],e.invalid=!1,e.updatedAt=Date.now(),e.preload=n):e.invalid=!0)}function di(e,t,n){let r=e._cache.get(t.id);if(r!==n||e._committed.some(e=>e.id===t.id&&e._flight===t._flight))return;let i={...t,_notFound:void 0,context:{}};i._flight&&i._flight[2]++,e._cache.set(t.id,i),r&&Y(e,r)}function fi(e,t){return t[0]===W||t[0]===$r?{...e,status:t[0]===W?`error`:`notFound`,error:t[1],_flight:void 0}:e}function pi(e,t,n,r,i,a,o){let s=t[1][n],c=J(e,s),l=!!a[3],u=e._cache.get(s.id),d,f=!1,p;try{if(s.status===`success`&&(d=c.options.shouldReload,typeof d==`function`&&(d=d(ci(e,t,s,c,a[0],i,l))),a[0].signal.aborted&&(p=K)),!p){if(s.status!==`success`)f=!0;else{let t=l||s.preload?c.options.preloadStaleTime??e.options.defaultPreloadStaleTime??3e4:c.options.staleTime??e.options.defaultStaleTime??0;f=!!(s.invalid||d||d===void 0&&Date.now()-s.updatedAt>=t&&(a[5]||s.cause===`enter`||a[2].some(e=>e.routeId===s.routeId&&e.id!==s.id)))}}}catch(n){s.invalid=!0,Y(e,s),p=ri(e,t,c,n,a)}let m=c.options.loader,h=typeof m==`function`,g=h?m:m?.handler,_=!l||c.options.preload!==!1,v=_&&m?e._flights?.get(s.id):void 0;v===s._flight||p?v=void 0:v&&!f&&!l&&d===void 0?f=!0:f||(v=void 0);let y=!(!m||!f||s.status!==`success`||l||a[4]||((h?void 0:m.staleReloadMode)??e.options.defaultStaleReloadMode)===`blocking`),b=f&&_,x=b&&!y&&(s.status!==`success`||!!m),S=n>=o?a[7]:void 0,C=c.lazyFn&&c._lazy!==!0?S:void 0;if(b&&!m&&(s.invalid=!1,s.updatedAt=Date.now()),v&&v[2]++,x){let t=s._flight;s._flight=v,ai(e,s,t)?.abort(),n>=o&&(s.status=`pending`),S?.()}b||(s.isFetching=!1);let w=!p&&x?li(e,t,s,c,g,i,a).then(t=>(ui(s,t,l),t[0]===U&&(m&&!a[0].signal.aborted&&di(e,s,u),n>=o&&(s.status=`pending`)),t)):Promise.resolve(p??[U,s.loaderData]),ee=(async()=>{try{let e=H(c,void 0,C);e&&await q(e,a[0].signal)}catch(r){if(!t[1].some((e,t)=>t<=n&&(e.status===`error`||e.status===`notFound`||e._notFound)))return[n,ri(e,t,c,r,a)]}let r=await w;x&&r[0]===U&&s.status===`pending`&&!a[0].signal.aborted&&(s.status=`success`,S?.())})();if(r.push([n,w,ee]),!y)return w.then(e=>fi(s,e));let te={...s,status:`pending`,preload:!1,_flight:v};s.invalid=!1,s.isFetching=`loader`;let ne=li(e,t,te,c,g,i,a).then(e=>(s.isFetching=!1,ui(te,e,!1),e));return(t[2]??=[]).push([n,ne,ee,te]),ne.then(e=>fi(te,e))}async function mi(e,t,n,r,i=0){let a=n?.[1][1],o=a?.routeId?t.findIndex(e=>e.routeId===a.routeId):n?.[0]??t.length-1;o<0&&(o=0);for(let n=o;n>=0;n--){let i=J(e,t[n]);try{let e=H(i,!1);e&&await q(e,r)}catch(e){if(e===r&&r.aborted)throw e}if(i.options.notFoundComponent)return n}return a?.routeId?o:i}function Z(e,t){t[2]&&=(X(e,t[2].map(e=>e[3])),void 0)}async function hi(e,t,n,r){let i;try{await Promise.all(e.map(e=>e[1].then(async t=>{let a=e[0];if(!(r&&a>=await r)){if(t[0]>=G)throw[a,t];!i&&t[0]!==U&&(i=[a,t],await Promise.all((n??[]).map(e=>{if(!(e[0]<=a))return e[1].then(t=>{if(t[0]===G)throw[e[0],t]})})))}})))}catch(e){return e}return t??i}function gi(e,t,n,r,i,a){for(;r[0]===G;){let o=r[1],s=o.options;try{if((s.href||o.headers.has(`Location`))&&(e.resolveRedirect(o),s.reloadDocument)||(s.reloadDocument?i[3]:i[1]>=20))return r;let n=e.buildLocation({...s,_fromLocation:t[0],_includeValidateSearch:!0}),a=n.maskedLocation??n;if(a.external){let t=o.clone();return t.options={...s},t.headers.set(`Location`,a.publicHref),e.resolveRedirect(t),i[3]?[G,t]:[G,t,a]}return[G,o,n]}catch(e){r=a?[W,e]:ni(n,e),a=!0}}return r}async function _i(e,t,n,r,i,a){let o=t[1],s=await i,c=!1,l=o.findIndex(e=>e._notFound),u=t=>t[1][0]===$r?mi(e,o,t,r.signal):t[0],d=l<0?o.length:l;if((s?.[1][0]??0)>=G)d=0;else if(s){d=s[2]??=await u(s);for(let e of n){if(e[0]>=d)break;let t=await e[1];if(t[0]!==U&&t[0]<G&&!(`loaderData`in o[e[0]])){s=[e[0],t],d=s[2]=await u(s);break}}}for(let e of n){if(e[0]>=d)break;let t=await e[2];if(t){s=t;break}}if((s?.[1][0]??0)>=G){let n=s[1];if(n[0]!==G||n[1].options.reloadDocument||n[2])return Z(e,t),n;c=!0,s=[0,[W,Error(`Too many redirects`)]]}let f=s?s[2]??await u(s):l;if(f>=0){let i=s?.[1],l=i?.[0],u=o[f],d=i?.[1],p=()=>{i&&(u._notFound=void 0,l===W?u.status=`error`:(d.routeId=u.routeId,u.routeId===e.routeTree.id?(u.status=`success`,u._notFound=!0):u.status=`notFound`),u.error=d,u.isFetching=!1)};p(),i||a?.();let m=J(e,u);try{await q(i?Promise.resolve().then(()=>H(m,l===W?`errorComponent`:`notFoundComponent`)):Promise.all([H(m),H(m,`notFoundComponent`)]),r.signal)}catch(n){if(n===r.signal&&r.signal.aborted)return Z(e,t),K}i?c&&(r.abort(),await Promise.all([...n.map(e=>e[1]),...n.map(e=>e[2]),...(t[2]??[]).map(e=>e[1])]),Z(e,t),X(e,o),p()):u.status=`success`}return t}async function vi(e,t,n,r=0,i=t[1].length){let a=t[1];for(let t=r;t<i;t++){let r=a[t],i=J(e,r).options;if(i.head||i.scripts)try{let t={ssr:e.options.ssr,matches:a,match:r,params:r.params,loaderData:r.loaderData},[o,s]=await q(Promise.all([i.head?.(t),i.scripts?.(t)]),n);r.meta=o?.meta,r.links=o?.links,r.headScripts=o?.scripts,r.styles=o?.styles,r.scripts=s}catch(e){if(e===n&&n.aborted)break;console.error(e)}if(r.status!==`success`||r._notFound)break}return t}async function yi(e,t,n,r){let i=[t,n],a=r[0].signal,o;try{let t=e.stores.matches.get(),s=n.findIndex(e=>e._notFound);if(e.options.notFoundMode!==`root`&&s>=0){let t=await mi(e,n,void 0,a,s);n[s]._notFound=void 0,n[t]._notFound=!0,s=t}let c=s<0?n.length:s+1,l=0;for(;l<c&&l!==s;){let e=n[l],i=r[2][l],a=t[l];if(i?.id!==e.id||i.status!==`success`||e.preload||a?.id!==e.id||a.status!==`success`||(l++,i._notFound||a._notFound))break}let u=[],d=r[6]??0,f=d?Promise.resolve(n[d-1]):void 0,p=()=>{for(let t=d;t<c&&!a.aborted;t++)f=pi(e,i,t,u,f,r,l)},m=await ii(e,i,r,c,p,l);if(m){if(r[4]=!0,c=m[0],m[1][0]===$r){let t=await mi(e,n,m,a);m[2]=t,c=Math.min(c,t+1)}else m[1][0]>=G&&(c=0);p()}if(!a.aborted&&!r[3]){let t=[];for(let[n,r]of e._flights??[])r[2]||(e._flights.delete(n),t.push(r[1]));for(let e of t)e.abort()}let h=_i(e,i,u,r[0],hi(u,m,i[2]),r[7]);i[2]?.length&&(i[3]=hi(i[2],void 0,void 0,h.then(e=>ei(e)?0:Zr(n).length,()=>0))),o=await h}catch(t){if(Z(e,i),t===a&&a.aborted)return K;throw t}return ei(o)?o:vi(e,o,a,r[6]===n.length?r[6]:0)}function bi(e,t){if(e._tx!==t)return;let n=t[3],r=e.stores.matches.get(),i=e._pending;for(let a=0;a<n.length;a++){let o=n[a],s=o.status===`success`&&!o._notFound,c=r[a]?.id===o.id&&r[a]?.status===`pending`;if(s&&!c)continue;let l=J(e,o),u=s||o.invalid?0:l.options.pendingMs??e.options.defaultPendingMs,d=l.options.pendingComponent??e.options.defaultPendingComponent;if(!d||typeof u!=`number`||u===1/0){i&&(i[0]=t,i[2]=0,i[4]=!0);return}let f=l.options.pendingMinMs??e.options.defaultPendingMinMs??0,p=!1;if(i?.[1]===o.id?(p=i[0]!==t,i[0]=t):(clearTimeout(i?.[3]),e._pending=i=void 0),i||(e._pending=i=[t,o.id,c?Date.now()+f:t[4]+u,void 0,c||void 0,d]),i[4]&&!p&&i[5]===d)return;if(i[5]=d,!i[4]){clearTimeout(i[3]);let n=i[2]-Date.now();if(n>0){i[3]=setTimeout(()=>bi(e,t),n);return}i[2]=0}let m=n.map(e=>({...e,_flight:void 0}));m[a].status=`pending`;let h=i[4]=e.startTransition(()=>e.stores.setMatches(m),m).then(t=>(t&&e._pending===i&&i[4]===h&&!i[2]&&(i[2]=Date.now()+f),t));return}}function xi(e,t){let n=e._pending;e._tx!==t&&e._tx?.[3].some(e=>e.id===n?.[1])||(clearTimeout(n?.[3]),e._pending=void 0)}async function Si(e,t){let n=e._pending;if(!n)return;clearTimeout(n[3]);let r=n[2]-Date.now();if(!n[4]||r<=0||!Zr(t[3]).some(e=>e.id===n[1]))return;let i;try{await q(new Promise(e=>{i=setTimeout(e,r)}),t[0].signal)}catch{}clearTimeout(i)}function Ci(e,t){e._committed=t,e.stores.setMatches(t)}function wi(e,t,n,r){let i=e._committed,a=e._lifecycleEnd,o=e._cache;for(let e of n)e.preload=!1,r&&(e._assetEnd=void 0);let s=Zr(n).length,c=new Map;{let t=Date.now(),r=new Set;for(let e=0;e<n.length;e++){let t=n[e];(e<s||t.status===`success`)&&r.add(t.id)}for(let n of[...i,...o.values()]){if(n.status!==`success`||r.has(n.id))continue;let i=J(e,n);!i.options.loader||t-n.updatedAt>=(n.preload?i.options.preloadGcTime??e.options.defaultPreloadGcTime??3e5:i.options.gcTime??e.options.defaultGcTime??3e5)||c.set(n.id,o.get(n.id)===n?n:{...n,_flight:void 0,isFetching:!1,context:{}})}}t[3]=[],e._cache=c;let l=e._lifecycleEnd=Fr(n);Ci(e,n),X(e,[...o.values(),...i].filter(e=>e._flight&&c.get(e.id)!==e),n),Ir(e,i,n,a,l,t)}async function Ti(e,t){let n=e._tx;for(;n&&n!==t;)t=n,await n[5],n=e._tx}function Ei(e,t,n){let r=n[1].options,i=n[2];if(!i)return e.navigate({...r,replace:!0,ignoreBlocker:!0});if(r.reloadDocument)return e.navigate({href:(i.maskedLocation??i).publicHref,reloadDocument:!0,replace:!0,ignoreBlocker:!0});i._redirects=t[1]+1,e._pendingLocation=i;let a=e.commitLocation({...i,viewTransition:r.viewTransition,replace:!0,resetScroll:r.resetScroll,hashScrollIntoView:r.hashScrollIntoView,ignoreBlocker:!0});return queueMicrotask(()=>{e._pendingLocation===i&&(e._pendingLocation=void 0)}),a}async function Di(e,t,n,r,i){let a=n.map(e=>({...e}));oi(a);for(let t of r)Y(e,a[t[0]]),a[t[0]]=t[3];let o=[t[2],a],s;try{s=await _i(e,o,r,t[0],i)}catch(t){throw X(e,a),t}if(ei(s))X(e,a),s[0]===G&&e._tx===t&&e._committed===n&&await Ei(e,t,s);else if(await vi(e,s,t[0].signal),e._tx!==t||e._committed!==n)X(e,a);else{for(let t of a){let n=e._cache.get(t.id);n?._flight&&n._flight===t._flight&&(e._cache.delete(t.id),Y(e,n))}Ci(e,a),X(e,n,a)}}async function Oi(e,t,n,r,i,a){let o=await yi(e,t[2],t[3],[t[0],t[1],e._committed,void 0,i,n,a,r]);if(ei(o)){let n=o[0]===G&&e._tx===t;if((!n||o[1].options.reloadDocument)&&xi(e,t),X(e,t[3]),t[3]=[],!n)return;if(e._tx!==t){xi(e,t);return}await Ei(e,t,o);return}let s=o[1];if(e._tx===t&&await Si(e,t),e._tx!==t){xi(e,t),X(e,s),Z(e,o);return}let c=t[2],l=Nr(c,e.stores.resolvedLocation.get()),u=o[2];await e.startViewTransition(async()=>{if(e._tx===t&&await Si(e,t),e._tx!==t){xi(e,t),X(e,s),Z(e,o);return}let n=await e.startTransition(()=>{xi(e,t),wi(e,t,s,a),e._tx===t&&(e.emit({type:`onLoad`,...l}),e._tx===t&&e.emit({type:`onBeforeRouteMount`,...l}))},s);e._tx===t?(u?.length&&Di(e,t,s,u,o[3]).catch(console.error),e.batch(()=>{e.stores.resolvedLocation.set(c),e.stores.status.set(`idle`),e._tx===t&&e.emit({type:`onResolved`,...l}),n&&e._tx===t&&e.emit({type:`onRendered`,...l})}),e._tx===t&&(e._commitPromise?.resolve(),e._commitPromise=void 0)):Z(e,o)})}async function ki(e,t){let n=e._tx,r=e.stores.resolvedLocation.get(),i=r??e.stores.location.get(),a=e.latestLocation,o=e._pendingLocation,s=o?.href===a.href?o._redirects??0:0,c=e._handoff,l=c?.[0](),u=new AbortController,d=e._preflight;if(e._preflight=u,l||c?.[1](),d?.abort(),!u.signal.aborted){let t=Nr(a,r);e.emit({type:`onBeforeNavigate`,...t}),u.signal.aborted||e.emit({type:`onBeforeLoad`,...t})}if(u.signal.aborted){await Ti(e,n);return}let f=i.href===a.href,p=u,m=e.matchRoutes(a,{_controller:u});oi(m);let h=l?c[1](m):void 0;if(h?p=l:l?.abort(),u.signal.aborted){X(e,m),await Ti(e,n);return}e._preflight=void 0;let g,_=()=>Oi(e,y,f,()=>bi(e,y),t?.sync,h),v=t?.sync?new Promise(e=>g=e):Promise.resolve().then(_),y=[p,s,a,m,Date.now(),v.then(()=>Ti(e,y))];if(e._tx=y,n){for(let t of e.stores.matches.get()){if(e._tx!==y)break;t.isFetching&&si(e,t,!1)}n[0].abort(),X(e,n[3],y[3],!0)}e._tx===y?(e.batch(()=>{e.stores.status.set(`pending`),e.stores.location.set(a)}),(h||!e._committed.length&&m[0]?.status!==`success`&&!m.some(e=>e._notFound))&&bi(e,y),g?.(_()),await y[5]):(X(e,y[3]),y[3]=[],g?.(),await Ti(e,y))}async function Ai(e,t){let n=e.buildLocation(t);for(let t=0;;t++){let r=e._committed,i=new AbortController,a,o,s;try{try{a=e.matchRoutes(n,{_controller:i}),oi(a),o=(e._preloads??=new Map).set(i,a),s=await yi(e,n,a,[i,t,r,!0])}finally{o&&(o=o.delete(i),X(e,a)),i.abort()}if(!ei(s))return s[1];if(!o||s.length<3)return;n=s[2]}catch(e){wn(e)||console.error(e);return}}}function ji(e,t){let n=e.stores.location,r=new Set,i,a,o=n=>{Qr(e,t,n)||(i=n,r.forEach(e=>e()))};return[()=>i??n.get(),e=>(r.size||(i=n.get(),a=n.subscribe(o).unsubscribe),r.add(e),()=>{r.delete(e),r.size||(a(),i=void 0)})]}var Mi=M.createContext(void 0),Ni=M.createContext(void 0),Pi=M.createContext(null);function Fi(e){return M.useContext(Pi)}var Ii=Ht();function Li(e,t){return e===t}function Ri(e,t=e=>e,n){let r=n?.compare??Li,i=(0,M.useCallback)(t=>{let{unsubscribe:n}=e.subscribe(t);return n},[e]),a=(0,M.useCallback)(()=>e.get(),[e]);return(0,Ii.useSyncExternalStoreWithSelector)(i,a,a,t,r)}var zi=class extends Ge()(`@deslop/runtime/shared/rpc/RpcStream`){};oe(zi,zi.of((e,t)=>_e(t.rpc.successSchema)?rt(mt(`rpc.stream`,!0),e):e));var Bi=ye(zi,e=>De(function*(){return _e(e.rpc.successSchema)&&(yield*mt(`rpc.stream`,!0)),yield*e.next(e.request)}));function Vi(e){return O(ct({pingTimeout:`15 seconds`,retryTransientErrors:!0}),pe(O(Dt(e),pe(It))),ge($e()),ge(Bi))}var Hi=class extends Lt()(`AuthError`,{cause:f(st()),error:u(Me([`invalid_request`,`invalid_client`,`invalid_client_metadata`,`invalid_redirect_uri`,`invalid_grant`,`invalid_scope`,`unsupported_grant_type`,`unsupported_response_type`,`access_denied`,`authorization_pending`,`expired_token`,`temporarily_unavailable`])),message:T}){get name(){return this.error===`temporarily_unavailable`?`AuthUnavailable`:`AuthError`}},Ui=j({id:k,name:k});j({aud:Et(`deslop`),azp:k,exp:E,iat:E,iss:k,name:k,sid:k,sub:k}),j({name:T,redirects:Re(k.check(c(200))).check(c(4))}),j({client_id:k,code:k,code_verifier:k,redirect_uri:k}),j({session:k}),j({access_token:k,expires_in:A,refresh_token:k});function Wi(e){return`${new URL(e).origin}/auth/sign-in?${new URLSearchParams({next:e})}`}function Gi(e){return Ft(Hi)(e)&&e.error!==`temporarily_unavailable`&&e.error!==`access_denied`}function Ki(e){return Ft(Hi)(e)&&e.error!==`temporarily_unavailable`}Qe()(`@deslop/runtime/shared/auth/CurrentUser`);var qi=class extends Ge()(`@deslop/runtime/shared/auth/RpcAuth`,{error:Hi}){},Ji=T.check(de(e=>yt(r(jt(e)),e=>Le([`http:`,`https:`],e.protocol)&&e.username===``&&e.password===``&&e.hash===``),{expected:`an HTTP(S) URL without credentials or a fragment`})).check(de(e=>yt(r(jt(e)),e=>e.pathname===`/`&&e.search===``),{expected:`an HTTP(S) origin without a path or query`})),Yi=Ji.check(de(e=>yt(r(jt(e)),e=>e.protocol===`https:`||Le([`localhost`,`127.0.0.1`,`[::1]`],e.hostname)),{expected:`HTTPS outside loopback`}));T.check(Mt(/^\d{1,5}$/u),de(e=>yt(fe(e),e=>e>=1&&e<=65535),{expected:`a port between 1 and 65535`}));var Xi=T.check(Mt(/^0\.1\.\d+$/u)),Zi=`/api/runtime`,Qi=j({auth:u(Ji),name:T,traces:T,version:Xi}),$i=`/api/rpc`,ea=j({...Ui.fields,signOut:Ce});j({config:j({port:E}),name:T,version:Xi});function ta(e,t,n,r){return O(Ne(De(function*(){let a=`${yield*ht}`,o=yield*i,s={attributes:{"scope.run.started_unix_nano":a,"scope.runtime":n,"service.instance.id":a},serviceName:e,serviceVersion:Xe(Fe(r,e=>e!==`0.1.0`))};return O(me(gt({resource:s,url:new URL(`/v1/traces`,t).href}),Ee({resource:s,url:new URL(`/v1/logs`,t).href}),oe(i)([...o,`code`,`state`,`request`,`access_token`,`refresh_token`,`id_token`,`client_secret`,`client_assertion`,`code_verifier`,`session`,`token`])),pe([Ye,ke]))})),b(e=>ot(e)?dt(Ze):dt(je(`Telemetry is unavailable`))))}var na=w(He()),ra=l(e=>{let t=wt(`Web error`,qe(e.error),...Ot(be(e.stack)));return et(Je(na),{onNone:()=>t,onSome:n=>Ue(O(t,rt(Ke(e.error)),s(`Web.error`,{attributes:{"web.error.source":e.source,"web.route.id":e.route},root:!0}),xe),n)})}),ia=S(ke).atom(O(Nt(`/auth/user`),at(ce),at(o(ea))));function aa(e){return Ne(De(function*(){let t=yield*O((yield*we).get(Zi),at(ce),at(o(Qi)),Pt(`3 seconds`),Te(e=>je(`Telemetry is off: the runtime config did not load`,e)),lt);return et(t,{onNone:()=>v,onSome:t=>t.traces===``?v:ta(`${e}-client`,t.traces,`web`,t.version)})}))}var oa=Vi(kt(()=>`${location.origin}${$i}`));function sa(e){S.addGlobalLayer(O(aa(e),pe(ke),n(e=>Ct(Tt(e,St))?le:bt(kt(()=>ie(na,ve(e))),()=>kt(()=>m(na,nt(t=>t!==e)))))))}var ca=e(Vt(),1);function la(e){let t=ca.unstable_scheduleCallback(4,e);return()=>ca.unstable_cancelCallback(t)}var Q=M.createContext(p({scheduleTask:la,defaultIdleTTL:400})),ua=new WeakMap,da=0,$=new Set;function fa(e){da++;try{return e()}finally{da--}}function pa(e){if(da===0)return e();$.size===0&&queueMicrotask(ma),$.add(e)}function ma(){for(let e of $)$.delete(e),e()}function ha(e,t){let n=ua.get(e);n===void 0&&(n=new WeakMap,ua.set(e,n));let r=n.get(t);if(r!==void 0)return r;let i=0,a,o={subscribe(n){i++;let r=e.subscribe(t,()=>pa(n));return()=>{i--,$.delete(n),r()}},snapshot(){return fa(()=>e.get(t))},getServerSnapshot(){return(i===0||a===void 0)&&(a={value:fa(()=>ee(t,e))}),a.value}};return n.set(t,o),o}function ga(e,t){let n=ha(e,t);return M.useEffect(ma),M.useSyncExternalStore(n.subscribe,n.snapshot,n.getServerSnapshot)}function _a(e,t,n){let r=ha(e,t),i=M.useMemo(()=>{let e;return t=>(e!==void 0&&Object.is(e.source,t)||(e={source:t,value:n(t)}),e.value)},[n]);return M.useEffect(ma),M.useSyncExternalStore(r.subscribe,()=>i(r.snapshot()),()=>i(r.getServerSnapshot()))}var va=(e,t)=>{let n=M.useContext(Q);return t?_a(n,e,t):ga(n,e)};function ya(e,t){M.useEffect(()=>e.mount(t),[t,e])}function ba(e,t,n){return n?.mode===`promise`||n?.mode===`promiseExit`?M.useCallback(r=>{e.set(t,r);let i=Be(re(e,t,{suspendOnWaiting:!0}));return n.mode===`promise`?i.then(xa):i},[e,t,n.mode]):M.useCallback(n=>{e.set(t,typeof n==`function`?n(e.get(t)):n)},[e,t])}var xa=e=>{if(xt(e))return e.value;throw Oe(e.cause)},Sa=e=>{ya(M.useContext(Q),e)},Ca=(e,t)=>{let n=M.useContext(Q);return ya(n,e),ba(n,e,t)},wa=e=>{let t=M.useContext(Q);return ya(t,e),M.useCallback(()=>{t.refresh(e)},[t,e])},Ta=(e,t)=>{let n=M.useContext(Q);return[ga(n,e),ba(n,e,t)]},Ea={suspendOnWaiting:new WeakMap,default:new WeakMap};function Da(e,t,n){let r=n?Ea.suspendOnWaiting:Ea.default,i=r.get(e);i===void 0&&(i=new WeakMap,r.set(e,i));let a=i.get(t);return a===void 0&&(a=new Promise(r=>{let a=e.subscribe(t,e=>{e._tag===`Initial`||n&&e.waiting||(setTimeout(a,1e3),r(),i.delete(t))})}),i.set(t,a)),a}function Oa(e,t,n){let r=ga(e,t);if(r._tag===`Initial`||n&&r.waiting)throw Da(e,t,n);return r}var ka=(e,t)=>{let n=Oa(M.useContext(Q),e,t?.suspendOnWaiting??!1);if(n._tag===`Failure`&&!t?.includeFailure)throw Oe(n.cause);return n};function Aa(e){return g(e.reasons,e=>_t(e)&&Ki(e.error))}function ja(e){return!a(e)||!Aa(e.cause)&&Ae(e.previousSuccess)?He():ve(e.cause)}function Ma(e,n,r=te){function i(e){let t=At(e.reasons,e=>_t(e)&&Ki(e.error));return ne(t)?He():ve(Se(t))}let o=w(O(e.self(),nt(a),pt(e=>i(e.cause))));function s(e){return et(Je(o),{onNone:()=>e,onSome:t=>Se([...t.reasons,...At(e.reasons,e=>!_t(e)||!Ki(e.error))])})}let c=w(0),l=Pe(n,t=>kt(()=>{m(o,e=>ze(i(t),()=>e));let n=s(t);Ae(Je(o))?e.setSelf(x(n)):C(c)<2||e.setSelf(se(n,{previous:e.self()}))}));return O(r(l),t(()=>kt(()=>{ie(o,He()),ie(c,0)})),h(e=>_(s(e))),y(ae(()=>et(Je(o),{onNone:()=>ut,onSome:_}))))}function Na(e){return he(e,e=>d(e(ue(`1 second`)),e=>Ft(Hi)(e.input)?e.input.error===`temporarily_unavailable`:Ft(Ve)(e.input)&&e.input.reason._tag!==`RpcClientDefect`))}function Pa(e,t,n){return it(Ie(e,e=>e(t,n)))}function Fa(e,t,n,r=Na){return e.runtime.atom(i=>Ma(i,it(Ie(e,e=>e(t,n))),r))}var Ia=M.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,focusableWhenDisabled:a=!1,nativeButton:o=!0,style:s,...c}=e,{getButtonProps:l,buttonRef:u}=Wt({disabled:i,focusableWhenDisabled:a,native:o});return Ut(`button`,e,{state:{disabled:i},ref:[t,u],props:[c,l]})}),La=zt(),Ra=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,za=Gt,Ba=(e,t)=>n=>{if(t?.variants==null)return za(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=Ra(t)||Ra(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return za(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},Va=Ba(`group/button inline-flex shrink-0 items-center justify-center rounded-none border border-transparent bg-clip-padding text-xs font-medium whitespace-nowrap outline-none select-none focus-visible:border-ring focus-visible:ring-1 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-1 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,{variants:{variant:{default:`bg-primary text-primary-foreground hover:bg-primary/80`,outline:`border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50`,secondary:`bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground`,ghost:`hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50`,bare:`bg-transparent hover:bg-transparent dark:hover:bg-transparent`,destructive:`bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2`,xs:`h-6 gap-1 rounded-none px-2 text-xs has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3`,sm:`h-7 gap-1 rounded-none px-2.5 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5`,lg:`h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2`,icon:`size-8`,"icon-xs":`size-6 rounded-none [&_svg:not([class*='size-'])]:size-3`,"icon-sm":`size-7 rounded-none`,"icon-lg":`size-9`}},defaultVariants:{variant:`default`,size:`default`}});function Ha(e){let t=(0,La.c)(12),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:n,variant:i,size:a,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=i===void 0?`default`:i,s=a===void 0?`default`:a,c;t[5]!==n||t[6]!==s||t[7]!==o?(c=Kt(Va({variant:o,size:s,className:n})),t[5]=n,t[6]=s,t[7]=o,t[8]=c):c=t[8];let l;return t[9]!==r||t[10]!==c?(l=(0,N.jsx)(Ia,{"data-slot":`button`,className:c,...r}),t[9]=r,t[10]=c,t[11]=l):l=t[11],l}var Ua=j({minutes:Me([1,10,60,1440,10080])});j({...Ua.fields,worker:u(T.annotate({description:`A configured worker name.`}))});var Wa=D(We(A)),Ga=j({cpu:u(A),mib:E,name:T}),Ka=j({cpuPct:u(A),diskGiB:u(A),diskTotalGiB:u(A),load:u(D(A)),memoryGiB:A,memoryTotalGiB:A}),qa=j({apps:D(Ga),cpuPct:Wa,diskPct:Wa,error:u(T),from:T,memoryPct:Wa,now:u(Ka),stale:u(Et(!0)),stepSeconds:A,worker:T});D(qa),j({cpuIdle:A,cpuTotal:A,time:A,uptime:A});var Ja=j({cpu:u(A),id:T,memory:A}),Ya=class extends vt(`Sample`)({apps:tt(ft(D(Ja))),cpu:tt(A),memoryTotal:A,memoryUsed:A,since:E,step:E,storageUsed:tt(A),time:E}){static table=`samples`},Xa=j({mount:T,total:A,used:A}),Za=j({cpuModel:u(T),disks:D(Xa),error:T,load:D(A),samples:D(Ya.json),stale:Ce,time:A,worker:T});export{F as $,Pi as A,wn as B,qi as C,zi as D,Wi as E,Nr as F,L as G,mn as H,_r as I,Yt as J,pn as K,vr as L,Ni as M,Mi as N,Ri as O,Lr as P,tn as Q,En as R,Hi as S,Gi as T,_n as U,Cn as V,hn as W,Zt as X,sn as Y,ln as Z,ia as _,ja as a,ra as b,Fa as c,Ta as d,qt as et,Sa as f,va as g,ka as h,Ba as i,ji as j,Fi as k,Pa as l,Ca as m,Za as n,Aa as o,wa as p,I as q,Ha as r,Ma as s,Ua as t,Jt as tt,Na as u,sa as v,Ki as w,Yi as x,oa as y,Tn as z};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,t}from"./rolldown-runtime-XKyaHtl9.js";import{A as n,E as r}from"./effect-DDyRjlEL.js";import{o as i}from"./react-BPjvcVqE.js";var a=t((e=>{var t=i();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,a=t.useState,o=t.useEffect,s=t.useLayoutEffect,c=t.useDebugValue;function l(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,l=r[1];return s(function(){i.value=n,i.getSnapshot=t,u(i)&&l({inst:i})},[e,n,t]),o(function(){return u(i)&&l({inst:i}),e(function(){u(i)&&l({inst:i})})},[e]),c(n),n}function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function d(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?d:l;e.useSyncExternalStore=t.useSyncExternalStore===void 0?f:t.useSyncExternalStore})),o=t(((e,t)=>{t.exports=a()})),s=t((e=>{var t=i(),n=o();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var a=typeof Object.is==`function`?Object.is:r,s=n.useSyncExternalStore,c=t.useRef,l=t.useEffect,u=t.useMemo,d=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=c(null);if(o.current===null){var f={hasValue:!1,value:null};o.current=f}else f=o.current;o=u(function(){function e(e){if(!o){if(o=!0,s=e,e=r(e),i!==void 0&&f.hasValue){var t=f.value;if(i(t,e))return c=t}return c=e}if(t=c,a(s,e))return t;var n=r(e);return i!==void 0&&i(t,n)?(s=e,t):(s=e,c=n)}var o=!1,s,c,l=n===void 0?null:n;return[function(){return e(t())},l===null?void 0:function(){return e(l())}]},[t,n,r,i]);var p=s(e,o[0],o[1]);return l(function(){f.hasValue=!0,f.value=p},[p]),d(p),p}})),c=t(((e,t)=>{t.exports=s()})),l=e(i(),1),u=(0,l.createContext)({color:`currentColor`,size:`1em`,weight:`regular`,mirrored:!1}),d=l.forwardRef((e,t)=>{let{alt:n,color:r,size:i,weight:a,mirrored:o,children:s,weights:c,...d}=e,{color:f=`currentColor`,size:p,weight:m=`regular`,mirrored:h=!1,...g}=l.useContext(u);return l.createElement(`svg`,{ref:t,xmlns:`http://www.w3.org/2000/svg`,width:i??p,height:i??p,fill:r??f,viewBox:`0 0 256 256`,transform:o||h?`scale(-1, 1)`:void 0,...g,...d},!!n&&l.createElement(`title`,null,n),s,c.get(a??m))});d.displayName=`IconBase`;function f(){return typeof window<`u`}function p(e){return g(e)?(e.nodeName||``).toLowerCase():`#document`}function m(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function h(e){return((g(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function g(e){return f()?e instanceof Node||e instanceof m(e).Node:!1}function _(e){return f()?e instanceof Element||e instanceof m(e).Element:!1}function v(e){return f()?e instanceof HTMLElement||e instanceof m(e).HTMLElement:!1}function y(e){return!f()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof m(e).ShadowRoot}function b(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=E(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function ee(e){return/^(table|td|th)$/.test(p(e))}function x(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var te=/transform|translate|scale|rotate|perspective|filter/,S=/paint|layout|strict|content/,C=e=>!!e&&e!==`none`,ne;function re(e){let t=_(e)?E(e):e;return C(t.transform)||C(t.translate)||C(t.scale)||C(t.rotate)||C(t.perspective)||!ie()&&(C(t.backdropFilter)||C(t.filter))||te.test(t.willChange||``)||S.test(t.contain||``)}function w(e){let t=O(e);for(;v(t)&&!T(t);){if(re(t))return t;if(x(t))return null;t=O(t)}return null}function ie(){return ne??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),ne}function T(e){return/^(html|body|#document)$/.test(p(e))}function E(e){return m(e).getComputedStyle(e)}function D(e){return _(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function O(e){if(p(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||y(e)&&e.host||h(e);return y(t)?t.host:t}function k(e){let t=O(e);return T(t)?(e.ownerDocument||e).body:v(t)&&b(t)?t:k(t)}function A(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=k(e),i=r===e.ownerDocument?.body,a=m(r);if(i){let e=j(a);return t.concat(a,a.visualViewport||[],b(r)?r:[],e&&n?A(e):[])}return t.concat(r,A(r,[],n))}function j(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var ae={...l},oe={};function M(e,t){let n=l.useRef(oe);return n.current===oe&&(n.current=e(t)),n}var N=ae.useInsertionEffect,P=N&&N!==ae.useLayoutEffect?N:e=>e();function F(e){let t=M(I).current;return t.next=e,P(t.effect),t.trampoline}function I(){let e={next:void 0,callback:se,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function se(){}var L=typeof document<`u`?l.useLayoutEffect:()=>{};function R(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}var z={};function B(e,t,n,r,i){if(!n&&!r&&!i&&!e)return V(t);let a=V(e);return t&&(a=H(a,t)),n&&(a=H(a,n)),r&&(a=H(a,r)),i&&(a=H(a,i)),a}function ce(e){if(e.length===0)return z;if(e.length===1)return V(e[0]);let t=V(e[0]);for(let n=1;n<e.length;n+=1)t=H(t,e[n]);return t}function V(e){return fe(e)?{...e(z)}:le(e)}function H(e,t){return fe(t)?t(e):ue(e,t)}function le(e){let t={...e};for(let e in t){let n=t[e];de(e,n)&&(t[e]=me(n))}return t}function ue(e,t){if(!t)return e;for(let n in t){let r=t[n];switch(n){case`style`:e[n]=R(e.style,r);break;case`className`:e[n]=ge(e.className,r);break;default:e[n]=de(n,r)?pe(e[n],r):r}}return e}function de(e,t){let n=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2);return n===111&&r===110&&i>=65&&i<=90&&(typeof t==`function`||t===void 0)}function fe(e){return typeof e==`function`}function pe(e,t){return t?e?(...n)=>{let r=n[0];if(_e(r)){let i=r;he(i);let a=t(...n);return i.baseUIHandlerPrevented||e?.(...n),a}let i=t(...n);return e?.(...n),i}:me(t):e}function me(e){return e&&((...t)=>{let n=t[0];return _e(n)&&he(n),e(...t)})}function he(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function ge(e,t){return t?e?t+` `+e:t:e}function _e(e){return typeof e==`object`&&!!e&&`nativeEvent`in e}function ve(e,t){return function(n,...r){let i=new URL(e);return i.searchParams.set(`code`,n.toString()),r.forEach(e=>i.searchParams.append(`args[]`,e)),`${t} error #${n}; visit ${i} for the full message.`}}var ye=ve(`https://base-ui.com/production-error`,`Base UI`),be=l.createContext(void 0);function xe(e=!1){let t=l.useContext(be);if(t===void 0&&!e)throw Error(ye(16));return t}function Se(e){let{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:a}=e,o=r&&t!==!1,s=r&&t===!1;return{props:l.useMemo(()=>{let e={onKeyDown(e){n&&t&&e.key!==`Tab`&&e.preventDefault()}};return r||(e.tabIndex=i,!a&&n&&(e.tabIndex=t?i:-1)),(a&&(t||o)||!a&&n)&&(e[`aria-disabled`]=n),a&&(!t||s)&&(e.disabled=n),e},[r,n,t,o,s,a,i])}}function Ce(e,t,{detail:n=0,pointerType:r=``}={}){e.dispatchEvent(new(m(e)).PointerEvent(`click`,{bubbles:!0,cancelable:!0,composed:!0,detail:n,pointerType:r,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,altKey:t.altKey,metaKey:t.metaKey}))}function we(e={}){let{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:i=!0,composite:a}=e,o=l.useRef(null),s=xe(!0),c=a??s!==void 0,{props:u}=Se({focusableWhenDisabled:n,disabled:t,composite:c,tabIndex:r,isNativeButton:i}),d=l.useCallback(()=>{let e=o.current;Te(e)&&c&&t&&u.disabled===void 0&&e.disabled&&(e.disabled=!1)},[t,u.disabled,c]);return L(d,[d]),{getButtonProps:l.useCallback((e={})=>{let{onClick:n,onMouseDown:r,onKeyUp:a,onKeyDown:o,onPointerDown:s,...l}=e;return B({onClick(e){t?e.preventDefault():n?.(e)},onMouseDown(e){t||r?.(e)},onKeyDown(e){if(t||(he(e),o?.(e),e.baseUIHandlerPrevented))return;let n=e.target===e.currentTarget,r=e.currentTarget,a=Te(r),s=!i&&Ee(r),l=n&&(i?a:!s),u=e.key===`Enter`,d=e.key===` `,f=r.getAttribute(`role`),p=f?.startsWith(`menuitem`)||f===`option`||f===`gridcell`;if(n&&c&&d){if(e.defaultPrevented&&p)return;e.preventDefault(),(!i||a)&&(e.preventBaseUIHandler(),Ce(r,e))}else!l||i||!d&&!u?n&&s&&d&&e.preventDefault():e.defaultPrevented||(e.preventDefault(),u&&(e.preventBaseUIHandler(),Ce(r,e)))},onKeyUp(e){t||(he(e),a?.(e),e.target===e.currentTarget&&i&&c&&Te(e.currentTarget)&&e.key===` `?e.preventDefault():e.baseUIHandlerPrevented||e.target!==e.currentTarget||i||c||e.defaultPrevented||e.key!==` `||(e.preventBaseUIHandler(),Ce(e.currentTarget,e)))},onPointerDown(e){t?e.preventDefault():s?.(e)}},i?{type:`button`}:{role:`button`},u,l)},[t,u,c,i]),buttonRef:F(e=>{o.current=e,d()})}}function Te(e){return v(e)&&e.tagName===`BUTTON`}function Ee(e){return v(e)&&e.tagName===`A`&&!!e.href}function De(e,t,n,r){let i=M(ke).current;return Ae(i,e,t,n,r)&&Me(i,[e,t,n,r]),i.callback}function Oe(e){let t=M(ke).current;return je(t,e)&&Me(t,e),t.callback}function ke(){return{callback:null,cleanup:null,refs:[]}}function Ae(e,t,n,r,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==i}function je(e,t){return e.refs.length!==t.length||e.refs.some((e,n)=>e!==t[n])}function Me(e,t){e.refs=t,e.callback=t.every(e=>e==null)?null:n=>{if(e.cleanup&&=(e.cleanup(),null),n!=null){let r=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){let i=t[e];if(i!=null)switch(typeof i){case`function`:{let t=i(n);typeof t==`function`&&(r[e]=t);break}case`object`:i.current=n}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){let n=t[e];if(n!=null)switch(typeof n){case`function`:{let t=r[e];typeof t==`function`?t():n(null);break}case`object`:n.current=null}}}}}}var Ne=19;function Pe(e){return Ne>=e}function Fe(e){if(!l.isValidElement(e))return null;let t=e,n=t.props;return(Pe(19)?n?.ref:t.ref)??null}function Ie(){}var Le=Object.freeze([]),U=Object.freeze({});function Re(e,t){let n={};for(let r in e){let i=e[r];if(t?.hasOwnProperty(r)){let e=t[r](i);e!=null&&Object.assign(n,e)}else i===!0?n[`data-${r.toLowerCase()}`]=``:i&&(n[`data-${r.toLowerCase()}`]=i.toString())}return n}function ze(e,t){return typeof e==`function`?e(t):e}function Be(e,t){return typeof e==`function`?e(t):e}function Ve(e,t,n={}){let r=t.render;n.enabled!==!1&&(r=Ge(r));let i=He(t,n,r);if(n.enabled===!1)return null;let a=n.state??U;return Ke(e,r,i,a)}function He(e,t,n){let{className:r,style:i}=e,{state:a=U,ref:o,props:s,stateAttributesMapping:c,enabled:l=!0}=t,u=l?ze(r,a):void 0,d=l?Be(i,a):void 0,f=l?Re(a,c):U,p=l&&s?Ue(s):void 0,m=l?R(f,p)??{}:U;return typeof document<`u`&&(l?m.ref=Array.isArray(o)?Oe([m.ref,Fe(n),...o]):De(m.ref,Fe(n),o):De(null,null)),l?(u!==void 0&&(m.className=ge(m.className,u)),d!==void 0&&(m.style=R(m.style,d)),m):U}function Ue(e){return Array.isArray(e)?ce(e):B(void 0,e)}var We=Symbol.for(`react.lazy`);function Ge(e){if(e?.$$typeof!==We)return e;let t=l.Children.toArray(e)[0];return l.isValidElement(t)?t:e}function Ke(e,t,n,r){if(t){if(typeof t==`function`)return t(n,r);let e=B(n,t.props);return e.ref=n.ref,l.cloneElement(t,e)}return qe(e,n)}function qe(e,t){return e===`button`?(0,l.createElement)(`button`,{type:`button`,...t,key:t.key}):e===`img`?(0,l.createElement)(`img`,{alt:``,...t,key:t.key}):l.createElement(e,t)}function Je(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Je(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function Ye(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Je(e))&&(r&&(r+=` `),r+=t);return r}var Xe=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},Ze=(e,t)=>({classGroupId:e,validator:t}),Qe=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),$e=`-`,et=[],tt=`arbitrary..`,nt=e=>{let t=at(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return it(e);let n=e.split($e);return rt(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?Xe(i,t):t:i||et}return n[e]||et}}},rt=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=rt(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join($e):e.slice(t).join($e),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},it=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?tt+r:void 0})(),at=e=>{let{theme:t,classGroups:n}=e;return ot(n,t)},ot=(e,t)=>{let n=Qe();for(let r in e){let i=e[r];st(i,n,r,t)}return n},st=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];ct(i,t,n,r)}},ct=(e,t,n,r)=>{typeof e==`string`?lt(e,t,n):typeof e==`function`?ut(e,t,n,r):dt(e,t,n,r)},lt=(e,t,n)=>{let r=e===``?t:ft(t,e);r.classGroupId=n},ut=(e,t,n,r)=>{pt(e)?st(e(r),t,n,r):(t.validators===null&&(t.validators=[]),t.validators.push(Ze(n,e)))},dt=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];st(o,ft(t,a),n,r)}},ft=(e,t)=>{let n=e,r=t.split($e),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=Qe(),n.nextPart.set(t,i)),n=i}return n},pt=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,mt=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},ht=`!`,gt=`:`,_t=[],vt=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),yt=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===gt){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(ht)?(c=s.slice(0,-1),l=!0):s.startsWith(ht)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return vt(t,l,c,u)};if(t){let e=t+gt,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):vt(_t,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},bt=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},xt=e=>({cache:mt(e.cacheSize),parseClassName:yt(e),sortModifiers:bt(e),postfixLookupClassGroupIds:St(e),...nt(e)}),St=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},Ct=/\s+/,wt=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(Ct),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h||(g=r(p),!g)){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+ht:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},Tt=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=Et(n))&&(i&&(i+=` `),i+=r);return i},Et=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=Et(e[r]))&&(n&&(n+=` `),n+=t);return n},Dt=(e,...t)=>{let n,r,i,a,o=o=>(n=xt(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=wt(e,n);return i(e,a),a};return a=o,(...e)=>a(Tt(...e))},Ot=[],W=e=>{let t=t=>t[e]||Ot;return t.isThemeGetter=!0,t.themeKey=e,t},kt=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,At=/^\((?:(\w[\w-]*):)?(.+)\)$/i,jt=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Mt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Nt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Pt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,Ft=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,It=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,G=e=>jt.test(e),K=e=>!!e&&!Number.isNaN(Number(e)),q=e=>!!e&&Number.isInteger(Number(e)),Lt=e=>e.endsWith(`%`)&&K(e.slice(0,-1)),J=e=>Mt.test(e),Rt=()=>!0,zt=e=>Nt.test(e)&&!Pt.test(e),Bt=()=>!1,Vt=e=>Ft.test(e),Ht=e=>It.test(e),Ut=e=>!Y(e)&&!Z(e),Wt=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),Gt=e=>Q(e,cn,Bt),Y=e=>kt.test(e),X=e=>Q(e,ln,zt),Kt=e=>Q(e,un,K),qt=e=>Q(e,fn,Rt),Jt=e=>Q(e,dn,Bt),Yt=e=>Q(e,on,Bt),Xt=e=>Q(e,sn,Ht),Zt=e=>Q(e,pn,Vt),Z=e=>At.test(e),Qt=e=>$(e,ln),$t=e=>$(e,dn),en=e=>$(e,on),tn=e=>$(e,cn),nn=e=>$(e,sn),rn=e=>$(e,pn,!0),an=e=>$(e,fn,!0),Q=(e,t,n)=>{let r=kt.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},$=(e,t,n=!1)=>{let r=At.exec(e);return r?r[1]?t(r[1]):n:!1},on=e=>e===`position`||e===`percentage`,sn=e=>e===`image`||e===`url`,cn=e=>e===`length`||e===`size`||e===`bg-size`,ln=e=>e===`length`,un=e=>e===`number`,dn=e=>e===`family-name`,fn=e=>e===`number`||e===`weight`,pn=e=>e===`shadow`,mn=Dt(()=>{let e=W(`color`),t=W(`font`),n=W(`text`),r=W(`font-weight`),i=W(`tracking`),a=W(`leading`),o=W(`breakpoint`),s=W(`container`),c=W(`spacing`),l=W(`radius`),u=W(`shadow`),d=W(`inset-shadow`),f=W(`text-shadow`),p=W(`drop-shadow`),m=W(`blur`),h=W(`perspective`),g=W(`aspect`),_=W(`ease`),v=W(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],ee=()=>[...b(),Z,Y],x=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],te=()=>[`auto`,`contain`,`none`],S=()=>[Z,Y,c],C=()=>[G,`full`,`auto`,...S()],ne=()=>[q,`none`,`subgrid`,Z,Y],re=()=>[`auto`,{span:[`full`,q,Z,Y]},q,Z,Y],w=()=>[q,`auto`,Z,Y],ie=()=>[`auto`,`min`,`max`,`fr`,Z,Y],T=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],E=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],D=()=>[`auto`,...S()],O=()=>[G,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...S()],k=()=>[s,G,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...S()],A=()=>[G,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...S()],j=()=>[e,Z,Y],ae=()=>[...b(),en,Yt,{position:[Z,Y]}],oe=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],M=()=>[`auto`,`cover`,`contain`,tn,Gt,{size:[Z,Y]}],N=()=>[Lt,Qt,X],P=()=>[``,`none`,`full`,l,Z,Y],F=()=>[``,K,Qt,X],I=()=>[`solid`,`dashed`,`dotted`,`double`],se=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],L=()=>[K,Lt,en,Yt],R=()=>[``,`none`,m,Z,Y],z=()=>[`none`,K,Z,Y],B=()=>[`none`,K,Z,Y],ce=()=>[K,Z,Y],V=()=>[G,`full`,...S()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[J],breakpoint:[J],color:[Rt],container:[J],"drop-shadow":[J],ease:[`in`,`out`,`in-out`],font:[Ut],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[J],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[J],shadow:[J],spacing:[`px`,K],text:[J],"text-shadow":[J],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,G,Y,Z,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,Z,Y]}],"container-named":[Wt],columns:[{columns:[K,`auto`,Y,Z,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:ee()}],overflow:[{overflow:x()}],"overflow-x":[{"overflow-x":x()}],"overflow-y":[{"overflow-y":x()}],overscroll:[{overscroll:te()}],"overscroll-x":[{"overscroll-x":te()}],"overscroll-y":[{"overscroll-y":te()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:C()}],"inset-x":[{"inset-x":C()}],"inset-y":[{"inset-y":C()}],start:[{"inset-s":C(),start:C()}],end:[{"inset-e":C(),end:C()}],"inset-bs":[{"inset-bs":C()}],"inset-be":[{"inset-be":C()}],top:[{top:C()}],right:[{right:C()}],bottom:[{bottom:C()}],left:[{left:C()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[q,`auto`,Z,Y]}],basis:[{basis:[G,`full`,`auto`,s,...S()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[K,G,`auto`,`initial`,`none`,Y]}],grow:[{grow:[``,K,Z,Y]}],shrink:[{shrink:[``,K,Z,Y]}],order:[{order:[q,`first`,`last`,`none`,Z,Y]}],"grid-cols":[{"grid-cols":ne()}],"col-start-end":[{col:re()}],"col-start":[{"col-start":w()}],"col-end":[{"col-end":w()}],"grid-rows":[{"grid-rows":ne()}],"row-start-end":[{row:re()}],"row-start":[{"row-start":w()}],"row-end":[{"row-end":w()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":ie()}],"auto-rows":[{"auto-rows":ie()}],gap:[{gap:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"justify-content":[{justify:[...T(),`normal`]}],"justify-items":[{"justify-items":[...E(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...E()]}],"align-content":[{content:[`normal`,...T()]}],"align-items":[{items:[...E(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...E(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":T()}],"place-items":[{"place-items":[...E(),`baseline`]}],"place-self":[{"place-self":[`auto`,...E()]}],p:[{p:S()}],px:[{px:S()}],py:[{py:S()}],ps:[{ps:S()}],pe:[{pe:S()}],pbs:[{pbs:S()}],pbe:[{pbe:S()}],pt:[{pt:S()}],pr:[{pr:S()}],pb:[{pb:S()}],pl:[{pl:S()}],m:[{m:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mbs:[{mbs:D()}],mbe:[{mbe:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":S()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":S()}],"space-y-reverse":[`space-y-reverse`],size:[{size:O()}],"inline-size":[{inline:[`auto`,...k()]}],"min-inline-size":[{"min-inline":[`auto`,...k()]}],"max-inline-size":[{"max-inline":[`none`,...k()]}],"block-size":[{block:[`auto`,...A()]}],"min-block-size":[{"min-block":[`auto`,...A()]}],"max-block-size":[{"max-block":[`none`,...A()]}],w:[{w:[s,`screen`,...O()]}],"min-w":[{"min-w":[s,`screen`,`none`,...O()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...O()]}],h:[{h:[`screen`,`lh`,...O()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...O()]}],"max-h":[{"max-h":[`screen`,`lh`,`none`,...O()]}],"font-size":[{text:[`base`,n,Qt,X]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,an,qt]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,Lt,Y]}],"font-family":[{font:[$t,Jt,t]}],"font-features":[{"font-features":[Y]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,Z,Y]}],"line-clamp":[{"line-clamp":[K,`none`,Z,Kt]}],leading:[{leading:[`none`,a,...S()]}],"list-image":[{"list-image":[`none`,Z,Y]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,Z,Y]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:j()}],"text-color":[{text:j()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...I(),`wavy`]}],"text-decoration-thickness":[{decoration:[K,`from-font`,`auto`,Z,X]}],"text-decoration-color":[{decoration:j()}],"underline-offset":[{"underline-offset":[K,`auto`,Z,Y]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:S()}],"tab-size":[{tab:[q,Z,Y]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,Z,Y]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,Z,Y]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:ae()}],"bg-repeat":[{bg:oe()}],"bg-size":[{bg:M()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},q,Z,Y],radial:[``,Z,Y],conic:[``,q,Z,Y]},nn,Xt]}],"bg-color":[{bg:j()}],"gradient-from-pos":[{from:N()}],"gradient-via-pos":[{via:N()}],"gradient-to-pos":[{to:N()}],"gradient-from":[{from:j()}],"gradient-via":[{via:j()}],"gradient-to":[{to:j()}],rounded:[{rounded:P()}],"rounded-s":[{"rounded-s":P()}],"rounded-e":[{"rounded-e":P()}],"rounded-t":[{"rounded-t":P()}],"rounded-r":[{"rounded-r":P()}],"rounded-b":[{"rounded-b":P()}],"rounded-l":[{"rounded-l":P()}],"rounded-ss":[{"rounded-ss":P()}],"rounded-se":[{"rounded-se":P()}],"rounded-ee":[{"rounded-ee":P()}],"rounded-es":[{"rounded-es":P()}],"rounded-tl":[{"rounded-tl":P()}],"rounded-tr":[{"rounded-tr":P()}],"rounded-br":[{"rounded-br":P()}],"rounded-bl":[{"rounded-bl":P()}],"border-w":[{border:F()}],"border-w-x":[{"border-x":F()}],"border-w-y":[{"border-y":F()}],"border-w-s":[{"border-s":F()}],"border-w-e":[{"border-e":F()}],"border-w-bs":[{"border-bs":F()}],"border-w-be":[{"border-be":F()}],"border-w-t":[{"border-t":F()}],"border-w-r":[{"border-r":F()}],"border-w-b":[{"border-b":F()}],"border-w-l":[{"border-l":F()}],"divide-x":[{"divide-x":F()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":F()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...I(),`hidden`,`none`]}],"divide-style":[{divide:[...I(),`hidden`,`none`]}],"border-color":[{border:j()}],"border-color-x":[{"border-x":j()}],"border-color-y":[{"border-y":j()}],"border-color-s":[{"border-s":j()}],"border-color-e":[{"border-e":j()}],"border-color-bs":[{"border-bs":j()}],"border-color-be":[{"border-be":j()}],"border-color-t":[{"border-t":j()}],"border-color-r":[{"border-r":j()}],"border-color-b":[{"border-b":j()}],"border-color-l":[{"border-l":j()}],"divide-color":[{divide:j()}],"outline-style":[{outline:[...I(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[K,Z,Y]}],"outline-w":[{outline:[``,K,Qt,X]}],"outline-color":[{outline:j()}],shadow:[{shadow:[``,`inner`,`none`,u,rn,Zt]}],"shadow-color":[{shadow:j()}],"inset-shadow":[{"inset-shadow":[`none`,d,rn,Zt]}],"inset-shadow-color":[{"inset-shadow":j()}],"ring-w":[{ring:F()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:j()}],"ring-offset-w":[{"ring-offset":[K,X]}],"ring-offset-color":[{"ring-offset":j()}],"inset-ring-w":[{"inset-ring":F()}],"inset-ring-color":[{"inset-ring":j()}],"text-shadow":[{"text-shadow":[`none`,f,rn,Zt]}],"text-shadow-color":[{"text-shadow":j()}],opacity:[{opacity:[K,Z,Y]}],"mix-blend":[{"mix-blend":[...se(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":se()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[K]}],"mask-image-linear-from-pos":[{"mask-linear-from":L()}],"mask-image-linear-to-pos":[{"mask-linear-to":L()}],"mask-image-linear-from-color":[{"mask-linear-from":j()}],"mask-image-linear-to-color":[{"mask-linear-to":j()}],"mask-image-t-from-pos":[{"mask-t-from":L()}],"mask-image-t-to-pos":[{"mask-t-to":L()}],"mask-image-t-from-color":[{"mask-t-from":j()}],"mask-image-t-to-color":[{"mask-t-to":j()}],"mask-image-r-from-pos":[{"mask-r-from":L()}],"mask-image-r-to-pos":[{"mask-r-to":L()}],"mask-image-r-from-color":[{"mask-r-from":j()}],"mask-image-r-to-color":[{"mask-r-to":j()}],"mask-image-b-from-pos":[{"mask-b-from":L()}],"mask-image-b-to-pos":[{"mask-b-to":L()}],"mask-image-b-from-color":[{"mask-b-from":j()}],"mask-image-b-to-color":[{"mask-b-to":j()}],"mask-image-l-from-pos":[{"mask-l-from":L()}],"mask-image-l-to-pos":[{"mask-l-to":L()}],"mask-image-l-from-color":[{"mask-l-from":j()}],"mask-image-l-to-color":[{"mask-l-to":j()}],"mask-image-x-from-pos":[{"mask-x-from":L()}],"mask-image-x-to-pos":[{"mask-x-to":L()}],"mask-image-x-from-color":[{"mask-x-from":j()}],"mask-image-x-to-color":[{"mask-x-to":j()}],"mask-image-y-from-pos":[{"mask-y-from":L()}],"mask-image-y-to-pos":[{"mask-y-to":L()}],"mask-image-y-from-color":[{"mask-y-from":j()}],"mask-image-y-to-color":[{"mask-y-to":j()}],"mask-image-radial":[{"mask-radial":[Z,Y]}],"mask-image-radial-from-pos":[{"mask-radial-from":L()}],"mask-image-radial-to-pos":[{"mask-radial-to":L()}],"mask-image-radial-from-color":[{"mask-radial-from":j()}],"mask-image-radial-to-color":[{"mask-radial-to":j()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[K]}],"mask-image-conic-from-pos":[{"mask-conic-from":L()}],"mask-image-conic-to-pos":[{"mask-conic-to":L()}],"mask-image-conic-from-color":[{"mask-conic-from":j()}],"mask-image-conic-to-color":[{"mask-conic-to":j()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:ae()}],"mask-repeat":[{mask:oe()}],"mask-size":[{mask:M()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,Z,Y]}],filter:[{filter:[``,`none`,Z,Y]}],blur:[{blur:R()}],brightness:[{brightness:[K,Z,Y]}],contrast:[{contrast:[K,Z,Y]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,rn,Zt]}],"drop-shadow-color":[{"drop-shadow":j()}],grayscale:[{grayscale:[``,K,Z,Y]}],"hue-rotate":[{"hue-rotate":[K,Z,Y]}],invert:[{invert:[``,K,Z,Y]}],saturate:[{saturate:[K,Z,Y]}],sepia:[{sepia:[``,K,Z,Y]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,Z,Y]}],"backdrop-blur":[{"backdrop-blur":R()}],"backdrop-brightness":[{"backdrop-brightness":[K,Z,Y]}],"backdrop-contrast":[{"backdrop-contrast":[K,Z,Y]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,K,Z,Y]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[K,Z,Y]}],"backdrop-invert":[{"backdrop-invert":[``,K,Z,Y]}],"backdrop-opacity":[{"backdrop-opacity":[K,Z,Y]}],"backdrop-saturate":[{"backdrop-saturate":[K,Z,Y]}],"backdrop-sepia":[{"backdrop-sepia":[``,K,Z,Y]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":S()}],"border-spacing-x":[{"border-spacing-x":S()}],"border-spacing-y":[{"border-spacing-y":S()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,Z,Y]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[K,`initial`,Z,Y]}],ease:[{ease:[`linear`,`initial`,_,Z,Y]}],delay:[{delay:[K,Z,Y]}],animate:[{animate:[`none`,v,Z,Y]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,Z,Y]}],"perspective-origin":[{"perspective-origin":ee()}],rotate:[{rotate:z()}],"rotate-x":[{"rotate-x":z()}],"rotate-y":[{"rotate-y":z()}],"rotate-z":[{"rotate-z":z()}],scale:[{scale:B()}],"scale-x":[{"scale-x":B()}],"scale-y":[{"scale-y":B()}],"scale-z":[{"scale-z":B()}],"scale-3d":[`scale-3d`],skew:[{skew:ce()}],"skew-x":[{"skew-x":ce()}],"skew-y":[{"skew-y":ce()}],transform:[{transform:[Z,Y,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:ee()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:V()}],"translate-x":[{"translate-x":V()}],"translate-y":[{"translate-y":V()}],"translate-z":[{"translate-z":V()}],"translate-none":[`translate-none`],zoom:[{zoom:[q,Z,Y]}],accent:[{accent:j()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:j()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,Z,Y]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":j()}],"scrollbar-track-color":[{"scrollbar-track":j()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mbs":[{"scroll-mbs":S()}],"scroll-mbe":[{"scroll-mbe":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pbs":[{"scroll-pbs":S()}],"scroll-pbe":[{"scroll-pbe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,Z,Y]}],fill:[{fill:[`none`,...j()]}],"stroke-w":[{stroke:[K,Qt,X,Kt]}],stroke:[{stroke:[`none`,...j()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`start`,`end`,`right`,`left`],"inset-y":[`inset-bs`,`inset-be`,`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`ps`,`pe`,`pr`,`pl`],py:[`pbs`,`pbe`,`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`ms`,`me`,`mr`,`ml`],my:[`mbs`,`mbe`,`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-s`,`border-w-e`,`border-w-r`,`border-w-l`],"border-w-y":[`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-s`,`border-color-e`,`border-color-r`,`border-color-l`],"border-color-y":[`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-ms`,`scroll-me`,`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-ps`,`scroll-pe`,`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function hn(...e){return mn(Ye(e))}var gn=r(e=>n(t=>{let n=matchMedia(e);function r(e){t.setSelf(e.matches)}return n.addEventListener(`change`,r),t.addFinalizer(()=>n.removeEventListener(`change`,r)),n.matches}));export{re as A,d as B,h as C,A as D,D as E,b as F,o as H,y as I,ee as L,v as M,T as N,O,g as P,x as R,w as S,p as T,c as V,L as _,Ve as a,ae as b,Ie as c,we as d,Ce as f,B as g,ye as h,Ge as i,_ as j,m as k,Pe as l,xe as m,gn as n,Le as o,be as p,Ye as r,U as s,hn as t,De as u,F as v,j as w,E as x,M as y,ie as z};
|
package/dist/client/index.html
CHANGED
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
<link rel="manifest" href="/manifest.webmanifest" />
|
|
16
16
|
|
|
17
17
|
<title>Deploy</title>
|
|
18
|
-
<script type="module" crossorigin src="/assets/index-
|
|
18
|
+
<script type="module" crossorigin src="/assets/index-BNQFB9FP.js"></script>
|
|
19
19
|
<link rel="modulepreload" crossorigin href="/assets/rolldown-runtime-XKyaHtl9.js">
|
|
20
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
21
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
22
|
-
<link rel="modulepreload" crossorigin href="/assets/utils-
|
|
23
|
-
<link rel="modulepreload" crossorigin href="/assets/schema-
|
|
20
|
+
<link rel="modulepreload" crossorigin href="/assets/effect-DDyRjlEL.js">
|
|
21
|
+
<link rel="modulepreload" crossorigin href="/assets/react-BPjvcVqE.js">
|
|
22
|
+
<link rel="modulepreload" crossorigin href="/assets/utils-DoaQsY-4.js">
|
|
23
|
+
<link rel="modulepreload" crossorigin href="/assets/schema-BUkx3zzZ.js">
|
|
24
24
|
<link rel="stylesheet" crossorigin href="/assets/index-Dl_kgG-T.css">
|
|
25
25
|
</head>
|
|
26
26
|
<body>
|