PageSourceSearch

https://vektorprogrammet-homepage.netlify.app/assets/_home-f2l7mxJ6.js

js vektorprogrammet-homepage.netlify.app collected 2026-10-03 11:34:38 UTC 243,619 bytes, 43 lines download raw bytes

1var pp=Object.defineProperty;var Za=e=>{throw TypeError(e)};var dp=(e,t,n)=>t in e?pp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ie=(e,t,n)=>dp(e,typeof t!="symbol"?t+"":t,n),Yn=(e,t,n)=>t.has(e)||Za("Cannot "+n);var Z=(e,t,n)=>(Yn(e,t,"read from private field"),n?n.call(e):t.get(e)),Xe=(e,t,n)=>t.has(e)?Za("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Ve=(e,t,n,i)=>(Yn(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),ht=(e,t,n)=>(Yn(e,t,"access private method"),n);import{w as mp}from"./with-props-Cs8o8QHT.js";import{r as se,l as U,o as re,p as yp,q as hn,t as bt,O as vp,v as gp,N as bp,w as Wc}from"./chunk-XJI4KG32-4zRGwYum.js";import{c as wp,P as ns,u as _p,a as Hc,b as xp}from"./index-CCBFyJ18.js";import{c as dt}from"./utils-CUtYmEIL.js";import{b as Sp,B as Ja}from"./button-pI-zbJO1.js";import{O as Ep,C as Tp,T as Ap,D as Pp,P as Rp,a as kp,b as Cp,R as Dp}from"./index-6Zg86G8Z.js";import{c as Op,M as Xc,u as Kc,i as Yc,a as rs,t as St,p as pe,b as Qa,d as Ni,e as mt,s as pn,n as Zc,f as Tn,g as He,h as jp,j as je,m as Zt,k as Jc,l as Mp,o as Ot,q as Ip,r as ot,v as Vp,w as Qc,x as Jt,y as Lp,z as Np,K as ef,A as eu,B as tu,C as $p,D as qp,E as Bp,F as Fp,G as tf,H as $i,I as Dt,J as yt,L as is,N as Gp,O as qe,P as Je,Q as nf,R as xt,S as qi,T as rf,U as sf,V as of,W as ss,X as zp,Y as af,Z as Zn,_ as Up,$ as Wp}from"./resolve-elements-CShpHy80.js";import{M as Hp}from"./mail-D2ekLVOQ.js";import{M as Xp}from"./map-pin-IfUdFX8V.js";import"./index-CdYrbvmx.js";import"./index-D4oNhLZ3.js";var os="Avatar",[Kp,M0]=wp(os),[Yp,uf]=Kp(os),lf=se.forwardRef((e,t)=>{const{__scopeAvatar:n,...i}=e,[o,l]=se.useState("idle");return U.jsx(Yp,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:l,children:U.jsx(ns.span,{...i,ref:t})})});lf.displayName=os;var cf="AvatarImage",ff=se.forwardRef((e,t)=>{const{__scopeAvatar:n,src:i,onLoadingStatusChange:o=()=>{},...l}=e,c=uf(cf,n),f=Zp(i,l.referrerPolicy),h=_p(p=>{o(p),c.onImageLoadingStatusChange(p)});return Hc(()=>{f!=="idle"&&h(f)},[f,h]),f==="loaded"?U.jsx(ns.img,{...l,ref:t,src:i}):null});ff.displayName=cf;var hf="AvatarFallback",pf=se.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:i,...o}=e,l=uf(hf,n),[c,f]=se.useState(i===void 0);return se.useEffect(()=>{if(i!==void 0){const h=window.setTimeout(()=>f(!0),i);return()=>window.clearTimeout(h)}},[i]),c&&l.imageLoadingStatus!=="loaded"?U.jsx(ns.span,{...o,ref:t}):null});pf.displayName=hf;function Zp(e,t){const[n,i]=se.useState("idle");return Hc(()=>{if(!e){i("error");return}let o=!0;const l=new window.Image,c=f=>()=>{o&&i(f)};return i("loading"),l.onload=c("loaded"),l.onerror=c("error"),l.src=e,t&&(l.referrerPolicy=t),()=>{o=!1}},[e,t]),n}var df=lf,mf=ff,yf=pf;const vf=se.forwardRef(({className:e,...t},n)=>U.jsx(df,{ref:n,className:dt("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));vf.displayName=df.displayName;const gf=se.forwardRef(({className:e,...t},n)=>U.jsx(mf,{ref:n,className:dt("aspect-square h-full w-full",e),...t}));gf.displayName=mf.displayName;const bf=se.forwardRef(({className:e,...t},n)=>U.jsx(yf,{ref:n,className:dt("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));bf.displayName=yf.displayName;const Jp="#0866FF",Qp=se.forwardRef(function({title:t="Facebook",color:n="currentColor",size:i=24,...o},l){return n==="default"&&(n=Jp),U.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:i,height:i,fill:n,viewBox:"0 0 24 24",ref:l,...o,children:[U.jsx("title",{children:t}),U.jsx("path",{d:"M9.101 23.691v-7.98H6.627v-3.667h2.474v-1.58c0-4.085 1.848-5.978 5.858-5.978.401 0 .955.042 1.468.103a8.68 8.68 0 0 1 1.141.195v3.325a8.623 8.623 0 0 0-.653-.036 26.805 26.805 0 0 0-.733-.009c-.707 0-1.259.096-1.675.309a1.686 1.686 0 0 0-.679.622c-.258.42-.374.995-.374 1.752v1.297h3.919l-.386 2.103-.287 1.564h-3.246v8.245C19.396 23.238 24 18.179 24 12.044c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.628 3.874 10.35 9.101 11.647Z"})]})});/**
2 * @license lucide-react v0.486.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const ed=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],td=xp("folder-open",ed),wf=se.createContext({}),as=se.createContext(null);
vendor: 13,522 bytes, line 6
6function nd(e=!0){const t=se.useContext(as);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:i,register:o}=t,l=se.useId();se.useEffect(()=>{if(e)return o(l)},[e]);const c=se.useCallback(()=>e&&i&&i(l),[l,i,e]);return!n&&i?[!1,c]:[!0]}const _f=se.createContext({strict:!1}),nu={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},jt={};for(const e in nu)jt[e]={isEnabled:t=>nu[e].some(n=>!!t[n])};function rd(e){for(const t in e)jt[t]={...jt[t],...e[t]}}const id=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function _n(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||id.has(e)}let xf=e=>!_n(e);function sd(e){e&&(xf=t=>t.startsWith("on")?!_n(t):e(t))}try{sd(require("@emotion/is-prop-valid").default)}catch{}function od(e,t,n){const i={};for(const o in e)o==="values"&&typeof e.values=="object"||(xf(o)||n===!0&&_n(o)||!t&&!_n(o)||e.draggable&&o.startsWith("onDrag"))&&(i[o]=e[o]);return i}function ad(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...i)=>e(...i);return new Proxy(n,{get:(i,o)=>o==="create"?e:(t.has(o)||t.set(o,e(o)),t.get(o))})}const An=se.createContext({});function Pn(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Qt(e){return typeof e=="string"||Array.isArray(e)}const us=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ls=["initial",...us];function Rn(e){return Pn(e.animate)||ls.some(t=>Qt(e[t]))}function Sf(e){return!!(Rn(e)||e.variants)}function ud(e,t){if(Rn(e)){const{initial:n,animate:i}=e;return{initial:n===!1||Qt(n)?n:void 0,animate:Qt(i)?i:void 0}}return e.inherit!==!1?t:{}}function ld(e){const{initial:t,animate:n}=ud(e,se.useContext(An));return se.useMemo(()=>({initial:t,animate:n}),[ru(t),ru(n)])}function ru(e){return Array.isArray(e)?e.join(" "):e}const cd=Symbol.for("motionComponentSymbol");function Pt(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function fd(e,t,n){return se.useCallback(i=>{i&&e.onMount&&e.onMount(i),t&&(i?t.mount(i):t.unmount()),n&&(typeof n=="function"?n(i):Pt(n)&&(n.current=i))},[t])}const{schedule:cs}=Op(queueMicrotask,!1),fs=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),hd="framerAppearId",Ef="data-"+fs(hd),Tf=se.createContext({});function pd(e,t,n,i,o){var l,c;const{visualElement:f}=se.useContext(An),h=se.useContext(_f),p=se.useContext(as),m=se.useContext(Xc).reducedMotion,v=se.useRef(null);i=i||h.renderer,!v.current&&i&&(v.current=i(e,{visualState:t,parent:f,props:n,presenceContext:p,blockInitialAnimation:p?p.initial===!1:!1,reducedMotionConfig:m}));const b=v.current,P=se.useContext(Tf);b&&!b.projection&&o&&(b.type==="html"||b.type==="svg")&&dd(v.current,n,o,P);const j=se.useRef(!1);se.useInsertionEffect(()=>{b&&j.current&&b.update(n,p)});const M=n[Ef],k=se.useRef(!!M&&!(!((l=window.MotionHandoffIsComplete)===null||l===void 0)&&l.call(window,M))&&((c=window.MotionHasOptimisedAnimation)===null||c===void 0?void 0:c.call(window,M)));return Kc(()=>{b&&(j.current=!0,window.MotionIsMounted=!0,b.updateFeatures(),cs.render(b.render),k.current&&b.animationState&&b.animationState.animateChanges())}),se.useEffect(()=>{b&&(!k.current&&b.animationState&&b.animationState.animateChanges(),k.current&&(queueMicrotask(()=>{var O;(O=window.MotionHandoffMarkAsComplete)===null||O===void 0||O.call(window,M)}),k.current=!1))}),b}function dd(e,t,n,i){const{layoutId:o,layout:l,drag:c,dragConstraints:f,layoutScroll:h,layoutRoot:p}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Af(e.parent)),e.projection.setOptions({layoutId:o,layout:l,alwaysMeasureLayout:!!c||f&&Pt(f),visualElement:e,animationType:typeof l=="string"?l:"both",initialPromotionConfig:i,layoutScroll:h,layoutRoot:p})}function Af(e){if(e)return e.options.allowProjection!==!1?e.projection:Af(e.parent)}function md({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:i,Component:o}){var l,c;e&&rd(e);function f(p,m){let v;const b={...se.useContext(Xc),...p,layoutId:yd(p)},{isStatic:P}=b,j=ld(p),M=i(p,P);if(!P&&Yc){vd();const k=gd(b);v=k.MeasureLayout,j.visualElement=pd(o,M,b,t,k.ProjectionNode)}return U.jsxs(An.Provider,{value:j,children:[v&&j.visualElement?U.jsx(v,{visualElement:j.visualElement,...b}):null,n(o,p,fd(M,j.visualElement,m),M,P,j.visualElement)]})}f.displayName=`motion.${typeof o=="string"?o:`create(${(c=(l=o.displayName)!==null&&l!==void 0?l:o.name)!==null&&c!==void 0?c:""})`}`;const h=se.forwardRef(f);return h[cd]=o,h}function yd({layoutId:e}){const t=se.useContext(wf).id;return t&&e!==void 0?t+"-"+e:e}function vd(e,t){se.useContext(_f).strict}function gd(e){const{drag:t,layout:n}=jt;if(!t&&!n)return{};const i={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}const en={};function bd(e){for(const t in e)en[t]=e[t],rs(t)&&(en[t].isCSSVariable=!0)}function Pf(e,{layout:t,layoutId:n}){return St.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!en[e]||e==="opacity")}const Rf=(e,t)=>t&&typeof e=="number"?t.transform(e):e,wd={borderWidth:pe,borderTopWidth:pe,borderRightWidth:pe,borderBottomWidth:pe,borderLeftWidth:pe,borderRadius:pe,radius:pe,borderTopLeftRadius:pe,borderTopRightRadius:pe,borderBottomRightRadius:pe,borderBottomLeftRadius:pe,width:pe,maxWidth:pe,height:pe,maxHeight:pe,top:pe,right:pe,bottom:pe,left:pe,padding:pe,paddingTop:pe,paddingRight:pe,paddingBottom:pe,paddingLeft:pe,margin:pe,marginTop:pe,marginRight:pe,marginBottom:pe,marginLeft:pe,backgroundPositionX:pe,backgroundPositionY:pe},_d={rotate:mt,rotateX:mt,rotateY:mt,rotateZ:mt,scale:pn,scaleX:pn,scaleY:pn,scaleZ:pn,skew:mt,skewX:mt,skewY:mt,distance:pe,translateX:pe,translateY:pe,translateZ:pe,x:pe,y:pe,z:pe,perspective:pe,transformPerspective:pe,opacity:Ni,originX:Qa,originY:Qa,originZ:pe},iu={...Zc,transform:Math.round},hs={...wd,..._d,zIndex:iu,size:pe,fillOpacity:Ni,strokeOpacity:Ni,numOctaves:iu},xd={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Sd=Tn.length;function Ed(e,t,n){let i="",o=!0;for(let l=0;l<Sd;l++){const c=Tn[l],f=e[c];if(f===void 0)continue;let h=!0;if(typeof f=="number"?h=f===(c.startsWith("scale")?1:0):h=parseFloat(f)===0,!h||n){const p=Rf(f,hs[c]);if(!h){o=!1;const m=xd[c]||c;i+=`${m}(${p}) `}n&&(t[c]=p)}}return i=i.trim(),n?i=n(t,o?"":i):o&&(i="none"),i}function ps(e,t,n){const{style:i,vars:o,transformOrigin:l}=e;let c=!1,f=!1;for(const h in t){const p=t[h];if(St.has(h)){c=!0;continue}else if(rs(h)){o[h]=p;continue}else{const m=Rf(p,hs[h]);h.startsWith("origin")?(f=!0,l[h]=m):i[h]=m}}if(t.transform||(c||n?i.transform=Ed(t,e.transform,n):i.transform&&(i.transform="none")),f){const{originX:h="50%",originY:p="50%",originZ:m=0}=l;i.transformOrigin=`${h} ${p} ${m}`}}const ds=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function kf(e,t,n){for(const i in t)!He(t[i])&&!Pf(i,n)&&(e[i]=t[i])}function Td({transformTemplate:e},t){return se.useMemo(()=>{const n=ds();return ps(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Ad(e,t){const n=e.style||{},i={};return kf(i,n,e),Object.assign(i,Td(e,t)),i}function Pd(e,t){const n={},i=Ad(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=i,n}const Rd=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function ms(e){return typeof e!="string"||e.includes("-")?!1:!!(Rd.indexOf(e)>-1||/[A-Z]/u.test(e))}const kd={offset:"stroke-dashoffset",array:"stroke-dasharray"},Cd={offset:"strokeDashoffset",array:"strokeDasharray"};function Dd(e,t,n=1,i=0,o=!0){e.pathLength=1;const l=o?kd:Cd;e[l.offset]=pe.transform(-i);const c=pe.transform(t),f=pe.transform(n);e[l.array]=`${c} ${f}`}function su(e,t,n){return typeof e=="string"?e:pe.transform(t+n*e)}function Od(e,t,n){const i=su(t,e.x,e.width),o=su(n,e.y,e.height);return`${i} ${o}`}function ys(e,{attrX:t,attrY:n,attrScale:i,originX:o,originY:l,pathLength:c,pathSpacing:f=1,pathOffset:h=0,...p},m,v){if(ps(e,p,v),m){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:b,style:P,dimensions:j}=e;b.transform&&(j&&(P.transform=b.transform),delete b.transform),j&&(o!==void 0||l!==void 0||P.transform)&&(P.transformOrigin=Od(j,o!==void 0?o:.5,l!==void 0?l:.5)),t!==void 0&&(b.x=t),n!==void 0&&(b.y=n),i!==void 0&&(b.scale=i),c!==void 0&&Dd(b,c,f,h,!1)}const Cf=()=>({...ds(),attrs:{}}),vs=e=>typeof e=="string"&&e.toLowerCase()==="svg";function jd(e,t,n,i){const o=se.useMemo(()=>{const l=Cf();return ys(l,t,vs(i),e.transformTemplate),{...l.attrs,style:{...l.style}}},[t]);if(e.style){const l={};kf(l,e.style,e),o.style={...l,...o.style}}return o}function Md(e=!1){return(n,i,o,{latestValues:l},c)=>{const h=(ms(n)?jd:Pd)(i,l,c,n),p=od(i,typeof n=="string",e),m=n!==se.Fragment?{...p,...h,ref:o}:{},{children:v}=i,b=se.useMemo(()=>He(v)?v.get():v,[v]);return se.createElement(n,{...m,children:b})}}function ou(e){const t=[{},{}];return e==null||e.values.forEach((n,i)=>{t[0][i]=n.get(),t[1][i]=n.getVelocity()}),t}function gs(e,t,n,i){if(typeof t=="function"){const[o,l]=ou(i);t=t(n!==void 0?n:e.custom,o,l)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,l]=ou(i);t=t(n!==void 0?n:e.custom,o,l)}return t}const Bi=e=>Array.isArray(e),Id=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),Vd=e=>Bi(e)?e[e.length-1]||0:e;function gn(e){const t=He(e)?e.get():e;return Id(t)?t.toValue():t}function Ld({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},i,o,l){const c={latestValues:Nd(i,o,l,e),renderState:t()};return n&&(c.onMount=f=>n({props:i,current:f,...c}),c.onUpdate=f=>n(f)),c}const Df=e=>(t,n)=>{const i=se.useContext(An),o=se.useContext(as),l=()=>Ld(e,t,i,o);return n?l():jp(l)};function Nd(e,t,n,i){const o={},l=i(e,{});for(const b in l)o[b]=gn(l[b]);let{initial:c,animate:f}=e;const h=Rn(e),p=Sf(e);t&&p&&!h&&e.inherit!==!1&&(c===void 0&&(c=t.initial),f===void 0&&(f=t.animate));let m=n?n.initial===!1:!1;m=m||c===!1;const v=m?f:c;if(v&&typeof v!="boolean"&&!Pn(v)){const b=Array.isArray(v)?v:[v];for(let P=0;P<b.length;P++){const j=gs(e,b[P]);if(j){const{transitionEnd:M,transition:k,...O}=j;for(const B in O){let q=O[B];if(Array.isArray(q)){const F=m?q.length-1:0;q=q[F]}q!==null&&(o[B]=q)}for(const B in M)o[B]=M[B]}}}return o}function bs(e,t,n){var i;const{style:o}=e,l={};for(const c in o)(He(o[c])||t.style&&He(t.style[c])||Pf(c,e)||((i=n==null?void 0:n.getValue(c))===null||i===void 0?void 0:i.liveStyle)!==void 0)&&(l[c]=o[c]);return l}const $d={useVisualState:Df({scrapeMotionValuesFromProps:bs,createRenderState:ds})};function Of(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}function jf(e,{style:t,vars:n},i,o){Object.assign(e.style,t,o&&o.getProjectionStyles(i));for(const l in n)e.style.setProperty(l,n[l])}const Mf=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function If(e,t,n,i){jf(e,t,void 0,i);for(const o in t.attrs)e.setAttribute(Mf.has(o)?o:fs(o),t.attrs[o])}function Vf(e,t,n){const i=bs(e,t,n);for(const o in e)if(He(e[o])||He(t[o])){const l=Tn.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;i[l]=e[o]}return i}const au=["x","y","width","height","cx","cy","r"],qd={useVisualState:Df({scrapeMotionValuesFromProps:Vf,createRenderState:Cf,onUpdate:({props:e,prevProps:t,current:n,renderState:i,latestValues:o})=>{if(!n)return;let l=!!e.drag;if(!l){for(const f in o)if(St.has(f)){l=!0;break}}if(!l)return;let c=!t;if(t)for(let f=0;f<au.length;f++){const h=au[f];e[h]!==t[h]&&(c=!0)}c&&je.read(()=>{Of(n,i),je.render(()=>{ys(i,o,vs(n.tagName),e.transformTemplate),If(n,i)})})}})};function Bd(e,t){return function(i,{forwardMotionProps:o}={forwardMotionProps:!1}){const c={...ms(i)?qd:$d,preloadedFeatures:e,useRender:Md(o),createVisualElement:t,Component:i};return md(c)}}function tn(e,t,n){const i=e.getProps();return gs(i,t,n!==void 0?n:i.custom,e)}function ws(e,t){return e?e[t]||e.default||e:void 0}const Lf=new Set(["width","height","top","left","right","bottom",...Tn]);
vendor: 5,343 bytes, line 6
6function Fd(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Zt(n))}function Gd(e,t){const n=tn(e,t);let{transitionEnd:i={},transition:o={},...l}=n||{};l={...l,...i};for(const c in l){const f=Vd(l[c]);Fd(e,c,f)}}function zd(e){return!!(He(e)&&e.add)}function Fi(e,t){const n=e.getValue("willChange");if(zd(n))return n.add(t)}function Nf(e){return e.props[Ef]}function _s(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ud=_s(()=>window.ScrollTimeline!==void 0);class Wd{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let i=0;i<this.animations.length;i++)this.animations[i][t]=n}attachTimeline(t,n){const i=this.animations.map(o=>{if(Ud()&&o.attachTimeline)return o.attachTimeline(t);if(typeof n=="function")return n(o)});return()=>{i.forEach((o,l)=>{o&&o(),this.animations[l].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class Hd extends Wd{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function uu(e,t){e.timeline=t,e.onfinish=null}const Xd={linearEasing:void 0};function Kd(e,t){const n=_s(e);return()=>{var i;return(i=Xd[t])!==null&&i!==void 0?i:n()}}const xn=Kd(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function $f(e){return!!(typeof e=="function"&&xn()||!e||typeof e=="string"&&(e in Gi||xn())||Jc(e)||Array.isArray(e)&&e.every($f))}const Wt=([e,t,n,i])=>`cubic-bezier(${e}, ${t}, ${n}, ${i})`,Gi={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Wt([0,.65,.55,1]),circOut:Wt([.55,0,1,.45]),backIn:Wt([.31,.01,.66,-.59]),backOut:Wt([.33,1.53,.69,.99])};function qf(e,t){if(e)return typeof e=="function"&&xn()?Mp(e,t):Jc(e)?Wt(e):Array.isArray(e)?e.map(n=>qf(n,t)||Gi.easeOut):Gi[e]}const Bf=e=>/^0[^.\s]+$/u.test(e);function Yd(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Bf(e):!0}const Zd=new Set(["brightness","contrast","saturate","opacity"]);function Jd(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[i]=n.match(Ip)||[];if(!i)return e;const o=n.replace(i,"");let l=Zd.has(t)?1:0;return i!==n&&(l*=100),t+"("+l+o+")"}const Qd=/\b([a-z-]*)\(.*?\)/gu,zi={...Ot,getAnimatableNone:e=>{const t=e.match(Qd);return t?t.map(Jd).join(" "):e}},em={...hs,color:ot,backgroundColor:ot,outlineColor:ot,fill:ot,stroke:ot,borderColor:ot,borderTopColor:ot,borderRightColor:ot,borderBottomColor:ot,borderLeftColor:ot,filter:zi,WebkitFilter:zi},Ff=e=>em[e];function Gf(e,t){let n=Ff(e);return n!==zi&&(n=Ot),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const tm=new Set(["auto","none","0"]);function nm(e,t,n){let i=0,o;for(;i<e.length&&!o;){const l=e[i];typeof l=="string"&&!tm.has(l)&&Vp(l).values.length&&(o=e[i]),i++}if(o&&n)for(const l of t)e[l]=Gf(n,o)}const zf=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),rm=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function im(e){const t=rm.exec(e);if(!t)return[,];const[,n,i,o]=t;return[`--${n??i}`,o]}function Uf(e,t,n=1){const[i,o]=im(e);if(!i)return;const l=window.getComputedStyle(t).getPropertyValue(i);if(l){const c=l.trim();return zf(c)?parseFloat(c):c}return Qc(o)?Uf(o,t,n+1):o}const Wf=e=>t=>t.test(e),sm={test:e=>e==="auto",parse:e=>e},Hf=[Zc,pe,Jt,mt,Lp,Np,sm],lu=e=>Hf.find(Wf(e));class Xf extends ef{constructor(t,n,i,o,l){super(t,n,i,o,l,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:i}=this;if(!n||!n.current)return;super.readKeyframes();for(let h=0;h<t.length;h++){let p=t[h];if(typeof p=="string"&&(p=p.trim(),Qc(p))){const m=Uf(p,n.current);m!==void 0&&(t[h]=m),h===t.length-1&&(this.finalKeyframe=p)}}if(this.resolveNoneKeyframes(),!Lf.has(i)||t.length!==2)return;const[o,l]=t,c=lu(o),f=lu(l);if(c!==f)if(eu(c)&&eu(f))for(let h=0;h<t.length;h++){const p=t[h];typeof p=="string"&&(t[h]=parseFloat(p))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,i=[];for(let o=0;o<t.length;o++)Yd(t[o])&&i.push(o);i.length&&nm(t,i,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:i}=this;if(!t||!t.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=tu[i](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&t.getValue(i,o).jump(o,!1)}measureEndState(){var t;const{element:n,name:i,unresolvedKeyframes:o}=this;if(!n||!n.current)return;const l=n.getValue(i);l&&l.jump(this.measuredOrigin,!1);const c=o.length-1,f=o[c];o[c]=tu[i](n.measureViewportBox(),window.getComputedStyle(n.current)),f!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=f),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEac
vendor: 17,280 bytes, line 6
6h(([h,p])=>{n.getValue(h).set(p)}),this.resolveNoneKeyframes()}}const om=new Set(["opacity","clipPath","filter","transform"]);function am(e,t,n,{delay:i=0,duration:o=300,repeat:l=0,repeatType:c="loop",ease:f="easeInOut",times:h}={}){const p={[t]:n};h&&(p.offset=h);const m=qf(f,o);return Array.isArray(m)&&(p.easing=m),e.animate(p,{delay:i,duration:o,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:l+1,direction:c==="reverse"?"alternate":"normal"})}const um=_s(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Sn=10,lm=2e4;function cm(e){return Gp(e.type)||e.type==="spring"||!$f(e.ease)}function fm(e,t){const n=new is({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let i={done:!1,value:e[0]};const o=[];let l=0;for(;!i.done&&l<lm;)i=n.sample(l),o.push(i.value),l+=Sn;return{times:void 0,keyframes:o,duration:l-Sn,ease:"linear"}}const Kf={anticipate:Fp,backInOut:Bp,circInOut:qp};function hm(e){return e in Kf}class cu extends $p{constructor(t){super(t);const{name:n,motionValue:i,element:o,keyframes:l}=this.options;this.resolver=new Xf(l,(c,f)=>this.onKeyframesResolved(c,f),n,i,o),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:i=300,times:o,ease:l,type:c,motionValue:f,name:h,startTime:p}=this.options;if(!f.owner||!f.owner.current)return!1;if(typeof l=="string"&&xn()&&hm(l)&&(l=Kf[l]),cm(this.options)){const{onComplete:v,onUpdate:b,motionValue:P,element:j,...M}=this.options,k=fm(t,M);t=k.keyframes,t.length===1&&(t[1]=t[0]),i=k.duration,o=k.times,l=k.ease,c="keyframes"}const m=am(f.owner.current,h,t,{...this.options,duration:i,times:o,ease:l});return m.startTime=p??this.calcStartTime(),this.pendingTimeline?(uu(m,this.pendingTimeline),this.pendingTimeline=void 0):m.onfinish=()=>{const{onComplete:v}=this.options;f.set(tf(t,this.options,n)),v&&v(),this.cancel(),this.resolveFinishedPromise()},{animation:m,duration:i,times:o,type:c,ease:l,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return $i(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return $i(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:i}=n;i.currentTime=Dt(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:i}=n;i.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return yt;const{animation:i}=n;uu(i,t)}return yt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:i,duration:o,type:l,ease:c,times:f}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:p,onUpdate:m,onComplete:v,element:b,...P}=this.options,j=new is({...P,keyframes:i,duration:o,type:l,ease:c,times:f,isGenerator:!0}),M=Dt(this.time);p.setWithVelocity(j.sample(M-Sn).value,j.sample(M).value,Sn)}const{onStop:h}=this.options;h&&h(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:i,repeatDelay:o,repeatType:l,damping:c,type:f}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:h,transformTemplate:p}=n.owner.getProps();return um()&&i&&om.has(i)&&(i!=="transform"||!p)&&!h&&!o&&l!=="mirror"&&c!==0&&f!=="inertia"}}const pm={type:"spring",stiffness:500,damping:25,restSpeed:10},dm=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),mm={type:"keyframes",duration:.8},ym={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},vm=(e,{keyframes:t})=>t.length>2?mm:St.has(e)?e.startsWith("scale")?dm(t[1]):pm:ym;function gm({when:e,delay:t,delayChildren:n,staggerChildren:i,staggerDirection:o,repeat:l,repeatType:c,repeatDelay:f,from:h,elapsed:p,...m}){return!!Object.keys(m).length}const xs=(e,t,n,i={},o,l)=>c=>{const f=ws(i,e)||{},h=f.delay||i.delay||0;let{elapsed:p=0}=i;p=p-Dt(h);let m={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...f,delay:-p,onUpdate:b=>{t.set(b),f.onUpdate&&f.onUpdate(b)},onComplete:()=>{c(),f.onComplete&&f.onComplete()},name:e,motionValue:t,element:l?void 0:o};gm(f)||(m={...m,...vm(e,m)}),m.duration&&(m.duration=Dt(m.duration)),m.repeatDelay&&(m.repeatDelay=Dt(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let v=!1;if((m.type===!1||m.duration===0&&!m.repeatDelay)&&(m.duration=0,m.delay===0&&(v=!0)),m.allowFlatten=!f.type&&!f.ease,v&&!l&&t.get()!==void 0){const b=tf(m.keyframes,f);if(b!==void 0)return je.update(()=>{m.onUpdate(b),m.onComplete()}),new Hd([])}return!l&&cu.supports(m)?new cu(m):new is(m)};function bm({protectedKeys:e,needsAnimating:t},n){const i=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,i}function Yf(e,t,{delay:n=0,transitionOverride:i,type:o}={}){var l;let{transition:c=e.getDefaultTransition(),transitionEnd:f,...h}=t;i&&(c=i);const p=[],m=o&&e.animationState&&e.animationState.getState()[o];for(const v in h){const b=e.getValue(v,(l=e.latestValues[v])!==null&&l!==void 0?l:null),P=h[v];if(P===void 0||m&&bm(m,v))continue;const j={delay:n,...ws(c||{},v)};let M=!1;if(window.MotionHandoffAnimation){const O=Nf(e);if(O){const B=window.MotionHandoffAnimation(O,v,je);B!==null&&(j.startTime=B,M=!0)}}Fi(e,v),b.start(xs(v,b,P,e.shouldReduceMotion&&Lf.has(v)?{type:!1}:j,e,M));const k=b.animation;k&&p.push(k)}return f&&Promise.all(p).then(()=>{je.update(()=>{f&&Gd(e,f)})}),p}function Ui(e,t,n={}){var i;const o=tn(e,t,n.type==="exit"?(i=e.presenceContext)===null||i===void 0?void 0:i.custom:void 0);let{transition:l=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(l=n.transitionOverride);const c=o?()=>Promise.all(Yf(e,o,n)):()=>Promise.resolve(),f=e.variantChildren&&e.variantChildren.size?(p=0)=>{const{delayChildren:m=0,staggerChildren:v,staggerDirection:b}=l;return wm(e,t,m+p,v,b,n)}:()=>Promise.resolve(),{when:h}=l;if(h){const[p,m]=h==="beforeChildren"?[c,f]:[f,c];return p().then(()=>m())}else return Promise.all([c(),f(n.delay)])}function wm(e,t,n=0,i=0,o=1,l){const c=[],f=(e.variantChildren.size-1)*i,h=o===1?(p=0)=>p*i:(p=0)=>f-p*i;return Array.from(e.variantChildren).sort(_m).forEach((p,m)=>{p.notify("AnimationStart",t),c.push(Ui(p,t,{...l,delay:n+h(m)}).then(()=>p.notify("AnimationComplete",t)))}),Promise.all(c)}function _m(e,t){return e.sortNodePosition(t)}function xm(e,t,n={}){e.notify("AnimationStart",t);let i;if(Array.isArray(t)){const o=t.map(l=>Ui(e,l,n));i=Promise.all(o)}else if(typeof t=="string")i=Ui(e,t,n);else{const o=typeof t=="function"?tn(e,t,n.custom):t;i=Promise.all(Yf(e,o,n))}return i.then(()=>{e.notify("AnimationComplete",t)})}function Zf(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}const Sm=ls.length;function Jf(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Jf(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Sm;n++){const i=ls[n],o=e.props[i];(Qt(o)||o===!1)&&(t[i]=o)}return t}const Em=[...us].reverse(),Tm=us.length;function Am(e){return t=>Promise.all(t.map(({animation:n,options:i})=>xm(e,n,i)))}function Pm(e){let t=Am(e),n=fu(),i=!0;const o=h=>(p,m)=>{var v;const b=tn(e,m,h==="exit"?(v=e.presenceContext)===null||v===void 0?void 0:v.custom:void 0);if(b){const{transition:P,transitionEnd:j,...M}=b;p={...p,...M,...j}}return p};function l(h){t=h(e)}function c(h){const{props:p}=e,m=Jf(e.parent)||{},v=[],b=new Set;let P={},j=1/0;for(let k=0;k<Tm;k++){const O=Em[k],B=n[O],q=p[O]!==void 0?p[O]:m[O],F=Qt(q),oe=O===h?B.isActive:null;oe===!1&&(j=k);let ue=q===m[O]&&q!==p[O]&&F;if(ue&&i&&e.manuallyAnimateOnMount&&(ue=!1),B.protectedKeys={...P},!B.isActive&&oe===null||!q&&!B.prevProp||Pn(q)||typeof q=="boolean")continue;const D=Rm(B.prevProp,q);let z=D||O===h&&B.isActive&&!ue&&F||k>j&&F,L=!1;const $=Array.isArray(q)?q:[q];let H=$.reduce(o(O),{});oe===!1&&(H={});const{prevResolvedValues:K={}}=B,J={...K,...H},de=V=>{z=!0,b.has(V)&&(L=!0,b.delete(V)),B.needsAnimating[V]=!0;const N=e.getValue(V);N&&(N.liveStyle=!1)};for(const V in J){const N=H[V],ie=K[V];if(P.hasOwnProperty(V))continue;let ae=!1;Bi(N)&&Bi(ie)?ae=!Zf(N,ie):ae=N!==ie,ae?N!=null?de(V):b.add(V):N!==void 0&&b.has(V)?de(V):B.protectedKeys[V]=!0}B.prevProp=q,B.prevResolvedValues=H,B.isActive&&(P={...P,...H}),i&&e.blockInitialAnimation&&(z=!1),z&&(!(ue&&D)||L)&&v.push(...$.map(V=>({animation:V,options:{type:O}})))}if(b.size){const k={};if(typeof p.initial!="boolean"){const O=tn(e,Array.isArray(p.initial)?p.initial[0]:p.initial);O&&O.transition&&(k.transition=O.transition)}b.forEach(O=>{const B=e.getBaseTarget(O),q=e.getValue(O);q&&(q.liveStyle=!0),k[O]=B??null}),v.push({animation:k})}let M=!!v.length;return i&&(p.initial===!1||p.initial===p.animate)&&!e.manuallyAnimateOnMount&&(M=!1),i=!1,M?t(v):Promise.resolve()}function f(h,p){var m;if(n[h].isActive===p)return Promise.resolve();(m=e.variantChildren)===null||m===void 0||m.forEach(b=>{var P;return(P=b.animationState)===null||P===void 0?void 0:P.setActive(h,p)}),n[h].isActive=p;const v=c(h);for(const b in n)n[b].protectedKeys={};return v}return{animateChanges:c,setActive:f,setAnimateFunction:l,getState:()=>n,reset:()=>{n=fu(),i=!0}}}function Rm(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Zf(t,e):!1}function wt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function fu(){return{animate:wt(!0),whileInView:wt(),whileHover:wt(),whileTap:wt(),whileDrag:wt(),whileFocus:wt(),exit:wt()}}class vt{constructor(t){this.isMounted=!1,this.node=t}update(){}}class km extends vt{constructor(t){super(t),t.animationState||(t.animationState=Pm(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Pn(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let Cm=0;class Dm extends vt{constructor(){super(...arguments),this.id=Cm++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const Om={animation:{Feature:km},exit:{Feature:Dm}},at={x:!1,y:!1};function Qf(){return at.x||at.y}function jm(e){return e==="x"||e==="y"?at[e]?null:(at[e]=!0,()=>{at[e]=!1}):at.x||at.y?null:(at.x=at.y=!0,()=>{at.x=at.y=!1})}function nn(e,t,n,i={passive:!0}){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n)}const Ss=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function rn(e){return{point:{x:e.pageX,y:e.pageY}}}const Mm=e=>t=>Ss(t)&&e(t,rn(t));function Xt(e,t,n,i){return nn(e,t,Mm(n),i)}function eh({top:e,left:t,right:n,bottom:i}){return{x:{min:t,max:n},y:{min:e,max:i}}}function Im({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Vm(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}const th=1e-4,Lm=1-th,Nm=1+th,nh=.01,$m=0-nh,qm=0+nh;function Ke(e){return e.max-e.min}function Bm(e,t,n){return Math.abs(e-t)<=n}function hu(e,t,n,i=.5){e.origin=i,e.originPoint=qe(t.min,t.max,e.origin),e.scale=Ke(n)/Ke(t),e.translate=qe(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Lm&&e.scale<=Nm||isNaN(e.scale))&&(e.scale=1),(e.translate>=$m&&e.translate<=qm||isNaN(e.translate))&&(e.translate=0)}function Kt(e,t,n,i){hu(e.x,t.x,n.x,i?i.originX:void 0),hu(e.y,t.y,n.y,i?i.originY:void 0)}function pu(e,t,n){e.min=n.min+t.min,e.max=e.min+Ke(t)}function Fm(e,t,n){pu(e.x,t.x,n.x),pu(e.y,t.y,n.y)}function du(e,t,n){e.min=t.min-n.min,e.max=e.min+Ke(t)}function Yt(e,t,n){du(e.x,t.x,n.x),du(e.y,t.y,n.y)}const mu=()=>({translate:0,scale:1,origin:0,originPoint:0}),Rt=()=>({x:mu(),y:mu()}),yu=()=>({min:0,max:0}),Le=()=>({x:yu(),y:yu()});function et(e){return[e("x"),e("y")]}function Jn(e){return e===void 0||e===1}function Wi({scale:e,scaleX:t,scaleY:n}){return!Jn(e)||!Jn(t)||!Jn(n)}function _t(e){return Wi(e)||rh(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function rh(e){return vu(e.x)||vu(e.y)}function vu(e){return e&&e!=="0%"}function En(e,t,n){const i=e-n,o=t*i;return n+o}function gu(e,t,n,i,o){return o!==void 0&&(e=En(e,o,i)),En(e,n,i)+t}function Hi(e,t=0,n=1,i,o){e.min=gu(e.min,t,n,i,o),e.max=gu(e.max,t,n,i,o)}function ih(e,{x:t,y:n}){Hi(e.x,t.translate,t.scale,t.originPoint),Hi(e.y,n.translate,n.scale,n.originPoint)}const bu=.999999999999,wu=1.0000000000001;function Gm(e,t,n,i=!1){const o=n.length;if(!o)return;t.x=t.y=1;let l,c;for(let f=0;f<o;f++){l=n[f],c=l.projectionDelta;const{visualElement:h}=l.options;h&&h.props.style&&h.props.style.display==="contents"||(i&&l.options.layoutScroll&&l.scroll&&l!==l.root&&Ct(e,{x:-l.scroll.offset.x,y:-l.scroll.offset.y}),c&&(t.x*=c.x.scale,t.y*=c.y.scale,ih(e,c)),i&&_t(l.latestValues)&&Ct(e,l.latestValues))}t.x<wu&&t.x>bu&&(t.x=1),t.y<wu&&t.y>bu&&(t.y=1)}function kt(e,t){e.min=e.min+t,e.max=e.max+t}function _u(e,t,n,i,o=.5){const l=qe(e.min,e.max,o);Hi(e,t,n,l,i)}function Ct(e,t){_u(e.x,t.x,t.scaleX,t.scale,t.originX),_u(e.y,t.y,t.scaleY,t.scale,t.originY)}function sh(e,t){return eh(Vm(e.getBoundingClientRect(),t))}function zm(e,t,n){const i=sh(e,n),{scroll:o}=t;return o&&(kt(i.x,o.offset.x),kt(i.y,o.offset.y)),i}const oh=({current:e})=>e?e.ownerDocument.defaultView:null,xu=(e,t)=>Math.abs(e-t);function Um(e,t){const n=xu(e.x,t.x),i=xu(e.y,t.y);return Math.sqrt(n**2+i**2)}class ah{constructor(t,n,{transformPagePoint:i,contextWindow:o,dragSnapToOrigin:l=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=er(this.lastMoveEventInfo,this.history),b=this.startEvent!==null,P=Um(v.offset,{x:0,y:0})>=3;if(!b&&!P)return;const{point:j}=v,{timestamp:M}=Je;this.history.push({...j,timestamp:M});const{onStart:k,onMove:O}=this.handlers;b||(k&&k(this.lastMoveEvent,v),this.startEvent=this.lastMoveEvent),O&&O(this.lastMoveEvent,v)},this.handlePointerMove=(v,b)=>{this.lastMoveEvent=v,this.lastMoveEventInfo=Qn(b,this.transformPagePoint),je.update(this.updatePoint,!0)},this.handlePointerUp=(v,b)=>{this.end();const{onEnd:P,onSessionEnd:j,resumeAnimation:M}=this.handlers;if(this.dragSnapToOrigin&&M&&M(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const k=er(v.type==="pointercancel"?this.lastMoveEventInfo:Qn(b,this.transformPagePoint),this.history);this.startEvent&&P&&P(v,k),j&&j(v,k)},!Ss(t))return;this.dragSnapToOrigin=l,this.handlers=n,this.transformPagePoint=i,this.contextWindow=o||window;const c=rn(t),f=Qn(c,this.transformPagePoint),{point:h}=f,{timestamp:p}=Je;this.history=[{...h,timestamp:p}];const{onSessionStart:m}=n;m&&m(t,er(f,this.history)),this.removeListeners=nf(Xt(this.contextWindow,"pointermove",this.handlePointerMove),Xt(this.contextWindow,"pointerup",this.handlePointerUp),Xt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),xt(this.updatePoint)}}function Qn(e,t){return t?{point:t(e.point)}:e}function Su(e,t){return{x:e.x-t.x,y:e.y-t.y}}function er({point:e},t){return{point:e,delta:Su(e,uh(t)),offset:Su(e,Wm(t)),velocity:Hm(t,.1)}}function Wm(e){return e[0]}function uh(e){return e[e.length-1]}function Hm(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,i=null;const o=uh(e);for(;n>=0&&(i=e[n],!(o.timestamp-i.timestamp>Dt(t)));)n--;if(!i)return{x:0,y:0};const l=$i(o.timestamp-i.timestamp);if(l===0)return{x:0,y:0};const c={x:(o.x-i.x)/l,y:(o.y-i.y)/l};return c.x===1/0&&(c.x=0),c.y===1/0&&(c.y=0),c}function Xm(e,{min:t,max:n},i){return t!==void 0&&e<t?e=i?qe(t,e,i.min):Math.max(e,t):n!==void 0&&e>n&&(e=i?qe(n,e,i.max):Math.min(e,n)),e}function Eu(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function Km(e,{top:t,left:n,bottom:i,right:o}){return{x:Eu(e.x,n,o),y:Eu(e.y,t,i)}}function Tu(e,t){let n=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,i]=[i,n]),{min:n,max:i}}function Ym(e,t){return{x:Tu(e.x,t.x),y:Tu(e.y,t.y)}}function Zm(e,t){let n=.5;const i=Ke(e),o=Ke(t);return o>i?n=qi(t.min,t.max-i,e.min):i>
vendor: 13,919 bytes, line 6
6o&&(n=qi(e.min,e.max-o,t.min)),rf(0,1,n)}function Jm(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Xi=.35;function Qm(e=Xi){return e===!1?e=0:e===!0&&(e=Xi),{x:Au(e,"left","right"),y:Au(e,"top","bottom")}}function Au(e,t,n){return{min:Pu(e,t),max:Pu(e,n)}}function Pu(e,t){return typeof e=="number"?e:e[t]||0}const ey=new WeakMap;class ty{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Le(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const o=m=>{const{dragSnapToOrigin:v}=this.getProps();v?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(rn(m).point)},l=(m,v)=>{const{drag:b,dragPropagation:P,onDragStart:j}=this.getProps();if(b&&!P&&(this.openDragLock&&this.openDragLock(),this.openDragLock=jm(b),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),et(k=>{let O=this.getAxisMotionValue(k).get()||0;if(Jt.test(O)){const{projection:B}=this.visualElement;if(B&&B.layout){const q=B.layout.layoutBox[k];q&&(O=Ke(q)*(parseFloat(O)/100))}}this.originPoint[k]=O}),j&&je.postRender(()=>j(m,v)),Fi(this.visualElement,"transform");const{animationState:M}=this.visualElement;M&&M.setActive("whileDrag",!0)},c=(m,v)=>{const{dragPropagation:b,dragDirectionLock:P,onDirectionLock:j,onDrag:M}=this.getProps();if(!b&&!this.openDragLock)return;const{offset:k}=v;if(P&&this.currentDirection===null){this.currentDirection=ny(k),this.currentDirection!==null&&j&&j(this.currentDirection);return}this.updateAxis("x",v.point,k),this.updateAxis("y",v.point,k),this.visualElement.render(),M&&M(m,v)},f=(m,v)=>this.stop(m,v),h=()=>et(m=>{var v;return this.getAnimationState(m)==="paused"&&((v=this.getAxisMotionValue(m).animation)===null||v===void 0?void 0:v.play())}),{dragSnapToOrigin:p}=this.getProps();this.panSession=new ah(t,{onSessionStart:o,onStart:l,onMove:c,onSessionEnd:f,resumeAnimation:h},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:p,contextWindow:oh(this.visualElement)})}stop(t,n){const i=this.isDragging;if(this.cancel(),!i)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:l}=this.getProps();l&&je.postRender(()=>l(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,i){const{drag:o}=this.getProps();if(!i||!dn(t,o,this.currentDirection))return;const l=this.getAxisMotionValue(t);let c=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(c=Xm(c,this.constraints[t],this.elastic[t])),l.set(c)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:i}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,l=this.constraints;n&&Pt(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=Km(o.layoutBox,n):this.constraints=!1,this.elastic=Qm(i),l!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&et(c=>{this.constraints!==!1&&this.getAxisMotionValue(c)&&(this.constraints[c]=Jm(o.layoutBox[c],this.constraints[c]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Pt(t))return!1;const i=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const l=zm(i,o.root,this.visualElement.getTransformPagePoint());let c=Ym(o.layout.layoutBox,l);if(n){const f=n(Im(c));this.hasMutatedConstraints=!!f,f&&(c=eh(f))}return c}startAnimation(t){const{drag:n,dragMomentum:i,dragElastic:o,dragTransition:l,dragSnapToOrigin:c,onDragTransitionEnd:f}=this.getProps(),h=this.constraints||{},p=et(m=>{if(!dn(m,n,this.currentDirection))return;let v=h&&h[m]||{};c&&(v={min:0,max:0});const b=o?200:1e6,P=o?40:1e7,j={type:"inertia",velocity:i?t[m]:0,bounceStiffness:b,bounceDamping:P,timeConstant:750,restDelta:1,restSpeed:10,...l,...v};return this.startAxisValueAnimation(m,j)});return Promise.all(p).then(f)}startAxisValueAnimation(t,n){const i=this.getAxisMotionValue(t);return Fi(this.visualElement,t),i.start(xs(t,i,0,n,this.visualElement,!1))}stopAnimation(){et(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){et(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps(),o=i[n];return o||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){et(n=>{const{drag:i}=this.getProps();if(!dn(n,i,this.currentDirection))return;const{projection:o}=this.visualElement,l=this.getAxisMotionValue(n);if(o&&o.layout){const{min:c,max:f}=o.layout.layoutBox[n];l.set(t[n]-qe(c,f,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!Pt(n)||!i||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};et(c=>{const f=this.getAxisMotionValue(c);if(f&&this.constraints!==!1){const h=f.get();o[c]=Zm({min:h,max:h},this.constraints[c])}});const{transformTemplate:l}=this.visualElement.getProps();this.visualElement.current.style.transform=l?l({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),et(c=>{if(!dn(c,t,null))return;const f=this.getAxisMotionValue(c),{min:h,max:p}=this.constraints[c];f.set(qe(h,p,o[c]))})}addListeners(){if(!this.visualElement.current)return;ey.set(this.visualElement,this);const t=this.visualElement.current,n=Xt(t,"pointerdown",h=>{const{drag:p,dragListener:m=!0}=this.getProps();p&&m&&this.start(h)}),i=()=>{const{dragConstraints:h}=this.getProps();Pt(h)&&h.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,l=o.addEventListener("measure",i);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),je.read(i);const c=nn(window,"resize",()=>this.scalePositionWithinConstraints()),f=o.addEventListener("didUpdate",({delta:h,hasLayoutChanged:p})=>{this.isDragging&&p&&(et(m=>{const v=this.getAxisMotionValue(m);v&&(this.originPoint[m]+=h[m].translate,v.set(v.get()+h[m].translate))}),this.visualElement.render())});return()=>{c(),n(),l(),f&&f()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:i=!1,dragPropagation:o=!1,dragConstraints:l=!1,dragElastic:c=Xi,dragMomentum:f=!0}=t;return{...t,drag:n,dragDirectionLock:i,dragPropagation:o,dragConstraints:l,dragElastic:c,dragMomentum:f}}}function dn(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function ny(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class ry extends vt{constructor(t){super(t),this.removeGroupControls=yt,this.removeListeners=yt,this.controls=new ty(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||yt}unmount(){this.removeGroupControls(),this.removeListeners()}}const Ru=e=>(t,n)=>{e&&je.postRender(()=>e(t,n))};class iy extends vt{constructor(){super(...arguments),this.removePointerDownListener=yt}onPointerDown(t){this.session=new ah(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:oh(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:i,onPanEnd:o}=this.node.getProps();return{onSessionStart:Ru(t),onStart:Ru(n),onMove:i,onEnd:(l,c)=>{delete this.session,o&&je.postRender(()=>o(l,c))}}}mount(){this.removePointerDownListener=Xt(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const bn={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ku(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Vt={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(pe.test(e))e=parseFloat(e);else return e;const n=ku(e,t.target.x),i=ku(e,t.target.y);return`${n}% ${i}%`}},sy={correct:(e,{treeScale:t,projectionDelta:n})=>{const i=e,o=Ot.parse(e);if(o.length>5)return i;const l=Ot.createTransformer(e),c=typeof o[0]!="number"?1:0,f=n.x.scale*t.x,h=n.y.scale*t.y;o[0+c]/=f,o[1+c]/=h;const p=qe(f,h,.5);return typeof o[2+c]=="number"&&(o[2+c]/=p),typeof o[3+c]=="number"&&(o[3+c]/=p),l(o)}};class oy extends se.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:i,layoutId:o}=this.props,{projection:l}=t;bd(ay),l&&(n.group&&n.group.add(l),i&&i.register&&o&&i.register(l),l.root.didUpdate(),l.addEventListener("animationComplete",()=>{this.safeToRemove()}),l.setOptions({...l.options,onExitComplete:()=>this.safeToRemove()})),bn.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:i,drag:o,isPresent:l}=this.props,c=i.projection;return c&&(c.isPresent=l,o||t.layoutDependency!==n||n===void 0||t.isPresent!==l?c.willUpdate():this.safeToRemove(),t.isPresent!==l&&(l?c.promote():c.relegate()||je.postRender(()=>{const f=c.getStack();(!f||!f.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),cs.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:i}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),i&&i.deregister&&i.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function lh(e){const[t,n]=nd(),i=se.useContext(wf);return U.jsx(oy,{...e,layoutGroup:i,switchLayoutGroup:se.useContext(Tf),isPresent:t,safeToRemove:n})}const ay={borderRadius:{...Vt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Vt,borderTopRightRadius:Vt,borderBottomLeftRadius:Vt,borderBottomRightRadius:Vt,boxShadow:sy};function uy(e,t,n){const i=He(e)?e:Zt(e);return i.start(xs("",i,t,n)),i.animation}function ly(e){return e instanceof SVGElement&&e.tagName!=="svg"}const cy=(e,t)=>e.depth-t.depth;class fy{constructor(){this.children=[],this.isDirty=!1}add(t){sf(this.children,t),this.isDirty=!0}remove(t){of(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(cy),this.isDirty=!1,this.children.forEach(t)}}function hy(e,t){const n=ss.now(),i=({timestamp:o})=>{const l=o-n;l>=t&&(xt(i),e(l-t))};return je.read(i,!0),()=>xt(i)}const ch=["TopLeft","TopRight","BottomLeft","BottomRight"],py=ch.length,Cu=e=>typeof e=="string"?parseFloat(e):e,Du=e=>typeof e=="number"||pe.test(e);function dy(e,t,n,i,o,l){o?(e.opacity=qe(0,n.opacity!==void 0?n.opacity:1,my(i)),e.opacityExit=qe(t.opacity!==void 0?t.opacity:1,0,yy(i))):l&&(e.opacity=qe(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,i));for(let c=0;c<py;c++){const f=`border${ch[c]}Radius`;let h=Ou(t,f),p=Ou(n,f);if(h===void 0&&p===void 0)continue;h||(h=0),p||(p=0),h===0||p===0||Du(h)===Du(p)?(e[f]=Math.max(qe(Cu(h),Cu(p),i),0),(Jt.test(p)||Jt.test(h))&&(e[f]+="%")):e[f]=p}(t.rotate||n.rotate)&&(e.rotate=qe(t.rotate||0,n.rotate||0,i))}function Ou(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const my=fh(0,.5,zp),yy=fh(.5,.95,yt);function fh(e,t,n){return i=>i<e?0:i>t?1:n(qi(e,t,i))}function ju(e,t){e.min=t.min,e.max=t.max}function Qe(e,t){ju(e.x,t.x),ju(e.y,t.y)}function Mu(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Iu(e,t,n,i,o){return e-=t,e=En(e,1/n,i),o!==void 0&&(e=En(e,1/o,i)),e}function vy(e,t=0,n=1,i=.5,o,l=e,c=e){if(Jt.test(t)&&(t=parseFloat(t),t=qe(c.min,c.max,t/100)-c.min),typeof t!="number")return;let f=qe(l.min,l.max,i);e===l&&(f-=t),e.min=Iu(e.min,t,n,f,o),e.max=Iu(e.max,t,n,f,o)}function Vu(e,t,[n,i,o],l,c){vy(e,t[n],t[i],t[o],t.scale,l,c)}const gy=["x","scaleX","originX"],by=["y","scaleY","originY"];function Lu(e,t,n,i){Vu(e.x,t,gy,n?n.x:void 0,i?i.x:void 0),Vu(e.y,t,by,n?n.y:void 0,i?i.y:void 0)}function Nu(e){return e.translate===0&&e.scale===1}function hh(e){return Nu(e.x)&&Nu(e.y)}function $u(e,t){return e.min===t.min&&e.max===t.max}function wy(e,t){return $u(e.x,t.x)&&$u(e.y,t.y)}function qu(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function ph(e,t){return qu(e.x,t.x)&&qu(e.y,t.y)}function Bu(e){return Ke(e.x)/Ke(e.y)}function Fu(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class _y{constructor(){this.members=[]}add(t){sf(this.members,t),t.scheduleRender()}remove(t){if(of(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let i;for(let o=n;o>=0;o--){const l=this.members[o];if(l.isPresent!==!1){i=l;break}}return i?(this.promote(i),!0):!1}promote(t,n){const i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,n&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}
vendor: 4,974 bytes, line 6
6=t.options;o===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:i}=t;n.onExitComplete&&n.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function xy(e,t,n){let i="";const o=e.x.translate/t.x,l=e.y.translate/t.y,c=(n==null?void 0:n.z)||0;if((o||l||c)&&(i=`translate3d(${o}px, ${l}px, ${c}px) `),(t.x!==1||t.y!==1)&&(i+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:p,rotate:m,rotateX:v,rotateY:b,skewX:P,skewY:j}=n;p&&(i=`perspective(${p}px) ${i}`),m&&(i+=`rotate(${m}deg) `),v&&(i+=`rotateX(${v}deg) `),b&&(i+=`rotateY(${b}deg) `),P&&(i+=`skewX(${P}deg) `),j&&(i+=`skewY(${j}deg) `)}const f=e.x.scale*t.x,h=e.y.scale*t.y;return(f!==1||h!==1)&&(i+=`scale(${f}, ${h})`),i||"none"}const tr=["","X","Y","Z"],Sy={visibility:"hidden"},Gu=1e3;let Ey=0;function nr(e,t,n,i){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),i&&(i[e]=0))}function dh(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Nf(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:l}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",je,!(o||l))}const{parent:i}=e;i&&!i.hasCheckedOptimisedAppear&&dh(i)}function mh({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:i,resetTransform:o}){return class{constructor(c={},f=t==null?void 0:t()){this.id=Ey++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Py),this.nodes.forEach(Oy),this.nodes.forEach(jy),this.nodes.forEach(Ry)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=c,this.root=f?f.root||f:this,this.path=f?[...f.path,f]:[],this.parent=f,this.depth=f?f.depth+1:0;for(let h=0;h<this.path.length;h++)this.path[h].shouldResetTransform=!0;this.root===this&&(this.nodes=new fy)}addEventListener(c,f){return this.eventHandlers.has(c)||this.eventHandlers.set(c,new af),this.eventHandlers.get(c).add(f)}notifyListeners(c,...f){const h=this.eventHandlers.get(c);h&&h.notify(...f)}hasListeners(c){return this.eventHandlers.has(c)}mount(c,f=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=ly(c),this.instance=c;const{layoutId:h,layout:p,visualElement:m}=this.options;if(m&&!m.current&&m.mount(c),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),f&&(p||h)&&(this.isLayoutDirty=!0),e){let v;const b=()=>this.root.updateBlockedByResize=!1;e(c,()=>{this.root.updateBlockedByResize=!0,v&&v(),v=hy(b,250),bn.hasAnimatedSinceResize&&(bn.hasAnimatedSinceResize=!1,this.nodes.forEach(Uu))})}h&&this.root.registerSharedNode(h,this),this.options.animate!==!1&&m&&(h||p)&&this.addEventListener("didUpdate",({delta:v,hasLayoutChanged:b,hasRelativeLayoutChanged:P,layout:j})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const M=this.options.transition||m.getDefaultTransition()||Ny,{onLayoutAnimationStart:k,onLayoutAnimationComplete:O}=m.getProps(),B=!this.targetLayout||!ph(this.targetLayout,j),q=!b&&P;if(this.options.layoutRoot||this.resumeFrom||q||b&&(B||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(v,q);const F={...ws(M,"layout"),onPlay:k,onComplete:O};(m.shouldReduceMotion||this.options.layoutRoot)&&(F.delay=0,F.type=!1),this.startAnimation(F)}else b||Uu(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=j})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const c=this.getStack();c&&c.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,xt(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEac
vendor: 17,173 bytes, line 6
6h(My),this.animationId++)}getTransformTemplate(){const{visualElement:c}=this.options;return c&&c.getProps().transformTemplate}willUpdate(c=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&dh(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let m=0;m<this.path.length;m++){const v=this.path[m];v.shouldResetTransform=!0,v.updateScroll("snapshot"),v.options.layoutRoot&&v.willUpdate(!1)}const{layoutId:f,layout:h}=this.options;if(f===void 0&&!h)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),c&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(zu);return}this.isUpdating||this.nodes.forEach(Cy),this.isUpdating=!1,this.nodes.forEach(Dy),this.nodes.forEach(Ty),this.nodes.forEach(Ay),this.clearAllSnapshots();const f=ss.now();Je.delta=rf(0,1e3/60,f-Je.timestamp),Je.timestamp=f,Je.isProcessing=!0,Zn.update.process(Je),Zn.preRender.process(Je),Zn.render.process(Je),Je.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,cs.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ky),this.sharedNodes.forEach(Iy)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,je.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){je.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Ke(this.snapshot.measuredBox.x)&&!Ke(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let h=0;h<this.path.length;h++)this.path[h].updateScroll();const c=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Le(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:f}=this.options;f&&f.notify("LayoutMeasure",this.layout.layoutBox,c?c.layoutBox:void 0)}updateScroll(c="measure"){let f=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===c&&(f=!1),f){const h=i(this.instance);this.scroll={animationId:this.root.animationId,phase:c,isRoot:h,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:h}}}resetTransform(){if(!o)return;const c=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,f=this.projectionDelta&&!hh(this.projectionDelta),h=this.getTransformTemplate(),p=h?h(this.latestValues,""):void 0,m=p!==this.prevTransformTemplateValue;c&&(f||_t(this.latestValues)||m)&&(o(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(c=!0){const f=this.measurePageBox();let h=this.removeElementScroll(f);return c&&(h=this.removeTransform(h)),$y(h),{animationId:this.root.animationId,measuredBox:f,layoutBox:h,latestValues:{},source:this.id}}measurePageBox(){var c;const{visualElement:f}=this.options;if(!f)return Le();const h=f.measureViewportBox();if(!(((c=this.scroll)===null||c===void 0?void 0:c.wasRoot)||this.path.some(qy))){const{scroll:m}=this.root;m&&(kt(h.x,m.offset.x),kt(h.y,m.offset.y))}return h}removeElementScroll(c){var f;const h=Le();if(Qe(h,c),!((f=this.scroll)===null||f===void 0)&&f.wasRoot)return h;for(let p=0;p<this.path.length;p++){const m=this.path[p],{scroll:v,options:b}=m;m!==this.root&&v&&b.layoutScroll&&(v.wasRoot&&Qe(h,c),kt(h.x,v.offset.x),kt(h.y,v.offset.y))}return h}applyTransform(c,f=!1){const h=Le();Qe(h,c);for(let p=0;p<this.path.length;p++){const m=this.path[p];!f&&m.options.layoutScroll&&m.scroll&&m!==m.root&&Ct(h,{x:-m.scroll.offset.x,y:-m.scroll.offset.y}),_t(m.latestValues)&&Ct(h,m.latestValues)}return _t(this.latestValues)&&Ct(h,this.latestValues),h}removeTransform(c){const f=Le();Qe(f,c);for(let h=0;h<this.path.length;h++){const p=this.path[h];if(!p.instance||!_t(p.latestValues))continue;Wi(p.latestValues)&&p.updateSnapshot();const m=Le(),v=p.measurePageBox();Qe(m,v),Lu(f,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,m)}return _t(this.latestValues)&&Lu(f,this.latestValues),f}setTargetDelta(c){this.targetDelta=c,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(c){this.options={...this.options,...c,crossfade:c.crossfade!==void 0?c.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Je.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(c=!1){var f;const h=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=h.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=h.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=h.isSharedProjectionDirty);const p=!!this.resumingFrom||this!==h;if(!(c||p&&this.isSharedProjectionDirty||this.isProjectionDirty||!((f=this.parent)===null||f===void 0)&&f.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:v,layoutId:b}=this.options;if(!(!this.layout||!(v||b))){if(this.resolvedRelativeTargetAt=Je.timestamp,!this.targetDelta&&!this.relativeTarget){const P=this.getClosestProjectingParent();P&&P.layout&&this.animationProgress!==1?(this.relativeParent=P,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Le(),this.relativeTargetOrigin=Le(),Yt(this.relativeTargetOrigin,this.layout.layoutBox,P.layout.layoutBox),Qe(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Le(),this.targetWithTransforms=Le()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Fm(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Qe(this.target,this.layout.layoutBox),ih(this.target,this.targetDelta)):Qe(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const P=this.getClosestProjectingParent();P&&!!P.resumingFrom==!!this.resumingFrom&&!P.options.layoutScroll&&P.target&&this.animationProgress!==1?(this.relativeParent=P,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Le(),this.relativeTargetOrigin=Le(),Yt(this.relativeTargetOrigin,this.target,P.target),Qe(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Wi(this.parent.latestValues)||rh(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var c;const f=this.getLead(),h=!!this.resumingFrom||this!==f;let p=!0;if((this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty)&&(p=!1),h&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(p=!1),this.resolvedRelativeTargetAt===Je.timestamp&&(p=!1),p)return;const{layout:m,layoutId:v}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(m||v))return;Qe(this.layoutCorrected,this.layout.layoutBox);const b=this.treeScale.x,P=this.treeScale.y;Gm(this.layoutCorrected,this.treeScale,this.path,h),f.layout&&!f.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(f.target=f.layout.layoutBox,f.targetWithTransforms=Le());const{target:j}=f;if(!j){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Mu(this.prevProjectionDelta.x,this.projectionDelta.x),Mu(this.prevProjectionDelta.y,this.projectionDelta.y)),Kt(this.projectionDelta,this.layoutCorrected,j,this.latestValues),(this.treeScale.x!==b||this.treeScale.y!==P||!Fu(this.projectionDelta.x,this.prevProjectionDelta.x)||!Fu(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",j))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(c=!0){var f;if((f=this.options.visualElement)===null||f===void 0||f.scheduleRender(),c){const h=this.getStack();h&&h.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Rt(),this.projectionDelta=Rt(),this.projectionDeltaWithTransform=Rt()}setAnimationOrigin(c,f=!1){const h=this.snapshot,p=h?h.latestValues:{},m={...this.latestValues},v=Rt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!f;const b=Le(),P=h?h.source:void 0,j=this.layout?this.layout.source:void 0,M=P!==j,k=this.getStack(),O=!k||k.members.length<=1,B=!!(M&&!O&&this.options.crossfade===!0&&!this.path.some(Ly));this.animationProgress=0;let q;this.mixTargetDelta=F=>{const oe=F/1e3;Wu(v.x,c.x,oe),Wu(v.y,c.y,oe),this.setTargetDelta(v),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Yt(b,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Vy(this.relativeTarget,this.relativeTargetOrigin,b,oe),q&&wy(this.relativeTarget,q)&&(this.isProjectionDirty=!1),q||(q=Le()),Qe(q,this.relativeTarget)),M&&(this.animationValues=m,dy(m,p,this.latestValues,oe,B,O)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=oe},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(c){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(xt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=je.update(()=>{bn.hasAnimatedSinceResize=!0,this.currentAnimation=uy(0,Gu,{...c,onUpdate:f=>{this.mixTargetDelta(f),c.onUpdate&&c.onUpdate(f)},onStop:()=>{},onComplete:()=>{c.onComplete&&c.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const c=this.getStack();c&&c.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Gu),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const c=this.getLead();let{targetWithTransforms:f,target:h,layout:p,latestValues:m}=c;if(!(!f||!h||!p)){if(this!==c&&this.layout&&p&&yh(this.options.animationType,this.layout.layoutBox,p.layoutBox)){h=this.target||Le();const v=Ke(this.layout.layoutBox.x);h.x.min=c.target.x.min,h.x.max=h.x.min+v;const b=Ke(this.layout.layoutBox.y);h.y.min=c.target.y.min,h.y.max=h.y.min+b}Qe(f,h),Ct(f,m),Kt(this.projectionDeltaWithTransform,this.layoutCorrected,f,m)}}registerSharedNode(c,f){this.sharedNodes.has(c)||this.sharedNodes.set(c,new _y),this.sharedNodes.get(c).add(f);const p=f.options.initialPromotionConfig;f.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(f):void 0})}isLead(){const c=this.getStack();return c?c.lead===this:!0}getLead(){var c;const{layoutId:f}=this.options;return f?((c=this.getStack())===null||c===void 0?void 0:c.lead)||this:this}getPrevLead(){var c;const{layoutId:f}=this.options;return f?(c=this.getStack())===null||c===void 0?void 0:c.prevLead:void 0}getStack(){const{layoutId:c}=this.options;if(c)return this.root.sharedNodes.get(c)}promote({needsReset:c,transition:f,preserveFollowOpacity:h}={}){const p=this.getStack();p&&p.promote(this,h),c&&(this.projectionDelta=void 0,this.needsReset=!0),f&&this.setOptions({transition:f})}relegate(){const c=this.getStack();return c?c.relegate(this):!1}resetSkewAndRotation(){const{visualElement:c}=this.options;if(!c)return;let f=!1;const{latestValues:h}=c;if((h.z||h.rotate||h.rotateX||h.rotateY||h.rotateZ||h.skewX||h.skewY)&&(f=!0),!f)return;const p={};h.z&&nr("z",c,p,this.animationValues);for(let m=0;m<tr.length;m++)nr(`rotate${tr[m]}`,c,p,this.animationValues),nr(`skew${tr[m]}`,c,p,this.animationValues);c.render();for(const m in p)c.setStaticValue(m,p[m]),this.animationValues&&(this.animationValues[m]=p[m]);c.scheduleRender()}getProjectionStyles(c){var f,h;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Sy;const p={visibility:""},m=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,p.opacity="",p.pointerEvents=gn(c==null?void 0:c.pointerEvents)||"",p.transform=m?m(this.latestValues,""):"none",p;const v=this.getLead();if(!this.projectionDelta||!this.layout||!v.target){const M={};return this.options.layoutId&&(M.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,M.pointerEvents=gn(c==null?void 0:c.pointerEvents)||""),this.hasProjected&&!_t(this.latestValues)&&(M.transform=m?m({},""):"none",this.hasProjected=!1),M}const b=v.animationValues||v.latestValues;this.applyTransformsToTarget(),p.transform=xy(this.projectionDeltaWithTransform,this.treeScale,b),m&&(p.transform=m(b,p.transform));const{x:P,y:j}=this.projectionDelta;p.transformOrigin=`${P.origin*100}% ${j.origin*100}% 0`,v.animationValues?p.opacity=v===this?(h=(f=b.opacity)!==null&&f!==void 0?f:this.latestValues.opacity)!==null&&h!==void 0?h:1:this.preserveOpacity?this.latestValues.opacity:b.opacityExit:p.opacity=v===this?b.opacity!==void 0?b.opacity:"":b.opacityExit!==void 0?b.opacityExit:0;for(const M in en){if(b[M]===void 0)continue;const{correct:k,applyTo:O,isCSSVariable:B}=en[M],q=p.transform==="none"?b[M]:k(b[M],v);if(O){const F=O.length;for(let oe=0;oe<F;oe++)p[O[oe]]=q}else B?this.options.visualElement.renderState.vars[M]=q:p[M]=q}return this.options.layoutId&&(p.pointerEvents=v===this?gn(c==null?void 0:c.pointerEvents)||"":"none"),p}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(c=>{var f;return(f=c.currentAnimation)===null||f===void 0?void 0:f.stop()}),this.root.nodes.forEach(zu),this.root.sharedNodes.clear()}}}function Ty(e){e.updateLayout()}function Ay(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:o}=e.layout,{animationType:l}=e.options,c=n.source!==e.layout.source;l==="size"?et(v=>{const b=c?n.measuredBox[v]:n.layoutBox[v],P=Ke(b);b.min=i[v].min,b.max=b.min+P}):yh(l,n.layoutBox,i)&&et(v=>{const b=c?n.measuredBox[v]:n.layoutBox[v],P=Ke(i[v]);b.max=b.min+P,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[v].max=e.relativeTarget[v].min+P)});const f=Rt();Kt(f,i,n.layoutBox);const h=Rt();c?Kt(h,e.applyTransform(o,!0),n.measuredBox):Kt(h,i,n.layoutBox);const p=!hh(f);let m=!1;if(!e.resumeFrom){const v=e.getClosestProjectingParent();if(v&&!v.resumeFrom){const{snapshot:b,layout:P}=v;if(b&&P){const j=Le();Yt(j,n.layoutBox,b.layoutBox);const M=Le();Yt(M,i,P.layoutBox),ph(j,M)||(m=!0),v.options.layoutRoot&&(e.relativeTarget=M,e.relativeTargetOrigin=j,e.relativeParent=v)}}}e.notifyListeners("didUpdate",{layout:i,snapshot:n,delta:h,layoutDelta:f,hasLayoutChanged:p,hasRelativeLayoutChanged:m})}else if(e.isLead()){const{onExitComplete:i}=e.options;i&&i()}e.options.transition=void 0}function Py(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Ry(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function ky(e){e.clearSnapshot()}function zu(e){e.clearMeasurements()}function Cy(e){e.isLayoutDirty=!1}function Dy(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Uu(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Oy(e){e.resolveTargetDelta()}function jy(e){e.calcProjection()}
vendor: 14,635 bytes, line 6
6function My(e){e.resetSkewAndRotation()}function Iy(e){e.removeLeadSnapshot()}function Wu(e,t,n){e.translate=qe(t.translate,0,n),e.scale=qe(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Hu(e,t,n,i){e.min=qe(t.min,n.min,i),e.max=qe(t.max,n.max,i)}function Vy(e,t,n,i){Hu(e.x,t.x,n.x,i),Hu(e.y,t.y,n.y,i)}function Ly(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Ny={duration:.45,ease:[.4,0,.1,1]},Xu=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Ku=Xu("applewebkit/")&&!Xu("chrome/")?Math.round:yt;function Yu(e){e.min=Ku(e.min),e.max=Ku(e.max)}function $y(e){Yu(e.x),Yu(e.y)}function yh(e,t,n){return e==="position"||e==="preserve-aspect"&&!Bm(Bu(t),Bu(n),.2)}function qy(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const By=mh({attachResizeListener:(e,t)=>nn(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),rr={current:void 0},vh=mh({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!rr.current){const e=new By({});e.mount(window),e.setOptions({layoutScroll:!0}),rr.current=e}return rr.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Fy={pan:{Feature:iy},drag:{Feature:ry,ProjectionNode:vh,MeasureLayout:lh}};function gh(e,t){const n=Up(e),i=new AbortController,o={passive:!0,...t,signal:i.signal};return[n,o,()=>i.abort()]}function Zu(e){return!(e.pointerType==="touch"||Qf())}function Gy(e,t,n={}){const[i,o,l]=gh(e,n),c=f=>{if(!Zu(f))return;const{target:h}=f,p=t(h,f);if(typeof p!="function"||!h)return;const m=v=>{Zu(v)&&(p(v),h.removeEventListener("pointerleave",m))};h.addEventListener("pointerleave",m,o)};return i.forEach(f=>{f.addEventListener("pointerenter",c,o)}),l}function Ju(e,t,n){const{props:i}=e;e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,l=i[o];l&&je.postRender(()=>l(t,rn(t)))}class zy extends vt{mount(){const{current:t}=this.node;t&&(this.unmount=Gy(t,(n,i)=>(Ju(this.node,i,"Start"),o=>Ju(this.node,o,"End"))))}unmount(){}}class Uy extends vt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=nf(nn(this.node.current,"focus",()=>this.onFocus()),nn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const bh=(e,t)=>t?e===t?!0:bh(e,t.parentElement):!1,Wy=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Hy(e){return Wy.has(e.tagName)||e.tabIndex!==-1}const Ht=new WeakSet;function Qu(e){return t=>{t.key==="Enter"&&e(t)}}function ir(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Xy=(e,t)=>{const n=e.currentTarget;if(!n)return;const i=Qu(()=>{if(Ht.has(n))return;ir(n,"down");const o=Qu(()=>{ir(n,"up")}),l=()=>ir(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",l,t)});n.addEventListener("keydown",i,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),t)};function el(e){return Ss(e)&&!Qf()}function Ky(e,t,n={}){const[i,o,l]=gh(e,n),c=f=>{const h=f.currentTarget;if(!el(f)||Ht.has(h))return;Ht.add(h);const p=t(h,f),m=(P,j)=>{window.removeEventListener("pointerup",v),window.removeEventListener("pointercancel",b),!(!el(P)||!Ht.has(h))&&(Ht.delete(h),typeof p=="function"&&p(P,{success:j}))},v=P=>{m(P,h===window||h===document||n.useGlobalTarget||bh(h,P.target))},b=P=>{m(P,!1)};window.addEventListener("pointerup",v,o),window.addEventListener("pointercancel",b,o)};return i.forEach(f=>{(n.useGlobalTarget?window:f).addEventListener("pointerdown",c,o),f instanceof HTMLElement&&(f.addEventListener("focus",p=>Xy(p,o)),!Hy(f)&&f.tabIndex===null&&(f.tabIndex=0))}),l}function tl(e,t,n){const{props:i}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&i.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),l=i[o];l&&je.postRender(()=>l(t,rn(t)))}class Yy extends vt{mount(){const{current:t}=this.node;t&&(this.unmount=Ky(t,(n,i)=>(tl(this.node,i,"Start"),(o,{success:l})=>tl(this.node,o,l?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Ki=new WeakMap,sr=new WeakMap,Zy=e=>{const t=Ki.get(e.target);t&&t(e)},Jy=e=>{e.forEach(Zy)};function Qy({root:e,...t}){const n=e||document;sr.has(n)||sr.set(n,{});const i=sr.get(n),o=JSON.stringify(t);return i[o]||(i[o]=new IntersectionObserver(Jy,{root:e,...t})),i[o]}function ev(e,t,n){const i=Qy(t);return Ki.set(e,n),i.observe(e),()=>{Ki.delete(e),i.unobserve(e)}}const tv={some:0,all:1};class nv extends vt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:i,amount:o="some",once:l}=t,c={root:n?n.current:void 0,rootMargin:i,threshold:typeof o=="number"?o:tv[o]},f=h=>{const{isIntersecting:p}=h;if(this.isInView===p||(this.isInView=p,l&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:m,onViewportLeave:v}=this.node.getProps(),b=p?m:v;b&&b(h)};return ev(this.node.current,c,f)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(rv(t,n))&&this.startObserver()}unmount(){}}function rv({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const iv={inView:{Feature:nv},tap:{Feature:Yy},focus:{Feature:Uy},hover:{Feature:zy}},sv={layout:{ProjectionNode:vh,MeasureLayout:lh}},Yi={current:null},wh={current:!1};function ov(){if(wh.current=!0,!!Yc)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Yi.current=e.matches;e.addListener(t),t()}else Yi.current=!1}const av=[...Hf,ot,Ot],uv=e=>av.find(Wf(e)),lv=new WeakMap;function cv(e,t,n){for(const i in t){const o=t[i],l=n[i];if(He(o))e.addValue(i,o);else if(He(l))e.addValue(i,Zt(o,{owner:e}));else if(l!==o)if(e.hasValue(i)){const c=e.getValue(i);c.liveStyle===!0?c.jump(o):c.hasAnimated||c.set(o)}else{const c=e.getStaticValue(i);e.addValue(i,Zt(c!==void 0?c:o,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const nl=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class fv{scrapeMotionValuesFromProps(t,n,i){return{}}constructor({parent:t,props:n,presenceContext:i,reducedMotionConfig:o,blockInitialAnimation:l,visualState:c},f={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ef,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const P=ss.now();this.renderScheduledAt<P&&(this.renderScheduledAt=P,je.render(this.render,!1,!0))};const{latestValues:h,renderState:p,onUpdate:m}=c;this.onUpdate=m,this.latestValues=h,this.baseTarget={...h},this.initialValues=n.initial?{...h}:{},this.renderState=p,this.parent=t,this.props=n,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=f,this.blockInitialAnimation=!!l,this.isControllingVariants=Rn(n),this.isVariantNode=Sf(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:v,...b}=this.scrapeMotionValuesFromProps(n,{},this);for(const P in b){const j=b[P];h[P]!==void 0&&He(j)&&j.set(h[P],!1)}}mount(t){this.current=t,lv.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,i)=>this.bindToMotionValue(i,n)),wh.current||ov(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Yi.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),xt(this.notifyUpdate),xt(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const i=St.has(t);i&&this.onBindTransform&&this.onBindTransform();const o=n.on("change",f=>{this.latestValues[t]=f,this.props.onUpdate&&je.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0)}),l=n.on("renderRequest",this.scheduleRender);let c;window.MotionCheckAppearSync&&(c=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),l(),c&&c(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in jt){const n=jt[t];if(!n)continue;const{isEnabled:i,Feature:o}=n;if(!this.features[t]&&o&&i(this.props)&&(this.features[t]=new o(this)),this.features[t]){const l=this.features[t];l.isMounted?l.update():(l.mount(),l.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Le()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let i=0;i<nl.length;i++){const o=nl[i];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const l="on"+o,c=t[l];c&&(this.propEventSubscriptions[o]=this.on(o,c))}this.prevMotionValues=cv(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const i=this.values.get(t);n!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return i===void 0&&n!==void 0&&(i=Zt(n===null?void 0:n,{owner:this}),this.addValue(t,i)),i}readValue(t,n){var i;let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(i=this.getBaseTargetFromProps(this.props,t))!==null&&i!==void 0?i:this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(zf(o)||Bf(o))?o=parseFloat(o):!uv(o)&&Ot.test(n)&&(o=Gf(t,n)),this.setBaseTarget(t,He(o)?o.get():o)),He(o)?o.get():o}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:i}=this.props;let o;if(typeof i=="string"||typeof i=="object"){const c=gs(this.props,i,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);c&&(o=c[t])}if(i&&o!==void 0)return o;const l=this.getBaseTargetFromProps(this.props,t);return l!==void 0&&!He(l)?l:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new af),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class _h extends fv{constructor(){super(...arguments),this.KeyframeResolver=Xf}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:i}){delete n[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;He(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function hv(e){return window.getComputedStyle(e)}class pv extends _h{constructor(){super(...arguments),this.type="html",this.renderInstance=jf}readValueFromInstance(t,n){if(St.has(n))return Wp(t,n);{const i=hv(t),o=(rs(n)?i.getPropertyValue(n):i[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return sh(t,n)}build(t,n,i){ps(t,n,i.transformTemplate)}scrapeMotionValuesFromProps(t,n,i){return bs(t,n,i)}}class dv extends _h{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Le,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&Of(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(St.has(n)){const i=Ff(n);return i&&i.default||0}return n=Mf.has(n)?n:fs(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,i){return Vf(t,n,i)}onBindTransform(){this.current&&!this.renderState.dimensions&&je.postRender(this.updateDimensions)}build(t,n,i){ys(t,n,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,i,o){If(t,n,i,o)}mount(t){this.isSVGTag=vs(t.tagName),super.mount(t)}}const mv=(e,t)=>
6ms(e)?new dv(t):new pv(t,{allowProjection:e!==se.Fragment}),yv=Bd({...Om,...iv,...Fy,...sv},mv),vv=ad(yv);function gv(){return[{name:"Tekna",url:new URL("https://www.tekna.no/")},{name:"Nasjonalt senter for realfagsrekruttering",url:new URL("https://www.realfagsrekruttering.no/")},{name:"NTNU IV",url:new URL("https://www.ntnu.no/iv")},{name:"NTNU IE",url:new URL("https://www.ntnu.no/ie")},{name:"NTNU IMF",url:new URL("https://www.ntnu.no/imf")},{name:"Samarbeidsforum",url:new URL("https://www.ntnu.no/nv/sf")},{name:"Abelprisen",url:new URL("https://www.abelprisen.no/")},{name:"VisionTech",url:new URL("https://www.visiontech.no/")},{name:"Kulturstyret i Bergen",url:new URL("https://www.vtvest.no/kulturstyret/")},{name:"MN-faktultetet ved UiB",url:new URL("https://www.uib.no/matnat")}]}function bv(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const xh=re.createContext({drawerRef:{current:null},overlayRef:{current:null},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,handleOnly:!1,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},closeDrawer:()=>{},direction:"bottom",shouldAnimate:{current:!0},shouldScaleBackground:!1,setBackgroundColorOnScale:!0,noBodyStyles:!1,container:null,autoFocus:!1}),sn=()=>{const e=re.useContext(xh);if(!e)throw new Error("useDrawerContext must be used within a Drawer.Root");return e};bv(`[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform,100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform,100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(
7[data-state=closed]
8){opacity:0}
8[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,var(--initial-transform,100%),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform,100%),0)}}@keyframes slideFromTop{from{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}}@keyframes slideFromLeft{from{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}}@keyframes slideFromRight{from{transform:translate3d(var(--initial-transform,100%),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform,100%),0,0)}}`);function wv(){const e=navigator.userAgent;return typeof window<"u"&&(/Firefox/.test(e)&&/Mobile/.test(e)||/FxiOS/.test(e))}function _v(){return Es(/^Mac/)}function xv(){return Es(/^iPhone/)}function rl(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function Sv(){return Es(/^iPad/)||_v()&&navigator.maxTouchPoints>1}function Sh(){return xv()||Sv()}function Es(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.platform):void 0}const Ev=24,Tv=typeof window<"u"?se.useLayoutEffect:se.useEffect;function il(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const or=typeof document<"u"&&window.visualViewport;function sl(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function Eh(e){for(sl(e)&&(e=e.parentElement);e&&!sl(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}const Av=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let mn=0,ar;function Pv(e={}){let{isDisabled:t}=e;Tv(()=>{if(!t)return mn++,mn===1&&Sh()&&(ar=Rv()),()=>{mn--,mn===0&&(ar==null||ar())}},[t])}function Rv(){let e,t=0,n=v=>{e=Eh(v.target),!(e===document.documentElement&&e===document.body)&&(t=v.changedTouches[0].pageY)},i=v=>{if(!e||e===document.documentElement||e===document.body){v.preventDefault();return}let b=v.changedTouches[0].pageY,P=e.scrollTop,j=e.scrollHeight-e.clientHeight;j!==0&&((P<=0&&b>t||P>=j&&b<t)&&v.preventDefault(),t=b)},o=v=>{let b=v.target;Zi(b)&&b!==document.activeElement&&(v.preventDefault(),b.style.transform="translateY(-2000px)",b.focus(),requestAnimationFrame(()=>{b.style.transform=""}))},l=v=>{let b=v.target;Zi(b)&&(b.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{b.style.transform="",or&&(or.height<window.innerHeight?requestAnimationFrame(()=>{ol(b)}):or.addEventListener("resize",()=>ol(b),{once:!0}))}))},c=()=>{window.scrollTo(0,0)},f=window.pageXOffset,h=window.pageYOffset,p=il(kv(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`));window.scrollTo(0,0);let m=il(Lt(document,"touchstart",n,{passive:!1,capture:!0}),Lt(document,"touchmove",i,{passive:!1,capture:!0}),Lt(document,"touchend",o,{passive:!1,capture:!0}),Lt(document,"focus",l,!0),Lt(window,"scroll",c));return()=>{p(),m(),window.scrollTo(f,h)}}function kv(e,t,n){let i=e.style[t];return e.style[t]=n,()=>{e.style[t]=i}}function Lt(e,t,n,i){return e.addEventListener(t,n,i),()=>{e.removeEventListener(t,n,i)}}function ol(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=Eh(e);if(n!==document.documentElement&&n!==document.body&&n!==e){let i=n.getBoundingClientRect().top,o=e.getBoundingClientRect().top,l=e.getBoundingClientRect().bottom;const c=n.getBoundingClientRect().bottom+Ev;l>c&&(n.scrollTop+=o-i)}e=n.parentElement}}function Zi(e){return e instanceof HTMLInputElement&&!Av.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function Cv(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Dv(...e){return t=>e.forEach(n=>Cv(n,t))}function Th(...e){return se.useCallback(Dv(...e),e)}const Ah=new WeakMap;function $e(e,t,n=!1){if(!e||!(e instanceof HTMLElement))return;let i={};Object.entries(t).forEach(([o,l])=>{if(o.startsWith("--")){e.style.setProperty(o,l);return}i[o]=e.style[o],e.style[o]=l}),!n&&Ah.set(e,i)}function Ov(e,t){if(!e||!(e instanceof HTMLElement))return;let n=Ah.get(e);n&&(e.style[t]=n[t])}const Ne=e=>{switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}};function yn(e,t){if(!e)return null;const n=window.getComputedStyle(e),i=n.transform||n.webkitTransform||n.mozTransform;let o=i.match(/^matrix3d\((.+)\)$/);return o?parseFloat(o[1].split(", ")[Ne(t)?13:12]):(o=i.match(/^matrix\((.+)\)$/),o?parseFloat(o[1].split(", ")[Ne(t)?5:4]):null)}function jv(e){return 8*(Math.log(e+1)-2)}function ur(e,t){if(!e)return()=>{};const n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}function Mv(...e){return(...t)=>{for(const n of e)typeof n=="function"&&n(...t)}}const Oe={DURATION:.5,EASE:[.32,.72,0,1]},Ph=.4,Iv=.25,Vv=100,Rh=8,vn=16,Ji=26,lr="vaul-dragging";function kh(e){const t=re.useRef(e);return re.useEffect(()=>{t.current=e}),re.useMemo(()=>(...n)=>t.current==null?void 0:t.current.call(t,...n),[])}function Lv({defaultProp:e,onChange:t}){const n=re.useState(e),[i]=n,o=re.useRef(i),l=kh(t);return re.useEffect(()=>{o.current!==i&&(l(i),o.current=i)},[i,o,l]),n}function Ch({prop:e,defaultProp:t,onChange:n=()=>{}}){const[i,o]=Lv({defaultProp:t,onChange:n}),l=e!==void 0,c=l?e:i,f=kh(n),h=re.useCallback(p=>{if(l){const v=typeof p=="function"?p(e):p;v!==e&&f(v)}else o(p)},[l,e,o,f]);return[c,h]}function Nv({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:n,drawerRef:i,overlayRef:o,fadeFromIndex:l,onSnapPointChange:c,direction:f="bottom",container:h,snapToSequentialPoint:p}){const[m,v]=Ch({prop:e,defaultProp:n==null?void 0:n[0],onChange:t}),[b,P]=re.useState(typeof window<"u"?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);re.useEffect(()=>{function D(){P({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener("resize",D),()=>window.removeEventListener("resize",D)},[]);const j=re.useMemo(()=>m===(n==null?void 0:n[n.length-1])||null,[n,m]),M=re.useMemo(()=>{var D;return(D=n==null?void 0:n.findIndex(z=>z===m))!=null?D:null},[n,m]),k=n&&n.length>0&&(l||l===0)&&!Number.isNaN(l)&&n[l]===m||!n,O=re.useMemo(()=>{const D=h?{width:h.getBoundingClientRect().width,height:h.getBoundingClientRect().height}:typeof window<"u"?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0};var z;return(z=n==null?void 0:n.map(L=>{const $=typeof L=="string";let H=0;if($&&(H=parseInt(L,10)),Ne(f)){const J=$?H:b?L*D.height:0;return b?f==="bottom"?D.height-J:-D.height+J:J}const K=$?H:b?L*D.width:0;return b?f==="right"?D.width-K:-D.width+K:K}))!=null?z:[]},[n,b,h]),B=re.useMemo(()=>M!==null?O==null?void 0:O[M]:null,[O,M]),q=re.useCallback(D=>{var z;const L=(z=O==null?void 0:O.findIndex($=>$===D))!=null?z:null;c(L),$e(i.current,{transition:`transform ${Oe.DURATION}s cubic-bezier(${Oe.EASE.join(",")})`,transform:Ne(f)?`translate3d(0, ${D}
8px, 0)`:`translate3d(${D}px, 0, 0)`}),O&&L!==O.length-1&&l!==void 0&&L!==l&&L<l?$e(o.current,{transition:`opacity ${Oe.DURATION}s cubic-bezier(${Oe.EASE.join(",")})`,opacity:"0"}):$e(o.current,{transition:`opacity ${Oe.DURATION}s cubic-bezier(${Oe.EASE.join(",")})`,opacity:"1"}),v(n==null?void 0:n[Math.max(L,0)])},[i.current,n,O,l,o,v]);re.useEffect(()=>{if(m||e){var D;const z=(D=n==null?void 0:n.findIndex(L=>L===e||L===m))!=null?D:-1;O&&z!==-1&&typeof O[z]=="number"&&q(O[z])}},[m,e,n,O,q]);function F({draggedDistance:D,closeDrawer:z,velocity:L,dismissible:$}){if(l===void 0)return;const H=f==="bottom"||f==="right"?(B??0)-D:(B??0)+D,K=M===l-1,J=M===0,de=D>0;if(K&&$e(o.current,{transition:`opacity ${Oe.DURATION}s cubic-bezier(${Oe.EASE.join(",")})`}),!p&&L>2&&!de){$?z():q(O[0]);return}if(!p&&L>2&&de&&O&&n){q(O[n.length-1]);return}const ge=O==null?void 0:O.reduce((V,N)=>typeof V!="number"||typeof N!="number"?V:Math.abs(N-H)<Math.abs(V-H)?N:V),ke=Ne(f)?window.innerHeight:window.innerWidth;if(L>Ph&&Math.abs(D)<ke*.4){const V=de?1:-1;if(V>0&&j&&n){q(O[n.length-1]);return}if(J&&V<0&&$&&z(),M===null)return;q(O[M+V]);return}q(ge)}function oe({draggedDistance:D}){if(B===null)return;const z=f==="bottom"||f==="right"?B-D:B+D;(f==="bottom"||f==="right")&&z<O[O.length-1]||(f==="top"||f==="left")&&z>O[O.length-1]||$e(i.current,{transform:Ne(f)?`translate3d(0, ${z}px, 0)`:`translate3d(${z}px, 0, 0)`})}function ue(D,z){if(!n||typeof M!="number"||!O||l===void 0)return null;const L=M===l-1;if(M>=l&&z)return 0;if(L&&!z)return 1;if(!k&&!L)return null;const H=L?M+1:M-1,K=L?O[H]-O[H-1]:O[H+1]-O[H],J=D/Math.abs(K);return L?1-J:J}return{isLastSnapPoint:j,activeSnapPoint:m,shouldFade:k,getPercentageDragged:ue,setActiveSnapPoint:v,activeSnapPointIndex:M,onRelease:F,onDrag:oe,snapPointsOffset:O}}const $v=()=>()=>{};function qv(){const{direction:e,isOpen:t,shouldScaleBackground:n,setBackgroundColorOnScale:i,noBodyStyles:o}=sn(),l=re.useRef(null),c=se.useMemo(()=>document.body.style.backgroundColor,[]);function f(){return(window.innerWidth-Ji)/window.innerWidth}re.useEffect(()=>{if(t&&n){l.current&&clearTimeout(l.current);const h=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");if(!h)return;Mv(i&&!o?ur(document.body,{background:"black"}):$v,ur(h,{transformOrigin:Ne(e)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:`${Oe.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Oe.EASE.join(",")})`}));const p=ur(h,{borderRadius:`${Rh}px`,overflow:"hidden",...Ne(e)?{transform:`scale(${f()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${f()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});return()=>{p(),l.current=window.setTimeout(()=>{c?document.body.style.background=c:document.body.style.removeProperty("background")},Oe.DURATION*1e3)}}},[t,n,c])}let Nt=null;function Bv({isOpen:e,modal:t,nested:n,hasBeenOpened:i,preventScrollRestoration:o,noBodyStyles:l}){const[c,f]=re.useState(()=>typeof window<"u"?window.location.href:""),h=re.useRef(0),p=re.useCallback(()=>{if(rl()&&Nt===null&&e&&!l){Nt={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:"unset"};const{scrollX:v,innerHeight:b}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:`${-h.current}px`,left:`${-v}px`,right:"0px",height:"auto"}),window.setTimeout(()=>window.requestAnimationFrame(()=>{const P=b-window.innerHeight;P&&h.current>=b&&(document.body.style.top=`${-(h.current+P)}px`)}),300)}},[e]),m=re.useCallback(()=>{if(rl()&&Nt!==null&&!l){const v=-parseInt(document.body.style.top,10),b=-parseInt(document.body.style.left,10);Object.assign(document.body.style,Nt),window.requestAnimationFrame(()=>{if(o&&c!==window.location.href){f(window.location.href);return}window.scrollTo(b,v)}),Nt=null}},[c]);return re.useEffect(()=>{function v(){h.current=window.scrollY}return v(),window.addEventListener("scroll",v),()=>{window.removeEventListener("scroll",v)}},[]),re.useEffect(()=>{if(t)return()=>{typeof document>"u"||document.querySelector("[data-vaul-drawer]")||m()}},[t,m]),re.useEffect(()=>{n||!i||(e?(!window.matchMedia("(display-mode: standalone)").matches&&p(),t||window.setTimeout(()=>{m()},500)):m())},[e,i,c,t,n,p,m]),{restorePositionSetting:m}}function Fv({open:e,onOpenChange:t,children:n,onDrag:i,onRelease:o,snapPoints:l,shouldScaleBackgroun
8d:c=!1,setBackgroundColorOnScale:f=!0,closeThreshold:h=Iv,scrollLockTimeout:p=Vv,dismissible:m=!0,handleOnly:v=!1,fadeFromIndex:b=l&&l.length-1,activeSnapPoint:P,setActiveSnapPoint:j,fixed:M,modal:k=!0,onClose:O,nested:B,noBodyStyles:q=!1,direction:F="bottom",defaultOpen:oe=!1,disablePreventScroll:ue=!0,snapToSequentialPoint:D=!1,preventScrollRestoration:z=!1,repositionInputs:L=!0,onAnimationEnd:$,container:H,autoFocus:K=!1}){var J,de;const[ge=!1,ke]=Ch({defaultProp:oe,prop:e,onChange:he=>{t==null||t(he),!he&&!B&&Et(),setTimeout(()=>{$==null||$(he)},Oe.DURATION*1e3),he&&!k&&typeof window<"u"&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"}),he||(document.body.style.pointerEvents="auto")}}),[V,N]=re.useState(!1),[ie,ae]=re.useState(!1),[be,me]=re.useState(!1),_e=re.useRef(null),Pe=re.useRef(null),xe=re.useRef(null),I=re.useRef(null),ne=re.useRef(null),ee=re.useRef(!1),le=re.useRef(null),Y=re.useRef(0),E=re.useRef(!1),g=re.useRef(!oe),S=re.useRef(0),w=re.useRef(null),y=re.useRef(((J=w.current)==null?void 0:J.getBoundingClientRect().height)||0),G=re.useRef(((de=w.current)==null?void 0:de.getBoundingClientRect().width)||0),W=re.useRef(0),te=re.useCallback(he=>{l&&he===Ae.length-1&&(Pe.current=new Date)},[]),{activeSnapPoint:fe,activeSnapPointIndex:ye,setActiveSnapPoint:ve,onRelease:Te,snapPointsOffset:Ae,onDrag:Ce,shouldFade:We,getPercentageDragged:Be}=Nv({snapPoints:l,activeSnapPointProp:P,setActiveSnapPointProp:j,drawerRef:w,fadeFromIndex:b,overlayRef:_e,onSnapPointChange:te,direction:F,container:H,snapToSequentialPoint:D});Pv({isDisabled:!ge||ie||!k||be||!V||!L||!ue});const{restorePositionSetting:Et}=Bv({isOpen:ge,modal:k,nested:B??!1,hasBeenOpened:V,preventScrollRestoration:z,noBodyStyles:q});function lt(){return(window.innerWidth-Ji)/window.innerWidth}function Tt(he){var Ee,Re;!m&&!l||w.current&&!w.current.contains(he.target)||(y.current=((Ee=w.current)==null?void 0:Ee.getBoundingClientRect().height)||0,G.current=((Re=w.current)==null?void 0:Re.getBoundingClientRect().width)||0,ae(!0),xe.current=new Date,Sh()&&window.addEventListener("touchend",()=>ee.current=!1,{once:!0}),he.target.setPointerCapture(he.pointerId),Y.current=Ne(F)?he.pageY:he.pageX)}function tt(he,Ee){var Re;let Se=he;const De=(Re=window.getSelection())==null?void 0:Re.toString(),Ue=w.current?yn(w.current,F):null,Fe=new Date;if(Se.tagName==="SELECT"||Se.hasAttribute("data-vaul-no-drag")||Se.closest("[data-vaul-no-drag]"))return!1;if(F==="right"||F==="left")return!0;if(Pe.current&&Fe.getTime()-Pe.current.getTime()<500)return!1;if(Ue!==null&&(F==="bottom"?Ue>0:Ue<0))return!0;if(De&&De.length>0)return!1;if(ne.current&&Fe.getTime()-ne.current.getTime()<p&&Ue===0||Ee)return ne.current=Fe,!1;for(;Se;){if(Se.scrollHeight>Se.clientHeight){if(Se.scrollTop!==0)return ne.current=new Date,!1;if(Se.getAttribute("role")==="dialog")return!0}Se=Se.parentNode}return!0}function nt(he){if(w.current&&ie){const Ee=F==="bottom"||F==="right"?1:-1,Re=(Y.current-(Ne(F)?he.pageY:he.pageX))*Ee,Se=Re>0,De=l&&!m&&!Se;if(De&&ye===0)return;const Ue=Math.abs(Re),Fe=document.querySelector("[data-vaul-drawer-wrapper]"),it=F==="bottom"||F==="top"?y.current:G.current;let Ye=Ue/it;const ct=Be(Ue,Se);if(ct!==null&&(Ye=ct),De&&Ye>=1||!ee.current&&!tt(he.target,Se))return;if(w.current.classList.add(lr),ee.current=!0,$e(w.current,{transition:"none"}),$e(_e.current,{transition:"none"}),l&&Ce({draggedDistance:Re}),Se&&!l){const Ze=jv(Re),gt=Math.min(Ze*-1,0)*Ee;$e(w.current,{transform:Ne(F)?`translate3d(0, ${gt}px, 0)`:`translate3d(${gt}px, 0, 0)`});return}const ft=1-Ye;if((We||b&&ye===b-1)&&(i==null||i(he,Ye),$e(_e.current,{opacity:`${ft}`,transition:"none"},!0)),Fe&&_e.current&&c){const Ze=Math.min(lt()+Ye*(1-lt()),1),gt=8-Ye*8,Mt=Math.max(0,14-Ye*14);$e(Fe,{borderRadius:`${gt}px`,transform:Ne(F)?`scale(${Ze}) translate3d(0, ${Mt}px, 0)`:`scale(${Ze}) translate3d(${Mt}px, 0, 0)`,transition:"none"},!0)}if(!l){const Ze=Ue*Ee;$e(w.current,{transform:Ne(F)?`translate3d(0, ${Ze}px, 0)`:`translate3d(${Ze}px, 0, 0)`})}}}re.useEffect(()=>{window.requestAnimationFrame(()=>{g.current=!0})},[]),re.useEffect(()=>{var he;function Ee(){if(!w.current||!L)return;const Re=document.activeElement;if(Zi(Re)||E.current){var Se;
8const De=((Se=window.visualViewport)==null?void 0:Se.height)||0,Ue=window.innerHeight;let Fe=Ue-De;const it=w.current.getBoundingClientRect().height||0,Ye=it>Ue*.8;W.current||(W.current=it);const ct=w.current.getBoundingClientRect().top;if(Math.abs(S.current-Fe)>60&&(E.current=!E.current),l&&l.length>0&&Ae&&ye){const ft=Ae[ye]||0;Fe+=ft}if(S.current=Fe,it>De||E.current){const ft=w.current.getBoundingClientRect().height;let Ze=ft;ft>De&&(Ze=De-(Ye?ct:Ji)),M?w.current.style.height=`${ft-Math.max(Fe,0)}px`:w.current.style.height=`${Math.max(Ze,De-ct)}px`}else wv()||(w.current.style.height=`${W.current}px`);l&&l.length>0&&!E.current?w.current.style.bottom="0px":w.current.style.bottom=`${Math.max(Fe,0)}px`}}return(he=window.visualViewport)==null||he.addEventListener("resize",Ee),()=>{var Re;return(Re=window.visualViewport)==null?void 0:Re.removeEventListener("resize",Ee)}},[ye,l,Ae]);function rt(he){Mn(),O==null||O(),he||ke(!1),setTimeout(()=>{l&&ve(l[0])},Oe.DURATION*1e3)}function At(){if(!w.current)return;const he=document.querySelector("[data-vaul-drawer-wrapper]"),Ee=yn(w.current,F);$e(w.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${Oe.DURATION}s cubic-bezier(${Oe.EASE.join(",")})`}),$e(_e.current,{transition:`opacity ${Oe.DURATION}s cubic-bezier(${Oe.EASE.join(",")})`,opacity:"1"}),c&&Ee&&Ee>0&&ge&&$e(he,{borderRadius:`${Rh}px`,overflow:"hidden",...Ne(F)?{transform:`scale(${lt()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${lt()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${Oe.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Oe.EASE.join(",")})`},!0)}function Mn(){!ie||!w.current||(w.current.classList.remove(lr),ee.current=!1,ae(!1),I.current=new Date)}function In(he){if(!ie||!w.current)return;w.current.classList.remove(lr),ee.current=!1,ae(!1),I.current=new Date;const Ee=yn(w.current,F);
8if(!he||!tt(he.target,!1)||!Ee||Number.isNaN(Ee)||xe.current===null)return;const Re=I.current.getTime()-xe.current.getTime(),Se=Y.current-(Ne(F)?he.pageY:he.pageX),De=Math.abs(Se)/Re;if(De>.05&&(me(!0),setTimeout(()=>{me(!1)},200)),l){Te({draggedDistance:Se*(F==="bottom"||F==="right"?1:-1),closeDrawer:rt,velocity:De,dismissible:m}),o==null||o(he,!0);return}if(F==="bottom"||F==="right"?Se>0:Se<0){At(),o==null||o(he,!0);return}if(De>Ph){rt(),o==null||o(he,!1);return}var Ue;const Fe=Math.min((Ue=w.current.getBoundingClientRect().height)!=null?Ue:0,window.innerHeight);var it;const Ye=Math.min((it=w.current.getBoundingClientRect().width)!=null?it:0,window.innerWidth),ct=F==="left"||F==="right";if(Math.abs(Ee)>=(ct?Ye:Fe)*h){rt(),o==null||o(he,!1);return}o==null||o(he,!0),At()}re.useEffect(()=>(ge&&($e(document.documentElement,{scrollBehavior:"auto"}),Pe.current=new Date),()=>{Ov(document.documentElement,"scrollBehavior")}),[ge]);function an(he){const Ee=he?(window.innerWidth-vn)/window.innerWidth:1,Re=he?-16:0;le.current&&window.clearTimeout(le.current),$e(w.current,{transition:`transform ${Oe.DURATION}s cubic-bezier(${Oe.EASE.join(",")})`,transform:Ne(F)?`scale(${Ee}) translate3d(0, ${Re}px, 0)`:`scale(${Ee}) translate3d(${Re}px, 0, 0)`}),!he&&w.current&&(le.current=setTimeout(()=>{const Se=yn(w.current,F);$e(w.current,{transition:"none",transform:Ne(F)?`translate3d(0, ${Se}px, 0)`:`translate3d(${Se}px, 0, 0)`})},500))}function un(he,Ee){if(Ee<0)return;const Re=(window.innerWidth-vn)/window.innerWidth,Se=Re+Ee*(1-Re),De=-16+Ee*vn;$e(w.current,{transform:Ne(F)?`scale(${Se}) translate3d(0, ${De}px, 0)`:`scale(${Se}) translate3d(${De}px, 0, 0)`,transition:"none"})}function ln(he,Ee){const Re=Ne(F)?window.innerHeight:window.innerWidth,Se=Ee?(Re-vn)/Re:1,De=Ee?-16:0;Ee&&$e(w.current,{transition:`transform ${Oe.DURATION}s cubic-bezier(${Oe.EASE.join(",")})`,transform:Ne(F)?`scale(${Se}) translate3d(0, ${De}px, 0)`:`scale(${Se}) translate3d(${De}px, 0, 0)`})}return re.useEffect(()=>{k||window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"})},[k]),re.createElement(Dp,{defaultOpen:oe,onOpenChange:he=>{!m&&!he||(he?N(!0):rt(!0),ke(he))},open:ge},re.createElement(xh.Provider,{value:{activeSnapPoint:fe,snapPoints:l,setActiveSnapPoint:ve,drawerRef:w,overlayRef:_e,onOpenChange:t,onPress:Tt,onRelease:In,onDrag:nt,dismissible:m,shouldAnimate:g,handleOnly:v,isOpen:ge,isDragging:ie,shouldFade:We,closeDrawer:rt,onNestedDrag:un,onNestedOpenChange:an,onNestedRelease:ln,keyboardIsOpen:E,modal:k,snapPointsOffset:Ae,activeSnapPointIndex:ye,direction:F,shouldScaleBackground:c,setBackgroundColorOnScale:f,noBodyStyles:q,container:H,autoFocus:K}},n))}const Dh=re.forwardRef(function({...e},t){const{overlayRef:n,snapPoints:i,onRelease:o,shouldFade:l,isOpen:c,modal:f,shouldAnimate:h}=sn(),p=Th(t,n),m=i&&i.length>0;if(!f)return null;const v=re.useCallback(b=>o(b),[o]);return re.createElement(Ep,{onMouseUp:v,ref:p,"data-vaul-overlay":"","data-vaul-snap-points":c&&m?"true":"false","data-vaul-snap-points-overlay":c&&l?"true":"false","data-vaul-animate":h!=null&&h.current?"true":"false",...e})});Dh.displayName="Drawer.Overlay";const Oh=re.forwardRef(function({onPointerDownOutside:e,style:t,onOpenAutoFocus:n,...i},o){const{drawerRef:l,onPress:c,onRelease:f,onDrag:h,keyboardIsOpen:p,snapPointsOffset:m,activeSnapPointIndex:v,modal:b,isOpen:P,direction:j,snapPoints:M,container:k,handleOnly:O,shouldAnimate:B,autoFocus:q}=sn(),[F,oe]=re.useState(!1),ue=Th(o,l),D=re.useRef(null),z=re.useRef(null),L=re.useRef(!1),$=M&&M.length>0;qv();const H=(J,de,ge=0)=>{if(L.current)return!0;const ke=Math.abs(J.y),V=Math.abs(J.x),N=V>ke,ie=["bottom","right"].includes(de)?1:-1;if(de==="left"||de==="right"){if(!(J.x*ie<0)&&V>=0&&V<=ge)return N}else if(!(J.y*ie<0)&&ke>=0&&ke<=ge)return!N;return L.current=!0,!0};re.useEffect(()=>{$&&window.requestAnimationFrame(()=>{oe(!0)})},[]);function K(J){D.current=null,L.current=!1,f(J)}return re.createElement(Tp,{"data-vaul-drawer-direction":j,"data-vaul-drawer":"","data-vaul-delayed-snap-points":F?"true":"false","data-vaul-snap-points":P&&$?"true":"false","data-vaul-custom-container":k?"true":"false","data-vaul-animate":B!=null&&B.current?"true":"false",...i,ref:ue,style:m&&m.length>0?{"--snap-point-height":`${m[v??0]}px`,...t}:t,onPointerDown:J=>{O||(i.onPointerDown==null||i.onPointerDown.call(i,J),D.current={x:J.pageX,y:J.pageY},c(J))},onOpenAutoFocus:J=>{n==null||n(J),q||J.preventDefault()},onPointerDownOutside:J=>{if(e==null||e(J),!b||J.defaultPrevented){J.preventDefault();return}p.current&&(p.current=!1)},onFocusOutside:J=>{if(!b){J.preventDefault();return}},onPointerMove:J=>{if(z.current=J,O||(i.onPointerMove==null||i.onPointerMove.call(i,J),!D.current))return;const de=J.pageY-D.current.y,ge=J.pageX-D.current.x,ke=J.pointerType==="touch"?10:2;H({x:ge,y:de},j,ke)?h(J):(Math.abs(ge)>ke||Math.abs(de)>ke)&&(D.current=null)},onPointerUp:J=>{i.onPointerUp==null||i.onPointerUp.call(i,J),D.current=null,L.current=!1,f(J)},onPointerOut:J=>{i.onPointerOut==null||i.onPointerOut.call(i,J),K(z.current)},onContextMenu:J=>{i.onContextMenu==null||i.onContextMenu.call(i,J),z.current&&K(z.current)}})});Oh.displayName="Drawer.Content";const Gv=250,zv=120,Uv=re.forwardRef(function({preventCycle:e=!1,children:t,...n},i){const{closeDrawer:o,isDragging:l,snapPoints:c,activeSnapPoint:f,setActiveSnapPoint:h,dismissible:p,handleOnly:m,isOpen:v,onPress:b,onDrag:P}=sn(),j=re.useRef(null),M=re.useRef(!1);function k(){if(M.current){q();return}window.setTimeout(()=>{O()},zv)}function O(){if(l||e||M.current){q();return}if(q(),!c||c.length===0){p||o();return}if(f===c[c.length-1]&&p){o();return}const oe=c.findIndex(D=>D===f);if(oe===-1)return;const ue=c[oe+1];h(ue)}function B(){j.current=window.setTimeout(()=>
8{M.current=!0},Gv)}function q(){j.current&&window.clearTimeout(j.current),M.current=!1}return re.createElement("div",{onClick:k,onPointerCancel:q,onPointerDown:F=>{m&&b(F),B()},onPointerMove:F=>{m&&P(F)},ref:i,"data-vaul-drawer-visible":v?"true":"false","data-vaul-handle":"","aria-hidden":"true",...n},re.createElement("span",{"data-vaul-handle-hitarea":"","aria-hidden":"true"},t))});Uv.displayName="Drawer.Handle";function Wv(e){const t=sn(),{container:n=t.container,...i}=e;return re.createElement(Rp,{container:n,...i})}const ut={Root:Fv,Content:Oh,Overlay:Dh,Trigger:kp,Portal:Wv,Close:Cp,Title:Ap,Description:Pp},jh=({shouldScaleBackground:e=!0,...t})=>U.jsx(ut.Root,{shouldScaleBackground:e,...t});jh.displayName="Drawer";const Hv=ut.Trigger,Xv=ut.Portal,Kv=ut.Close,Mh=se.forwardRef(({className:e,...t},n)=>U.jsx(ut.Overlay,{ref:n,className:dt("fixed inset-0 z-50 bg-black/80",e),...t}));Mh.displayName=ut.Overlay.displayName;const Ih=se.forwardRef(({className:e,children:t,...n},i)=>U.jsxs(Xv,{children:[U.jsx(Mh,{}),U.jsxs(ut.Content,{ref:i,className:dt("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",e),...n,children:[U.jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),t]})]}));Ih.displayName="DrawerContent";const Vh=({className:e,...t})=>U.jsx("div",{className:dt("grid gap-1.5 p-4 text-center sm:text-left",e),...t});Vh.displayName="DrawerHeader";const Lh=({className:e,...t})=>U.jsx("div",{className:dt("mt-auto flex flex-col gap-2 p-4",e),...t});Lh.displayName="DrawerFooter";const Yv=se.forwardRef(({className:e,...t},n)=>U.jsx(ut.Title,{ref:n,className:dt("text-lg font-semibold leading-none tracking-tight",e),...t}));Yv.displayName=ut.Title.displayName;const Nh=se.forwardRef(({className:e,...t},n)=>U.jsx(ut.Description,{ref:n,className:dt("text-sm text-muted-foreground",e),...t}));Nh.displayName=ut.Description.displayName;const Zv={},Jv=Object.freeze(Object.defineProperty({__proto__:null,default:Zv},Symbol.toStringTag,{value:"Module"})),$t=yp(Jv);var Ge={},ze={},al;function Qv(){if(al)return ze;al=1;const e=/^[A-Za-z]:\//;function t(D=""){return D&&D.replace(/\\/g,"/").replace(e,z=>z.toUpperCase())}const n=/^[/\\]{2}/,i=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,o=/^[A-Za-z]:$/,l=/^\/([A-Za-z]:)?$/,c="/",f=":",h=function(D){if(D.length===0)return".";D=t(D);const z=D.match(n),L=P(D),$=D[D.length-1]==="/";return D=b(D,!L),D.length===0?L?"/":$?"./":".":($&&(D+="/"),o.test(D)&&(D+="/"),z?L?`//${D}`:`//./${D}`:L&&!P(D)?`/${D}`:D)},p=function(...D){if(D.length===0)return".";let z;for(const L of D)L&&L.length>0&&(z===void 0?z=L:z+=`/${L}`);return z===void 0?".":h(z.replace(/\/\/+/g,"/"))};function m(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const v=function(...D){D=D.map($=>t($));let z="",L=!1;for(let $=D.length-1;$>=-1&&!L;$--){const H=$>=0?D[$]:m();!H||H.length===0||(z=`${H}/${z}`,L=P(H))}return z=b(z,!L),L&&!P(z)?`/${z}`:z.length>0?z:"."};function b(D,z){let L="",$=0,H=-1,K=0,J=null;for(let de=0;de<=D.length;++de){if(de<D.length)J=D[de];else{if(J==="/")break;J="/"}if(J==="/"){if(!(H===de-1||K===1))if(K===2){if(L.length<2||$!==2||L[L.length-1]!=="."||L[L.length-2]!=="."){if(L.length>2){const ge=L.lastIndexOf("/");ge===-1?(L="",$=0):(L=L.slice(0,ge),$=L.length-1-L.lastIndexOf("/")),H=de,K=0;continue}else if(L.length>0){L="",$=0,H=de,K=0;continue}}z&&(L+=L.length>0?"/..":"..",$=2)}else L.length>0?L+=`/${D.slice(H+1,de)}`:L=D.slice(H+1,de),$=de-H-1;H=de,K=0}else J==="."&&K!==-1?++K:K=-1}return L}const P=function(D){return i.test(D)},j=function(D){return t(D)},M=/.(\.[^./]+)$/,k=function(D){const z=M.exec(t(D));return z&&z[1]||""},O=function(D,z){const L=v(D).replace(l,"$1").split("/"),$=v(z).replace(l,"$1").split("/");if($[0][1]===":"&&L[0][1]===":"&&L[0]!==$[0])return $.join("/");const H=[...L];for(const K of H){if($[0]!==K)break;L.shift(),$.shift()}return[...L.map(()=>".."),...$].join("/")},B=function(D){const z=t(D).replace(/\/$/,"").split("/").slice(0,-1);return z.length===1&&o.test(z[0])&&(z[0]+="/"),z.join("/")||(P(D)?"/":".")},q=function(D){const z=[D.root,D.dir,D.base??D.name+D.ext].filter(
8Boolean);return t(D.root?v(...z):z.join("/"))},F=function(D,z){const L=t(D).split("/").pop();return z&&L.endsWith(z)?L.slice(0,-z.length):L},oe=function(D){const z=t(D).split("/").shift()||"/",L=F(D),$=k(L);return{root:z,dir:B(D),base:L,ext:$,name:L.slice(0,L.length-$.length)}},ue={__proto__:null,basename:F,delimiter:f,dirname:B,extname:k,format:q,isAbsolute:P,join:p,normalize:h,normalizeString:b,parse:oe,relative:O,resolve:v,sep:c,toNamespacedPath:j};return ze.basename=F,ze.delimiter=f,ze.dirname=B,ze.extname=k,ze.format=q,ze.isAbsolute=P,ze.join=p,ze.normalize=h,ze.normalizeString=b,ze.normalizeWindowsPath=t,ze.parse=oe,ze.path=ue,ze.relative=O,ze.resolve=v,ze.sep=c,ze.toNamespacedPath=j,ze}var ul;function eg(){if(ul)return Ge;ul=1,Object.defineProperty(Ge,"__esModule",{value:!0});const e=Qv();return Ge.basename=e.basename,Ge.default=e.path,Ge.delimiter=e.delimiter,Ge.dirname=e.dirname,Ge.extname=e.extname,Ge.format=e.format,Ge.isAbsolute=e.isAbsolute,Ge.join=e.join,Ge.normalize=e.normalize,Ge.normalizeString=e.normalizeString,Ge.parse=e.parse,Ge.relative=e.relative,Ge.resolve=e.resolve,Ge.sep=e.sep,Ge.toNamespacedPath=e.toNamespacedPath,Ge}var cr,ll;function tg(){if(ll)return cr;ll=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,o=(a,s)=>{for(var r in s)e(a,r,{get:s[r],enumerable:!0})},l=(a,s,r,u)=>{if(s&&typeof s=="object"||typeof s=="function")for(let d of n(s))!i.call(a,d)&&d!==r&&e(a,d,{get:()=>s[d],enumerable:!(u=t(s,d))||u.enumerable});return a},c=a=>l(e({},"__esModule",{value:!0}),a),f={};o(f,{BASE64_REGEX:()=>p,BIC_REGEX:()=>m,CUID2_REGEX:()=>v,DECIMAL_REGEX:()=>b,EMAIL_REGEX:()=>P,EMOJI_REGEX:()=>j,HEXADECIMAL_REGEX:()=>M,HEX_COLOR_REGEX:()=>k,IMEI_REGEX:()=>O,IPV4_REGEX:()=>B,IPV6_REGEX:()=>q,IP_REGEX:()=>F,ISO_DATE_REGEX:()=>oe,ISO_DATE_TIME_REGEX:()=>ue,ISO_TIMESTAMP_REGEX:()=>L,ISO_TIME_REGEX:()=>D,ISO_TIME_SECOND_REGEX:()=>z,ISO_WEEK_REGEX:()=>$,MAC48_REGEX:()=>H,MAC64_REGEX:()=>K,MAC_REGEX:()=>J,NANO_ID_REGEX:()=>de,OCTAL_REGEX:()=>ge,ULID_REGEX:()=>ke,UUID_REGEX:()=>V,ValiError:()=>We,_addIssue:()=>y,_isLuhnAlgo:()=>W,_isValidObjectKey:()=>te,_joinExpects:()=>fe,_stringify:()=>w,any:()=>Fo,array:()=>Go,arrayAsync:()=>zo,awaitAsync:()=>h,base64:()=>Be,bic:()=>Et,bigint:()=>Uo,blob:()=>Wo,boolean:()=>Ho,brand:()=>lt,bytes:()=>Tt,check:()=>tt,checkAsync:()=>nt,checkItems:()=>rt,config:()=>Wh,creditCard:()=>an,cuid2:()=>un,custom:()=>Xo,customAsync:()=>Ko,date:()=>Yo,decimal:()=>ln,deleteGlobalConfig:()=>be,deleteGlobalMessage:()=>xe,deleteSchemaMessage:()=>le,deleteSpecificMessage:()=>S,description:()=>he,email:()=>Ee,emoji:()=>Re,empty:()=>Se,endsWith:()=>De,entriesFromList:()=>ye,enum:()=>qn,enum_:()=>qn,everyItem:()=>Ue,excludes:()=>Fe,fallback:()=>Hh,fallbackAsync:()=>Xh,file:()=>Zo,filterItems:()=>it,findItem:()=>Ye,finite:()=>ct,flatten:()=>Kh,forward:()=>Yh,forwardAsync:()=>Zh,function:()=>Bn,function_:()=>Bn,getDefault:()=>st,getDefaults:()=>Vn,getDefaultsAsync:()=>Ln,getDotPath:()=>ve,getFallback:()=>It,getFallbacks:()=>Nn,getFallbacksAsync:()=>$n,getGlobalConfig:()=>ae,getGlobalMessage:()=>Pe,getSchemaMessage:()=>ee,getSpecificMessage:()=>g,hash:()=>Ze,hexColor:()=>Mt,hexadecimal:()=>gt,imei:()=>Os,includes:()=>js,instance:()=>Jo,integer:()=>Ms,intersect:()=>Qo,intersectAsync:()=>ea,ip:()=>Is,ipv4:()=>Vs,ipv6:()=>Ls,is:()=>Jh,isOfKind:()=>Te,isOfType:()=>Ae,isValiError:()=>Ce,isoDate:()=>Ns,isoDateTime:()=>$s,isoTime:()=>qs,isoTimeSecond:()=>Bs,isoTimestamp:()=>Fs,isoWeek:()=>Gs,keyof:()=>Qh,lazy:()=>ta,lazyAsync:()=>na,length:()=>zs,literal:()=>ra,looseObject:()=>ia,looseObjectAsync:()=>sa,looseTuple:()=>oa,looseTupleAsync:()=>aa,mac:()=>Us,mac48:()=>Ws,mac64:()=>Hs,map:()=>ua,mapAsync:()=>la,mapItems:()=>Xs,maxBytes:()=>Ks,maxLength:()=>Ys,maxSize:()=>Zs,maxValue:()=>Js,mimeType:()=>Qs,minBytes:()=>eo,minLength:()=>to,minSize:()=>no,minValue:()=>ro,multipleOf:()=>io,nan:()=>ca,nanoid:()=>so,never:()=>fa,nonEmpty:()=>oo,nonNullable:()=>ha,nonNullableAsync:()=>pa,nonNullish:()=>da,nonNullishAsync:()=>ma,nonOptional:()=>Fn,nonOptionalAsync:()=>Gn,normalize:()=>ao,notBytes:()=>uo,notLength:()=>lo,notSize:()=>co,notValue:()=>fo,null:()=>zn,null_:()=>zn,nullable:()=>ya,nullableAsync:()=>va,nullish:()=>ga,nullishAsync:()=>ba,number:()=>wa,object:()=>_a,objectAsync:()=>xa,objectWithRest:()=>Sa,objectWithRestAsync:()=>Ea,octal:()=>ho,omit:()=>ep,optional:()=>Un,optionalAsync:()=>Wn,parse:()=>Ha,parseAsync:()=>Xa,parser:()=>tp,parserAsync:()=>np,partial:()=>rp,partialAsync:()=>ip,partialCheck:()=>mo,partialCheckAsync:()=>yo,pick:()=>sp,picklist:()=>Hn,pipe:()=>op,pipeAsync:()=>ap,promise:()=>Ta,rawCheck:()=>vo,rawCheckAsync:()=>go,rawTransform:()=>bo,rawTransformAsync:()=>wo,readonly:()=>_o,record:()=>Aa,recordAsync:()=>Pa,reduceItems:()=>
8xo,regex:()=>So,required:()=>up,requiredAsync:()=>lp,safeInteger:()=>Eo,safeParse:()=>Ka,safeParseAsync:()=>Ya,safeParser:()=>cp,safeParserAsync:()=>fp,set:()=>Ra,setAsync:()=>ka,setGlobalConfig:()=>ie,setGlobalMessage:()=>_e,setSchemaMessage:()=>ne,setSpecificMessage:()=>E,size:()=>To,someItem:()=>Ao,sortItems:()=>Po,startsWith:()=>Ro,strictObject:()=>Ca,strictObjectAsync:()=>Da,strictTuple:()=>Oa,strictTupleAsync:()=>ja,string:()=>Ma,symbol:()=>Ia,toLowerCase:()=>ko,toMaxValue:()=>Co,toMinValue:()=>Do,toUpperCase:()=>Oo,transform:()=>jo,transformAsync:()=>Mo,trim:()=>Io,trimEnd:()=>Vo,trimStart:()=>Lo,tuple:()=>Va,tupleAsync:()=>La,tupleWithRest:()=>Na,tupleWithRestAsync:()=>$a,ulid:()=>No,undefined:()=>Xn,undefined_:()=>Xn,undefinedable:()=>qa,undefinedableAsync:()=>Ba,union:()=>Fa,unionAsync:()=>Ga,unknown:()=>za,unwrap:()=>hp,url:()=>$o,uuid:()=>qo,value:()=>Bo,variant:()=>Ua,variantAsync:()=>Wa,void:()=>Kn,void_:()=>Kn}),cr=c(f);function h(){return{kind:"transformation",type:"await",reference:h,async:!0,async _run(a){return a.value=await a.value,a}}}var p=/^(?:[\da-z+/]{4})*(?:[\da-z+/]{2}==|[\da-z+/]{3}=)?$/iu,m=/^[A-Z]{6}(?!00)[\dA-Z]{2}(?:[\dA-Z]{3})?$/u,v=/^[a-z][\da-z]*$/u,b=/^\d+$/u,P=/^[\w+-]+(?:\.[\w+-]+)*@[\da-z]+(?:[.-][\da-z]+)*\.[a-z]{2,}$/iu,j=new RegExp("^(?:[\\u{1F1E6}-\\u{1F1FF}]{2}|\\u{1F3F4}[\\u{E0061}-\\u{E007A}]{2}[\\u{E0030}-\\u{E0039}\\u{E0061}-\\u{E007A}]{1,3}\\u{E007F}|(?:\\p{Emoji}\\uFE0F\\u20E3?|\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|\\p{Emoji_Presentation})(?:\\u200D(?:\\p{Emoji}\\uFE0F\\u20E3?|\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|\\p{Emoji_Presentation}))*)+$","u"),M=/^(?:0[hx])?[\da-f]+$/iu,k=/^#(?:[\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$/iu,O=/^\d{15}$|^\d{2}-\d{6}-\d{6}-\d$/u,B=/^(?:(?:[1-9]|1\d|2[0-4])?\d|25[0-5])(?:\.(?:(?:[1-9]|1\d|2[0-4])?\d|25[0-5])){3}$/u,q=/^(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:|(?:[\da-f]{1,4}:){1,6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,5}(?::[\da-f]{1,4}){1,2}|(?:[\da-f]{1,4}:){1,4}(?::[\da-f]{1,4}){1,3}|(?:[\da-f]{1,4}:){1,3}(?::[\da-f]{1,4}){1,4}|(?:[\da-f]{1,4}:){1,2}(?::[\da-f]{1,4}){1,5}|[\da-f]{1,4}:(?::[\da-f]{1,4}){1,6}|:(?:(?::[\da-f]{1,4}){1,7}|:)|fe80:(?::[\da-f]{0,4}){0,4}%[\da-z]+|::(?:f{4}(?::0{1,4})?:)?(?:(?:25[0-5]|(?:2[0-4]|1?\d)?\d)\.){3}(?:25[0-5]|(?:2[0-4]|1?\d)?\d)|(?:[\da-f]{1,4}:){1,4}:(?:(?:25[0-5]|(?:2[0-4]|1?\d)?\d)\.){3}(?:25[0-5]|(?:2[0-4]|1?\d)?\d))$/iu,F=/^(?:(?:[1-9]|1\d|2[0-4])?\d|25[0-5])(?:\.(?:(?:[1-9]|1\d|2[0-4])?\d|25[0-5])){3}$|^(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:|(?:[\da-f]{1,4}:){1,6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,5}(?::[\da-f]{1,4}){1,2}|(?:[\da-f]{1,4}:){1,4}(?::[\da-f]{1,4}){1,3}|(?:[\da-f]{1,4}:){1,3}(?::[\da-f]{1,4}){1,4}|(?:[\da-f]{1,4}:){1,2}(?::[\da-f]{1,4}){1,5}|[\da-f]{1,4}:(?::[\da-f]{1,4}){1,6}|:(?:(?::[\da-f]{1,4}){1,7}|:)|fe80:(?::[\da-f]{0,4}){0,4}%[\da-z]+|::(?:f{4}(?::0{1,4})?:)?(?:(?:25[0-5]|(?:2[0-4]|1?\d)?\d)\.){3}(?:25[0-5]|(?:2[0-4]|1?\d)?\d)|(?:[\da-f]{1,4}:){1,4}:(?:(?:25[0-5]|(?:2[0-4]|1?\d)?\d)\.){3}(?:25[0-5]|(?:2[0-4]|1?\d)?\d))$/iu,oe=/^\d{4}-(?:0[1-9]|1[0-2])-(?:[12]\d|0[1-9]|3[01])$/u,ue=/^\d{4}-(?:0[1-9]|1[0-2])-(?:[12]\d|0[1-9]|3[01])T(?:0\d|1\d|2[0-3]):[0-5]\d$/u,D=/^(?:0\d|1\d|2[0-3]):[0-5]\d$/u,z=/^(?:0\d|1\d|2[0-3])(?::[0-5]\d){2}$/u,L=/^\d{4}-(?:0[1-9]|1[0-2])-(?:[12]\d|0[1-9]|3[01])T(?:0\d|1\d|2[0-3])(?::[0-5]\d){2}(?:\.\d{1,9})?(?:Z|[+-](?:0\d|1\d|2[0-3])(?::?[0-5]\d)?)$/u,$=/^\d{4}-W(?:0[1-9]|[1-4]\d|5[0-3])$/u,H=/^(?:[\da-f]{2}:){5}[\da-f]{2}$|^(?:[\da-f]{2}-){5}[\da-f]{2}$|^(?:[\da-f]{4}\.){2}[\da-f]{4}$/iu,K=/^(?:[\da-f]{2}:){7}[\da-f]{2}$|^(?:[\da-f]{2}-){7}[\da-f]{2}$|^(?:[\da-f]{4}\.){3}[\da-f]{4}$|^(?:[\da-f]{4}:){3}[\da-f]{4}$/iu,J=/^(?:[\da-f]{2}:){5}[\da-f]{2}$|^(?:[\da-f]{2}-){5}[\da-f]{2}$|^(?:[\da-f]{4}\.){2}[\da-f]{4}$|^(?:[\da-f]{2}:){7}[\da-f]{2}$|^(?:[\da-f]{2}-){7}[\da-f]{2}$|^(?:[\da-f]{4}\.){3}[\da-f]{4}$|^(?:[\da-f]{4}:){3}[\da-f]{4}$/iu,de=/^[\w-]+$/u,ge=/^(?:0o)?[0-7]+$/iu,ke=/^[\da-hjkmnp-tv-z]{26}$/iu,V=/^[\da-f]{8}(?:-[\da-f]{4}){3}-[\da-f]{12}$/iu,N;function ie(a){N={...N,...a}}function ae(a){return{lang:(a==null?void 0:a.lang)??(N==null?void 0:N.lang),message:a==null?void 0:a.message,abortEarly:(a==null?void 0:a.abortEarly)??(N==null?void 0:N.abortEarly),abortPipeEarly:(a==null?void 0:a.abortPipeEarly)??(N==null?void 0:N.abortPipeEarly)}}function be(){N=void 0}var me;function _e(a,s){me||(me=new Map),me.set(s,a)}function Pe(a){return me==null?void 0:me.get(a)}function xe(a){me==null||me.delete(a)}var I;function ne(a,s){I||(I=new Map),I.set(s,a)}function ee(a){return I==null?void 0:I.get(a)}function le(a){I==null||I.delete(a)}var Y;function E(a,s,r){Y||(Y=new Map),Y.get(a)||Y.set(a,new Map),Y.get(a).set(r,s)}function g(a,s){var r;return(r=Y==null?void 0:Y.get(a))==null?void 0:r.get(s)}function S(a,s){var r;(r=Y==null?void 0:Y.get(a))==null||r.delete(s)}function w(a){var r,u;
8const s=typeof a;return s==="string"?`"${a}"`:s==="number"||s==="bigint"||s==="boolean"?`${a}`:s==="object"||s==="function"?(a&&((u=(r=Object.getPrototypeOf(a))==null?void 0:r.constructor)==null?void 0:u.name))??"null":s}function y(a,s,r,u,d){const _=d&&"input"in d?d.input:r.value,T=(d==null?void 0:d.expected)??a.expects??null,A=(d==null?void 0:d.received)??w(_),x={kind:a.kind,type:a.type,input:_,expected:T,received:A,message:`Invalid ${s}: ${T?`Expected ${T} but r`:"R"}eceived ${A}`,requirement:a.requirement,path:d==null?void 0:d.path,issues:d==null?void 0:d.issues,lang:u.lang,abortEarly:u.abortEarly,abortPipeEarly:u.abortPipeEarly},C=a.kind==="schema",R=(d==null?void 0:d.message)??a.message??g(a.reference,x.lang)??(C?ee(x.lang):null)??u.message??Pe(x.lang);R&&(x.message=typeof R=="function"?R(x):R),C&&(r.typed=!1),r.issues?r.issues.push(x):r.issues=[x]}var G=/\D/gu;function W(a){const s=a.replace(G,"");let r=s.length,u=1,d=0;for(;r;){const _=+s[--r];u^=1,d+=u?[0,2,4,6,8,1,3,5,7,9][_]:_}return d%10===0}function te(a,s){return Object.hasOwn(a,s)&&s!=="__proto__"&&s!=="prototype"&&s!=="constructor"}
8function fe(a,s){const r=[...new Set(a)];return r.length>1?`(${r.join(` ${s} `)})`:r[0]??"never"}function ye(a,s){const r={};for(const u of a)r[u]=s;return r}function ve(a){if(a.path){let s="";for(const r of a.path)if(typeof r.key=="string"||typeof r.key=="number")s?s+=`.${r.key}`:s+=r.key;else return null;return s}return null}function Te(a,s){return s.kind===a}function Ae(a,s){return s.type===a}function Ce(a){return a instanceof We}var We=class extends Error{constructor(s){super(s[0].message);Ie(this,"issues");this.name="ValiError",this.issues=s}};function Be(a){return{kind:"validation",type:"base64",reference:Be,async:!1,expects:null,requirement:p,message:a,_run(s,r){return s.typed&&!this.requirement.test(s.value)&&y(this,"Base64",s,r),s}}}function Et(a){return{kind:"validation",type:"bic",reference:Et,async:!1,expects:null,requirement:m,message:a,_run(s,r){return s.typed&&!this.requirement.test(s.value)&&y(this,"BIC",s,r),s}}}function lt(a){return{kind:"transformation",type:"brand",reference:lt,async:!1,name:a,_run(s){return s}}}function Tt(a,s){return{kind:"validation",type:"bytes",reference:Tt,async:!1,expects:`${a}`,requirement:a,message:s,_run(r,u){if(r.typed){const d=new TextEncoder().encode(r.value).length;d!==this.requirement&&y(this,"bytes",r,u,{received:`${d}`})}return r}}}function tt(a,s){return{kind:"validation",type:"check",reference:tt,async:!1,expects:null,requirement:a,message:s,_run(r,u){return r.typed&&!this.requirement(r.value)&&y(this,"input",r,u),r}}}function nt(a,s){return{kind:"validation",type:"check",reference:nt,async:!0,expects:null,requirement:a,message:s,async _run(r,u){return r.typed&&!await this.requirement(r.value)&&y(this,"input",r,u),r}}}function rt(a,s){return{kind:"validation",type:"check_items",reference:rt,async:!1,expects:null,requirement:a,message:s,_run(r,u){if(r.typed)for(let d=0;d<r.value.length;d++){const _=r.value[d];this.requirement(_,d,r.value)||y(this,"item",r,u,{input:_,path:[{type:"array",origin:"value",input:r.value,key:d,value:_}]})}return r}}}var At=/^(?:\d{14,19}|\d{4}(?: \d{3,6}){2,4}|\d{4}(?:-\d{3,6}){2,4})$/u,Mn=/[- ]/gu,In=[/^3[47]\d{13}$/u,/^3(?:0[0-5]|[68]\d)\d{11,13}$/u,/^6(?:011|5\d{2})\d{12,15}$/u,/^(?:2131|1800|35\d{3})\d{11}$/u,/^5[1-5]\d{2}|(?:222\d|22[3-9]\d|2[3-6]\d{2}|27[01]\d|2720)\d{12}$/u,/^(?:6[27]\d{14,17}|81\d{14,17})$/u,/^4\d{12}(?:\d{3,6})?$/u];function an(a){return{kind:"validation",type:"credit_card",reference:an,async:!1,expects:null,requirement(s){let r;return At.test(s)&&(r=s.replace(Mn,""))&&In.some(u=>u.test(r))&&W(r)},message:a,_run(s,r){return s.typed&&!this.requirement(s.value)&&y(this,"credit card",s,r),s}}}function un(a){return{kind:"validation",type:"cuid2",reference:un,async:!1,expects:null,requirement:v,message:a,_run(s,r){return s.typed&&!this.requirement.test(s.value)&&y(this,"Cuid2",s,r),s}}}function ln(a){return{kind:"validation",type:"decimal",reference:ln,async:!1,expects:null,requirement:b,message:a,_run(s,r){return s.typed&&!this.requirement.test(s.value)&&y(this,"decimal",s,r),s}}}function he(a){return{kind:"metadata",type:"description",reference:he,description:a}}function Ee(a){return{kind:"validation",type:"email",reference:Ee,expects:null,async:!1,requirement:P,message:a,_run(s,r){return s.typed&&!this.requirement.test(s.value)&&y(this,"email",s,r),s}}}function Re(a){return{kind:"validation",type:"emoji",reference:Re,async:!1,expects:null,requirement:j,message:a,_run(s,r){return s.typed&&!this.requirement.test(s.value)&&y(this,"emoji",s,r),s}}}function Se(a){return{kind:"validation",type:"empty",reference:Se,async:!1,expects:"0",message:a,_run(s,r){return s.typed&&s.value.length>0&&y(this,"length",s,r,{received:`${s.value.length}`}),s}}}function De(a,s){return{kind:"validation",type:"ends_with",reference:De,async:!1,expects:`"${a}"`,requirement:a,message:s,_run(r,u){return r.typed&&!r.value.endsWith(this.requirement)&&y(this,"end",r,u,{received:`"${r.value.slice(-this.requirement.length)}"`}),r}}}function Ue(a,s){return{kind:"validation",type:"every_item",reference:Ue,async:!1,expects:null,requirement:a,message:s,_run(r,u){return r.typed&&!r.value.every(this.requirement)&&y(this,"item",r,u),r}}}function Fe(a,s){const r=w(a);
8return{kind:"validation",type:"excludes",reference:Fe,async:!1,expects:`!${r}`,requirement:a,message:s,_run(u,d){return u.typed&&u.value.includes(this.requirement)&&y(this,"content",u,d,{received:r}),u}}}function it(a){return{kind:"transformation",type:"filter_items",reference:it,async:!1,operation:a,_run(s){return s.value=s.value.filter(this.operation),s}}}function Ye(a){return{kind:"transformation",type:"find_item",reference:Ye,async:!1,operation:a,_run(s){return s.value=s.value.find(this.operation),s}}}function ct(a){return{kind:"validation",type:"finite",reference:ct,async:!1,expects:null,requirement:Number.isFinite,message:a,_run(s,r){return s.typed&&!this.requirement(s.value)&&y(this,"finite",s,r),s}}}var ft={md4:32,md5:32,sha1:40,sha256:64,sha384:96,sha512:128,ripemd128:32,ripemd160:40,tiger128:32,tiger160:40,tiger192:48,crc32:8,crc32b:8,adler32:8};function Ze(a,s){return{kind:"validation",type:"hash",reference:Ze,expects:null,async:!1,requirement:RegExp(a.map(r=>`^[a-f0-9]{${ft[r]}}$`).join("|"),"iu"),message:s,_run(r,u){return r.typed&&!this.requirement.test(r.value)&&y(this,"hash",r,u),r}}}function gt(a){return{kind:"validation",type:"hexadecimal",reference:gt,async:!1,expects:null,requirement:M,message:a,_run(s,r){return s.typed&&!this.requirement.test(s.value)&&y(this,"hexadecimal",s,r),s}}}function Mt(a){return{kind:"validation",type:"hex_color",reference:Mt,async:!1,expects:null,requirement:k,message:a,_run(s,r){return s.typed&&!this.requirement.test(s.value)&&y(this,"hex color",s,r),s}}}function Os(a){return{kind:"validation",type:"imei",reference:Os,async:!1,expects:null,requirement(s){return O.test(s)&&W(s)},message:a,_run(s,r){return s.typed&&!this.requirement(s.value)&&y(this,"IMEI",s,r),s}}}function js(a,s){const r=w(a);return{kind:"validation",type:"includes",reference:js,async:!1,expects:r,requirement:a,message:s,_run(u,d){return u.typed&&!u.value.includes(this.requirement)&&y(this,"content",u,d,{received:`!${r}`}),u}}}function Ms(a){return{kind:"validation",type:"integer",reference:Ms,async:!1,expects:null,requirement:Number.isInteger,message:a,_run(s,r){return s.typed&&!this.requirement(s.value)&&y(this,"integer",s,r),s}}}function Is(a){return{kind:"validation",type:"ip",reference:Is,async:!1,expects:null,requirement:F,message:a,_run(s,r){return s.typed&&!this.requirement.test(s.value)&&y(this,"IP",s,r),s}}}function Vs(a){return{kind:"validation",type:"ipv4",reference:Vs,async:!1,expects:null,requirement:B,message:a,_run(s,r){return s.typed&&!this.requirement.test(s.value)&&y(this,"IPv4",s,r),s}}}function Ls(a){return{kind:"validation",type:"ipv6",reference:Ls,async:!1,expects:null,requirement:q,message:a,_run(s,r){return s.typed&&!this.requirement.test(s.value)&&y(this,"IPv6",s,r),s}}}function Ns(a){return{kind:"validation",type:"iso_date",reference:Ns,async:!1,expects:null,requirement:oe,message:a,_run(s,r){return s.typed&&!this.requirement.test(s.value)&&y(this,"date",s,r),s}}}function $s(a){return{kind:"validation",type:"iso_date_time",reference:$s,async:!1,expects:null,requirement:ue,message:a,_run(s,r){return s.typed&&!this.requirement.test(s.value)&&y(this,"date-time",s,r),s}}}function qs(a){return{kind:"validation",type:"iso_time",reference:qs,async:!1,expects:null,requirement:D,message:a,_run(s,r){return s.typed&&!this.requirement.test(s.value)&&y(this,"time",s,r),s}}}function Bs(a){return{kind:"validation",type:"iso_time_second",reference:Bs,async:!1,expects:null,requirement:z,message:a,_run(s,r){return s.typed&&!this.requirement.test(s.value)&&y(this,"time-second",s,r),s}}}function Fs(a){return{kind:"validation",type:"iso_timestamp",reference:Fs,async:!1,expects:null,requirement:L,message:a,_run(s,r){return s.typed&&!this.requirement.test(s.value)&&y(this,"timestamp",s,r),s}}}function Gs(a){return{kind:"validation",type:"iso_week",reference:Gs,async:!1,expects:null,requirement:$,message:a,_run(s,r){return s.typed&&!this.requirement.test(s.value)&&y(this,"week",s,r),s}}}function zs(a,s){return{kind:"validation",type:"length",reference:zs,async:!1,expects:`${a}`,requirement:a,message:s,_run(r,u){return r.typed&&r.value.length!==this.requirement&&y(this,"length",r,u,{received:`${r.value.length}`}),r}}}
8function Us(a){return{kind:"validation",type:"mac",reference:Us,async:!1,expects:null,requirement:J,message:a,_run(s,r){return s.typed&&!this.requirement.test(s.value)&&y(this,"MAC",s,r),s}}}function Ws(a){return{kind:"validation",type:"mac48",reference:Ws,async:!1,expects:null,requirement:H,message:a,_run(s,r){return s.typed&&!this.requirement.test(s.value)&&y(this,"48-bit MAC",s,r),s}}}function Hs(a){return{kind:"validation",type:"mac64",reference:Hs,async:!1,expects:null,requirement:K,message:a,_run(s,r){return s.typed&&!this.requirement.test(s.value)&&y(this,"64-bit MAC",s,r),s}}}function Xs(a){return{kind:"transformation",type:"map_items",reference:Xs,async:!1,operation:a,_run(s){return s.value=s.value.map(this.operation),s}}}function Ks(a,s){return{kind:"validation",type:"max_bytes",reference:Ks,async:!1,expects:`<=${a}`,requirement:a,message:s,_run(r,u){if(r.typed){const d=new TextEncoder().encode(r.value).length;d>this.requirement&&y(this,"bytes",r,u,{received:`${d}`})}return r}}}function Ys(a,s){return{kind:"validation",type:"max_length",reference:Ys,async:!1,expects:`<=${a}`,requirement:a,message:s,_run(r,u){return r.typed&&r.value.length>this.requirement&&y(this,"length",r,u,{received:`${r.value.length}`}),r}}}function Zs(a,s){return{kind:"validation",type:"max_size",reference:Zs,async:!1,expects:`<=${a}`,requirement:a,message:s,_run(r,u){return r.typed&&r.value.size>this.requirement&&y(this,"size",r,u,{received:`${r.value.size}`}),r}}}function Js(a,s){return{kind:"validation",type:"max_value",reference:Js,async:!1,expects:`<=${a instanceof Date?a.toJSON():w(a)}`,requirement:a,message:s,_run(r,u){return r.typed&&r.value>this.requirement&&y(this,"value",r,u,{received:r.value instanceof Date?r.value.toJSON():w(r.value)}),r}}}function Qs(a,s){return{kind:"validation",type:"mime_type",reference:Qs,async:!1,expects:fe(a.map(r=>`"${r}"`),"|"),requirement:a,message:s,_run(r,u){return r.typed&&!this.requirement.includes(r.value.type)&&y(this,"MIME type",r,u,{received:`"${r.value.type}"`}),r}}}function eo(a,s){return{kind:"validation",type:"min_bytes",reference:eo,async:!1,expects:`>=${a}`,requirement:a,message:s,_run(r,u){if(r.typed){const d=new TextEncoder().encode(r.value).length;d<this.requirement&&y(this,"bytes",r,u,{received:`${d}`})}return r}}}function to(a,s){return{kind:"validation",type:"min_length",reference:to,async:!1,expects:`>=${a}`,requirement:a,message:s,_run(r,u){return r.typed&&r.value.length<this.requirement&&y(this,"length",r,u,{received:`${r.value.length}`}),r}}}function no(a,s){return{kind:"validation",type:"min_size",reference:no,async:!1,expects:`>=${a}`,requirement:a,message:s,_run(r,u){return r.typed&&r.value.size<this.requirement&&y(this,"size",r,u,{received:`${r.value.size}`}),r}}}function ro(a,s){return{kind:"validation",type:"min_value",reference:ro,async:!1,expects:`>=${a instanceof Date?a.toJSON():w(a)}`,requirement:a,message:s,_run(r,u){return r.typed&&r.value<this.requirement&&y(this,"value",r,u,{received:r.value instanceof Date?r.value.toJSON():w(r.value)}),r}}}function io(a,s){return{kind:"validation",type:"multiple_of",reference:io,async:!1,expects:`%${a}`,requirement:a,message:s,_run(r,u){return r.typed&&r.value%this.requirement!==0&&y(this,"multiple",r,u),r}}}function so(a){return{kind:"validation",type:"nanoid",reference:so,async:!1,expects:null,requirement:de,message:a,_run(s,r){return s.typed&&!this.requirement.test(s.value)&&y(this,"Nano ID",s,r),s}}}function oo(a){return{kind:"validation",type:"non_empty",reference:oo,async:!1,expects:"!0",message:a,_run(s,r){return s.typed&&s.value.length===0&&y(this,"length",s,r,{received:"0"}),s}}}function ao(a){return{kind:"transformation",type:"normalize",reference:ao,async:!1,form:a,_run(s){return s.value=s.value.normalize(this.form),s}}}function uo(a,s){return{kind:"validation",type:"not_bytes",reference:uo,async:!1,expects:`!${a}`,requirement:a,message:s,_run(r,u){if(r.typed){const d=new TextEncoder().encode(r.value).length;d===this.requirement&&y(this,"bytes",r,u,{received:`${d}`})}return r}}}function lo(a,s){return{kind:"validation",type:"not_length",reference:lo,async:!1,expects:`!${a}`,requirement:a,message:s,_run(r,u){return r.typed&&r.value.length===this.requirement&&y(this,"length",r,u,{received:`${r.value.length}`}),r}}}
8function co(a,s){return{kind:"validation",type:"not_size",reference:co,async:!1,expects:`!${a}`,requirement:a,message:s,_run(r,u){return r.typed&&r.value.size===this.requirement&&y(this,"size",r,u,{received:`${r.value.size}`}),r}}}function fo(a,s){return{kind:"validation",type:"not_value",reference:fo,async:!1,expects:a instanceof Date?`!${a.toJSON()}`:`!${w(a)}`,requirement:a,message:s,_run(r,u){return r.typed&&this.requirement<=r.value&&this.requirement>=r.value&&y(this,"value",r,u,{received:r.value instanceof Date?r.value.toJSON():w(r.value)}),r}}}function ho(a){return{kind:"validation",type:"octal",reference:ho,async:!1,expects:null,requirement:ge,message:a,_run(s,r){return s.typed&&!this.requirement.test(s.value)&&y(this,"octal",s,r),s}}}function po(a,s){var r;if(a.issues)for(const u of s)for(const d of a.issues){let _=!1;const T=Math.min(u.length,((r=d.path)==null?void 0:r.length)??0);for(let A=0;A<T;A++)if(u[A]!==d.path[A].key){_=!0;break}if(!_)return!1}return!0}function mo(a,s,r){return{kind:"validation",type:"partial_check",reference:mo,async:!1,expects:null,requirement:s,message:r,_run(u,d){return po(u,a)&&!this.requirement(u.value)&&y(this,"input",u,d),u}}}function yo(a,s,r){return{kind:"validation",type:"partial_check",reference:yo,async:!0,expects:null,requirement:s,message:r,async _run(u,d){return po(u,a)&&!await this.requirement(u.value)&&y(this,"input",u,d),u}}}function vo(a){return{kind:"validation",type:"raw_check",reference:vo,async:!1,expects:null,_run(s,r){return a({dataset:s,config:r,addIssue:u=>y(this,(u==null?void 0:u.label)??"input",s,r,u)}),s}}}function go(a){return{kind:"validation",type:"raw_check",reference:go,async:!0,expects:null,async _run(s,r){return await a({dataset:s,config:r,addIssue:u=>y(this,(u==null?void 0:u.label)??"input",s,r,u)}),s}}}function bo(a){return{kind:"transformation",type:"raw_transform",reference:bo,async:!1,_run(s,r){const u=a({dataset:s,config:r,addIssue:d=>y(this,(d==null?void 0:d.label)??"input",s,r,d),NEVER:null});return s.issues?s.typed=!1:s.value=u,s}}}function wo(a){return{kind:"transformation",type:"raw_transform",reference:wo,async:!0,async _run(s,r){const u=await a({dataset:s,config:r,addIssue:d=>y(this,(d==null?void 0:d.label)??"input",s,r,d),NEVER:null});return s.issues?s.typed=!1:s.value=u,s}}}function _o(){return{kind:"transformation",type:"readonly",reference:_o,async:!1,_run(a){return a}}}function xo(a,s){return{kind:"transformation",type:"reduce_items",reference:xo,async:!1,operation:a,initial:s,_run(r){return r.value=r.value.reduce(this.operation,this.initial),r}}}function So(a,s){return{kind:"validation",type:"regex",reference:So,async:!1,expects:`${a}`,requirement:a,message:s,_run(r,u){return r.typed&&!this.requirement.test(r.value)&&y(this,"format",r,u),r}}}function Eo(a){return{kind:"validation",type:"safe_integer",reference:Eo,async:!1,expects:null,requirement:Number.isSafeInteger,message:a,_run(s,r){return s.typed&&!this.requirement(s.value)&&y(this,"safe integer",s,r),s}}}function To(a,s){return{kind:"validation",type:"size",reference:To,async:!1,expects:`${a}`,requirement:a,message:s,_run(r,u){return r.typed&&r.value.size!==this.requirement&&y(this,"size",r,u,{received:`${r.value.size}`}),r}}}function Ao(a,s){return{kind:"validation",type:"some_item",reference:Ao,async:!1,expects:null,requirement:a,message:s,_run(r,u){return r.typed&&!r.value.some(this.requirement)&&y(this,"item",r,u),r}}}function Po(a){return{kind:"transformation",type:"sort_items",reference:Po,async:!1,operation:a,_run(s){return s.value=s.value.sort(this.operation),s}}}function Ro(a,s){return{kind:"validation",type:"starts_with",reference:Ro,async:!1,expects:`"${a}"`,requirement:a,message:s,_run(r,u){return r.typed&&!r.value.startsWith(this.requirement)&&y(this,"start",r,u,{received:`"${r.value.slice(0,this.requirement.length)}"`}),r}}}function ko(){return{kind:"transformation",type:"to_lower_case",reference:ko,async:!1,_run(a){return a.value=a.value.toLowerCase(),a}}}function Co(a){return{kind:"transformation",type:"to_max_value",reference:Co,async:!1,requirement:a,_run(s){return s.value=s.value>this.requirement?this.requirement:s.value,s}}}function Do(a){return{kind:"transformation",type:"to_min_value",reference:Do,async:!1,requirement:a,_run(s){return s.value=s.value<this.requirement?this.requirement:s.value,s}}}function Oo(){return{kind:"transformation",type:"to_upper_case",reference:Oo,async:!1,_run(a){return a.value=a.value.toUpperCase(),a}}}function jo(a){return{kind:"transformation",type:"transform",reference:jo,async:!1,operation:a,_run(s){return s.value=this.operation(s.value),s}}}function Mo(a){return{kind:"transformation",type:"transform",reference:Mo,async:!0,operation:a,async _run(s){return s.value=await this.operation(s.value),s}}}function Io(){return{kind:"transformation",type:"trim",reference:Io,async:!1,_run(a){return a.value=a.value.trim(),a}}}function Vo(){return{kind:"transformation",type:"trim_end",reference:Vo,async:!1,_run(a){return a.value=a.value.trimEnd(),a}}}function Lo(){return{kind:"transformation",type:"trim_start",reference:Lo,async:!1,_run(a){return a.value=a.value.trimStart(),a}}}
8function No(a){return{kind:"validation",type:"ulid",reference:No,async:!1,expects:null,requirement:ke,message:a,_run(s,r){return s.typed&&!this.requirement.test(s.value)&&y(this,"ULID",s,r),s}}}function $o(a){return{kind:"validation",type:"url",reference:$o,async:!1,expects:null,requirement(s){try{return new URL(s),!0}catch{return!1}},message:a,_run(s,r){return s.typed&&!this.requirement(s.value)&&y(this,"URL",s,r),s}}}function qo(a){return{kind:"validation",type:"uuid",reference:qo,async:!1,expects:null,requirement:V,message:a,_run(s,r){return s.typed&&!this.requirement.test(s.value)&&y(this,"UUID",s,r),s}}}function Bo(a,s){return{kind:"validation",type:"value",reference:Bo,async:!1,expects:a instanceof Date?a.toJSON():w(a),requirement:a,message:s,_run(r,u){return r.typed&&!(this.requirement<=r.value&&this.requirement>=r.value)&&y(this,"value",r,u,{received:r.value instanceof Date?r.value.toJSON():w(r.value)}),r}}}function Wh(a,s){return{...a,_run(r,u){return a._run(r,{...u,...s})}}}function It(a,s,r){return typeof a.fallback=="function"?a.fallback(s,r):a.fallback}function Hh(a,s){return{...a,fallback:s,_run(r,u){const d=a._run(r,u);return d.issues?{typed:!0,value:It(this,d,u)}:d}}}function Xh(a,s){return{...a,fallback:s,async:!0,async _run(r,u){const d=await a._run(r,u);return d.issues?{typed:!0,value:await It(this,d,u)}:d}}}function Kh(a){const s={};for(const r of a)if(r.path){const u=ve(r);u?(s.nested||(s.nested={}),s.nested[u]?s.nested[u].push(r.message):s.nested[u]=[r.message]):s.other?s.other.push(r.message):s.other=[r.message]}else s.root?s.root.push(r.message):s.root=[r.message];return s}function Yh(a,s){return{...a,_run(r,u){const d=r.issues&&[...r.issues];if(a._run(r,u),r.issues){for(const _ of r.issues)if(!(d!=null&&d.includes(_))){let T=r.value;for(const A of s){const x=T[A],C={type:"unknown",origin:"value",input:T,key:A,value:x};if(_.path?_.path.push(C):_.path=[C],!x)break;T=x}}}return r}}}function Zh(a,s){return{...a,async:!0,async _run(r,u){const d=r.issues&&[...r.issues];if(await a._run(r,u),r.issues){for(const _ of r.issues)if(!(d!=null&&d.includes(_))){let T=r.value;for(const A of s){const x=T[A],C={type:"unknown",origin:"value",input:T,key:A,value:x};if(_.path?_.path.push(C):_.path=[C],!x)break;T=x}}}return r}}}function st(a,s,r){return typeof a.default=="function"?a.default(s,r):a.default}function Vn(a){if("entries"in a){const s={};for(const r in a.entries)s[r]=Vn(a.entries[r]);return s}return"items"in a?a.items.map(Vn):st(a)}async function Ln(a){return"entries"in a?Object.fromEntries(await Promise.all(Object.entries(a.entries).map(async([s,r])=>[s,await Ln(r)]))):"items"in a?Promise.all(a.items.map(Ln)):st(a)}
8function Nn(a){if("entries"in a){const s={};for(const r in a.entries)s[r]=Nn(a.entries[r]);return s}return"items"in a?a.items.map(Nn):It(a)}async function $n(a){return"entries"in a?Object.fromEntries(await Promise.all(Object.entries(a.entries).map(async([s,r])=>[s,await $n(r)]))):"items"in a?Promise.all(a.items.map($n)):It(a)}function Jh(a,s){return!a._run({typed:!1,value:s},{abortEarly:!0}).issues}function Fo(){return{kind:"schema",type:"any",reference:Fo,expects:"any",async:!1,_run(a){return a.typed=!0,a}}}function Go(a,s){return{kind:"schema",type:"array",reference:Go,expects:"Array",async:!1,item:a,message:s,_run(r,u){var _;const d=r.value;if(Array.isArray(d)){r.typed=!0,r.value=[];for(let T=0;T<d.length;T++){const A=d[T],x=this.item._run({typed:!1,value:A},u);if(x.issues){const C={type:"array",origin:"value",input:d,key:T,value:A};for(const R of x.issues)R.path?R.path.unshift(C):R.path=[C],(_=r.issues)==null||_.push(R);if(r.issues||(r.issues=x.issues),u.abortEarly){r.typed=!1;break}}x.typed||(r.typed=!1),r.value.push(x.value)}}else y(this,"type",r,u);return r}}}function zo(a,s){return{kind:"schema",type:"array",reference:zo,expects:"Array",async:!0,item:a,message:s,async _run(r,u){var _;const d=r.value;if(Array.isArray(d)){r.typed=!0,r.value=[];const T=await Promise.all(d.map(A=>this.item._run({typed:!1,value:A},u)));for(let A=0;A<T.length;A++){const x=T[A];if(x.issues){const C={type:"array",origin:"value",input:d,key:A,value:d[A]};for(const R of x.issues)R.path?R.path.unshift(C):R.path=[C],(_=r.issues)==null||_.push(R);if(r.issues||(r.issues=x.issues),u.abortEarly){r.typed=!1;break}}x.typed||(r.typed=!1),r.value.push(x.value)}}else y(this,"type",r,u);return r}}}function Uo(a){return{kind:"schema",type:"bigint",reference:Uo,expects:"bigint",async:!1,message:a,_run(s,r){return typeof s.value=="bigint"?s.typed=!0:y(this,"type",s,r),s}}}function Wo(a){return{kind:"schema",type:"blob",reference:Wo,expects:"Blob",async:!1,message:a,_run(s,r){return s.value instanceof Blob?s.typed=!0:y(this,"type",s,r),s}}}function Ho(a){return{kind:"schema",type:"boolean",reference:Ho,expects:"boolean",async:!1,message:a,_run(s,r){return typeof s.value=="boolean"?s.typed=!0:y(this,"type",s,r),s}}}function Xo(a,s){return{kind:"schema",type:"custom",reference:Xo,expects:"unknown",async:!1,check:a,message:s,_run(r,u){return this.check(r.value)?r.typed=!0:y(this,"type",r,u),r}}}function Ko(a,s){return{kind:"schema",type:"custom",reference:Ko,expects:"unknown",async:!0,check:a,message:s,async _run(r,u){return await this.check(r.value)?r.typed=!0:y(this,"type",r,u),r}}}function Yo(a){return{kind:"schema",type:"date",reference:Yo,expects:"Date",async:!1,message:a,_run(s,r){return s.value instanceof Date?isNaN(s.value)?y(this,"type",s,r,{received:'"Invalid Date"'}):s.typed=!0:y(this,"type",s,r),s}}}function qn(a,s){const r=Object.entries(a).filter(([u])=>isNaN(+u)).map(([,u])=>u);return{kind:"schema",type:"enum",reference:qn,expects:fe(r.map(w),"|"),async:!1,enum:a,options:r,message:s,_run(u,d){return this.options.includes(u.value)?u.typed=!0:y(this,"type",u,d),u}}}function Zo(a){return{kind:"schema",type:"file",reference:Zo,expects:"File",async:!1,message:a,_run(s,r){return s.value instanceof File?s.typed=!0:y(this,"type",s,r),s}}}function Bn(a){return{kind:"schema",type:"function",reference:Bn,expects:"Function",async:!1,message:a,_run(s,r){return typeof s.value=="function"?s.typed=!0:y(this,"type",s,r),s}}}function Jo(a,s){return{kind:"schema",type:"instance",reference:Jo,expects:a.name,async:!1,class:a,message:s,_run(r,u){return r.value instanceof this.class?r.typed=!0:y(this,"type",r,u),r}}}function cn(a,s){if(typeof a==typeof s){if(a===s||a instanceof Date&&s instanceof Date&&+a==+s)return{value:a};if(a&&s&&a.constructor===Object&&s.constructor===Object){for(const r in s)if(r in a){const u=cn(a[r],s[r]);if(u.issue)return u;a[r]=u.value}else a[r]=s[r];return{value:a}}if(Array.isArray(a)&&Array.isArray(s)&&a.length===s.length){for(let r=0;r<a.length;r++){const u=cn(a[r],s[r]);if(u.issue)return u;a[r]=u.value}return{value:a}}}return{issue:!0}}function Qo(a,s){return{kind:"schema",type:"intersect",reference:Qo,expects:fe(a.map(r=>r.expects),"&"),async:!1,options:a,message:s,_run(r,u){if(this.options.length){const d=r.value;let _;r.typed=!0;for(const T of this.options){const A=T._run({typed:!1,value:d},u);if(A.issues&&(r.issues?r.issues.push(...A.issues):r.issues=A.issues,u.abortEarly)){r.typed=!1;break}A.typed||(r.typed=!1),r.typed&&(_?_.push(A.value):_=[A.value])}if(r.typed){r.value=_[0];for(let T=1;T<_.length;T++){const A=cn(r.value,_[T]);if(A.issue){y(this,"type",r,u,{received:"unknown"});break}r.value=A.value}}}else y(this,"type",r,u);return r}}}function ea(a,s){return{kind:"schema",type:"intersect",reference:ea,expects:fe(a.map(r=>r.expects),"&"),async:!0,options:a,message:s,async _run(r,u){if(this.options.length){const d=r.value;let _;r.typed=!0;const T=await Promise.all(this.options.map(A=>A._run({typed:!1,value:d},u)));for(const A of T){if(A.issues&&(r.issues?r.issues.push(...A.issues):r.issues=A.issues,u.abortEarly)){r.typed=!1;break}A.typed||(r.typed=!1),r.typed&&(_?_.push(A.value):_=[A.value])}if(r.typed){r.value=_[0];for(let A=1;A<_.length;A++){const x=cn(r.value,_[A]);if(x.issue){y(this,"type",r,u,{received:"unknown"});break}r.value=x.value}}}else y(this,"type",r,u);return r}}}function ta(a){return{kind:"schema",type:"lazy",reference:ta,expects:"unknown",async:!1,getter:a,_run(s,r){return this.getter(s.value)._run(s,r)}}}function na(a){return{kind:"schema",type:"lazy",reference:na,expects:"unknown",async:!0,getter:a,async _run(s,r){return(await this.getter(s.value))._run(s,r)}}}function ra(a,s){return{kind:"schema",type:"literal",reference:ra,expects:w(a),async:!1,literal:a,message:s,_run(r,u){return r.value===this.literal?r.typed=!0:y(this,"type",r,u),r}}}function ia(a,s){return{kind:"schema",type:"loose_object",reference:ia,expects:"Object",async:!1,entries:a,message:s,_run(r,u){var _;const d=r.value;if(d&&typeof d=="object"){r.typed=!0,r.value={};for(const T in this.entries){const A=d[T],x=this.entries[T]._run({typed:!1,value:A},u);if(x.issues){const C={type:"object",origin:"value",input:d,key:T,value:A};for(const R of x.issues)R.path?R.path.unshift(C):R.path=[C],(_=r.issues)==null||_.push(R);if(r.issues||(r.issues=x.issues),u.abortEarly){r.typed=!1;break}}x.typed||(r.typed=!1),(x.value!==void 0||T in d)&&(r.value[T]=x.value)}
8if(!r.issues||!u.abortEarly)for(const T in d)te(d,T)&&!(T in this.entries)&&(r.value[T]=d[T])}else y(this,"type",r,u);return r}}}function sa(a,s){return{kind:"schema",type:"loose_object",reference:sa,expects:"Object",async:!0,entries:a,message:s,async _run(r,u){var _;const d=r.value;if(d&&typeof d=="object"){r.typed=!0,r.value={};const T=await Promise.all(Object.entries(this.entries).map(async([A,x])=>{const C=d[A];return[A,C,await x._run({typed:!1,value:C},u)]}));for(const[A,x,C]of T){if(C.issues){const R={type:"object",origin:"value",input:d,key:A,value:x};for(const X of C.issues)X.path?X.path.unshift(R):X.path=[R],(_=r.issues)==null||_.push(X);if(r.issues||(r.issues=C.issues),u.abortEarly){r.typed=!1;break}}C.typed||(r.typed=!1),(C.value!==void 0||A in d)&&(r.value[A]=C.value)}if(!r.issues||!u.abortEarly)for(const A in d)te(d,A)&&!(A in this.entries)&&(r.value[A]=d[A])}else y(this,"type",r,u);return r}}}function oa(a,s){return{kind:"schema",type:"loose_tuple",reference:oa,expects:"Array",async:!1,items:a,message:s,_run(r,u){var _;const d=r.value;if(Array.isArray(d)){r.typed=!0,r.value=[];for(let T=0;T<this.items.length;T++){const A=d[T],x=this.items[T]._run({typed:!1,value:A},u);if(x.issues){const C={type:"array",origin:"value",input:d,key:T,value:A};for(const R of x.issues)R.path?R.path.unshift(C):R.path=[C],(_=r.issues)==null||_.push(R);if(r.issues||(r.issues=x.issues),u.abortEarly){r.typed=!1;break}}x.typed||(r.typed=!1),r.value.push(x.value)}if(!r.issues||!u.abortEarly)for(let T=this.items.length;T<d.length;T++)r.value.push(d[T])}else y(this,"type",r,u);return r}}}function aa(a,s){return{kind:"schema",type:"loose_tuple",reference:aa,expects:"Array",async:!0,items:a,message:s,async _run(r,u){var _;const d=r.value;if(Array.isArray(d)){r.typed=!0,r.value=[];const T=await Promise.all(this.items.map(async(A,x)=>{const C=d[x];return[x,C,await A._run({typed:!1,value:C},u)]}));for(const[A,x,C]of T){if(C.issues){const R={type:"array",origin:"value",input:d,key:A,value:x};for(const X of C.issues)X.path?X.path.unshift(R):X.path=[R],(_=r.issues)==null||_.push(X);if(r.issues||(r.issues=C.issues),u.abortEarly){r.typed=!1;break}}C.typed||(r.typed=!1),r.value.push(C.value)}if(!r.issues||!u.abortEarly)for(let A=this.items.length;A<d.length;A++)r.value.push(d[A])}else y(this,"type",r,u);return r}}}function ua(a,s,r){return{kind:"schema",type:"map",reference:ua,expects:"Map",async:!1,key:a,value:s,message:r,_run(u,d){var T,A;const _=u.value;if(_ instanceof Map){u.typed=!0,u.value=new Map;for(const[x,C]of _){const R=this.key._run({typed:!1,value:x},d);if(R.issues){const Q={type:"map",origin:"key",input:_,key:x,value:C};for(const ce of R.issues)ce.path?ce.path.unshift(Q):ce.path=[Q],(T=u.issues)==null||T.push(ce);if(u.issues||(u.issues=R.issues),d.abortEarly){u.typed=!1;break}}const X=this.value._run({typed:!1,value:C},d);if(X.issues){const Q={type:"map",origin:"value",input:_,key:x,value:C};for(const ce of X.issues)ce.path?ce.path.unshift(Q):ce.path=[Q],(A=u.issues)==null||A.push(ce);if(u.issues||(u.issues=X.issues),d.abortEarly){u.typed=!1;break}}(!R.typed||!X.typed)&&(u.typed=!1),u.value.set(R.value,X.value)}}else y(this,"type",u,d);return u}}}function la(a,s,r){return{kind:"schema",type:"map",reference:la,expects:"Map",async:!0,key:a,value:s,message:r,async _run(u,d){var T,A;const _=u.value;if(_ instanceof Map){u.typed=!0,u.value=new Map;const x=await Promise.all([..._].map(([C,R])=>Promise.all([C,R,this.key._run({typed:!1,value:C},d),this.value._run({typed:!1,value:R},d)])));for(const[C,R,X,Q]of x){if(X.issues){const ce={type:"map",origin:"key",input:_,key:C,value:R};for(const we of X.issues)we.path?we.path.unshift(ce):we.path=[ce],(T=u.issues)==null||T.push(we);if(u.issues||(u.issues=X.issues),d.abortEarly){u.typed=!1;break}}if(Q.issues){const ce={type:"map",origin:"value",input:_,key:C,value:R};for(const we of Q.issues)we.path?we.path.unshift(ce):we.path=[ce],(A=u.issues)==null||A.push(we);if(u.issues||(u.issues=Q.issues),d.abortEarly){u.typed=!1;break}}(!X.typed||!Q.typed)&&(u.typed=!1),u.value.set(X.value,Q.value)}}else y(this,"type",u,d);return u}}}function ca(a){return{kind:"schema",type:"nan",reference:ca,expects:"NaN",async:!1,message:a,_run(s,r){return Number.isNaN(s.value)?s.typed=!0:y(this,"type",s,r),s}}}function fa(a){return{kind:"schema",type:"never",reference:fa,expects:"never",async:!1,message:a,_run(s,r){return y(this,"type",s,r),s}}}function ha(a,s){return{kind:"schema",type:"non_nullable",reference:ha,expects:"!null",async:!1,wrapped:a,message:s,_run(r,u){return r.value===null?(y(this,"type",r,u),r):this.wrapped._run(r,u)}}}function pa(a,s){return{kind:"schema",type:"non_nullable",reference:pa,expects:"!null",async:!0,wrapped:a,message:s,async _run(r,u){return r.value===null?(y(this,"type",r,u),r):this.wrapped._run(r,u)}}}function da(a,s){return{kind:"schema",type:"non_nullish",reference:da,expects:"(!null & !undefined)",async:!1,wrapped:a,message:s,_run(r,u){return r.value===null||r.value===void 0?(y(this,"type",r,u),r):this.wrapped._run(r,u)}}}function ma(a,s){return{kind:"schema",type:"non_nullish",reference:ma,expects:"(!null & !undefined)",async:!0,wrapped:a,message:s,async _run(r,u){return r.value===null||r.value===void 0?(y(this,"type",r,u),r):this.wrapped._run(r,u)}}}function Fn(a,s){return{kind:"schema",type:"non_optional",reference:Fn,expects:"!undefined",async:!1,wrapped:a,message:s,_run(r,u){return r.value===void 0?(y(this,"type",r,u),r):this.wrapped._run(r,u)}}}function Gn(a,s){return{kind:"schema",type:"non_optional",reference:Gn,expects:"!undefined",async:!0,wrapped:a,message:s,async _run(r,u){return r.value===void 0?(y(this,"type",r,u),r):this.wrapped._run(r,u)}}}function zn(a){return{kind:"schema",type:"null",reference:zn,expects:"null",async:!1,message:a,_run(s,r){return s.value===null?s.typed=!0:y(this,"type",s,r),s}}}function ya(a,...s){const r={kind:"schema",type:"nullable",reference:ya,expects:`(${a.expects} | null)`,async:!1,wrapped:a,_run(u,d){return u.value===null&&("default"in this&&(u.value=st(this,u,d)),u.value===null)?(u.typed=!0,u):this.wrapped._run(u,d)}};return 0 in s&&(r.default=s[0]),r}function va(a,...s){const r={kind:"schema",type:"nullable",reference:va,expects:`(${a.expects} | null)`,async:!0,wrapped:a,async _run(u,d){return u.value===null&&("default"in this&&(u.value=await st(this,u,d)),u.value===null)?(u.typed=!0,u):this.wrapped._run(u,d)}};return 0 in s&&(r.default=s[0]),r}function ga(a,...s){const r={kind:"schema",type:"nullish",reference:ga,expects:`(${a.expects} | null | undefined)`,async:!1,wrapped:a,_run(u,d){return(u.value===null||u.value===void 0)&&("default"in this&&(u.value=st(this,u,d)),u.value===null||u.value===void 0)?(u.typed=!0,u):this.wrapped._run(u,d)}};return 0 in s&&(r.default=s[0]),r}function ba(a,...s){const r={kind:"schema",type:"nullish",reference:ba,expects:`(${a.expects} | null | undefined)`,async:!0,wrapped:a,async _run(u,d){return(u.value===null||u.value===void 0)&&("default"in this&&(u.value=await st(this,u,d)),u.value===null||u.value===void 0)?(u.typed=!0,u):this.wrapped._run(u,d)}};return 0 in s&&(r.default=s[0]),r}function wa(a){return{kind:"schema",type:"number",reference:wa,expects:"number",async:!1,message:a,_run(s,r){return typeof s.value=="number"&&!isNaN(s.value)?s.typed=!0:y(this,"type",s,r),s}}}function _a(a,s){return{kind:"schema",type:"object",reference:_a,expects:"Object",async:!1,entries:a,message:s,_run(r,u){var _;const d=r.value;if(d&&typeof d=="object"){r.typed=!0,r.value={};for(const T in this.entries){const A=d[T],x=this.entries[T]._run({typed:!1,value:A},u);if(x.issues){const C={type:"object",origin:"value",input:d,key:T,value:A};for(const R of x.issues)R.path?R.path.unshift(C):R.path=[C],(_=r.issues)==null||_.push(R);if(r.issues||(r.issues=x.issues),u.abortEarly){r.typed=!1;break}}x.typed||(r.typed=!1),(x.value!==void 0||T in d)&&(r.value[T]=x.value)}}else y(this,"type",r,u);return r}}}function xa(a,s){return{kind:"schema",type:"object",reference:xa,expects:"Object",async:!0,entries:a,message:s,async _run(r,u){var _;const d=r.value;if(d&&typeof d=="object"){r.typed=!0,r.value={};const T=await Promise.all(Object.entries(this.entries).map(async([A,x])=>{const C=d[A];return[A,C,await x._run({typed:!1,value:C},u)]}));for(const[A,x,C]of T){if(C.issues){const R={type:"object",origin:"value",input:d,key:A,value:x};for(const X of C.issues)X.path?X.path.unshift(R):X.path=[R],(_=r.issues)==null||_.push(X);if(r.issues||(r.issues=C.issues),u.abortEarly){r.typed=!1;break}}C.typed||(r.typed=!1),(C.value!==void 0||A in d)&&(r.value[A]=C.value)}}else y(this,"type",r,u);return r}}}function Sa(a,s,r){return{kind:"schema",type:"object_with_rest",reference:Sa,expects:"Object",async:!1,entries:a,rest:s,message:r,_run(u,d){var T,A;const _=u.value;if(_&&typeof _=="object"){u.typed=!0,u.value={};for(const x in this.entries){const C=_[x],R=this.entries[x]._run({typed:!1,value:C},d);if(R.issues){const X={type:"object",origin:"value",input:_,key:x,value:C};for(const Q of R.issues)Q.path?Q.path.unshift(X):Q.path=[X],(T=u.issues)==null||T.push(Q);if(u.issues||(u.issues=R.issues),d.abortEarly){u.typed=!1;break}}R.typed||(u.typed=!1),(R.value!==void 0||x in _)&&(u.value[x]=R.value)}if(!u.issues||!d.abortEarly){for(const x in _)if(te(_,x)&&!(x in this.entries)){const C=_[x],R=this.rest._run({typed:!1,value:C},d);if(R.issues){const X={type:"object",origin:"value",input:_,key:x,value:C};for(const Q of R.issues)Q.path?Q.path.unshift(X):Q.path=[X],(A=u.issues)==null||A.push(Q);if(u.issues||(u.issues=R.issues),d.abortEarly){u.typed=!1;break}}R.typed||(u.typed=!1),u.value[x]=R.value}}}else y(this,"type",u,d);return u}}}function Ea(a,s,r){return{kind:"schema",type:"object_with_rest",reference:Ea,expects:"Object",async:!0,entries:a,rest:s,message:r,async _run(u,d){var T,A;const _=u.value;if(_&&typeof _=="object"){u.typed=!0,u.value={};const[x,C]=await Promise.all([Promise.all(Object.entries(this.entries).map(async([R,X])=>{const Q=_[R];return[R,Q,await X._run({typed:!1,value:Q},d)]}
8)),Promise.all(Object.entries(_).filter(([R])=>te(_,R)&&!(R in this.entries)).map(async([R,X])=>[R,X,await this.rest._run({typed:!1,value:X},d)]))]);for(const[R,X,Q]of x){if(Q.issues){const ce={type:"object",origin:"value",input:_,key:R,value:X};for(const we of Q.issues)we.path?we.path.unshift(ce):we.path=[ce],(T=u.issues)==null||T.push(we);if(u.issues||(u.issues=Q.issues),d.abortEarly){u.typed=!1;break}}Q.typed||(u.typed=!1),(Q.value!==void 0||R in _)&&(u.value[R]=Q.value)}if(!u.issues||!d.abortEarly)for(const[R,X,Q]of C){if(Q.issues){const ce={type:"object",origin:"value",input:_,key:R,value:X};for(const we of Q.issues)we.path?we.path.unshift(ce):we.path=[ce],(A=u.issues)==null||A.push(we);if(u.issues||(u.issues=Q.issues),d.abortEarly){u.typed=!1;break}}Q.typed||(u.typed=!1),u.value[R]=Q.value}}else y(this,"type",u,d);return u}}}function Un(a,...s){const r={kind:"schema",type:"optional",reference:Un,expects:`(${a.expects} | undefined)`,async:!1,wrapped:a,_run(u,d){return u.value===void 0&&("default"in this&&(u.value=st(this,u,d)),u.value===void 0)?(u.typed=!0,u):this.wrapped._run(u,d)}};return 0 in s&&(r.default=s[0]),r}function Wn(a,...s){const r={kind:"schema",type:"optional",reference:Wn,expects:`(${a.expects} | undefined)`,async:!0,wrapped:a,async _run(u,d){return u.value===void 0&&("default"in this&&(u.value=await st(this,u,d)),u.value===void 0)?(u.typed=!0,u):this.wrapped._run(u,d)}};return 0 in s&&(r.default=s[0]),r}function Hn(a,s){return{kind:"schema",type:"picklist",reference:Hn,expects:fe(a.map(w),"|"),async:!1,options:a,message:s,_run(r,u){return this.options.includes(r.value)?r.typed=!0:y(this,"type",r,u),r}}}function Ta(a){return{kind:"schema",type:"promise",reference:Ta,expects:"Promise",async:!1,message:a,_run(s,r){return s.value instanceof Promise?s.typed=!0:y(this,"type",s,r),s}}}function Aa(a,s,r){return{kind:"schema",type:"record",reference:Aa,expects:"Object",async:!1,key:a,value:s,message:r,_run(u,d){var T,A;const _=u.value;if(_&&typeof _=="object"){u.typed=!0,u.value={};for(const x in _)if(te(_,x)){const C=_[x],R=this.key._run({typed:!1,value:x},d);if(R.issues){const Q={type:"object",origin:"key",input:_,key:x,value:C};for(const ce of R.issues)ce.path=[Q],(T=u.issues)==null||T.push(ce);if(u.issues||(u.issues=R.issues),d.abortEarly){u.typed=!1;break}}const X=this.value._run({typed:!1,value:C},d);if(X.issues){const Q={type:"object",origin:"value",input:_,key:x,value:C};for(const ce of X.issues)ce.path?ce.path.unshift(Q):ce.path=[Q],(A=u.issues)==null||A.push(ce);if(u.issues||(u.issues=X.issues),d.abortEarly){u.typed=!1;break}}(!R.typed||!X.typed)&&(u.typed=!1),R.typed&&(u.value[R.value]=X.value)}}else y(this,"type",u,d);return u}}}function Pa(a,s,r){return{kind:"schema",type:"record",reference:Pa,expects:"Object",async:!0,key:a,value:s,message:r,async _run(u,d){var T,A;const _=u.value;if(_&&typeof _=="object"){u.typed=!0,u.value={};const x=await Promise.all(Object.entries(_).filter(([C])=>te(_,C)).map(([C,R])=>Promise.all([C,R,this.key._run({typed:!1,value:C},d),this.value._run({typed:!1,value:R},d)])));for(const[C,R,X,Q]of x){if(X.issues){const ce={type:"object",origin:"key",input:_,key:C,value:R};for(const we of X.issues)we.path=[ce],(T=u.issues)==null||T.push(we);if(u.issues||(u.issues=X.issues),d.abortEarly){u.typed=!1;break}}if(Q.issues){const ce={type:"object",origin:"value",input:_,key:C,value:R};for(const we of Q.issues)we.path?we.path.unshift(ce):we.path=[ce],(A=u.issues)==null||A.push(we);if(u.issues||(u.issues=Q.issues),d.abortEarly){u.typed=!1;break}}(!X.typed||!Q.typed)&&(u.typed=!1),X.typed&&(u.value[X.value]=Q.value)}}else y(this,"type",u,d);return u}}}function Ra(a,s){return{kind:"schema",type:"set",reference:Ra,expects:"Set",async:!1,value:a,message:s,_run(r,u){var _;const d=r.value;if(d instanceof Set){r.typed=!0,r.value=new Set;for(const T of d){const A=this.value._run({typed:!1,value:T},u);if(A.issues){const x={type:"set",origin:"value",input:d,key:null,value:T};for(const C of A.issues)C.path?C.path.unshift(x):C.path=[x],(_=r.issues)==null||_.push(C);if(r.issues||(r.issues=A.issues),u.abortEarly){r.typed=!1;break}}A.typed||(r.typed=!1),r.value.add(A.value)}}else y(this,"type",r,u);return r}}}function ka(a,s){return{kind:"schema",type:"set",reference:ka,expects:"Set",async:!0,value:a,message:s,async _run(r,u){var _;const d=r.value;if(d instanceof Set){r.typed=!0,r.value=new Set;const T=await Promise.all([...d].map(async A=>[A,await this.value._run({typed:!1,value:A},u)]));
8for(const[A,x]of T){if(x.issues){const C={type:"set",origin:"value",input:d,key:null,value:A};for(const R of x.issues)R.path?R.path.unshift(C):R.path=[C],(_=r.issues)==null||_.push(R);if(r.issues||(r.issues=x.issues),u.abortEarly){r.typed=!1;break}}x.typed||(r.typed=!1),r.value.add(x.value)}}else y(this,"type",r,u);return r}}}function Ca(a,s){return{kind:"schema",type:"strict_object",reference:Ca,expects:"Object",async:!1,entries:a,message:s,_run(r,u){var _;const d=r.value;if(d&&typeof d=="object"){r.typed=!0,r.value={};for(const T in this.entries){const A=d[T],x=this.entries[T]._run({typed:!1,value:A},u);if(x.issues){const C={type:"object",origin:"value",input:d,key:T,value:A};for(const R of x.issues)R.path?R.path.unshift(C):R.path=[C],(_=r.issues)==null||_.push(R);if(r.issues||(r.issues=x.issues),u.abortEarly){r.typed=!1;break}}x.typed||(r.typed=!1),(x.value!==void 0||T in d)&&(r.value[T]=x.value)}if(!r.issues||!u.abortEarly){for(const T in d)if(!(T in this.entries)){const A=d[T];y(this,"type",r,u,{input:A,expected:"never",path:[{type:"object",origin:"value",input:d,key:T,value:A}]});break}}}else y(this,"type",r,u);return r}}}function Da(a,s){return{kind:"schema",type:"strict_object",reference:Da,expects:"Object",async:!0,entries:a,message:s,async _run(r,u){var _;const d=r.value;if(d&&typeof d=="object"){r.typed=!0,r.value={};const T=await Promise.all(Object.entries(this.entries).map(async([A,x])=>{const C=d[A];return[A,C,await x._run({typed:!1,value:C},u)]}));for(const[A,x,C]of T){if(C.issues){const R={type:"object",origin:"value",input:d,key:A,value:x};for(const X of C.issues)X.path?X.path.unshift(R):X.path=[R],(_=r.issues)==null||_.push(X);if(r.issues||(r.issues=C.issues),u.abortEarly){r.typed=!1;break}}C.typed||(r.typed=!1),(C.value!==void 0||A in d)&&(r.value[A]=C.value)}if(!r.issues||!u.abortEarly){for(const A in d)if(!(A in this.entries)){const x=d[A];y(this,"type",r,u,{input:x,expected:"never",path:[{type:"object",origin:"value",input:d,key:A,value:x}]});break}}}else y(this,"type",r,u);return r}}}function Oa(a,s){return{kind:"schema",type:"strict_tuple",reference:Oa,expects:"Array",async:!1,items:a,message:s,_run(r,u){var _;const d=r.value;if(Array.isArray(d)){r.typed=!0,r.value=[];for(let T=0;T<this.items.length;T++){const A=d[T],x=this.items[T]._run({typed:!1,value:A},u);if(x.issues){const C={type:"array",origin:"value",input:d,key:T,value:A};for(const R of x.issues)R.path?R.path.unshift(C):R.path=[C],(_=r.issues)==null||_.push(R);if(r.issues||(r.issues=x.issues),u.abortEarly){r.typed=!1;break}}x.typed||(r.typed=!1),r.value.push(x.value)}if(!(r.issues&&u.abortEarly)&&this.items.length<d.length){const T=d[a.length];y(this,"type",r,u,{input:T,expected:"never",path:[{type:"array",origin:"value",input:d,key:this.items.length,value:T}]})}}else y(this,"type",r,u);return r}}}function ja(a,s){return{kind:"schema",type:"strict_tuple",reference:ja,expects:"Array",async:!0,items:a,message:s,async _run(r,u){var _;const d=r.value;if(Array.isArray(d)){r.typed=!0,r.value=[];const T=await Promise.all(this.items.map(async(A,x)=>{const C=d[x];return[x,C,await A._run({typed:!1,value:C},u)]}));for(const[A,x,C]of T){if(C.issues){const R={type:"array",origin:"value",input:d,key:A,value:x};for(const X of C.issues)X.path?X.path.unshift(R):X.path=[R],(_=r.issues)==null||_.push(X);if(r.issues||(r.issues=C.issues),u.abortEarly){r.typed=!1;break}}C.typed||(r.typed=!1),r.value.push(C.value)}if(!(r.issues&&u.abortEarly)&&this.items.length<d.length){const A=d[a.length];y(this,"type",r,u,{input:A,expected:"never",path:[{type:"array",origin:"value",input:d,key:this.items.length,value:A}]})}}else y(this,"type",r,u);return r}}}function Ma(a){return{kind:"schema",type:"string",reference:Ma,expects:"string",async:!1,message:a,_run(s,r){return typeof s.value=="string"?s.typed=!0:y(this,"type",s,r),s}}}function Ia(a){return{kind:"schema",type:"symbol",reference:Ia,expects:"symbol",async:!1,message:a,_run(s,r){return typeof s.value=="symbol"?s.typed=!0:y(this,"type",s,r),s}}}function Va(a,s){return{kind:"schema",type:"tuple",reference:Va,expects:"Array",async:!1,items:a,message:s,_run(r,u){var _;const d=r.value;if(Array.isArray(d)){r.typed=!0,r.value=[];for(let T=0;T<this.items.length;T++){const A=d[T],x=this.items[T]._run({typed:!1,value:A},u);if(x.issues){const C={type:"array",origin:"value",input:d,key:T,value:A};for(const R of x.issues)R.path?R.path.unshift(C):R.path=[C],(_=r.issues)==null||_.push(R);if(r.issues||(r.issues=x.issues),u.abortEarly){r.typed=!1;break}}x.typed||(r.typed=!1),r.value.push(x.value)}}else y(this,"type",r,u);return r}}}function La(a,s){return{kind:"schema",type:"tuple",reference:La,expects:"Array",async:!0,items:a,message:s,async _run(r,u){var _;const d=r.value;if(Array.isArray(d)){r.typed=!0,r.value=[];const T=await Promise.all(this.items.map(async(A,x)=>{const C=d[x];return[x,C,await A._run({typed:!1,value:C},u)]}));for(const[A,x,C]of T){if(C.issues){const R={type:"array",origin:"value",input:d,key:A,value:x};for(const X of C.issues)X.path?X.path.unshift(R):X.path=[R],(_=r.issues)==null||_.push(X);if(r.issues||(r.issues=C.issues),u.abortEarly){r.typed=!1;break}}C.typed||(r.typed=!1),r.value.push(C.value)}}else y(this,"type",r,u);return r}}}function Na(a,s,r){return{kind:"schema",type:"tuple_with_rest",reference:Na,expects:"Array",async:!1,items:a,rest:s,message:r,_run(u,d){var T,A;const _=u.value;if(Array.isArray(_)){u.typed=!0,u.value=[];for(let x=0;x<this.items.length;x++){const C=_[x],R=this.items[x]._run({typed:!1,value:C},d);if(R.issues){const X={type:"array",origin:"value",input:_,key:x,value:C};for(const Q of R.issues)Q.path?Q.path.unshift(X):Q.path=[X],(T=u.issues)==null||T.push(Q);if(u.issues||(u.issues=R.issues),d.abortEarly){u.typed=!1;break}}R.typed||(u.typed=!1),u.value.push(R.value)}if(!u.issues||!d.abortEarly)for(let x=this.items.length;x<_.length;x++){const C=_[x],R=this.rest._run({typed:!1,value:C},d);if(R.issues){const X={type:"array",origin:"value",input:_,key:x,value:C};for(const Q of R.issues)Q.path?Q.path.unshift(X):Q.path=[X],(A=u.issues)==null||A.push(Q);if(u.issues||(u.issues=R.issues),d.abortEarly){u.typed=!1;break}}R.typed||(u.typed=!1),u.value.push(R.value)}}else y(this,"type",u,d);return u}}}function $a(a,s,r){return{kind:"schema",type:"tuple_with_rest",reference:$a,expects:"Array",async:!0,items:a,rest:s,message:r,async _run(u,d){var T,A;const _=u.value;if(Array.isArray(_)){u.typed=!0,u.value=[];const[x,C]=await Promise.all([Promise.all(this.items.map(async(R,X)=>{const Q=_[X];
8return[X,Q,await R._run({typed:!1,value:Q},d)]})),Promise.all(_.slice(this.items.length).map(async(R,X)=>[X+this.items.length,R,await this.rest._run({typed:!1,value:R},d)]))]);for(const[R,X,Q]of x){if(Q.issues){const ce={type:"array",origin:"value",input:_,key:R,value:X};for(const we of Q.issues)we.path?we.path.unshift(ce):we.path=[ce],(T=u.issues)==null||T.push(we);if(u.issues||(u.issues=Q.issues),d.abortEarly){u.typed=!1;break}}Q.typed||(u.typed=!1),u.value.push(Q.value)}if(!u.issues||!d.abortEarly)for(const[R,X,Q]of C){if(Q.issues){const ce={type:"array",origin:"value",input:_,key:R,value:X};for(const we of Q.issues)we.path?we.path.unshift(ce):we.path=[ce],(A=u.issues)==null||A.push(we);if(u.issues||(u.issues=Q.issues),d.abortEarly){u.typed=!1;break}}Q.typed||(u.typed=!1),u.value.push(Q.value)}}else y(this,"type",u,d);return u}}}function Xn(a){return{kind:"schema",type:"undefined",reference:Xn,expects:"undefined",async:!1,message:a,_run(s,r){return s.value===void 0?s.typed=!0:y(this,"type",s,r),s}}}function qa(a,...s){const r={kind:"schema",type:"undefinedable",reference:qa,expects:`(${a.expects} | undefined)`,async:!1,wrapped:a,_run(u,d){return u.value===void 0&&("default"in this&&(u.value=st(this,u,d)),u.value===void 0)?(u.typed=!0,u):this.wrapped._run(u,d)}};return 0 in s&&(r.default=s[0]),r}function Ba(a,...s){const r={kind:"schema",type:"undefinedable",reference:Ba,expects:`(${a.expects} | undefined)`,async:!0,wrapped:a,async _run(u,d){return u.value===void 0&&("default"in this&&(u.value=await st(this,u,d)),u.value===void 0)?(u.typed=!0,u):this.wrapped._run(u,d)}};return 0 in s&&(r.default=s[0]),r}function fn(a){let s;if(a)for(const r of a)s?s.push(...r.issues):s=r.issues;return s}function Fa(a,s){return{kind:"schema",type:"union",reference:Fa,expects:fe(a.map(r=>r.expects),"|"),async:!1,options:a,message:s,_run(r,u){let d,_,T;for(const A of this.options){const x=A._run({typed:!1,value:r.value},u);if(x.typed)if(x.issues)_?_.push(x):_=[x];else{d=x;break}else T?T.push(x):T=[x]}if(d)return d;if(_){if(_.length===1)return _[0];y(this,"type",r,u,{issues:fn(_)}),r.typed=!0}else{if((T==null?void 0:T.length)===1)return T[0];y(this,"type",r,u,{issues:fn(T)})}return r}}}function Ga(a,s){return{kind:"schema",type:"union",reference:Ga,expects:fe(a.map(r=>r.expects),"|"),async:!0,options:a,message:s,async _run(r,u){let d,_,T;for(const A of this.options){const x=await A._run({typed:!1,value:r.value},u);if(x.typed)if(x.issues)_?_.push(x):_=[x];else{d=x;break}else T?T.push(x):T=[x]}if(d)return d;if(_){if(_.length===1)return _[0];y(this,"type",r,u,{issues:fn(_)}),r.typed=!0}else{if((T==null?void 0:T.length)===1)return T[0];y(this,"type",r,u,{issues:fn(T)})}return r}}}function za(){return{kind:"schema",type:"unknown",reference:za,expects:"unknown",async:!1,_run(a){return a.typed=!0,a}}}function Ua(a,s,r){return{kind:"schema",type:"variant",reference:Ua,expects:"Object",async:!1,key:a,options:s,message:r,_run(u,d){const _=u.value;if(_&&typeof _=="object"){let T,A=0,x=this.key,C=[];const R=(X,Q)=>{for(const ce of X.options){if(ce.type==="variant")R(ce,new Set(Q).add(ce.key));else{let we=!0,pt=0;for(const Me of Q){if(ce.entries[Me]._run({typed:!1,value:_[Me]},d).issues){we=!1,x!==Me&&(A<pt||A===pt&&Me in _&&!(x in _))&&(A=pt,x=Me,C=[]),x===Me&&C.push(ce.entries[Me].expects);break}pt++}if(we){const Me=ce._run({typed:!1,value:_},d);(!T||!T.typed&&Me.typed)&&(T=Me)}}if(T&&!T.issues)break}};if(R(this,new Set([this.key])),T)return T;y(this,"type",u,d,{input:_[x],expected:fe(C,"|"),path:[{type:"object",origin:"value",input:_,key:x,value:_[x]}]})}else y(this,"type",u,d);return u}}}function Wa(a,s,r){return{kind:"schema",type:"variant",reference:Wa,expects:"Object",async:!0,key:a,options:s,message:r,async _run(u,d){const _=u.value;if(_&&typeof _=="object"){let T,A=0,x=this.key,C=[];const R=async(X,Q)=>{for(const ce of X.options){if(ce.type==="variant")await R(ce,new Set(Q).add(ce.key));else{let we=!0,pt=0;for(const Me of Q){if((await ce.entries[Me]._run({typed:!1,value:_[Me]},d)).issues){we=!1,x!==Me&&(A<pt||A===pt&&Me in _&&!(x in _))&&(A=pt,x=Me,C=[]),x===Me&&C.push(ce.entries[Me].expects);break}pt++}if(we){const Me=await ce._run({typed:!1,value:_},d);(!T||!T.typed&&Me.typed)&&(T=Me)}}if(T&&!T.issues)break}};if(await R(this,new Set([this.key])),T)return T;y(this,"type",u,d,{input:_[x],expected:fe(C,"|"),path:[{type:"object",origin:"value",input:_,key:x,value:_[x]}]})}else y(this,"type",u,d);return u}}}function Kn(a){return{kind:"schema",type:"void",reference:Kn,expects:"void",async:!1,message:a,_run(s,r){return s.value===void 0?s.typed=!0:y(this,"type",s,r),s}}}function Qh(a,s){return Hn(Object.keys(a.entries),s)}function ep(a,s){const r={...a.entries};for(const u of s)delete r[u];return{...a,entries:r}}function Ha(a,s,r){const u=a._run({typed:!1,value:s},ae(r));if(u.issues)throw new We(u.issues);return u.value}async function Xa(a,s,r){const u=await a._run({typed:!1,value:s},ae(r));if(u.issues)throw new We(u.issues);return u.value}function tp(a,s){const r=u=>
8Ha(a,u,s);return r.schema=a,r.config=s,r}function np(a,s){const r=u=>Xa(a,u,s);return r.schema=a,r.config=s,r}function rp(a,s){const r={};for(const u in a.entries)r[u]=!s||s.includes(u)?Un(a.entries[u]):a.entries[u];return{...a,entries:r}}function ip(a,s){const r={};for(const u in a.entries)r[u]=!s||s.includes(u)?Wn(a.entries[u]):a.entries[u];return{...a,entries:r}}function sp(a,s){const r={};for(const u of s)r[u]=a.entries[u];return{...a,entries:r}}function op(...a){return{...a[0],pipe:a,_run(s,r){for(const u of a)if(u.kind!=="metadata"){if(s.issues&&(u.kind==="schema"||u.kind==="transformation")){s.typed=!1;break}(!s.issues||!r.abortEarly&&!r.abortPipeEarly)&&(s=u._run(s,r))}return s}}}function ap(...a){return{...a[0],pipe:a,async:!0,async _run(s,r){for(const u of a)if(u.kind!=="metadata"){if(s.issues&&(u.kind==="schema"||u.kind==="transformation")){s.typed=!1;break}(!s.issues||!r.abortEarly&&!r.abortPipeEarly)&&(s=await u._run(s,r))}return s}}}function up(a,s,r){const u=Array.isArray(s)?s:void 0,d=Array.isArray(s)?r:s,_={};for(const T in a.entries)_[T]=!u||u.includes(T)?Fn(a.entries[T],d):a.entries[T];return{...a,entries:_}}function lp(a,s,r){const u=Array.isArray(s)?s:void 0,d=Array.isArray(s)?r:s,_={};for(const T in a.entries)_[T]=!u||u.includes(T)?Gn(a.entries[T],d):a.entries[T];return{...a,entries:_}}function Ka(a,s,r){const u=a._run({typed:!1,value:s},ae(r));return{typed:u.typed,success:!u.issues,output:u.value,issues:u.issues}}async function Ya(a,s,r){const u=await a._run({typed:!1,value:s},ae(r));return{typed:u.typed,success:!u.issues,output:u.value,issues:u.issues}}function cp(a,s){const r=u=>Ka(a,u,s);return r.schema=a,r.config=s,r}function fp(a,s){const r=u=>Ya(a,u,s);return r.schema=a,r.config=s,r}function hp(a){return a.wrapped}return cr}var fr,cl;function on(){if(cl)return fr;cl=1;var e=Array.isArray;return fr=e,fr}var hr,fl;function ng(){if(fl)return hr;fl=1;var e=typeof hn=="object"&&hn&&hn.Object===Object&&hn;return hr=e,hr}var pr,hl;function Ts(){if(hl)return pr;hl=1;var e=ng(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return pr=n,pr}var dr,pl;function kn(){if(pl)return dr;pl=1;var e=Ts(),t=e.Symbol;return dr=t,dr}var mr,dl;function rg(){if(dl)return mr;dl=1;var e=kn(),t=Object.prototype,n=t.hasOwnProperty,i=t.toString,o=e?e.toStringTag:void 0;function l(c){var f=n.call(c,o),h=c[o];try{c[o]=void 0;var p=!0}catch{}var m=i.call(c);return p&&(f?c[o]=h:delete c[o]),m}return mr=l,mr}var yr,ml;function ig(){if(ml)return yr;ml=1;var e=Object.prototype,t=e.toString;function n(i){return t.call(i)}return yr=n,yr}var vr,yl;function As(){if(yl)return vr;yl=1;var e=kn(),t=rg(),n=ig(),i="[object Null]",o="[object Undefined]",l=e?e.toStringTag:void 0;function c(f){return f==null?f===void 0?o:i:l&&l in Object(f)?t(f):n(f)}return vr=c,vr}var gr,vl;function Ps(){if(vl)return gr;vl=1;function e(t){return t!=null&&typeof t=="object"}return gr=e,gr}var br,gl;function Rs(){if(gl)return br;gl=1;var e=As(),t=Ps(),n="[object Symbol]";function i(o){return typeof o=="symbol"||t(o)&&e(o)==n}return br=i,br}var wr,bl;function sg(){if(bl)return wr;bl=1;var e=on(),t=Rs(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;function o(l,c){if(e(l))return!1;var f=typeof l;return f=="number"||f=="symbol"||f=="boolean"||l==null||t(l)?!0:i.test(l)||!n.test(l)||c!=null&&l in Object(c)}return wr=o,wr}var _r,wl;function ks(){if(wl)return _r;wl=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return _r=e,_r}var xr,_l;function og(){if(_l)return xr;_l=1;var e=As(),t=ks(),n="[object AsyncFunction]",i="[object Function]",o="[object GeneratorFunction]",l="[object Proxy]";function c(f){if(!t(f))return!1;var h=e(f);return h==i||h==o||h==n||h==l}return xr=c,xr}var Sr,xl;function ag(){if(xl)return Sr;xl=1;var e=Ts(),t=e["__core-js_shared__"];return Sr=t,Sr}var Er,Sl;function ug(){if(Sl)return Er;Sl=1;var e=ag(),t=function(){var i=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}();function n(i){return!!t&&t in i}return Er=n,Er}var Tr,El;function lg(){if(El)return Tr;El=1;var e=Function.prototype,t=e.toString;function n(i){if(i!=null){try{return t.call(i)}catch{}try{return i+""}catch{}}return""}return Tr=n,Tr}var Ar,Tl;function cg(){if(Tl)return Ar;Tl=1;var e=og(),t=ug(),n=ks(),i=lg(),o=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]$/,c=Function.prototype,f=Object.prototype,h=c.toString,p=f.hasOwnProperty,m=RegExp("^"+h.call(p).replace(o,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function v(b){if(!n(b)||t(b))return!1;var P=e(b)?m:l;return P.test(i(b))}return Ar=v,Ar}var Pr,Al;function fg(){if(Al)return Pr;Al=1;function e(t,n){return t==null?void 0:t[n]}return Pr=e,Pr}var Rr,Pl;function Cs(){if(Pl)return Rr;Pl=1;var e=cg(),t=fg();
vendor: 6,259 bytes, line 8
8function n(i,o){var l=t(i,o);return e(l)?l:void 0}return Rr=n,Rr}var kr,Rl;function Cn(){if(Rl)return kr;Rl=1;var e=Cs(),t=e(Object,"create");return kr=t,kr}var Cr,kl;function hg(){if(kl)return Cr;kl=1;var e=Cn();function t(){this.__data__=e?e(null):{},this.size=0}return Cr=t,Cr}var Dr,Cl;function pg(){if(Cl)return Dr;Cl=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return Dr=e,Dr}var Or,Dl;function dg(){if(Dl)return Or;Dl=1;var e=Cn(),t="__lodash_hash_undefined__",n=Object.prototype,i=n.hasOwnProperty;function o(l){var c=this.__data__;if(e){var f=c[l];return f===t?void 0:f}return i.call(c,l)?c[l]:void 0}return Or=o,Or}var jr,Ol;function mg(){if(Ol)return jr;Ol=1;var e=Cn(),t=Object.prototype,n=t.hasOwnProperty;function i(o){var l=this.__data__;return e?l[o]!==void 0:n.call(l,o)}return jr=i,jr}var Mr,jl;function yg(){if(jl)return Mr;jl=1;var e=Cn(),t="__lodash_hash_undefined__";function n(i,o){var l=this.__data__;return this.size+=this.has(i)?0:1,l[i]=e&&o===void 0?t:o,this}return Mr=n,Mr}var Ir,Ml;function vg(){if(Ml)return Ir;Ml=1;var e=hg(),t=pg(),n=dg(),i=mg(),o=yg();function l(c){var f=-1,h=c==null?0:c.length;for(this.clear();++f<h;){var p=c[f];this.set(p[0],p[1])}}return l.prototype.clear=e,l.prototype.delete=t,l.prototype.get=n,l.prototype.has=i,l.prototype.set=o,Ir=l,Ir}var Vr,Il;function gg(){if(Il)return Vr;Il=1;function e(){this.__data__=[],this.size=0}return Vr=e,Vr}var Lr,Vl;function $h(){if(Vl)return Lr;Vl=1;function e(t,n){return t===n||t!==t&&n!==n}return Lr=e,Lr}var Nr,Ll;function Dn(){if(Ll)return Nr;Ll=1;var e=$h();function t(n,i){for(var o=n.length;o--;)if(e(n[o][0],i))return o;return-1}return Nr=t,Nr}var $r,Nl;function bg(){if(Nl)return $r;Nl=1;var e=Dn(),t=Array.prototype,n=t.splice;function i(o){var l=this.__data__,c=e(l,o);if(c<0)return!1;var f=l.length-1;return c==f?l.pop():n.call(l,c,1),--this.size,!0}return $r=i,$r}var qr,$l;function wg(){if($l)return qr;$l=1;var e=Dn();function t(n){var i=this.__data__,o=e(i,n);return o<0?void 0:i[o][1]}return qr=t,qr}var Br,ql;function _g(){if(ql)return Br;ql=1;var e=Dn();function t(n){return e(this.__data__,n)>-1}return Br=t,Br}var Fr,Bl;function xg(){if(Bl)return Fr;Bl=1;var e=Dn();function t(n,i){var o=this.__data__,l=e(o,n);return l<0?(++this.size,o.push([n,i])):o[l][1]=i,this}return Fr=t,Fr}var Gr,Fl;function Sg(){if(Fl)return Gr;Fl=1;var e=gg(),t=bg(),n=wg(),i=_g(),o=xg();function l(c){var f=-1,h=c==null?0:c.length;for(this.clear();++f<h;){var p=c[f];this.set(p[0],p[1])}}return l.prototype.clear=e,l.prototype.delete=t,l.prototype.get=n,l.prototype.has=i,l.prototype.set=o,Gr=l,Gr}var zr,Gl;function Eg(){if(Gl)return zr;Gl=1;var e=Cs(),t=Ts(),n=e(t,"Map");return zr=n,zr}var Ur,zl;function Tg(){if(zl)return Ur;zl=1;var e=vg(),t=Sg(),n=Eg();function i(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return Ur=i,Ur}var Wr,Ul;function Ag(){if(Ul)return Wr;Ul=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return Wr=e,Wr}var Hr,Wl;function On(){if(Wl)return Hr;Wl=1;var e=Ag();function t(n,i){var o=n.__data__;return e(i)?o[typeof i=="string"?"string":"hash"]:o.map}return Hr=t,Hr}var Xr,Hl;function Pg(){if(Hl)return Xr;Hl=1;var e=On();function t(n){var i=e(this,n).delete(n);return this.size-=i?1:0,i}return Xr=t,Xr}var Kr,Xl;function Rg(){if(Xl)return Kr;Xl=1;var e=On();function t(n){return e(this,n).get(n)}return Kr=t,Kr}var Yr,Kl;function kg(){if(Kl)return Yr;Kl=1;var e=On();function t(n){return e(this,n).has(n)}return Yr=t,Yr}var Zr,Yl;function Cg(){if(Yl)return Zr;Yl=1;var e=On();function t(n,i){var o=e(this,n),l=o.size;return o.set(n,i),this.size+=o.size==l?0:1,this}return Zr=t,Zr}var Jr,Zl;function Dg(){if(Zl)return Jr;Zl=1;var e=Tg(),t=Pg(),n=Rg(),i=kg(),o=Cg();function l(c){var f=-1,h=c==null?0:c.length;for(this.clear();++f<h;){var p=c[f];this.set(p[0],p[1])}}return l.prototype.clear=e,l.prototype.delete=t,l.prototype.get=n,l.prototype.has=i,l.prototype.set=o,Jr=l,Jr}var Qr,Jl;function Og(){if(Jl)return Qr;Jl=1;var e=Dg(),t="Expected a function";function n(i,o){if(typeof i!="function"||o!=null&&typeof o!="function")throw new TypeError(t);var l=function(){var c=arguments,f=o?o.apply(this,c):c[0],h=l.cache;if(h.has(f))return h.get(f);var p=i.apply(this,c);return l.cache=h.set(f,p)||h,p};return l.cache=new(n.Cache||e),l}return n.Cache=e,Qr=n,Qr}var ei,Ql;function jg(){if(Ql)return ei;Ql=1;var e=Og(),t=500;function n(i){var o=e(i,function(c){return l.size===t&&l.clear(),c}),l=o.cache;return o}return ei=n,ei}var ti,ec;function Mg(){if(ec)return ti;ec=1;var e=jg(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,i=e(function(o){var l=[];return o.charCodeAt(0)===46&&l.push(""),o.replace(t,function(c,f,h,p){l.push(h?p.replace(n,"$1"):f||c)}),l});return ti=i,ti}var ni,tc;function Ig(){if(tc)return ni;tc=1;function e(t,n){for(var i=-1,o=t==null?0:t.length,l=Array(o);++i<o;)l[i]=n(t[i],i,t);return l}return ni=e,ni}var ri,nc;function Vg(){if(nc)return ri;nc=1;var e=kn(),t=Ig(),n=on(),i=Rs(),o=e?e.prototype:void 0,l=o?o.toString:void 0;function c(f){if(typeof f=="string")return f;if(n(f))return t(f,c)+"";if(i(f))return l?l.call(f):"";var h=f+"";return h=="0"&&1/f==-1/0?"-0":h}return ri=c,ri}var ii,rc;function Lg(){if(rc)return ii;rc=1;var e=Vg();function t(n){return n==null?"":e(n)}return ii=t,ii}var si,ic;function jn(){if(ic)return si;ic=1;var e=on(),t=sg(),n=Mg(),i=Lg();function o(l,c){return e(l)?l:t(l,c)?[l]:n(i(l))}return si=o,si}var oi,sc;function Ds(){if(sc)return oi;sc=1;var e=Rs();function t(n){if(typeof n=="string"||e(n))return n;var i=n+"";return i=="0"&&1/n==-1/0?"-0":i}return oi=t,oi}var ai,oc;function Ng(){if(oc)return ai;oc=1;var e=jn(),t=Ds();function n(i,o){o=e(o,i);for(var l=0,c=o.length;i!=null&&l<c;)i=i[t(o[l++])];return l&&l==c?i:void 0}return ai=n,ai}var ui,ac;function qh(){if(ac)return ui;ac=1;var e=Cs(),t=function(){try{var n=e(Object,"defineProperty");return n({},"",{}),n}catch{}}();return ui=t,ui}var li,uc;function $g(){if(uc)return li;uc=1;var e=qh();function t(n,i,o){i=="__proto__"&&e?e(n,i,{configurable:!0,enumerable:!0,value:o,writable:!0}):n[i]=o}return li=t,li}var ci,lc;
8function qg(){if(lc)return ci;lc=1;var e=$g(),t=$h(),n=Object.prototype,i=n.hasOwnProperty;function o(l,c,f){var h=l[c];(!(i.call(l,c)&&t(h,f))||f===void 0&&!(c in l))&&e(l,c,f)}return ci=o,ci}var fi,cc;function Bh(){if(cc)return fi;cc=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(i,o){var l=typeof i;return o=o??e,!!o&&(l=="number"||l!="symbol"&&t.test(i))&&i>-1&&i%1==0&&i<o}return fi=n,fi}var hi,fc;function Bg(){if(fc)return hi;fc=1;var e=qg(),t=jn(),n=Bh(),i=ks(),o=Ds();function l(c,f,h,p){if(!i(c))return c;f=t(f,c);for(var m=-1,v=f.length,b=v-1,P=c;P!=null&&++m<v;){var j=o(f[m]),M=h;if(j==="__proto__"||j==="constructor"||j==="prototype")return c;if(m!=b){var k=P[j];M=p?p(k,j,P):void 0,M===void 0&&(M=i(k)?k:n(f[m+1])?[]:{})}e(P,j,M),P=P[j]}return c}return hi=l,hi}var pi,hc;function Fg(){if(hc)return pi;hc=1;var e=Ng(),t=Bg(),n=jn();function i(o,l,c){for(var f=-1,h=l.length,p={};++f<h;){var m=l[f],v=e(o,m);c(v,m)&&t(p,n(m,o),v)}return p}return pi=i,pi}var di,pc;function Gg(){if(pc)return di;pc=1;function e(t,n){return t!=null&&n in Object(t)}return di=e,di}var mi,dc;function zg(){if(dc)return mi;dc=1;var e=As(),t=Ps(),n="[object Arguments]";function i(o){return t(o)&&e(o)==n}return mi=i,mi}var yi,mc;function Fh(){if(mc)return yi;mc=1;var e=zg(),t=Ps(),n=Object.prototype,i=n.hasOwnProperty,o=n.propertyIsEnumerable,l=e(function(){return arguments}())?e:function(c){return t(c)&&i.call(c,"callee")&&!o.call(c,"callee")};return yi=l,yi}var vi,yc;function Ug(){if(yc)return vi;yc=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return vi=t,vi}var gi,vc;function Wg(){if(vc)return gi;vc=1;var e=jn(),t=Fh(),n=on(),i=Bh(),o=Ug(),l=Ds();function c(f,h,p){h=e(h,f);for(var m=-1,v=h.length,b=!1;++m<v;){var P=l(h[m]);if(!(b=f!=null&&p(f,P)))break;f=f[P]}return b||++m!=v?b:(v=f==null?0:f.length,!!v&&o(v)&&i(P,v)&&(n(f)||t(f)))}return gi=c,gi}var bi,gc;function Hg(){if(gc)return bi;gc=1;var e=Gg(),t=Wg();function n(i,o){return i!=null&&t(i,o,e)}return bi=n,bi}var wi,bc;function Xg(){if(bc)return wi;bc=1;var e=Fg(),t=Hg();function n(i,o){return e(i,o,function(l,c){return t(i,c)})}return wi=n,wi}var _i,wc;function Kg(){if(wc)return _i;wc=1;function e(t,n){for(var i=-1,o=n.length,l=t.length;++i<o;)t[l+i]=n[i];return t}return _i=e,_i}var xi,_c;function Yg(){if(_c)return xi;_c=1;var e=kn(),t=Fh(),n=on(),i=e?e.isConcatSpreadable:void 0;function o(l){return n(l)||t(l)||!!(i&&l&&l[i])}return xi=o,xi}var Si,xc;function Zg(){if(xc)return Si;xc=1;var e=Kg(),t=Yg();function n(i,o,l,c,f){var h=-1,p=i.length;for(l||(l=t),f||(f=[]);++h<p;){var m=i[h];o>0&&l(m)?o>1?n(m,o-1,l,c,f):e(f,m):c||(f[f.length]=m)}return f}return Si=n,Si}var Ei,Sc;function Jg(){if(Sc)return Ei;Sc=1;var e=Zg();function t(n){var i=n==null?0:n.length;return i?e(n,1):[]}return Ei=t,Ei}var Ti,Ec;function Qg(){if(Ec)return Ti;Ec=1;function e(t,n,i){switch(i.length){case 0:return t.call(n);case 1:return t.call(n,i[0]);case 2:return t.call(n,i[0],i[1]);case 3:return t.call(n,i[0],i[1],i[2])}return t.apply(n,i)}return Ti=e,Ti}var Ai,Tc;function e0(){if(Tc)return Ai;Tc=1;var e=Qg(),t=Math.max;function n(i,o,l){return o=t(o===void 0?i.length-1:o,0),function(){for(var c=arguments,f=-1,h=t(c.length-o,0
8),p=Array(h);++f<h;)p[f]=c[o+f];f=-1;for(var m=Array(o+1);++f<o;)m[f]=c[f];return m[o]=l(p),e(i,this,m)}}return Ai=n,Ai}var Pi,Ac;function t0(){if(Ac)return Pi;Ac=1;function e(t){return function(){return t}}return Pi=e,Pi}var Ri,Pc;function n0(){if(Pc)return Ri;Pc=1;function e(t){return t}return Ri=e,Ri}var ki,Rc;function r0(){if(Rc)return ki;Rc=1;var e=t0(),t=qh(),n=n0(),i=t?function(o,l){return t(o,"toString",{configurable:!0,enumerable:!1,value:e(l),writable:!0})}:n;return ki=i,ki}var Ci,kc;function i0(){if(kc)return Ci;kc=1;var e=800,t=16,n=Date.now;function i(o){var l=0,c=0;return function(){var f=n(),h=t-(f-c);if(c=f,h>0){if(++l>=e)return arguments[0]}else l=0;return o.apply(void 0,arguments)}}return Ci=i,Ci}var Di,Cc;function s0(){if(Cc)return Di;Cc=1;var e=r0(),t=i0(),n=t(e);return Di=n,Di}var Oi,Dc;function o0(){if(Dc)return Oi;Dc=1;var e=Jg(),t=e0(),n=s0();function i(o){return n(t(o,void 0,e),o+"")}return Oi=i,Oi}var ji,Oc;function a0(){if(Oc)return ji;Oc=1;var e=Xg(),t=o0(),n=t(function(i,o){return i==null?{}:e(i,o)});return ji=n,ji}/**
9 * @react-router/dev v7.4.1
10 *
11 * Copyright (c) Remix Software Inc.
12 *
13 * This source code is licensed under the MIT license found in the
14 * LICENSE.md file in the root directory of this source tree.
15 *
16 * @license MIT
17 */var Mi,jc;function u0(){if(jc)return Mi;jc=1;var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,o=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,c=($,H)=>{for(var K in H)t($,K,{get:H[K],enumerable:!0})},f=($,H,K,J)=>{if(H&&typeof H=="object"||typeof H=="function")for(let de of i(H))!l.call($,de)&&de!==K&&t($,de,{get:()=>H[de],enumerable:!(J=n(H,de))||J.enumerable});return $},h=($,H,K)=>(K=$!=null?e(o($)):{},f(!$||!$.__esModule?t(K,"default",{value:$,enumerable:!0}):K,$)),p=$=>f(t({},"__esModule",{value:!0}),$),m={};c(m,{getAppDirectory:()=>M,index:()=>F,layout:()=>ue,prefix:()=>D,relative:()=>z,route:()=>B}),Mi=p(m);var v=h(eg()),b=h(tg()),P=h(a0());function j($,H){if($===!1||$===null||typeof $>"u")throw console.error("The following error is a bug in React Router; please open an issue! https://github.com/remix-run/react-router/issues/new/choose"),new Error(H)}function M(){return j(globalThis.__reactRouterAppDirectory),globalThis.__reactRouterAppDirectory}var k=b.pipe(b.custom($=>!(typeof $=="object"&&$!==null&&"then"in $&&"catch"in $),"Invalid type: Expected object but received a promise. Did you forget to await?"),b.object({id:b.optional(b.string()),path:b.optional(b.string()),index:b.optional(b.boolean()),caseSensitive:b.optional(b.boolean()),file:b.string(),children:b.optional(b.array(b.lazy(()=>k)))}));b.array(k);var O=["id","index","caseSensitive"];function B($,H,K,J){let de={};return Array.isArray(K)||!K?J=K:de=K,{file:H,children:J,path:$??void 0,...(0,P.default)(de,O)}}var q=["id"];function F($,H){return{file:$,index:!0,...(0,P.default)(H,q)}}var oe=["id"];function ue($,H,K){let J={};return Array.isArray(H)||!H?K=H:J=H,{file:$,children:K,...(0,P.default)(J,oe)}}function D($,H){return H.map(K=>K.index||typeof K.path=="string"?{...K,path:K.path?L($,K.path):$,children:K.children}:K.children?{...K,children:D($,K.children)}:K)}function z($){return{route:(H,K,...J)=>B(H,v.resolve($,K),...J),index:(H,...K)=>F(v.resolve($,H),...K),layout:(H,...K)=>ue(v.resolve($,H),...K),prefix:D}}function L($,H){return[$.replace(/\/+$/,""),H.replace(/^\/+/,"")].join("/")}return Mi}var qt={},Ii,Mc;function l0(){if(Mc)return Ii;Mc=1,Ii=e;function e(i,o,l){i instanceof RegExp&&(i=t(i,l)),o instanceof RegExp&&(o=t(o,l));var c=n(i,o,l);return c&&{start:c[0],end:c[1],pre:l.slice(0,c[0]),body:l.slice(c[0]+i.length,c[1]),post:l.slice(c[1]+o.length)}}function t(i,o){var l=o.match(i);return l?l[0]:null}e.range=n;function n(i,o,l){var c,f,h,p,m,v=l.indexOf(i),b=l.indexOf(o,v+1),P=v;if(v>=0&&b>0){if(i===o)return[v,b];for(c=[],h=l.length;P>=0&&!m;)P==v?(c.push(P),v=l.indexOf(i,P+1)):c.length==1?m=[c.pop(),b]:(f=c.pop(),f<h&&(h=f,p=b),b=l.indexOf(o,P+1)),P=v<b&&v>=0?v:b;c.length&&(m=[h,p])}return m}return Ii}var Vi,Ic;function c0(){if(Ic)return Vi;Ic=1;var e=l0();Vi=m;var t="\0SLASH"+Math.random()+"\0",n="\0OPEN"+Math.random()+"\0",i="\0CLOSE"+Math.random()+"\0",o="\0COMMA"+Math.random()+"\0",l="\0PERIOD"+Math.random()+"\0";function c(k){return parseInt(k,10)==k?parseInt(k,10):k.charCodeAt(0)}function f(k){return k.split("\\\\").join(t).split("\\{").join(n).split("\\}").join(i).split("\\,").join(o).split("\\.").join(l)}function h(k){return k.split(t).join("\\").split(n).join("{").split(i).join("}").split(o).join(",").split(l).join(".")}function p(k){if(!k)return[""];var O=[],B=e("{","}",k);if(!B)return k.split(",");var q=B.pre,F=B.body,oe=B.post,ue=q.split(",");ue[ue.length-1]+="{"+F+"}";var D=p(oe);return oe.length&&(ue[ue.length-1]+=D.shift(),ue.push.apply(ue,D)),O.push.apply(O,ue),O}function m(k){return k?(k.substr(0,2)==="{}"&&(k="\\{\\}"+k.substr(2)),M(f(k),!0).map(h)):[]}function v(k){return"{"+k+"}"}function b(k){return/^-?0\d/.test(k)}function P(k,O){return k<=O}function j(k,O){return k>=O}function M(k,O){var B=[],q=e("{","}",k);if(!q)return[k];var F=q.pre,oe=q.post.length?M(q.post,!1):[""];
17if(/\$$/.test(q.pre))for(var ue=0;ue<oe.length;ue++){var D=F+"{"+q.body+"}"+oe[ue];B.push(D)}else{var z=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(q.body),L=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(q.body),$=z||L,H=q.body.indexOf(",")>=0;if(!$&&!H)return q.post.match(/,.*\}/)?(k=q.pre+"{"+q.body+i+q.post,M(k)):[k];var K;if($)K=q.body.split(/\.\./);else if(K=p(q.body),K.length===1&&(K=M(K[0],!1).map(v),K.length===1))return oe.map(function(I){return q.pre+K[0]+I});var J;if($){var de=c(K[0]),ge=c(K[1]),ke=Math.max(K[0].length,K[1].length),V=K.length==3?Math.abs(c(K[2])):1,N=P,ie=ge<de;ie&&(V*=-1,N=j);var ae=K.some(b);J=[];for(var be=de;N(be,ge);be+=V){var me;if(L)me=String.fromCharCode(be),me==="\\"&&(me="");else if(me=String(be),ae){var _e=ke-me.length;if(_e>0){var Pe=new Array(_e+1).join("0");be<0?me="-"+Pe+me.slice(1):me=Pe+me}}J.push(me)}}else{J=[];for(var xe=0;xe<K.length;xe++)J.push.apply(J,M(K[xe],!1))}for(var xe=0;xe<J.length;xe++)for(var ue=0;ue<oe.length;ue++){var D=F+J[xe]+oe[ue];(!O||$||D)&&B.push(D)}}return B}return Vi}var Bt={},Vc;function f0(){if(Vc)return Bt;Vc=1,Object.defineProperty(Bt,"__esModule",{value:!0}),Bt.assertValidPattern=void 0;const e=1024*64,t=n=>{if(typeof n!="string")throw new TypeError("invalid pattern");if(n.length>e)throw new TypeError("pattern is too long")};return Bt.assertValidPattern=t,Bt}var Ft={},Gt={},Lc;function h0(){if(Lc)return Gt;Lc=1,Object.defineProperty(Gt,"__esModule",{value:!0}),Gt.parseClass=void 0;const e={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},t=l=>l.replace(/[[\]\\-]/g,"\\$&"),n=l=>l.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),i=l=>l.join(""),o=(l,c)=>{const f=c;if(l.charAt(f)!=="[")throw new Error("not in a brace expression");const h=[],p=[];let m=f+1,v=!1,b=!1,P=!1,j=!1,M=f,k="";e:for(;m<l.length;){const F=l.charAt(m);if((F==="!"||F==="^")&&m===f+1){j=!0,m++;continue}if(F==="]"&&v&&!P){M=m+1;break}if(v=!0,F==="\\"&&!P){P=!0,m++;continue}if(F==="["&&!P){for(const[oe,[ue,D,z]]of Object.entries(e))if(l.startsWith(oe,m)){if(k)return["$.",!1,l.length-f,!0];m+=oe.length,z?p.push(ue):h.push(ue),b=b||D;continue e}}if(P=!1,k){F>k?h.push(t(k)+"-"+t(F)):F===k&&h.push(t(F)),k="",m++;continue}if(l.startsWith("-]",m+1)){h.push(t(F+"-")),m+=2;continue}if(l.startsWith("-",m+1)){k=F,m+=2;continue}h.push(t(F)),m++}if(M<m)return["",!1,0,!1];if(!h.length&&!p.length)return["$.",!1,l.length-f,!0];if(p.length===0&&h.length===1&&/^\\?.$/.test(h[0])&&!j){const F=h[0].length===2?h[0].slice(-1):h[0];return[n(F),!1,M-f,!1]}const O="["+(j?"^":"")+i(h)+"]",B="["+(j?"":"^")+i(p)+"]";return[h.length&&p.length?"("+O+"|"+B+")":h.length?O:B,b,M-f,!0]};return Gt.parseClass=o,Gt}var zt={},Nc;function Qi(){if(Nc)return zt;Nc=1,Object.defineProperty(zt,"__esModule",{value:!0}),zt.unescape=void 0;const e=(t,{windowsPathsNoEscape:n=!1}={})=>n?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");return zt.unescape=e,zt}var $c;function qc(){var j,M,k,O,B,q,F,oe,ue,D,z,L,Gh,H,wn,es,zh;if($c)return Ft;$c=1,Object.defineProperty(Ft,"__esModule",{value:!0}),Ft.AST=void 0;const e=h0(),t=Qi(),n=new Set(["!","?","+","*","@"]),i=ke=>n.has(ke),o="(?!(?:^|/)\\.\\.?(?:$|/))",l="(?!\\.)",c=new Set(["[","."]),f=new Set(["..","."]),h=new Set("().*{}+?[]^$\\!"),p=ke=>ke.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),m="[^/]",v=m+"*?",b=m+"+?",ge=class ge{constructor(V,N,ie={}){Xe(this,L);Ie(this,"type");Xe(this,j);Xe(this,M);Xe(this,k,!1);Xe(this,O,[]);Xe(this,B);Xe(this,q);Xe(this,F);Xe(this,oe,!1);Xe(this,ue);Xe(this,D);Xe(this,z,!1);this.type=V,V&&Ve(this,M,!0),Ve(this,B,N),Ve(this,j,Z(this,B)?Z(Z(this,B),j):this),Ve(this,ue,Z(this,j)===this?ie:Z(Z(this,j),ue)),Ve(this,F,Z(this,j)===this?[]:Z(Z(this,j),F)),V==="!"&&!Z(Z(this,j),oe)&&Z(this,F).push(this),Ve(this,q,Z(this,B)?Z(Z(this,B),O).length:0)}get hasMagic(){if(Z(this,M)!==void 0)return Z(this,M);for(const V of Z(this,O))if(typeof V!="string"&&(V.type||V.hasMagic))return Ve(this,M,!0);return Z(this,M)}toString(){return Z(this,D)!==void 0?Z(this,D):this.type?Ve(this,D,this.type+"("+Z(this,O).map(V=>String(V)).join("|")+")"):Ve(this,D,Z(this,O).map(V=>String(V)).join(""))}
17push(...V){for(const N of V)if(N!==""){if(typeof N!="string"&&!(N instanceof ge&&Z(N,B)===this))throw new Error("invalid part: "+N);Z(this,O).push(N)}}toJSON(){var N;const V=this.type===null?Z(this,O).slice().map(ie=>typeof ie=="string"?ie:ie.toJSON()):[this.type,...Z(this,O).map(ie=>ie.toJSON())];return this.isStart()&&!this.type&&V.unshift([]),this.isEnd()&&(this===Z(this,j)||Z(Z(this,j),oe)&&((N=Z(this,B))==null?void 0:N.type)==="!")&&V.push({}),V}isStart(){var N;if(Z(this,j)===this)return!0;if(!((N=Z(this,B))!=null&&N.isStart()))return!1;if(Z(this,q)===0)return!0;const V=Z(this,B);for(let ie=0;ie<Z(this,q);ie++){const ae=Z(V,O)[ie];if(!(ae instanceof ge&&ae.type==="!"))return!1}return!0}isEnd(){var N,ie,ae;if(Z(this,j)===this||((N=Z(this,B))==null?void 0:N.type)==="!")return!0;if(!((ie=Z(this,B))!=null&&ie.isEnd()))return!1;if(!this.type)return(ae=Z(this,B))==null?void 0:ae.isEnd();const V=Z(this,B)?Z(Z(this,B),O).length:0;return Z(this,q)===V-1}copyIn(V){typeof V=="string"?this.push(V):this.push(V.clone(this))}clone(V){const N=new ge(this.type,V);for(const ie of Z(this,O))N.copyIn(ie);return N}static fromGlob(V,N={}){var ae;const ie=new ge(null,void 0,N);return ht(ae=ge,H,wn).call(ae,V,ie,0,N),ie}toMMPattern(){if(this!==Z(this,j))return Z(this,j).toMMPattern();const V=this.toString(),[N,ie,ae,be]=this.toRegExpSource();if(!(ae||Z(this,M)||Z(this,ue).nocase&&!Z(this,ue).nocaseMagicOnly&&V.toUpperCase()!==V.toLowerCase()))return ie;const _e=(Z(this,ue).nocase?"i":"")+(be?"u":"");return Object.assign(new RegExp(`^${N}$`,_e),{_src:N,_glob:V})}get options(){return Z(this,ue)}toRegExpSource(V){var Pe;const N=V??!!Z(this,ue).dot;if(Z(this,j)===this&&ht(this,L,Gh).call(this),!this.type){const xe=this.isStart()&&this.isEnd(),I=Z(this,O).map(Y=>{var y;const[E,g,S,w]=typeof Y=="string"?ht(y=ge,H,zh).call(y,Y,Z(this,M),xe):Y.toRegExpSource(V);return Ve(this,M,Z(this,M)||S),Ve(this,k,Z(this,k)||w),E}).join("");let ne="";if(this.isStart()&&typeof Z(this,O)[0]=="string"&&!(Z(this,O).length===1&&f.has(Z(this,O)[0]))){const E=c,g=N&&E.has(I.charAt(0))||I.startsWith("\\.")&&E.has(I.charAt(2))||I.startsWith("\\.\\.")&&E.has(I.charAt(4)),S=!N&&!V&&E.has(I.charAt(0));ne=g?o:S?l:""}let ee="";return this.isEnd()&&Z(Z(this,j),oe)&&((Pe=Z(this,B))==null?void 0:Pe.type)==="!"&&(ee="(?:$|\\/)"),[ne+I+ee,(0,t.unescape)(I),Ve(this,M,!!Z(this,M)),Z(this,k)]}const ie=this.type==="*"||this.type==="+",ae=this.type==="!"?"(?:(?!(?:":"(?:";let be=ht(this,L,es).call(this,N);if(this.isStart()&&this.isEnd()&&!be&&this.type!=="!"){const xe=this.toString();return Ve(this,O,[xe]),this.type=null,Ve(this,M,void 0),[xe,(0,t.unescape)(this.toString()),!1,!1]}let me=!ie||V||N?"":ht(this,L,es).call(this,!0);me===be&&(me=""),me&&(be=`(?:${be})(?:${me})*?`);let _e="";if(this.type==="!"&&Z(this,z))_e=(this.isStart()&&!N?l:"")+b;else{const xe=this.type==="!"?"))"+(this.isStart()&&!N&&!V?l:"")+v+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&me?")":this.type==="*"&&me?")?":`)${this.type}`;_e=ae+be+xe}return[_e,(0,t.unescape)(be),Ve(this,M,!!Z(this,M)),Z(this,k)]}};j=new WeakMap,M=new WeakMap,k=new WeakMap,O=new WeakMap,B=new WeakMap,q=new WeakMap,F=new WeakMap,oe=new WeakMap,ue=new WeakMap,D=new WeakMap,z=new WeakMap,L=new WeakSet,Gh=function(){if(this!==Z(this,j))throw new Error("should only call on root");if(Z(this,oe))return this;this.toString(),Ve(this,oe,!0);let V;for(;V=Z(this,F).pop();){if(V.type!=="!")continue;let N=V,ie=Z(N,B);for(;ie;){for(let ae=Z(N,q)+1;!ie.type&&ae<Z(ie,O).length;ae++)for(const be of Z(V,O)){if(typeof be=="string")throw new Error("string part in extglob AST??");be.copyIn(Z(ie,O)[ae])}N=ie,ie=Z(N,B)}}return this},H=new WeakSet,wn=function(V,N,ie,ae){var le,Y;let be=!1,me=!1,_e=-1,Pe=!1;if(N.type===null){let E=ie,g="";for(;E<V.length;){const S=V.charAt(E++);if(be||S==="\\"){be=!be,g+=S;continue}if(me){E===_e+1?(S==="^"||S==="!")&&(Pe=!0):S==="]"&&!(E===_e+2&&Pe)&&(me=!1),g+=S;continue}else if(S==="["){me=!0,_e=E,Pe=!1,g+=S;continue}if(!ae.noext&&i(S)&&V.charAt(E)==="("){N.push(g),g="";const w=new ge(S,N);E=ht(le=ge,H,wn).call(le,V,w,E,ae),N.push(w);continue}g+=S}return N.push(g),E}let xe=ie+1,I=new ge(null,N);const ne=[];let ee="";for(;xe<V.length;){const E=V.charAt(xe++);if(be||E==="\\"){be=!be,ee+=E;continue}if(me){xe===_e+1?(E==="^"||E==="!")&&(Pe=!0):E==="]"&&!(xe===_e+2&&Pe)&&(me=!1),ee+=E;continue}else if(E==="["){me=!0,_e=xe,Pe=!1,ee+=E;continue}if(i(E)&&V.charAt(xe)==="("){I.push(ee),ee="";const g=new ge(E,I);I.push(g),xe=ht(Y=ge,H,wn).call(Y,V,g,xe,ae);continue}if(E==="|"){I.push(ee),ee="",ne.push(I),I=new ge(null,N);continue}if(E===")")return ee===""&&Z(N,O).length===0&&Ve(N,z,!0),I.push(ee),ee="",N.push(...ne,I),xe;ee+=E}return N.type=null,Ve(N,M,void 0),Ve(N,O,[V.substring(ie-1)]),xe},es=function(V){return Z(this,O).map(N=>{if(typeof N=="string")throw new Error("string type in extglob ast??");const[ie,ae,be,me]=N.toRegExpSource(V);return Ve(this,k,Z(this,k)||me),ie}).filter(N=>!(this.isStart()&&this.isEnd())||!!N).join("|")},zh=function(V,N,ie=!1){let ae=!1,be="",me=!1;for(let _e=0;_e<V.length;_e++){const Pe=V.charAt(_e);if(ae){ae=!1,be+=(h.has(Pe)?"\\":"")+Pe;continue}if(Pe==="\\"){_e===V.length-1?be+="\\\\":ae=!0;continue}if(Pe==="["){const[xe,I,ne,ee]=(0,e.parseClass)(V,_e);if(ne){be+=xe,me=me||I,_e+=ne-1,N=N||ee;continue}}if(Pe==="*"){ie&&V==="*"?be+=b:be+=v,N=!0;continue}if(Pe==="?"){be+=m,N=!0;continue}be+=p(Pe)}return[be,(0,t.unescape)(V),!!N,me]},Xe(ge,H);let P=ge;return Ft.AST=P,Ft}var Ut={},Bc;function Fc(){if(Bc)return Ut;
17Bc=1,Object.defineProperty(Ut,"__esModule",{value:!0}),Ut.escape=void 0;const e=(t,{windowsPathsNoEscape:n=!1}={})=>n?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&");return Ut.escape=e,Ut}var Gc;function p0(){return Gc||(Gc=1,function(e){var t={},n=qt&&qt.__importDefault||function(E){return E&&E.__esModule?E:{default:E}};Object.defineProperty(e,"__esModule",{value:!0}),e.unescape=e.escape=e.AST=e.Minimatch=e.match=e.makeRe=e.braceExpand=e.defaults=e.filter=e.GLOBSTAR=e.sep=e.minimatch=void 0;const i=n(c0()),o=f0(),l=qc(),c=Fc(),f=Qi(),h=(E,g,S={})=>((0,o.assertValidPattern)(g),!S.nocomment&&g.charAt(0)==="#"?!1:new ne(g,S).match(E));e.minimatch=h;const p=/^\*+([^+@!?\*\[\(]*)$/,m=E=>g=>!g.startsWith(".")&&g.endsWith(E),v=E=>g=>g.endsWith(E),b=E=>(E=E.toLowerCase(),g=>!g.startsWith(".")&&g.toLowerCase().endsWith(E)),P=E=>(E=E.toLowerCase(),g=>g.toLowerCase().endsWith(E)),j=/^\*+\.\*+$/,M=E=>!E.startsWith(".")&&E.includes("."),k=E=>E!=="."&&E!==".."&&E.includes("."),O=/^\.\*+$/,B=E=>E!=="."&&E!==".."&&E.startsWith("."),q=/^\*+$/,F=E=>E.length!==0&&!E.startsWith("."),oe=E=>E.length!==0&&E!=="."&&E!=="..",ue=/^\?+([^+@!?\*\[\(]*)?$/,D=([E,g=""])=>{const S=H([E]);return g?(g=g.toLowerCase(),w=>S(w)&&w.toLowerCase().endsWith(g)):S},z=([E,g=""])=>{const S=K([E]);return g?(g=g.toLowerCase(),w=>S(w)&&w.toLowerCase().endsWith(g)):S},L=([E,g=""])=>{const S=K([E]);return g?w=>S(w)&&w.endsWith(g):S},$=([E,g=""])=>{const S=H([E]);return g?w=>S(w)&&w.endsWith(g):S},H=([E])=>{const g=E.length;return S=>S.length===g&&!S.startsWith(".")},K=([E])=>{const g=E.length;return S=>S.length===g&&S!=="."&&S!==".."},J=typeof process=="object"&&process?typeof t=="object"&&t&&t.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",de={win32:{sep:"\\"},posix:{sep:"/"}};e.sep=J==="win32"?de.win32.sep:de.posix.sep,e.minimatch.sep=e.sep,e.GLOBSTAR=Symbol("globstar **"),e.minimatch.GLOBSTAR=e.GLOBSTAR;const ke="[^/]"+"*?",V="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",N="(?:(?!(?:\\/|^)\\.).)*?",ie=(E,g={})=>S=>(0,e.minimatch)(S,E,g);e.filter=ie,e.minimatch.filter=e.filter;const ae=(E,g={})=>Object.assign({},E,g),be=E=>{if(!E||typeof E!="object"||!Object.keys(E).length)return e.minimatch;const g=e.minimatch;return Object.assign((w,y,G={})=>g(w,y,ae(E,G)),{Minimatch:class extends g.Minimatch{constructor(y,G={}){super(y,ae(E,G))}static defaults(y){return g.defaults(ae(E,y)).Minimatch}},AST:class extends g.AST{constructor(y,G,W={}){super(y,G,ae(E,W))}static fromGlob(y,G={}){return g.AST.fromGlob(y,ae(E,G))}},unescape:(w,y={})=>g.unescape(w,ae(E,y)),escape:(w,y={})=>g.escape(w,ae(E,y)),filter:(w,y={})=>g.filter(w,ae(E,y)),defaults:w=>g.defaults(ae(E,w)),makeRe:(w,y={})=>g.makeRe(w,ae(E,y)),braceExpand:(w,y={})=>g.braceExpand(w,ae(E,y)),match:(w,y,G={})=>g.match(w,y,ae(E,G)),sep:g.sep,GLOBSTAR:e.GLOBSTAR})};e.defaults=be,e.minimatch.defaults=e.defaults;const me=(E,g={})=>((0,o.assertValidPattern)(E),g.nobrace||!/\{(?:(?!\{).)*\}/.test(E)?[E]:(0,i.default)(E));e.braceExpand=me,e.minimatch.braceExpand=e.braceExpand;const _e=(E,g={})=>new ne(E,g).makeRe();e.makeRe=_e,e.minimatch.makeRe=e.makeRe;const Pe=(E,g,S={})=>{const w=new ne(g,S);return E=E.filter(y=>w.match(y)),w.options.nonull&&!E.length&&E.push(g),E};e.match=Pe,e.minimatch.match=e.match;const xe=/[?*]|[+@!]\(.*?\)|\[|\]/,I=E=>E.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class ne{constructor(g,S={}){Ie(this,"options");Ie(this,"set");Ie(this,"pattern");Ie(this,"windowsPathsNoEscape");Ie(this,"nonegate");Ie(this,"negate");Ie(this,"comment");Ie(this,"empty");Ie(this,"preserveMultipleSlashes");Ie(this,"partial");Ie(this,"globSet");Ie(this,"globParts");Ie(this,"nocase");Ie(this,"isWindows");Ie(this,"platform");Ie(this,"windowsNoMagicRoot");Ie(this,"regexp");(0,o.assertValidPattern)(g),S=S||{},this.options=S,this.pattern=g,this.platform=S.platform||J,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!S.windowsPathsNoEscape||S.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!S.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!S.nonegate,this.comment=!1,this.empty=!1,this.partial=!!S.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=S.windowsNoMagicRoot!==void 0?S.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;
17for(const g of this.set)for(const S of g)if(typeof S!="string")return!0;return!1}debug(...g){}make(){const g=this.pattern,S=this.options;if(!S.nocomment&&g.charAt(0)==="#"){this.comment=!0;return}if(!g){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],S.debug&&(this.debug=(...G)=>console.error(...G)),this.debug(this.pattern,this.globSet);const w=this.globSet.map(G=>this.slashSplit(G));this.globParts=this.preprocess(w),this.debug(this.pattern,this.globParts);let y=this.globParts.map((G,W,te)=>{if(this.isWindows&&this.windowsNoMagicRoot){const fe=G[0]===""&&G[1]===""&&(G[2]==="?"||!xe.test(G[2]))&&!xe.test(G[3]),ye=/^[a-z]:/i.test(G[0]);if(fe)return[...G.slice(0,4),...G.slice(4).map(ve=>this.parse(ve))];if(ye)return[G[0],...G.slice(1).map(ve=>this.parse(ve))]}return G.map(fe=>this.parse(fe))});if(this.debug(this.pattern,y),this.set=y.filter(G=>G.indexOf(!1)===-1),this.isWindows)for(let G=0;G<this.set.length;G++){const W=this.set[G];W[0]===""&&W[1]===""&&this.globParts[G][2]==="?"&&typeof W[3]=="string"&&/^[a-z]:$/i.test(W[3])&&(W[2]="?")}this.debug(this.pattern,this.set)}preprocess(g){if(this.options.noglobstar)for(let w=0;w<g.length;w++)for(let y=0;y<g[w].length;y++)g[w][y]==="**"&&(g[w][y]="*");const{optimizationLevel:S=1}=this.options;return S>=2?(g=this.firstPhasePreProcess(g),g=this.secondPhasePreProcess(g)):S>=1?g=this.levelOneOptimize(g):g=this.adjascentGlobstarOptimize(g),g}adjascentGlobstarOptimize(g){return g.map(S=>{let w=-1;for(;(w=S.indexOf("**",w+1))!==-1;){let y=w;for(;S[y+1]==="**";)y++;y!==w&&S.splice(w,y-w)}return S})}levelOneOptimize(g){return g.map(S=>(S=S.reduce((w,y)=>{const G=w[w.length-1];return y==="**"&&G==="**"?w:y===".."&&G&&G!==".."&&G!=="."&&G!=="**"?(w.pop(),w):(w.push(y),w)},[]),S.length===0?[""]:S))}levelTwoFileOptimize(g){Array.isArray(g)||(g=this.slashSplit(g));let S=!1;do{if(S=!1,!this.preserveMultipleSlashes){for(let y=1;y<g.length-1;y++){const G=g[y];y===1&&G===""&&g[0]===""||(G==="."||G==="")&&(S=!0,g.splice(y,1),y--)}g[0]==="."&&g.length===2&&(g[1]==="."||g[1]==="")&&(S=!0,g.pop())}let w=0;for(;(w=g.indexOf("..",w+1))!==-1;){const y=g[w-1];y&&y!=="."&&y!==".."&&y!=="**"&&(S=!0,g.splice(w-1,2),w-=2)}}while(S);return g.length===0?[""]:g}firstPhasePreProcess(g){let S=!1;do{S=!1;for(let w of g){let y=-1;for(;(y=w.indexOf("**",y+1))!==-1;){let W=y;for(;w[W+1]==="**";)W++;W>y&&w.splice(y+1,W-y);let te=w[y+1];const fe=w[y+2],ye=w[y+3];if(te!==".."||!fe||fe==="."||fe===".."||!ye||ye==="."||ye==="..")continue;S=!0,w.splice(y,1);const ve=w.slice(0);ve[y]="**",g.push(ve),y--}if(!this.preserveMultipleSlashes){for(let W=1;W<w.length-1;W++){const te=w[W];W===1&&te===""&&w[0]===""||(te==="."||te==="")&&(S=!0,w.splice(W,1),W--)}w[0]==="."&&w.length===2&&(w[1]==="."||w[1]==="")&&(S=!0,w.pop())}let G=0;for(;(G=w.indexOf("..",G+1))!==-1;){const W=w[G-1];if(W&&W!=="."&&W!==".."&&W!=="**"){S=!0;const fe=G===1&&w[G+1]==="**"?["."]:[];w.splice(G-1,2,...fe),w.length===0&&w.push(""),G-=2}}}}while(S);return g}secondPhasePreProcess(g){for(let S=0;S<g.length-1;S++)for(let w=S+1;w<g.length;w++){const y=this.partsMatch(g[S],g[w],!this.preserveMultipleSlashes);if(y){g[S]=[],g[w]=y;break}}return g.filter(S=>S.length)}partsMatch(g,S,w=!1){let y=0,G=0,W=[],te="";for(;y<g.length&&G<S.length;)if(g[y]===S[G])W.push(te==="b"?S[G]:g[y]),y++,G++;else if(w&&g[y]==="**"&&S[G]===g[y+1])W.push(g[y]),y++;else if(w&&S[G]==="**"&&g[y]===S[G+1])W.push(S[G]),G++;else if(g[y]==="*"&&S[G]&&(this.options.dot||!S[G].startsWith("."))&&S[G]!=="**"){if(te==="b")return!1;te="a",W.push(g[y]),y++,G++}else if(S[G]==="*"&&g[y]&&(this.options.dot||!g[y].startsWith("."))&&g[y]!=="**"){if(te==="a")return!1;te="b",W.push(S[G]),y++,G++}else return!1;return g.length===S.length&&W}parseNegate(){if(this.nonegate)return;const g=this.pattern;let S=!1,w=0;for(let y=0;y<g.length&&g.charAt(y)==="!";y++)S=!S,w++;w&&(this.pattern=g.slice(w)),this.negate=S}matchOne(g,S,w=!1){const y=this.options;if(this.isWindows){const Be=typeof g[0]=="string"&&/^[a-z]:$/i.test(g[0]),Et=!Be&&g[0]===""&&g[1]===""&&g[2]==="?"&&/^[a-z]:$/i.test(g[3]),lt=typeof S[0]=="string"&&/^[a-z]:$/i.test(S[0]),Tt=!lt&&S[0]===""&&S[1]===""&&S[2]==="?"&&typeof S[3]=="string"&&/^[a-z]:$/i.test(S[3]),tt=Et?3:Be?0:void 0,nt=Tt?3:lt?0:void 0;if(typeof tt=="number"&&typeof nt=="number"){const[rt,At]=[g[tt],S[nt]];rt.toLowerCase()===At.toLowerCase()&&(S[nt]=rt,nt>tt?S=S.slice(nt):tt>nt&&(g=g.slice(tt)))}}const{optimizationLevel:G=1}=this.options;G>=2&&(g=this.levelTwoFileOptimize(g)),this.debug("matchOne",this,{file:g,pattern:S}),this.debug("matchOne",g.length,S.length);for(var W=0,te=0,fe=g.length,ye=S.length;W<fe&&te<ye;W++,te++){this.debug("matchOne loop");var ve=S[te],Te=g[W];if(this.debug(S,ve,Te),ve===!1)return!1;
17if(ve===e.GLOBSTAR){this.debug("GLOBSTAR",[S,ve,Te]);var Ae=W,Ce=te+1;if(Ce===ye){for(this.debug("** at the end");W<fe;W++)if(g[W]==="."||g[W]===".."||!y.dot&&g[W].charAt(0)===".")return!1;return!0}for(;Ae<fe;){var We=g[Ae];if(this.debug(`
18globstar while`,g,Ae,S,Ce,We),this.matchOne(g.slice(Ae),S.slice(Ce),w))return this.debug("globstar found match!",Ae,fe,We),!0;if(We==="."||We===".."||!y.dot&&We.charAt(0)==="."){this.debug("dot detected!",g,Ae,S,Ce);break}this.debug("globstar swallow a segment, and continue"),Ae++}return!!(w&&(this.debug(`
19>>> no match, partial?`,g,Ae,S,Ce),Ae===fe))}let Be;if(typeof ve=="string"?(Be=Te===ve,this.debug("string match",ve,Te,Be)):(Be=ve.test(Te),this.debug("pattern match",ve,Te,Be)),!Be)return!1}if(W===fe&&te===ye)return!0;if(W===fe)return w;if(te===ye)return W===fe-1&&g[W]==="";throw new Error("wtf?")}braceExpand(){return(0,e.braceExpand)(this.pattern,this.options)}parse(g){(0,o.assertValidPattern)(g);const S=this.options;if(g==="**")return e.GLOBSTAR;if(g==="")return"";let w,y=null;(w=g.match(q))?y=S.dot?oe:F:(w=g.match(p))?y=(S.nocase?S.dot?P:b:S.dot?v:m)(w[1]):(w=g.match(ue))?y=(S.nocase?S.dot?z:D:S.dot?L:$)(w):(w=g.match(j))?y=S.dot?k:M:(w=g.match(O))&&(y=B);const G=l.AST.fromGlob(g,this.options).toMMPattern();return y&&typeof G=="object"&&Reflect.defineProperty(G,"test",{value:y}),G}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;const g=this.set;if(!g.length)return this.regexp=!1,this.regexp;const S=this.options,w=S.noglobstar?ke:S.dot?V:N,y=new Set(S.nocase?["i"]:[]);let G=g.map(fe=>{const ye=fe.map(ve=>{if(ve instanceof RegExp)for(const Te of ve.flags.split(""))y.add(Te);return typeof ve=="string"?I(ve):ve===e.GLOBSTAR?e.GLOBSTAR:ve._src});return ye.forEach((ve,Te)=>{const Ae=ye[Te+1],Ce=ye[Te-1];ve!==e.GLOBSTAR||Ce===e.GLOBSTAR||(Ce===void 0?Ae!==void 0&&Ae!==e.GLOBSTAR?ye[Te+1]="(?:\\/|"+w+"\\/)?"+Ae:ye[Te]=w:Ae===void 0?ye[Te-1]=Ce+"(?:\\/|"+w+")?":Ae!==e.GLOBSTAR&&(ye[Te-1]=Ce+"(?:\\/|\\/"+w+"\\/)"+Ae,ye[Te+1]=e.GLOBSTAR))}),ye.filter(ve=>ve!==e.GLOBSTAR).join("/")}).join("|");const[W,te]=g.length>1?["(?:",")"]:["",""];G="^"+W+G+te+"$",this.negate&&(G="^(?!"+G+").+$");try{this.regexp=new RegExp(G,[...y].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(g){return this.preserveMultipleSlashes?g.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(g)?["",...g.split(/\/+/)]:g.split(/\/+/)}match(g,S=this.partial){if(this.debug("match",g,this.pattern),this.comment)return!1;if(this.empty)return g==="";if(g==="/"&&S)return!0;const w=this.options;this.isWindows&&(g=g.split("\\").join("/"));const y=this.slashSplit(g);this.debug(this.pattern,"split",y);const G=this.set;this.debug(this.pattern,"set",G);let W=y[y.length-1];if(!W)for(let te=y.length-2;!W&&te>=0;te--)W=y[te];for(let te=0;te<G.length;te++){const fe=G[te];let ye=y;if(w.matchBase&&fe.length===1&&(ye=[W]),this.matchOne(ye,fe,S))return w.flipNegate?!0:!this.negate}return w.flipNegate?!1:this.negate}static defaults(g){return e.minimatch.defaults(g).Minimatch}}e.Minimatch=ne;var ee=qc();Object.defineProperty(e,"AST",{enumerable:!0,get:function(){return ee.AST}});var le=Fc();Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return le.escape}});var Y=Qi();Object.defineProperty(e,"unescape",{enumerable:!0,get:function(){return Y.unescape}}),e.minimatch.AST=l.AST,e.minimatch.Minimatch=ne,e.minimatch.escape=c.escape,e.minimatch.unescape=f.unescape}(qt)),qt}/**
20 * @react-router/fs-routes v7.4.1
21 *
22 * Copyright (c) Remix Software Inc.
23 *
24 * This source code is licensed under the MIT license found in the
25 * LICENSE.md file in the root directory of this source tree.
26 *
27 * @license MIT
28 */var Li,zc;function d0(){var _e,ts,xe;if(zc)return Li;zc=1;var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,o=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,c=(I,ne)=>{for(var ee in ne)t(I,ee,{get:ne[ee],enumerable:!0})},f=(I,ne,ee,le)=>{if(ne&&typeof ne=="object"||typeof ne=="function")for(let Y of i(ne))!l.call(I,Y)&&Y!==ee&&t(I,Y,{get:()=>ne[Y],enumerable:!(le=n(ne,Y))||le.enumerable});return I},h=(I,ne,ee)=>(ee=I!=null?e(o(I)):{},f(!I||!I.__esModule?t(ee,"default",{value:I,enumerable:!0}):ee,I)),p=I=>f(t({},"__esModule",{value:!0}),I),m={};c(m,{flatRoutes:()=>me}),Li=p(m);var v=h($t),b=h($t),P=u0();function j(I,ne="root"){let ee={};for(let Y in I){let E=I[Y];ee[Y]={id:E.id,file:E.file,path:E.path,index:E.index,caseSensitive:E.caseSensitive}}let le=[];for(let Y in ee){let E=ee[Y],g=I[E.id].parentId;if(g===ne)le.push(E);else{let S=g&&ee[g];S&&(S.children=S.children||[],S.children.push(E))}}return le}var M=h($t),k=h($t),O=p0(),B=h($t);function q(I){return I.split(B.default.win32.sep).join("/")}var F=[".js",".jsx",".ts",".tsx",".md",".mdx"],oe="$",ue="[",D="]",z="(",L=")",$=Symbol("PrefixLookupTrieEndSymbol"),H=(xe=class{constructor(){Xe(this,_e);Ie(this,"root",{[$]:!1})}add(I){if(!I)throw new Error("Cannot add empty string to PrefixLookupTrie");let ne=this.root;for(let ee of I)ne[ee]||(ne[ee]={[$]:!1}),ne=ne[ee];ne[$]=!0}findAndRemove(I,ne){let ee=this.root;for(let le of I){if(!ee[le])return[];ee=ee[le]}return ht(this,_e,ts).call(this,[],ee,I,ne)}}
28,_e=new WeakSet,ts=function(I,ne,ee,le){for(let Y of Object.keys(ne))ht(this,_e,ts).call(this,I,ne[Y],ee+Y,le);return ne[$]&&le(ee)&&(ne[$]=!1,I.push(ee)),I},xe);function K(I,ne=[],ee="routes"){let le=Array.from(new Set(["**/.*",...ne])).map(y=>(0,O.makeRe)(y)).filter(y=>!!y),Y=k.default.join(I,ee);if(!be(I,"root",F))throw new Error(`Could not find a root route module in the app directory: ${I}`);if(!M.default.existsSync(Y))throw new Error(`Could not find the routes directory: ${Y}. Did you forget to create it?`);let g=M.default.readdirSync(Y,{withFileTypes:!0,encoding:"utf-8"}),S=[];for(let y of g){let G=q(k.default.join(Y,y.name)),W=null;y.isDirectory()?W=ge(I,G,le):y.isFile()&&(W=de(I,G,le)),W&&S.push(W)}return J(I,S,ee)}function J(I,ne,ee="routes"){let le=new Map,Y={},E=new H,g=new Map,S=new Map,w=new Map;for(let W of ne){let te=q(W),fe=k.default.extname(te),ye=k.default.dirname(te),ve=q(I),Te=ye===k.default.posix.join(ve,ee)?k.default.posix.relative(ve,te).slice(0,-fe.length):k.default.posix.relative(ve,ye),Ae=w.get(Te);if(Ae){let Ce=S.get(Te);Ce||(Ce=[k.default.posix.relative(ve,Ae)]),Ce.push(k.default.posix.relative(ve,te)),S.set(Te,Ce);continue}w.set(Te,te)}let y=Array.from(w).sort(([W],[te])=>te.length-W.length);for(let[W,te]of y){let fe=W.endsWith("_index"),[ye,ve]=ke(W.slice(ee.length+1)),Te=V(ye,ve,fe);Y[W]={file:te.slice(I.length+1),id:W,path:Te},fe&&(Y[W].index=!0);let Ae=E.findAndRemove(W,Ce=>[".","/"].includes(Ce.slice(W.length).charAt(0)));if(E.add(W),Ae.length>0)for(let Ce of Ae)Y[Ce].parentId=W}let G=new Map;for(let[W]of y){let te=Y[W];if(!te.parentId)continue;let fe=G.get(te.parentId)||[];fe.push(te),G.set(te.parentId,fe)}for(let[W]of y){let te=Y[W],fe=te.path||"",ye=te.path,ve=te.parentId?Y[te.parentId]:null;ve!=null&&ve.path&&ye&&(ye=ye.slice(ve.path.length).replace(/^\//,"").replace(/\/$/,"")),te.parentId||(te.parentId="root"),te.path=ye||void 0;let Te=te.id.replace(new RegExp(`^${ee}/`),"").split(".").pop();if(Te&&Te.startsWith("_")&&Te!=="_index")continue;let Ce=fe+(te.index?"?index":""),We=g.get(Ce);if(g.set(Ce,te),We&&(fe||te.index)){let Be=le.get(fe);Be||(Be=[We]),Be.push(te),le.set(fe,Be);continue}}if(S.size>0)for(let[W,te]of S.entries())console.error(ie(W,te));if(le.size>0)for(let[W,te]of le.entries()){for(let ye=1;ye<te.length;ye++)delete Y[te[ye].id];let fe=te.map(ye=>ye.file);console.error(N(W,fe))}return Y}function de(I,ne,ee){let le=q(k.default.relative(I,ne));return ee.some(E=>E.test(le))?null:ne}function ge(I,ne,ee){let le=k.default.relative(I,ne);if(ee.some(S=>S.test(le)))return null;let E=be(ne,"route",F),g=be(ne,"index",F);if(E&&g){let[S,w]=ke(k.default.relative(I,ne)),y=V(S,w,!1);console.error(N(y||"/",[E,g]))}return E||g||null}function ke(I){let ne=[],ee=[],le=0,Y="",E="",g="NORMAL",S=(w,y)=>{if(!w)return;let G=(W,te)=>{throw new Error(`Route segment "${W}" for "${I}" cannot contain "${te}".
29If this is something you need, upvote this proposal for React Router https://github.com/remix-run/react-router/discussions/9822.`)};if(y.includes("*"))return G(y,"*");if(y.includes(":"))return G(y,":");if(y.includes("/"))return G(w,"/");ne.push(w),ee.push(y)};for(;le<I.length;){let w=I[le];switch(le++,g){case"NORMAL":{if(ae(w)){S(Y,E),Y="",E="",g="NORMAL";break}if(w===ue){g="ESCAPE",E+=w;break}if(w===z){g="OPTIONAL",E+=w;break}if(!Y&&w===oe){le===I.length?(Y+="*",E+=w):(Y+=":",E+=w);break}Y+=w,E+=w;break}case"ESCAPE":{if(w===D){g="NORMAL",E+=w;break}Y+=w,E+=w;break}case"OPTIONAL":{if(w===L){Y+="?",E+=w,g="NORMAL";break}if(w===ue){g="OPTIONAL_ESCAPE",E+=w;break}if(!Y&&w===oe){le===I.length?(Y+="*",E+=w):(Y+=":",E+=w);break}Y+=w,E+=w;break}case"OPTIONAL_ESCAPE":{if(w===D){g="OPTIONAL",E+=w;break}Y+=w,E+=w;break}}}return S(Y,E),[ne,ee]}function V(I,ne,ee){let le=[];ee&&(I=I.slice(0,-1));for(let Y=0;Y<I.length;Y++){let E=I[Y],g=ne[Y];E.startsWith("_")&&g.startsWith("_")||(E.endsWith("_")&&g.endsWith("_")&&(E=E.slice(0,-1)),le.push(E))}return le.length?le.join("/"):void 0}function N(I,ne){let[ee,...le]=ne;return I.startsWith("/")||(I="/"+I),`⚠️ Route Path Collision: "${I}"
30
31The following routes all define the same URL, only the first one will be used
32
33🟢 ${ee}
34`+le.map(Y=>`⭕️️ ${Y}`).join(`
35`)+`
36`}function ie(I,ne){let[ee,...le]=ne;return`⚠️ Route ID Collision: "${I}"
37
38The following routes all define the same Route ID, only the first one will be used
39
40🟢 ${ee}
41`+le.map(Y=>`⭕️️ ${Y}`).join(`
42`)+`
43`}function ae(I){return I?["/",".",k.default.win32.sep].includes(I):!1}function be(I,ne,ee){for(let le of ee){let Y=ne+le,E=k.default.join(I,Y);if(M.default.existsSync(E))return E}}async function me(I={}){let{ignoredRouteFiles:ne=[],rootDirectory:ee="routes"}=I,le=(0,P.getAppDirectory)(),Y=b.default.resolve(le,ee),E=b.default.relative(le,Y),g=q(E),S=v.default.existsSync(Y)?K(le,ne,g):{};return j(S)}return Li}
43var m0=d0();const Uc=[{path:bt("/"),name:"Hjem"},{path:bt("/om-oss"),name:"Om oss"},{path:bt("/assistenter"),name:"Assistenter"},{path:bt("/team"),name:"Team"},{path:bt("/foreldre"),name:"Foreldre"},{path:bt("/skoler"),name:"Skoler"},{path:bt("/kontakt"),name:"Kontakt"}];m0.flatRoutes();const N0=mp(function(){return U.jsxs("div",{className:"flex min-h-screen flex-col items-stretch transition-colors",children:[U.jsx(y0,{}),U.jsx(vp,{}),U.jsx(b0,{})]})});function y0(){return U.jsxs("div",{className:"sticky top-2 z-50",children:[U.jsx("div",{className:"hidden w-full flex-wrap justify-center md:flex lg:px-4",children:U.jsxs("div",{className:"mr-12 flex w-fit items-center gap-1 rounded-full bg-[#ccecf6] bg-opacity-40 px-1.5 shadow-md backdrop-blur dark:bg-black dark:bg-opacity-40",children:[U.jsx("img",{src:"/images/vektor-logo-circle.svg",alt:"vektorprogrammet logo",width:32,height:32}),U.jsx(v0,{routes:Uc})]})}),U.jsx("div",{className:"absolute top-0 right-2 hidden rounded-full md:flex",children:U.jsx(Uh,{})}),U.jsx(g0,{routes:Uc})]})}function v0({routes:e}){const t=gp(),n=se.useRef(null),i=se.useRef(new Map),[o,l]=se.useState(null);return Kc(()=>{var b;const c=n.current;if(!c)return;const f=t.pathname,h=(b=e.find(P=>{const j=P.path.toString();return f===j||f.startsWith(`${j}/`)}))==null?void 0:b.path.toString();if(!h){l(null);return}const p=i.current.get(h);if(!p)return;const m=c.getBoundingClientRect(),v=p.getBoundingClientRect();l({x:v.left-m.left,width:v.width})},[t.pathname,e]),U.jsxs("div",{ref:n,className:"relative mx-auto flex h-11 rounded-full px-0.5",children:[o&&U.jsx(vv.div,{className:"absolute top-1.5 bottom-1.5 rounded-full bg-vektor-blue mix-blend-multiply shadow-sm",animate:{x:o.x,width:o.width},transition:{type:"spring",bounce:.1,duration:.6}}),e.map(c=>{const f=c.path.toString();return U.jsx(bp,{to:c.path,className:({isActive:h})=>`${h?"text-black":"text-neutral-700 hover:text-black"} relative my-1.5 place-content-center px-4 py-auto text-center font-medium text-sm`,prefetch:"intent",ref:h=>{h?i.current.set(f,h):i.current.delete(f)},children:c.name},f)})]})}function Uh(){return U.jsx("div",{className:"flex space-x-4 overflow-clip rounded-full",children:U.jsx(Wc,{className:Sp({variant:"green"}),to:"https://vektorprogrammet.no/kontrollpanel",prefetch:"intent",children:"Logg inn"})})}const g0=({routes:e})=>U.jsx("div",{className:"md:hidden",children:U.jsxs(jh,{children:[U.jsx(Hv,{children:U.jsx("div",{className:"fixed top-12 right-0 flex rounded-l-full bg-[rgba(0,0,0,0.8)] p-1 pr-2",children:U.jsx(Ja,{variant:"outline",className:"rounded-full bg-vektor-bg p-0",size:"icon",children:U.jsxs(vf,{className:"h-full w-full rounded-full",children:[U.jsx(gf,{src:"/images/team/IT-Tor.png"}),U.jsx(bf,{children:"Tor"})]})})})}),U.jsxs(Ih,{children:[U.jsx(Vh,{}),U.jsx(Nh,{children:U.jsxs("div",{className:"flex items-start justify-between p-6",children:[U.jsx("ul",{className:"flex w-full flex-col items-start gap-4 text-center",children:e.map(t=>U.jsx("li",{children:U.jsx(Wc,{className:"text-lg dark:text-white",reloadDocument:!0,to:t.path,prefetch:"render",children:t.name})},t.name))}),U.jsx("div",{className:"flex w-fit justify-center",children:U.jsx(Uh,{})})]})}),U.jsx(Lh,{children:U.jsx(Kv,{children:U.jsx(Ja,{variant:"outline",children:"Lukk"})})})]})]})});function b0(){return U.jsx("footer",{className:"bg-vektor-DARKblue",children:U.jsxs("div",{className:"mx-auto flex max-w-6xl flex-col place-items-center justify-between space-y-8 p-2 py-8 lg:flex-row lg:space-x-4 lg:space-y-0",children:[U.jsx("img",{src:"/images/vektor-logo-white.svg",alt:"vektorprogrammet logo hvit",className:"h-24 md:h-40"}),U.jsx(_0,{}),U.jsx(w0,{})]})})}function w0(){const e=gv();return U.jsxs("ul",{className:"text-white",children:[U.jsx("b",{children:U.jsx("li",{children:"Sponsorer og sammarbeidspartnere"})}),e.map(t=>U.jsx("li",{children:U.jsx("a",{className:"text-sm hover:underline",href:t.url.href,children:t.name})},t.name))]})}function _0(){return U.jsx("div",{className:"text-white",children:U.jsxs("ul",{className:"grid grid-cols-1 gap-8",children:[U.jsxs("li",{className:"flex place-items-center space-x-4",children:[U.jsx(Qp,{size:40}),U.jsxs("ul",{className:"flex place-items-center space-x-2",children:[U.jsx("li",{children:U.jsx("a",{className:"hover:underline",href:"https://www.facebook.com/vektorprogrammet/",children:"Trondheim"})}),U.jsx("li",{children:U.jsx("a",{className:"hover:underline",href:"https://www.facebook.com/vektorprogrammetNMBU/",children:"Ås"})}),U.jsx("li",{children:U.jsx("a",{className:"hover:underline",href:"https://www.facebook.com/VektorprogrammetBergen/",children:"Bergen"})})]})]}),U.jsxs("li",{className:"flex place-items-center space-x-4",children:[U.jsx(Hp,{size:40}),U.jsx("div",{className:"flex place-items-center space-x-2",children:U.jsx("a",{className:"hover:underline",href:"mailto:[email protected]",children:"[email protected]"})})]}),U.jsxs("li",{className:"flex place-items-center space-x-4",children:[U.jsx(Xp,{size:40}),U.jsx("div",{className:"flex place-items-center space-x-2",children:U.jsx("a",{className:"hover:underline",href:"https://maps.app.goo.gl/qQAVLGGFnzMo721g6",target:"_blank",rel:"noreferrer",children:"Høgskoleringen 5, 7491 Trondheim"})})]}),U.jsxs("li",{className:"flex place-items-center space-x-4",children:[U.jsx(td,{size:40}),U.jsx("div",{className:"flex place-items-center space-x-2",children:"OrgNr: 998744814"})]})]})})}export{N0 as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.