@react-email/ui 6.9.5 → 6.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/BUILD_ID +1 -1
- package/.next/build-manifest.json +3 -3
- package/.next/diagnostics/route-bundle-stats.json +5 -5
- package/.next/fallback-build-manifest.json +3 -3
- package/.next/prerender-manifest.json +3 -3
- package/.next/server/app/_global-error.html +1 -1
- package/.next/server/app/_global-error.rsc +1 -1
- package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found/page/server-reference-manifest.json +1 -1
- package/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/server/app/page/server-reference-manifest.json +1 -1
- package/.next/server/app/page.js.nft.json +1 -1
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app/preview/[...slug]/page/server-reference-manifest.json +8 -8
- package/.next/server/app/preview/[...slug]/page.js.nft.json +1 -1
- package/.next/server/app/preview/[...slug]/page_client-reference-manifest.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__0jhwudd._.js +2 -2
- package/.next/server/chunks/ssr/[root-of-the-server]__0u8lp02._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__1zo00bn._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__1zo00bn._.js.map +1 -1
- package/.next/server/chunks/ssr/_0iztjpv._.js +1 -1
- package/.next/server/chunks/ssr/_0iztjpv._.js.map +1 -1
- package/.next/server/chunks/ssr/_14fryvc._.js +2 -2
- package/.next/server/chunks/ssr/_14fryvc._.js.map +1 -1
- package/.next/server/chunks/ssr/_1hvpqks._.js +1 -1
- package/.next/server/chunks/ssr/_1hvpqks._.js.map +1 -1
- package/.next/server/chunks/ssr/_1t-uii1._.js +1 -1
- package/.next/server/chunks/ssr/_1t-uii1._.js.map +1 -1
- package/.next/server/middleware-build-manifest.js +3 -3
- package/.next/server/pages/500.html +1 -1
- package/.next/server/server-reference-manifest.js +1 -1
- package/.next/server/server-reference-manifest.json +9 -9
- package/.next/static/chunks/0ctif67b1nh6k.js +42 -0
- package/.next/static/chunks/{2_itd2y9pccgp.js → 2z2o-3aqdvs66.js} +2 -2
- package/.next/trace +1 -1
- package/.next/trace-build +1 -1
- package/package.json +2 -2
- package/.next/static/chunks/0x4gfpmjfhatp.js +0 -42
- /package/.next/static/{Zx7LImoL-R3i8A1sxeLWM → ECOfQjO-ippUJDeSpwAjt}/_buildManifest.js +0 -0
- /package/.next/static/{Zx7LImoL-R3i8A1sxeLWM → ECOfQjO-ippUJDeSpwAjt}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{Zx7LImoL-R3i8A1sxeLWM → ECOfQjO-ippUJDeSpwAjt}/_ssgManifest.js +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,91967,9413,18731,36567,60310,85565,90816,11207,7464,34174,36986,70338,50438,53942,18015,66699,12086,t=>{"use strict";let e,i,r,n;"u">typeof window&&window.document&&window.document.createElement,t.s(["composeEventHandlers",0,function(t,e,{checkForDefaultPrevented:i=!0}={}){return function(r){if(t?.(r),!1===i||!r.defaultPrevented)return e?.(r)}}],91967);var s,o=t.i(65289),a=t.i(31317);t.s(["createContextScope",0,function(t,e=[]){let i=[],r=()=>{let e=i.map(t=>o.createContext(t));return function(i){let r=i?.[t]||e;return o.useMemo(()=>({[`__scope${t}`]:{...i,[t]:r}}),[i,r])}};return r.scopeName=t,[function(e,r){let n=o.createContext(r),s=i.length;i=[...i,r];let l=e=>{let{scope:i,children:r,...l}=e,u=i?.[t]?.[s]||n,h=o.useMemo(()=>l,Object.values(l));return(0,a.jsx)(u.Provider,{value:h,children:r})};return l.displayName=e+"Provider",[l,function(i,a){let l=a?.[t]?.[s]||n,u=o.useContext(l);if(u)return u;if(void 0!==r)return r;throw Error(`\`${i}\` must be used within \`${e}\``)}]},function(...t){let e=t[0];if(1===t.length)return e;let i=()=>{let i=t.map(t=>({useScope:t(),scopeName:t.scopeName}));return function(t){let r=i.reduce((e,{useScope:i,scopeName:r})=>{let n=i(t)[`__scope${r}`];return{...e,...n}},{});return o.useMemo(()=>({[`__scope${e.scopeName}`]:r}),[r])}};return i.scopeName=e.scopeName,i}(r,...e)]}],9413);var l=globalThis?.document?o.useLayoutEffect:()=>{};t.s(["useLayoutEffect",0,l],18731),o[" useEffectEvent ".trim().toString()],o[" useInsertionEffect ".trim().toString()];var u=o[" useInsertionEffect ".trim().toString()]||l;Symbol("RADIX:SYNC_STATE"),t.s(["useControllableState",0,function({prop:t,defaultProp:e,onChange:i=()=>{},caller:r}){let[n,s,a]=function({defaultProp:t,onChange:e}){let[i,r]=o.useState(t),n=o.useRef(i),s=o.useRef(e);return u(()=>{s.current=e},[e]),o.useEffect(()=>{n.current!==i&&(s.current?.(i),n.current=i)},[i,n]),[i,r,s]}({defaultProp:e,onChange:i}),l=void 0!==t,h=l?t:n;{let e=o.useRef(void 0!==t);o.useEffect(()=>{let t=e.current;if(t!==l){let e=l?"controlled":"uncontrolled";console.warn(`${r} is changing from ${t?"controlled":"uncontrolled"} to ${e}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}e.current=l},[l,r])}return[h,o.useCallback(e=>{if(l){let i="function"==typeof e?e(t):e;i!==t&&a.current?.(i)}else s(e)},[l,t,s,a])]}],36567);var h=t.i(63582),c=t.i(22353);function d(t){var e;let i,r=(e=t,(i=o.forwardRef((t,e)=>{let{children:i,...r}=t;if(o.isValidElement(i)){var n;let t,s,a=(n=i,(s=(t=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?n.ref:(s=(t=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?n.props.ref:n.props.ref||n.ref),l=function(t,e){let i={...e};for(let r in e){let n=t[r],s=e[r];/^on[A-Z]/.test(r)?n&&s?i[r]=(...t)=>{let e=s(...t);return n(...t),e}:n&&(i[r]=n):"style"===r?i[r]={...n,...s}:"className"===r&&(i[r]=[n,s].filter(Boolean).join(" "))}return{...t,...i}}(r,i.props);return i.type!==o.Fragment&&(l.ref=e?(0,c.composeRefs)(e,a):a),o.cloneElement(i,l)}return o.Children.count(i)>1?o.Children.only(null):null})).displayName=`${e}.SlotClone`,i),n=o.forwardRef((t,e)=>{let{children:i,...n}=t,s=o.Children.toArray(i),l=s.find(f);if(l){let t=l.props.children,i=s.map(e=>e!==l?e:o.Children.count(t)>1?o.Children.only(null):o.isValidElement(t)?t.props.children:null);return(0,a.jsx)(r,{...n,ref:e,children:o.isValidElement(t)?o.cloneElement(t,void 0,i):null})}return(0,a.jsx)(r,{...n,ref:e,children:i})});return n.displayName=`${t}.Slot`,n}var p=Symbol("radix.slottable");function f(t){return o.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===p}t.s(["createSlot",0,d,"createSlottable",0,function(t){let e=({children:t})=>(0,a.jsx)(a.Fragment,{children:t});return e.displayName=`${t}.Slottable`,e.__radixId=p,e}],60310);var m=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((t,e)=>{let i=d(`Primitive.${e}`),r=o.forwardRef((t,r)=>{let{asChild:n,...s}=t;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(n?i:e,{...s,ref:r})});return r.displayName=`Primitive.${e}`,{...t,[e]:r}},{});t.s(["Primitive",0,m,"dispatchDiscreteCustomEvent",0,function(t,e){t&&h.flushSync(()=>t.dispatchEvent(e))}],85565);var g=t=>{var e;let i,r,{present:n,children:s}=t,a=function(t){var e,i;let[r,n]=o.useState(),s=o.useRef(null),a=o.useRef(t),u=o.useRef("none"),[h,c]=(e=t?"mounted":"unmounted",i={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},o.useReducer((t,e)=>i[t][e]??t,e));return o.useEffect(()=>{let t=y(s.current);u.current="mounted"===h?t:"none"},[h]),l(()=>{let e=s.current,i=a.current;if(i!==t){let r=u.current,n=y(e);t?c("MOUNT"):"none"===n||e?.display==="none"?c("UNMOUNT"):i&&r!==n?c("ANIMATION_OUT"):c("UNMOUNT"),a.current=t}},[t,c]),l(()=>{if(r){let t,e=r.ownerDocument.defaultView??window,i=i=>{let n=y(s.current).includes(CSS.escape(i.animationName));if(i.target===r&&n&&(c("ANIMATION_END"),!a.current)){let i=r.style.animationFillMode;r.style.animationFillMode="forwards",t=e.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=i)})}},n=t=>{t.target===r&&(u.current=y(s.current))};return r.addEventListener("animationstart",n),r.addEventListener("animationcancel",i),r.addEventListener("animationend",i),()=>{e.clearTimeout(t),r.removeEventListener("animationstart",n),r.removeEventListener("animationcancel",i),r.removeEventListener("animationend",i)}}c("ANIMATION_END")},[r,c]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:o.useCallback(t=>{s.current=t?getComputedStyle(t):null,n(t)},[])}}(n),u="function"==typeof s?s({present:a.isPresent}):o.Children.only(s),h=(0,c.useComposedRefs)(a.ref,(e=u,(r=(i=Object.getOwnPropertyDescriptor(e.props,"ref")?.get)&&"isReactWarning"in i&&i.isReactWarning)?e.ref:(r=(i=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in i&&i.isReactWarning)?e.props.ref:e.props.ref||e.ref));return"function"==typeof s||a.isPresent?o.cloneElement(u,{ref:h}):null};function y(t){return t?.animationName||"none"}g.displayName="Presence",t.s(["Presence",0,g],90816);var v=o[" useId ".trim().toString()]||(()=>void 0),b=0;t.s(["useId",0,function(t){let[e,i]=o.useState(v());return l(()=>{t||i(t=>t??String(b++))},[t]),t||(e?`radix-${e}`:"")}],11207);let x=(0,o.createContext)({});function w(t){let e=(0,o.useRef)(null);return null===e.current&&(e.current=t()),e.current}t.s(["LayoutGroupContext",0,x],7464),t.s(["useConstant",0,w],34174);let C="u">typeof window?o.useLayoutEffect:o.useEffect;t.s(["useIsomorphicLayoutEffect",0,C],36986);let k=(0,o.createContext)(null);function E(t){return"object"==typeof t&&null!==t}function T(t){return E(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}t.s(["PresenceContext",0,k],70338),t.s(["isHTMLElement",0,T],50438);let S=(0,o.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function P(t=!0){let e=(0,o.useContext)(k);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:r,register:n}=e,s=(0,o.useId)();(0,o.useEffect)(()=>{if(t)return n(s)},[t]);let a=(0,o.useCallback)(()=>t&&r&&r(s),[s,r,t]);return!i&&r?[!1,a]:[!0]}t.s(["MotionConfigContext",0,S],53942),t.s(["usePresence",0,P],18015);let A=(0,o.createContext)(null),R=t=>t,_={},M=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function L(t,e){let i=!1,r=!0,n={delta:0,timestamp:0,isProcessing:!1},s=()=>i=!0,o=M.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,r=new Set,n=!1,s=!1,o=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1},l=0;function u(e){o.has(e)&&(h.schedule(e),t()),l++,e(a)}let h={schedule:(t,e=!1,s=!1)=>{let a=s&&n?i:r;return e&&o.add(t),a.add(t),t},cancel:t=>{r.delete(t),o.delete(t)},process:t=>{if(a=t,n){s=!0;return}n=!0;let o=i;i=r,r=o,i.forEach(u),e,l=0,i.clear(),n=!1,s&&(s=!1,h.process(t))}};return h}(s,e?i:void 0),t),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:h,update:c,preRender:d,render:p,postRender:f}=o,m=()=>{let s=_.useManualTiming,o=s?n.timestamp:performance.now();i=!1,s||(n.delta=r?1e3/60:Math.max(Math.min(o-n.timestamp,40),1)),n.timestamp=o,n.isProcessing=!0,a.process(n),l.process(n),u.process(n),h.process(n),c.process(n),d.process(n),p.process(n),f.process(n),n.isProcessing=!1,i&&e&&(r=!1,t(m))};return{schedule:M.reduce((e,s)=>{let a=o[s];return e[s]=(e,s=!1,o=!1)=>(!i&&(i=!0,r=!0,n.isProcessing||t(m)),a.schedule(e,s,o)),e},{}),cancel:t=>{for(let e=0;e<M.length;e++)o[M[e]].cancel(t)},state:n,steps:o}}let{schedule:j,cancel:V,state:O,steps:D}=L("u">typeof requestAnimationFrame?requestAnimationFrame:R,!0),N=t=>!t.isLayoutDirty&&t.willUpdate(!1);t.s(["LayoutGroup",0,({children:t,id:e,inherit:i=!0})=>{let r=(0,o.useContext)(x),n=(0,o.useContext)(A),[s,l]=function(){let t,e=(t=(0,o.useRef)(!1),C(()=>(t.current=!0,()=>{t.current=!1}),[]),t),[i,r]=(0,o.useState)(0),n=(0,o.useCallback)(()=>{e.current&&r(i+1)},[i]);return[(0,o.useCallback)(()=>j.postRender(n),[n]),i]}(),u=(0,o.useRef)(null),h=r.id||n;if(null===u.current){let t,n,s,o;(!0==(!0===(o=i))||"id"===o)&&h&&(e=e?h+"-"+e:h),u.current={id:e,group:!0===i&&r.group||(t=new Set,n=new WeakMap,{add:e=>{t.add(e),n.set(e,e.addEventListener("willUpdate",s))},remove:e=>{t.delete(e);let i=n.get(e);i&&(i(),n.delete(e)),s()},dirty:s=()=>t.forEach(N)})}}let c=(0,o.useMemo)(()=>({...u.current,forceRender:s}),[l]);return(0,a.jsx)(x.Provider,{value:c,children:t})}],66699);let B=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],I=new Set(B),F=(t,e,i)=>i>e?e:i<t?t:i,U={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},$={...U,transform:t=>F(0,1,t)},z={...U,default:1},H=t=>Math.round(1e5*t)/1e5,W=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,q=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Y=(t,e)=>i=>!!("string"==typeof i&&q.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),K=(t,e,i)=>r=>{if("string"!=typeof r)return r;let[n,s,o,a]=r.match(W);return{[t]:parseFloat(n),[e]:parseFloat(s),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},X={...U,transform:t=>Math.round(F(0,255,t))},Z={test:Y("rgb","red"),parse:K("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:r=1})=>"rgba("+X.transform(t)+", "+X.transform(e)+", "+X.transform(i)+", "+H($.transform(r))+")"},G={test:Y("#"),parse:function(t){let e="",i="",r="",n="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),r=t.substring(5,7),n=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),r=t.substring(3,4),n=t.substring(4,5),e+=e,i+=i,r+=r,n+=n),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(r,16),alpha:n?parseInt(n,16)/255:1}},transform:Z.transform},J=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),Q=J("deg"),tt=J("%"),te=J("px"),ti=J("vh"),tr=J("vw"),tn={...tt,parse:t=>tt.parse(t)/100,transform:t=>tt.transform(100*t)},ts={test:Y("hsl","hue"),parse:K("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:r=1})=>"hsla("+Math.round(t)+", "+tt.transform(H(e))+", "+tt.transform(H(i))+", "+H($.transform(r))+")"},to={test:t=>Z.test(t)||G.test(t)||ts.test(t),parse:t=>Z.test(t)?Z.parse(t):ts.test(t)?ts.parse(t):G.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?Z.transform(t):ts.transform(t),getAnimatableNone:t=>{let e=to.parse(t);return e.alpha=0,to.transform(e)}},ta=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,tl="number",tu="color",th=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function tc(t){let e=t.toString(),i=[],r={color:[],number:[],var:[]},n=[],s=0,o=e.replace(th,t=>(to.test(t)?(r.color.push(s),n.push(tu),i.push(to.parse(t))):t.startsWith("var(")?(r.var.push(s),n.push("var"),i.push(t)):(r.number.push(s),n.push(tl),i.push(parseFloat(t))),++s,"${}")).split("${}");return{values:i,split:o,indexes:r,types:n}}function td({split:t,types:e}){let i=t.length;return r=>{let n="";for(let s=0;s<i;s++)if(n+=t[s],void 0!==r[s]){let t=e[s];t===tl?n+=H(r[s]):t===tu?n+=to.transform(r[s]):n+=r[s]}return n}}let tp={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(W)?.length||0)+(t.match(ta)?.length||0)>0},parse:function(t){return tc(t).values},createTransformer:function(t){return td(tc(t))},getAnimatableNone:function(t){let e=tc(t);return td(e)(e.values.map((t,i)=>((t,e)=>"number"==typeof t?e?.trim().endsWith("/")?t:0:"number"==typeof t?0:to.test(t)?to.getAnimatableNone(t):t)(t,e.split[i])))}},tf=new Set(["brightness","contrast","saturate","opacity"]);function tm(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[r]=i.match(W)||[];if(!r)return t;let n=i.replace(r,""),s=+!!tf.has(e);return r!==i&&(s*=100),e+"("+s+n+")"}let tg=/\b([a-z-]*)\(.*?\)/gu,ty={...tp,getAnimatableNone:t=>{let e=t.match(tg);return e?e.map(tm).join(" "):t}},tv={...tp,getAnimatableNone:t=>{let e=tp.parse(t);return tp.createTransformer(t)(e.map(t=>"number"==typeof t?0:"object"==typeof t?{...t,alpha:1}:t))}},tb={...U,transform:Math.round},tx={borderWidth:te,borderTopWidth:te,borderRightWidth:te,borderBottomWidth:te,borderLeftWidth:te,borderRadius:te,borderTopLeftRadius:te,borderTopRightRadius:te,borderBottomRightRadius:te,borderBottomLeftRadius:te,width:te,maxWidth:te,height:te,maxHeight:te,top:te,right:te,bottom:te,left:te,inset:te,insetBlock:te,insetBlockStart:te,insetBlockEnd:te,insetInline:te,insetInlineStart:te,insetInlineEnd:te,padding:te,paddingTop:te,paddingRight:te,paddingBottom:te,paddingLeft:te,paddingBlock:te,paddingBlockStart:te,paddingBlockEnd:te,paddingInline:te,paddingInlineStart:te,paddingInlineEnd:te,margin:te,marginTop:te,marginRight:te,marginBottom:te,marginLeft:te,marginBlock:te,marginBlockStart:te,marginBlockEnd:te,marginInline:te,marginInlineStart:te,marginInlineEnd:te,fontSize:te,backgroundPositionX:te,backgroundPositionY:te,rotate:Q,rotateX:Q,rotateY:Q,rotateZ:Q,scale:z,scaleX:z,scaleY:z,scaleZ:z,skew:Q,skewX:Q,skewY:Q,distance:te,translateX:te,translateY:te,translateZ:te,x:te,y:te,z:te,perspective:te,transformPerspective:te,opacity:$,originX:tn,originY:tn,originZ:te,zIndex:tb,fillOpacity:$,strokeOpacity:$,numOctaves:tb},tw={...tx,color:to,backgroundColor:to,outlineColor:to,fill:to,stroke:to,borderColor:to,borderTopColor:to,borderRightColor:to,borderBottomColor:to,borderLeftColor:to,filter:ty,WebkitFilter:ty,mask:tv,WebkitMask:tv},tC=t=>tw[t],tk=()=>({translate:0,scale:1,origin:0,originPoint:0}),tE=()=>({x:tk(),y:tk()}),tT=()=>({min:0,max:0}),tS=()=>({x:tT(),y:tT()}),tP=t=>!!(t&&t.getVelocity),tA=new Set(["width","height","top","left","right","bottom",...B]),tR=t=>e=>e.test(t),t_=[U,te,tt,Q,tr,ti,{test:t=>"auto"===t,parse:t=>t}],tM=t=>t_.find(tR(t));var tL=t.i(21403);let tj=()=>{},tV=()=>{};tL.default;let tO=t=>e=>"string"==typeof e&&e.startsWith(t),tD=tO("--"),tN=tO("var(--"),tB=t=>!!tN(t)&&tI.test(t.split("/*")[0].trim()),tI=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function tF(t){return"string"==typeof t&&t.split("/*")[0].includes("var(--")}let tU=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,t$=t=>180*t/Math.PI,tz=t=>tW(t$(Math.atan2(t[1],t[0]))),tH={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:tz,rotateZ:tz,skewX:t=>t$(Math.atan(t[1])),skewY:t=>t$(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},tW=t=>((t%=360)<0&&(t+=360),t),tq=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),tY=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),tK={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:tq,scaleY:tY,scale:t=>(tq(t)+tY(t))/2,rotateX:t=>tW(t$(Math.atan2(t[6],t[5]))),rotateY:t=>tW(t$(Math.atan2(-t[2],t[0]))),rotateZ:tz,rotate:tz,skewX:t=>t$(Math.atan(t[4])),skewY:t=>t$(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function tX(t){return+!!t.includes("scale")}function tZ(t,e){let i,r;if(!t||"none"===t)return tX(e);let n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(n)i=tK,r=n;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=tH,r=e}if(!r)return tX(e);let s=i[e],o=r[1].split(",").map(tG);return"function"==typeof s?s(o):o[s]}function tG(t){return parseFloat(t.trim())}let tJ=t=>t===U||t===te,tQ=new Set(["x","y","z"]),t1=B.filter(t=>!tQ.has(t)),t0={width:({x:t},{paddingLeft:e="0",paddingRight:i="0",boxSizing:r})=>{let n=t.max-t.min;return"border-box"===r?n:n-parseFloat(e)-parseFloat(i)},height:({y:t},{paddingTop:e="0",paddingBottom:i="0",boxSizing:r})=>{let n=t.max-t.min;return"border-box"===r?n:n-parseFloat(e)-parseFloat(i)},top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>tZ(e,"x"),y:(t,{transform:e})=>tZ(e,"y")};t0.translateX=t0.x,t0.translateY=t0.y;let t2=new Set,t5=!1,t6=!1,t3=!1;function t4(){if(t6){let t=Array.from(t2).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e,r=(e=[],t1.forEach(i=>{let r=t.getValue(i);void 0!==r&&(e.push([i,r.get()]),r.set(+!!i.startsWith("scale")))}),e);r.length&&(i.set(t,r),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{t.getValue(e)?.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}t6=!1,t5=!1,t2.forEach(t=>t.complete(t3)),t2.clear()}function t7(){t2.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(t6=!0)})}class t8{constructor(t,e,i,r,n,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=r,this.element=n,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(t2.add(this),t5||(t5=!0,j.read(t7),j.resolveKeyframes(t4))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:r}=this;if(null===t[0]){let n=r?.get(),s=t[t.length-1];if(void 0!==n)t[0]=n;else if(i&&e){let r=i.readValue(e,s);null!=r&&(t[0]=r)}void 0===t[0]&&(t[0]=s),r&&void 0===n&&r.set(t[0])}for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),t2.delete(this)}cancel(){"scheduled"===this.state&&(t2.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let t9=new Set([ty,tv]);function et(t,e){let i=tC(t);return t9.has(i)||(i=tp),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let ee=new Set(["auto","none","0"]);class ei extends t8{constructor(t,e,i,r,n){super(t,e,i,r,n,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let r=t[i];if("string"==typeof r&&tB(r=r.trim())){let n=function t(e,i,r=1){tV(`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[n,s]=function(t){let e=tU.exec(t);if(!e)return[,];let[,i,r,n]=e;return[`--${i??r}`,n]}(e);if(!n)return;let o=window.getComputedStyle(i).getPropertyValue(n);if(o){let t=o.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)?parseFloat(t):t}return tB(s)?t(s,i,r+1):s}(r,e.current);void 0!==n&&(t[i]=n),i===t.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!tA.has(i)||2!==t.length)return;let[r,n]=t,s=tM(r),o=tM(n);if(tF(r)!==tF(n)&&t0[i]){this.needsMeasurement=!0;return}if(s!==o)if(tJ(s)&&tJ(o))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else t0[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++)(null===t[e]||function(t){if("number"==typeof t)return 0===t;if(null===t)return!0;return"none"===t||"0"===t||/^0[^.\s]+$/u.test(t)}(t[e]))&&i.push(e);i.length&&function(t,e,i){let r,n=0;for(;n<t.length&&!r;){let e=t[n];"string"==typeof e&&!ee.has(e)&&tc(e).values.length&&(r=t[n]),n++}if(r&&i)for(let n of e)t[n]=et(i,r)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=t0[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let r=e[e.length-1];void 0!==r&&t.getValue(i,r).jump(r,!1)}measureEndState(){let{element:t,name:e,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let r=t.getValue(e);r&&r.jump(this.measuredOrigin,!1);let n=i.length-1,s=i[n];i[n]=t0[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEach(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}let er=t=>1e3*t;function en(t,e){-1===t.indexOf(e)&&t.push(e)}function es(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class eo{constructor(){this.subscriptions=[]}add(t){return en(this.subscriptions,t),()=>es(this.subscriptions,t)}notify(t,e,i){let r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](t,e,i);else for(let n=0;n<r;n++){let r=this.subscriptions[n];r&&r(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function ea(t,e,i){e.startsWith("--")?t.style.setProperty(e,i):t.style[e]=i}function el(t){let e;return()=>(void 0===e&&(e=t()),e)}let eu={};function eh(t,e){let i=el(t);return()=>eu[e]??i()}let ec=eh(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),ed=t=>null!==t;function ep(t,{repeat:e,repeatType:i="loop"},r,n=1){let s=t.filter(ed),o=n<0||e&&"loop"!==i&&e%2==1?0:s.length-1;return o&&void 0!==r?r:s[o]}class ef{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}let em={layout:0,mainThread:0,waapi:0},eg=t=>Array.isArray(t)&&"number"==typeof t[0],ey=eh(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),ev=(t,e,i=10)=>{let r="",n=Math.max(Math.round(e/i),2);for(let e=0;e<n;e++)r+=Math.round(1e4*t(e/(n-1)))/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},eb=([t,e,i,r])=>`cubic-bezier(${t}, ${e}, ${i}, ${r})`,ex={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:eb([0,.65,.55,1]),circOut:eb([.55,0,1,.45]),backIn:eb([.31,.01,.66,-.59]),backOut:eb([.33,1.53,.69,.99])};function ew(t){return"function"==typeof t&&"applyToOptions"in t}class eC extends ef{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:e,name:i,keyframes:r,pseudoElement:n,allowFlatten:s=!1,finalKeyframe:o,onComplete:a}=t;this.isPseudoElement=!!n,this.allowFlatten=s,this.options=t,tV(t.type);const l=function({type:t,...e}){return ew(t)&&ey()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:r=0,duration:n=300,repeat:s=0,repeatType:o="loop",ease:a="easeOut",times:l}={},u){let h={[e]:i};l&&(h.offset=l);let c=function t(e,i){if(e)return"function"==typeof e?ey()?ev(e,i):"ease-out":eg(e)?eb(e):Array.isArray(e)?e.map(e=>t(e,i)||ex.easeOut):ex[e]}(a,n);Array.isArray(c)&&(h.easing=c);let d={delay:r,duration:n,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:s+1,direction:"reverse"===o?"alternate":"normal"};u&&(d.pseudoElement=u);let p=t.animate(h,d);return p}(e,i,r,l,n),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!n){let t=ep(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(t),ea(e,i,t),this.animation.cancel()}a?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(t){let e=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=er(t),e&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:e,rangeEnd:i,observe:r}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&ec())?(this.animation.timeline=t,e&&(this.animation.rangeStart=e),i&&(this.animation.rangeEnd=i),R):r(this)}}let ek=new Set(["opacity","clipPath","filter","transform"]),{schedule:eE}=L(queueMicrotask,!1);function eT(){e=void 0}let eS={now:()=>(void 0===e&&eS.set(O.isProcessing||_.useManualTiming?O.timestamp:performance.now()),e),set:t=>{e=t,queueMicrotask(eT)}};class eP{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=eS.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let t of this.dependents)t.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=eS.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new eo);let i=this.events[t].add(e);return"change"===t?()=>{i(),j.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return n&&n.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t;let e=eS.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let i=Math.min(this.updatedAt-this.prevUpdatedAt,30);return t=parseFloat(this.current)-parseFloat(this.prevFrameValue),i?1e3/i*t:0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function eA(t,e){return new eP(t,e)}let eR=[...t_,to,tp],e_=new WeakMap;function eM(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function eL(t){return"string"==typeof t||Array.isArray(t)}let ej=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],eV=["initial",...ej];function eO(t){return eM(t.animate)||eV.some(e=>eL(t[e]))}function eD(t){return!!(eO(t)||t.variants)}let eN={current:null},eB={current:!1},eI="u">typeof window;function eF(t){let e=[{},{}];return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function eU(t,e,i,r){if("function"==typeof e){let[n,s]=eF(r);e=e(void 0!==i?i:t.custom,n,s)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[n,s]=eF(r);e=e(void 0!==i?i:t.custom,n,s)}return e}let e$=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],ez={};class eH{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:r,skipAnimations:n,blockInitialAnimation:s,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=t8,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,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=()=>{let t=eS.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,j.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=e.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=n,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=eO(e),this.isVariantNode=eD(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...c}=this.scrapeMotionValuesFromProps(e,{},this);for(const t in c){const e=c[t];void 0!==l[t]&&tP(e)&&e.set(l[t])}}mount(t){if(this.hasBeenMounted)for(let t in this.initialValues)this.values.get(t)?.jump(this.initialValues[t]),this.latestValues[t]=this.initialValues[t];this.current=t,e_.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((t,e)=>this.bindToMotionValue(e,t)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(eB.current||function(){if(eB.current=!0,eI)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>eN.current=t.matches;t.addEventListener("change",e),e()}else eN.current=!1}(),this.shouldReduceMotion=eN.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let t in this.projection&&this.projection.unmount(),V(this.notifyUpdate),V(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){let i;if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),e.accelerate&&ek.has(t)&&this.current instanceof HTMLElement){let{factory:i,keyframes:r,times:n,ease:s,duration:o}=e.accelerate,a=new eC({element:this.current,name:t,keyframes:r,times:n,ease:s,duration:er(o)}),l=i(a);this.valueSubscriptions.set(t,()=>{l(),a.cancel()});return}let r=I.has(t);r&&this.onBindTransform&&this.onBindTransform();let n=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&j.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{n(),i&&i(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in ez){let e=ez[t];if(!e)continue;let{isEnabled:i,Feature:r}=e;if(!this.features[t]&&r&&i(this.props)&&(this.features[t]=new r(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):tS()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<e$.length;e++){let i=e$[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let r=t["on"+i];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=function(t,e,i){for(let r in e){let n=e[r],s=i[r];if(tP(n))t.addValue(r,n);else if(tP(s))t.addValue(r,eA(n,{owner:t}));else if(s!==n)if(t.hasValue(r)){let e=t.getValue(r);!0===e.liveStyle?e.jump(n):e.hasAnimated||e.set(n)}else{let e=t.getStaticValue(r);t.addValue(r,eA(void 0!==e?e:n,{owner:t}))}}for(let r in i)void 0===e[r]&&t.removeValue(r);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}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){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=eA(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){let i=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];if(null!=i){let r,n;if("string"==typeof i&&(r=i,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(r)||(n=i,/^0[^.\s]+$/u.test(n))))i=parseFloat(i);else{let r;r=i,!eR.find(tR(r))&&tp.test(e)&&(i=et(t,e))}this.setBaseTarget(t,tP(i)?i.get():i)}return tP(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let r=eU(this.props,i,this.presenceContext?.custom);r&&(e=r[t])}if(i&&void 0!==e)return e;let r=this.getBaseTargetFromProps(this.props,t);return void 0===r||tP(r)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:r}on(t,e){return this.events[t]||(this.events[t]=new eo),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){eE.render(this.render)}}class eW extends eH{constructor(){super(...arguments),this.KeyframeResolver=ei}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){let i=t.style;return i?i[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;tP(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}function eq(t){return t.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}let eY=(t,e)=>e&&"number"==typeof t?e.transform(t):t,eK={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},eX=B.length;function eZ(t,e,i){let{style:r,vars:n,transformOrigin:s}=t,o=!1,a=!1;for(let t in e){let i=e[t];if(I.has(t)){o=!0;continue}if(tD(t)){n[t]=i;continue}{let e=eY(i,tx[t]);t.startsWith("origin")?(a=!0,s[t]=e):r[t]=e}}if(!e.transform&&(o||i?r.transform=function(t,e,i){let r="",n=!0;for(let s=0;s<eX;s++){let o=B[s],a=t[o];if(void 0===a)continue;let l=!0;if("number"==typeof a)l=a===+!!o.startsWith("scale");else{let t=parseFloat(a);l=o.startsWith("scale")?1===t:0===t}if(!l||i){let t=eY(a,tx[o]);if(!l){n=!1;let e=eK[o]||o;r+=`${e}(${t}) `}i&&(e[o]=t)}}return r=r.trim(),i?r=i(e,n?"":r):n&&(r="none"),r}(e,t.transform,i):r.transform&&(r.transform="none")),a){let{originX:t="50%",originY:e="50%",originZ:i=0}=s;r.transformOrigin=`${t} ${e} ${i}`}}let eG={offset:"stroke-dashoffset",array:"stroke-dasharray"},eJ={offset:"strokeDashoffset",array:"strokeDasharray"},eQ=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function e1(t,{attrX:e,attrY:i,attrScale:r,pathLength:n,pathSpacing:s=1,pathOffset:o=0,...a},l,u,h){if(eZ(t,a,u),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:c,style:d}=t;for(let t of(c.transform&&(d.transform=c.transform,delete c.transform),(d.transform||c.transformOrigin)&&(d.transformOrigin=c.transformOrigin??"50% 50%",delete c.transformOrigin),d.transform&&(d.transformBox=h?.transformBox??"fill-box",delete c.transformBox),eQ))void 0!==c[t]&&(d[t]=c[t],delete c[t]);void 0!==e&&(c.x=e),void 0!==i&&(c.y=i),void 0!==r&&(c.scale=r),void 0!==n&&function(t,e,i=1,r=0,n=!0){t.pathLength=1;let s=n?eG:eJ;t[s.offset]=`${-r}`,t[s.array]=`${e} ${i}`}(c,n,s,o,!1)}let e0=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"]),e2=t=>"string"==typeof t&&"svg"===t.toLowerCase();function e5(t,{style:e,vars:i},r,n){let s,o=t.style;for(s in e)o[s]=e[s];for(s in n?.applyProjectionStyles(o,r),i)o.setProperty(s,i[s])}function e6(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let e3={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!te.test(t))return t;else t=parseFloat(t);let i=e6(t,e.target.x),r=e6(t,e.target.y);return`${i}% ${r}%`}},e4=(t,e,i)=>t+(e-t)*i,e7={borderRadius:{...e3,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:e3,borderTopRightRadius:e3,borderBottomLeftRadius:e3,borderBottomRightRadius:e3,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let r=tp.parse(t);if(r.length>5)return t;let n=tp.createTransformer(t),s=+("number"!=typeof r[0]),o=i.x.scale*e.x,a=i.y.scale*e.y;r[0+s]/=o,r[1+s]/=a;let l=e4(o,a,.5);return"number"==typeof r[2+s]&&(r[2+s]/=l),"number"==typeof r[3+s]&&(r[3+s]/=l),n(r)}}};function e8(t,{layout:e,layoutId:i}){return I.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!e7[t]||"opacity"===t)}function e9(t,e,i){let r=t.style,n=e?.style,s={};if(!r)return s;for(let e in r)(tP(r[e])||n&&tP(n[e])||e8(e,t)||i?.getValue(e)?.liveStyle!==void 0)&&(s[e]=r[e]);return s}function it(t,e,i){let r=e9(t,e,i);for(let i in t)(tP(t[i])||tP(e[i]))&&(r[-1!==B.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return r}class ie extends eW{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=tS}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(I.has(e)){let t=tC(e);return t&&t.default||0}return e=e0.has(e)?e:eq(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return it(t,e,i)}build(t,e,i){e1(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,r){for(let i in e5(t,e,void 0,r),e.attrs)t.setAttribute(e0.has(i)?i:eq(i),e.attrs[i])}mount(t){this.isSVGTag=e2(t.tagName),super.mount(t)}}function ii({top:t,left:e,right:i,bottom:r}){return{x:{min:e,max:i},y:{min:t,max:r}}}function ir(t){return void 0===t||1===t}function is({scale:t,scaleX:e,scaleY:i}){return!ir(t)||!ir(e)||!ir(i)}function io(t){return is(t)||ia(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function ia(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function il(t,e,i,r,n){return void 0!==n&&(t=r+n*(t-r)),r+i*(t-r)+e}function iu(t,e=0,i=1,r,n){t.min=il(t.min,e,i,r,n),t.max=il(t.max,e,i,r,n)}function ih(t,{x:e,y:i}){iu(t.x,e.translate,e.scale,e.originPoint),iu(t.y,i.translate,i.scale,i.originPoint)}function ic(t,e){t.min+=e,t.max+=e}function id(t,e,i,r,n=.5){let s=e4(t.min,t.max,n);iu(t,e,i,s,r)}function ip(t,e){return"string"==typeof t?parseFloat(t)/100*(e.max-e.min):t}function im(t,e,i){let r=i??t;id(t.x,ip(e.x,r.x),e.scaleX,e.scale,e.originX),id(t.y,ip(e.y,r.y),e.scaleY,e.scale,e.originY)}function ig(t,e){return ii(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:r.y,right:r.x}}(t.getBoundingClientRect(),e))}class iy extends eW{constructor(){super(...arguments),this.type="html",this.renderInstance=e5}readValueFromInstance(t,e){if(I.has(e))return this.projection?.isProjecting?tX(e):((t,e)=>{let{transform:i="none"}=getComputedStyle(t);return tZ(i,e)})(t,e);{let i=window.getComputedStyle(t),r=(tD(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:e}){return ig(t,e)}build(t,e,i){eZ(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return e9(t,e,i)}}let iv=["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 ib(t){if("string"!=typeof t||t.includes("-"));else if(iv.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}let ix=(0,o.createContext)({strict:!1}),iw=(0,o.createContext)({});function iC(t){return Array.isArray(t)?t.join(" "):t}let ik=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function iE(t,e,i){for(let r in e)tP(e[r])||e8(r,i)||(t[r]=e[r])}let iT=()=>({...ik(),attrs:{}}),iS=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","propagate","ignoreStrict","viewport"]);function iP(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||iS.has(t)}let iA=t=>!iP(t);try{s=(()=>{let t=Error("Cannot find module '@emotion/is-prop-valid'");throw t.code="MODULE_NOT_FOUND",t})().default,"function"==typeof s&&(iA=t=>t.startsWith("on")?!iP(t):s(t))}catch{}function iR(t){return tP(t)?t.get():t}let i_=t=>(e,i)=>{let r=(0,o.useContext)(iw),n=(0,o.useContext)(k),s=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},i,r,n){return{latestValues:function(t,e,i,r){let n={},s=r(t,{});for(let t in s)n[t]=iR(s[t]);let{initial:o,animate:a}=t,l=eO(t),u=eD(t);e&&u&&!l&&!1!==t.inherit&&(void 0===o&&(o=e.initial),void 0===a&&(a=e.animate));let h=!!i&&!1===i.initial,c=(h=h||!1===o)?a:o;if(c&&"boolean"!=typeof c&&!eM(c)){let e=Array.isArray(c)?c:[c];for(let i=0;i<e.length;i++){let r=eU(t,e[i]);if(r){let{transitionEnd:t,transition:e,...i}=r;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=h?e.length-1:0;e=e[t]}null!==e&&(n[t]=e)}for(let e in t)n[e]=t[e]}}}return n}(i,r,n,t),renderState:e()}})(t,e,r,n);return i?s():w(s)},iM=i_({scrapeMotionValuesFromProps:e9,createRenderState:ik}),iL=i_({scrapeMotionValuesFromProps:it,createRenderState:iT}),ij={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"]},iV=!1;function iO(){return!function(){if(iV)return;let t={};for(let e in ij)t[e]={isEnabled:t=>ij[e].some(e=>!!t[e])};ez=t,iV=!0}(),ez}let iD=Symbol.for("motionComponentSymbol"),iN="data-"+eq("framerAppearId"),iB=(0,o.createContext)({});function iI(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function iF(t,{forwardMotionProps:e=!1,type:i}={},r,n){r&&function(t){let e=iO();for(let i in t)e[i]={...e[i],...t[i]};ez=e}(r);let s=i?"svg"===i:ib(t),l=s?iL:iM;function u(i,r){var u;let h,c,d,p={...(0,o.useContext)(S),...i,layoutId:function({layoutId:t}){let e=(0,o.useContext)(x).id;return e&&void 0!==t?e+"-"+t:t}(i)},{isStatic:f}=p,m=function(t){let{initial:e,animate:i}=function(t,e){if(eO(t)){let{initial:e,animate:i}=t;return{initial:!1===e||eL(e)?e:void 0,animate:eL(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,o.useContext)(iw));return(0,o.useMemo)(()=>({initial:e,animate:i}),[iC(e),iC(i)])}(i),g=l(i,f);if(!f&&"u">typeof window){(0,o.useContext)(ix).strict;let e=function(t){let{drag:e,layout:i}=iO();if(!e&&!i)return{};let r={...e,...i};return{MeasureLayout:e?.isEnabled(t)||i?.isEnabled(t)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(p);h=e.MeasureLayout,m.visualElement=function(t,e,i,r,n,s){let{visualElement:a}=(0,o.useContext)(iw),l=(0,o.useContext)(ix),u=(0,o.useContext)(k),h=(0,o.useContext)(S),c=h.reducedMotion,d=h.skipAnimations,p=(0,o.useRef)(null),f=(0,o.useRef)(!1);r=r||l.renderer,!p.current&&r&&(p.current=r(t,{visualState:e,parent:a,props:i,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:c,skipAnimations:d,isSVG:s}),f.current&&p.current&&(p.current.manuallyAnimateOnMount=!0));let m=p.current,g=(0,o.useContext)(iB);m&&!m.projection&&n&&("html"===m.type||"svg"===m.type)&&function(t,e,i,r){let{layoutId:n,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutAnchor:h,layoutCrossfade:c}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:n,layout:s,alwaysMeasureLayout:!!o||a&&iI(a),visualElement:t,animationType:"string"==typeof s?s:"both",initialPromotionConfig:r,crossfade:c,layoutScroll:l,layoutRoot:u,layoutAnchor:h})}(p.current,i,n,g);let y=(0,o.useRef)(!1);(0,o.useInsertionEffect)(()=>{m&&y.current&&m.update(i,u)});let v=i[iN],b=(0,o.useRef)(!!v&&"u">typeof window&&!window.MotionHandoffIsComplete?.(v)&&window.MotionHasOptimisedAnimation?.(v));return C(()=>{f.current=!0,m&&(y.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),b.current&&m.animationState&&m.animationState.animateChanges())}),(0,o.useEffect)(()=>{m&&(!b.current&&m.animationState&&m.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(v)}),b.current=!1),m.enteringChildren=void 0)}),m}(t,g,p,n,e.ProjectionNode,s)}return(0,a.jsxs)(iw.Provider,{value:m,children:[h&&m.visualElement?(0,a.jsx)(h,{visualElement:m.visualElement,...p}):null,function(t,e,i,{latestValues:r},n,s=!1,a){let l=(a??ib(t)?function(t,e,i,r){let n=(0,o.useMemo)(()=>{let i=iT();return e1(i,e,e2(r),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};iE(e,t.style,t),n.style={...e,...n.style}}return n}:function(t,e){let i,r,n={},s=(i=t.style||{},iE(r={},i,t),Object.assign(r,function({transformTemplate:t},e){return(0,o.useMemo)(()=>{let i=ik();return eZ(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),r);return t.drag&&!1!==t.dragListener&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=s,n})(e,r,n,t),u=function(t,e,i){let r={};for(let n in t)("values"!==n||"object"!=typeof t.values)&&!tP(t[n])&&(iA(n)||!0===i&&iP(n)||!e&&!iP(n)||t.draggable&&n.startsWith("onDrag"))&&(r[n]=t[n]);return r}(e,"string"==typeof t,s),h=t!==o.Fragment?{...u,...l,ref:i}:{},{children:c}=e,d=(0,o.useMemo)(()=>tP(c)?c.get():c,[c]);return(0,o.createElement)(t,{...h,children:d})}(t,i,(u=m.visualElement,c=(0,o.useRef)(r),(0,o.useInsertionEffect)(()=>{c.current=r}),d=(0,o.useRef)(null),(0,o.useCallback)(t=>{t&&g.onMount?.(t);let e=c.current;if("function"==typeof e)if(t){let i=e(t);"function"==typeof i&&(d.current=i)}else d.current?(d.current(),d.current=null):e(t);else e&&(e.current=t);u&&(t?u.mount(t):u.unmount())},[u])),g,f,e,s)]})}u.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;let h=(0,o.forwardRef)(u);return h[iD]=t,h}class iU{constructor(t){this.isMounted=!1,this.node=t}update(){}}function i$(t,e,i){let r=t.getProps();return eU(r,e,void 0!==i?i:r.custom,t)}function iz(t,e){if(t?.inherit&&e){let{inherit:i,...r}=t;return{...e,...r}}return t}function iH(t,e){let i=t?.[e]??t?.default??t;return i!==t?iz(i,t):i}let iW=t=>Array.isArray(t);function iq(t,e){let i=t.getValue("willChange");if(tP(i)&&i.add)return i.add(e);if(!i&&_.WillChange){let i=new _.WillChange("auto");t.addValue("willChange",i),i.add(e)}}let iY=(t,e)=>i=>e(t(i)),iK=(...t)=>t.reduce(iY);function iX(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function iZ(t,e){return i=>i>0?e:t}let iG=(t,e,i)=>{let r=t*t,n=i*(e*e-r)+r;return n<0?0:Math.sqrt(n)},iJ=[G,Z,ts];function iQ(t){let e=iJ.find(e=>e.test(t));if(tj(`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let i=e.parse(t);return e===ts&&(i=function({hue:t,saturation:e,lightness:i,alpha:r}){t/=360,i/=100;let n=0,s=0,o=0;if(e/=100){let r=i<.5?i*(1+e):i+e-i*e,a=2*i-r;n=iX(a,r,t+1/3),s=iX(a,r,t),o=iX(a,r,t-1/3)}else n=s=o=i;return{red:Math.round(255*n),green:Math.round(255*s),blue:Math.round(255*o),alpha:r}}(i)),i}let i1=(t,e)=>{let i=iQ(t),r=iQ(e);if(!i||!r)return iZ(t,e);let n={...i};return t=>(n.red=iG(i.red,r.red,t),n.green=iG(i.green,r.green,t),n.blue=iG(i.blue,r.blue,t),n.alpha=e4(i.alpha,r.alpha,t),Z.transform(n))},i0=new Set(["none","hidden"]);function i2(t,e){return i=>e4(t,e,i)}function i5(t){return"number"==typeof t?i2:"string"==typeof t?tB(t)?iZ:to.test(t)?i1:i4:Array.isArray(t)?i6:"object"==typeof t?to.test(t)?i1:i3:iZ}function i6(t,e){let i=[...t],r=i.length,n=t.map((t,i)=>i5(t)(t,e[i]));return t=>{for(let e=0;e<r;e++)i[e]=n[e](t);return i}}function i3(t,e){let i={...t,...e},r={};for(let n in i)void 0!==t[n]&&void 0!==e[n]&&(r[n]=i5(t[n])(t[n],e[n]));return t=>{for(let e in r)i[e]=r[e](t);return i}}let i4=(t,e)=>{let i=tp.createTransformer(e),r=tc(t),n=tc(e);if(!(r.indexes.var.length===n.indexes.var.length&&r.indexes.color.length===n.indexes.color.length&&r.indexes.number.length>=n.indexes.number.length))return tj(`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),iZ(t,e);if(i0.has(t)&&!n.values.length||i0.has(e)&&!r.values.length)return i0.has(t)?i=>i<=0?t:e:i=>i>=1?e:t;return iK(i6(function(t,e){let i=[],r={color:0,var:0,number:0};for(let n=0;n<e.values.length;n++){let s=e.types[n],o=t.indexes[s][r[s]],a=t.values[o]??0;i[n]=a,r[s]++}return i}(r,n),n.values),i)};function i7(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?e4(t,e,i):i5(t)(t,e)}let i8=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>j.update(e,t),stop:()=>V(e),now:()=>O.isProcessing?O.timestamp:eS.now()}};function i9(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}let rt=.01,re=2,ri=.005,rr=.5;function rn(t,e){return t*Math.sqrt(1-e*e)}let rs=["duration","bounce"],ro=["stiffness","damping","mass"];function ra(t,e){return e.some(e=>void 0!==t[e])}function rl(t=.3,e=.3){let i,r,n,s,o,a,l="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:u,restDelta:h}=l,c=l.keyframes[0],d=l.keyframes[l.keyframes.length-1],p={done:!1,value:c},{stiffness:f,damping:m,mass:g,duration:y,velocity:v,isResolvedFromDuration:b}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!ra(t,ro)&&ra(t,rs))if(e.velocity=0,t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),r=i*i,n=2*F(.05,1,1-(t.bounce||0))*Math.sqrt(r);e={...e,mass:1,stiffness:r,damping:n}}else{let i=function({duration:t=800,bounce:e=.3,velocity:i=0,mass:r=1}){let n,s;tj(er(10));let o=1-e;o=F(.05,1,o),t=F(.01,10,t/1e3),o<1?(n=e=>{let r=e*o,n=r*t;return .001-(r-i)/rn(e,o)*Math.exp(-n)},s=e=>{let r=e*o*t,s=Math.pow(o,2)*Math.pow(e,2)*t,a=Math.exp(-r),l=rn(Math.pow(e,2),o);return(r*i+i-s)*a*(-n(e)+.001>0?-1:1)/l}):(n=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),s=e=>t*t*(i-e)*Math.exp(-e*t));let a=function(t,e,i){let r=i;for(let i=1;i<12;i++)r-=t(r)/e(r);return r}(n,s,5/t);if(t=er(t),isNaN(a))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(a,2)*r;return{stiffness:e,damping:2*o*Math.sqrt(r*e),duration:t}}}({...t,velocity:0});(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...l,velocity:-((l.velocity||0)/1e3)}),x=v||0,w=m/(2*Math.sqrt(f*g)),C=d-c,k=Math.sqrt(f/g)/1e3,E=5>Math.abs(C);if(u||(u=E?rt:re),h||(h=E?ri:rr),w<1)n=rn(k,w),s=(x+w*k*C)/n,i=t=>d-Math.exp(-w*k*t)*(s*Math.sin(n*t)+C*Math.cos(n*t)),o=w*k*s+C*n,a=w*k*C-s*n,r=t=>Math.exp(-w*k*t)*(o*Math.sin(n*t)+a*Math.cos(n*t));else if(1===w){i=t=>d-Math.exp(-k*t)*(C+(x+k*C)*t);let t=x+k*C;r=e=>Math.exp(-k*e)*(k*t*e-x)}else{let t=k*Math.sqrt(w*w-1);i=e=>{let i=Math.exp(-w*k*e),r=Math.min(t*e,300);return d-i*((x+w*k*C)*Math.sinh(r)+t*C*Math.cosh(r))/t};let e=(x+w*k*C)/t,n=w*k*e-C*t,s=w*k*C-e*t;r=e=>{let i=Math.exp(-w*k*e),r=Math.min(t*e,300);return i*(n*Math.sinh(r)+s*Math.cosh(r))}}let T={calculatedDuration:b&&y||null,velocity:t=>er(r(t)),next:t=>{if(!b&&w<1){let e=Math.exp(-w*k*t),i=Math.sin(n*t),r=Math.cos(n*t),l=d-e*(s*i+C*r);return p.done=Math.abs(er(e*(o*i+a*r)))<=u&&Math.abs(d-l)<=h,p.value=p.done?d:l,p}let e=i(t);return b?p.done=t>=y:p.done=Math.abs(er(r(t)))<=u&&Math.abs(d-e)<=h,p.value=p.done?d:e,p},toString:()=>{let t=Math.min(i9(T),2e4),e=ev(e=>T.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return T}function ru(t,e,i){var r,n;let s=Math.max(e-5,0);return r=i-t(s),(n=e-s)?1e3/n*r:0}function rh({keyframes:t,velocity:e=0,power:i=.8,timeConstant:r=325,bounceDamping:n=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:h}){let c,d,p=t[0],f={done:!1,value:p},m=i*e,g=p+m,y=void 0===o?g:o(g);y!==g&&(m=y-p);let v=t=>-m*Math.exp(-t/r),b=t=>y+v(t),x=t=>{let e=v(t),i=b(t);f.done=Math.abs(e)<=u,f.value=f.done?y:i},w=t=>{let e;if(e=f.value,void 0!==a&&e<a||void 0!==l&&e>l){var i;c=t,d=rl({keyframes:[f.value,(i=f.value,void 0===a?l:void 0===l||Math.abs(a-i)<Math.abs(l-i)?a:l)],velocity:ru(b,t,f.value),damping:n,stiffness:s,restDelta:u,restSpeed:h})}};return w(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==c||(e=!0,x(t),w(t)),void 0!==c&&t>=c)?d.next(t-c):(e||x(t),f)}}}rl.applyToOptions=t=>{let e=function(t,e=100,i){let r=i({...t,keyframes:[0,e]}),n=Math.min(i9(r),2e4);return{type:"keyframes",ease:t=>r.next(n*t).value/e,duration:n/1e3}}(t,100,rl);return t.ease=e.ease,t.duration=er(e.duration),t.type="keyframes",t};let rc=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function rd(t,e,i,r){return t===e&&i===r?R:n=>0===n||1===n?n:rc(function(t,e,i,r,n){let s,o,a=0;do(s=rc(o=e+(i-e)/2,r,n)-t)>0?i=o:e=o;while(Math.abs(s)>1e-7&&++a<12)return o}(n,0,1,t,i),e,r)}let rp=rd(.42,0,1,1),rf=rd(0,0,.58,1),rm=rd(.42,0,.58,1),rg=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,ry=t=>e=>1-t(1-e),rv=rd(.33,1.53,.69,.99),rb=ry(rv),rx=rg(rb),rw=t=>t>=1?1:(t*=2)<1?.5*rb(t):.5*(2-Math.pow(2,-10*(t-1))),rC=t=>1-Math.sin(Math.acos(t)),rk=ry(rC),rE=rg(rC),rT={linear:R,easeIn:rp,easeInOut:rm,easeOut:rf,circIn:rC,circInOut:rE,circOut:rk,backIn:rb,backInOut:rx,backOut:rv,anticipate:rw},rS=t=>{if(eg(t)){tV(t.length);let[e,i,r,n]=t;return rd(e,i,r,n)}return"string"==typeof t?(tV(rT[t],`Invalid easing type '${t}'`),rT[t]):t},rP=(t,e,i)=>{let r=e-t;return 0===r?1:(i-t)/r};function rA({duration:t=300,keyframes:e,times:i,ease:r="easeInOut"}){var n;let s,o=Array.isArray(r)&&"number"!=typeof r[0]?r.map(rS):rS(r),a={done:!1,value:e[0]},l=function(t,e,{clamp:i=!0,ease:r,mixer:n}={}){let s=t.length;if(tV(e.length),1===s)return()=>e[0];if(2===s&&e[0]===e[1])return()=>e[1];let o=t[0]===t[1];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());let a=function(t,e,i){let r=[],n=i||_.mix||i7,s=t.length-1;for(let i=0;i<s;i++){let s=n(t[i],t[i+1]);e&&(s=iK(Array.isArray(e)?e[i]||R:e,s)),r.push(s)}return r}(e,r,n),l=a.length,u=i=>{if(o&&i<t[0])return e[0];let r=0;if(l>1)for(;r<t.length-2&&!(i<t[r+1]);r++);let n=rP(t[r],t[r+1],i);return a[r](n)};return i?e=>u(F(t[0],t[s-1],e)):u}((n=i&&i.length===e.length?i:(!function(t,e){let i=t[t.length-1];for(let r=1;r<=e;r++){let n=rP(0,e,r);t.push(e4(i,1,n))}}(s=[0],e.length-1),s),n.map(e=>e*t)),e,{ease:Array.isArray(o)?o:e.map(()=>o||rm).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(a.value=l(e),a.done=e>=t,a)}}let rR={decay:rh,inertia:rh,tween:rA,keyframes:rA,spring:rl};function r_(t){"string"==typeof t.type&&(t.type=rR[t.type])}let rM=t=>t/100;class rL extends ef{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==eS.now()&&this.tick(eS.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},em.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;r_(t);let{type:e=rA,repeat:i=0,repeatDelay:r=0,repeatType:n,velocity:s=0}=t,{keyframes:o}=t,a=e||rA;a!==rA&&"number"!=typeof o[0]&&(this.mixKeyframes=iK(rM,i7(o[0],o[1])),o=[0,100]);let l=a({...t,keyframes:o});"mirror"===n&&(this.mirroredGenerator=a({...t,keyframes:[...o].reverse(),velocity:-s})),null===l.calculatedDuration&&(l.calculatedDuration=i9(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+r,this.totalDuration=this.resolvedDuration*(i+1)-r,this.generator=l}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let i,{generator:r,totalDuration:n,mixKeyframes:s,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(null===this.startTime)return r.next(0);let{delay:u=0,keyframes:h,repeat:c,repeatType:d,repeatDelay:p,type:f,onUpdate:m,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-n/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let y=this.currentTime-u*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?y<0:y>n;this.currentTime=Math.max(y,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=n);let b=this.currentTime,x=r;if(c){let t=Math.min(this.currentTime,n)/a,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,c+1))%2&&("reverse"===d?(i=1-i,p&&(i-=p/a)):"mirror"===d&&(x=o)),b=F(0,1,i)*a}v?(this.delayState.value=h[0],i=this.delayState):i=x.next(b),s&&!v&&(i.value=s(i.value));let{done:w}=i;v||null===l||(w=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let C=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return C&&f!==rh&&(i.value=ep(h,this.options,g,this.speed)),m&&m(i.value),C&&this.finish(),i}then(t,e){return this.finished.then(t,e)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return this.currentTime/1e3}set time(t){t=er(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){let t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);let e=this.generator.next(t).value;return ru(t=>this.generator.next(t).value,t,e)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;e&&this.driver&&this.updateTime(eS.now()),this.playbackSpeed=t,e&&this.driver&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:t=i8,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();let i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=e??i),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(eS.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,em.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}let rj={anticipate:rw,backInOut:rx,circInOut:rE};class rV extends eC{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in rj&&(t.ease=rj[t.ease])}(t),r_(t),super(t),void 0!==t.startTime&&!1!==t.autoplay&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:r,element:n,...s}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let o=new rL({...s,autoplay:!1}),a=Math.max(10,eS.now()-this.startTime),l=F(0,10,a-10),u=o.sample(a).value,{name:h}=this.options;n&&h&&ea(n,h,u),e.setWithVelocity(o.sample(Math.max(0,a-l)).value,u,l),o.stop()}}let rO=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(tp.test(t)||"0"===t)&&!t.startsWith("url("));function rD(t){t.duration=0,t.type="keyframes"}let rN=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,rB=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),rI=el(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class rF extends ef{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:r=0,repeatDelay:n=0,repeatType:s="loop",keyframes:o,name:a,motionValue:l,element:u,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=eS.now();const c={autoplay:t,delay:e,type:i,repeat:r,repeatDelay:n,repeatType:s,name:a,motionValue:l,element:u,...h},d=u?.KeyframeResolver||t8;this.keyframeResolver=new d(o,(t,e,i)=>this.onKeyframesResolved(t,e,c,!i),a,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,r){let n;this.keyframeResolver=void 0;let{name:s,type:o,velocity:a,delay:l,isHandoff:u,onUpdate:h}=i;this.resolvedAt=eS.now();let c=!0;!function(t,e,i,r){let n=t[0];if(null===n)return!1;if("display"===e||"visibility"===e)return!0;let s=t[t.length-1],o=rO(n,e),a=rO(s,e);return tj(`You are trying to animate ${e} from "${n}" to "${s}". "${o?s:n}" is not an animatable value.`),!!o&&!!a&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||ew(i))&&r)}(t,s,o,a)&&(c=!1,(_.instantAnimations||!l)&&h?.(ep(t,i,e)),t[0]=t[t.length-1],rD(i),i.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},p=c&&!u&&function(t){let{motionValue:e,name:i,repeatDelay:r,repeatType:n,damping:s,type:o,keyframes:a}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:l,transformTemplate:u}=e.owner.getProps();return rI()&&i&&(ek.has(i)||rB.has(i)&&function(t){for(let e=0;e<t.length;e++)if("string"==typeof t[e]&&rN.test(t[e]))return!0;return!1}(a))&&("transform"!==i||!u)&&!l&&!r&&"mirror"!==n&&0!==s&&"inertia"!==o}(d),f=d.motionValue?.owner?.current;if(p)try{n=new rV({...d,element:f})}catch{n=new rL(d)}else n=new rL(d);n.finished.then(()=>{this.notifyFinished()}).catch(R),this.pendingTimeline&&(this.stopTimeline=n.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=n}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),t3=!0,t7(),t4(),t3=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let rU={type:"spring",stiffness:500,damping:25,restSpeed:10},r$={type:"keyframes",duration:.8},rz={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},rH=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),rW=(t,e,i,r={},n,s)=>o=>{let a=iH(r,t)||{},l=a.delay||r.delay||0,{elapsed:u=0}=r;u-=er(l);let h={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:s?void 0:n};!function(t){for(let e in t)if(!rH.has(e))return!0;return!1}(a)&&Object.assign(h,((t,{keyframes:e})=>e.length>2?r$:I.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:rU:rz)(t,h)),h.duration&&(h.duration=er(h.duration)),h.repeatDelay&&(h.repeatDelay=er(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let c=!1;if(!1!==h.type&&(0!==h.duration||h.repeatDelay)||(rD(h),0===h.delay&&(c=!0)),(_.instantAnimations||_.skipAnimations||n?.shouldSkipAnimations)&&(c=!0,rD(h),h.delay=0),h.allowFlatten=!a.type&&!a.ease,c&&!s&&void 0!==e.get()){let t=ep(h.keyframes,a);if(void 0!==t)return void j.update(()=>{h.onUpdate(t),h.onComplete()})}return a.isSync?new rL(h):new rF(h)};function rq(t,e,{delay:i=0,transitionOverride:r,type:n}={}){let{transition:s,transitionEnd:o,...a}=e,l=t.getDefaultTransition();s=s?iz(s,l):l;let u=s?.reduceMotion;r&&(s=r);let h=[],c=n&&t.animationState&&t.animationState.getState()[n];for(let e in a){let r=t.getValue(e,t.latestValues[e]??null),n=a[e];if(void 0===n||c&&function({protectedKeys:t,needsAnimating:e},i){let r=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,r}(c,e))continue;let o={delay:i,...iH(s||{},e)},l=r.get();if(void 0!==l&&!r.isAnimating()&&!Array.isArray(n)&&n===l&&!o.velocity){j.update(()=>r.set(n));continue}let d=!1;if(window.MotionHandoffAnimation){let i=t.props[iN];if(i){let t=window.MotionHandoffAnimation(i,e,j);null!==t&&(o.startTime=t,d=!0)}}iq(t,e);let p=u??t.shouldReduceMotion;r.start(rW(e,r,n,p&&tA.has(e)?{type:!1}:o,t,d));let f=r.animation;f&&h.push(f)}if(o){let e=()=>j.update(()=>{o&&function(t,e){let{transitionEnd:i={},transition:r={},...n}=i$(t,e)||{};for(let e in n={...n,...i}){var s;let i=iW(s=n[e])?s[s.length-1]||0:s;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,eA(i))}}(t,o)});h.length?Promise.all(h).then(e):e()}return h}function rY(t,e,i,r=0,n=1){let s=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),o=t.size,a=(o-1)*r;return"function"==typeof i?i(s,o):1===n?s*r:a-s*r}function rK(t,e,i={}){let r=i$(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:n=t.getDefaultTransition()||{}}=r||{};i.transitionOverride&&(n=i.transitionOverride);let s=r?()=>Promise.all(rq(t,r,i)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(r=0)=>{let{delayChildren:s=0,staggerChildren:o,staggerDirection:a}=n;return function(t,e,i=0,r=0,n=0,s=1,o){let a=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),a.push(rK(l,e,{...o,delay:i+("function"==typeof r?0:r)+rY(t.variantChildren,l,r,n,s)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}(t,e,r,s,o,a,i)}:()=>Promise.resolve(),{when:a}=n;if(!a)return Promise.all([s(),o(i.delay)]);{let[t,e]="beforeChildren"===a?[s,o]:[o,s];return t().then(()=>e())}}let rX=eV.length;function rZ(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let r=0;r<i;r++)if(e[r]!==t[r])return!1;return!0}let rG=[...ej].reverse(),rJ=ej.length;function rQ(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function r1(){return{animate:rQ(!0),whileInView:rQ(),whileHover:rQ(),whileTap:rQ(),whileDrag:rQ(),whileFocus:rQ(),exit:rQ()}}let r0=0;function r2(t){return[t("x"),t("y")]}function r5(t,e,i,r={passive:!0}){return t.addEventListener(e,i,r),()=>t.removeEventListener(e,i)}let r6={x:!1,y:!1};function r3(t){return t.max-t.min}function r4(t,e,i,r=.5){t.origin=r,t.originPoint=e4(e.min,e.max,t.origin),t.scale=r3(i)/r3(e),t.translate=e4(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function r7(t,e,i,r){r4(t.x,e.x,i.x,r?r.originX:void 0),r4(t.y,e.y,i.y,r?r.originY:void 0)}function r8(t,e,i,r=0){t.min=(r?e4(i.min,i.max,r):i.min)+e.min,t.max=t.min+r3(e)}function r9(t,e,i,r=0){let n=r?e4(i.min,i.max,r):i.min;t.min=e.min-n,t.max=t.min+r3(e)}function nt(t,e,i,r){r9(t.x,e.x,i.x,r?.x),r9(t.y,e.y,i.y,r?.y)}function ne(t){return E(t)&&"ownerSVGElement"in t}function ni(t,e,i){if(null==t)return[];if(t instanceof EventTarget)return[t];if("string"==typeof t){let r=document;e&&(r=e.current);let n=i?.[t]??r.querySelectorAll(t);return n?Array.from(n):[]}return Array.from(t).filter(t=>null!=t)}let nr=new WeakMap,nn=(t,e,i)=>(r,n)=>n&&n[0]?n[0][t+"Size"]:ne(r)&&"getBBox"in r?r.getBBox()[e]:r[i],ns=nn("inline","width","offsetWidth"),no=nn("block","height","offsetHeight");function na({target:t,borderBoxSize:e}){nr.get(t)?.forEach(i=>{i(t,{get width(){return ns(t,e)},get height(){return no(t,e)}})})}function nl(t){t.forEach(na)}let nu=new Set;function nh(t,e){let n;return"function"==typeof t?(nu.add(t),r||(r=()=>{let t={get width(){return window.innerWidth},get height(){return window.innerHeight}};nu.forEach(e=>e(t))},window.addEventListener("resize",r)),()=>{nu.delete(t),nu.size||"function"!=typeof r||(window.removeEventListener("resize",r),r=void 0)}):(!i&&"u">typeof ResizeObserver&&(i=new ResizeObserver(nl)),(n=ni(t)).forEach(t=>{let r=nr.get(t);r||(r=new Set,nr.set(t,r)),r.add(e),i?.observe(t)}),()=>{n.forEach(t=>{let r=nr.get(t);r?.delete(e),r?.size||i?.unobserve(t)})})}let nc=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),nd=new Set(["INPUT","SELECT","TEXTAREA"]),np=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function nf(t){return{point:{x:t.pageX,y:t.pageY}}}function nm(t,e,i,r){return r5(t,e,t=>np(t)&&i(t,nf(t)),r)}let ng=({current:t})=>t?t.ownerDocument.defaultView:null,ny=(t,e)=>Math.abs(t-e),nv=new Set(["auto","scroll"]);class nb{constructor(t,e,{transformPagePoint:i,contextWindow:r=window,dragSnapToOrigin:n=!1,distanceThreshold:s=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=t=>{this.handleScroll(t.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=nx(this.lastRawMoveEventInfo,this.transformPagePoint));let i=nC(this.lastMoveEventInfo,this.history),r=null!==this.startEvent,n=(t=i.offset,e={x:0,y:0},Math.sqrt(ny(t.x,e.x)**2+ny(t.y,e.y)**2)>=this.distanceThreshold);if(!r&&!n)return;let{point:s}=i,{timestamp:o}=O;this.history.push({...s,timestamp:o});let{onStart:a,onMove:l}=this.handlers;r||(a&&a(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastRawMoveEventInfo=e,this.lastMoveEventInfo=nx(e,this.transformPagePoint),j.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:r,resumeAnimation:n}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&n&&n(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=nC("pointercancel"===t.type?this.lastMoveEventInfo:nx(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,s),r&&r(t,s)},!np(t))return;this.dragSnapToOrigin=n,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=s,this.contextWindow=r||window;const a=nx(nf(t),this.transformPagePoint),{point:l}=a,{timestamp:u}=O;this.history=[{...l,timestamp:u}];const{onSessionStart:h}=e;h&&h(t,nC(a,this.history)),this.removeListeners=iK(nm(this.contextWindow,"pointermove",this.handlePointerMove),nm(this.contextWindow,"pointerup",this.handlePointerUp),nm(this.contextWindow,"pointercancel",this.handlePointerUp)),o&&this.startScrollTracking(o)}startScrollTracking(t){let e=t.parentElement;for(;e;){let t=getComputedStyle(e);(nv.has(t.overflowX)||nv.has(t.overflowY))&&this.scrollPositions.set(e,{x:e.scrollLeft,y:e.scrollTop}),e=e.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){let e=this.scrollPositions.get(t);if(!e)return;let i=t===window,r=i?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},n={x:r.x-e.x,y:r.y-e.y};(0!==n.x||0!==n.y)&&(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=n.x,this.lastMoveEventInfo.point.y+=n.y):this.history.length>0&&(this.history[0].x-=n.x,this.history[0].y-=n.y),this.scrollPositions.set(t,r),j.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),V(this.updatePoint)}}function nx(t,e){return e?{point:e(t.point)}:t}function nw(t,e){return{x:t.x-e.x,y:t.y-e.y}}function nC({point:t},e){return{point:t,delta:nw(t,nk(e)),offset:nw(t,e[0]),velocity:function(t){if(t.length<2)return{x:0,y:0};let e=t.length-1,i=null,r=nk(t);for(;e>=0&&(i=t[e],!(r.timestamp-i.timestamp>er(.1)));)e--;if(!i)return{x:0,y:0};i===t[0]&&t.length>2&&r.timestamp-i.timestamp>2*er(.1)&&(i=t[1]);let n=(r.timestamp-i.timestamp)/1e3;if(0===n)return{x:0,y:0};let s={x:(r.x-i.x)/n,y:(r.y-i.y)/n};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}(e)}}function nk(t){return t[t.length-1]}function nE(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function nT(t,e){let i=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,r]=[r,i]),{min:i,max:r}}function nS(t,e,i){return{min:nP(t,e),max:nP(t,i)}}function nP(t,e){return"number"==typeof t?t:t[e]||0}let nA=new WeakMap;class nR{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=tS(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:i}={}){let{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;let n=t=>{e&&this.snapToCursor(nf(t).point),this.stopAnimation()},s=(t,e)=>{let{drag:i,dragPropagation:r,onDragStart:n}=this.getProps();if(i&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(r6[t])return null;else return r6[t]=!0,()=>{r6[t]=!1};return r6.x||r6.y?null:(r6.x=r6.y=!0,()=>{r6.x=r6.y=!1})}(i),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),r2(t=>{let e=this.getAxisMotionValue(t).get()||0;if(tt.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let r=i.layout.layoutBox[t];r&&(e=r3(r)*(parseFloat(e)/100))}}this.originPoint[t]=e}),n&&j.update(()=>n(t,e),!1,!0),iq(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},o=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:r,onDirectionLock:n,onDrag:s}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(r&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&n&&n(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),s&&j.update(()=>s(t,e),!1,!0)},a=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:t}=this.getProps();(t||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new nb(t,{onSessionStart:n,onStart:s,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:i,contextWindow:ng(this.visualElement),element:this.visualElement.current})}stop(t,e){let i=t||this.latestPointerEvent,r=e||this.latestPanInfo,n=this.isDragging;if(this.cancel(),!n||!r||!i)return;let{velocity:s}=r;this.startAnimation(s);let{onDragEnd:o}=this.getProps();o&&j.postRender(()=>o(i,r))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,e,i){let{drag:r}=this.getProps();if(!i||!nM(t,r,this.currentDirection))return;let n=this.getAxisMotionValue(t),s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=function(t,{min:e,max:i},r){return void 0!==e&&t<e?t=r?e4(e,t,r.min):Math.max(t,e):void 0!==i&&t>i&&(t=r?e4(i,t,r.max):Math.min(t,i)),t}(s,this.constraints[t],this.elastic[t])),n.set(s)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;t&&iI(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:r,right:n}){return{x:nE(t.x,i,n),y:nE(t.y,e,r)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:nS(t,"left","right"),y:nS(t,"top","bottom")}}(e),r!==this.constraints&&!iI(t)&&i&&this.constraints&&!this.hasMutatedConstraints&&r2(t=>{var e,r;let n;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=i.layoutBox[t],r=this.constraints[t],n={},void 0!==r.min&&(n.min=r.min-e.min),void 0!==r.max&&(n.max=r.max-e.min),n))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!iI(e))return!1;let r=e.current;tV();let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;let s=function(t,e,i){let r=ig(t,i),{scroll:n}=e;return n&&(ic(r.x,n.offset.x),ic(r.y,n.offset.y)),r}(r,n.root,this.visualElement.getTransformPagePoint()),o=(t=n.layout.layoutBox,{x:nT(t.x,s.x),y:nT(t.y,s.y)});if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=ii(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:r,dragTransition:n,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(r2(o=>{if(!nM(o,e,this.currentDirection))return;let l=a&&a[o]||{};(!0===s||s===o)&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[o]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...n,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return iq(this.visualElement,t),i.start(rW(t,i,0,e,this.visualElement,!1))}stopAnimation(){r2(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){r2(e=>{let{drag:i}=this.getProps();if(!nM(e,i,this.currentDirection))return;let{projection:r}=this.visualElement,n=this.getAxisMotionValue(e);if(r&&r.layout){let{min:i,max:s}=r.layout.layoutBox[e],o=n.get()||0;n.set(t[e]-e4(i,s,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!iI(e)||!i||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};r2(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var i,n;let s,o,a,l=e.get();r[t]=(i={min:l,max:l},n=this.constraints[t],s=.5,o=r3(i),(a=r3(n))>o?s=rP(n.min,n.max-o,i.min):o>a&&(s=rP(i.min,i.max-a,n.min)),F(0,1,s))}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),r2(e=>{if(!nM(e,t,null))return;let i=this.getAxisMotionValue(e),{min:n,max:s}=this.constraints[e];i.set(e4(n,s,r[e]))}),this.visualElement.render()}addListeners(){let t;if(!this.visualElement.current)return;nA.set(this.visualElement,this);let e=this.visualElement.current,i=nm(e,"pointerdown",t=>{let{drag:i,dragListener:r=!0}=this.getProps(),n=t.target,s=n!==e&&(nd.has(n.tagName)||!0===n.isContentEditable);i&&r&&!s&&this.start(t)}),r=()=>{var i,r,n;let s,o,{dragConstraints:a}=this.getProps();iI(a)&&a.current&&(this.constraints=this.resolveRefConstraints(),t||(i=e,r=a.current,s=nh(i,n_(n=()=>this.scalePositionWithinConstraints())),o=nh(r,n_(n)),t=()=>{s(),o()}))},{projection:n}=this.visualElement,s=n.addEventListener("measure",r);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),j.read(r);let o=r5(window,"resize",()=>this.scalePositionWithinConstraints()),a=n.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(r2(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{o(),i(),s(),a&&a(),t&&t()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:r=!1,dragConstraints:n=!1,dragElastic:s=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:r,dragConstraints:n,dragElastic:s,dragMomentum:o}}}function n_(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function nM(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}let nL=t=>(e,i)=>{t&&j.update(()=>t(e,i),!1,!0)},nj={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var nV=o;let nO=!1;class nD extends nV.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:r}=this.props,{projection:n}=t;n&&(e.group&&e.group.add(n),i&&i.register&&r&&i.register(n),nO&&n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),nj.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:r,isPresent:n}=this.props,{projection:s}=i;return s&&(s.isPresent=n,t.layoutDependency!==e&&s.setOptions({...s.options,layoutDependency:e}),nO=!0,r||t.layoutDependency!==e||void 0===e||t.isPresent!==n?s.willUpdate():this.safeToRemove(),t.isPresent!==n&&(n?s.promote():s.relegate()||j.postRender(()=>{let t=s.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:t,layoutAnchor:e}=this.props,{projection:i}=t;i&&(i.options.layoutAnchor=e,i.root.didUpdate(),eE.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:r}=t;nO=!0,r&&(r.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(r),i&&i.deregister&&i.deregister(r))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function nN(t){let[e,i]=P(),r=(0,nV.useContext)(x);return(0,a.jsx)(nD,{...t,layoutGroup:r,switchLayoutGroup:(0,nV.useContext)(iB),isPresent:e,safeToRemove:i})}let nB=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],nI=nB.length,nF=t=>"string"==typeof t?parseFloat(t):t,nU=t=>"number"==typeof t||te.test(t);function n$(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let nz=nW(0,.5,rk),nH=nW(.5,.95,R);function nW(t,e,i){return r=>r<t?0:r>e?1:i(rP(t,e,r))}function nq(t,e){t.min=e.min,t.max=e.max}function nY(t,e){nq(t.x,e.x),nq(t.y,e.y)}function nK(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function nX(t,e,i,r,n){return t-=e,t=r+1/i*(t-r),void 0!==n&&(t=r+1/n*(t-r)),t}function nZ(t,e,[i,r,n],s,o){!function(t,e=0,i=1,r=.5,n,s=t,o=t){if(tt.test(e)&&(e=parseFloat(e),e=e4(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=e4(s.min,s.max,r);t===s&&(a-=e),t.min=nX(t.min,e,i,a,n),t.max=nX(t.max,e,i,a,n)}(t,e[i],e[r],e[n],e.scale,s,o)}let nG=["x","scaleX","originX"],nJ=["y","scaleY","originY"];function nQ(t,e,i,r){nZ(t.x,e,nG,i?i.x:void 0,r?r.x:void 0),nZ(t.y,e,nJ,i?i.y:void 0,r?r.y:void 0)}function n1(t){return 0===t.translate&&1===t.scale}function n0(t){return n1(t.x)&&n1(t.y)}function n2(t,e){return t.min===e.min&&t.max===e.max}function n5(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function n6(t,e){return n5(t.x,e.x)&&n5(t.y,e.y)}function n3(t){return r3(t.x)/r3(t.y)}function n4(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class n7{constructor(){this.members=[]}add(t){en(this.members,t);for(let e=this.members.length-1;e>=0;e--){let i=this.members[e];if(i===t||i===this.lead||i===this.prevLead)continue;let r=i.instance;r&&!1!==r.isConnected||i.snapshot||(es(this.members,i),i.unmount())}t.scheduleRender()}remove(t){if(es(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){for(let e=this.members.indexOf(t)-1;e>=0;e--){let t=this.members[e];if(!1!==t.isPresent&&t.instance?.isConnected!==!1)return this.promote(t),!0}return!1}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.updateSnapshot(),t.scheduleRender();let{layoutDependency:r}=i.options,{layoutDependency:n}=t.options;(void 0===r||r!==n)&&(t.resumeFrom=i,e&&(i.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),!1===t.options.crossfade&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let n8=(t,e)=>t.depth-e.depth;class n9{constructor(){this.children=[],this.isDirty=!1}add(t){en(this.children,t),this.isDirty=!0}remove(t){es(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(n8),this.isDirty=!1,this.children.forEach(t)}}let st=["","X","Y","Z"],se=0;function si(t,e,i,r){let{latestValues:n}=e;n[t]&&(i[t]=n[t],e.setStaticValue(t,0),r&&(r[t]=0))}function sr({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:r,resetTransform:n}){return class{constructor(t={},i=e?.()){this.id=se++,this.animationId=0,this.animationCommitId=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.layoutVersion=0,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(so),this.nodes.forEach(sm),this.nodes.forEach(sg),this.nodes.forEach(sa)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new n9)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new eo),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;this.isSVG=ne(e)&&!(ne(e)&&"svg"===e.tagName),this.instance=e;let{layoutId:i,layout:r,visualElement:n}=this.options;if(n&&!n.current&&n.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||i)&&(this.isLayoutDirty=!0),t){let i,r=0,n=()=>this.root.updateBlockedByResize=!1;j.read(()=>{r=window.innerWidth}),t(e,()=>{let t=window.innerWidth;if(t!==r){let e,s;r=t,this.root.updateBlockedByResize=!0,i&&i(),e=eS.now(),s=({timestamp:t})=>{let i=t-e;i>=250&&(V(s),n())},j.setup(s,!0),i=()=>V(s),nj.hasAnimatedSinceResize&&(nj.hasAnimatedSinceResize=!1,this.nodes.forEach(sf))}})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&n&&(i||r)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let s=this.options.transition||n.getDefaultTransition()||sC,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=n.getProps(),l=!this.targetLayout||!n6(this.targetLayout,r),u=!e&&i;if(this.options.layoutRoot||this.resumeFrom||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...iH(s,"layout"),onPlay:o,onComplete:a};(n.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,u)}else e||sf(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),V(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.forEach(sy),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let r=i.props[iN];if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",j,!(t||i))}let{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&t(n)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,("string"==typeof e.latestValues.x||"string"==typeof e.latestValues.y)&&(e.isLayoutDirty=!0),e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let t=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),t&&this.nodes.forEach(sh),this.nodes.forEach(su);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(sc);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(sd),this.nodes.forEach(sp),this.nodes.forEach(sn),this.nodes.forEach(ss)):this.nodes.forEach(sc),this.clearAllSnapshots();let t=eS.now();O.delta=F(0,1e3/60,t-O.timestamp),O.timestamp=t,O.isProcessing=!0,D.update.process(O),D.preRender.process(O),D.render.process(O),O.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,eE.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(sl),this.sharedNodes.forEach(sv)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,j.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){j.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||r3(this.snapshot.measuredBox.x)||r3(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 t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=tS()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){let e=r(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!n)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!n0(this.projectionDelta),i=this.getTransformTemplate(),r=i?i(this.latestValues,""):void 0,s=r!==this.prevTransformTemplateValue;t&&this.instance&&(e||io(this.latestValues)||s)&&(n(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),r=this.removeElementScroll(i);return t&&(r=this.removeTransform(r)),sT((e=r).x),sT(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return tS();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(sP))){let{scroll:t}=this.root;t&&(ic(e.x,t.offset.x),ic(e.y,t.offset.y))}return e}removeElementScroll(t){let e=tS();if(nY(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let r=this.path[i],{scroll:n,options:s}=r;r!==this.root&&n&&s.layoutScroll&&(n.wasRoot&&nY(e,t),ic(e.x,n.offset.x),ic(e.y,n.offset.y))}return e}applyTransform(t,e=!1,i){let r=i||tS();nY(r,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];!e&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(ic(r.x,-i.scroll.offset.x),ic(r.y,-i.scroll.offset.y)),io(i.latestValues)&&im(r,i.latestValues,i.layout?.layoutBox)}return io(this.latestValues)&&im(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(t){let e=tS();nY(e,t);for(let t=0;t<this.path.length;t++){let i,r=this.path[t];io(r.latestValues)&&(r.instance&&(is(r.latestValues)&&r.updateSnapshot(),nY(i=tS(),r.measurePageBox())),nQ(e,r.latestValues,r.snapshot?.layoutBox,i))}return io(this.latestValues)&&nQ(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}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!==O.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==e;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:n}=this.options;if(!this.layout||!(r||n))return;this.resolvedRelativeTargetAt=O.timestamp;let s=this.getClosestProjectingParent();if(s&&this.linkedParentVersion!==s.layoutVersion&&!s.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&s&&s.layout?this.createRelativeTarget(s,this.layout.layoutBox,s.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=tS(),this.targetWithTransforms=tS()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var o,a,l,u;this.forceRelativeParentToResolveTarget(),o=this.target,a=this.relativeTarget,l=this.relativeParent.target,u=this.options.layoutAnchor||void 0,r8(o.x,a.x,l.x,u?.x),r8(o.y,a.y,l.y,u?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):nY(this.target,this.layout.layoutBox),ih(this.target,this.targetDelta)):nY(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&s&&!!s.resumingFrom==!!this.resumingFrom&&!s.options.layoutScroll&&s.target&&1!==this.animationProgress?this.createRelativeTarget(s,this.target,s.target):this.relativeParent=this.relativeTarget=void 0)}}getClosestProjectingParent(){if(!(!this.parent||is(this.parent.latestValues)||ia(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(t,e,i){this.relativeParent=t,this.linkedParentVersion=t.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=tS(),this.relativeTargetOrigin=tS(),nt(this.relativeTargetOrigin,e,i,this.options.layoutAnchor||void 0),nY(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===O.timestamp&&(i=!1),i)return;let{layout:r,layoutId:n}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||n))return;nY(this.layoutCorrected,this.layout.layoutBox);let s=this.treeScale.x,o=this.treeScale.y;!function(t,e,i,r=!1){let n,s,o=i.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){s=(n=i[a]).projectionDelta;let{visualElement:o}=n.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(r&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(ic(t.x,-n.scroll.offset.x),ic(t.y,-n.scroll.offset.y)),s&&(e.x*=s.x.scale,e.y*=s.y.scale,ih(t,s)),r&&io(n.latestValues)&&im(t,n.latestValues,n.layout?.layoutBox))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=tS());let{target:a}=t;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(nK(this.prevProjectionDelta.x,this.projectionDelta.x),nK(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),r7(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===s&&this.treeScale.y===o&&n4(this.projectionDelta.x,this.prevProjectionDelta.x)&&n4(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=tE(),this.projectionDelta=tE(),this.projectionDeltaWithTransform=tE()}setAnimationOrigin(t,e=!1){let i,r=this.snapshot,n=r?r.latestValues:{},s={...this.latestValues},o=tE();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=tS(),l=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,c=!!(l&&!h&&!0===this.options.crossfade&&!this.path.some(sw));this.animationProgress=0,this.mixTargetDelta=e=>{let r=e/1e3;if(sb(o.x,t.x,r),sb(o.y,t.y,r),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,p,f,m,g;nt(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),p=this.relativeTarget,f=this.relativeTargetOrigin,m=a,g=r,sx(p.x,f.x,m.x,g),sx(p.y,f.y,m.y,g),i&&(u=this.relativeTarget,d=i,n2(u.x,d.x)&&n2(u.y,d.y))&&(this.isProjectionDirty=!1),i||(i=tS()),nY(i,this.relativeTarget)}l&&(this.animationValues=s,function(t,e,i,r,n,s){n?(t.opacity=e4(0,i.opacity??1,nz(r)),t.opacityExit=e4(e.opacity??1,0,nH(r))):s&&(t.opacity=e4(e.opacity??1,i.opacity??1,r));for(let n=0;n<nI;n++){let s=nB[n],o=n$(e,s),a=n$(i,s);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||nU(o)===nU(a)?(t[s]=Math.max(e4(nF(o),nF(a),r),0),(tt.test(a)||tt.test(o))&&(t[s]+="%")):t[s]=a)}(e.rotate||i.rotate)&&(t.rotate=e4(e.rotate||0,i.rotate||0,r))}(s,n,this.latestValues,r,c,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(V(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=j.update(()=>{var e,i,r;let n;nj.hasAnimatedSinceResize=!0,em.layout++,this.motionValue||(this.motionValue=eA(0)),this.motionValue.jump(0,!1),this.currentAnimation=(e=this.motionValue,i=[0,1e3],r={...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{em.layout--},onComplete:()=>{em.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}},(n=tP(e)?e:eA(e)).start(rW("",n,i,r)),n.animation),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:r,latestValues:n}=t;if(e&&i&&r){if(this!==t&&this.layout&&r&&sS(this.options.animationType,this.layout.layoutBox,r.layoutBox)){i=this.target||tS();let e=r3(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let r=r3(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+r}nY(e,i),im(e,n),r7(this.projectionDeltaWithTransform,this.layoutCorrected,e,n)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new n7),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let r=this.getStack();r&&r.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let r={};i.z&&si("z",t,r,this.animationValues);for(let e=0;e<st.length;e++)si(`rotate${st[e]}`,t,r,this.animationValues),si(`skew${st[e]}`,t,r,this.animationValues);for(let e in t.render(),r)t.setStaticValue(e,r[e]),this.animationValues&&(this.animationValues[e]=r[e]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible){t.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=iR(e?.pointerEvents)||"",t.transform=i?i(this.latestValues,""):"none";return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=iR(e?.pointerEvents)||""),this.hasProjected&&!io(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let n=r.animationValues||r.latestValues;this.applyTransformsToTarget();let s=function(t,e,i){let r="",n=t.x.translate/e.x,s=t.y.translate/e.y,o=i?.z||0;if((n||s||o)&&(r=`translate3d(${n}px, ${s}px, ${o}px) `),(1!==e.x||1!==e.y)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:n,rotateY:s,skewX:o,skewY:a}=i;t&&(r=`perspective(${t}px) ${r}`),e&&(r+=`rotate(${e}deg) `),n&&(r+=`rotateX(${n}deg) `),s&&(r+=`rotateY(${s}deg) `),o&&(r+=`skewX(${o}deg) `),a&&(r+=`skewY(${a}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(r+=`scale(${a}, ${l})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,n);i&&(s=i(n,s)),t.transform=s;let{x:o,y:a}=this.projectionDelta;for(let e in t.transformOrigin=`${100*o.origin}% ${100*a.origin}% 0`,r.animationValues?t.opacity=r===this?n.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:n.opacityExit:t.opacity=r===this?void 0!==n.opacity?n.opacity:"":void 0!==n.opacityExit?n.opacityExit:0,e7){if(void 0===n[e])continue;let{correct:i,applyTo:o,isCSSVariable:a}=e7[e],l="none"===s?n[e]:i(n[e],r);if(o){let e=o.length;for(let i=0;i<e;i++)t[o[i]]=l}else a?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=r===this?iR(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(su),this.root.sharedNodes.clear()}}}function sn(t){t.updateLayout()}function ss(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:r}=t.layout,{animationType:n}=t.options,s=e.source!==t.layout.source;if("size"===n)r2(t=>{let r=s?e.measuredBox[t]:e.layoutBox[t],n=r3(r);r.min=i[t].min,r.max=r.min+n});else if("x"===n||"y"===n){let t="x"===n?"y":"x";nq(s?e.measuredBox[t]:e.layoutBox[t],i[t])}else sS(n,e.layoutBox,i)&&r2(r=>{let n=s?e.measuredBox[r]:e.layoutBox[r],o=r3(i[r]);n.max=n.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[r].max=t.relativeTarget[r].min+o)});let o=tE();r7(o,i,e.layoutBox);let a=tE();s?r7(a,t.applyTransform(r,!0),e.measuredBox):r7(a,i,e.layoutBox);let l=!n0(o),u=!1;if(!t.resumeFrom){let r=t.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:n,layout:s}=r;if(n&&s){let o=t.options.layoutAnchor||void 0,a=tS();nt(a,e.layoutBox,n.layoutBox,o);let l=tS();nt(l,i,s.layoutBox,o),n6(a,l)||(u=!0),r.options.layoutRoot&&(t.relativeTarget=l,t.relativeTargetOrigin=a,t.relativeParent=r)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function so(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function sa(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function sl(t){t.clearSnapshot()}function su(t){t.clearMeasurements()}function sh(t){t.isLayoutDirty=!0,t.updateLayout()}function sc(t){t.isLayoutDirty=!1}function sd(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function sp(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function sf(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function sm(t){t.resolveTargetDelta()}function sg(t){t.calcProjection()}function sy(t){t.resetSkewAndRotation()}function sv(t){t.removeLeadSnapshot()}function sb(t,e,i){t.translate=e4(e.translate,0,i),t.scale=e4(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function sx(t,e,i,r){t.min=e4(e.min,i.min,r),t.max=e4(e.max,i.max,r)}function sw(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let sC={duration:.45,ease:[.4,0,.1,1]},sk=t=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),sE=sk("applewebkit/")&&!sk("chrome/")?Math.round:R;function sT(t){t.min=sE(t.min),t.max=sE(t.max)}function sS(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(n3(e)-n3(i)))}function sP(t){return t!==t.root&&t.scroll?.wasRoot}let sA=sr({attachResizeListener:(t,e)=>r5(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),sR={current:void 0},s_=sr({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!sR.current){let t=new sA({});t.mount(window),t.setOptions({layoutScroll:!0}),sR.current=t}return sR.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function sM(t,e){let i=ni(t),r=new AbortController;return[i,{passive:!0,...e,signal:r.signal},()=>r.abort()]}function sL(t,e,i){let{props:r}=t;t.animationState&&r.whileHover&&t.animationState.setActive("whileHover","Start"===i);let n=r["onHover"+i];n&&j.postRender(()=>n(e,nf(e)))}let sj=(t,e)=>!!e&&(t===e||sj(t,e.parentElement)),sV=new WeakSet;function sO(t){return e=>{"Enter"===e.key&&t(e)}}function sD(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function sN(t){return np(t)&&!(r6.x||r6.y)}let sB=new WeakSet;function sI(t,e,i){let{props:r}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&r.whileTap&&t.animationState.setActive("whileTap","Start"===i);let n=r["onTap"+("End"===i?"":i)];n&&j.postRender(()=>n(e,nf(e)))}let sF=new WeakMap,sU=new WeakMap,s$=t=>{let e=sF.get(t.target);e&&e(t)},sz=t=>{t.forEach(s$)},sH={some:0,all:1},sW=function(t,e){if("u"<typeof Proxy)return iF;let i=new Map,r=(i,r)=>iF(i,r,t,e);return new Proxy((t,e)=>r(t,e),{get:(n,s)=>"create"===s?r:(i.has(s)||i.set(s,iF(s,void 0,t,e)),i.get(s))})}({animation:{Feature:class extends iU{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let r;if(t.notify("AnimationStart",e),Array.isArray(e))r=Promise.all(e.map(e=>rK(t,e,i)));else if("string"==typeof e)r=rK(t,e,i);else{let n="function"==typeof e?i$(t,e,i.custom):e;r=Promise.all(rq(t,n,i))}return r.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=r1(),r=!0,n=!1,s=e=>(i,r)=>{let n=i$(t,r,"exit"===e?t.presenceContext?.custom:void 0);if(n){let{transition:t,transitionEnd:e,...r}=n;i={...i,...r,...e}}return i};function o(o){let{props:a}=t,l=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;t<rX;t++){let r=eV[t],n=e.props[r];(eL(n)||!1===n)&&(i[r]=n)}return i}(t.parent)||{},u=[],h=new Set,c={},d=1/0;for(let e=0;e<rJ;e++){var p,f;let m=rG[e],g=i[m],y=void 0!==a[m]?a[m]:l[m],v=eL(y),b=m===o?g.isActive:null;!1===b&&(d=e);let x=y===l[m]&&y!==a[m]&&v;if(x&&(r||n)&&t.manuallyAnimateOnMount&&(x=!1),g.protectedKeys={...c},!g.isActive&&null===b||!y&&!g.prevProp||eM(y)||"boolean"==typeof y)continue;if("exit"===m&&g.isActive&&!0!==b){g.prevResolvedValues&&(c={...c,...g.prevResolvedValues});continue}let w=(p=g.prevProp,"string"==typeof(f=y)?f!==p:!!Array.isArray(f)&&!rZ(f,p)),C=w||m===o&&g.isActive&&!x&&v||e>d&&v,k=!1,E=Array.isArray(y)?y:[y],T=E.reduce(s(m),{});!1===b&&(T={});let{prevResolvedValues:S={}}=g,P={...S,...T},A=e=>{C=!0,h.has(e)&&(k=!0,h.delete(e)),g.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in P){let e=T[t],i=S[t];if(!c.hasOwnProperty(t))(iW(e)&&iW(i)?rZ(e,i):e===i)?void 0!==e&&h.has(t)?A(t):g.protectedKeys[t]=!0:null!=e?A(t):h.add(t)}g.prevProp=y,g.prevResolvedValues=T,g.isActive&&(c={...c,...T}),(r||n)&&t.blockInitialAnimation&&(C=!1);let R=x&&w,_=!R||k;C&&_&&u.push(...E.map(e=>{let i={type:m};if("string"==typeof e&&(r||n)&&!R&&t.manuallyAnimateOnMount&&t.parent){let{parent:r}=t,n=i$(r,e);if(r.enteringChildren&&n){let{delayChildren:e}=n.transition||{};i.delay=rY(r.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(h.size){let e={};if("boolean"!=typeof a.initial){let i=i$(t,Array.isArray(a.initial)?a.initial[0]:a.initial);i&&i.transition&&(e.transition=i.transition)}h.forEach(i=>{let r=t.getBaseTarget(i),n=t.getValue(i);n&&(n.liveStyle=!0),e[i]=r??null}),u.push({animation:e})}let m=!!u.length;return r&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(m=!1),r=!1,n=!1,m?e(u):Promise.resolve()}return{animateChanges:o,setActive:function(e,r){if(i[e].isActive===r)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,r)),i[e].isActive=r;let n=o(e);for(let t in i)i[t].protectedKeys={};return n},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=r1(),n=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();eM(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends iU{constructor(){super(...arguments),this.id=r0++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;if(t&&!1===i){if(this.isExitComplete){let{initial:t,custom:e}=this.node.getProps();if("string"==typeof t){let i=i$(this.node,t,e);if(i){let{transition:t,transitionEnd:e,...r}=i;for(let t in r)this.node.getValue(t)?.jump(r[t])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive("exit",!t);e&&!t&&r.then(()=>{this.isExitComplete=!0,e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}},inView:{Feature:class extends iU{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var t;let e;this.stopObserver?.();let{viewport:i={}}=this.node.getProps(),{root:r,margin:n,amount:s="some",once:o}=i,a={root:r?r.current:void 0,rootMargin:n,threshold:"number"==typeof s?s:sH[s]},l=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,o&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:r}=this.node.getProps(),n=e?i:r;n&&n(t)};this.stopObserver=(t=this.node.current,e=function({root:t,...e}){let i=t||document;sU.has(i)||sU.set(i,{});let r=sU.get(i),n=JSON.stringify(e);return r[n]||(r[n]=new IntersectionObserver(sz,{root:t,...e})),r[n]}(a),sF.set(t,l),e.observe(t),()=>{sF.delete(t),e.unobserve(t)})}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}},tap:{Feature:class extends iU{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:e,propagate:i}=this.node.props;this.unmount=function(t,e,i={}){let[r,n,s]=sM(t,i),o=t=>{let r=t.currentTarget;if(!sN(t)||sB.has(t))return;sV.add(r),i.stopPropagation&&sB.add(t);let s=e(r,t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),sV.has(r)&&sV.delete(r),sN(t)&&"function"==typeof s&&s(t,{success:e})},a=t=>{o(t,r===window||r===document||i.useGlobalTarget||sj(r,t.target))},l=t=>{o(t,!1)};window.addEventListener("pointerup",a,n),window.addEventListener("pointercancel",l,n)};return r.forEach(t=>{((i.useGlobalTarget?window:t).addEventListener("pointerdown",o,n),T(t))&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let r=sO(()=>{if(sV.has(i))return;sD(i,"down");let t=sO(()=>{sD(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>sD(i,"cancel"),e)});i.addEventListener("keydown",r,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",r),e)})(t,n)),nc.has(t.tagName)||!0===t.isContentEditable||t.hasAttribute("tabindex")||(t.tabIndex=0))}),s}(t,(t,e)=>(sI(this.node,e,"Start"),(t,{success:e})=>sI(this.node,t,e?"End":"Cancel")),{useGlobalTarget:e,stopPropagation:i?.tap===!1})}unmount(){}}},focus:{Feature:class extends iU{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){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=iK(r5(this.node.current,"focus",()=>this.onFocus()),r5(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends iU{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[r,n,s]=sM(t,i);return r.forEach(t=>{let i,r=!1,s=!1,o=e=>{i&&(i(e),i=void 0),t.removeEventListener("pointerleave",l)},a=t=>{r=!1,window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",a),s&&(s=!1,o(t))},l=t=>{if("touch"!==t.pointerType){if(r){s=!0;return}o(t)}};t.addEventListener("pointerenter",r=>{if("touch"===r.pointerType||r6.x||r6.y)return;s=!1;let o=e(t,r);"function"==typeof o&&(i=o,t.addEventListener("pointerleave",l,n))},n),t.addEventListener("pointerdown",()=>{r=!0,window.addEventListener("pointerup",a,n),window.addEventListener("pointercancel",a,n)},n)}),s}(t,(t,e)=>(sL(this.node,e,"Start"),t=>sL(this.node,t,"End"))))}unmount(){}}},pan:{Feature:class extends iU{constructor(){super(...arguments),this.removePointerDownListener=R}onPointerDown(t){this.session=new nb(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ng(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:r}=this.node.getProps();return{onSessionStart:nL(t),onStart:nL(e),onMove:nL(i),onEnd:(t,e)=>{delete this.session,r&&j.postRender(()=>r(t,e))}}}mount(){this.removePointerDownListener=nm(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends iU{constructor(t){super(t),this.removeGroupControls=R,this.removeListeners=R,this.controls=new nR(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||R}update(){let{dragControls:t}=this.node.getProps(),{dragControls:e}=this.node.prevProps||{};t!==e&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ProjectionNode:s_,MeasureLayout:nN},layout:{ProjectionNode:s_,MeasureLayout:nN}},(t,e)=>e.isSVG??ib(t)?new ie(e):new iy(e,{allowProjection:t!==o.Fragment}));t.s(["motion",0,sW],12086)},93739,22353,56696,t=>{"use strict";let e,i,r,n;var s=t.i(65289);function o(t,e){if("function"==typeof t)return t(e);null!=t&&(t.current=e)}function a(...t){return e=>{let i=!1,r=t.map(t=>{let r=o(t,e);return i||"function"!=typeof r||(i=!0),r});if(i)return()=>{for(let e=0;e<r.length;e++){let i=r[e];"function"==typeof i?i():o(t[e],null)}}}}t.s(["composeRefs",0,a,"useComposedRefs",0,function(...t){return s.useCallback(a(...t),t)}],22353);var l=t.i(31317),u=Symbol.for("react.lazy"),h=s[" use ".trim().toString()];function c(t){var e;return null!=t&&"object"==typeof t&&"$$typeof"in t&&t.$$typeof===u&&"_payload"in t&&"object"==typeof(e=t._payload)&&null!==e&&"then"in e}var d=((n=s.forwardRef((t,e)=>{let{children:i,...r}=t;if(c(i)&&"function"==typeof h&&(i=h(i._payload)),s.isValidElement(i)){var n;let t,o,l=(n=i,(o=(t=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?n.ref:(o=(t=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?n.props.ref:n.props.ref||n.ref),u=function(t,e){let i={...e};for(let r in e){let n=t[r],s=e[r];/^on[A-Z]/.test(r)?n&&s?i[r]=(...t)=>{let e=s(...t);return n(...t),e}:n&&(i[r]=n):"style"===r?i[r]={...n,...s}:"className"===r&&(i[r]=[n,s].filter(Boolean).join(" "))}return{...t,...i}}(r,i.props);return i.type!==s.Fragment&&(u.ref=e?a(e,l):l),s.cloneElement(i,u)}return s.Children.count(i)>1?s.Children.only(null):null})).displayName="Slot.SlotClone",e=n,(i=s.forwardRef((t,i)=>{let{children:r,...n}=t;c(r)&&"function"==typeof h&&(r=h(r._payload));let o=s.Children.toArray(r),a=o.find(m);if(a){let t=a.props.children,r=o.map(e=>e!==a?e:s.Children.count(t)>1?s.Children.only(null):s.isValidElement(t)?t.props.children:null);return(0,l.jsx)(e,{...n,ref:i,children:s.isValidElement(t)?s.cloneElement(t,void 0,r):null})}return(0,l.jsx)(e,{...n,ref:i,children:r})})).displayName="Slot.Slot",i),p=Symbol("radix.slottable"),f=((r=({children:t})=>(0,l.jsx)(l.Fragment,{children:t})).displayName="Slottable.Slottable",r.__radixId=p,r);function m(t){return s.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===p}t.s(["Slot",0,d,"Slottable",0,f],93739),t.s(["unreachable",0,(t,e=`Entered unreachable code. Received '${"string"==typeof t?t:JSON.stringify(t)}'.`)=>{throw TypeError(e)}],56696)},74185,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var r={callServer:function(){return s.callServer},createServerReference:function(){return a.createServerReference},findSourceMapURL:function(){return o.findSourceMapURL}};for(var n in r)Object.defineProperty(i,n,{enumerable:!0,get:r[n]});let s=t.r(97464),o=t.r(60023),a=t.r(35358)},4332,(t,e,i)=>{"use strict";t.i(21403),Object.defineProperty(i,"__esModule",{value:!0});var r={default:function(){return y},useLinkStatus:function(){return b}};for(var n in r)Object.defineProperty(i,n,{enumerable:!0,get:r[n]});let s=t.r(56421),o=t.r(31317),a=s._(t.r(65289)),l=t.r(55749),u=t.r(23361),h=t.r(34921),c=t.r(58543),d=t.r(1185),p=t.r(36403),f=t.r(9345),m=t.r(96939),g=t.r(87495);function y(e){var i;let r,n,s,[y,b]=(0,a.useOptimistic)(f.IDLE_LINK_STATUS),x=(0,a.useRef)(null),{href:w,as:C,children:k,prefetch:E=null,passHref:T,replace:S,shallow:P,scroll:A,onClick:R,onMouseEnter:_,onTouchStart:M,legacyBehavior:L=!1,onNavigate:j,transitionTypes:V,ref:O,unstable_dynamicOnHover:D,...N}=e;r=k,L&&("string"==typeof r||"number"==typeof r)&&(r=(0,o.jsx)("a",{children:r}));let B=a.default.useContext(u.AppRouterContext),I=!1!==E,F=!1===E?"none":!0===E?"full":"auto",U="none"!==F?"auto"===F?g.FetchStrategy.PPR:g.FetchStrategy.Full:g.FetchStrategy.PPR,$="string"==typeof(i=C||w)?i:(0,l.formatUrl)(i);if(L){if(r?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});n=a.default.Children.only(r)}let z=L?n&&"object"==typeof n&&n.ref:O,H,W=a.default.useCallback(t=>(null!==B&&(x.current=(0,f.mountLinkInstance)(t,$,B,U,I,b,H)),()=>{x.current&&((0,f.unmountLinkForCurrentNavigation)(x.current),x.current=null),(0,f.unmountPrefetchableInstance)(t)}),[I,$,B,U,b,H]),q={ref:(0,h.useMergedRef)(W,z),onClick(e){L||"function"!=typeof R||R(e),L&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),!B||e.defaultPrevented||function(e,i,r,n,s,o,l,u="none"){if("u">typeof window){let h,{nodeName:c}=e.currentTarget;if("A"===c.toUpperCase()&&((h=e.currentTarget.getAttribute("target"))&&"_self"!==h||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which)||e.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(i)){n&&(e.preventDefault(),location.replace(i));return}if(e.preventDefault(),o){let t=!1;if(o({preventDefault:()=>{t=!0}}),t)return}let{dispatchNavigateAction:d}=t.r(40702);a.default.startTransition(()=>{d(i,n?"replace":"push",!1===s?p.ScrollBehavior.NoScroll:p.ScrollBehavior.Default,r.current,l,u)})}}(e,$,x,S,A,j,V,F)},onMouseEnter(t){L||"function"!=typeof _||_(t),L&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(t),B&&I&&(0,f.onNavigationIntent)(t.currentTarget,!0===D)},onTouchStart:function(t){L||"function"!=typeof M||M(t),L&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(t),B&&I&&(0,f.onNavigationIntent)(t.currentTarget,!0===D)}};return(0,c.isAbsoluteUrl)($)?q.href=$:L&&!T&&("a"!==n.type||"href"in n.props)||(q.href=(0,d.addBasePath)($)),s=L?a.default.cloneElement(n,q):(0,o.jsx)("a",{...N,...q,children:r}),(0,o.jsx)(v.Provider,{value:y,children:s})}let v=(0,a.createContext)(f.IDLE_LINK_STATUS),b=()=>(0,a.useContext)(v);("function"==typeof i.default||"object"==typeof i.default&&null!==i.default)&&void 0===i.default.__esModule&&(Object.defineProperty(i.default,"__esModule",{value:!0}),Object.assign(i.default,i),e.exports=i.default)},34921,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"useMergedRef",{enumerable:!0,get:function(){return n}});let r=t.r(65289);function n(t,e){let i=(0,r.useRef)(null),n=(0,r.useRef)(null);return(0,r.useCallback)(r=>{if(null===r){let t=i.current;t&&(i.current=null,t());let e=n.current;e&&(n.current=null,e())}else t&&(i.current=s(t,r)),e&&(n.current=s(e,r))},[t,e])}function s(t,e){if("function"!=typeof t)return t.current=e,()=>{t.current=null};{let i=t(e);return"function"==typeof i?i:()=>t(null)}}("function"==typeof i.default||"object"==typeof i.default&&null!==i.default)&&void 0===i.default.__esModule&&(Object.defineProperty(i.default,"__esModule",{value:!0}),Object.assign(i.default,i),e.exports=i.default)},96939,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"isLocalURL",{enumerable:!0,get:function(){return s}});let r=t.r(58543),n=t.r(97378);function s(t){if(!(0,r.isAbsoluteUrl)(t))return!0;try{let e=(0,r.getLocationOrigin)(),i=new URL(t,e);return i.origin===e&&(0,n.hasBasePath)(i.pathname)}catch(t){return!1}}},39542,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var r={assign:function(){return l},searchParamsToUrlQuery:function(){return s},urlQueryToSearchParams:function(){return a}};for(var n in r)Object.defineProperty(i,n,{enumerable:!0,get:r[n]});function s(t){let e={};for(let[i,r]of t.entries()){let t=e[i];void 0===t?e[i]=r:Array.isArray(t)?t.push(r):e[i]=[t,r]}return e}function o(t){return"string"==typeof t?t:("number"!=typeof t||isNaN(t))&&"boolean"!=typeof t?"":String(t)}function a(t){let e=new URLSearchParams;for(let[i,r]of Object.entries(t))if(Array.isArray(r))for(let t of r)e.append(i,o(t));else e.set(i,o(r));return e}function l(t,...e){for(let i of e){for(let e of i.keys())t.delete(e);for(let[e,r]of i.entries())t.append(e,r)}return t}},55749,(t,e,i)=>{"use strict";t.i(21403),Object.defineProperty(i,"__esModule",{value:!0});var r={formatUrl:function(){return a},formatWithValidation:function(){return u},urlObjectKeys:function(){return l}};for(var n in r)Object.defineProperty(i,n,{enumerable:!0,get:r[n]});let s=t.r(56421)._(t.r(39542)),o=/https?|ftp|gopher|file/;function a(t){let{auth:e,hostname:i}=t,r=t.protocol||"",n=t.pathname||"",a=t.hash||"",l=t.query||"",u=!1;e=e?encodeURIComponent(e).replace(/%3A/i,":")+"@":"",t.host?u=e+t.host:i&&(u=e+(~i.indexOf(":")?`[${i}]`:i),t.port&&(u+=":"+t.port)),l&&"object"==typeof l&&(l=String(s.urlQueryToSearchParams(l)));let h=t.search||l&&`?${l}`||"";return r&&!r.endsWith(":")&&(r+=":"),t.slashes||(!r||o.test(r))&&!1!==u?(u="//"+(u||""),n&&"/"!==n[0]&&(n="/"+n)):u||(u=""),a&&"#"!==a[0]&&(a="#"+a),h&&"?"!==h[0]&&(h="?"+h),n=n.replace(/[?#]/g,encodeURIComponent),h=h.replace("#","%23"),`${r}${u}${n}${h}${a}`}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(t){return a(t)}},58543,(t,e,i)=>{"use strict";t.i(21403),Object.defineProperty(i,"__esModule",{value:!0});var r={DecodeError:function(){return y},MiddlewareNotFoundError:function(){return w},MissingStaticPage:function(){return x},NormalizeError:function(){return v},PageNotFoundError:function(){return b},SP:function(){return m},ST:function(){return g},WEB_VITALS:function(){return s},execOnce:function(){return o},getDisplayName:function(){return c},getLocationOrigin:function(){return u},getURL:function(){return h},isAbsoluteUrl:function(){return l},isResSent:function(){return d},loadGetInitialProps:function(){return f},normalizeRepeatedSlashes:function(){return p},stringifyError:function(){return C}};for(var n in r)Object.defineProperty(i,n,{enumerable:!0,get:r[n]});let s=["CLS","FCP","FID","INP","LCP","TTFB"];function o(t){let e,i=!1;return(...r)=>(i||(i=!0,e=t(...r)),e)}let a=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,l=t=>{let e=t.charCodeAt(0);return!!(e>=65&&e<=90||e>=97&&e<=122)&&a.test(t)};function u(){let{protocol:t,hostname:e,port:i}=window.location;return`${t}//${e}${i?":"+i:""}`}function h(){let{href:t}=window.location,e=u();return t.substring(e.length)}function c(t){return"string"==typeof t?t:t.displayName||t.name||"Unknown"}function d(t){return t.finished||t.headersSent}function p(t){let e=t.split("?");return e[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(e[1]?`?${e.slice(1).join("?")}`:"")}async function f(t,e){let i=e.res||e.ctx&&e.ctx.res;if(!t.getInitialProps)return e.ctx&&e.Component?{pageProps:await f(e.Component,e.ctx)}:{};let r=await t.getInitialProps(e);if(i&&d(i))return r;if(!r)throw Object.defineProperty(Error(`"${c(t)}.getInitialProps()" should resolve to an object. But found "${r}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return r}let m="u">typeof performance,g=m&&["mark","measure","getEntriesByName"].every(t=>"function"==typeof performance[t]);class y extends Error{}class v extends Error{}class b extends Error{constructor(t){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${t}`}}class x extends Error{constructor(t,e){super(),this.message=`Failed to load static file for page: ${t} ${e}`}}class w extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function C(t){return JSON.stringify({message:t.message,stack:t.stack})}},62865,(t,e,i)=>{e.exports=t.r(62832)},2884,t=>{"use strict";var e=t.i(31317),i=t.i(93739),r=t.i(65289),n=t.i(64618),s=t.i(56696);let o=r.forwardRef(({as:t="h1",size:r="3",className:s,color:o="white",children:h,weight:c="bold",...d},p)=>(0,e.jsx)(i.Slot,{className:(0,n.cn)(s,a(r),l(o),u(c)),ref:p,...d,children:(0,e.jsx)(t,{children:h})})),a=t=>{switch(t){case"1":return"text-xs";case"2":return"text-sm";case void 0:case"3":return"text-base";case"4":return"text-lg";case"5":return"text-xl tracking-[-0.16px]";case"6":return"text-2xl tracking-[-0.288px]";case"7":return"text-[28px] leading-[34px] tracking-[-0.416px]";case"8":return"text-[35px] leading-[42px] tracking-[-0.64px]";case"9":return"text-6xl leading-[73px] tracking-[-0.896px]";case"10":return["text-[38px] leading-[46px]","md:text-[70px] md:leading-[85px] tracking-[-1.024px;]"];default:return(0,s.unreachable)(t)}},l=t=>{switch(t){case"gray":return"text-slate-11";case"white":case void 0:return"text-slate-12";default:return(0,s.unreachable)(t)}},u=t=>{switch(t){case"medium":return"font-medium";case"bold":case void 0:return"font-bold";default:return(0,s.unreachable)(t)}};o.displayName="Heading",t.s(["Heading",0,o])},9334,t=>{"use strict";var e=t.i(31317),i=t.i(65289),r=t.i(37289);let n=i.forwardRef(({...t},i)=>(0,e.jsx)(r.IconBase,{ref:i,...t,children:(0,e.jsx)("path",{d:"M12 16L6 9.85966L6.84 9L12 14.2808L17.16 9L18 9.85966L12 16Z",fill:"currentColor"})}));n.displayName="IconArrowDown",t.s(["IconArrowDown",0,n])},37289,t=>{"use strict";var e=t.i(31317);let i=t.i(65289).forwardRef(({size:t=20,children:i,...r},n)=>(0,e.jsx)("svg",{fill:"none",height:t,ref:n,viewBox:"0 0 24 24",width:t,xmlns:"http://www.w3.org/2000/svg",...r,children:i}));i.displayName="IconBase",t.s(["IconBase",0,i])},20764,6470,40802,64369,t=>{"use strict";var e=t.i(31317),i=t.i(65289);t.s(["Logo",0,()=>{let t=i.useId();return(0,e.jsxs)("svg",{fill:"none",height:"30",viewBox:"0 0 119 32",width:"113",xmlns:"http://www.w3.org/2000/svg",style:{opacity:.9},children:[(0,e.jsx)("g",{clipPath:`url(#${t})`,children:(0,e.jsx)("path",{clipRule:"evenodd",d:"M24.4558 24.4853C25.2339 23.7073 25.3805 22.6549 25.2947 21.746C25.2078 20.8254 24.8697 19.8258 24.3896 18.8287C23.957 17.9302 23.3802 16.9745 22.6821 16C23.3802 15.0255 23.957 14.0698 24.3896 13.1713C24.8697 12.1742 25.2078 11.1746 25.2947 10.254C25.3805 9.34508 25.2339 8.29273 24.4558 7.51472C23.6778 6.73671 22.6255 6.59004 21.7165 6.67584C20.796 6.76273 19.7964 7.10086 18.7993 7.58094C17.9007 8.01357 16.945 8.59036 15.9706 9.28842C14.9961 8.59036 14.0404 8.01357 13.1418 7.58094C12.1447 7.10086 11.1451 6.76273 10.2246 6.67584C9.31564 6.59004 8.26329 6.73671 7.48528 7.51472C6.70727 8.29273 6.5606 9.34508 6.6464 10.254C6.7333 11.1746 7.07142 12.1742 7.5515 13.1713C7.98414 14.0698 8.56092 15.0255 9.25898 16C8.56092 16.9745 7.98414 17.9302 7.5515 18.8287C7.07142 19.8258 6.7333 20.8254 6.6464 21.746C6.5606 22.6549 6.70727 23.7073 7.48528 24.4853C8.26329 25.2633 9.31564 25.41 10.2246 25.3242C11.1451 25.2373 12.1447 24.8991 13.1418 24.4191C14.0404 23.9864 14.9961 23.4096 15.9706 22.7116C16.945 23.4096 17.9007 23.9864 18.7993 24.4191C19.7964 24.8991 20.796 25.2373 21.7165 25.3242C22.6255 25.41 23.6778 25.2633 24.4558 24.4853ZM15.9706 20.948C16.8399 20.2684 17.724 19.4874 18.591 18.6205C19.458 17.7535 20.239 16.8693 20.9186 16C20.239 15.1307 19.458 14.2465 18.591 13.3795C17.724 12.5126 16.8399 11.7316 15.9706 11.052C15.1012 11.7316 14.2171 12.5126 13.3501 13.3795C12.4831 14.2465 11.7021 15.1307 11.0225 16C11.7021 16.8693 12.4831 17.7535 13.3501 18.6205C14.2171 19.4874 15.1012 20.2684 15.9706 20.948ZM17.1498 21.8145C17.968 21.1558 18.7885 20.4195 19.5893 19.6187C20.39 18.818 21.1264 17.9974 21.7851 17.1792C23.7187 19.9919 24.4627 22.4819 23.4576 23.487C22.4524 24.4922 19.9625 23.7482 17.1498 21.8145ZM10.156 17.1792C10.8148 17.9974 11.5511 18.818 12.3518 19.6187C13.1526 20.4195 13.9731 21.1558 14.7914 21.8145C11.9786 23.7482 9.48871 24.4922 8.48355 23.487C7.47839 22.4819 8.22238 19.9919 10.156 17.1792ZM10.156 14.8208C10.8148 14.0026 11.5511 13.182 12.3518 12.3813C13.1526 11.5805 13.9731 10.8442 14.7914 10.1855C11.9786 8.25182 9.48871 7.50783 8.48355 8.51299C7.47839 9.51815 8.22238 12.0081 10.156 14.8208ZM17.1498 10.1855C17.968 10.8442 18.7885 11.5805 19.5893 12.3813C20.39 13.182 21.1264 14.0026 21.7851 14.8208C23.7187 12.0081 24.4627 9.51815 23.4576 8.51299C22.4524 7.50783 19.9625 8.25182 17.1498 10.1855Z",fill:"white",fillRule:"evenodd",stroke:"white",strokeWidth:"0.5"})}),(0,e.jsx)("path",{d:"M36 22.176V13.744H37.936L37.968 16.432L37.696 15.824C37.8133 15.3973 38.016 15.0133 38.304 14.672C38.592 14.3307 38.9227 14.064 39.296 13.872C39.68 13.6693 40.08 13.568 40.496 13.568C40.6773 13.568 40.848 13.584 41.008 13.616C41.1787 13.648 41.3173 13.6853 41.424 13.728L40.896 15.888C40.7787 15.824 40.6347 15.7707 40.464 15.728C40.2933 15.6853 40.1227 15.664 39.952 15.664C39.6853 15.664 39.4293 15.7173 39.184 15.824C38.9493 15.92 38.7413 16.0587 38.56 16.24C38.3787 16.4213 38.2347 16.6347 38.128 16.88C38.032 17.1147 37.984 17.3813 37.984 17.68V22.176H36Z",fill:"white"}),(0,e.jsx)("path",{d:"M45.907 22.336C45.0217 22.336 44.2377 22.1493 43.555 21.776C42.883 21.4027 42.355 20.896 41.971 20.256C41.5977 19.6053 41.411 18.864 41.411 18.032C41.411 17.3707 41.5177 16.768 41.731 16.224C41.9443 15.68 42.2377 15.2107 42.611 14.816C42.995 14.4107 43.4483 14.1013 43.971 13.888C44.5043 13.664 45.0857 13.552 45.715 13.552C46.2697 13.552 46.787 13.6587 47.267 13.872C47.747 14.0853 48.163 14.3787 48.515 14.752C48.867 15.1147 49.1337 15.552 49.315 16.064C49.507 16.5653 49.5977 17.1147 49.587 17.712L49.571 18.4H42.739L42.371 17.056H47.923L47.667 17.328V16.976C47.635 16.6453 47.5283 16.3573 47.347 16.112C47.1657 15.856 46.931 15.6587 46.643 15.52C46.3657 15.3707 46.0563 15.296 45.715 15.296C45.1923 15.296 44.7497 15.3973 44.387 15.6C44.035 15.8027 43.7683 16.096 43.587 16.48C43.4057 16.8533 43.315 17.3227 43.315 17.888C43.315 18.432 43.427 18.9067 43.651 19.312C43.8857 19.7173 44.211 20.032 44.627 20.256C45.0537 20.4693 45.5497 20.576 46.115 20.576C46.5097 20.576 46.8723 20.512 47.203 20.384C47.5337 20.256 47.891 20.0267 48.275 19.696L49.251 21.056C48.963 21.3227 48.6323 21.552 48.259 21.744C47.8963 21.9253 47.5123 22.0693 47.107 22.176C46.7017 22.2827 46.3017 22.336 45.907 22.336Z",fill:"white"}),(0,e.jsx)("path",{d:"M54.094 22.336C53.4007 22.336 52.7713 22.144 52.206 21.76C51.6407 21.376 51.1873 20.8533 50.846 20.192C50.5047 19.5307 50.334 18.7787 50.334 17.936C50.334 17.0933 50.5047 16.3413 50.846 15.68C51.1873 15.0187 51.6513 14.5013 52.238 14.128C52.8247 13.7547 53.486 13.568 54.222 13.568C54.6487 13.568 55.038 13.632 55.39 13.76C55.742 13.8773 56.0513 14.048 56.318 14.272C56.5847 14.496 56.8033 14.752 56.974 15.04C57.1553 15.328 57.278 15.6373 57.342 15.968L56.91 15.856V13.744H58.894V22.176H56.894V20.16L57.358 20.08C57.2833 20.368 57.1447 20.6507 56.942 20.928C56.75 21.1947 56.5047 21.4347 56.206 21.648C55.918 21.8507 55.5927 22.016 55.23 22.144C54.878 22.272 54.4993 22.336 54.094 22.336ZM54.638 20.592C55.0967 20.592 55.502 20.48 55.854 20.256C56.206 20.032 56.478 19.7227 56.67 19.328C56.8727 18.9227 56.974 18.4587 56.974 17.936C56.974 17.424 56.8727 16.9707 56.67 16.576C56.478 16.1813 56.206 15.872 55.854 15.648C55.502 15.424 55.0967 15.312 54.638 15.312C54.1793 15.312 53.774 15.424 53.422 15.648C53.0807 15.872 52.814 16.1813 52.622 16.576C52.43 16.9707 52.334 17.424 52.334 17.936C52.334 18.4587 52.43 18.9227 52.622 19.328C52.814 19.7227 53.0807 20.032 53.422 20.256C53.774 20.48 54.1793 20.592 54.638 20.592Z",fill:"white"}),(0,e.jsx)("path",{d:"M64.3716 22.336C63.5823 22.336 62.873 22.144 62.2436 21.76C61.6143 21.376 61.1183 20.8533 60.7556 20.192C60.393 19.5307 60.2116 18.784 60.2116 17.952C60.2116 17.12 60.393 16.3733 60.7556 15.712C61.1183 15.0507 61.6143 14.528 62.2436 14.144C62.873 13.76 63.5823 13.568 64.3716 13.568C65.129 13.568 65.817 13.712 66.4356 14C67.0543 14.288 67.5343 14.688 67.8756 15.2L66.7876 16.512C66.6276 16.288 66.425 16.0853 66.1796 15.904C65.9343 15.7227 65.673 15.5787 65.3956 15.472C65.1183 15.3653 64.841 15.312 64.5636 15.312C64.0943 15.312 63.673 15.4293 63.2996 15.664C62.937 15.888 62.649 16.2027 62.4356 16.608C62.2223 17.0027 62.1156 17.4507 62.1156 17.952C62.1156 18.4533 62.2223 18.9013 62.4356 19.296C62.6596 19.6907 62.9583 20.0053 63.3316 20.24C63.705 20.4747 64.121 20.592 64.5796 20.592C64.857 20.592 65.1236 20.5493 65.3796 20.464C65.6463 20.368 65.897 20.2347 66.1316 20.064C66.3663 19.8933 66.585 19.68 66.7876 19.424L67.8756 20.752C67.513 21.2213 67.0116 21.6053 66.3716 21.904C65.7423 22.192 65.0756 22.336 64.3716 22.336Z",fill:"white"}),(0,e.jsx)("path",{d:"M69.8726 22.176V11.6H71.8406V22.176H69.8726ZM68.2086 15.568V13.744H73.6806V15.568H68.2086Z",fill:"white"}),(0,e.jsx)("path",{d:"M82.9945 22.336C82.1092 22.336 81.3252 22.1493 80.6425 21.776C79.9705 21.4027 79.4425 20.896 79.0585 20.256C78.6852 19.6053 78.4985 18.864 78.4985 18.032C78.4985 17.3707 78.6052 16.768 78.8185 16.224C79.0318 15.68 79.3252 15.2107 79.6985 14.816C80.0825 14.4107 80.5358 14.1013 81.0585 13.888C81.5918 13.664 82.1732 13.552 82.8025 13.552C83.3572 13.552 83.8745 13.6587 84.3545 13.872C84.8345 14.0853 85.2505 14.3787 85.6025 14.752C85.9545 15.1147 86.2212 15.552 86.4025 16.064C86.5945 16.5653 86.6852 17.1147 86.6745 17.712L86.6585 18.4H79.8265L79.4585 17.056H85.0105L84.7545 17.328V16.976C84.7225 16.6453 84.6158 16.3573 84.4345 16.112C84.2532 15.856 84.0185 15.6587 83.7305 15.52C83.4532 15.3707 83.1438 15.296 82.8025 15.296C82.2798 15.296 81.8372 15.3973 81.4745 15.6C81.1225 15.8027 80.8558 16.096 80.6745 16.48C80.4932 16.8533 80.4025 17.3227 80.4025 17.888C80.4025 18.432 80.5145 18.9067 80.7385 19.312C80.9732 19.7173 81.2985 20.032 81.7145 20.256C82.1412 20.4693 82.6372 20.576 83.2025 20.576C83.5972 20.576 83.9598 20.512 84.2905 20.384C84.6212 20.256 84.9785 20.0267 85.3625 19.696L86.3385 21.056C86.0505 21.3227 85.7198 21.552 85.3465 21.744C84.9838 21.9253 84.5998 22.0693 84.1945 22.176C83.7892 22.2827 83.3892 22.336 82.9945 22.336Z",fill:"white"}),(0,e.jsx)("path",{d:"M87.9655 22.176V13.744H89.9015L89.9335 15.44L89.6135 15.568C89.7095 15.2907 89.8535 15.0347 90.0455 14.8C90.2375 14.5547 90.4668 14.3467 90.7335 14.176C91.0002 13.9947 91.2828 13.856 91.5815 13.76C91.8802 13.6533 92.1842 13.6 92.4935 13.6C92.9522 13.6 93.3575 13.6747 93.7095 13.824C94.0722 13.9627 94.3708 14.1867 94.6055 14.496C94.8508 14.8053 95.0322 15.2 95.1495 15.68L94.8455 15.616L94.9735 15.36C95.0908 15.104 95.2562 14.8747 95.4695 14.672C95.6828 14.4587 95.9228 14.272 96.1895 14.112C96.4562 13.9413 96.7335 13.8133 97.0215 13.728C97.3202 13.6427 97.6135 13.6 97.9015 13.6C98.5415 13.6 99.0748 13.728 99.5015 13.984C99.9282 14.24 100.248 14.6293 100.462 15.152C100.675 15.6747 100.782 16.32 100.782 17.088V22.176H98.7975V17.216C98.7975 16.7893 98.7388 16.4373 98.6215 16.16C98.5148 15.8827 98.3442 15.68 98.1095 15.552C97.8855 15.4133 97.6028 15.344 97.2615 15.344C96.9948 15.344 96.7388 15.392 96.4935 15.488C96.2588 15.5733 96.0562 15.7013 95.8855 15.872C95.7148 16.032 95.5815 16.2187 95.4855 16.432C95.3895 16.6453 95.3415 16.88 95.3415 17.136V22.176H93.3575V17.2C93.3575 16.7947 93.2988 16.4587 93.1815 16.192C93.0642 15.9147 92.8935 15.7067 92.6695 15.568C92.4455 15.4187 92.1735 15.344 91.8535 15.344C91.5868 15.344 91.3362 15.392 91.1015 15.488C90.8668 15.5733 90.6642 15.696 90.4935 15.856C90.3228 16.016 90.1895 16.2027 90.0935 16.416C89.9975 16.6293 89.9495 16.864 89.9495 17.12V22.176H87.9655Z",fill:"white"}),(0,e.jsx)("path",{d:"M105.73 22.336C105.037 22.336 104.408 22.144 103.842 21.76C103.277 21.376 102.824 20.8533 102.482 20.192C102.141 19.5307 101.97 18.7787 101.97 17.936C101.97 17.0933 102.141 16.3413 102.482 15.68C102.824 15.0187 103.288 14.5013 103.874 14.128C104.461 13.7547 105.122 13.568 105.858 13.568C106.285 13.568 106.674 13.632 107.026 13.76C107.378 13.8773 107.688 14.048 107.954 14.272C108.221 14.496 108.44 14.752 108.61 15.04C108.792 15.328 108.914 15.6373 108.978 15.968L108.546 15.856V13.744H110.53V22.176H108.53V20.16L108.994 20.08C108.92 20.368 108.781 20.6507 108.578 20.928C108.386 21.1947 108.141 21.4347 107.842 21.648C107.554 21.8507 107.229 22.016 106.866 22.144C106.514 22.272 106.136 22.336 105.73 22.336ZM106.274 20.592C106.733 20.592 107.138 20.48 107.49 20.256C107.842 20.032 108.114 19.7227 108.306 19.328C108.509 18.9227 108.61 18.4587 108.61 17.936C108.61 17.424 108.509 16.9707 108.306 16.576C108.114 16.1813 107.842 15.872 107.49 15.648C107.138 15.424 106.733 15.312 106.274 15.312C105.816 15.312 105.41 15.424 105.058 15.648C104.717 15.872 104.45 16.1813 104.258 16.576C104.066 16.9707 103.97 17.424 103.97 17.936C103.97 18.4587 104.066 18.9227 104.258 19.328C104.45 19.7227 104.717 20.032 105.058 20.256C105.41 20.48 105.816 20.592 106.274 20.592Z",fill:"white"}),(0,e.jsx)("path",{d:"M112.616 22.176V13.744H114.584V22.176H112.616ZM113.576 11.952C113.181 11.952 112.872 11.856 112.648 11.664C112.435 11.4613 112.328 11.1787 112.328 10.816C112.328 10.4747 112.44 10.1973 112.664 9.984C112.888 9.77067 113.192 9.664 113.576 9.664C113.981 9.664 114.291 9.76534 114.504 9.968C114.728 10.16 114.84 10.4427 114.84 10.816C114.84 11.1467 114.728 11.4187 114.504 11.632C114.28 11.8453 113.971 11.952 113.576 11.952Z",fill:"white"}),(0,e.jsx)("path",{d:"M116.675 22.176V10.336H118.659V22.176H116.675Z",fill:"white"}),(0,e.jsx)("defs",{children:(0,e.jsx)("clipPath",{id:t,children:(0,e.jsx)("rect",{fill:"white",height:"32",rx:"8",width:"32"})})})]})}],20764);var r=t.i(91967),n=t.i(9413),s=t.i(36567),o=t.i(18731),a=t.i(22353),l=t.i(85565),u=t.i(90816),h=t.i(11207),c="Collapsible",[d,p]=(0,n.createContextScope)(c),[f,m]=d(c),g=i.forwardRef((t,r)=>{let{__scopeCollapsible:n,open:o,defaultOpen:a,disabled:u,onOpenChange:d,...p}=t,[m,g]=(0,s.useControllableState)({prop:o,defaultProp:a??!1,onChange:d,caller:c});return(0,e.jsx)(f,{scope:n,disabled:u,contentId:(0,h.useId)(),open:m,onOpenToggle:i.useCallback(()=>g(t=>!t),[g]),children:(0,e.jsx)(l.Primitive.div,{"data-state":C(m),"data-disabled":u?"":void 0,...p,ref:r})})});g.displayName=c;var y="CollapsibleTrigger",v=i.forwardRef((t,i)=>{let{__scopeCollapsible:n,...s}=t,o=m(y,n);return(0,e.jsx)(l.Primitive.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":C(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...s,ref:i,onClick:(0,r.composeEventHandlers)(t.onClick,o.onOpenToggle)})});v.displayName=y;var b="CollapsibleContent",x=i.forwardRef((t,i)=>{let{forceMount:r,...n}=t,s=m(b,t.__scopeCollapsible);return(0,e.jsx)(u.Presence,{present:r||s.open,children:({present:t})=>(0,e.jsx)(w,{...n,ref:i,present:t})})});x.displayName=b;var w=i.forwardRef((t,r)=>{let{__scopeCollapsible:n,present:s,children:u,...h}=t,c=m(b,n),[d,p]=i.useState(s),f=i.useRef(null),g=(0,a.useComposedRefs)(r,f),y=i.useRef(0),v=y.current,x=i.useRef(0),w=x.current,k=c.open||d,E=i.useRef(k),T=i.useRef(void 0);return i.useEffect(()=>{let t=requestAnimationFrame(()=>E.current=!1);return()=>cancelAnimationFrame(t)},[]),(0,o.useLayoutEffect)(()=>{let t=f.current;if(t){T.current=T.current||{transitionDuration:t.style.transitionDuration,animationName:t.style.animationName},t.style.transitionDuration="0s",t.style.animationName="none";let e=t.getBoundingClientRect();y.current=e.height,x.current=e.width,E.current||(t.style.transitionDuration=T.current.transitionDuration,t.style.animationName=T.current.animationName),p(s)}},[c.open,s]),(0,e.jsx)(l.Primitive.div,{"data-state":C(c.open),"data-disabled":c.disabled?"":void 0,id:c.contentId,hidden:!k,...h,ref:g,style:{"--radix-collapsible-content-height":v?`${v}px`:void 0,"--radix-collapsible-content-width":w?`${w}px`:void 0,...t.style},children:k&&u})});function C(t){return t?"open":"closed"}t.s(["Content",0,x,"Root",0,g,"Trigger",0,v],6470);var k=t.i(7464),E=t.i(34174),T=t.i(36986),S=t.i(70338),P=t.i(50438),A=i,R=t.i(53942);function _(t,e){if("function"==typeof t)return t(e);null!=t&&(t.current=e)}class M extends A.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if((0,P.isHTMLElement)(e)&&t.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let t=e.offsetParent,i=(0,P.isHTMLElement)(t)&&t.offsetWidth||0,r=(0,P.isHTMLElement)(t)&&t.offsetHeight||0,n=getComputedStyle(e),s=this.props.sizeRef.current;s.height=parseFloat(n.height),s.width=parseFloat(n.width),s.top=e.offsetTop,s.left=e.offsetLeft,s.right=i-s.width-s.left,s.bottom=r-s.height-s.top}return null}componentDidUpdate(){}render(){return this.props.children}}function L({children:t,isPresent:r,anchorX:n,anchorY:s,root:o,pop:a}){let l=(0,A.useId)(),u=(0,A.useRef)(null),h=(0,A.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:c}=(0,A.useContext)(R.MotionConfigContext),d=function(...t){return i.useCallback(function(...t){return e=>{let i=!1,r=t.map(t=>{let r=_(t,e);return i||"function"!=typeof r||(i=!0),r});if(i)return()=>{for(let e=0;e<r.length;e++){let i=r[e];"function"==typeof i?i():_(t[e],null)}}}}(...t),t)}(u,t.props?.ref??t?.ref);return(0,A.useInsertionEffect)(()=>{let{width:t,height:e,top:i,left:d,right:p,bottom:f}=h.current;if(r||!1===a||!u.current||!t||!e)return;let m="left"===n?`left: ${d}`:`right: ${p}`,g="bottom"===s?`bottom: ${f}`:`top: ${i}`;u.current.dataset.motionPopId=l;let y=document.createElement("style");c&&(y.nonce=c);let v=o??document.head;return v.appendChild(y),y.sheet&&y.sheet.insertRule(`
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,91967,9413,18731,36567,60310,85565,90816,11207,7464,34174,36986,70338,50438,53942,18015,66699,12086,t=>{"use strict";let e,i,r,n;"u">typeof window&&window.document&&window.document.createElement,t.s(["composeEventHandlers",0,function(t,e,{checkForDefaultPrevented:i=!0}={}){return function(r){if(t?.(r),!1===i||!r.defaultPrevented)return e?.(r)}}],91967);var s,o=t.i(65289),a=t.i(31317);t.s(["createContextScope",0,function(t,e=[]){let i=[],r=()=>{let e=i.map(t=>o.createContext(t));return function(i){let r=i?.[t]||e;return o.useMemo(()=>({[`__scope${t}`]:{...i,[t]:r}}),[i,r])}};return r.scopeName=t,[function(e,r){let n=o.createContext(r),s=i.length;i=[...i,r];let l=e=>{let{scope:i,children:r,...l}=e,u=i?.[t]?.[s]||n,h=o.useMemo(()=>l,Object.values(l));return(0,a.jsx)(u.Provider,{value:h,children:r})};return l.displayName=e+"Provider",[l,function(i,a){let l=a?.[t]?.[s]||n,u=o.useContext(l);if(u)return u;if(void 0!==r)return r;throw Error(`\`${i}\` must be used within \`${e}\``)}]},function(...t){let e=t[0];if(1===t.length)return e;let i=()=>{let i=t.map(t=>({useScope:t(),scopeName:t.scopeName}));return function(t){let r=i.reduce((e,{useScope:i,scopeName:r})=>{let n=i(t)[`__scope${r}`];return{...e,...n}},{});return o.useMemo(()=>({[`__scope${e.scopeName}`]:r}),[r])}};return i.scopeName=e.scopeName,i}(r,...e)]}],9413);var l=globalThis?.document?o.useLayoutEffect:()=>{};t.s(["useLayoutEffect",0,l],18731),o[" useEffectEvent ".trim().toString()],o[" useInsertionEffect ".trim().toString()];var u=o[" useInsertionEffect ".trim().toString()]||l;Symbol("RADIX:SYNC_STATE"),t.s(["useControllableState",0,function({prop:t,defaultProp:e,onChange:i=()=>{},caller:r}){let[n,s,a]=function({defaultProp:t,onChange:e}){let[i,r]=o.useState(t),n=o.useRef(i),s=o.useRef(e);return u(()=>{s.current=e},[e]),o.useEffect(()=>{n.current!==i&&(s.current?.(i),n.current=i)},[i,n]),[i,r,s]}({defaultProp:e,onChange:i}),l=void 0!==t,h=l?t:n;{let e=o.useRef(void 0!==t);o.useEffect(()=>{let t=e.current;if(t!==l){let e=l?"controlled":"uncontrolled";console.warn(`${r} is changing from ${t?"controlled":"uncontrolled"} to ${e}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}e.current=l},[l,r])}return[h,o.useCallback(e=>{if(l){let i="function"==typeof e?e(t):e;i!==t&&a.current?.(i)}else s(e)},[l,t,s,a])]}],36567);var h=t.i(63582),c=t.i(22353);function d(t){var e;let i,r=(e=t,(i=o.forwardRef((t,e)=>{let{children:i,...r}=t;if(o.isValidElement(i)){var n;let t,s,a=(n=i,(s=(t=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?n.ref:(s=(t=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?n.props.ref:n.props.ref||n.ref),l=function(t,e){let i={...e};for(let r in e){let n=t[r],s=e[r];/^on[A-Z]/.test(r)?n&&s?i[r]=(...t)=>{let e=s(...t);return n(...t),e}:n&&(i[r]=n):"style"===r?i[r]={...n,...s}:"className"===r&&(i[r]=[n,s].filter(Boolean).join(" "))}return{...t,...i}}(r,i.props);return i.type!==o.Fragment&&(l.ref=e?(0,c.composeRefs)(e,a):a),o.cloneElement(i,l)}return o.Children.count(i)>1?o.Children.only(null):null})).displayName=`${e}.SlotClone`,i),n=o.forwardRef((t,e)=>{let{children:i,...n}=t,s=o.Children.toArray(i),l=s.find(f);if(l){let t=l.props.children,i=s.map(e=>e!==l?e:o.Children.count(t)>1?o.Children.only(null):o.isValidElement(t)?t.props.children:null);return(0,a.jsx)(r,{...n,ref:e,children:o.isValidElement(t)?o.cloneElement(t,void 0,i):null})}return(0,a.jsx)(r,{...n,ref:e,children:i})});return n.displayName=`${t}.Slot`,n}var p=Symbol("radix.slottable");function f(t){return o.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===p}t.s(["createSlot",0,d,"createSlottable",0,function(t){let e=({children:t})=>(0,a.jsx)(a.Fragment,{children:t});return e.displayName=`${t}.Slottable`,e.__radixId=p,e}],60310);var m=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((t,e)=>{let i=d(`Primitive.${e}`),r=o.forwardRef((t,r)=>{let{asChild:n,...s}=t;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(n?i:e,{...s,ref:r})});return r.displayName=`Primitive.${e}`,{...t,[e]:r}},{});t.s(["Primitive",0,m,"dispatchDiscreteCustomEvent",0,function(t,e){t&&h.flushSync(()=>t.dispatchEvent(e))}],85565);var g=t=>{var e;let i,r,{present:n,children:s}=t,a=function(t){var e,i;let[r,n]=o.useState(),s=o.useRef(null),a=o.useRef(t),u=o.useRef("none"),[h,c]=(e=t?"mounted":"unmounted",i={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},o.useReducer((t,e)=>i[t][e]??t,e));return o.useEffect(()=>{let t=y(s.current);u.current="mounted"===h?t:"none"},[h]),l(()=>{let e=s.current,i=a.current;if(i!==t){let r=u.current,n=y(e);t?c("MOUNT"):"none"===n||e?.display==="none"?c("UNMOUNT"):i&&r!==n?c("ANIMATION_OUT"):c("UNMOUNT"),a.current=t}},[t,c]),l(()=>{if(r){let t,e=r.ownerDocument.defaultView??window,i=i=>{let n=y(s.current).includes(CSS.escape(i.animationName));if(i.target===r&&n&&(c("ANIMATION_END"),!a.current)){let i=r.style.animationFillMode;r.style.animationFillMode="forwards",t=e.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=i)})}},n=t=>{t.target===r&&(u.current=y(s.current))};return r.addEventListener("animationstart",n),r.addEventListener("animationcancel",i),r.addEventListener("animationend",i),()=>{e.clearTimeout(t),r.removeEventListener("animationstart",n),r.removeEventListener("animationcancel",i),r.removeEventListener("animationend",i)}}c("ANIMATION_END")},[r,c]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:o.useCallback(t=>{s.current=t?getComputedStyle(t):null,n(t)},[])}}(n),u="function"==typeof s?s({present:a.isPresent}):o.Children.only(s),h=(0,c.useComposedRefs)(a.ref,(e=u,(r=(i=Object.getOwnPropertyDescriptor(e.props,"ref")?.get)&&"isReactWarning"in i&&i.isReactWarning)?e.ref:(r=(i=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in i&&i.isReactWarning)?e.props.ref:e.props.ref||e.ref));return"function"==typeof s||a.isPresent?o.cloneElement(u,{ref:h}):null};function y(t){return t?.animationName||"none"}g.displayName="Presence",t.s(["Presence",0,g],90816);var v=o[" useId ".trim().toString()]||(()=>void 0),b=0;t.s(["useId",0,function(t){let[e,i]=o.useState(v());return l(()=>{t||i(t=>t??String(b++))},[t]),t||(e?`radix-${e}`:"")}],11207);let x=(0,o.createContext)({});function w(t){let e=(0,o.useRef)(null);return null===e.current&&(e.current=t()),e.current}t.s(["LayoutGroupContext",0,x],7464),t.s(["useConstant",0,w],34174);let C="u">typeof window?o.useLayoutEffect:o.useEffect;t.s(["useIsomorphicLayoutEffect",0,C],36986);let k=(0,o.createContext)(null);function E(t){return"object"==typeof t&&null!==t}function T(t){return E(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}t.s(["PresenceContext",0,k],70338),t.s(["isHTMLElement",0,T],50438);let S=(0,o.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function P(t=!0){let e=(0,o.useContext)(k);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:r,register:n}=e,s=(0,o.useId)();(0,o.useEffect)(()=>{if(t)return n(s)},[t]);let a=(0,o.useCallback)(()=>t&&r&&r(s),[s,r,t]);return!i&&r?[!1,a]:[!0]}t.s(["MotionConfigContext",0,S],53942),t.s(["usePresence",0,P],18015);let A=(0,o.createContext)(null),R=t=>t,_={},M=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function L(t,e){let i=!1,r=!0,n={delta:0,timestamp:0,isProcessing:!1},s=()=>i=!0,o=M.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,r=new Set,n=!1,s=!1,o=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1},l=0;function u(e){o.has(e)&&(h.schedule(e),t()),l++,e(a)}let h={schedule:(t,e=!1,s=!1)=>{let a=s&&n?i:r;return e&&o.add(t),a.add(t),t},cancel:t=>{r.delete(t),o.delete(t)},process:t=>{if(a=t,n){s=!0;return}n=!0;let o=i;i=r,r=o,i.forEach(u),e,l=0,i.clear(),n=!1,s&&(s=!1,h.process(t))}};return h}(s,e?i:void 0),t),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:h,update:c,preRender:d,render:p,postRender:f}=o,m=()=>{let s=_.useManualTiming,o=s?n.timestamp:performance.now();i=!1,s||(n.delta=r?1e3/60:Math.max(Math.min(o-n.timestamp,40),1)),n.timestamp=o,n.isProcessing=!0,a.process(n),l.process(n),u.process(n),h.process(n),c.process(n),d.process(n),p.process(n),f.process(n),n.isProcessing=!1,i&&e&&(r=!1,t(m))};return{schedule:M.reduce((e,s)=>{let a=o[s];return e[s]=(e,s=!1,o=!1)=>(!i&&(i=!0,r=!0,n.isProcessing||t(m)),a.schedule(e,s,o)),e},{}),cancel:t=>{for(let e=0;e<M.length;e++)o[M[e]].cancel(t)},state:n,steps:o}}let{schedule:j,cancel:V,state:O,steps:D}=L("u">typeof requestAnimationFrame?requestAnimationFrame:R,!0),N=t=>!t.isLayoutDirty&&t.willUpdate(!1);t.s(["LayoutGroup",0,({children:t,id:e,inherit:i=!0})=>{let r=(0,o.useContext)(x),n=(0,o.useContext)(A),[s,l]=function(){let t,e=(t=(0,o.useRef)(!1),C(()=>(t.current=!0,()=>{t.current=!1}),[]),t),[i,r]=(0,o.useState)(0),n=(0,o.useCallback)(()=>{e.current&&r(i+1)},[i]);return[(0,o.useCallback)(()=>j.postRender(n),[n]),i]}(),u=(0,o.useRef)(null),h=r.id||n;if(null===u.current){let t,n,s,o;(!0==(!0===(o=i))||"id"===o)&&h&&(e=e?h+"-"+e:h),u.current={id:e,group:!0===i&&r.group||(t=new Set,n=new WeakMap,{add:e=>{t.add(e),n.set(e,e.addEventListener("willUpdate",s))},remove:e=>{t.delete(e);let i=n.get(e);i&&(i(),n.delete(e)),s()},dirty:s=()=>t.forEach(N)})}}let c=(0,o.useMemo)(()=>({...u.current,forceRender:s}),[l]);return(0,a.jsx)(x.Provider,{value:c,children:t})}],66699);let B=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],I=new Set(B),F=(t,e,i)=>i>e?e:i<t?t:i,U={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},$={...U,transform:t=>F(0,1,t)},z={...U,default:1},H=t=>Math.round(1e5*t)/1e5,W=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,q=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Y=(t,e)=>i=>!!("string"==typeof i&&q.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),K=(t,e,i)=>r=>{if("string"!=typeof r)return r;let[n,s,o,a]=r.match(W);return{[t]:parseFloat(n),[e]:parseFloat(s),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},X={...U,transform:t=>Math.round(F(0,255,t))},Z={test:Y("rgb","red"),parse:K("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:r=1})=>"rgba("+X.transform(t)+", "+X.transform(e)+", "+X.transform(i)+", "+H($.transform(r))+")"},G={test:Y("#"),parse:function(t){let e="",i="",r="",n="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),r=t.substring(5,7),n=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),r=t.substring(3,4),n=t.substring(4,5),e+=e,i+=i,r+=r,n+=n),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(r,16),alpha:n?parseInt(n,16)/255:1}},transform:Z.transform},J=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),Q=J("deg"),tt=J("%"),te=J("px"),ti=J("vh"),tr=J("vw"),tn={...tt,parse:t=>tt.parse(t)/100,transform:t=>tt.transform(100*t)},ts={test:Y("hsl","hue"),parse:K("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:r=1})=>"hsla("+Math.round(t)+", "+tt.transform(H(e))+", "+tt.transform(H(i))+", "+H($.transform(r))+")"},to={test:t=>Z.test(t)||G.test(t)||ts.test(t),parse:t=>Z.test(t)?Z.parse(t):ts.test(t)?ts.parse(t):G.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?Z.transform(t):ts.transform(t),getAnimatableNone:t=>{let e=to.parse(t);return e.alpha=0,to.transform(e)}},ta=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,tl="number",tu="color",th=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function tc(t){let e=t.toString(),i=[],r={color:[],number:[],var:[]},n=[],s=0,o=e.replace(th,t=>(to.test(t)?(r.color.push(s),n.push(tu),i.push(to.parse(t))):t.startsWith("var(")?(r.var.push(s),n.push("var"),i.push(t)):(r.number.push(s),n.push(tl),i.push(parseFloat(t))),++s,"${}")).split("${}");return{values:i,split:o,indexes:r,types:n}}function td({split:t,types:e}){let i=t.length;return r=>{let n="";for(let s=0;s<i;s++)if(n+=t[s],void 0!==r[s]){let t=e[s];t===tl?n+=H(r[s]):t===tu?n+=to.transform(r[s]):n+=r[s]}return n}}let tp={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(W)?.length||0)+(t.match(ta)?.length||0)>0},parse:function(t){return tc(t).values},createTransformer:function(t){return td(tc(t))},getAnimatableNone:function(t){let e=tc(t);return td(e)(e.values.map((t,i)=>((t,e)=>"number"==typeof t?e?.trim().endsWith("/")?t:0:"number"==typeof t?0:to.test(t)?to.getAnimatableNone(t):t)(t,e.split[i])))}},tf=new Set(["brightness","contrast","saturate","opacity"]);function tm(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[r]=i.match(W)||[];if(!r)return t;let n=i.replace(r,""),s=+!!tf.has(e);return r!==i&&(s*=100),e+"("+s+n+")"}let tg=/\b([a-z-]*)\(.*?\)/gu,ty={...tp,getAnimatableNone:t=>{let e=t.match(tg);return e?e.map(tm).join(" "):t}},tv={...tp,getAnimatableNone:t=>{let e=tp.parse(t);return tp.createTransformer(t)(e.map(t=>"number"==typeof t?0:"object"==typeof t?{...t,alpha:1}:t))}},tb={...U,transform:Math.round},tx={borderWidth:te,borderTopWidth:te,borderRightWidth:te,borderBottomWidth:te,borderLeftWidth:te,borderRadius:te,borderTopLeftRadius:te,borderTopRightRadius:te,borderBottomRightRadius:te,borderBottomLeftRadius:te,width:te,maxWidth:te,height:te,maxHeight:te,top:te,right:te,bottom:te,left:te,inset:te,insetBlock:te,insetBlockStart:te,insetBlockEnd:te,insetInline:te,insetInlineStart:te,insetInlineEnd:te,padding:te,paddingTop:te,paddingRight:te,paddingBottom:te,paddingLeft:te,paddingBlock:te,paddingBlockStart:te,paddingBlockEnd:te,paddingInline:te,paddingInlineStart:te,paddingInlineEnd:te,margin:te,marginTop:te,marginRight:te,marginBottom:te,marginLeft:te,marginBlock:te,marginBlockStart:te,marginBlockEnd:te,marginInline:te,marginInlineStart:te,marginInlineEnd:te,fontSize:te,backgroundPositionX:te,backgroundPositionY:te,rotate:Q,rotateX:Q,rotateY:Q,rotateZ:Q,scale:z,scaleX:z,scaleY:z,scaleZ:z,skew:Q,skewX:Q,skewY:Q,distance:te,translateX:te,translateY:te,translateZ:te,x:te,y:te,z:te,perspective:te,transformPerspective:te,opacity:$,originX:tn,originY:tn,originZ:te,zIndex:tb,fillOpacity:$,strokeOpacity:$,numOctaves:tb},tw={...tx,color:to,backgroundColor:to,outlineColor:to,fill:to,stroke:to,borderColor:to,borderTopColor:to,borderRightColor:to,borderBottomColor:to,borderLeftColor:to,filter:ty,WebkitFilter:ty,mask:tv,WebkitMask:tv},tC=t=>tw[t],tk=()=>({translate:0,scale:1,origin:0,originPoint:0}),tE=()=>({x:tk(),y:tk()}),tT=()=>({min:0,max:0}),tS=()=>({x:tT(),y:tT()}),tP=t=>!!(t&&t.getVelocity),tA=new Set(["width","height","top","left","right","bottom",...B]),tR=t=>e=>e.test(t),t_=[U,te,tt,Q,tr,ti,{test:t=>"auto"===t,parse:t=>t}],tM=t=>t_.find(tR(t));var tL=t.i(21403);let tj=()=>{},tV=()=>{};tL.default;let tO=t=>e=>"string"==typeof e&&e.startsWith(t),tD=tO("--"),tN=tO("var(--"),tB=t=>!!tN(t)&&tI.test(t.split("/*")[0].trim()),tI=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function tF(t){return"string"==typeof t&&t.split("/*")[0].includes("var(--")}let tU=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,t$=t=>180*t/Math.PI,tz=t=>tW(t$(Math.atan2(t[1],t[0]))),tH={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:tz,rotateZ:tz,skewX:t=>t$(Math.atan(t[1])),skewY:t=>t$(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},tW=t=>((t%=360)<0&&(t+=360),t),tq=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),tY=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),tK={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:tq,scaleY:tY,scale:t=>(tq(t)+tY(t))/2,rotateX:t=>tW(t$(Math.atan2(t[6],t[5]))),rotateY:t=>tW(t$(Math.atan2(-t[2],t[0]))),rotateZ:tz,rotate:tz,skewX:t=>t$(Math.atan(t[4])),skewY:t=>t$(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function tX(t){return+!!t.includes("scale")}function tZ(t,e){let i,r;if(!t||"none"===t)return tX(e);let n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(n)i=tK,r=n;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=tH,r=e}if(!r)return tX(e);let s=i[e],o=r[1].split(",").map(tG);return"function"==typeof s?s(o):o[s]}function tG(t){return parseFloat(t.trim())}let tJ=t=>t===U||t===te,tQ=new Set(["x","y","z"]),t1=B.filter(t=>!tQ.has(t)),t0={width:({x:t},{paddingLeft:e="0",paddingRight:i="0",boxSizing:r})=>{let n=t.max-t.min;return"border-box"===r?n:n-parseFloat(e)-parseFloat(i)},height:({y:t},{paddingTop:e="0",paddingBottom:i="0",boxSizing:r})=>{let n=t.max-t.min;return"border-box"===r?n:n-parseFloat(e)-parseFloat(i)},top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>tZ(e,"x"),y:(t,{transform:e})=>tZ(e,"y")};t0.translateX=t0.x,t0.translateY=t0.y;let t2=new Set,t5=!1,t6=!1,t3=!1;function t4(){if(t6){let t=Array.from(t2).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e,r=(e=[],t1.forEach(i=>{let r=t.getValue(i);void 0!==r&&(e.push([i,r.get()]),r.set(+!!i.startsWith("scale")))}),e);r.length&&(i.set(t,r),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{t.getValue(e)?.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}t6=!1,t5=!1,t2.forEach(t=>t.complete(t3)),t2.clear()}function t8(){t2.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(t6=!0)})}class t7{constructor(t,e,i,r,n,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=r,this.element=n,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(t2.add(this),t5||(t5=!0,j.read(t8),j.resolveKeyframes(t4))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:r}=this;if(null===t[0]){let n=r?.get(),s=t[t.length-1];if(void 0!==n)t[0]=n;else if(i&&e){let r=i.readValue(e,s);null!=r&&(t[0]=r)}void 0===t[0]&&(t[0]=s),r&&void 0===n&&r.set(t[0])}for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),t2.delete(this)}cancel(){"scheduled"===this.state&&(t2.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let t9=new Set([ty,tv]);function et(t,e){let i=tC(t);return t9.has(i)||(i=tp),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let ee=new Set(["auto","none","0"]);class ei extends t7{constructor(t,e,i,r,n){super(t,e,i,r,n,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let r=t[i];if("string"==typeof r&&tB(r=r.trim())){let n=function t(e,i,r=1){tV(`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[n,s]=function(t){let e=tU.exec(t);if(!e)return[,];let[,i,r,n]=e;return[`--${i??r}`,n]}(e);if(!n)return;let o=window.getComputedStyle(i).getPropertyValue(n);if(o){let t=o.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)?parseFloat(t):t}return tB(s)?t(s,i,r+1):s}(r,e.current);void 0!==n&&(t[i]=n),i===t.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!tA.has(i)||2!==t.length)return;let[r,n]=t,s=tM(r),o=tM(n);if(tF(r)!==tF(n)&&t0[i]){this.needsMeasurement=!0;return}if(s!==o)if(tJ(s)&&tJ(o))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else t0[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++)(null===t[e]||function(t){if("number"==typeof t)return 0===t;if(null===t)return!0;return"none"===t||"0"===t||/^0[^.\s]+$/u.test(t)}(t[e]))&&i.push(e);i.length&&function(t,e,i){let r,n=0;for(;n<t.length&&!r;){let e=t[n];"string"==typeof e&&!ee.has(e)&&tc(e).values.length&&(r=t[n]),n++}if(r&&i)for(let n of e)t[n]=et(i,r)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=t0[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let r=e[e.length-1];void 0!==r&&t.getValue(i,r).jump(r,!1)}measureEndState(){let{element:t,name:e,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let r=t.getValue(e);r&&r.jump(this.measuredOrigin,!1);let n=i.length-1,s=i[n];i[n]=t0[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEach(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}let er=t=>1e3*t;function en(t,e){-1===t.indexOf(e)&&t.push(e)}function es(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class eo{constructor(){this.subscriptions=[]}add(t){return en(this.subscriptions,t),()=>es(this.subscriptions,t)}notify(t,e,i){let r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](t,e,i);else for(let n=0;n<r;n++){let r=this.subscriptions[n];r&&r(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function ea(t,e,i){e.startsWith("--")?t.style.setProperty(e,i):t.style[e]=i}function el(t){let e;return()=>(void 0===e&&(e=t()),e)}let eu={};function eh(t,e){let i=el(t);return()=>eu[e]??i()}let ec=eh(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),ed=t=>null!==t;function ep(t,{repeat:e,repeatType:i="loop"},r,n=1){let s=t.filter(ed),o=n<0||e&&"loop"!==i&&e%2==1?0:s.length-1;return o&&void 0!==r?r:s[o]}class ef{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}let em={layout:0,mainThread:0,waapi:0},eg=t=>Array.isArray(t)&&"number"==typeof t[0],ey=eh(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),ev=(t,e,i=10)=>{let r="",n=Math.max(Math.round(e/i),2);for(let e=0;e<n;e++)r+=Math.round(1e4*t(e/(n-1)))/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},eb=([t,e,i,r])=>`cubic-bezier(${t}, ${e}, ${i}, ${r})`,ex={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:eb([0,.65,.55,1]),circOut:eb([.55,0,1,.45]),backIn:eb([.31,.01,.66,-.59]),backOut:eb([.33,1.53,.69,.99])};function ew(t){return"function"==typeof t&&"applyToOptions"in t}class eC extends ef{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:e,name:i,keyframes:r,pseudoElement:n,allowFlatten:s=!1,finalKeyframe:o,onComplete:a}=t;this.isPseudoElement=!!n,this.allowFlatten=s,this.options=t,tV(t.type);const l=function({type:t,...e}){return ew(t)&&ey()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:r=0,duration:n=300,repeat:s=0,repeatType:o="loop",ease:a="easeOut",times:l}={},u){let h={[e]:i};l&&(h.offset=l);let c=function t(e,i){if(e)return"function"==typeof e?ey()?ev(e,i):"ease-out":eg(e)?eb(e):Array.isArray(e)?e.map(e=>t(e,i)||ex.easeOut):ex[e]}(a,n);Array.isArray(c)&&(h.easing=c);let d={delay:r,duration:n,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:s+1,direction:"reverse"===o?"alternate":"normal"};u&&(d.pseudoElement=u);let p=t.animate(h,d);return p}(e,i,r,l,n),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!n){let t=ep(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(t),ea(e,i,t),this.animation.cancel()}a?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(t){let e=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=er(t),e&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:e,rangeEnd:i,observe:r}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&ec())?(this.animation.timeline=t,e&&(this.animation.rangeStart=e),i&&(this.animation.rangeEnd=i),R):r(this)}}let ek=new Set(["opacity","clipPath","filter","transform"]),{schedule:eE}=L(queueMicrotask,!1);function eT(){e=void 0}let eS={now:()=>(void 0===e&&eS.set(O.isProcessing||_.useManualTiming?O.timestamp:performance.now()),e),set:t=>{e=t,queueMicrotask(eT)}};class eP{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=eS.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let t of this.dependents)t.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=eS.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new eo);let i=this.events[t].add(e);return"change"===t?()=>{i(),j.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return n&&n.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t;let e=eS.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let i=Math.min(this.updatedAt-this.prevUpdatedAt,30);return t=parseFloat(this.current)-parseFloat(this.prevFrameValue),i?1e3/i*t:0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function eA(t,e){return new eP(t,e)}let eR=[...t_,to,tp],e_=new WeakMap;function eM(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function eL(t){return"string"==typeof t||Array.isArray(t)}let ej=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],eV=["initial",...ej];function eO(t){return eM(t.animate)||eV.some(e=>eL(t[e]))}function eD(t){return!!(eO(t)||t.variants)}let eN={current:null},eB={current:!1},eI="u">typeof window;function eF(t){let e=[{},{}];return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function eU(t,e,i,r){if("function"==typeof e){let[n,s]=eF(r);e=e(void 0!==i?i:t.custom,n,s)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[n,s]=eF(r);e=e(void 0!==i?i:t.custom,n,s)}return e}let e$=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],ez={};class eH{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:r,skipAnimations:n,blockInitialAnimation:s,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=t7,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,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=()=>{let t=eS.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,j.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=e.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=n,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=eO(e),this.isVariantNode=eD(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...c}=this.scrapeMotionValuesFromProps(e,{},this);for(const t in c){const e=c[t];void 0!==l[t]&&tP(e)&&e.set(l[t])}}mount(t){if(this.hasBeenMounted)for(let t in this.initialValues)this.values.get(t)?.jump(this.initialValues[t]),this.latestValues[t]=this.initialValues[t];this.current=t,e_.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((t,e)=>this.bindToMotionValue(e,t)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(eB.current||function(){if(eB.current=!0,eI)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>eN.current=t.matches;t.addEventListener("change",e),e()}else eN.current=!1}(),this.shouldReduceMotion=eN.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let t in this.projection&&this.projection.unmount(),V(this.notifyUpdate),V(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){let i;if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),e.accelerate&&ek.has(t)&&this.current instanceof HTMLElement){let{factory:i,keyframes:r,times:n,ease:s,duration:o}=e.accelerate,a=new eC({element:this.current,name:t,keyframes:r,times:n,ease:s,duration:er(o)}),l=i(a);this.valueSubscriptions.set(t,()=>{l(),a.cancel()});return}let r=I.has(t);r&&this.onBindTransform&&this.onBindTransform();let n=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&j.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{n(),i&&i(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in ez){let e=ez[t];if(!e)continue;let{isEnabled:i,Feature:r}=e;if(!this.features[t]&&r&&i(this.props)&&(this.features[t]=new r(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):tS()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<e$.length;e++){let i=e$[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let r=t["on"+i];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=function(t,e,i){for(let r in e){let n=e[r],s=i[r];if(tP(n))t.addValue(r,n);else if(tP(s))t.addValue(r,eA(n,{owner:t}));else if(s!==n)if(t.hasValue(r)){let e=t.getValue(r);!0===e.liveStyle?e.jump(n):e.hasAnimated||e.set(n)}else{let e=t.getStaticValue(r);t.addValue(r,eA(void 0!==e?e:n,{owner:t}))}}for(let r in i)void 0===e[r]&&t.removeValue(r);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}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){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=eA(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){let i=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];if(null!=i){let r,n;if("string"==typeof i&&(r=i,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(r)||(n=i,/^0[^.\s]+$/u.test(n))))i=parseFloat(i);else{let r;r=i,!eR.find(tR(r))&&tp.test(e)&&(i=et(t,e))}this.setBaseTarget(t,tP(i)?i.get():i)}return tP(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let r=eU(this.props,i,this.presenceContext?.custom);r&&(e=r[t])}if(i&&void 0!==e)return e;let r=this.getBaseTargetFromProps(this.props,t);return void 0===r||tP(r)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:r}on(t,e){return this.events[t]||(this.events[t]=new eo),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){eE.render(this.render)}}class eW extends eH{constructor(){super(...arguments),this.KeyframeResolver=ei}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){let i=t.style;return i?i[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;tP(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}function eq(t){return t.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}let eY=(t,e)=>e&&"number"==typeof t?e.transform(t):t,eK={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},eX=B.length;function eZ(t,e,i){let{style:r,vars:n,transformOrigin:s}=t,o=!1,a=!1;for(let t in e){let i=e[t];if(I.has(t)){o=!0;continue}if(tD(t)){n[t]=i;continue}{let e=eY(i,tx[t]);t.startsWith("origin")?(a=!0,s[t]=e):r[t]=e}}if(!e.transform&&(o||i?r.transform=function(t,e,i){let r="",n=!0;for(let s=0;s<eX;s++){let o=B[s],a=t[o];if(void 0===a)continue;let l=!0;if("number"==typeof a)l=a===+!!o.startsWith("scale");else{let t=parseFloat(a);l=o.startsWith("scale")?1===t:0===t}if(!l||i){let t=eY(a,tx[o]);if(!l){n=!1;let e=eK[o]||o;r+=`${e}(${t}) `}i&&(e[o]=t)}}return r=r.trim(),i?r=i(e,n?"":r):n&&(r="none"),r}(e,t.transform,i):r.transform&&(r.transform="none")),a){let{originX:t="50%",originY:e="50%",originZ:i=0}=s;r.transformOrigin=`${t} ${e} ${i}`}}let eG={offset:"stroke-dashoffset",array:"stroke-dasharray"},eJ={offset:"strokeDashoffset",array:"strokeDasharray"},eQ=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function e1(t,{attrX:e,attrY:i,attrScale:r,pathLength:n,pathSpacing:s=1,pathOffset:o=0,...a},l,u,h){if(eZ(t,a,u),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:c,style:d}=t;for(let t of(c.transform&&(d.transform=c.transform,delete c.transform),(d.transform||c.transformOrigin)&&(d.transformOrigin=c.transformOrigin??"50% 50%",delete c.transformOrigin),d.transform&&(d.transformBox=h?.transformBox??"fill-box",delete c.transformBox),eQ))void 0!==c[t]&&(d[t]=c[t],delete c[t]);void 0!==e&&(c.x=e),void 0!==i&&(c.y=i),void 0!==r&&(c.scale=r),void 0!==n&&function(t,e,i=1,r=0,n=!0){t.pathLength=1;let s=n?eG:eJ;t[s.offset]=`${-r}`,t[s.array]=`${e} ${i}`}(c,n,s,o,!1)}let e0=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"]),e2=t=>"string"==typeof t&&"svg"===t.toLowerCase();function e5(t,{style:e,vars:i},r,n){let s,o=t.style;for(s in e)o[s]=e[s];for(s in n?.applyProjectionStyles(o,r),i)o.setProperty(s,i[s])}function e6(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let e3={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!te.test(t))return t;else t=parseFloat(t);let i=e6(t,e.target.x),r=e6(t,e.target.y);return`${i}% ${r}%`}},e4=(t,e,i)=>t+(e-t)*i,e8={borderRadius:{...e3,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:e3,borderTopRightRadius:e3,borderBottomLeftRadius:e3,borderBottomRightRadius:e3,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let r=tp.parse(t);if(r.length>5)return t;let n=tp.createTransformer(t),s=+("number"!=typeof r[0]),o=i.x.scale*e.x,a=i.y.scale*e.y;r[0+s]/=o,r[1+s]/=a;let l=e4(o,a,.5);return"number"==typeof r[2+s]&&(r[2+s]/=l),"number"==typeof r[3+s]&&(r[3+s]/=l),n(r)}}};function e7(t,{layout:e,layoutId:i}){return I.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!e8[t]||"opacity"===t)}function e9(t,e,i){let r=t.style,n=e?.style,s={};if(!r)return s;for(let e in r)(tP(r[e])||n&&tP(n[e])||e7(e,t)||i?.getValue(e)?.liveStyle!==void 0)&&(s[e]=r[e]);return s}function it(t,e,i){let r=e9(t,e,i);for(let i in t)(tP(t[i])||tP(e[i]))&&(r[-1!==B.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return r}class ie extends eW{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=tS}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(I.has(e)){let t=tC(e);return t&&t.default||0}return e=e0.has(e)?e:eq(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return it(t,e,i)}build(t,e,i){e1(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,r){for(let i in e5(t,e,void 0,r),e.attrs)t.setAttribute(e0.has(i)?i:eq(i),e.attrs[i])}mount(t){this.isSVGTag=e2(t.tagName),super.mount(t)}}function ii({top:t,left:e,right:i,bottom:r}){return{x:{min:e,max:i},y:{min:t,max:r}}}function ir(t){return void 0===t||1===t}function is({scale:t,scaleX:e,scaleY:i}){return!ir(t)||!ir(e)||!ir(i)}function io(t){return is(t)||ia(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function ia(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function il(t,e,i,r,n){return void 0!==n&&(t=r+n*(t-r)),r+i*(t-r)+e}function iu(t,e=0,i=1,r,n){t.min=il(t.min,e,i,r,n),t.max=il(t.max,e,i,r,n)}function ih(t,{x:e,y:i}){iu(t.x,e.translate,e.scale,e.originPoint),iu(t.y,i.translate,i.scale,i.originPoint)}function ic(t,e){t.min+=e,t.max+=e}function id(t,e,i,r,n=.5){let s=e4(t.min,t.max,n);iu(t,e,i,s,r)}function ip(t,e){return"string"==typeof t?parseFloat(t)/100*(e.max-e.min):t}function im(t,e,i){let r=i??t;id(t.x,ip(e.x,r.x),e.scaleX,e.scale,e.originX),id(t.y,ip(e.y,r.y),e.scaleY,e.scale,e.originY)}function ig(t,e){return ii(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:r.y,right:r.x}}(t.getBoundingClientRect(),e))}class iy extends eW{constructor(){super(...arguments),this.type="html",this.renderInstance=e5}readValueFromInstance(t,e){if(I.has(e))return this.projection?.isProjecting?tX(e):((t,e)=>{let{transform:i="none"}=getComputedStyle(t);return tZ(i,e)})(t,e);{let i=window.getComputedStyle(t),r=(tD(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:e}){return ig(t,e)}build(t,e,i){eZ(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return e9(t,e,i)}}let iv=["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 ib(t){if("string"!=typeof t||t.includes("-"));else if(iv.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}let ix=(0,o.createContext)({strict:!1}),iw=(0,o.createContext)({});function iC(t){return Array.isArray(t)?t.join(" "):t}let ik=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function iE(t,e,i){for(let r in e)tP(e[r])||e7(r,i)||(t[r]=e[r])}let iT=()=>({...ik(),attrs:{}}),iS=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","propagate","ignoreStrict","viewport"]);function iP(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||iS.has(t)}let iA=t=>!iP(t);try{s=(()=>{let t=Error("Cannot find module '@emotion/is-prop-valid'");throw t.code="MODULE_NOT_FOUND",t})().default,"function"==typeof s&&(iA=t=>t.startsWith("on")?!iP(t):s(t))}catch{}function iR(t){return tP(t)?t.get():t}let i_=t=>(e,i)=>{let r=(0,o.useContext)(iw),n=(0,o.useContext)(k),s=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},i,r,n){return{latestValues:function(t,e,i,r){let n={},s=r(t,{});for(let t in s)n[t]=iR(s[t]);let{initial:o,animate:a}=t,l=eO(t),u=eD(t);e&&u&&!l&&!1!==t.inherit&&(void 0===o&&(o=e.initial),void 0===a&&(a=e.animate));let h=!!i&&!1===i.initial,c=(h=h||!1===o)?a:o;if(c&&"boolean"!=typeof c&&!eM(c)){let e=Array.isArray(c)?c:[c];for(let i=0;i<e.length;i++){let r=eU(t,e[i]);if(r){let{transitionEnd:t,transition:e,...i}=r;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=h?e.length-1:0;e=e[t]}null!==e&&(n[t]=e)}for(let e in t)n[e]=t[e]}}}return n}(i,r,n,t),renderState:e()}})(t,e,r,n);return i?s():w(s)},iM=i_({scrapeMotionValuesFromProps:e9,createRenderState:ik}),iL=i_({scrapeMotionValuesFromProps:it,createRenderState:iT}),ij={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"]},iV=!1;function iO(){return!function(){if(iV)return;let t={};for(let e in ij)t[e]={isEnabled:t=>ij[e].some(e=>!!t[e])};ez=t,iV=!0}(),ez}let iD=Symbol.for("motionComponentSymbol"),iN="data-"+eq("framerAppearId"),iB=(0,o.createContext)({});function iI(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function iF(t,{forwardMotionProps:e=!1,type:i}={},r,n){r&&function(t){let e=iO();for(let i in t)e[i]={...e[i],...t[i]};ez=e}(r);let s=i?"svg"===i:ib(t),l=s?iL:iM;function u(i,r){var u;let h,c,d,p={...(0,o.useContext)(S),...i,layoutId:function({layoutId:t}){let e=(0,o.useContext)(x).id;return e&&void 0!==t?e+"-"+t:t}(i)},{isStatic:f}=p,m=function(t){let{initial:e,animate:i}=function(t,e){if(eO(t)){let{initial:e,animate:i}=t;return{initial:!1===e||eL(e)?e:void 0,animate:eL(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,o.useContext)(iw));return(0,o.useMemo)(()=>({initial:e,animate:i}),[iC(e),iC(i)])}(i),g=l(i,f);if(!f&&"u">typeof window){(0,o.useContext)(ix).strict;let e=function(t){let{drag:e,layout:i}=iO();if(!e&&!i)return{};let r={...e,...i};return{MeasureLayout:e?.isEnabled(t)||i?.isEnabled(t)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(p);h=e.MeasureLayout,m.visualElement=function(t,e,i,r,n,s){let{visualElement:a}=(0,o.useContext)(iw),l=(0,o.useContext)(ix),u=(0,o.useContext)(k),h=(0,o.useContext)(S),c=h.reducedMotion,d=h.skipAnimations,p=(0,o.useRef)(null),f=(0,o.useRef)(!1);r=r||l.renderer,!p.current&&r&&(p.current=r(t,{visualState:e,parent:a,props:i,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:c,skipAnimations:d,isSVG:s}),f.current&&p.current&&(p.current.manuallyAnimateOnMount=!0));let m=p.current,g=(0,o.useContext)(iB);m&&!m.projection&&n&&("html"===m.type||"svg"===m.type)&&function(t,e,i,r){let{layoutId:n,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutAnchor:h,layoutCrossfade:c}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:n,layout:s,alwaysMeasureLayout:!!o||a&&iI(a),visualElement:t,animationType:"string"==typeof s?s:"both",initialPromotionConfig:r,crossfade:c,layoutScroll:l,layoutRoot:u,layoutAnchor:h})}(p.current,i,n,g);let y=(0,o.useRef)(!1);(0,o.useInsertionEffect)(()=>{m&&y.current&&m.update(i,u)});let v=i[iN],b=(0,o.useRef)(!!v&&"u">typeof window&&!window.MotionHandoffIsComplete?.(v)&&window.MotionHasOptimisedAnimation?.(v));return C(()=>{f.current=!0,m&&(y.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),b.current&&m.animationState&&m.animationState.animateChanges())}),(0,o.useEffect)(()=>{m&&(!b.current&&m.animationState&&m.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(v)}),b.current=!1),m.enteringChildren=void 0)}),m}(t,g,p,n,e.ProjectionNode,s)}return(0,a.jsxs)(iw.Provider,{value:m,children:[h&&m.visualElement?(0,a.jsx)(h,{visualElement:m.visualElement,...p}):null,function(t,e,i,{latestValues:r},n,s=!1,a){let l=(a??ib(t)?function(t,e,i,r){let n=(0,o.useMemo)(()=>{let i=iT();return e1(i,e,e2(r),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};iE(e,t.style,t),n.style={...e,...n.style}}return n}:function(t,e){let i,r,n={},s=(i=t.style||{},iE(r={},i,t),Object.assign(r,function({transformTemplate:t},e){return(0,o.useMemo)(()=>{let i=ik();return eZ(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),r);return t.drag&&!1!==t.dragListener&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=s,n})(e,r,n,t),u=function(t,e,i){let r={};for(let n in t)("values"!==n||"object"!=typeof t.values)&&!tP(t[n])&&(iA(n)||!0===i&&iP(n)||!e&&!iP(n)||t.draggable&&n.startsWith("onDrag"))&&(r[n]=t[n]);return r}(e,"string"==typeof t,s),h=t!==o.Fragment?{...u,...l,ref:i}:{},{children:c}=e,d=(0,o.useMemo)(()=>tP(c)?c.get():c,[c]);return(0,o.createElement)(t,{...h,children:d})}(t,i,(u=m.visualElement,c=(0,o.useRef)(r),(0,o.useInsertionEffect)(()=>{c.current=r}),d=(0,o.useRef)(null),(0,o.useCallback)(t=>{t&&g.onMount?.(t);let e=c.current;if("function"==typeof e)if(t){let i=e(t);"function"==typeof i&&(d.current=i)}else d.current?(d.current(),d.current=null):e(t);else e&&(e.current=t);u&&(t?u.mount(t):u.unmount())},[u])),g,f,e,s)]})}u.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;let h=(0,o.forwardRef)(u);return h[iD]=t,h}class iU{constructor(t){this.isMounted=!1,this.node=t}update(){}}function i$(t,e,i){let r=t.getProps();return eU(r,e,void 0!==i?i:r.custom,t)}function iz(t,e){if(t?.inherit&&e){let{inherit:i,...r}=t;return{...e,...r}}return t}function iH(t,e){let i=t?.[e]??t?.default??t;return i!==t?iz(i,t):i}let iW=t=>Array.isArray(t);function iq(t,e){let i=t.getValue("willChange");if(tP(i)&&i.add)return i.add(e);if(!i&&_.WillChange){let i=new _.WillChange("auto");t.addValue("willChange",i),i.add(e)}}let iY=(t,e)=>i=>e(t(i)),iK=(...t)=>t.reduce(iY);function iX(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function iZ(t,e){return i=>i>0?e:t}let iG=(t,e,i)=>{let r=t*t,n=i*(e*e-r)+r;return n<0?0:Math.sqrt(n)},iJ=[G,Z,ts];function iQ(t){let e=iJ.find(e=>e.test(t));if(tj(`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let i=e.parse(t);return e===ts&&(i=function({hue:t,saturation:e,lightness:i,alpha:r}){t/=360,i/=100;let n=0,s=0,o=0;if(e/=100){let r=i<.5?i*(1+e):i+e-i*e,a=2*i-r;n=iX(a,r,t+1/3),s=iX(a,r,t),o=iX(a,r,t-1/3)}else n=s=o=i;return{red:Math.round(255*n),green:Math.round(255*s),blue:Math.round(255*o),alpha:r}}(i)),i}let i1=(t,e)=>{let i=iQ(t),r=iQ(e);if(!i||!r)return iZ(t,e);let n={...i};return t=>(n.red=iG(i.red,r.red,t),n.green=iG(i.green,r.green,t),n.blue=iG(i.blue,r.blue,t),n.alpha=e4(i.alpha,r.alpha,t),Z.transform(n))},i0=new Set(["none","hidden"]);function i2(t,e){return i=>e4(t,e,i)}function i5(t){return"number"==typeof t?i2:"string"==typeof t?tB(t)?iZ:to.test(t)?i1:i4:Array.isArray(t)?i6:"object"==typeof t?to.test(t)?i1:i3:iZ}function i6(t,e){let i=[...t],r=i.length,n=t.map((t,i)=>i5(t)(t,e[i]));return t=>{for(let e=0;e<r;e++)i[e]=n[e](t);return i}}function i3(t,e){let i={...t,...e},r={};for(let n in i)void 0!==t[n]&&void 0!==e[n]&&(r[n]=i5(t[n])(t[n],e[n]));return t=>{for(let e in r)i[e]=r[e](t);return i}}let i4=(t,e)=>{let i=tp.createTransformer(e),r=tc(t),n=tc(e);if(!(r.indexes.var.length===n.indexes.var.length&&r.indexes.color.length===n.indexes.color.length&&r.indexes.number.length>=n.indexes.number.length))return tj(`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),iZ(t,e);if(i0.has(t)&&!n.values.length||i0.has(e)&&!r.values.length)return i0.has(t)?i=>i<=0?t:e:i=>i>=1?e:t;return iK(i6(function(t,e){let i=[],r={color:0,var:0,number:0};for(let n=0;n<e.values.length;n++){let s=e.types[n],o=t.indexes[s][r[s]],a=t.values[o]??0;i[n]=a,r[s]++}return i}(r,n),n.values),i)};function i8(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?e4(t,e,i):i5(t)(t,e)}let i7=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>j.update(e,t),stop:()=>V(e),now:()=>O.isProcessing?O.timestamp:eS.now()}};function i9(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}let rt=.01,re=2,ri=.005,rr=.5;function rn(t,e){return t*Math.sqrt(1-e*e)}let rs=["duration","bounce"],ro=["stiffness","damping","mass"];function ra(t,e){return e.some(e=>void 0!==t[e])}function rl(t=.3,e=.3){let i,r,n,s,o,a,l="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:u,restDelta:h}=l,c=l.keyframes[0],d=l.keyframes[l.keyframes.length-1],p={done:!1,value:c},{stiffness:f,damping:m,mass:g,duration:y,velocity:v,isResolvedFromDuration:b}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!ra(t,ro)&&ra(t,rs))if(e.velocity=0,t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),r=i*i,n=2*F(.05,1,1-(t.bounce||0))*Math.sqrt(r);e={...e,mass:1,stiffness:r,damping:n}}else{let i=function({duration:t=800,bounce:e=.3,velocity:i=0,mass:r=1}){let n,s;tj(er(10));let o=1-e;o=F(.05,1,o),t=F(.01,10,t/1e3),o<1?(n=e=>{let r=e*o,n=r*t;return .001-(r-i)/rn(e,o)*Math.exp(-n)},s=e=>{let r=e*o*t,s=Math.pow(o,2)*Math.pow(e,2)*t,a=Math.exp(-r),l=rn(Math.pow(e,2),o);return(r*i+i-s)*a*(-n(e)+.001>0?-1:1)/l}):(n=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),s=e=>t*t*(i-e)*Math.exp(-e*t));let a=function(t,e,i){let r=i;for(let i=1;i<12;i++)r-=t(r)/e(r);return r}(n,s,5/t);if(t=er(t),isNaN(a))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(a,2)*r;return{stiffness:e,damping:2*o*Math.sqrt(r*e),duration:t}}}({...t,velocity:0});(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...l,velocity:-((l.velocity||0)/1e3)}),x=v||0,w=m/(2*Math.sqrt(f*g)),C=d-c,k=Math.sqrt(f/g)/1e3,E=5>Math.abs(C);if(u||(u=E?rt:re),h||(h=E?ri:rr),w<1)n=rn(k,w),s=(x+w*k*C)/n,i=t=>d-Math.exp(-w*k*t)*(s*Math.sin(n*t)+C*Math.cos(n*t)),o=w*k*s+C*n,a=w*k*C-s*n,r=t=>Math.exp(-w*k*t)*(o*Math.sin(n*t)+a*Math.cos(n*t));else if(1===w){i=t=>d-Math.exp(-k*t)*(C+(x+k*C)*t);let t=x+k*C;r=e=>Math.exp(-k*e)*(k*t*e-x)}else{let t=k*Math.sqrt(w*w-1);i=e=>{let i=Math.exp(-w*k*e),r=Math.min(t*e,300);return d-i*((x+w*k*C)*Math.sinh(r)+t*C*Math.cosh(r))/t};let e=(x+w*k*C)/t,n=w*k*e-C*t,s=w*k*C-e*t;r=e=>{let i=Math.exp(-w*k*e),r=Math.min(t*e,300);return i*(n*Math.sinh(r)+s*Math.cosh(r))}}let T={calculatedDuration:b&&y||null,velocity:t=>er(r(t)),next:t=>{if(!b&&w<1){let e=Math.exp(-w*k*t),i=Math.sin(n*t),r=Math.cos(n*t),l=d-e*(s*i+C*r);return p.done=Math.abs(er(e*(o*i+a*r)))<=u&&Math.abs(d-l)<=h,p.value=p.done?d:l,p}let e=i(t);return b?p.done=t>=y:p.done=Math.abs(er(r(t)))<=u&&Math.abs(d-e)<=h,p.value=p.done?d:e,p},toString:()=>{let t=Math.min(i9(T),2e4),e=ev(e=>T.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return T}function ru(t,e,i){var r,n;let s=Math.max(e-5,0);return r=i-t(s),(n=e-s)?1e3/n*r:0}function rh({keyframes:t,velocity:e=0,power:i=.8,timeConstant:r=325,bounceDamping:n=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:h}){let c,d,p=t[0],f={done:!1,value:p},m=i*e,g=p+m,y=void 0===o?g:o(g);y!==g&&(m=y-p);let v=t=>-m*Math.exp(-t/r),b=t=>y+v(t),x=t=>{let e=v(t),i=b(t);f.done=Math.abs(e)<=u,f.value=f.done?y:i},w=t=>{let e;if(e=f.value,void 0!==a&&e<a||void 0!==l&&e>l){var i;c=t,d=rl({keyframes:[f.value,(i=f.value,void 0===a?l:void 0===l||Math.abs(a-i)<Math.abs(l-i)?a:l)],velocity:ru(b,t,f.value),damping:n,stiffness:s,restDelta:u,restSpeed:h})}};return w(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==c||(e=!0,x(t),w(t)),void 0!==c&&t>=c)?d.next(t-c):(e||x(t),f)}}}rl.applyToOptions=t=>{let e=function(t,e=100,i){let r=i({...t,keyframes:[0,e]}),n=Math.min(i9(r),2e4);return{type:"keyframes",ease:t=>r.next(n*t).value/e,duration:n/1e3}}(t,100,rl);return t.ease=e.ease,t.duration=er(e.duration),t.type="keyframes",t};let rc=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function rd(t,e,i,r){return t===e&&i===r?R:n=>0===n||1===n?n:rc(function(t,e,i,r,n){let s,o,a=0;do(s=rc(o=e+(i-e)/2,r,n)-t)>0?i=o:e=o;while(Math.abs(s)>1e-7&&++a<12)return o}(n,0,1,t,i),e,r)}let rp=rd(.42,0,1,1),rf=rd(0,0,.58,1),rm=rd(.42,0,.58,1),rg=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,ry=t=>e=>1-t(1-e),rv=rd(.33,1.53,.69,.99),rb=ry(rv),rx=rg(rb),rw=t=>t>=1?1:(t*=2)<1?.5*rb(t):.5*(2-Math.pow(2,-10*(t-1))),rC=t=>1-Math.sin(Math.acos(t)),rk=ry(rC),rE=rg(rC),rT={linear:R,easeIn:rp,easeInOut:rm,easeOut:rf,circIn:rC,circInOut:rE,circOut:rk,backIn:rb,backInOut:rx,backOut:rv,anticipate:rw},rS=t=>{if(eg(t)){tV(t.length);let[e,i,r,n]=t;return rd(e,i,r,n)}return"string"==typeof t?(tV(rT[t],`Invalid easing type '${t}'`),rT[t]):t},rP=(t,e,i)=>{let r=e-t;return 0===r?1:(i-t)/r};function rA({duration:t=300,keyframes:e,times:i,ease:r="easeInOut"}){var n;let s,o=Array.isArray(r)&&"number"!=typeof r[0]?r.map(rS):rS(r),a={done:!1,value:e[0]},l=function(t,e,{clamp:i=!0,ease:r,mixer:n}={}){let s=t.length;if(tV(e.length),1===s)return()=>e[0];if(2===s&&e[0]===e[1])return()=>e[1];let o=t[0]===t[1];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());let a=function(t,e,i){let r=[],n=i||_.mix||i8,s=t.length-1;for(let i=0;i<s;i++){let s=n(t[i],t[i+1]);e&&(s=iK(Array.isArray(e)?e[i]||R:e,s)),r.push(s)}return r}(e,r,n),l=a.length,u=i=>{if(o&&i<t[0])return e[0];let r=0;if(l>1)for(;r<t.length-2&&!(i<t[r+1]);r++);let n=rP(t[r],t[r+1],i);return a[r](n)};return i?e=>u(F(t[0],t[s-1],e)):u}((n=i&&i.length===e.length?i:(!function(t,e){let i=t[t.length-1];for(let r=1;r<=e;r++){let n=rP(0,e,r);t.push(e4(i,1,n))}}(s=[0],e.length-1),s),n.map(e=>e*t)),e,{ease:Array.isArray(o)?o:e.map(()=>o||rm).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(a.value=l(e),a.done=e>=t,a)}}let rR={decay:rh,inertia:rh,tween:rA,keyframes:rA,spring:rl};function r_(t){"string"==typeof t.type&&(t.type=rR[t.type])}let rM=t=>t/100;class rL extends ef{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==eS.now()&&this.tick(eS.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},em.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;r_(t);let{type:e=rA,repeat:i=0,repeatDelay:r=0,repeatType:n,velocity:s=0}=t,{keyframes:o}=t,a=e||rA;a!==rA&&"number"!=typeof o[0]&&(this.mixKeyframes=iK(rM,i8(o[0],o[1])),o=[0,100]);let l=a({...t,keyframes:o});"mirror"===n&&(this.mirroredGenerator=a({...t,keyframes:[...o].reverse(),velocity:-s})),null===l.calculatedDuration&&(l.calculatedDuration=i9(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+r,this.totalDuration=this.resolvedDuration*(i+1)-r,this.generator=l}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let i,{generator:r,totalDuration:n,mixKeyframes:s,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(null===this.startTime)return r.next(0);let{delay:u=0,keyframes:h,repeat:c,repeatType:d,repeatDelay:p,type:f,onUpdate:m,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-n/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let y=this.currentTime-u*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?y<0:y>n;this.currentTime=Math.max(y,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=n);let b=this.currentTime,x=r;if(c){let t=Math.min(this.currentTime,n)/a,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,c+1))%2&&("reverse"===d?(i=1-i,p&&(i-=p/a)):"mirror"===d&&(x=o)),b=F(0,1,i)*a}v?(this.delayState.value=h[0],i=this.delayState):i=x.next(b),s&&!v&&(i.value=s(i.value));let{done:w}=i;v||null===l||(w=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let C=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return C&&f!==rh&&(i.value=ep(h,this.options,g,this.speed)),m&&m(i.value),C&&this.finish(),i}then(t,e){return this.finished.then(t,e)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return this.currentTime/1e3}set time(t){t=er(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){let t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);let e=this.generator.next(t).value;return ru(t=>this.generator.next(t).value,t,e)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;e&&this.driver&&this.updateTime(eS.now()),this.playbackSpeed=t,e&&this.driver&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:t=i7,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();let i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=e??i),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(eS.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,em.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}let rj={anticipate:rw,backInOut:rx,circInOut:rE};class rV extends eC{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in rj&&(t.ease=rj[t.ease])}(t),r_(t),super(t),void 0!==t.startTime&&!1!==t.autoplay&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:r,element:n,...s}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let o=new rL({...s,autoplay:!1}),a=Math.max(10,eS.now()-this.startTime),l=F(0,10,a-10),u=o.sample(a).value,{name:h}=this.options;n&&h&&ea(n,h,u),e.setWithVelocity(o.sample(Math.max(0,a-l)).value,u,l),o.stop()}}let rO=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(tp.test(t)||"0"===t)&&!t.startsWith("url("));function rD(t){t.duration=0,t.type="keyframes"}let rN=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,rB=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),rI=el(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class rF extends ef{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:r=0,repeatDelay:n=0,repeatType:s="loop",keyframes:o,name:a,motionValue:l,element:u,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=eS.now();const c={autoplay:t,delay:e,type:i,repeat:r,repeatDelay:n,repeatType:s,name:a,motionValue:l,element:u,...h},d=u?.KeyframeResolver||t7;this.keyframeResolver=new d(o,(t,e,i)=>this.onKeyframesResolved(t,e,c,!i),a,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,r){let n;this.keyframeResolver=void 0;let{name:s,type:o,velocity:a,delay:l,isHandoff:u,onUpdate:h}=i;this.resolvedAt=eS.now();let c=!0;!function(t,e,i,r){let n=t[0];if(null===n)return!1;if("display"===e||"visibility"===e)return!0;let s=t[t.length-1],o=rO(n,e),a=rO(s,e);return tj(`You are trying to animate ${e} from "${n}" to "${s}". "${o?s:n}" is not an animatable value.`),!!o&&!!a&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||ew(i))&&r)}(t,s,o,a)&&(c=!1,(_.instantAnimations||!l)&&h?.(ep(t,i,e)),t[0]=t[t.length-1],rD(i),i.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},p=c&&!u&&function(t){let{motionValue:e,name:i,repeatDelay:r,repeatType:n,damping:s,type:o,keyframes:a}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:l,transformTemplate:u}=e.owner.getProps();return rI()&&i&&(ek.has(i)||rB.has(i)&&function(t){for(let e=0;e<t.length;e++)if("string"==typeof t[e]&&rN.test(t[e]))return!0;return!1}(a))&&("transform"!==i||!u)&&!l&&!r&&"mirror"!==n&&0!==s&&"inertia"!==o}(d),f=d.motionValue?.owner?.current;if(p)try{n=new rV({...d,element:f})}catch{n=new rL(d)}else n=new rL(d);n.finished.then(()=>{this.notifyFinished()}).catch(R),this.pendingTimeline&&(this.stopTimeline=n.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=n}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),t3=!0,t8(),t4(),t3=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let rU={type:"spring",stiffness:500,damping:25,restSpeed:10},r$={type:"keyframes",duration:.8},rz={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},rH=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),rW=(t,e,i,r={},n,s)=>o=>{let a=iH(r,t)||{},l=a.delay||r.delay||0,{elapsed:u=0}=r;u-=er(l);let h={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:s?void 0:n};!function(t){for(let e in t)if(!rH.has(e))return!0;return!1}(a)&&Object.assign(h,((t,{keyframes:e})=>e.length>2?r$:I.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:rU:rz)(t,h)),h.duration&&(h.duration=er(h.duration)),h.repeatDelay&&(h.repeatDelay=er(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let c=!1;if(!1!==h.type&&(0!==h.duration||h.repeatDelay)||(rD(h),0===h.delay&&(c=!0)),(_.instantAnimations||_.skipAnimations||n?.shouldSkipAnimations)&&(c=!0,rD(h),h.delay=0),h.allowFlatten=!a.type&&!a.ease,c&&!s&&void 0!==e.get()){let t=ep(h.keyframes,a);if(void 0!==t)return void j.update(()=>{h.onUpdate(t),h.onComplete()})}return a.isSync?new rL(h):new rF(h)};function rq(t,e,{delay:i=0,transitionOverride:r,type:n}={}){let{transition:s,transitionEnd:o,...a}=e,l=t.getDefaultTransition();s=s?iz(s,l):l;let u=s?.reduceMotion;r&&(s=r);let h=[],c=n&&t.animationState&&t.animationState.getState()[n];for(let e in a){let r=t.getValue(e,t.latestValues[e]??null),n=a[e];if(void 0===n||c&&function({protectedKeys:t,needsAnimating:e},i){let r=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,r}(c,e))continue;let o={delay:i,...iH(s||{},e)},l=r.get();if(void 0!==l&&!r.isAnimating()&&!Array.isArray(n)&&n===l&&!o.velocity){j.update(()=>r.set(n));continue}let d=!1;if(window.MotionHandoffAnimation){let i=t.props[iN];if(i){let t=window.MotionHandoffAnimation(i,e,j);null!==t&&(o.startTime=t,d=!0)}}iq(t,e);let p=u??t.shouldReduceMotion;r.start(rW(e,r,n,p&&tA.has(e)?{type:!1}:o,t,d));let f=r.animation;f&&h.push(f)}if(o){let e=()=>j.update(()=>{o&&function(t,e){let{transitionEnd:i={},transition:r={},...n}=i$(t,e)||{};for(let e in n={...n,...i}){var s;let i=iW(s=n[e])?s[s.length-1]||0:s;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,eA(i))}}(t,o)});h.length?Promise.all(h).then(e):e()}return h}function rY(t,e,i,r=0,n=1){let s=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),o=t.size,a=(o-1)*r;return"function"==typeof i?i(s,o):1===n?s*r:a-s*r}function rK(t,e,i={}){let r=i$(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:n=t.getDefaultTransition()||{}}=r||{};i.transitionOverride&&(n=i.transitionOverride);let s=r?()=>Promise.all(rq(t,r,i)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(r=0)=>{let{delayChildren:s=0,staggerChildren:o,staggerDirection:a}=n;return function(t,e,i=0,r=0,n=0,s=1,o){let a=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),a.push(rK(l,e,{...o,delay:i+("function"==typeof r?0:r)+rY(t.variantChildren,l,r,n,s)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}(t,e,r,s,o,a,i)}:()=>Promise.resolve(),{when:a}=n;if(!a)return Promise.all([s(),o(i.delay)]);{let[t,e]="beforeChildren"===a?[s,o]:[o,s];return t().then(()=>e())}}let rX=eV.length;function rZ(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let r=0;r<i;r++)if(e[r]!==t[r])return!1;return!0}let rG=[...ej].reverse(),rJ=ej.length;function rQ(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function r1(){return{animate:rQ(!0),whileInView:rQ(),whileHover:rQ(),whileTap:rQ(),whileDrag:rQ(),whileFocus:rQ(),exit:rQ()}}let r0=0;function r2(t){return[t("x"),t("y")]}function r5(t,e,i,r={passive:!0}){return t.addEventListener(e,i,r),()=>t.removeEventListener(e,i)}let r6={x:!1,y:!1};function r3(t){return t.max-t.min}function r4(t,e,i,r=.5){t.origin=r,t.originPoint=e4(e.min,e.max,t.origin),t.scale=r3(i)/r3(e),t.translate=e4(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function r8(t,e,i,r){r4(t.x,e.x,i.x,r?r.originX:void 0),r4(t.y,e.y,i.y,r?r.originY:void 0)}function r7(t,e,i,r=0){t.min=(r?e4(i.min,i.max,r):i.min)+e.min,t.max=t.min+r3(e)}function r9(t,e,i,r=0){let n=r?e4(i.min,i.max,r):i.min;t.min=e.min-n,t.max=t.min+r3(e)}function nt(t,e,i,r){r9(t.x,e.x,i.x,r?.x),r9(t.y,e.y,i.y,r?.y)}function ne(t){return E(t)&&"ownerSVGElement"in t}function ni(t,e,i){if(null==t)return[];if(t instanceof EventTarget)return[t];if("string"==typeof t){let r=document;e&&(r=e.current);let n=i?.[t]??r.querySelectorAll(t);return n?Array.from(n):[]}return Array.from(t).filter(t=>null!=t)}let nr=new WeakMap,nn=(t,e,i)=>(r,n)=>n&&n[0]?n[0][t+"Size"]:ne(r)&&"getBBox"in r?r.getBBox()[e]:r[i],ns=nn("inline","width","offsetWidth"),no=nn("block","height","offsetHeight");function na({target:t,borderBoxSize:e}){nr.get(t)?.forEach(i=>{i(t,{get width(){return ns(t,e)},get height(){return no(t,e)}})})}function nl(t){t.forEach(na)}let nu=new Set;function nh(t,e){let n;return"function"==typeof t?(nu.add(t),r||(r=()=>{let t={get width(){return window.innerWidth},get height(){return window.innerHeight}};nu.forEach(e=>e(t))},window.addEventListener("resize",r)),()=>{nu.delete(t),nu.size||"function"!=typeof r||(window.removeEventListener("resize",r),r=void 0)}):(!i&&"u">typeof ResizeObserver&&(i=new ResizeObserver(nl)),(n=ni(t)).forEach(t=>{let r=nr.get(t);r||(r=new Set,nr.set(t,r)),r.add(e),i?.observe(t)}),()=>{n.forEach(t=>{let r=nr.get(t);r?.delete(e),r?.size||i?.unobserve(t)})})}let nc=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),nd=new Set(["INPUT","SELECT","TEXTAREA"]),np=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function nf(t){return{point:{x:t.pageX,y:t.pageY}}}function nm(t,e,i,r){return r5(t,e,t=>np(t)&&i(t,nf(t)),r)}let ng=({current:t})=>t?t.ownerDocument.defaultView:null,ny=(t,e)=>Math.abs(t-e),nv=new Set(["auto","scroll"]);class nb{constructor(t,e,{transformPagePoint:i,contextWindow:r=window,dragSnapToOrigin:n=!1,distanceThreshold:s=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=t=>{this.handleScroll(t.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=nx(this.lastRawMoveEventInfo,this.transformPagePoint));let i=nC(this.lastMoveEventInfo,this.history),r=null!==this.startEvent,n=(t=i.offset,e={x:0,y:0},Math.sqrt(ny(t.x,e.x)**2+ny(t.y,e.y)**2)>=this.distanceThreshold);if(!r&&!n)return;let{point:s}=i,{timestamp:o}=O;this.history.push({...s,timestamp:o});let{onStart:a,onMove:l}=this.handlers;r||(a&&a(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastRawMoveEventInfo=e,this.lastMoveEventInfo=nx(e,this.transformPagePoint),j.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:r,resumeAnimation:n}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&n&&n(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=nC("pointercancel"===t.type?this.lastMoveEventInfo:nx(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,s),r&&r(t,s)},!np(t))return;this.dragSnapToOrigin=n,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=s,this.contextWindow=r||window;const a=nx(nf(t),this.transformPagePoint),{point:l}=a,{timestamp:u}=O;this.history=[{...l,timestamp:u}];const{onSessionStart:h}=e;h&&h(t,nC(a,this.history)),this.removeListeners=iK(nm(this.contextWindow,"pointermove",this.handlePointerMove),nm(this.contextWindow,"pointerup",this.handlePointerUp),nm(this.contextWindow,"pointercancel",this.handlePointerUp)),o&&this.startScrollTracking(o)}startScrollTracking(t){let e=t.parentElement;for(;e;){let t=getComputedStyle(e);(nv.has(t.overflowX)||nv.has(t.overflowY))&&this.scrollPositions.set(e,{x:e.scrollLeft,y:e.scrollTop}),e=e.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){let e=this.scrollPositions.get(t);if(!e)return;let i=t===window,r=i?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},n={x:r.x-e.x,y:r.y-e.y};(0!==n.x||0!==n.y)&&(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=n.x,this.lastMoveEventInfo.point.y+=n.y):this.history.length>0&&(this.history[0].x-=n.x,this.history[0].y-=n.y),this.scrollPositions.set(t,r),j.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),V(this.updatePoint)}}function nx(t,e){return e?{point:e(t.point)}:t}function nw(t,e){return{x:t.x-e.x,y:t.y-e.y}}function nC({point:t},e){return{point:t,delta:nw(t,nk(e)),offset:nw(t,e[0]),velocity:function(t){if(t.length<2)return{x:0,y:0};let e=t.length-1,i=null,r=nk(t);for(;e>=0&&(i=t[e],!(r.timestamp-i.timestamp>er(.1)));)e--;if(!i)return{x:0,y:0};i===t[0]&&t.length>2&&r.timestamp-i.timestamp>2*er(.1)&&(i=t[1]);let n=(r.timestamp-i.timestamp)/1e3;if(0===n)return{x:0,y:0};let s={x:(r.x-i.x)/n,y:(r.y-i.y)/n};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}(e)}}function nk(t){return t[t.length-1]}function nE(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function nT(t,e){let i=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,r]=[r,i]),{min:i,max:r}}function nS(t,e,i){return{min:nP(t,e),max:nP(t,i)}}function nP(t,e){return"number"==typeof t?t:t[e]||0}let nA=new WeakMap;class nR{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=tS(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:i}={}){let{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;let n=t=>{e&&this.snapToCursor(nf(t).point),this.stopAnimation()},s=(t,e)=>{let{drag:i,dragPropagation:r,onDragStart:n}=this.getProps();if(i&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(r6[t])return null;else return r6[t]=!0,()=>{r6[t]=!1};return r6.x||r6.y?null:(r6.x=r6.y=!0,()=>{r6.x=r6.y=!1})}(i),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),r2(t=>{let e=this.getAxisMotionValue(t).get()||0;if(tt.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let r=i.layout.layoutBox[t];r&&(e=r3(r)*(parseFloat(e)/100))}}this.originPoint[t]=e}),n&&j.update(()=>n(t,e),!1,!0),iq(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},o=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:r,onDirectionLock:n,onDrag:s}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(r&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&n&&n(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),s&&j.update(()=>s(t,e),!1,!0)},a=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:t}=this.getProps();(t||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new nb(t,{onSessionStart:n,onStart:s,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:i,contextWindow:ng(this.visualElement),element:this.visualElement.current})}stop(t,e){let i=t||this.latestPointerEvent,r=e||this.latestPanInfo,n=this.isDragging;if(this.cancel(),!n||!r||!i)return;let{velocity:s}=r;this.startAnimation(s);let{onDragEnd:o}=this.getProps();o&&j.postRender(()=>o(i,r))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,e,i){let{drag:r}=this.getProps();if(!i||!nM(t,r,this.currentDirection))return;let n=this.getAxisMotionValue(t),s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=function(t,{min:e,max:i},r){return void 0!==e&&t<e?t=r?e4(e,t,r.min):Math.max(t,e):void 0!==i&&t>i&&(t=r?e4(i,t,r.max):Math.min(t,i)),t}(s,this.constraints[t],this.elastic[t])),n.set(s)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;t&&iI(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:r,right:n}){return{x:nE(t.x,i,n),y:nE(t.y,e,r)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:nS(t,"left","right"),y:nS(t,"top","bottom")}}(e),r!==this.constraints&&!iI(t)&&i&&this.constraints&&!this.hasMutatedConstraints&&r2(t=>{var e,r;let n;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=i.layoutBox[t],r=this.constraints[t],n={},void 0!==r.min&&(n.min=r.min-e.min),void 0!==r.max&&(n.max=r.max-e.min),n))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!iI(e))return!1;let r=e.current;tV();let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;let s=function(t,e,i){let r=ig(t,i),{scroll:n}=e;return n&&(ic(r.x,n.offset.x),ic(r.y,n.offset.y)),r}(r,n.root,this.visualElement.getTransformPagePoint()),o=(t=n.layout.layoutBox,{x:nT(t.x,s.x),y:nT(t.y,s.y)});if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=ii(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:r,dragTransition:n,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(r2(o=>{if(!nM(o,e,this.currentDirection))return;let l=a&&a[o]||{};(!0===s||s===o)&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[o]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...n,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return iq(this.visualElement,t),i.start(rW(t,i,0,e,this.visualElement,!1))}stopAnimation(){r2(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){r2(e=>{let{drag:i}=this.getProps();if(!nM(e,i,this.currentDirection))return;let{projection:r}=this.visualElement,n=this.getAxisMotionValue(e);if(r&&r.layout){let{min:i,max:s}=r.layout.layoutBox[e],o=n.get()||0;n.set(t[e]-e4(i,s,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!iI(e)||!i||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};r2(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var i,n;let s,o,a,l=e.get();r[t]=(i={min:l,max:l},n=this.constraints[t],s=.5,o=r3(i),(a=r3(n))>o?s=rP(n.min,n.max-o,i.min):o>a&&(s=rP(i.min,i.max-a,n.min)),F(0,1,s))}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),r2(e=>{if(!nM(e,t,null))return;let i=this.getAxisMotionValue(e),{min:n,max:s}=this.constraints[e];i.set(e4(n,s,r[e]))}),this.visualElement.render()}addListeners(){let t;if(!this.visualElement.current)return;nA.set(this.visualElement,this);let e=this.visualElement.current,i=nm(e,"pointerdown",t=>{let{drag:i,dragListener:r=!0}=this.getProps(),n=t.target,s=n!==e&&(nd.has(n.tagName)||!0===n.isContentEditable);i&&r&&!s&&this.start(t)}),r=()=>{var i,r,n;let s,o,{dragConstraints:a}=this.getProps();iI(a)&&a.current&&(this.constraints=this.resolveRefConstraints(),t||(i=e,r=a.current,s=nh(i,n_(n=()=>this.scalePositionWithinConstraints())),o=nh(r,n_(n)),t=()=>{s(),o()}))},{projection:n}=this.visualElement,s=n.addEventListener("measure",r);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),j.read(r);let o=r5(window,"resize",()=>this.scalePositionWithinConstraints()),a=n.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(r2(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{o(),i(),s(),a&&a(),t&&t()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:r=!1,dragConstraints:n=!1,dragElastic:s=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:r,dragConstraints:n,dragElastic:s,dragMomentum:o}}}function n_(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function nM(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}let nL=t=>(e,i)=>{t&&j.update(()=>t(e,i),!1,!0)},nj={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var nV=o;let nO=!1;class nD extends nV.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:r}=this.props,{projection:n}=t;n&&(e.group&&e.group.add(n),i&&i.register&&r&&i.register(n),nO&&n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),nj.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:r,isPresent:n}=this.props,{projection:s}=i;return s&&(s.isPresent=n,t.layoutDependency!==e&&s.setOptions({...s.options,layoutDependency:e}),nO=!0,r||t.layoutDependency!==e||void 0===e||t.isPresent!==n?s.willUpdate():this.safeToRemove(),t.isPresent!==n&&(n?s.promote():s.relegate()||j.postRender(()=>{let t=s.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:t,layoutAnchor:e}=this.props,{projection:i}=t;i&&(i.options.layoutAnchor=e,i.root.didUpdate(),eE.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:r}=t;nO=!0,r&&(r.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(r),i&&i.deregister&&i.deregister(r))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function nN(t){let[e,i]=P(),r=(0,nV.useContext)(x);return(0,a.jsx)(nD,{...t,layoutGroup:r,switchLayoutGroup:(0,nV.useContext)(iB),isPresent:e,safeToRemove:i})}let nB=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],nI=nB.length,nF=t=>"string"==typeof t?parseFloat(t):t,nU=t=>"number"==typeof t||te.test(t);function n$(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let nz=nW(0,.5,rk),nH=nW(.5,.95,R);function nW(t,e,i){return r=>r<t?0:r>e?1:i(rP(t,e,r))}function nq(t,e){t.min=e.min,t.max=e.max}function nY(t,e){nq(t.x,e.x),nq(t.y,e.y)}function nK(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function nX(t,e,i,r,n){return t-=e,t=r+1/i*(t-r),void 0!==n&&(t=r+1/n*(t-r)),t}function nZ(t,e,[i,r,n],s,o){!function(t,e=0,i=1,r=.5,n,s=t,o=t){if(tt.test(e)&&(e=parseFloat(e),e=e4(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=e4(s.min,s.max,r);t===s&&(a-=e),t.min=nX(t.min,e,i,a,n),t.max=nX(t.max,e,i,a,n)}(t,e[i],e[r],e[n],e.scale,s,o)}let nG=["x","scaleX","originX"],nJ=["y","scaleY","originY"];function nQ(t,e,i,r){nZ(t.x,e,nG,i?i.x:void 0,r?r.x:void 0),nZ(t.y,e,nJ,i?i.y:void 0,r?r.y:void 0)}function n1(t){return 0===t.translate&&1===t.scale}function n0(t){return n1(t.x)&&n1(t.y)}function n2(t,e){return t.min===e.min&&t.max===e.max}function n5(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function n6(t,e){return n5(t.x,e.x)&&n5(t.y,e.y)}function n3(t){return r3(t.x)/r3(t.y)}function n4(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class n8{constructor(){this.members=[]}add(t){en(this.members,t);for(let e=this.members.length-1;e>=0;e--){let i=this.members[e];if(i===t||i===this.lead||i===this.prevLead)continue;let r=i.instance;r&&!1!==r.isConnected||i.snapshot||(es(this.members,i),i.unmount())}t.scheduleRender()}remove(t){if(es(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){for(let e=this.members.indexOf(t)-1;e>=0;e--){let t=this.members[e];if(!1!==t.isPresent&&t.instance?.isConnected!==!1)return this.promote(t),!0}return!1}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.updateSnapshot(),t.scheduleRender();let{layoutDependency:r}=i.options,{layoutDependency:n}=t.options;(void 0===r||r!==n)&&(t.resumeFrom=i,e&&(i.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),!1===t.options.crossfade&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let n7=(t,e)=>t.depth-e.depth;class n9{constructor(){this.children=[],this.isDirty=!1}add(t){en(this.children,t),this.isDirty=!0}remove(t){es(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(n7),this.isDirty=!1,this.children.forEach(t)}}let st=["","X","Y","Z"],se=0;function si(t,e,i,r){let{latestValues:n}=e;n[t]&&(i[t]=n[t],e.setStaticValue(t,0),r&&(r[t]=0))}function sr({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:r,resetTransform:n}){return class{constructor(t={},i=e?.()){this.id=se++,this.animationId=0,this.animationCommitId=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.layoutVersion=0,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(so),this.nodes.forEach(sm),this.nodes.forEach(sg),this.nodes.forEach(sa)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new n9)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new eo),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;this.isSVG=ne(e)&&!(ne(e)&&"svg"===e.tagName),this.instance=e;let{layoutId:i,layout:r,visualElement:n}=this.options;if(n&&!n.current&&n.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||i)&&(this.isLayoutDirty=!0),t){let i,r=0,n=()=>this.root.updateBlockedByResize=!1;j.read(()=>{r=window.innerWidth}),t(e,()=>{let t=window.innerWidth;if(t!==r){let e,s;r=t,this.root.updateBlockedByResize=!0,i&&i(),e=eS.now(),s=({timestamp:t})=>{let i=t-e;i>=250&&(V(s),n())},j.setup(s,!0),i=()=>V(s),nj.hasAnimatedSinceResize&&(nj.hasAnimatedSinceResize=!1,this.nodes.forEach(sf))}})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&n&&(i||r)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let s=this.options.transition||n.getDefaultTransition()||sC,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=n.getProps(),l=!this.targetLayout||!n6(this.targetLayout,r),u=!e&&i;if(this.options.layoutRoot||this.resumeFrom||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...iH(s,"layout"),onPlay:o,onComplete:a};(n.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,u)}else e||sf(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),V(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.forEach(sy),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let r=i.props[iN];if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",j,!(t||i))}let{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&t(n)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,("string"==typeof e.latestValues.x||"string"==typeof e.latestValues.y)&&(e.isLayoutDirty=!0),e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let t=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),t&&this.nodes.forEach(sh),this.nodes.forEach(su);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(sc);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(sd),this.nodes.forEach(sp),this.nodes.forEach(sn),this.nodes.forEach(ss)):this.nodes.forEach(sc),this.clearAllSnapshots();let t=eS.now();O.delta=F(0,1e3/60,t-O.timestamp),O.timestamp=t,O.isProcessing=!0,D.update.process(O),D.preRender.process(O),D.render.process(O),O.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,eE.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(sl),this.sharedNodes.forEach(sv)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,j.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){j.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||r3(this.snapshot.measuredBox.x)||r3(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 t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=tS()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){let e=r(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!n)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!n0(this.projectionDelta),i=this.getTransformTemplate(),r=i?i(this.latestValues,""):void 0,s=r!==this.prevTransformTemplateValue;t&&this.instance&&(e||io(this.latestValues)||s)&&(n(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),r=this.removeElementScroll(i);return t&&(r=this.removeTransform(r)),sT((e=r).x),sT(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return tS();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(sP))){let{scroll:t}=this.root;t&&(ic(e.x,t.offset.x),ic(e.y,t.offset.y))}return e}removeElementScroll(t){let e=tS();if(nY(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let r=this.path[i],{scroll:n,options:s}=r;r!==this.root&&n&&s.layoutScroll&&(n.wasRoot&&nY(e,t),ic(e.x,n.offset.x),ic(e.y,n.offset.y))}return e}applyTransform(t,e=!1,i){let r=i||tS();nY(r,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];!e&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(ic(r.x,-i.scroll.offset.x),ic(r.y,-i.scroll.offset.y)),io(i.latestValues)&&im(r,i.latestValues,i.layout?.layoutBox)}return io(this.latestValues)&&im(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(t){let e=tS();nY(e,t);for(let t=0;t<this.path.length;t++){let i,r=this.path[t];io(r.latestValues)&&(r.instance&&(is(r.latestValues)&&r.updateSnapshot(),nY(i=tS(),r.measurePageBox())),nQ(e,r.latestValues,r.snapshot?.layoutBox,i))}return io(this.latestValues)&&nQ(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}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!==O.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==e;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:n}=this.options;if(!this.layout||!(r||n))return;this.resolvedRelativeTargetAt=O.timestamp;let s=this.getClosestProjectingParent();if(s&&this.linkedParentVersion!==s.layoutVersion&&!s.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&s&&s.layout?this.createRelativeTarget(s,this.layout.layoutBox,s.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=tS(),this.targetWithTransforms=tS()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var o,a,l,u;this.forceRelativeParentToResolveTarget(),o=this.target,a=this.relativeTarget,l=this.relativeParent.target,u=this.options.layoutAnchor||void 0,r7(o.x,a.x,l.x,u?.x),r7(o.y,a.y,l.y,u?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):nY(this.target,this.layout.layoutBox),ih(this.target,this.targetDelta)):nY(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&s&&!!s.resumingFrom==!!this.resumingFrom&&!s.options.layoutScroll&&s.target&&1!==this.animationProgress?this.createRelativeTarget(s,this.target,s.target):this.relativeParent=this.relativeTarget=void 0)}}getClosestProjectingParent(){if(!(!this.parent||is(this.parent.latestValues)||ia(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(t,e,i){this.relativeParent=t,this.linkedParentVersion=t.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=tS(),this.relativeTargetOrigin=tS(),nt(this.relativeTargetOrigin,e,i,this.options.layoutAnchor||void 0),nY(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===O.timestamp&&(i=!1),i)return;let{layout:r,layoutId:n}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||n))return;nY(this.layoutCorrected,this.layout.layoutBox);let s=this.treeScale.x,o=this.treeScale.y;!function(t,e,i,r=!1){let n,s,o=i.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){s=(n=i[a]).projectionDelta;let{visualElement:o}=n.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(r&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(ic(t.x,-n.scroll.offset.x),ic(t.y,-n.scroll.offset.y)),s&&(e.x*=s.x.scale,e.y*=s.y.scale,ih(t,s)),r&&io(n.latestValues)&&im(t,n.latestValues,n.layout?.layoutBox))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=tS());let{target:a}=t;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(nK(this.prevProjectionDelta.x,this.projectionDelta.x),nK(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),r8(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===s&&this.treeScale.y===o&&n4(this.projectionDelta.x,this.prevProjectionDelta.x)&&n4(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=tE(),this.projectionDelta=tE(),this.projectionDeltaWithTransform=tE()}setAnimationOrigin(t,e=!1){let i,r=this.snapshot,n=r?r.latestValues:{},s={...this.latestValues},o=tE();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=tS(),l=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,c=!!(l&&!h&&!0===this.options.crossfade&&!this.path.some(sw));this.animationProgress=0,this.mixTargetDelta=e=>{let r=e/1e3;if(sb(o.x,t.x,r),sb(o.y,t.y,r),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,p,f,m,g;nt(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),p=this.relativeTarget,f=this.relativeTargetOrigin,m=a,g=r,sx(p.x,f.x,m.x,g),sx(p.y,f.y,m.y,g),i&&(u=this.relativeTarget,d=i,n2(u.x,d.x)&&n2(u.y,d.y))&&(this.isProjectionDirty=!1),i||(i=tS()),nY(i,this.relativeTarget)}l&&(this.animationValues=s,function(t,e,i,r,n,s){n?(t.opacity=e4(0,i.opacity??1,nz(r)),t.opacityExit=e4(e.opacity??1,0,nH(r))):s&&(t.opacity=e4(e.opacity??1,i.opacity??1,r));for(let n=0;n<nI;n++){let s=nB[n],o=n$(e,s),a=n$(i,s);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||nU(o)===nU(a)?(t[s]=Math.max(e4(nF(o),nF(a),r),0),(tt.test(a)||tt.test(o))&&(t[s]+="%")):t[s]=a)}(e.rotate||i.rotate)&&(t.rotate=e4(e.rotate||0,i.rotate||0,r))}(s,n,this.latestValues,r,c,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(V(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=j.update(()=>{var e,i,r;let n;nj.hasAnimatedSinceResize=!0,em.layout++,this.motionValue||(this.motionValue=eA(0)),this.motionValue.jump(0,!1),this.currentAnimation=(e=this.motionValue,i=[0,1e3],r={...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{em.layout--},onComplete:()=>{em.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}},(n=tP(e)?e:eA(e)).start(rW("",n,i,r)),n.animation),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:r,latestValues:n}=t;if(e&&i&&r){if(this!==t&&this.layout&&r&&sS(this.options.animationType,this.layout.layoutBox,r.layoutBox)){i=this.target||tS();let e=r3(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let r=r3(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+r}nY(e,i),im(e,n),r8(this.projectionDeltaWithTransform,this.layoutCorrected,e,n)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new n8),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let r=this.getStack();r&&r.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let r={};i.z&&si("z",t,r,this.animationValues);for(let e=0;e<st.length;e++)si(`rotate${st[e]}`,t,r,this.animationValues),si(`skew${st[e]}`,t,r,this.animationValues);for(let e in t.render(),r)t.setStaticValue(e,r[e]),this.animationValues&&(this.animationValues[e]=r[e]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible){t.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=iR(e?.pointerEvents)||"",t.transform=i?i(this.latestValues,""):"none";return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=iR(e?.pointerEvents)||""),this.hasProjected&&!io(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let n=r.animationValues||r.latestValues;this.applyTransformsToTarget();let s=function(t,e,i){let r="",n=t.x.translate/e.x,s=t.y.translate/e.y,o=i?.z||0;if((n||s||o)&&(r=`translate3d(${n}px, ${s}px, ${o}px) `),(1!==e.x||1!==e.y)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:n,rotateY:s,skewX:o,skewY:a}=i;t&&(r=`perspective(${t}px) ${r}`),e&&(r+=`rotate(${e}deg) `),n&&(r+=`rotateX(${n}deg) `),s&&(r+=`rotateY(${s}deg) `),o&&(r+=`skewX(${o}deg) `),a&&(r+=`skewY(${a}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(r+=`scale(${a}, ${l})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,n);i&&(s=i(n,s)),t.transform=s;let{x:o,y:a}=this.projectionDelta;for(let e in t.transformOrigin=`${100*o.origin}% ${100*a.origin}% 0`,r.animationValues?t.opacity=r===this?n.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:n.opacityExit:t.opacity=r===this?void 0!==n.opacity?n.opacity:"":void 0!==n.opacityExit?n.opacityExit:0,e8){if(void 0===n[e])continue;let{correct:i,applyTo:o,isCSSVariable:a}=e8[e],l="none"===s?n[e]:i(n[e],r);if(o){let e=o.length;for(let i=0;i<e;i++)t[o[i]]=l}else a?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=r===this?iR(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(su),this.root.sharedNodes.clear()}}}function sn(t){t.updateLayout()}function ss(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:r}=t.layout,{animationType:n}=t.options,s=e.source!==t.layout.source;if("size"===n)r2(t=>{let r=s?e.measuredBox[t]:e.layoutBox[t],n=r3(r);r.min=i[t].min,r.max=r.min+n});else if("x"===n||"y"===n){let t="x"===n?"y":"x";nq(s?e.measuredBox[t]:e.layoutBox[t],i[t])}else sS(n,e.layoutBox,i)&&r2(r=>{let n=s?e.measuredBox[r]:e.layoutBox[r],o=r3(i[r]);n.max=n.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[r].max=t.relativeTarget[r].min+o)});let o=tE();r8(o,i,e.layoutBox);let a=tE();s?r8(a,t.applyTransform(r,!0),e.measuredBox):r8(a,i,e.layoutBox);let l=!n0(o),u=!1;if(!t.resumeFrom){let r=t.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:n,layout:s}=r;if(n&&s){let o=t.options.layoutAnchor||void 0,a=tS();nt(a,e.layoutBox,n.layoutBox,o);let l=tS();nt(l,i,s.layoutBox,o),n6(a,l)||(u=!0),r.options.layoutRoot&&(t.relativeTarget=l,t.relativeTargetOrigin=a,t.relativeParent=r)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function so(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function sa(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function sl(t){t.clearSnapshot()}function su(t){t.clearMeasurements()}function sh(t){t.isLayoutDirty=!0,t.updateLayout()}function sc(t){t.isLayoutDirty=!1}function sd(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function sp(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function sf(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function sm(t){t.resolveTargetDelta()}function sg(t){t.calcProjection()}function sy(t){t.resetSkewAndRotation()}function sv(t){t.removeLeadSnapshot()}function sb(t,e,i){t.translate=e4(e.translate,0,i),t.scale=e4(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function sx(t,e,i,r){t.min=e4(e.min,i.min,r),t.max=e4(e.max,i.max,r)}function sw(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let sC={duration:.45,ease:[.4,0,.1,1]},sk=t=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),sE=sk("applewebkit/")&&!sk("chrome/")?Math.round:R;function sT(t){t.min=sE(t.min),t.max=sE(t.max)}function sS(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(n3(e)-n3(i)))}function sP(t){return t!==t.root&&t.scroll?.wasRoot}let sA=sr({attachResizeListener:(t,e)=>r5(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),sR={current:void 0},s_=sr({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!sR.current){let t=new sA({});t.mount(window),t.setOptions({layoutScroll:!0}),sR.current=t}return sR.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function sM(t,e){let i=ni(t),r=new AbortController;return[i,{passive:!0,...e,signal:r.signal},()=>r.abort()]}function sL(t,e,i){let{props:r}=t;t.animationState&&r.whileHover&&t.animationState.setActive("whileHover","Start"===i);let n=r["onHover"+i];n&&j.postRender(()=>n(e,nf(e)))}let sj=(t,e)=>!!e&&(t===e||sj(t,e.parentElement)),sV=new WeakSet;function sO(t){return e=>{"Enter"===e.key&&t(e)}}function sD(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function sN(t){return np(t)&&!(r6.x||r6.y)}let sB=new WeakSet;function sI(t,e,i){let{props:r}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&r.whileTap&&t.animationState.setActive("whileTap","Start"===i);let n=r["onTap"+("End"===i?"":i)];n&&j.postRender(()=>n(e,nf(e)))}let sF=new WeakMap,sU=new WeakMap,s$=t=>{let e=sF.get(t.target);e&&e(t)},sz=t=>{t.forEach(s$)},sH={some:0,all:1},sW=function(t,e){if("u"<typeof Proxy)return iF;let i=new Map,r=(i,r)=>iF(i,r,t,e);return new Proxy((t,e)=>r(t,e),{get:(n,s)=>"create"===s?r:(i.has(s)||i.set(s,iF(s,void 0,t,e)),i.get(s))})}({animation:{Feature:class extends iU{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let r;if(t.notify("AnimationStart",e),Array.isArray(e))r=Promise.all(e.map(e=>rK(t,e,i)));else if("string"==typeof e)r=rK(t,e,i);else{let n="function"==typeof e?i$(t,e,i.custom):e;r=Promise.all(rq(t,n,i))}return r.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=r1(),r=!0,n=!1,s=e=>(i,r)=>{let n=i$(t,r,"exit"===e?t.presenceContext?.custom:void 0);if(n){let{transition:t,transitionEnd:e,...r}=n;i={...i,...r,...e}}return i};function o(o){let{props:a}=t,l=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;t<rX;t++){let r=eV[t],n=e.props[r];(eL(n)||!1===n)&&(i[r]=n)}return i}(t.parent)||{},u=[],h=new Set,c={},d=1/0;for(let e=0;e<rJ;e++){var p,f;let m=rG[e],g=i[m],y=void 0!==a[m]?a[m]:l[m],v=eL(y),b=m===o?g.isActive:null;!1===b&&(d=e);let x=y===l[m]&&y!==a[m]&&v;if(x&&(r||n)&&t.manuallyAnimateOnMount&&(x=!1),g.protectedKeys={...c},!g.isActive&&null===b||!y&&!g.prevProp||eM(y)||"boolean"==typeof y)continue;if("exit"===m&&g.isActive&&!0!==b){g.prevResolvedValues&&(c={...c,...g.prevResolvedValues});continue}let w=(p=g.prevProp,"string"==typeof(f=y)?f!==p:!!Array.isArray(f)&&!rZ(f,p)),C=w||m===o&&g.isActive&&!x&&v||e>d&&v,k=!1,E=Array.isArray(y)?y:[y],T=E.reduce(s(m),{});!1===b&&(T={});let{prevResolvedValues:S={}}=g,P={...S,...T},A=e=>{C=!0,h.has(e)&&(k=!0,h.delete(e)),g.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in P){let e=T[t],i=S[t];if(!c.hasOwnProperty(t))(iW(e)&&iW(i)?rZ(e,i):e===i)?void 0!==e&&h.has(t)?A(t):g.protectedKeys[t]=!0:null!=e?A(t):h.add(t)}g.prevProp=y,g.prevResolvedValues=T,g.isActive&&(c={...c,...T}),(r||n)&&t.blockInitialAnimation&&(C=!1);let R=x&&w,_=!R||k;C&&_&&u.push(...E.map(e=>{let i={type:m};if("string"==typeof e&&(r||n)&&!R&&t.manuallyAnimateOnMount&&t.parent){let{parent:r}=t,n=i$(r,e);if(r.enteringChildren&&n){let{delayChildren:e}=n.transition||{};i.delay=rY(r.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(h.size){let e={};if("boolean"!=typeof a.initial){let i=i$(t,Array.isArray(a.initial)?a.initial[0]:a.initial);i&&i.transition&&(e.transition=i.transition)}h.forEach(i=>{let r=t.getBaseTarget(i),n=t.getValue(i);n&&(n.liveStyle=!0),e[i]=r??null}),u.push({animation:e})}let m=!!u.length;return r&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(m=!1),r=!1,n=!1,m?e(u):Promise.resolve()}return{animateChanges:o,setActive:function(e,r){if(i[e].isActive===r)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,r)),i[e].isActive=r;let n=o(e);for(let t in i)i[t].protectedKeys={};return n},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=r1(),n=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();eM(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends iU{constructor(){super(...arguments),this.id=r0++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;if(t&&!1===i){if(this.isExitComplete){let{initial:t,custom:e}=this.node.getProps();if("string"==typeof t){let i=i$(this.node,t,e);if(i){let{transition:t,transitionEnd:e,...r}=i;for(let t in r)this.node.getValue(t)?.jump(r[t])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive("exit",!t);e&&!t&&r.then(()=>{this.isExitComplete=!0,e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}},inView:{Feature:class extends iU{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var t;let e;this.stopObserver?.();let{viewport:i={}}=this.node.getProps(),{root:r,margin:n,amount:s="some",once:o}=i,a={root:r?r.current:void 0,rootMargin:n,threshold:"number"==typeof s?s:sH[s]},l=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,o&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:r}=this.node.getProps(),n=e?i:r;n&&n(t)};this.stopObserver=(t=this.node.current,e=function({root:t,...e}){let i=t||document;sU.has(i)||sU.set(i,{});let r=sU.get(i),n=JSON.stringify(e);return r[n]||(r[n]=new IntersectionObserver(sz,{root:t,...e})),r[n]}(a),sF.set(t,l),e.observe(t),()=>{sF.delete(t),e.unobserve(t)})}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}},tap:{Feature:class extends iU{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:e,propagate:i}=this.node.props;this.unmount=function(t,e,i={}){let[r,n,s]=sM(t,i),o=t=>{let r=t.currentTarget;if(!sN(t)||sB.has(t))return;sV.add(r),i.stopPropagation&&sB.add(t);let s=e(r,t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),sV.has(r)&&sV.delete(r),sN(t)&&"function"==typeof s&&s(t,{success:e})},a=t=>{o(t,r===window||r===document||i.useGlobalTarget||sj(r,t.target))},l=t=>{o(t,!1)};window.addEventListener("pointerup",a,n),window.addEventListener("pointercancel",l,n)};return r.forEach(t=>{((i.useGlobalTarget?window:t).addEventListener("pointerdown",o,n),T(t))&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let r=sO(()=>{if(sV.has(i))return;sD(i,"down");let t=sO(()=>{sD(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>sD(i,"cancel"),e)});i.addEventListener("keydown",r,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",r),e)})(t,n)),nc.has(t.tagName)||!0===t.isContentEditable||t.hasAttribute("tabindex")||(t.tabIndex=0))}),s}(t,(t,e)=>(sI(this.node,e,"Start"),(t,{success:e})=>sI(this.node,t,e?"End":"Cancel")),{useGlobalTarget:e,stopPropagation:i?.tap===!1})}unmount(){}}},focus:{Feature:class extends iU{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){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=iK(r5(this.node.current,"focus",()=>this.onFocus()),r5(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends iU{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[r,n,s]=sM(t,i);return r.forEach(t=>{let i,r=!1,s=!1,o=e=>{i&&(i(e),i=void 0),t.removeEventListener("pointerleave",l)},a=t=>{r=!1,window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",a),s&&(s=!1,o(t))},l=t=>{if("touch"!==t.pointerType){if(r){s=!0;return}o(t)}};t.addEventListener("pointerenter",r=>{if("touch"===r.pointerType||r6.x||r6.y)return;s=!1;let o=e(t,r);"function"==typeof o&&(i=o,t.addEventListener("pointerleave",l,n))},n),t.addEventListener("pointerdown",()=>{r=!0,window.addEventListener("pointerup",a,n),window.addEventListener("pointercancel",a,n)},n)}),s}(t,(t,e)=>(sL(this.node,e,"Start"),t=>sL(this.node,t,"End"))))}unmount(){}}},pan:{Feature:class extends iU{constructor(){super(...arguments),this.removePointerDownListener=R}onPointerDown(t){this.session=new nb(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ng(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:r}=this.node.getProps();return{onSessionStart:nL(t),onStart:nL(e),onMove:nL(i),onEnd:(t,e)=>{delete this.session,r&&j.postRender(()=>r(t,e))}}}mount(){this.removePointerDownListener=nm(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends iU{constructor(t){super(t),this.removeGroupControls=R,this.removeListeners=R,this.controls=new nR(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||R}update(){let{dragControls:t}=this.node.getProps(),{dragControls:e}=this.node.prevProps||{};t!==e&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ProjectionNode:s_,MeasureLayout:nN},layout:{ProjectionNode:s_,MeasureLayout:nN}},(t,e)=>e.isSVG??ib(t)?new ie(e):new iy(e,{allowProjection:t!==o.Fragment}));t.s(["motion",0,sW],12086)},93739,22353,56696,t=>{"use strict";let e,i,r,n;var s=t.i(65289);function o(t,e){if("function"==typeof t)return t(e);null!=t&&(t.current=e)}function a(...t){return e=>{let i=!1,r=t.map(t=>{let r=o(t,e);return i||"function"!=typeof r||(i=!0),r});if(i)return()=>{for(let e=0;e<r.length;e++){let i=r[e];"function"==typeof i?i():o(t[e],null)}}}}t.s(["composeRefs",0,a,"useComposedRefs",0,function(...t){return s.useCallback(a(...t),t)}],22353);var l=t.i(31317),u=Symbol.for("react.lazy"),h=s[" use ".trim().toString()];function c(t){var e;return null!=t&&"object"==typeof t&&"$$typeof"in t&&t.$$typeof===u&&"_payload"in t&&"object"==typeof(e=t._payload)&&null!==e&&"then"in e}var d=((n=s.forwardRef((t,e)=>{let{children:i,...r}=t;if(c(i)&&"function"==typeof h&&(i=h(i._payload)),s.isValidElement(i)){var n;let t,o,l=(n=i,(o=(t=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?n.ref:(o=(t=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?n.props.ref:n.props.ref||n.ref),u=function(t,e){let i={...e};for(let r in e){let n=t[r],s=e[r];/^on[A-Z]/.test(r)?n&&s?i[r]=(...t)=>{let e=s(...t);return n(...t),e}:n&&(i[r]=n):"style"===r?i[r]={...n,...s}:"className"===r&&(i[r]=[n,s].filter(Boolean).join(" "))}return{...t,...i}}(r,i.props);return i.type!==s.Fragment&&(u.ref=e?a(e,l):l),s.cloneElement(i,u)}return s.Children.count(i)>1?s.Children.only(null):null})).displayName="Slot.SlotClone",e=n,(i=s.forwardRef((t,i)=>{let{children:r,...n}=t;c(r)&&"function"==typeof h&&(r=h(r._payload));let o=s.Children.toArray(r),a=o.find(m);if(a){let t=a.props.children,r=o.map(e=>e!==a?e:s.Children.count(t)>1?s.Children.only(null):s.isValidElement(t)?t.props.children:null);return(0,l.jsx)(e,{...n,ref:i,children:s.isValidElement(t)?s.cloneElement(t,void 0,r):null})}return(0,l.jsx)(e,{...n,ref:i,children:r})})).displayName="Slot.Slot",i),p=Symbol("radix.slottable"),f=((r=({children:t})=>(0,l.jsx)(l.Fragment,{children:t})).displayName="Slottable.Slottable",r.__radixId=p,r);function m(t){return s.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===p}t.s(["Slot",0,d,"Slottable",0,f],93739),t.s(["unreachable",0,(t,e=`Entered unreachable code. Received '${"string"==typeof t?t:JSON.stringify(t)}'.`)=>{throw TypeError(e)}],56696)},74185,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var r={callServer:function(){return s.callServer},createServerReference:function(){return a.createServerReference},findSourceMapURL:function(){return o.findSourceMapURL}};for(var n in r)Object.defineProperty(i,n,{enumerable:!0,get:r[n]});let s=t.r(97464),o=t.r(60023),a=t.r(35358)},4332,(t,e,i)=>{"use strict";t.i(21403),Object.defineProperty(i,"__esModule",{value:!0});var r={default:function(){return y},useLinkStatus:function(){return b}};for(var n in r)Object.defineProperty(i,n,{enumerable:!0,get:r[n]});let s=t.r(56421),o=t.r(31317),a=s._(t.r(65289)),l=t.r(55749),u=t.r(23361),h=t.r(34921),c=t.r(58543),d=t.r(1185),p=t.r(36403),f=t.r(9345),m=t.r(96939),g=t.r(87495);function y(e){var i;let r,n,s,[y,b]=(0,a.useOptimistic)(f.IDLE_LINK_STATUS),x=(0,a.useRef)(null),{href:w,as:C,children:k,prefetch:E=null,passHref:T,replace:S,shallow:P,scroll:A,onClick:R,onMouseEnter:_,onTouchStart:M,legacyBehavior:L=!1,onNavigate:j,transitionTypes:V,ref:O,unstable_dynamicOnHover:D,...N}=e;r=k,L&&("string"==typeof r||"number"==typeof r)&&(r=(0,o.jsx)("a",{children:r}));let B=a.default.useContext(u.AppRouterContext),I=!1!==E,F=!1===E?"none":!0===E?"full":"auto",U="none"!==F?"auto"===F?g.FetchStrategy.PPR:g.FetchStrategy.Full:g.FetchStrategy.PPR,$="string"==typeof(i=C||w)?i:(0,l.formatUrl)(i);if(L){if(r?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});n=a.default.Children.only(r)}let z=L?n&&"object"==typeof n&&n.ref:O,H,W=a.default.useCallback(t=>(null!==B&&(x.current=(0,f.mountLinkInstance)(t,$,B,U,I,b,H)),()=>{x.current&&((0,f.unmountLinkForCurrentNavigation)(x.current),x.current=null),(0,f.unmountPrefetchableInstance)(t)}),[I,$,B,U,b,H]),q={ref:(0,h.useMergedRef)(W,z),onClick(e){L||"function"!=typeof R||R(e),L&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),!B||e.defaultPrevented||function(e,i,r,n,s,o,l,u="none"){if("u">typeof window){let h,{nodeName:c}=e.currentTarget;if("A"===c.toUpperCase()&&((h=e.currentTarget.getAttribute("target"))&&"_self"!==h||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which)||e.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(i)){n&&(e.preventDefault(),location.replace(i));return}if(e.preventDefault(),o){let t=!1;if(o({preventDefault:()=>{t=!0}}),t)return}let{dispatchNavigateAction:d}=t.r(40702);a.default.startTransition(()=>{d(i,n?"replace":"push",!1===s?p.ScrollBehavior.NoScroll:p.ScrollBehavior.Default,r.current,l,u)})}}(e,$,x,S,A,j,V,F)},onMouseEnter(t){L||"function"!=typeof _||_(t),L&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(t),B&&I&&(0,f.onNavigationIntent)(t.currentTarget,!0===D)},onTouchStart:function(t){L||"function"!=typeof M||M(t),L&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(t),B&&I&&(0,f.onNavigationIntent)(t.currentTarget,!0===D)}};return(0,c.isAbsoluteUrl)($)?q.href=$:L&&!T&&("a"!==n.type||"href"in n.props)||(q.href=(0,d.addBasePath)($)),s=L?a.default.cloneElement(n,q):(0,o.jsx)("a",{...N,...q,children:r}),(0,o.jsx)(v.Provider,{value:y,children:s})}let v=(0,a.createContext)(f.IDLE_LINK_STATUS),b=()=>(0,a.useContext)(v);("function"==typeof i.default||"object"==typeof i.default&&null!==i.default)&&void 0===i.default.__esModule&&(Object.defineProperty(i.default,"__esModule",{value:!0}),Object.assign(i.default,i),e.exports=i.default)},34921,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"useMergedRef",{enumerable:!0,get:function(){return n}});let r=t.r(65289);function n(t,e){let i=(0,r.useRef)(null),n=(0,r.useRef)(null);return(0,r.useCallback)(r=>{if(null===r){let t=i.current;t&&(i.current=null,t());let e=n.current;e&&(n.current=null,e())}else t&&(i.current=s(t,r)),e&&(n.current=s(e,r))},[t,e])}function s(t,e){if("function"!=typeof t)return t.current=e,()=>{t.current=null};{let i=t(e);return"function"==typeof i?i:()=>t(null)}}("function"==typeof i.default||"object"==typeof i.default&&null!==i.default)&&void 0===i.default.__esModule&&(Object.defineProperty(i.default,"__esModule",{value:!0}),Object.assign(i.default,i),e.exports=i.default)},96939,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"isLocalURL",{enumerable:!0,get:function(){return s}});let r=t.r(58543),n=t.r(97378);function s(t){if(!(0,r.isAbsoluteUrl)(t))return!0;try{let e=(0,r.getLocationOrigin)(),i=new URL(t,e);return i.origin===e&&(0,n.hasBasePath)(i.pathname)}catch(t){return!1}}},39542,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var r={assign:function(){return l},searchParamsToUrlQuery:function(){return s},urlQueryToSearchParams:function(){return a}};for(var n in r)Object.defineProperty(i,n,{enumerable:!0,get:r[n]});function s(t){let e={};for(let[i,r]of t.entries()){let t=e[i];void 0===t?e[i]=r:Array.isArray(t)?t.push(r):e[i]=[t,r]}return e}function o(t){return"string"==typeof t?t:("number"!=typeof t||isNaN(t))&&"boolean"!=typeof t?"":String(t)}function a(t){let e=new URLSearchParams;for(let[i,r]of Object.entries(t))if(Array.isArray(r))for(let t of r)e.append(i,o(t));else e.set(i,o(r));return e}function l(t,...e){for(let i of e){for(let e of i.keys())t.delete(e);for(let[e,r]of i.entries())t.append(e,r)}return t}},55749,(t,e,i)=>{"use strict";t.i(21403),Object.defineProperty(i,"__esModule",{value:!0});var r={formatUrl:function(){return a},formatWithValidation:function(){return u},urlObjectKeys:function(){return l}};for(var n in r)Object.defineProperty(i,n,{enumerable:!0,get:r[n]});let s=t.r(56421)._(t.r(39542)),o=/https?|ftp|gopher|file/;function a(t){let{auth:e,hostname:i}=t,r=t.protocol||"",n=t.pathname||"",a=t.hash||"",l=t.query||"",u=!1;e=e?encodeURIComponent(e).replace(/%3A/i,":")+"@":"",t.host?u=e+t.host:i&&(u=e+(~i.indexOf(":")?`[${i}]`:i),t.port&&(u+=":"+t.port)),l&&"object"==typeof l&&(l=String(s.urlQueryToSearchParams(l)));let h=t.search||l&&`?${l}`||"";return r&&!r.endsWith(":")&&(r+=":"),t.slashes||(!r||o.test(r))&&!1!==u?(u="//"+(u||""),n&&"/"!==n[0]&&(n="/"+n)):u||(u=""),a&&"#"!==a[0]&&(a="#"+a),h&&"?"!==h[0]&&(h="?"+h),n=n.replace(/[?#]/g,encodeURIComponent),h=h.replace("#","%23"),`${r}${u}${n}${h}${a}`}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(t){return a(t)}},58543,(t,e,i)=>{"use strict";t.i(21403),Object.defineProperty(i,"__esModule",{value:!0});var r={DecodeError:function(){return y},MiddlewareNotFoundError:function(){return w},MissingStaticPage:function(){return x},NormalizeError:function(){return v},PageNotFoundError:function(){return b},SP:function(){return m},ST:function(){return g},WEB_VITALS:function(){return s},execOnce:function(){return o},getDisplayName:function(){return c},getLocationOrigin:function(){return u},getURL:function(){return h},isAbsoluteUrl:function(){return l},isResSent:function(){return d},loadGetInitialProps:function(){return f},normalizeRepeatedSlashes:function(){return p},stringifyError:function(){return C}};for(var n in r)Object.defineProperty(i,n,{enumerable:!0,get:r[n]});let s=["CLS","FCP","FID","INP","LCP","TTFB"];function o(t){let e,i=!1;return(...r)=>(i||(i=!0,e=t(...r)),e)}let a=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,l=t=>{let e=t.charCodeAt(0);return!!(e>=65&&e<=90||e>=97&&e<=122)&&a.test(t)};function u(){let{protocol:t,hostname:e,port:i}=window.location;return`${t}//${e}${i?":"+i:""}`}function h(){let{href:t}=window.location,e=u();return t.substring(e.length)}function c(t){return"string"==typeof t?t:t.displayName||t.name||"Unknown"}function d(t){return t.finished||t.headersSent}function p(t){let e=t.split("?");return e[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(e[1]?`?${e.slice(1).join("?")}`:"")}async function f(t,e){let i=e.res||e.ctx&&e.ctx.res;if(!t.getInitialProps)return e.ctx&&e.Component?{pageProps:await f(e.Component,e.ctx)}:{};let r=await t.getInitialProps(e);if(i&&d(i))return r;if(!r)throw Object.defineProperty(Error(`"${c(t)}.getInitialProps()" should resolve to an object. But found "${r}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return r}let m="u">typeof performance,g=m&&["mark","measure","getEntriesByName"].every(t=>"function"==typeof performance[t]);class y extends Error{}class v extends Error{}class b extends Error{constructor(t){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${t}`}}class x extends Error{constructor(t,e){super(),this.message=`Failed to load static file for page: ${t} ${e}`}}class w extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function C(t){return JSON.stringify({message:t.message,stack:t.stack})}},62865,(t,e,i)=>{e.exports=t.r(62832)},2884,t=>{"use strict";var e=t.i(31317),i=t.i(93739),r=t.i(65289),n=t.i(64618),s=t.i(56696);let o=r.forwardRef(({as:t="h1",size:r="3",className:s,color:o="white",children:h,weight:c="bold",...d},p)=>(0,e.jsx)(i.Slot,{className:(0,n.cn)(s,a(r),l(o),u(c)),ref:p,...d,children:(0,e.jsx)(t,{children:h})})),a=t=>{switch(t){case"1":return"text-xs";case"2":return"text-sm";case void 0:case"3":return"text-base";case"4":return"text-lg";case"5":return"text-xl tracking-[-0.16px]";case"6":return"text-2xl tracking-[-0.288px]";case"7":return"text-[28px] leading-[34px] tracking-[-0.416px]";case"8":return"text-[35px] leading-[42px] tracking-[-0.64px]";case"9":return"text-6xl leading-[73px] tracking-[-0.896px]";case"10":return["text-[38px] leading-[46px]","md:text-[70px] md:leading-[85px] tracking-[-1.024px;]"];default:return(0,s.unreachable)(t)}},l=t=>{switch(t){case"gray":return"text-slate-11";case"white":case void 0:return"text-slate-12";default:return(0,s.unreachable)(t)}},u=t=>{switch(t){case"medium":return"font-medium";case"bold":case void 0:return"font-bold";default:return(0,s.unreachable)(t)}};o.displayName="Heading",t.s(["Heading",0,o])},9334,t=>{"use strict";var e=t.i(31317),i=t.i(65289),r=t.i(37289);let n=i.forwardRef(({...t},i)=>(0,e.jsx)(r.IconBase,{ref:i,...t,children:(0,e.jsx)("path",{d:"M12 16L6 9.85966L6.84 9L12 14.2808L17.16 9L18 9.85966L12 16Z",fill:"currentColor"})}));n.displayName="IconArrowDown",t.s(["IconArrowDown",0,n])},37289,t=>{"use strict";var e=t.i(31317);let i=t.i(65289).forwardRef(({size:t=20,children:i,...r},n)=>(0,e.jsx)("svg",{fill:"none",height:t,ref:n,viewBox:"0 0 24 24",width:t,xmlns:"http://www.w3.org/2000/svg",...r,children:i}));i.displayName="IconBase",t.s(["IconBase",0,i])},20764,6470,40802,64369,t=>{"use strict";var e=t.i(31317),i=t.i(65289);t.s(["Logo",0,()=>{let t=i.useId();return(0,e.jsxs)("svg",{fill:"none",height:"30",viewBox:"0 0 119 32",width:"113",xmlns:"http://www.w3.org/2000/svg",style:{opacity:.9},children:[(0,e.jsx)("g",{clipPath:`url(#${t})`,children:(0,e.jsx)("path",{clipRule:"evenodd",d:"M24.4558 24.4853C25.2339 23.7073 25.3805 22.6549 25.2947 21.746C25.2078 20.8254 24.8697 19.8258 24.3896 18.8287C23.957 17.9302 23.3802 16.9745 22.6821 16C23.3802 15.0255 23.957 14.0698 24.3896 13.1713C24.8697 12.1742 25.2078 11.1746 25.2947 10.254C25.3805 9.34508 25.2339 8.29273 24.4558 7.51472C23.6778 6.73671 22.6255 6.59004 21.7165 6.67584C20.796 6.76273 19.7964 7.10086 18.7993 7.58094C17.9007 8.01357 16.945 8.59036 15.9706 9.28842C14.9961 8.59036 14.0404 8.01357 13.1418 7.58094C12.1447 7.10086 11.1451 6.76273 10.2246 6.67584C9.31564 6.59004 8.26329 6.73671 7.48528 7.51472C6.70727 8.29273 6.5606 9.34508 6.6464 10.254C6.7333 11.1746 7.07142 12.1742 7.5515 13.1713C7.98414 14.0698 8.56092 15.0255 9.25898 16C8.56092 16.9745 7.98414 17.9302 7.5515 18.8287C7.07142 19.8258 6.7333 20.8254 6.6464 21.746C6.5606 22.6549 6.70727 23.7073 7.48528 24.4853C8.26329 25.2633 9.31564 25.41 10.2246 25.3242C11.1451 25.2373 12.1447 24.8991 13.1418 24.4191C14.0404 23.9864 14.9961 23.4096 15.9706 22.7116C16.945 23.4096 17.9007 23.9864 18.7993 24.4191C19.7964 24.8991 20.796 25.2373 21.7165 25.3242C22.6255 25.41 23.6778 25.2633 24.4558 24.4853ZM15.9706 20.948C16.8399 20.2684 17.724 19.4874 18.591 18.6205C19.458 17.7535 20.239 16.8693 20.9186 16C20.239 15.1307 19.458 14.2465 18.591 13.3795C17.724 12.5126 16.8399 11.7316 15.9706 11.052C15.1012 11.7316 14.2171 12.5126 13.3501 13.3795C12.4831 14.2465 11.7021 15.1307 11.0225 16C11.7021 16.8693 12.4831 17.7535 13.3501 18.6205C14.2171 19.4874 15.1012 20.2684 15.9706 20.948ZM17.1498 21.8145C17.968 21.1558 18.7885 20.4195 19.5893 19.6187C20.39 18.818 21.1264 17.9974 21.7851 17.1792C23.7187 19.9919 24.4627 22.4819 23.4576 23.487C22.4524 24.4922 19.9625 23.7482 17.1498 21.8145ZM10.156 17.1792C10.8148 17.9974 11.5511 18.818 12.3518 19.6187C13.1526 20.4195 13.9731 21.1558 14.7914 21.8145C11.9786 23.7482 9.48871 24.4922 8.48355 23.487C7.47839 22.4819 8.22238 19.9919 10.156 17.1792ZM10.156 14.8208C10.8148 14.0026 11.5511 13.182 12.3518 12.3813C13.1526 11.5805 13.9731 10.8442 14.7914 10.1855C11.9786 8.25182 9.48871 7.50783 8.48355 8.51299C7.47839 9.51815 8.22238 12.0081 10.156 14.8208ZM17.1498 10.1855C17.968 10.8442 18.7885 11.5805 19.5893 12.3813C20.39 13.182 21.1264 14.0026 21.7851 14.8208C23.7187 12.0081 24.4627 9.51815 23.4576 8.51299C22.4524 7.50783 19.9625 8.25182 17.1498 10.1855Z",fill:"white",fillRule:"evenodd",stroke:"white",strokeWidth:"0.5"})}),(0,e.jsx)("path",{d:"M36 22.176V13.744H37.936L37.968 16.432L37.696 15.824C37.8133 15.3973 38.016 15.0133 38.304 14.672C38.592 14.3307 38.9227 14.064 39.296 13.872C39.68 13.6693 40.08 13.568 40.496 13.568C40.6773 13.568 40.848 13.584 41.008 13.616C41.1787 13.648 41.3173 13.6853 41.424 13.728L40.896 15.888C40.7787 15.824 40.6347 15.7707 40.464 15.728C40.2933 15.6853 40.1227 15.664 39.952 15.664C39.6853 15.664 39.4293 15.7173 39.184 15.824C38.9493 15.92 38.7413 16.0587 38.56 16.24C38.3787 16.4213 38.2347 16.6347 38.128 16.88C38.032 17.1147 37.984 17.3813 37.984 17.68V22.176H36Z",fill:"white"}),(0,e.jsx)("path",{d:"M45.907 22.336C45.0217 22.336 44.2377 22.1493 43.555 21.776C42.883 21.4027 42.355 20.896 41.971 20.256C41.5977 19.6053 41.411 18.864 41.411 18.032C41.411 17.3707 41.5177 16.768 41.731 16.224C41.9443 15.68 42.2377 15.2107 42.611 14.816C42.995 14.4107 43.4483 14.1013 43.971 13.888C44.5043 13.664 45.0857 13.552 45.715 13.552C46.2697 13.552 46.787 13.6587 47.267 13.872C47.747 14.0853 48.163 14.3787 48.515 14.752C48.867 15.1147 49.1337 15.552 49.315 16.064C49.507 16.5653 49.5977 17.1147 49.587 17.712L49.571 18.4H42.739L42.371 17.056H47.923L47.667 17.328V16.976C47.635 16.6453 47.5283 16.3573 47.347 16.112C47.1657 15.856 46.931 15.6587 46.643 15.52C46.3657 15.3707 46.0563 15.296 45.715 15.296C45.1923 15.296 44.7497 15.3973 44.387 15.6C44.035 15.8027 43.7683 16.096 43.587 16.48C43.4057 16.8533 43.315 17.3227 43.315 17.888C43.315 18.432 43.427 18.9067 43.651 19.312C43.8857 19.7173 44.211 20.032 44.627 20.256C45.0537 20.4693 45.5497 20.576 46.115 20.576C46.5097 20.576 46.8723 20.512 47.203 20.384C47.5337 20.256 47.891 20.0267 48.275 19.696L49.251 21.056C48.963 21.3227 48.6323 21.552 48.259 21.744C47.8963 21.9253 47.5123 22.0693 47.107 22.176C46.7017 22.2827 46.3017 22.336 45.907 22.336Z",fill:"white"}),(0,e.jsx)("path",{d:"M54.094 22.336C53.4007 22.336 52.7713 22.144 52.206 21.76C51.6407 21.376 51.1873 20.8533 50.846 20.192C50.5047 19.5307 50.334 18.7787 50.334 17.936C50.334 17.0933 50.5047 16.3413 50.846 15.68C51.1873 15.0187 51.6513 14.5013 52.238 14.128C52.8247 13.7547 53.486 13.568 54.222 13.568C54.6487 13.568 55.038 13.632 55.39 13.76C55.742 13.8773 56.0513 14.048 56.318 14.272C56.5847 14.496 56.8033 14.752 56.974 15.04C57.1553 15.328 57.278 15.6373 57.342 15.968L56.91 15.856V13.744H58.894V22.176H56.894V20.16L57.358 20.08C57.2833 20.368 57.1447 20.6507 56.942 20.928C56.75 21.1947 56.5047 21.4347 56.206 21.648C55.918 21.8507 55.5927 22.016 55.23 22.144C54.878 22.272 54.4993 22.336 54.094 22.336ZM54.638 20.592C55.0967 20.592 55.502 20.48 55.854 20.256C56.206 20.032 56.478 19.7227 56.67 19.328C56.8727 18.9227 56.974 18.4587 56.974 17.936C56.974 17.424 56.8727 16.9707 56.67 16.576C56.478 16.1813 56.206 15.872 55.854 15.648C55.502 15.424 55.0967 15.312 54.638 15.312C54.1793 15.312 53.774 15.424 53.422 15.648C53.0807 15.872 52.814 16.1813 52.622 16.576C52.43 16.9707 52.334 17.424 52.334 17.936C52.334 18.4587 52.43 18.9227 52.622 19.328C52.814 19.7227 53.0807 20.032 53.422 20.256C53.774 20.48 54.1793 20.592 54.638 20.592Z",fill:"white"}),(0,e.jsx)("path",{d:"M64.3716 22.336C63.5823 22.336 62.873 22.144 62.2436 21.76C61.6143 21.376 61.1183 20.8533 60.7556 20.192C60.393 19.5307 60.2116 18.784 60.2116 17.952C60.2116 17.12 60.393 16.3733 60.7556 15.712C61.1183 15.0507 61.6143 14.528 62.2436 14.144C62.873 13.76 63.5823 13.568 64.3716 13.568C65.129 13.568 65.817 13.712 66.4356 14C67.0543 14.288 67.5343 14.688 67.8756 15.2L66.7876 16.512C66.6276 16.288 66.425 16.0853 66.1796 15.904C65.9343 15.7227 65.673 15.5787 65.3956 15.472C65.1183 15.3653 64.841 15.312 64.5636 15.312C64.0943 15.312 63.673 15.4293 63.2996 15.664C62.937 15.888 62.649 16.2027 62.4356 16.608C62.2223 17.0027 62.1156 17.4507 62.1156 17.952C62.1156 18.4533 62.2223 18.9013 62.4356 19.296C62.6596 19.6907 62.9583 20.0053 63.3316 20.24C63.705 20.4747 64.121 20.592 64.5796 20.592C64.857 20.592 65.1236 20.5493 65.3796 20.464C65.6463 20.368 65.897 20.2347 66.1316 20.064C66.3663 19.8933 66.585 19.68 66.7876 19.424L67.8756 20.752C67.513 21.2213 67.0116 21.6053 66.3716 21.904C65.7423 22.192 65.0756 22.336 64.3716 22.336Z",fill:"white"}),(0,e.jsx)("path",{d:"M69.8726 22.176V11.6H71.8406V22.176H69.8726ZM68.2086 15.568V13.744H73.6806V15.568H68.2086Z",fill:"white"}),(0,e.jsx)("path",{d:"M82.9945 22.336C82.1092 22.336 81.3252 22.1493 80.6425 21.776C79.9705 21.4027 79.4425 20.896 79.0585 20.256C78.6852 19.6053 78.4985 18.864 78.4985 18.032C78.4985 17.3707 78.6052 16.768 78.8185 16.224C79.0318 15.68 79.3252 15.2107 79.6985 14.816C80.0825 14.4107 80.5358 14.1013 81.0585 13.888C81.5918 13.664 82.1732 13.552 82.8025 13.552C83.3572 13.552 83.8745 13.6587 84.3545 13.872C84.8345 14.0853 85.2505 14.3787 85.6025 14.752C85.9545 15.1147 86.2212 15.552 86.4025 16.064C86.5945 16.5653 86.6852 17.1147 86.6745 17.712L86.6585 18.4H79.8265L79.4585 17.056H85.0105L84.7545 17.328V16.976C84.7225 16.6453 84.6158 16.3573 84.4345 16.112C84.2532 15.856 84.0185 15.6587 83.7305 15.52C83.4532 15.3707 83.1438 15.296 82.8025 15.296C82.2798 15.296 81.8372 15.3973 81.4745 15.6C81.1225 15.8027 80.8558 16.096 80.6745 16.48C80.4932 16.8533 80.4025 17.3227 80.4025 17.888C80.4025 18.432 80.5145 18.9067 80.7385 19.312C80.9732 19.7173 81.2985 20.032 81.7145 20.256C82.1412 20.4693 82.6372 20.576 83.2025 20.576C83.5972 20.576 83.9598 20.512 84.2905 20.384C84.6212 20.256 84.9785 20.0267 85.3625 19.696L86.3385 21.056C86.0505 21.3227 85.7198 21.552 85.3465 21.744C84.9838 21.9253 84.5998 22.0693 84.1945 22.176C83.7892 22.2827 83.3892 22.336 82.9945 22.336Z",fill:"white"}),(0,e.jsx)("path",{d:"M87.9655 22.176V13.744H89.9015L89.9335 15.44L89.6135 15.568C89.7095 15.2907 89.8535 15.0347 90.0455 14.8C90.2375 14.5547 90.4668 14.3467 90.7335 14.176C91.0002 13.9947 91.2828 13.856 91.5815 13.76C91.8802 13.6533 92.1842 13.6 92.4935 13.6C92.9522 13.6 93.3575 13.6747 93.7095 13.824C94.0722 13.9627 94.3708 14.1867 94.6055 14.496C94.8508 14.8053 95.0322 15.2 95.1495 15.68L94.8455 15.616L94.9735 15.36C95.0908 15.104 95.2562 14.8747 95.4695 14.672C95.6828 14.4587 95.9228 14.272 96.1895 14.112C96.4562 13.9413 96.7335 13.8133 97.0215 13.728C97.3202 13.6427 97.6135 13.6 97.9015 13.6C98.5415 13.6 99.0748 13.728 99.5015 13.984C99.9282 14.24 100.248 14.6293 100.462 15.152C100.675 15.6747 100.782 16.32 100.782 17.088V22.176H98.7975V17.216C98.7975 16.7893 98.7388 16.4373 98.6215 16.16C98.5148 15.8827 98.3442 15.68 98.1095 15.552C97.8855 15.4133 97.6028 15.344 97.2615 15.344C96.9948 15.344 96.7388 15.392 96.4935 15.488C96.2588 15.5733 96.0562 15.7013 95.8855 15.872C95.7148 16.032 95.5815 16.2187 95.4855 16.432C95.3895 16.6453 95.3415 16.88 95.3415 17.136V22.176H93.3575V17.2C93.3575 16.7947 93.2988 16.4587 93.1815 16.192C93.0642 15.9147 92.8935 15.7067 92.6695 15.568C92.4455 15.4187 92.1735 15.344 91.8535 15.344C91.5868 15.344 91.3362 15.392 91.1015 15.488C90.8668 15.5733 90.6642 15.696 90.4935 15.856C90.3228 16.016 90.1895 16.2027 90.0935 16.416C89.9975 16.6293 89.9495 16.864 89.9495 17.12V22.176H87.9655Z",fill:"white"}),(0,e.jsx)("path",{d:"M105.73 22.336C105.037 22.336 104.408 22.144 103.842 21.76C103.277 21.376 102.824 20.8533 102.482 20.192C102.141 19.5307 101.97 18.7787 101.97 17.936C101.97 17.0933 102.141 16.3413 102.482 15.68C102.824 15.0187 103.288 14.5013 103.874 14.128C104.461 13.7547 105.122 13.568 105.858 13.568C106.285 13.568 106.674 13.632 107.026 13.76C107.378 13.8773 107.688 14.048 107.954 14.272C108.221 14.496 108.44 14.752 108.61 15.04C108.792 15.328 108.914 15.6373 108.978 15.968L108.546 15.856V13.744H110.53V22.176H108.53V20.16L108.994 20.08C108.92 20.368 108.781 20.6507 108.578 20.928C108.386 21.1947 108.141 21.4347 107.842 21.648C107.554 21.8507 107.229 22.016 106.866 22.144C106.514 22.272 106.136 22.336 105.73 22.336ZM106.274 20.592C106.733 20.592 107.138 20.48 107.49 20.256C107.842 20.032 108.114 19.7227 108.306 19.328C108.509 18.9227 108.61 18.4587 108.61 17.936C108.61 17.424 108.509 16.9707 108.306 16.576C108.114 16.1813 107.842 15.872 107.49 15.648C107.138 15.424 106.733 15.312 106.274 15.312C105.816 15.312 105.41 15.424 105.058 15.648C104.717 15.872 104.45 16.1813 104.258 16.576C104.066 16.9707 103.97 17.424 103.97 17.936C103.97 18.4587 104.066 18.9227 104.258 19.328C104.45 19.7227 104.717 20.032 105.058 20.256C105.41 20.48 105.816 20.592 106.274 20.592Z",fill:"white"}),(0,e.jsx)("path",{d:"M112.616 22.176V13.744H114.584V22.176H112.616ZM113.576 11.952C113.181 11.952 112.872 11.856 112.648 11.664C112.435 11.4613 112.328 11.1787 112.328 10.816C112.328 10.4747 112.44 10.1973 112.664 9.984C112.888 9.77067 113.192 9.664 113.576 9.664C113.981 9.664 114.291 9.76534 114.504 9.968C114.728 10.16 114.84 10.4427 114.84 10.816C114.84 11.1467 114.728 11.4187 114.504 11.632C114.28 11.8453 113.971 11.952 113.576 11.952Z",fill:"white"}),(0,e.jsx)("path",{d:"M116.675 22.176V10.336H118.659V22.176H116.675Z",fill:"white"}),(0,e.jsx)("defs",{children:(0,e.jsx)("clipPath",{id:t,children:(0,e.jsx)("rect",{fill:"white",height:"32",rx:"8",width:"32"})})})]})}],20764);var r=t.i(91967),n=t.i(9413),s=t.i(36567),o=t.i(18731),a=t.i(22353),l=t.i(85565),u=t.i(90816),h=t.i(11207),c="Collapsible",[d,p]=(0,n.createContextScope)(c),[f,m]=d(c),g=i.forwardRef((t,r)=>{let{__scopeCollapsible:n,open:o,defaultOpen:a,disabled:u,onOpenChange:d,...p}=t,[m,g]=(0,s.useControllableState)({prop:o,defaultProp:a??!1,onChange:d,caller:c});return(0,e.jsx)(f,{scope:n,disabled:u,contentId:(0,h.useId)(),open:m,onOpenToggle:i.useCallback(()=>g(t=>!t),[g]),children:(0,e.jsx)(l.Primitive.div,{"data-state":C(m),"data-disabled":u?"":void 0,...p,ref:r})})});g.displayName=c;var y="CollapsibleTrigger",v=i.forwardRef((t,i)=>{let{__scopeCollapsible:n,...s}=t,o=m(y,n);return(0,e.jsx)(l.Primitive.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":C(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...s,ref:i,onClick:(0,r.composeEventHandlers)(t.onClick,o.onOpenToggle)})});v.displayName=y;var b="CollapsibleContent",x=i.forwardRef((t,i)=>{let{forceMount:r,...n}=t,s=m(b,t.__scopeCollapsible);return(0,e.jsx)(u.Presence,{present:r||s.open,children:({present:t})=>(0,e.jsx)(w,{...n,ref:i,present:t})})});x.displayName=b;var w=i.forwardRef((t,r)=>{let{__scopeCollapsible:n,present:s,children:u,...h}=t,c=m(b,n),[d,p]=i.useState(s),f=i.useRef(null),g=(0,a.useComposedRefs)(r,f),y=i.useRef(0),v=y.current,x=i.useRef(0),w=x.current,k=c.open||d,E=i.useRef(k),T=i.useRef(void 0);return i.useEffect(()=>{let t=requestAnimationFrame(()=>E.current=!1);return()=>cancelAnimationFrame(t)},[]),(0,o.useLayoutEffect)(()=>{let t=f.current;if(t){T.current=T.current||{transitionDuration:t.style.transitionDuration,animationName:t.style.animationName},t.style.transitionDuration="0s",t.style.animationName="none";let e=t.getBoundingClientRect();y.current=e.height,x.current=e.width,E.current||(t.style.transitionDuration=T.current.transitionDuration,t.style.animationName=T.current.animationName),p(s)}},[c.open,s]),(0,e.jsx)(l.Primitive.div,{"data-state":C(c.open),"data-disabled":c.disabled?"":void 0,id:c.contentId,hidden:!k,...h,ref:g,style:{"--radix-collapsible-content-height":v?`${v}px`:void 0,"--radix-collapsible-content-width":w?`${w}px`:void 0,...t.style},children:k&&u})});function C(t){return t?"open":"closed"}t.s(["Content",0,x,"Root",0,g,"Trigger",0,v],6470);var k=t.i(7464),E=t.i(34174),T=t.i(36986),S=t.i(70338),P=t.i(50438),A=i,R=t.i(53942);function _(t,e){if("function"==typeof t)return t(e);null!=t&&(t.current=e)}class M extends A.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if((0,P.isHTMLElement)(e)&&t.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let t=e.offsetParent,i=(0,P.isHTMLElement)(t)&&t.offsetWidth||0,r=(0,P.isHTMLElement)(t)&&t.offsetHeight||0,n=getComputedStyle(e),s=this.props.sizeRef.current;s.height=parseFloat(n.height),s.width=parseFloat(n.width),s.top=e.offsetTop,s.left=e.offsetLeft,s.right=i-s.width-s.left,s.bottom=r-s.height-s.top}return null}componentDidUpdate(){}render(){return this.props.children}}function L({children:t,isPresent:r,anchorX:n,anchorY:s,root:o,pop:a}){let l=(0,A.useId)(),u=(0,A.useRef)(null),h=(0,A.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:c}=(0,A.useContext)(R.MotionConfigContext),d=function(...t){return i.useCallback(function(...t){return e=>{let i=!1,r=t.map(t=>{let r=_(t,e);return i||"function"!=typeof r||(i=!0),r});if(i)return()=>{for(let e=0;e<r.length;e++){let i=r[e];"function"==typeof i?i():_(t[e],null)}}}}(...t),t)}(u,t.props?.ref??t?.ref);return(0,A.useInsertionEffect)(()=>{let{width:t,height:e,top:i,left:d,right:p,bottom:f}=h.current;if(r||!1===a||!u.current||!t||!e)return;let m="left"===n?`left: ${d}`:`right: ${p}`,g="bottom"===s?`bottom: ${f}`:`top: ${i}`;u.current.dataset.motionPopId=l;let y=document.createElement("style");c&&(y.nonce=c);let v=o??document.head;return v.appendChild(y),y.sheet&&y.sheet.insertRule(`
|
|
2
2
|
[data-motion-pop-id="${l}"] {
|
|
3
3
|
position: absolute !important;
|
|
4
4
|
width: ${t}px !important;
|
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
${m}px !important;
|
|
7
7
|
${g}px !important;
|
|
8
8
|
}
|
|
9
|
-
`),()=>{u.current?.removeAttribute("data-motion-pop-id"),v.contains(y)&&v.removeChild(y)}},[r]),(0,e.jsx)(M,{isPresent:r,childRef:u,sizeRef:h,pop:a,children:!1===a?t:A.cloneElement(t,{ref:d})})}let j=({children:t,initial:r,isPresent:n,onExitComplete:s,custom:o,presenceAffectsLayout:a,mode:l,anchorX:u,anchorY:h,root:c})=>{let d=(0,E.useConstant)(V),p=(0,i.useId)(),f=!0,m=(0,i.useMemo)(()=>(f=!1,{id:p,initial:r,isPresent:n,custom:o,onExitComplete:t=>{for(let e of(d.set(t,!0),d.values()))if(!e)return;s&&s()},register:t=>(d.set(t,!1),()=>d.delete(t))}),[n,d,s]);return a&&f&&(m={...m}),(0,i.useMemo)(()=>{d.forEach((t,e)=>d.set(e,!1))},[n]),i.useEffect(()=>{n||d.size||!s||s()},[n]),t=(0,e.jsx)(L,{pop:"popLayout"===l,isPresent:n,anchorX:u,anchorY:h,root:c,children:t}),(0,e.jsx)(S.PresenceContext.Provider,{value:m,children:t})};function V(){return new Map}var O=t.i(18015);let D=t=>t.key||"";function N(t){let e=[];return i.Children.forEach(t,t=>{(0,i.isValidElement)(t)&&e.push(t)}),e}t.s(["AnimatePresence",0,({children:t,custom:r,initial:n=!0,onExitComplete:s,presenceAffectsLayout:o=!0,mode:a="sync",propagate:l=!1,anchorX:u="left",anchorY:h="top",root:c})=>{let[d,p]=(0,O.usePresence)(l),f=(0,i.useMemo)(()=>N(t),[t]),m=l&&!d?[]:f.map(D),g=(0,i.useRef)(!0),y=(0,i.useRef)(f),v=(0,E.useConstant)(()=>new Map),b=(0,i.useRef)(new Set),[x,w]=(0,i.useState)(f),[C,S]=(0,i.useState)(f);(0,T.useIsomorphicLayoutEffect)(()=>{g.current=!1,y.current=f;for(let t=0;t<C.length;t++){let e=D(C[t]);m.includes(e)?(v.delete(e),b.current.delete(e)):!0!==v.get(e)&&v.set(e,!1)}},[C,m.length,m.join("-")]);let P=[];if(f!==x){let t=[...f];for(let e=0;e<C.length;e++){let i=C[e],r=D(i);m.includes(r)||(t.splice(e,0,i),P.push(i))}return"wait"===a&&P.length&&(t=P),S(N(t)),w(f),null}let{forceRender:A}=(0,i.useContext)(k.LayoutGroupContext);return(0,e.jsx)(e.Fragment,{children:C.map(t=>{let i=D(t),x=(!l||!!d)&&(f===C||m.includes(i));return(0,e.jsx)(j,{isPresent:x,initial:(!g.current||!!n)&&void 0,custom:r,presenceAffectsLayout:o,mode:a,root:c,onExitComplete:x?void 0:()=>{if(b.current.has(i)||!v.has(i))return;b.current.add(i),v.set(i,!0);let t=!0;v.forEach(e=>{e||(t=!1)}),t&&(A?.(),S(y.current),l&&p?.(),s&&s())},anchorX:u,anchorY:h,children:t},i)})})}],40802);var B=t.i(37289);let I=i.forwardRef(({...t},i)=>(0,e.jsx)(B.IconBase,{ref:i,...t,children:(0,e.jsx)("path",{clipRule:"evenodd",d:"M7.75 4C6.23122 4 5 5.23122 5 6.75V17.25C5 18.7688 6.23122 20 7.75 20H16.25C17.7688 20 19 18.7688 19 17.25V9C19 8.80109 18.921 8.61032 18.7803 8.46967L14.5303 4.21967C14.3897 4.07902 14.1989 4 14 4H7.75ZM6.5 6.75C6.5 6.05964 7.05964 5.5 7.75 5.5H13V9.25C13 9.66421 13.3358 10 13.75 10H17.5V17.25C17.5 17.9404 16.9404 18.5 16.25 18.5H7.75C7.05964 18.5 6.5 17.9404 6.5 17.25V6.75ZM16.6893 8.5L14.5 6.31066V8.5H16.6893Z",fill:"currentColor",fillOpacity:"0.927",fillRule:"evenodd"})}));I.displayName="IconFile",t.s(["IconFile",0,I],64369)},27818,39730,t=>{"use strict";var e=t.i(31317),i=t.i(62865),r=t.i(65289),n=t.i(64618),s=t.i(20764),o=t.i(68645);t.s([],39730);let a=r.createContext(void 0);t.s(["Shell",0,({children:t})=>{let[l,u]=r.useState(!0),h=(0,i.usePathname)();return r.useEffect(()=>{window.matchMedia("(min-width: 64rem)").matches||u(!0)},[h]),(0,e.jsxs)(a.Provider,{value:{toggleSidebar:()=>u(t=>!t),sidebarToggled:l},children:[(0,e.jsxs)("div",{className:"flex h-17.5 items-center justify-between border-slate-6 border-b px-6 lg:hidden",children:[(0,e.jsx)("div",{className:"flex h-17.5 items-center",children:(0,e.jsx)(s.Logo,{})}),(0,e.jsx)("button",{className:"flex h-6 w-6 items-center justify-center rounded-sm text-white",onClick:()=>{u(t=>!t)},type:"button",children:(0,e.jsxs)("svg",{fill:"none",height:"16",stroke:"white",viewBox:"0 0 15 15",width:"16",xmlns:"http://www.w3.org/2000/svg",children:[(0,e.jsx)("title",{children:"Menu"}),(0,e.jsx)("path",{clipRule:"evenodd",d:"M1.5 3C1.22386 3 1 3.22386 1 3.5C1 3.77614 1.22386 4 1.5 4H13.5C13.7761 4 14 3.77614 14 3.5C14 3.22386 13.7761 3 13.5 3H1.5ZM1 7.5C1 7.22386 1.22386 7 1.5 7H13.5C13.7761 7 14 7.22386 14 7.5C14 7.77614 13.7761 8 13.5 8H1.5C1.22386 8 1 7.77614 1 7.5ZM1 11.5C1 11.2239 1.22386 11 1.5 11H13.5C13.7761 11 14 11.2239 14 11.5C14 11.7761 13.7761 12 13.5 12H1.5C1.22386 12 1 11.7761 1 11.5Z",fill:"currentColor",fillRule:"evenodd"})]})})]}),(0,e.jsxs)("div",{className:"w-dvw flex h-[calc(100dvh-4.375rem)] lg:h-dvh",children:[(0,e.jsx)(r.Suspense,{children:(0,e.jsx)(o.Sidebar,{className:(0,n.cn)("fixed top-17.5 left-0 z-9999 h-full max-h-full w-full max-w-full will-change-auto [transition:width_0.2s_ease-in-out]","lg:static lg:inline-block lg:z-auto lg:max-h-full lg:w-[16rem]",{"-translate-x-full lg:translate-x-0":l,"lg:w-0":!l})})}),(0,e.jsx)("main",{className:(0,n.cn)("inline-block relative overflow-hidden will-change-[width]","w-full h-full","[transition:width_0.2s_ease-in-out,transform_0.2s_ease-in-out]",{"lg:w-[calc(100%-16rem)]":l,"opacity-0 lg:opacity-100":!l}),children:t})]})]})},"ShellContext",0,a],27818)},68645,t=>{"use strict";var e=t.i(31317),i=t.i(7284),r=t.i(62865),n=t.i(60203),s=t.i(64618),o=t.i(20764),a=t.i(6470),l=t.i(65289),u=t.i(40802),h=t.i(66699),c=t.i(12086),d=t.i(4332),p=t.i(64369),f=t.i(2884),m=t.i(9334),g=t.i(37289);let y=l.forwardRef(({...t},i)=>(0,e.jsx)(g.IconBase,{ref:i,...t,children:(0,e.jsx)("path",{clipRule:"evenodd",d:"M6.75 4C5.23122 4 4 5.23122 4 6.75V7.75V8V17.25C4 18.7688 5.23122 20 6.75 20H17.25C18.7688 20 20 18.7688 20 17.25V9.75C20 8.23122 18.7688 7 17.25 7H14.0816L13.227 5.43322C12.7451 4.54965 11.819 4 10.8127 4H6.75ZM12.3729 7L11.9101 6.15145L11.91 6.15138C11.6911 5.74989 11.2702 5.5 10.8127 5.5H6.75C6.05964 5.5 5.5 6.05964 5.5 6.75V7H12.3729ZM5.5 17.25V8.5H17.25C17.9404 8.5 18.5 9.05964 18.5 9.75V17.25C18.5 17.9404 17.9404 18.5 17.25 18.5H6.75C6.05964 18.5 5.5 17.9404 5.5 17.25Z",fill:"currentColor",fillRule:"evenodd"})}));y.displayName="IconFolder";let v=l.forwardRef(({...t},i)=>(0,e.jsx)(g.IconBase,{ref:i,...t,children:(0,e.jsx)("path",{clipRule:"evenodd",d:"M6.75 4C5.23122 4 4 5.23122 4 6.75V17.25V17.5C4 17.5933 4.01702 17.6825 4.04812 17.7649C4.28918 19.0376 5.4072 20 6.75 20H17.25C17.9905 20 18.6283 19.7404 19.111 19.2387C19.5681 18.7636 19.836 18.1241 19.9792 17.4279L21.4711 12.206C21.4903 12.139 21.5 12.0697 21.5 12C21.5 10.652 20.5301 9.53047 19.25 9.29534V8.5C19.25 7.5335 18.4665 6.75 17.5 6.75H13.9452L13.227 5.43322C12.7451 4.54965 11.819 4 10.8127 4H6.75ZM17.75 9.25V8.5C17.75 8.36193 17.6381 8.25 17.5 8.25H13.5C13.2255 8.25 12.973 8.10009 12.8416 7.85915L11.9101 6.15145L11.91 6.15138C11.6911 5.74989 11.2702 5.5 10.8127 5.5H6.75C6.05964 5.5 5.5 6.05964 5.5 6.75V13.158L6.79875 9.73401C6.90926 9.44267 7.1884 9.25 7.5 9.25H17.75ZM5.50587 17.372L8.01766 10.75H18.5H18.75C19.4091 10.75 19.949 11.26 19.9966 11.9069L18.5289 17.044C18.5233 17.0634 18.5185 17.0831 18.5146 17.1029C18.4062 17.6448 18.2275 17.9934 18.03 18.1988C17.8513 18.3846 17.6141 18.5 17.25 18.5H6.75C6.10079 18.5 5.56718 18.0051 5.50587 17.372Z",fill:"currentColor",fillRule:"evenodd"})}));v.displayName="IconFolderOpen";let b=new Set,x=({emailsDirectoryMetadata:t,className:i,currentEmailOpenSlug:r})=>{let n=!!r&&r.includes(t.relativePath),o=0===t.emailFilenames.length&&0===t.subDirectories.length,[u,h]=l.useState(b.has(t.absolutePath)||n);return l.useEffect(()=>{n&&(b.add(t.absolutePath),h(!0))},[n,t.absolutePath]),(0,e.jsxs)(a.Root,{className:(0,s.cn)("group",i),onOpenChange:e=>{e?b.add(t.absolutePath):b.delete(t.absolutePath),h(e)},open:u,children:[(0,e.jsxs)(a.Trigger,{className:(0,s.cn)("flex h-8 w-full items-center text-start justify-between gap-2 font-medium text-[14px]",{"cursor-pointer":!o}),children:[u?(0,e.jsx)(v,{className:"w-[20px]",height:"20",width:"20"}):(0,e.jsx)(y,{height:"20",width:"20"}),(0,e.jsx)(f.Heading,{as:"h3",className:"transition grow w-[calc(100%-40px)] truncate duration-200 ease-in-out hover:text-slate-12",color:"gray",size:"2",weight:"medium",children:t.directoryName}),o?null:(0,e.jsx)(m.IconArrowDown,{width:"20",height:"20",className:"ml-auto opacity-60 transition-transform data-[open=true]:rotate-180","data-open":u})]}),o?null:(0,e.jsx)(w,{currentEmailOpenSlug:r,emailsDirectoryMetadata:t,open:u})]})},w=t=>{let i=(0,r.useSearchParams)(),n=(0,r.useRouter)(),o=l.useId();return(0,e.jsx)(u.AnimatePresence,{initial:!1,children:t.open?(0,e.jsx)(a.Content,{asChild:!0,className:"relative overflow-y-hidden pl-1",forceMount:!0,children:(0,e.jsxs)(c.motion.div,{animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},initial:{opacity:0,height:0},children:[t.isRoot?null:(0,e.jsx)("div",{className:"line absolute left-2.5 h-full w-px bg-slate-6"}),(0,e.jsx)("div",{className:"flex flex-col truncate",children:(0,e.jsxs)(h.LayoutGroup,{id:`sidebar-${o}`,children:[t.emailsDirectoryMetadata.subDirectories.map(i=>(0,e.jsx)(x,{className:(0,s.cn)("data-[state=open]:mb-2",!t.isRoot&&"pl-3"),currentEmailOpenSlug:t.currentEmailOpenSlug,emailsDirectoryMetadata:i},i.absolutePath)),t.emailsDirectoryMetadata.emailFilenames.map((r,o)=>{var a;let l,u=t.isRoot?r:`${t.emailsDirectoryMetadata.relativePath}/${r}`,h=!!t.currentEmailOpenSlug&&("tsx"===(l=(a=t.currentEmailOpenSlug).split(".").pop())||"jsx"===l||"ts"===l||"js"===l||"html"===l?a.split(".").slice(0,-1).join("."):a)===u,f=r.endsWith(".html"),m=new URLSearchParams(i);f&&"compatibility"===m.get("toolbar-panel")&&m.set("toolbar-panel","linter");let g=m.toString();return(0,e.jsx)(d.default,{href:{pathname:`/preview/${u}`,search:g},onMouseOver:()=>{n.prefetch(`/preview/${u}${g?`?${g}`:""}`)},children:(0,e.jsxs)(c.motion.span,{animate:{x:0,opacity:1},className:(0,s.cn)("relative flex h-8 w-full items-center text-start gap-2 rounded-md align-middle text-slate-11 text-sm transition-colors duration-100 ease-[cubic-bezier(.6,.12,.34,.96)]",t.isRoot?void 0:"pl-3",{"text-cyan-11":h,"hover:text-slate-12":t.currentEmailOpenSlug!==u}),initial:{x:-10+-(1.5*o),opacity:0},transition:{x:{delay:.03*o,duration:.2},opacity:{delay:.03*o,duration:.2}},children:[h?(0,e.jsx)(c.motion.span,{animate:{opacity:1},className:"absolute inset-0 rounded-md bg-cyan-5 opacity-0 transition-all duration-200 ease-[cubic-bezier(.6,.12,.34,.96)]",exit:{opacity:0},initial:{opacity:0},children:t.isRoot?null:(0,e.jsx)(c.motion.div,{className:"absolute top-1 left-[0.4rem] inset-0 h-6 w-px rounded-xs bg-cyan-11",layoutId:"active-file",transition:{type:"spring",bounce:.2,duration:.6}})}):null,(0,e.jsx)(p.IconFile,{className:"h-5 w-5",height:"20",width:"20"}),(0,e.jsx)("span",{className:"truncate w-[calc(100%-1.25rem)]",children:r})]})},u)})]})})]})}):null})},C=({currentEmailOpenSlug:t,emailsDirectoryMetadata:i})=>(0,e.jsx)("div",{className:"flex w-full h-full flex-col lg:w-full lg:min-w-58",children:(0,e.jsx)("nav",{className:"flex grow flex-col p-4 pr-0 pl-0",children:(0,e.jsx)(a.Root,{open:!0,children:(0,e.jsx)(l.Suspense,{children:(0,e.jsx)(w,{currentEmailOpenSlug:t,emailsDirectoryMetadata:i,isRoot:!0,open:!0})})})})});t.s(["Sidebar",0,({className:t})=>{let{emailsDirectoryMetadata:a}=(0,n.useEmails)(),l=(0,r.useParams)(),u=Array.isArray(l.slug)?decodeURIComponent(l.slug.join("/")):void 0;return(0,e.jsx)("aside",{className:(0,s.cn)("overflow-hidden","lg:static lg:z-auto lg:max-h-screen lg:w-[16rem]",t),children:(0,e.jsxs)("div",{className:"flex w-full h-full overflow-hidden flex-col border-slate-6 border-r",children:[(0,e.jsx)("div",{className:(0,i.clsx)("hidden min-h-14 shrink items-center py-2 px-3 lg:flex border-b border-slate-4"),children:(0,e.jsx)("h2",{children:(0,e.jsx)(o.Logo,{})})}),(0,e.jsx)("div",{className:"relative grow w-full h-full overflow-y-auto overflow-x-hidden px-4 pb-3",children:(0,e.jsx)(C,{currentEmailOpenSlug:u,emailsDirectoryMetadata:a})})]})})}],68645)},60203,74805,54734,t=>{"use strict";let e,i,r;var n,s,o=t.i(31317),a=t.i(65289),l=t.i(74185);let u=(0,l.createServerReference)("00f5feaf4bd20777acc35f7f808feb7de6683fe767",l.callServer,void 0,l.findSourceMapURL,"getEmailsDirectoryMetadataAction");var h=t.i(21403);h.default.env.REACT_EMAIL_INTERNAL_USER_PROJECT_LOCATION,h.default.env.REACT_EMAIL_INTERNAL_PREVIEW_SERVER_LOCATION,h.default.env.REACT_EMAIL_INTERNAL_EMAILS_DIR_ABSOLUTE_PATH,h.default.env.REACT_EMAIL_INTERNAL_RESEND_API_KEY;let c="true"===h.default.env.NEXT_PUBLIC_IS_BUILDING,d="true"===h.default.env.NEXT_PUBLIC_IS_PREVIEW_DEVELOPMENT;t.s(["isBuilding",0,c,"isPreviewDevelopment",0,d],74805);let p=Object.create(null);p.open="0",p.close="1",p.ping="2",p.pong="3",p.message="4",p.upgrade="5",p.noop="6";let f=Object.create(null);Object.keys(p).forEach(t=>{f[p[t]]=t});let m={type:"error",data:"parser error"},g="function"==typeof Blob||"u">typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),y="function"==typeof ArrayBuffer,v=t=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,b=({type:t,data:e},i,r)=>{if(g&&e instanceof Blob)if(i)return r(e);else return x(e,r);if(y&&(e instanceof ArrayBuffer||v(e)))if(i)return r(e);else return x(new Blob([e]),r);return r(p[t]+(e||""))},x=(t,e)=>{let i=new FileReader;return i.onload=function(){e("b"+(i.result.split(",")[1]||""))},i.readAsDataURL(t)};function w(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let C="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",k="u"<typeof Uint8Array?[]:new Uint8Array(256);for(let t=0;t<C.length;t++)k[C.charCodeAt(t)]=t;let E="function"==typeof ArrayBuffer,T=(t,e)=>{if("string"!=typeof t)return{type:"message",data:P(t,e)};let i=t.charAt(0);return"b"===i?{type:"message",data:S(t.substring(1),e)}:f[i]?t.length>1?{type:f[i],data:t.substring(1)}:{type:f[i]}:m},S=(t,e)=>E?P((t=>{let e=.75*t.length,i=t.length,r,n=0,s,o,a,l;"="===t[t.length-1]&&(e--,"="===t[t.length-2]&&e--);let u=new ArrayBuffer(e),h=new Uint8Array(u);for(r=0;r<i;r+=4)s=k[t.charCodeAt(r)],o=k[t.charCodeAt(r+1)],a=k[t.charCodeAt(r+2)],l=k[t.charCodeAt(r+3)],h[n++]=s<<2|o>>4,h[n++]=(15&o)<<4|a>>2,h[n++]=(3&a)<<6|63&l;return u})(t),e):{base64:!0,data:t},P=(t,e)=>"blob"===e?t instanceof Blob?t:new Blob([t]):t instanceof ArrayBuffer?t:t.buffer;function A(t){return t.reduce((t,e)=>t+e.length,0)}function R(t,e){if(t[0].length===e)return t.shift();let i=new Uint8Array(e),r=0;for(let n=0;n<e;n++)i[n]=t[0][r++],r===t[0].length&&(t.shift(),r=0);return t.length&&r<t[0].length&&(t[0]=t[0].slice(r)),i}function _(t){if(t){var e=t;for(var i in _.prototype)e[i]=_.prototype[i];return e}}_.prototype.on=_.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},_.prototype.once=function(t,e){function i(){this.off(t,i),e.apply(this,arguments)}return i.fn=e,this.on(t,i),this},_.prototype.off=_.prototype.removeListener=_.prototype.removeAllListeners=_.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var i,r=this._callbacks["$"+t];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var n=0;n<r.length;n++)if((i=r[n])===e||i.fn===e){r.splice(n,1);break}return 0===r.length&&delete this._callbacks["$"+t],this},_.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=Array(arguments.length-1),i=this._callbacks["$"+t],r=1;r<arguments.length;r++)e[r-1]=arguments[r];if(i){i=i.slice(0);for(var r=0,n=i.length;r<n;++r)i[r].apply(this,e)}return this},_.prototype.emitReserved=_.prototype.emit,_.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},_.prototype.hasListeners=function(t){return!!this.listeners(t).length};let M="function"==typeof Promise&&"function"==typeof Promise.resolve?t=>Promise.resolve().then(t):(t,e)=>e(t,0),L="u">typeof self?self:"u">typeof window?window:Function("return this")();function j(t,...e){return e.reduce((e,i)=>(t.hasOwnProperty(i)&&(e[i]=t[i]),e),{})}let V=L.setTimeout,O=L.clearTimeout;function D(t,e){e.useNativeTimers?(t.setTimeoutFn=V.bind(L),t.clearTimeoutFn=O.bind(L)):(t.setTimeoutFn=L.setTimeout.bind(L),t.clearTimeoutFn=L.clearTimeout.bind(L))}function N(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}class B extends Error{constructor(t,e,i){super(t),this.description=e,this.context=i,this.type="TransportError"}}class I extends _{constructor(t){super(),this.writable=!1,D(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,e,i){return super.emitReserved("error",new B(t,e,i)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return("opening"===this.readyState||"open"===this.readyState)&&(this.doClose(),this.onClose()),this}send(t){"open"===this.readyState&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){let e=T(t,this.socket.binaryType);this.onPacket(e)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,e={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(e)}_hostname(){let t=this.opts.hostname;return -1===t.indexOf(":")?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&443!==Number(this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(t){let e=function(t){let e="";for(let i in t)t.hasOwnProperty(i)&&(e.length&&(e+="&"),e+=encodeURIComponent(i)+"="+encodeURIComponent(t[i]));return e}(t);return e.length?"?"+e:""}}class F extends I{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";let e=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let t=0;this._polling&&(t++,this.once("pollComplete",function(){--t||e()})),this.writable||(t++,this.once("drain",function(){--t||e()}))}else e()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){let e=t=>{if("opening"===this.readyState&&"open"===t.type&&this.onOpen(),"close"===t.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(t)};((t,e)=>{let i=t.split("\x1e"),r=[];for(let t=0;t<i.length;t++){let n=T(i[t],e);if(r.push(n),"error"===n.type)break}return r})(t,this.socket.binaryType).forEach(e),"closed"!==this.readyState&&(this._polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this._poll())}doClose(){let t=()=>{this.write([{type:"close"}])};"open"===this.readyState?t():this.once("open",t)}write(t){var e;let i,r,n;this.writable=!1,e=t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})},r=Array(i=t.length),n=0,t.forEach((t,s)=>{b(t,!1,t=>{r[s]=t,++n===i&&e(r.join("\x1e"))})})}uri(){let t=this.opts.secure?"https":"http",e=this.query||{};return!1!==this.opts.timestampRequests&&(e[this.opts.timestampParam]=N()),this.supportsBinary||e.sid||(e.b64=1),this.createUri(t,e)}}let U=!1;try{U="u">typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(t){}let $=U;function z(){}class H extends F{constructor(t){if(super(t),"u">typeof location){const e="https:"===location.protocol;let i=location.port;i||(i=e?"443":"80"),this.xd="u">typeof location&&t.hostname!==location.hostname||i!==t.port}}doWrite(t,e){let i=this.request({method:"POST",data:t});i.on("success",e),i.on("error",(t,e)=>{this.onError("xhr post error",t,e)})}doPoll(){let t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(t,e)=>{this.onError("xhr poll error",t,e)}),this.pollXhr=t}}class W extends _{constructor(t,e,i){super(),this.createRequest=t,D(this,i),this._opts=i,this._method=i.method||"GET",this._uri=e,this._data=void 0!==i.data?i.data:null,this._create()}_create(){var t;let e=j(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");e.xdomain=!!this._opts.xd;let i=this._xhr=this.createRequest(e);try{i.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders)for(let t in i.setDisableHeaderCheck&&i.setDisableHeaderCheck(!0),this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(t)&&i.setRequestHeader(t,this._opts.extraHeaders[t])}catch(t){}if("POST"===this._method)try{i.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(t){}try{i.setRequestHeader("Accept","*/*")}catch(t){}null==(t=this._opts.cookieJar)||t.addCookies(i),"withCredentials"in i&&(i.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(i.timeout=this._opts.requestTimeout),i.onreadystatechange=()=>{var t;3===i.readyState&&(null==(t=this._opts.cookieJar)||t.parseCookies(i.getResponseHeader("set-cookie"))),4===i.readyState&&(200===i.status||1223===i.status?this._onLoad():this.setTimeoutFn(()=>{this._onError("number"==typeof i.status?i.status:0)},0))},i.send(this._data)}catch(t){this.setTimeoutFn(()=>{this._onError(t)},0);return}"u">typeof document&&(this._index=W.requestsCount++,W.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(void 0!==this._xhr&&null!==this._xhr){if(this._xhr.onreadystatechange=z,t)try{this._xhr.abort()}catch(t){}"u">typeof document&&delete W.requests[this._index],this._xhr=null}}_onLoad(){let t=this._xhr.responseText;null!==t&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}function q(){for(let t in W.requests)W.requests.hasOwnProperty(t)&&W.requests[t].abort()}W.requestsCount=0,W.requests={},"u">typeof document&&("function"==typeof attachEvent?attachEvent("onunload",q):"function"==typeof addEventListener&&addEventListener("onpagehide"in L?"pagehide":"unload",q,!1));let Y=(r=K({xdomain:!1}))&&null!==r.responseType;function K(t){let e=t.xdomain;try{if("u">typeof XMLHttpRequest&&(!e||$))return new XMLHttpRequest}catch(t){}if(!e)try{return new L[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch(t){}}let X="u">typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class Z extends I{get name(){return"websocket"}doOpen(){let t=this.uri(),e=this.opts.protocols,i=X?{}:j(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(i.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,e,i)}catch(t){return this.emitReserved("error",t)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let e=0;e<t.length;e++){let i=t[e],r=e===t.length-1;b(i,this.supportsBinary,t=>{try{this.doWrite(i,t)}catch(t){}r&&M(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){void 0!==this.ws&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let t=this.opts.secure?"wss":"ws",e=this.query||{};return this.opts.timestampRequests&&(e[this.opts.timestampParam]=N()),this.supportsBinary||(e.b64=1),this.createUri(t,e)}}let G=L.WebSocket||L.MozWebSocket,J={websocket:class extends Z{createSocket(t,e,i){return X?new G(t,e,i):e?new G(t,e):new G(t)}doWrite(t,e){this.ws.send(e)}},webtransport:class extends I{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{var r,n;let s,o,a,l,u=(r=Number.MAX_SAFE_INTEGER,n=this.socket.binaryType,i||(i=new TextDecoder),s=[],o=0,a=-1,l=!1,new TransformStream({transform(t,e){for(s.push(t);;){if(0===o){if(1>A(s))break;let t=R(s,1);l=(128&t[0])==128,o=(a=127&t[0])<126?3:126===a?1:2}else if(1===o){if(2>A(s))break;let t=R(s,2);a=new DataView(t.buffer,t.byteOffset,t.length).getUint16(0),o=3}else if(2===o){if(8>A(s))break;let t=R(s,8),i=new DataView(t.buffer,t.byteOffset,t.length),r=i.getUint32(0);if(r>2097151){e.enqueue(m);break}a=0x100000000*r+i.getUint32(4),o=3}else{if(A(s)<a)break;let t=R(s,a);e.enqueue(T(l?t:i.decode(t),n)),o=0}if(0===a||a>r){e.enqueue(m);break}}}})),h=t.readable.pipeThrough(u).getReader(),c=new TransformStream({transform(t,i){var r;r=e=>{let r,n=e.length;if(n<126)new DataView((r=new Uint8Array(1)).buffer).setUint8(0,n);else if(n<65536){let t=new DataView((r=new Uint8Array(3)).buffer);t.setUint8(0,126),t.setUint16(1,n)}else{let t=new DataView((r=new Uint8Array(9)).buffer);t.setUint8(0,127),t.setBigUint64(1,BigInt(n))}t.data&&"string"!=typeof t.data&&(r[0]|=128),i.enqueue(r),i.enqueue(e)},g&&t.data instanceof Blob?t.data.arrayBuffer().then(w).then(r):y&&(t.data instanceof ArrayBuffer||v(t.data))?r(w(t.data)):b(t,!1,t=>{e||(e=new TextEncoder),r(e.encode(t))})}});c.readable.pipeTo(t.writable),this._writer=c.writable.getWriter();let d=()=>{h.read().then(({done:t,value:e})=>{t||(this.onPacket(e),d())}).catch(t=>{})};d();let p={type:"open"};this.query.sid&&(p.data=`{"sid":"${this.query.sid}"}`),this._writer.write(p).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let e=0;e<t.length;e++){let i=t[e],r=e===t.length-1;this._writer.write(i).then(()=>{r&&M(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;null==(t=this._transport)||t.close()}},polling:class extends H{constructor(t){super(t);const e=t&&t.forceBase64;this.supportsBinary=Y&&!e}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new W(K,this.uri(),t)}}},Q=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,tt=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function te(t){var e,i;let r,n;if(t.length>8e3)throw"URI too long";let s=t,o=t.indexOf("["),a=t.indexOf("]");-1!=o&&-1!=a&&(t=t.substring(0,o)+t.substring(o,a).replace(/:/g,";")+t.substring(a,t.length));let l=Q.exec(t||""),u={},h=14;for(;h--;)u[tt[h]]=l[h]||"";return -1!=o&&-1!=a&&(u.source=s,u.host=u.host.substring(1,u.host.length-1).replace(/;/g,":"),u.authority=u.authority.replace("[","").replace("]","").replace(/;/g,":"),u.ipv6uri=!0),r=(e=u.path).replace(/\/{2,9}/g,"/").split("/"),("/"==e.slice(0,1)||0===e.length)&&r.splice(0,1),"/"==e.slice(-1)&&r.splice(r.length-1,1),u.pathNames=r,i=u.query,n={},i.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(t,e,i){e&&(n[e]=i)}),u.queryKey=n,u}let ti="function"==typeof addEventListener&&"function"==typeof removeEventListener,tr=[];ti&&addEventListener("offline",()=>{tr.forEach(t=>t())},!1);class tn extends _{constructor(t,e){if(super(),this.binaryType="arraybuffer",this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&"object"==typeof t&&(e=t,t=null),t){const i=te(t);e.hostname=i.host,e.secure="https"===i.protocol||"wss"===i.protocol,e.port=i.port,i.query&&(e.query=i.query)}else e.host&&(e.hostname=te(e.host).host);D(this,e),this.secure=null!=e.secure?e.secure:"u">typeof location&&"https:"===location.protocol,e.hostname&&!e.port&&(e.port=this.secure?"443":"80"),this.hostname=e.hostname||("u">typeof location?location.hostname:"localhost"),this.port=e.port||("u">typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},e.transports.forEach(t=>{let e=t.prototype.name;this.transports.push(e),this._transportsByName[e]=t}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},e),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=function(t){let e={},i=t.split("&");for(let t=0,r=i.length;t<r;t++){let r=i[t].split("=");e[decodeURIComponent(r[0])]=decodeURIComponent(r[1])}return e}(this.opts.query)),ti&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},tr.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){let e=Object.assign({},this.opts.query);e.EIO=4,e.transport=t,this.id&&(e.sid=this.id);let i=Object.assign({},this.opts,{query:e,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](i)}_open(){if(0===this.transports.length)return void this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);let t=this.opts.rememberUpgrade&&tn.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket")?"websocket":this.transports[0];this.readyState="opening";let e=this.createTransport(t);e.open(),this.setTransport(e)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",t=>this._onClose("transport close",t))}onOpen(){this.readyState="open",tn.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush()}_onPacket(t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let e=Error("server error");e.code=t.data,this._onError(e);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data)}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),"closed"!==this.readyState&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let t=1;for(let e=0;e<this.writeBuffer.length;e++){let i=this.writeBuffer[e].data;if(i&&(t+="string"==typeof i?function(t){let e=0,i=0;for(let r=0,n=t.length;r<n;r++)(e=t.charCodeAt(r))<128?i+=1:e<2048?i+=2:e<55296||e>=57344?i+=3:(r++,i+=4);return i}(i):Math.ceil(1.33*(i.byteLength||i.size))),e>0&&t>this._maxPayload)return this.writeBuffer.slice(0,e);t+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,M(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,e,i){return this._sendPacket("message",t,e,i),this}send(t,e,i){return this._sendPacket("message",t,e,i),this}_sendPacket(t,e,i,r){if("function"==typeof e&&(r=e,e=void 0),"function"==typeof i&&(r=i,i=null),"closing"===this.readyState||"closed"===this.readyState)return;(i=i||{}).compress=!1!==i.compress;let n={type:t,data:e,options:i};this.emitReserved("packetCreate",n),this.writeBuffer.push(n),r&&this.once("flush",r),this.flush()}close(){let t=()=>{this._onClose("forced close"),this.transport.close()},e=()=>{this.off("upgrade",e),this.off("upgradeError",e),t()},i=()=>{this.once("upgrade",e),this.once("upgradeError",e)};return("opening"===this.readyState||"open"===this.readyState)&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?i():t()}):this.upgrading?i():t()),this}_onError(t){if(tn.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&"opening"===this.readyState)return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),ti&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let t=tr.indexOf(this._offlineEventListener);-1!==t&&tr.splice(t,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,e),this.writeBuffer=[],this._prevBufferLen=0}}}tn.protocol=4;class ts extends tn{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),"open"===this.readyState&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let e=this.createTransport(t),i=!1;tn.priorWebsocketSuccess=!1;let r=()=>{i||(e.send([{type:"ping",data:"probe"}]),e.once("packet",t=>{if(!i)if("pong"===t.type&&"probe"===t.data){if(this.upgrading=!0,this.emitReserved("upgrading",e),!e)return;tn.priorWebsocketSuccess="websocket"===e.name,this.transport.pause(()=>{i||"closed"!==this.readyState&&(u(),this.setTransport(e),e.send([{type:"upgrade"}]),this.emitReserved("upgrade",e),e=null,this.upgrading=!1,this.flush())})}else{let t=Error("probe error");t.transport=e.name,this.emitReserved("upgradeError",t)}}))};function n(){i||(i=!0,u(),e.close(),e=null)}let s=t=>{let i=Error("probe error: "+t);i.transport=e.name,n(),this.emitReserved("upgradeError",i)};function o(){s("transport closed")}function a(){s("socket closed")}function l(t){e&&t.name!==e.name&&n()}let u=()=>{e.removeListener("open",r),e.removeListener("error",s),e.removeListener("close",o),this.off("close",a),this.off("upgrading",l)};e.once("open",r),e.once("error",s),e.once("close",o),this.once("close",a),this.once("upgrading",l),-1!==this._upgrades.indexOf("webtransport")&&"webtransport"!==t?this.setTimeoutFn(()=>{i||e.open()},200):e.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){let e=[];for(let i=0;i<t.length;i++)~this.transports.indexOf(t[i])&&e.push(t[i]);return e}}class to extends ts{constructor(t,e={}){const i="object"==typeof t?t:e;(!i.transports||i.transports&&"string"==typeof i.transports[0])&&(i.transports=(i.transports||["polling","websocket","webtransport"]).map(t=>J[t]).filter(t=>!!t)),super(t,i)}}to.protocol;let ta="function"==typeof ArrayBuffer,tl=Object.prototype.toString,tu="function"==typeof Blob||"u">typeof Blob&&"[object BlobConstructor]"===tl.call(Blob),th="function"==typeof File||"u">typeof File&&"[object FileConstructor]"===tl.call(File);function tc(t){return ta&&(t instanceof ArrayBuffer||("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer))||tu&&t instanceof Blob||th&&t instanceof File}let td=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];(n=s||(s={}))[n.CONNECT=0]="CONNECT",n[n.DISCONNECT=1]="DISCONNECT",n[n.EVENT=2]="EVENT",n[n.ACK=3]="ACK",n[n.CONNECT_ERROR=4]="CONNECT_ERROR",n[n.BINARY_EVENT=5]="BINARY_EVENT",n[n.BINARY_ACK=6]="BINARY_ACK";class tp extends _{constructor(t){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},"function"==typeof t?{reviver:t}:t)}add(t){let e;if("string"==typeof t){if(this.reconstructor)throw Error("got plaintext data when reconstructing a packet");let i=(e=this.decodeString(t)).type===s.BINARY_EVENT;i||e.type===s.BINARY_ACK?(e.type=i?s.EVENT:s.ACK,this.reconstructor=new tf(e),0===e.attachments&&super.emitReserved("decoded",e)):super.emitReserved("decoded",e)}else if(tc(t)||t.base64)if(this.reconstructor)(e=this.reconstructor.takeBinaryData(t))&&(this.reconstructor=null,super.emitReserved("decoded",e));else throw Error("got binary data when not reconstructing a packet");else throw Error("Unknown type: "+t)}decodeString(t){let e=0,i={type:Number(t.charAt(0))};if(void 0===s[i.type])throw Error("unknown packet type "+i.type);if(i.type===s.BINARY_EVENT||i.type===s.BINARY_ACK){let r=e+1;for(;"-"!==t.charAt(++e)&&e!=t.length;);let n=t.substring(r,e);if(n!=Number(n)||"-"!==t.charAt(e))throw Error("Illegal attachments");let s=Number(n);if(!tm(s)||s<0)throw Error("Illegal attachments");if(s>this.opts.maxAttachments)throw Error("too many attachments");i.attachments=s}if("/"===t.charAt(e+1)){let r=e+1;for(;++e&&","!==t.charAt(e)&&e!==t.length;);i.nsp=t.substring(r,e)}else i.nsp="/";let r=t.charAt(e+1);if(""!==r&&Number(r)==r){let r=e+1;for(;++e;){let i=t.charAt(e);if(null==i||Number(i)!=i){--e;break}if(e===t.length)break}i.id=Number(t.substring(r,e+1))}if(t.charAt(++e)){let r=this.tryParse(t.substr(e));if(tp.isPayloadValid(i.type,r))i.data=r;else throw Error("invalid payload")}return i}tryParse(t){try{return JSON.parse(t,this.opts.reviver)}catch(t){return!1}}static isPayloadValid(t,e){switch(t){case s.CONNECT:return tg(e);case s.DISCONNECT:return void 0===e;case s.CONNECT_ERROR:return"string"==typeof e||tg(e);case s.EVENT:case s.BINARY_EVENT:return Array.isArray(e)&&("number"==typeof e[0]||"string"==typeof e[0]&&-1===td.indexOf(e[0]));case s.ACK:case s.BINARY_ACK:return Array.isArray(e)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class tf{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){var e,i;let t=(e=this.reconPack,i=this.buffers,e.data=function t(e,i){if(!e)return e;if(e&&!0===e._placeholder){if("number"==typeof e.num&&e.num>=0&&e.num<i.length)return i[e.num];throw Error("illegal attachments")}if(Array.isArray(e))for(let r=0;r<e.length;r++)e[r]=t(e[r],i);else if("object"==typeof e)for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=t(e[r],i));return e}(e.data,i),delete e.attachments,e);return this.finishedReconstruction(),t}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}let tm=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t};function tg(t){return"[object Object]"===Object.prototype.toString.call(t)}function ty(t,e,i){return t.on(e,i),function(){t.off(e,i)}}t.s(["Decoder",0,tp,"Encoder",0,class{constructor(t){this.replacer=t}encode(t){return(t.type===s.EVENT||t.type===s.ACK)&&function t(e,i){if(!e||"object"!=typeof e)return!1;if(Array.isArray(e)){for(let i=0,r=e.length;i<r;i++)if(t(e[i]))return!0;return!1}if(tc(e))return!0;if(e.toJSON&&"function"==typeof e.toJSON&&1==arguments.length)return t(e.toJSON(),!0);for(let i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&t(e[i]))return!0;return!1}(t)?this.encodeAsBinary({type:t.type===s.EVENT?s.BINARY_EVENT:s.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let e=""+t.type;return(t.type===s.BINARY_EVENT||t.type===s.BINARY_ACK)&&(e+=t.attachments+"-"),t.nsp&&"/"!==t.nsp&&(e+=t.nsp+","),null!=t.id&&(e+=t.id),null!=t.data&&(e+=JSON.stringify(t.data,this.replacer)),e}encodeAsBinary(t){let e,i,r=(e=[],i=t.data,t.data=function t(e,i){if(!e)return e;if(tc(e)){let t={_placeholder:!0,num:i.length};return i.push(e),t}if(Array.isArray(e)){let r=Array(e.length);for(let n=0;n<e.length;n++)r[n]=t(e[n],i);return r}if("object"==typeof e&&!(e instanceof Date)){let r={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=t(e[n],i));return r}return e}(i,e),t.attachments=e.length,{packet:t,buffers:e}),n=this.encodeAsString(r.packet),s=r.buffers;return s.unshift(n),s}},"PacketType",0,s,"isPacketValid",0,function(t){var e;return"string"==typeof t.nsp&&(void 0===(e=t.id)||tm(e))&&function(t,e){switch(t){case s.CONNECT:return void 0===e||tg(e);case s.DISCONNECT:return void 0===e;case s.EVENT:return Array.isArray(e)&&("number"==typeof e[0]||"string"==typeof e[0]&&-1===td.indexOf(e[0]));case s.ACK:return Array.isArray(e);case s.CONNECT_ERROR:return"string"==typeof e||tg(e);default:return!1}}(t.type,t.data)},"protocol",0,5],53192);let tv=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class tb extends _{constructor(t,e,i){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=e,i&&i.auth&&(this.auth=i.auth),this._opts=Object.assign({},i),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let t=this.io;this.subs=[ty(t,"open",this.onopen.bind(this)),ty(t,"packet",this.onpacket.bind(this)),ty(t,"error",this.onerror.bind(this)),ty(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...e){var i,r,n;if(tv.hasOwnProperty(t))throw Error('"'+t.toString()+'" is a reserved event name');if(e.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(e),this;let o={type:s.EVENT,data:e};if(o.options={},o.options.compress=!1!==this.flags.compress,"function"==typeof e[e.length-1]){let t=this.ids++,i=e.pop();this._registerAckCallback(t,i),o.id=t}let a=null==(r=null==(i=this.io.engine)?void 0:i.transport)?void 0:r.writable,l=this.connected&&!(null==(n=this.io.engine)?void 0:n._hasPingExpired());return this.flags.volatile&&!a||(l?(this.notifyOutgoingListeners(o),this.packet(o)):this.sendBuffer.push(o)),this.flags={},this}_registerAckCallback(t,e){var i;let r=null!=(i=this.flags.timeout)?i:this._opts.ackTimeout;if(void 0===r){this.acks[t]=e;return}let n=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let e=0;e<this.sendBuffer.length;e++)this.sendBuffer[e].id===t&&this.sendBuffer.splice(e,1);e.call(this,Error("operation has timed out"))},r),s=(...t)=>{this.io.clearTimeoutFn(n),e.apply(this,t)};s.withError=!0,this.acks[t]=s}emitWithAck(t,...e){return new Promise((i,r)=>{let n=(t,e)=>t?r(t):i(e);n.withError=!0,e.push(n),this.emit(t,...e)})}_addToQueue(t){let e;"function"==typeof t[t.length-1]&&(e=t.pop());let i={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((t,...r)=>(this._queue[0],null!==t?i.tryCount>this._opts.retries&&(this._queue.shift(),e&&e(t)):(this._queue.shift(),e&&e(null,...r)),i.pending=!1,this._drainQueue())),this._queue.push(i),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||0===this._queue.length)return;let e=this._queue[0];(!e.pending||t)&&(e.pending=!0,e.tryCount++,this.flags=e.flags,this.emit.apply(this,e.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){"function"==typeof this.auth?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:s.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,e){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,e),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(e=>String(e.id)===t)){let e=this.acks[t];delete this.acks[t],e.withError&&e.call(this,Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case s.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case s.EVENT:case s.BINARY_EVENT:this.onevent(t);break;case s.ACK:case s.BINARY_ACK:this.onack(t);break;case s.DISCONNECT:this.ondisconnect();break;case s.CONNECT_ERROR:this.destroy();let e=Error(t.data.message);e.data=t.data.data,this.emitReserved("connect_error",e)}}onevent(t){let e=t.data||[];null!=t.id&&e.push(this.ack(t.id)),this.connected?this.emitEvent(e):this.receiveBuffer.push(Object.freeze(e))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length)for(let e of this._anyListeners.slice())e.apply(this,t);super.emit.apply(this,t),this._pid&&t.length&&"string"==typeof t[t.length-1]&&(this._lastOffset=t[t.length-1])}ack(t){let e=this,i=!1;return function(...r){i||(i=!0,e.packet({type:s.ACK,id:t,data:r}))}}onack(t){let e=this.acks[t.id];"function"==typeof e&&(delete this.acks[t.id],e.withError&&t.data.unshift(null),e.apply(this,t.data))}onconnect(t,e){this.id=t,this.recovered=e&&this._pid===e,this._pid=e,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:s.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){let e=this._anyListeners;for(let i=0;i<e.length;i++)if(t===e[i]){e.splice(i,1);break}}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){let e=this._anyOutgoingListeners;for(let i=0;i<e.length;i++)if(t===e[i]){e.splice(i,1);break}}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length)for(let e of this._anyOutgoingListeners.slice())e.apply(this,t.data)}}var tx=t.i(53192);function tw(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}tw.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),i=Math.floor(e*this.jitter*t);t=(1&Math.floor(10*e))==0?t-i:t+i}return 0|Math.min(t,this.max)},tw.prototype.reset=function(){this.attempts=0},tw.prototype.setMin=function(t){this.ms=t},tw.prototype.setMax=function(t){this.max=t},tw.prototype.setJitter=function(t){this.jitter=t};class tC extends _{constructor(t,e){var i;super(),this.nsps={},this.subs=[],t&&"object"==typeof t&&(e=t,t=void 0),(e=e||{}).path=e.path||"/socket.io",this.opts=e,D(this,e),this.reconnection(!1!==e.reconnection),this.reconnectionAttempts(e.reconnectionAttempts||1/0),this.reconnectionDelay(e.reconnectionDelay||1e3),this.reconnectionDelayMax(e.reconnectionDelayMax||5e3),this.randomizationFactor(null!=(i=e.randomizationFactor)?i:.5),this.backoff=new tw({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==e.timeout?2e4:e.timeout),this._readyState="closed",this.uri=t;const r=e.parser||tx;this.encoder=new r.Encoder,this.decoder=new r.Decoder,this._autoConnect=!1!==e.autoConnect,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return void 0===t?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var e;return void 0===t?this._reconnectionDelay:(this._reconnectionDelay=t,null==(e=this.backoff)||e.setMin(t),this)}randomizationFactor(t){var e;return void 0===t?this._randomizationFactor:(this._randomizationFactor=t,null==(e=this.backoff)||e.setJitter(t),this)}reconnectionDelayMax(t){var e;return void 0===t?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,null==(e=this.backoff)||e.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new to(this.uri,this.opts);let e=this.engine,i=this;this._readyState="opening",this.skipReconnect=!1;let r=ty(e,"open",function(){i.onopen(),t&&t()}),n=e=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",e),t?t(e):this.maybeReconnectOnOpen()},s=ty(e,"error",n);if(!1!==this._timeout){let t=this._timeout,i=this.setTimeoutFn(()=>{r(),n(Error("timeout")),e.close()},t);this.opts.autoUnref&&i.unref(),this.subs.push(()=>{this.clearTimeoutFn(i)})}return this.subs.push(r),this.subs.push(s),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let t=this.engine;this.subs.push(ty(t,"ping",this.onping.bind(this)),ty(t,"data",this.ondata.bind(this)),ty(t,"error",this.onerror.bind(this)),ty(t,"close",this.onclose.bind(this)),ty(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(t){this.onclose("parse error",t)}}ondecoded(t){M(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,e){let i=this.nsps[t];return i?this._autoConnect&&!i.active&&i.connect():(i=new tb(this,t,e),this.nsps[t]=i),i}_destroy(t){for(let t of Object.keys(this.nsps))if(this.nsps[t].active)return;this._close()}_packet(t){let e=this.encoder.encode(t);for(let i=0;i<e.length;i++)this.engine.write(e[i],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,e){var i;this.cleanup(),null==(i=this.engine)||i.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,e),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let e=this.backoff.duration();this._reconnecting=!0;let i=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),t.skipReconnect||t.open(e=>{e?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",e)):t.onreconnect()}))},e);this.opts.autoUnref&&i.unref(),this.subs.push(()=>{this.clearTimeoutFn(i)})}}onreconnect(){let t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}let tk={};function tE(t,e){let i;"object"==typeof t&&(e=t,t=void 0);let r=function(t,e="",i){let r=t;i=i||"u">typeof location&&location,null==t&&(t=i.protocol+"//"+i.host),"string"==typeof t&&("/"===t.charAt(0)&&(t="/"===t.charAt(1)?i.protocol+t:i.host+t),/^(https?|wss?):\/\//.test(t)||(t=void 0!==i?i.protocol+"//"+t:"https://"+t),r=te(t)),!r.port&&(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";let n=-1!==r.host.indexOf(":")?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+n+":"+r.port+e,r.href=r.protocol+"://"+n+(i&&i.port===r.port?"":":"+r.port),r}(t,(e=e||{}).path||"/socket.io"),n=r.source,s=r.id,o=r.path,a=tk[s]&&o in tk[s].nsps;return e.forceNew||e["force new connection"]||!1===e.multiplex||a?i=new tC(n,e):(tk[s]||(tk[s]=new tC(n,e)),i=tk[s]),r.query&&!e.query&&(e.query=r.queryKey),i.socket(r.path,e)}Object.assign(tE,{Manager:tC,Socket:tb,io:tE,connect:tE});let tT=t=>{let e=(0,a.useRef)(t);e.current=t,(0,a.useEffect)(()=>{let t=tE(),i=t=>{console.debug("Reloading..."),e.current(t)};return t.on("reload",i),()=>{t.off("reload",i),t.disconnect()}},[])};t.s(["useHotreload",0,tT],54734);let tS=(0,a.createContext)(void 0);t.s(["EmailsProvider",0,t=>{let[e,i]=(0,a.useState)(t.initialEmailsDirectoryMetadata);return c||d||tT(async()=>{let t=await u();if(t)i(t);else throw Error("Hot reloading: unable to find the emails directory to update the sidebar")}),(0,o.jsx)(tS.Provider,{value:{emailsDirectoryMetadata:e},children:t.children})},"useEmails",0,()=>{let t=(0,a.useContext)(tS);if(void 0===t)throw Error("Cannot call `useEmails` outside of an `EmailsContext` provider.");return t}],60203)},64618,7284,t=>{"use strict";var e;let i,r,n,s,o;function a(){for(var t,e,i=0,r="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=function t(e){var i,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var s=e.length;for(i=0;i<s;i++)e[i]&&(r=t(e[i]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}(t))&&(r&&(r+=" "),r+=e);return r}t.s(["clsx",0,a,"default",0,a],7284);let l=(t=new Map,e=null,i)=>({nextPart:t,validators:e,classGroupId:i}),u=[],h=(t,e,i)=>{if(0==t.length-e)return i.classGroupId;let r=t[e],n=i.nextPart.get(r);if(n){let i=h(t,e+1,n);if(i)return i}let s=i.validators;if(null===s)return;let o=0===e?t.join("-"):t.slice(e).join("-"),a=s.length;for(let t=0;t<a;t++){let e=s[t];if(e.validator(o))return e.classGroupId}},c=(t,e)=>{let i=l();for(let r in t)d(t[r],i,r,e);return i},d=(t,e,i,r)=>{let n=t.length;for(let s=0;s<n;s++)p(t[s],e,i,r)},p=(t,e,i,r)=>{"string"==typeof t?f(t,e,i):"function"==typeof t?m(t,e,i,r):g(t,e,i,r)},f=(t,e,i)=>{(""===t?e:y(e,t)).classGroupId=i},m=(t,e,i,r)=>{v(t)?d(t(r),e,i,r):(null===e.validators&&(e.validators=[]),e.validators.push({classGroupId:i,validator:t}))},g=(t,e,i,r)=>{let n=Object.entries(t),s=n.length;for(let t=0;t<s;t++){let[s,o]=n[t];d(o,y(e,s),i,r)}},y=(t,e)=>{let i=t,r=e.split("-"),n=r.length;for(let t=0;t<n;t++){let e=r[t],n=i.nextPart.get(e);n||(n=l(),i.nextPart.set(e,n)),i=n}return i},v=t=>"isThemeGetter"in t&&!0===t.isThemeGetter,b=[],x=(t,e,i,r,n)=>({modifiers:t,hasImportantModifier:e,baseClassName:i,maybePostfixModifierPosition:r,isExternal:n}),w=/\s+/,C=t=>{let e;if("string"==typeof t)return t;let i="";for(let r=0;r<t.length;r++)t[r]&&(e=C(t[r]))&&(i&&(i+=" "),i+=e);return i},k=[],E=t=>{let e=e=>e[t]||k;return e.isThemeGetter=!0,e},T=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,S=/^\((?:(\w[\w-]*):)?(.+)\)$/i,P=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,A=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,R=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,_=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,M=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,L=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,j=t=>P.test(t),V=t=>!!t&&!Number.isNaN(Number(t)),O=t=>!!t&&Number.isInteger(Number(t)),D=t=>t.endsWith("%")&&V(t.slice(0,-1)),N=t=>A.test(t),B=()=>!0,I=t=>R.test(t)&&!_.test(t),F=()=>!1,U=t=>M.test(t),$=t=>L.test(t),z=t=>!W(t)&&!Q(t),H=t=>ta(t,tc,F),W=t=>T.test(t),q=t=>ta(t,td,I),Y=t=>ta(t,tp,V),K=t=>ta(t,tm,B),X=t=>ta(t,tf,F),Z=t=>ta(t,tu,F),G=t=>ta(t,th,$),J=t=>ta(t,tg,U),Q=t=>S.test(t),tt=t=>tl(t,td),te=t=>tl(t,tf),ti=t=>tl(t,tu),tr=t=>tl(t,tc),tn=t=>tl(t,th),ts=t=>tl(t,tg,!0),to=t=>tl(t,tm,!0),ta=(t,e,i)=>{let r=T.exec(t);return!!r&&(r[1]?e(r[1]):i(r[2]))},tl=(t,e,i=!1)=>{let r=S.exec(t);return!!r&&(r[1]?e(r[1]):i)},tu=t=>"position"===t||"percentage"===t,th=t=>"image"===t||"url"===t,tc=t=>"length"===t||"size"===t||"bg-size"===t,td=t=>"length"===t,tp=t=>"number"===t,tf=t=>"family-name"===t,tm=t=>"number"===t||"weight"===t,tg=t=>"shadow"===t,ty=(e=()=>{let t=E("color"),e=E("font"),i=E("text"),r=E("font-weight"),n=E("tracking"),s=E("leading"),o=E("breakpoint"),a=E("container"),l=E("spacing"),u=E("radius"),h=E("shadow"),c=E("inset-shadow"),d=E("text-shadow"),p=E("drop-shadow"),f=E("blur"),m=E("perspective"),g=E("aspect"),y=E("ease"),v=E("animate"),b=()=>["auto","avoid","all","avoid-page","page","left","right","column"],x=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],w=()=>[...x(),Q,W],C=()=>["auto","hidden","clip","visible","scroll"],k=()=>["auto","contain","none"],T=()=>[Q,W,l],S=()=>[j,"full","auto",...T()],P=()=>[O,"none","subgrid",Q,W],A=()=>["auto",{span:["full",O,Q,W]},O,Q,W],R=()=>[O,"auto",Q,W],_=()=>["auto","min","max","fr",Q,W],M=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],L=()=>["start","end","center","stretch","center-safe","end-safe"],I=()=>["auto",...T()],F=()=>[j,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...T()],U=()=>[j,"screen","full","dvw","lvw","svw","min","max","fit",...T()],$=()=>[j,"screen","full","lh","dvh","lvh","svh","min","max","fit",...T()],ta=()=>[t,Q,W],tl=()=>[...x(),ti,Z,{position:[Q,W]}],tu=()=>["no-repeat",{repeat:["","x","y","space","round"]}],th=()=>["auto","cover","contain",tr,H,{size:[Q,W]}],tc=()=>[D,tt,q],td=()=>["","none","full",u,Q,W],tp=()=>["",V,tt,q],tf=()=>["solid","dashed","dotted","double"],tm=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],tg=()=>[V,D,ti,Z],ty=()=>["","none",f,Q,W],tv=()=>["none",V,Q,W],tb=()=>["none",V,Q,W],tx=()=>[V,Q,W],tw=()=>[j,"full",...T()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[N],breakpoint:[N],color:[B],container:[N],"drop-shadow":[N],ease:["in","out","in-out"],font:[z],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[N],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[N],shadow:[N],spacing:["px",V],text:[N],"text-shadow":[N],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",j,W,Q,g]}],container:["container"],columns:[{columns:[V,W,Q,a]}],"break-after":[{"break-after":b()}],"break-before":[{"break-before":b()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:w()}],overflow:[{overflow:C()}],"overflow-x":[{"overflow-x":C()}],"overflow-y":[{"overflow-y":C()}],overscroll:[{overscroll:k()}],"overscroll-x":[{"overscroll-x":k()}],"overscroll-y":[{"overscroll-y":k()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:S()}],"inset-x":[{"inset-x":S()}],"inset-y":[{"inset-y":S()}],start:[{"inset-s":S(),start:S()}],end:[{"inset-e":S(),end:S()}],"inset-bs":[{"inset-bs":S()}],"inset-be":[{"inset-be":S()}],top:[{top:S()}],right:[{right:S()}],bottom:[{bottom:S()}],left:[{left:S()}],visibility:["visible","invisible","collapse"],z:[{z:[O,"auto",Q,W]}],basis:[{basis:[j,"full","auto",a,...T()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[V,j,"auto","initial","none",W]}],grow:[{grow:["",V,Q,W]}],shrink:[{shrink:["",V,Q,W]}],order:[{order:[O,"first","last","none",Q,W]}],"grid-cols":[{"grid-cols":P()}],"col-start-end":[{col:A()}],"col-start":[{"col-start":R()}],"col-end":[{"col-end":R()}],"grid-rows":[{"grid-rows":P()}],"row-start-end":[{row:A()}],"row-start":[{"row-start":R()}],"row-end":[{"row-end":R()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":_()}],"auto-rows":[{"auto-rows":_()}],gap:[{gap:T()}],"gap-x":[{"gap-x":T()}],"gap-y":[{"gap-y":T()}],"justify-content":[{justify:[...M(),"normal"]}],"justify-items":[{"justify-items":[...L(),"normal"]}],"justify-self":[{"justify-self":["auto",...L()]}],"align-content":[{content:["normal",...M()]}],"align-items":[{items:[...L(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...L(),{baseline:["","last"]}]}],"place-content":[{"place-content":M()}],"place-items":[{"place-items":[...L(),"baseline"]}],"place-self":[{"place-self":["auto",...L()]}],p:[{p:T()}],px:[{px:T()}],py:[{py:T()}],ps:[{ps:T()}],pe:[{pe:T()}],pbs:[{pbs:T()}],pbe:[{pbe:T()}],pt:[{pt:T()}],pr:[{pr:T()}],pb:[{pb:T()}],pl:[{pl:T()}],m:[{m:I()}],mx:[{mx:I()}],my:[{my:I()}],ms:[{ms:I()}],me:[{me:I()}],mbs:[{mbs:I()}],mbe:[{mbe:I()}],mt:[{mt:I()}],mr:[{mr:I()}],mb:[{mb:I()}],ml:[{ml:I()}],"space-x":[{"space-x":T()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":T()}],"space-y-reverse":["space-y-reverse"],size:[{size:F()}],"inline-size":[{inline:["auto",...U()]}],"min-inline-size":[{"min-inline":["auto",...U()]}],"max-inline-size":[{"max-inline":["none",...U()]}],"block-size":[{block:["auto",...$()]}],"min-block-size":[{"min-block":["auto",...$()]}],"max-block-size":[{"max-block":["none",...$()]}],w:[{w:[a,"screen",...F()]}],"min-w":[{"min-w":[a,"screen","none",...F()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[o]},...F()]}],h:[{h:["screen","lh",...F()]}],"min-h":[{"min-h":["screen","lh","none",...F()]}],"max-h":[{"max-h":["screen","lh",...F()]}],"font-size":[{text:["base",i,tt,q]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,to,K]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",D,W]}],"font-family":[{font:[te,X,e]}],"font-features":[{"font-features":[W]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,Q,W]}],"line-clamp":[{"line-clamp":[V,"none",Q,Y]}],leading:[{leading:[s,...T()]}],"list-image":[{"list-image":["none",Q,W]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Q,W]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:ta()}],"text-color":[{text:ta()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...tf(),"wavy"]}],"text-decoration-thickness":[{decoration:[V,"from-font","auto",Q,q]}],"text-decoration-color":[{decoration:ta()}],"underline-offset":[{"underline-offset":[V,"auto",Q,W]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Q,W]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Q,W]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:tl()}],"bg-repeat":[{bg:tu()}],"bg-size":[{bg:th()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},O,Q,W],radial:["",Q,W],conic:[O,Q,W]},tn,G]}],"bg-color":[{bg:ta()}],"gradient-from-pos":[{from:tc()}],"gradient-via-pos":[{via:tc()}],"gradient-to-pos":[{to:tc()}],"gradient-from":[{from:ta()}],"gradient-via":[{via:ta()}],"gradient-to":[{to:ta()}],rounded:[{rounded:td()}],"rounded-s":[{"rounded-s":td()}],"rounded-e":[{"rounded-e":td()}],"rounded-t":[{"rounded-t":td()}],"rounded-r":[{"rounded-r":td()}],"rounded-b":[{"rounded-b":td()}],"rounded-l":[{"rounded-l":td()}],"rounded-ss":[{"rounded-ss":td()}],"rounded-se":[{"rounded-se":td()}],"rounded-ee":[{"rounded-ee":td()}],"rounded-es":[{"rounded-es":td()}],"rounded-tl":[{"rounded-tl":td()}],"rounded-tr":[{"rounded-tr":td()}],"rounded-br":[{"rounded-br":td()}],"rounded-bl":[{"rounded-bl":td()}],"border-w":[{border:tp()}],"border-w-x":[{"border-x":tp()}],"border-w-y":[{"border-y":tp()}],"border-w-s":[{"border-s":tp()}],"border-w-e":[{"border-e":tp()}],"border-w-bs":[{"border-bs":tp()}],"border-w-be":[{"border-be":tp()}],"border-w-t":[{"border-t":tp()}],"border-w-r":[{"border-r":tp()}],"border-w-b":[{"border-b":tp()}],"border-w-l":[{"border-l":tp()}],"divide-x":[{"divide-x":tp()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":tp()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...tf(),"hidden","none"]}],"divide-style":[{divide:[...tf(),"hidden","none"]}],"border-color":[{border:ta()}],"border-color-x":[{"border-x":ta()}],"border-color-y":[{"border-y":ta()}],"border-color-s":[{"border-s":ta()}],"border-color-e":[{"border-e":ta()}],"border-color-bs":[{"border-bs":ta()}],"border-color-be":[{"border-be":ta()}],"border-color-t":[{"border-t":ta()}],"border-color-r":[{"border-r":ta()}],"border-color-b":[{"border-b":ta()}],"border-color-l":[{"border-l":ta()}],"divide-color":[{divide:ta()}],"outline-style":[{outline:[...tf(),"none","hidden"]}],"outline-offset":[{"outline-offset":[V,Q,W]}],"outline-w":[{outline:["",V,tt,q]}],"outline-color":[{outline:ta()}],shadow:[{shadow:["","none",h,ts,J]}],"shadow-color":[{shadow:ta()}],"inset-shadow":[{"inset-shadow":["none",c,ts,J]}],"inset-shadow-color":[{"inset-shadow":ta()}],"ring-w":[{ring:tp()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:ta()}],"ring-offset-w":[{"ring-offset":[V,q]}],"ring-offset-color":[{"ring-offset":ta()}],"inset-ring-w":[{"inset-ring":tp()}],"inset-ring-color":[{"inset-ring":ta()}],"text-shadow":[{"text-shadow":["none",d,ts,J]}],"text-shadow-color":[{"text-shadow":ta()}],opacity:[{opacity:[V,Q,W]}],"mix-blend":[{"mix-blend":[...tm(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":tm()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[V]}],"mask-image-linear-from-pos":[{"mask-linear-from":tg()}],"mask-image-linear-to-pos":[{"mask-linear-to":tg()}],"mask-image-linear-from-color":[{"mask-linear-from":ta()}],"mask-image-linear-to-color":[{"mask-linear-to":ta()}],"mask-image-t-from-pos":[{"mask-t-from":tg()}],"mask-image-t-to-pos":[{"mask-t-to":tg()}],"mask-image-t-from-color":[{"mask-t-from":ta()}],"mask-image-t-to-color":[{"mask-t-to":ta()}],"mask-image-r-from-pos":[{"mask-r-from":tg()}],"mask-image-r-to-pos":[{"mask-r-to":tg()}],"mask-image-r-from-color":[{"mask-r-from":ta()}],"mask-image-r-to-color":[{"mask-r-to":ta()}],"mask-image-b-from-pos":[{"mask-b-from":tg()}],"mask-image-b-to-pos":[{"mask-b-to":tg()}],"mask-image-b-from-color":[{"mask-b-from":ta()}],"mask-image-b-to-color":[{"mask-b-to":ta()}],"mask-image-l-from-pos":[{"mask-l-from":tg()}],"mask-image-l-to-pos":[{"mask-l-to":tg()}],"mask-image-l-from-color":[{"mask-l-from":ta()}],"mask-image-l-to-color":[{"mask-l-to":ta()}],"mask-image-x-from-pos":[{"mask-x-from":tg()}],"mask-image-x-to-pos":[{"mask-x-to":tg()}],"mask-image-x-from-color":[{"mask-x-from":ta()}],"mask-image-x-to-color":[{"mask-x-to":ta()}],"mask-image-y-from-pos":[{"mask-y-from":tg()}],"mask-image-y-to-pos":[{"mask-y-to":tg()}],"mask-image-y-from-color":[{"mask-y-from":ta()}],"mask-image-y-to-color":[{"mask-y-to":ta()}],"mask-image-radial":[{"mask-radial":[Q,W]}],"mask-image-radial-from-pos":[{"mask-radial-from":tg()}],"mask-image-radial-to-pos":[{"mask-radial-to":tg()}],"mask-image-radial-from-color":[{"mask-radial-from":ta()}],"mask-image-radial-to-color":[{"mask-radial-to":ta()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":x()}],"mask-image-conic-pos":[{"mask-conic":[V]}],"mask-image-conic-from-pos":[{"mask-conic-from":tg()}],"mask-image-conic-to-pos":[{"mask-conic-to":tg()}],"mask-image-conic-from-color":[{"mask-conic-from":ta()}],"mask-image-conic-to-color":[{"mask-conic-to":ta()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:tl()}],"mask-repeat":[{mask:tu()}],"mask-size":[{mask:th()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Q,W]}],filter:[{filter:["","none",Q,W]}],blur:[{blur:ty()}],brightness:[{brightness:[V,Q,W]}],contrast:[{contrast:[V,Q,W]}],"drop-shadow":[{"drop-shadow":["","none",p,ts,J]}],"drop-shadow-color":[{"drop-shadow":ta()}],grayscale:[{grayscale:["",V,Q,W]}],"hue-rotate":[{"hue-rotate":[V,Q,W]}],invert:[{invert:["",V,Q,W]}],saturate:[{saturate:[V,Q,W]}],sepia:[{sepia:["",V,Q,W]}],"backdrop-filter":[{"backdrop-filter":["","none",Q,W]}],"backdrop-blur":[{"backdrop-blur":ty()}],"backdrop-brightness":[{"backdrop-brightness":[V,Q,W]}],"backdrop-contrast":[{"backdrop-contrast":[V,Q,W]}],"backdrop-grayscale":[{"backdrop-grayscale":["",V,Q,W]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[V,Q,W]}],"backdrop-invert":[{"backdrop-invert":["",V,Q,W]}],"backdrop-opacity":[{"backdrop-opacity":[V,Q,W]}],"backdrop-saturate":[{"backdrop-saturate":[V,Q,W]}],"backdrop-sepia":[{"backdrop-sepia":["",V,Q,W]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":T()}],"border-spacing-x":[{"border-spacing-x":T()}],"border-spacing-y":[{"border-spacing-y":T()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Q,W]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[V,"initial",Q,W]}],ease:[{ease:["linear","initial",y,Q,W]}],delay:[{delay:[V,Q,W]}],animate:[{animate:["none",v,Q,W]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,Q,W]}],"perspective-origin":[{"perspective-origin":w()}],rotate:[{rotate:tv()}],"rotate-x":[{"rotate-x":tv()}],"rotate-y":[{"rotate-y":tv()}],"rotate-z":[{"rotate-z":tv()}],scale:[{scale:tb()}],"scale-x":[{"scale-x":tb()}],"scale-y":[{"scale-y":tb()}],"scale-z":[{"scale-z":tb()}],"scale-3d":["scale-3d"],skew:[{skew:tx()}],"skew-x":[{"skew-x":tx()}],"skew-y":[{"skew-y":tx()}],transform:[{transform:[Q,W,"","none","gpu","cpu"]}],"transform-origin":[{origin:w()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:tw()}],"translate-x":[{"translate-x":tw()}],"translate-y":[{"translate-y":tw()}],"translate-z":[{"translate-z":tw()}],"translate-none":["translate-none"],accent:[{accent:ta()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:ta()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Q,W]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mbs":[{"scroll-mbs":T()}],"scroll-mbe":[{"scroll-mbe":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pbs":[{"scroll-pbs":T()}],"scroll-pbe":[{"scroll-pbe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Q,W]}],fill:[{fill:["none",...ta()]}],"stroke-w":[{stroke:[V,tt,q,Y]}],stroke:[{stroke:["none",...ta()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},o=t=>{let e=r(t);if(e)return e;let s=((t,e)=>{let{parseClassName:i,getClassGroupId:r,getConflictingClassGroupIds:n,sortModifiers:s}=e,o=[],a=t.trim().split(w),l="";for(let t=a.length-1;t>=0;t-=1){let e=a[t],{isExternal:u,modifiers:h,hasImportantModifier:c,baseClassName:d,maybePostfixModifierPosition:p}=i(e);if(u){l=e+(l.length>0?" "+l:l);continue}let f=!!p,m=r(f?d.substring(0,p):d);if(!m){if(!f||!(m=r(d))){l=e+(l.length>0?" "+l:l);continue}f=!1}let g=0===h.length?"":1===h.length?h[0]:s(h).join(":"),y=c?g+"!":g,v=y+m;if(o.indexOf(v)>-1)continue;o.push(v);let b=n(m,f);for(let t=0;t<b.length;++t){let e=b[t];o.push(y+e)}l=e+(l.length>0?" "+l:l)}return l})(t,i);return n(t,s),s},s=t=>{var a;let l;return r=(i={cache:(t=>{if(t<1)return{get:()=>void 0,set:()=>{}};let e=0,i=Object.create(null),r=Object.create(null),n=(n,s)=>{i[n]=s,++e>t&&(e=0,r=i,i=Object.create(null))};return{get(t){let e=i[t];return void 0!==e?e:void 0!==(e=r[t])?(n(t,e),e):void 0},set(t,e){t in i?i[t]=e:n(t,e)}}})((a=[].reduce((t,e)=>e(t),e())).cacheSize),parseClassName:(t=>{let{prefix:e,experimentalParseClassName:i}=t,r=t=>{let e,i=[],r=0,n=0,s=0,o=t.length;for(let a=0;a<o;a++){let o=t[a];if(0===r&&0===n){if(":"===o){i.push(t.slice(s,a)),s=a+1;continue}if("/"===o){e=a;continue}}"["===o?r++:"]"===o?r--:"("===o?n++:")"===o&&n--}let a=0===i.length?t:t.slice(s),l=a,u=!1;return a.endsWith("!")?(l=a.slice(0,-1),u=!0):a.startsWith("!")&&(l=a.slice(1),u=!0),x(i,u,l,e&&e>s?e-s:void 0)};if(e){let t=e+":",i=r;r=e=>e.startsWith(t)?i(e.slice(t.length)):x(b,!1,e,void 0,!0)}if(i){let t=r;r=e=>i({className:e,parseClassName:t})}return r})(a),sortModifiers:(l=new Map,a.orderSensitiveModifiers.forEach((t,e)=>{l.set(t,1e6+e)}),t=>{let e=[],i=[];for(let r=0;r<t.length;r++){let n=t[r],s="["===n[0],o=l.has(n);s||o?(i.length>0&&(i.sort(),e.push(...i),i=[]),e.push(n)):i.push(n)}return i.length>0&&(i.sort(),e.push(...i)),e}),...(t=>{let e=(t=>{let{theme:e,classGroups:i}=t;return c(i,e)})(t),{conflictingClassGroups:i,conflictingClassGroupModifiers:r}=t;return{getClassGroupId:t=>{if(t.startsWith("[")&&t.endsWith("]")){var i;let e,r,n;return -1===(i=t).slice(1,-1).indexOf(":")?void 0:(r=(e=i.slice(1,-1)).indexOf(":"),(n=e.slice(0,r))?"arbitrary.."+n:void 0)}let r=t.split("-"),n=+(""===r[0]&&r.length>1);return h(r,n,e)},getConflictingClassGroupIds:(t,e)=>{if(e){let e=r[t],n=i[t];if(e){if(n){let t=Array(n.length+e.length);for(let e=0;e<n.length;e++)t[e]=n[e];for(let i=0;i<e.length;i++)t[n.length+i]=e[i];return t}return e}return n||u}return i[t]||u}}})(a)}).cache.get,n=i.cache.set,s=o,o(t)},(...t)=>s(((...t)=>{let e,i,r=0,n="";for(;r<t.length;)(e=t[r++])&&(i=C(e))&&(n&&(n+=" "),n+=i);return n})(...t)));t.s(["cn",0,(...t)=>ty(a(t))],64618)}]);
|
|
9
|
+
`),()=>{u.current?.removeAttribute("data-motion-pop-id"),v.contains(y)&&v.removeChild(y)}},[r]),(0,e.jsx)(M,{isPresent:r,childRef:u,sizeRef:h,pop:a,children:!1===a?t:A.cloneElement(t,{ref:d})})}let j=({children:t,initial:r,isPresent:n,onExitComplete:s,custom:o,presenceAffectsLayout:a,mode:l,anchorX:u,anchorY:h,root:c})=>{let d=(0,E.useConstant)(V),p=(0,i.useId)(),f=!0,m=(0,i.useMemo)(()=>(f=!1,{id:p,initial:r,isPresent:n,custom:o,onExitComplete:t=>{for(let e of(d.set(t,!0),d.values()))if(!e)return;s&&s()},register:t=>(d.set(t,!1),()=>d.delete(t))}),[n,d,s]);return a&&f&&(m={...m}),(0,i.useMemo)(()=>{d.forEach((t,e)=>d.set(e,!1))},[n]),i.useEffect(()=>{n||d.size||!s||s()},[n]),t=(0,e.jsx)(L,{pop:"popLayout"===l,isPresent:n,anchorX:u,anchorY:h,root:c,children:t}),(0,e.jsx)(S.PresenceContext.Provider,{value:m,children:t})};function V(){return new Map}var O=t.i(18015);let D=t=>t.key||"";function N(t){let e=[];return i.Children.forEach(t,t=>{(0,i.isValidElement)(t)&&e.push(t)}),e}t.s(["AnimatePresence",0,({children:t,custom:r,initial:n=!0,onExitComplete:s,presenceAffectsLayout:o=!0,mode:a="sync",propagate:l=!1,anchorX:u="left",anchorY:h="top",root:c})=>{let[d,p]=(0,O.usePresence)(l),f=(0,i.useMemo)(()=>N(t),[t]),m=l&&!d?[]:f.map(D),g=(0,i.useRef)(!0),y=(0,i.useRef)(f),v=(0,E.useConstant)(()=>new Map),b=(0,i.useRef)(new Set),[x,w]=(0,i.useState)(f),[C,S]=(0,i.useState)(f);(0,T.useIsomorphicLayoutEffect)(()=>{g.current=!1,y.current=f;for(let t=0;t<C.length;t++){let e=D(C[t]);m.includes(e)?(v.delete(e),b.current.delete(e)):!0!==v.get(e)&&v.set(e,!1)}},[C,m.length,m.join("-")]);let P=[];if(f!==x){let t=[...f];for(let e=0;e<C.length;e++){let i=C[e],r=D(i);m.includes(r)||(t.splice(e,0,i),P.push(i))}return"wait"===a&&P.length&&(t=P),S(N(t)),w(f),null}let{forceRender:A}=(0,i.useContext)(k.LayoutGroupContext);return(0,e.jsx)(e.Fragment,{children:C.map(t=>{let i=D(t),x=(!l||!!d)&&(f===C||m.includes(i));return(0,e.jsx)(j,{isPresent:x,initial:(!g.current||!!n)&&void 0,custom:r,presenceAffectsLayout:o,mode:a,root:c,onExitComplete:x?void 0:()=>{if(b.current.has(i)||!v.has(i))return;b.current.add(i),v.set(i,!0);let t=!0;v.forEach(e=>{e||(t=!1)}),t&&(A?.(),S(y.current),l&&p?.(),s&&s())},anchorX:u,anchorY:h,children:t},i)})})}],40802);var B=t.i(37289);let I=i.forwardRef(({...t},i)=>(0,e.jsx)(B.IconBase,{ref:i,...t,children:(0,e.jsx)("path",{clipRule:"evenodd",d:"M7.75 4C6.23122 4 5 5.23122 5 6.75V17.25C5 18.7688 6.23122 20 7.75 20H16.25C17.7688 20 19 18.7688 19 17.25V9C19 8.80109 18.921 8.61032 18.7803 8.46967L14.5303 4.21967C14.3897 4.07902 14.1989 4 14 4H7.75ZM6.5 6.75C6.5 6.05964 7.05964 5.5 7.75 5.5H13V9.25C13 9.66421 13.3358 10 13.75 10H17.5V17.25C17.5 17.9404 16.9404 18.5 16.25 18.5H7.75C7.05964 18.5 6.5 17.9404 6.5 17.25V6.75ZM16.6893 8.5L14.5 6.31066V8.5H16.6893Z",fill:"currentColor",fillOpacity:"0.927",fillRule:"evenodd"})}));I.displayName="IconFile",t.s(["IconFile",0,I],64369)},27818,39730,t=>{"use strict";var e=t.i(31317),i=t.i(62865),r=t.i(65289),n=t.i(64618),s=t.i(20764),o=t.i(68645);t.s([],39730);let a=r.createContext(void 0);t.s(["Shell",0,({children:t})=>{let[l,u]=r.useState(!0),h=(0,i.usePathname)();return r.useEffect(()=>{window.matchMedia("(min-width: 64rem)").matches||u(!0)},[h]),(0,e.jsxs)(a.Provider,{value:{toggleSidebar:()=>u(t=>!t),sidebarToggled:l},children:[(0,e.jsxs)("div",{className:"flex h-17.5 items-center justify-between border-slate-6 border-b px-6 lg:hidden",children:[(0,e.jsx)("div",{className:"flex h-17.5 items-center",children:(0,e.jsx)(s.Logo,{})}),(0,e.jsx)("button",{className:"flex h-6 w-6 items-center justify-center rounded-sm text-white",onClick:()=>{u(t=>!t)},type:"button",children:(0,e.jsxs)("svg",{fill:"none",height:"16",stroke:"white",viewBox:"0 0 15 15",width:"16",xmlns:"http://www.w3.org/2000/svg",children:[(0,e.jsx)("title",{children:"Menu"}),(0,e.jsx)("path",{clipRule:"evenodd",d:"M1.5 3C1.22386 3 1 3.22386 1 3.5C1 3.77614 1.22386 4 1.5 4H13.5C13.7761 4 14 3.77614 14 3.5C14 3.22386 13.7761 3 13.5 3H1.5ZM1 7.5C1 7.22386 1.22386 7 1.5 7H13.5C13.7761 7 14 7.22386 14 7.5C14 7.77614 13.7761 8 13.5 8H1.5C1.22386 8 1 7.77614 1 7.5ZM1 11.5C1 11.2239 1.22386 11 1.5 11H13.5C13.7761 11 14 11.2239 14 11.5C14 11.7761 13.7761 12 13.5 12H1.5C1.22386 12 1 11.7761 1 11.5Z",fill:"currentColor",fillRule:"evenodd"})]})})]}),(0,e.jsxs)("div",{className:"w-dvw flex h-[calc(100dvh-4.375rem)] lg:h-dvh",children:[(0,e.jsx)(r.Suspense,{children:(0,e.jsx)(o.Sidebar,{className:(0,n.cn)("fixed top-17.5 left-0 z-9999 h-full max-h-full w-full max-w-full will-change-auto [transition:width_0.2s_ease-in-out]","lg:static lg:inline-block lg:z-auto lg:max-h-full lg:w-[16rem]",{"-translate-x-full lg:translate-x-0":l,"lg:w-0":!l})})}),(0,e.jsx)("main",{className:(0,n.cn)("inline-block relative overflow-hidden will-change-[width]","w-full h-full","[transition:width_0.2s_ease-in-out,transform_0.2s_ease-in-out]",{"lg:w-[calc(100%-16rem)]":l,"opacity-0 lg:opacity-100":!l}),children:t})]})]})},"ShellContext",0,a],27818)},68645,t=>{"use strict";var e=t.i(31317),i=t.i(7284),r=t.i(62865),n=t.i(60203),s=t.i(64618),o=t.i(20764),a=t.i(6470),l=t.i(65289),u=t.i(40802),h=t.i(66699),c=t.i(12086),d=t.i(4332),p=t.i(64369),f=t.i(2884),m=t.i(9334),g=t.i(37289);let y=l.forwardRef(({...t},i)=>(0,e.jsx)(g.IconBase,{ref:i,...t,children:(0,e.jsx)("path",{clipRule:"evenodd",d:"M6.75 4C5.23122 4 4 5.23122 4 6.75V7.75V8V17.25C4 18.7688 5.23122 20 6.75 20H17.25C18.7688 20 20 18.7688 20 17.25V9.75C20 8.23122 18.7688 7 17.25 7H14.0816L13.227 5.43322C12.7451 4.54965 11.819 4 10.8127 4H6.75ZM12.3729 7L11.9101 6.15145L11.91 6.15138C11.6911 5.74989 11.2702 5.5 10.8127 5.5H6.75C6.05964 5.5 5.5 6.05964 5.5 6.75V7H12.3729ZM5.5 17.25V8.5H17.25C17.9404 8.5 18.5 9.05964 18.5 9.75V17.25C18.5 17.9404 17.9404 18.5 17.25 18.5H6.75C6.05964 18.5 5.5 17.9404 5.5 17.25Z",fill:"currentColor",fillRule:"evenodd"})}));y.displayName="IconFolder";let v=l.forwardRef(({...t},i)=>(0,e.jsx)(g.IconBase,{ref:i,...t,children:(0,e.jsx)("path",{clipRule:"evenodd",d:"M6.75 4C5.23122 4 4 5.23122 4 6.75V17.25V17.5C4 17.5933 4.01702 17.6825 4.04812 17.7649C4.28918 19.0376 5.4072 20 6.75 20H17.25C17.9905 20 18.6283 19.7404 19.111 19.2387C19.5681 18.7636 19.836 18.1241 19.9792 17.4279L21.4711 12.206C21.4903 12.139 21.5 12.0697 21.5 12C21.5 10.652 20.5301 9.53047 19.25 9.29534V8.5C19.25 7.5335 18.4665 6.75 17.5 6.75H13.9452L13.227 5.43322C12.7451 4.54965 11.819 4 10.8127 4H6.75ZM17.75 9.25V8.5C17.75 8.36193 17.6381 8.25 17.5 8.25H13.5C13.2255 8.25 12.973 8.10009 12.8416 7.85915L11.9101 6.15145L11.91 6.15138C11.6911 5.74989 11.2702 5.5 10.8127 5.5H6.75C6.05964 5.5 5.5 6.05964 5.5 6.75V13.158L6.79875 9.73401C6.90926 9.44267 7.1884 9.25 7.5 9.25H17.75ZM5.50587 17.372L8.01766 10.75H18.5H18.75C19.4091 10.75 19.949 11.26 19.9966 11.9069L18.5289 17.044C18.5233 17.0634 18.5185 17.0831 18.5146 17.1029C18.4062 17.6448 18.2275 17.9934 18.03 18.1988C17.8513 18.3846 17.6141 18.5 17.25 18.5H6.75C6.10079 18.5 5.56718 18.0051 5.50587 17.372Z",fill:"currentColor",fillRule:"evenodd"})}));v.displayName="IconFolderOpen";let b=new Set,x=({emailsDirectoryMetadata:t,className:i,currentEmailOpenSlug:r})=>{let n=!!r&&r.includes(t.relativePath),o=0===t.emailFilenames.length&&0===t.subDirectories.length,[u,h]=l.useState(b.has(t.absolutePath)||n);return l.useEffect(()=>{n&&(b.add(t.absolutePath),h(!0))},[n,t.absolutePath]),(0,e.jsxs)(a.Root,{className:(0,s.cn)("group",i),onOpenChange:e=>{e?b.add(t.absolutePath):b.delete(t.absolutePath),h(e)},open:u,children:[(0,e.jsxs)(a.Trigger,{className:(0,s.cn)("flex h-8 w-full items-center text-start justify-between gap-2 font-medium text-[14px]",{"cursor-pointer":!o}),children:[u?(0,e.jsx)(v,{className:"w-[20px]",height:"20",width:"20"}):(0,e.jsx)(y,{height:"20",width:"20"}),(0,e.jsx)(f.Heading,{as:"h3",className:"transition grow w-[calc(100%-40px)] truncate duration-200 ease-in-out hover:text-slate-12",color:"gray",size:"2",weight:"medium",children:t.directoryName}),o?null:(0,e.jsx)(m.IconArrowDown,{width:"20",height:"20",className:"ml-auto opacity-60 transition-transform data-[open=true]:rotate-180","data-open":u})]}),o?null:(0,e.jsx)(w,{currentEmailOpenSlug:r,emailsDirectoryMetadata:t,open:u})]})},w=t=>{let i=(0,r.useSearchParams)(),n=(0,r.useRouter)(),o=l.useId();return(0,e.jsx)(u.AnimatePresence,{initial:!1,children:t.open?(0,e.jsx)(a.Content,{asChild:!0,className:"relative overflow-y-hidden pl-1",forceMount:!0,children:(0,e.jsxs)(c.motion.div,{animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},initial:{opacity:0,height:0},children:[t.isRoot?null:(0,e.jsx)("div",{className:"line absolute left-2.5 h-full w-px bg-slate-6"}),(0,e.jsx)("div",{className:"flex flex-col truncate",children:(0,e.jsxs)(h.LayoutGroup,{id:`sidebar-${o}`,children:[t.emailsDirectoryMetadata.subDirectories.map(i=>(0,e.jsx)(x,{className:(0,s.cn)("data-[state=open]:mb-2",!t.isRoot&&"pl-3"),currentEmailOpenSlug:t.currentEmailOpenSlug,emailsDirectoryMetadata:i},i.absolutePath)),t.emailsDirectoryMetadata.emailFilenames.map((r,o)=>{var a;let l,u=t.isRoot?r:`${t.emailsDirectoryMetadata.relativePath}/${r}`,h=!!t.currentEmailOpenSlug&&("tsx"===(l=(a=t.currentEmailOpenSlug).split(".").pop())||"jsx"===l||"ts"===l||"js"===l||"html"===l?a.split(".").slice(0,-1).join("."):a)===u,f=r.endsWith(".html"),m=new URLSearchParams(i);f&&"compatibility"===m.get("toolbar-panel")&&m.set("toolbar-panel","linter");let g=m.toString();return(0,e.jsx)(d.default,{href:{pathname:`/preview/${u}`,search:g},onMouseOver:()=>{n.prefetch(`/preview/${u}${g?`?${g}`:""}`)},children:(0,e.jsxs)(c.motion.span,{animate:{x:0,opacity:1},className:(0,s.cn)("relative flex h-8 w-full items-center text-start gap-2 rounded-md align-middle text-slate-11 text-sm transition-colors duration-100 ease-[cubic-bezier(.6,.12,.34,.96)]",t.isRoot?void 0:"pl-3",{"text-cyan-11":h,"hover:text-slate-12":t.currentEmailOpenSlug!==u}),initial:{x:-10+-(1.5*o),opacity:0},transition:{x:{delay:.03*o,duration:.2},opacity:{delay:.03*o,duration:.2}},children:[h?(0,e.jsx)(c.motion.span,{animate:{opacity:1},className:"absolute inset-0 rounded-md bg-cyan-5 opacity-0 transition-all duration-200 ease-[cubic-bezier(.6,.12,.34,.96)]",exit:{opacity:0},initial:{opacity:0},children:t.isRoot?null:(0,e.jsx)(c.motion.div,{className:"absolute top-1 left-[0.4rem] inset-0 h-6 w-px rounded-xs bg-cyan-11",layoutId:"active-file",transition:{type:"spring",bounce:.2,duration:.6}})}):null,(0,e.jsx)(p.IconFile,{className:"h-5 w-5",height:"20",width:"20"}),(0,e.jsx)("span",{className:"truncate w-[calc(100%-1.25rem)]",children:r})]})},u)})]})})]})}):null})},C=({currentEmailOpenSlug:t,emailsDirectoryMetadata:i})=>(0,e.jsx)("div",{className:"flex w-full h-full flex-col lg:w-full lg:min-w-58",children:(0,e.jsx)("nav",{className:"flex grow flex-col p-4 pr-0 pl-0",children:(0,e.jsx)(a.Root,{open:!0,children:(0,e.jsx)(l.Suspense,{children:(0,e.jsx)(w,{currentEmailOpenSlug:t,emailsDirectoryMetadata:i,isRoot:!0,open:!0})})})})});t.s(["Sidebar",0,({className:t})=>{let{emailsDirectoryMetadata:a}=(0,n.useEmails)(),l=(0,r.useParams)(),u=Array.isArray(l.slug)?decodeURIComponent(l.slug.join("/")):void 0;return(0,e.jsx)("aside",{className:(0,s.cn)("overflow-hidden","lg:static lg:z-auto lg:max-h-screen lg:w-[16rem]",t),children:(0,e.jsxs)("div",{className:"flex w-full h-full overflow-hidden flex-col border-slate-6 border-r",children:[(0,e.jsx)("div",{className:(0,i.clsx)("hidden min-h-14 shrink items-center py-2 px-3 lg:flex border-b border-slate-4"),children:(0,e.jsx)("h2",{children:(0,e.jsx)(o.Logo,{})})}),(0,e.jsx)("div",{className:"relative grow w-full h-full overflow-y-auto overflow-x-hidden px-4 pb-3",children:(0,e.jsx)(C,{currentEmailOpenSlug:u,emailsDirectoryMetadata:a})})]})})}],68645)},60203,74805,54734,t=>{"use strict";let e,i,r;var n,s,o=t.i(31317),a=t.i(65289),l=t.i(74185);let u=(0,l.createServerReference)("001584ea5a99e16a1429455dbbad5814baccdfd38b",l.callServer,void 0,l.findSourceMapURL,"getEmailsDirectoryMetadataAction");var h=t.i(21403);h.default.env.REACT_EMAIL_INTERNAL_USER_PROJECT_LOCATION,h.default.env.REACT_EMAIL_INTERNAL_PREVIEW_SERVER_LOCATION,h.default.env.REACT_EMAIL_INTERNAL_EMAILS_DIR_ABSOLUTE_PATH,h.default.env.REACT_EMAIL_INTERNAL_RESEND_API_KEY;let c="true"===h.default.env.NEXT_PUBLIC_IS_BUILDING,d="true"===h.default.env.NEXT_PUBLIC_IS_PREVIEW_DEVELOPMENT;t.s(["isBuilding",0,c,"isPreviewDevelopment",0,d],74805);let p=Object.create(null);p.open="0",p.close="1",p.ping="2",p.pong="3",p.message="4",p.upgrade="5",p.noop="6";let f=Object.create(null);Object.keys(p).forEach(t=>{f[p[t]]=t});let m={type:"error",data:"parser error"},g="function"==typeof Blob||"u">typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),y="function"==typeof ArrayBuffer,v=t=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,b=({type:t,data:e},i,r)=>{if(g&&e instanceof Blob)if(i)return r(e);else return x(e,r);if(y&&(e instanceof ArrayBuffer||v(e)))if(i)return r(e);else return x(new Blob([e]),r);return r(p[t]+(e||""))},x=(t,e)=>{let i=new FileReader;return i.onload=function(){e("b"+(i.result.split(",")[1]||""))},i.readAsDataURL(t)};function w(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let C="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",k="u"<typeof Uint8Array?[]:new Uint8Array(256);for(let t=0;t<C.length;t++)k[C.charCodeAt(t)]=t;let E="function"==typeof ArrayBuffer,T=(t,e)=>{if("string"!=typeof t)return{type:"message",data:P(t,e)};let i=t.charAt(0);return"b"===i?{type:"message",data:S(t.substring(1),e)}:f[i]?t.length>1?{type:f[i],data:t.substring(1)}:{type:f[i]}:m},S=(t,e)=>E?P((t=>{let e=.75*t.length,i=t.length,r,n=0,s,o,a,l;"="===t[t.length-1]&&(e--,"="===t[t.length-2]&&e--);let u=new ArrayBuffer(e),h=new Uint8Array(u);for(r=0;r<i;r+=4)s=k[t.charCodeAt(r)],o=k[t.charCodeAt(r+1)],a=k[t.charCodeAt(r+2)],l=k[t.charCodeAt(r+3)],h[n++]=s<<2|o>>4,h[n++]=(15&o)<<4|a>>2,h[n++]=(3&a)<<6|63&l;return u})(t),e):{base64:!0,data:t},P=(t,e)=>"blob"===e?t instanceof Blob?t:new Blob([t]):t instanceof ArrayBuffer?t:t.buffer;function A(t){return t.reduce((t,e)=>t+e.length,0)}function R(t,e){if(t[0].length===e)return t.shift();let i=new Uint8Array(e),r=0;for(let n=0;n<e;n++)i[n]=t[0][r++],r===t[0].length&&(t.shift(),r=0);return t.length&&r<t[0].length&&(t[0]=t[0].slice(r)),i}function _(t){if(t){var e=t;for(var i in _.prototype)e[i]=_.prototype[i];return e}}_.prototype.on=_.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},_.prototype.once=function(t,e){function i(){this.off(t,i),e.apply(this,arguments)}return i.fn=e,this.on(t,i),this},_.prototype.off=_.prototype.removeListener=_.prototype.removeAllListeners=_.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var i,r=this._callbacks["$"+t];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var n=0;n<r.length;n++)if((i=r[n])===e||i.fn===e){r.splice(n,1);break}return 0===r.length&&delete this._callbacks["$"+t],this},_.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=Array(arguments.length-1),i=this._callbacks["$"+t],r=1;r<arguments.length;r++)e[r-1]=arguments[r];if(i){i=i.slice(0);for(var r=0,n=i.length;r<n;++r)i[r].apply(this,e)}return this},_.prototype.emitReserved=_.prototype.emit,_.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},_.prototype.hasListeners=function(t){return!!this.listeners(t).length};let M="function"==typeof Promise&&"function"==typeof Promise.resolve?t=>Promise.resolve().then(t):(t,e)=>e(t,0),L="u">typeof self?self:"u">typeof window?window:Function("return this")();function j(t,...e){return e.reduce((e,i)=>(t.hasOwnProperty(i)&&(e[i]=t[i]),e),{})}let V=L.setTimeout,O=L.clearTimeout;function D(t,e){e.useNativeTimers?(t.setTimeoutFn=V.bind(L),t.clearTimeoutFn=O.bind(L)):(t.setTimeoutFn=L.setTimeout.bind(L),t.clearTimeoutFn=L.clearTimeout.bind(L))}function N(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}class B extends Error{constructor(t,e,i){super(t),this.description=e,this.context=i,this.type="TransportError"}}class I extends _{constructor(t){super(),this.writable=!1,D(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,e,i){return super.emitReserved("error",new B(t,e,i)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return("opening"===this.readyState||"open"===this.readyState)&&(this.doClose(),this.onClose()),this}send(t){"open"===this.readyState&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){let e=T(t,this.socket.binaryType);this.onPacket(e)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,e={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(e)}_hostname(){let t=this.opts.hostname;return -1===t.indexOf(":")?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&443!==Number(this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(t){let e=function(t){let e="";for(let i in t)t.hasOwnProperty(i)&&(e.length&&(e+="&"),e+=encodeURIComponent(i)+"="+encodeURIComponent(t[i]));return e}(t);return e.length?"?"+e:""}}class F extends I{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";let e=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let t=0;this._polling&&(t++,this.once("pollComplete",function(){--t||e()})),this.writable||(t++,this.once("drain",function(){--t||e()}))}else e()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){let e=t=>{if("opening"===this.readyState&&"open"===t.type&&this.onOpen(),"close"===t.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(t)};((t,e)=>{let i=t.split("\x1e"),r=[];for(let t=0;t<i.length;t++){let n=T(i[t],e);if(r.push(n),"error"===n.type)break}return r})(t,this.socket.binaryType).forEach(e),"closed"!==this.readyState&&(this._polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this._poll())}doClose(){let t=()=>{this.write([{type:"close"}])};"open"===this.readyState?t():this.once("open",t)}write(t){var e;let i,r,n;this.writable=!1,e=t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})},r=Array(i=t.length),n=0,t.forEach((t,s)=>{b(t,!1,t=>{r[s]=t,++n===i&&e(r.join("\x1e"))})})}uri(){let t=this.opts.secure?"https":"http",e=this.query||{};return!1!==this.opts.timestampRequests&&(e[this.opts.timestampParam]=N()),this.supportsBinary||e.sid||(e.b64=1),this.createUri(t,e)}}let U=!1;try{U="u">typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(t){}let $=U;function z(){}class H extends F{constructor(t){if(super(t),"u">typeof location){const e="https:"===location.protocol;let i=location.port;i||(i=e?"443":"80"),this.xd="u">typeof location&&t.hostname!==location.hostname||i!==t.port}}doWrite(t,e){let i=this.request({method:"POST",data:t});i.on("success",e),i.on("error",(t,e)=>{this.onError("xhr post error",t,e)})}doPoll(){let t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(t,e)=>{this.onError("xhr poll error",t,e)}),this.pollXhr=t}}class W extends _{constructor(t,e,i){super(),this.createRequest=t,D(this,i),this._opts=i,this._method=i.method||"GET",this._uri=e,this._data=void 0!==i.data?i.data:null,this._create()}_create(){var t;let e=j(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");e.xdomain=!!this._opts.xd;let i=this._xhr=this.createRequest(e);try{i.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders)for(let t in i.setDisableHeaderCheck&&i.setDisableHeaderCheck(!0),this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(t)&&i.setRequestHeader(t,this._opts.extraHeaders[t])}catch(t){}if("POST"===this._method)try{i.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(t){}try{i.setRequestHeader("Accept","*/*")}catch(t){}null==(t=this._opts.cookieJar)||t.addCookies(i),"withCredentials"in i&&(i.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(i.timeout=this._opts.requestTimeout),i.onreadystatechange=()=>{var t;3===i.readyState&&(null==(t=this._opts.cookieJar)||t.parseCookies(i.getResponseHeader("set-cookie"))),4===i.readyState&&(200===i.status||1223===i.status?this._onLoad():this.setTimeoutFn(()=>{this._onError("number"==typeof i.status?i.status:0)},0))},i.send(this._data)}catch(t){this.setTimeoutFn(()=>{this._onError(t)},0);return}"u">typeof document&&(this._index=W.requestsCount++,W.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(void 0!==this._xhr&&null!==this._xhr){if(this._xhr.onreadystatechange=z,t)try{this._xhr.abort()}catch(t){}"u">typeof document&&delete W.requests[this._index],this._xhr=null}}_onLoad(){let t=this._xhr.responseText;null!==t&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}function q(){for(let t in W.requests)W.requests.hasOwnProperty(t)&&W.requests[t].abort()}W.requestsCount=0,W.requests={},"u">typeof document&&("function"==typeof attachEvent?attachEvent("onunload",q):"function"==typeof addEventListener&&addEventListener("onpagehide"in L?"pagehide":"unload",q,!1));let Y=(r=K({xdomain:!1}))&&null!==r.responseType;function K(t){let e=t.xdomain;try{if("u">typeof XMLHttpRequest&&(!e||$))return new XMLHttpRequest}catch(t){}if(!e)try{return new L[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch(t){}}let X="u">typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class Z extends I{get name(){return"websocket"}doOpen(){let t=this.uri(),e=this.opts.protocols,i=X?{}:j(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(i.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,e,i)}catch(t){return this.emitReserved("error",t)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let e=0;e<t.length;e++){let i=t[e],r=e===t.length-1;b(i,this.supportsBinary,t=>{try{this.doWrite(i,t)}catch(t){}r&&M(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){void 0!==this.ws&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let t=this.opts.secure?"wss":"ws",e=this.query||{};return this.opts.timestampRequests&&(e[this.opts.timestampParam]=N()),this.supportsBinary||(e.b64=1),this.createUri(t,e)}}let G=L.WebSocket||L.MozWebSocket,J={websocket:class extends Z{createSocket(t,e,i){return X?new G(t,e,i):e?new G(t,e):new G(t)}doWrite(t,e){this.ws.send(e)}},webtransport:class extends I{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{var r,n;let s,o,a,l,u=(r=Number.MAX_SAFE_INTEGER,n=this.socket.binaryType,i||(i=new TextDecoder),s=[],o=0,a=-1,l=!1,new TransformStream({transform(t,e){for(s.push(t);;){if(0===o){if(1>A(s))break;let t=R(s,1);l=(128&t[0])==128,o=(a=127&t[0])<126?3:126===a?1:2}else if(1===o){if(2>A(s))break;let t=R(s,2);a=new DataView(t.buffer,t.byteOffset,t.length).getUint16(0),o=3}else if(2===o){if(8>A(s))break;let t=R(s,8),i=new DataView(t.buffer,t.byteOffset,t.length),r=i.getUint32(0);if(r>2097151){e.enqueue(m);break}a=0x100000000*r+i.getUint32(4),o=3}else{if(A(s)<a)break;let t=R(s,a);e.enqueue(T(l?t:i.decode(t),n)),o=0}if(0===a||a>r){e.enqueue(m);break}}}})),h=t.readable.pipeThrough(u).getReader(),c=new TransformStream({transform(t,i){var r;r=e=>{let r,n=e.length;if(n<126)new DataView((r=new Uint8Array(1)).buffer).setUint8(0,n);else if(n<65536){let t=new DataView((r=new Uint8Array(3)).buffer);t.setUint8(0,126),t.setUint16(1,n)}else{let t=new DataView((r=new Uint8Array(9)).buffer);t.setUint8(0,127),t.setBigUint64(1,BigInt(n))}t.data&&"string"!=typeof t.data&&(r[0]|=128),i.enqueue(r),i.enqueue(e)},g&&t.data instanceof Blob?t.data.arrayBuffer().then(w).then(r):y&&(t.data instanceof ArrayBuffer||v(t.data))?r(w(t.data)):b(t,!1,t=>{e||(e=new TextEncoder),r(e.encode(t))})}});c.readable.pipeTo(t.writable),this._writer=c.writable.getWriter();let d=()=>{h.read().then(({done:t,value:e})=>{t||(this.onPacket(e),d())}).catch(t=>{})};d();let p={type:"open"};this.query.sid&&(p.data=`{"sid":"${this.query.sid}"}`),this._writer.write(p).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let e=0;e<t.length;e++){let i=t[e],r=e===t.length-1;this._writer.write(i).then(()=>{r&&M(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;null==(t=this._transport)||t.close()}},polling:class extends H{constructor(t){super(t);const e=t&&t.forceBase64;this.supportsBinary=Y&&!e}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new W(K,this.uri(),t)}}},Q=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,tt=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function te(t){var e,i;let r,n;if(t.length>8e3)throw"URI too long";let s=t,o=t.indexOf("["),a=t.indexOf("]");-1!=o&&-1!=a&&(t=t.substring(0,o)+t.substring(o,a).replace(/:/g,";")+t.substring(a,t.length));let l=Q.exec(t||""),u={},h=14;for(;h--;)u[tt[h]]=l[h]||"";return -1!=o&&-1!=a&&(u.source=s,u.host=u.host.substring(1,u.host.length-1).replace(/;/g,":"),u.authority=u.authority.replace("[","").replace("]","").replace(/;/g,":"),u.ipv6uri=!0),r=(e=u.path).replace(/\/{2,9}/g,"/").split("/"),("/"==e.slice(0,1)||0===e.length)&&r.splice(0,1),"/"==e.slice(-1)&&r.splice(r.length-1,1),u.pathNames=r,i=u.query,n={},i.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(t,e,i){e&&(n[e]=i)}),u.queryKey=n,u}let ti="function"==typeof addEventListener&&"function"==typeof removeEventListener,tr=[];ti&&addEventListener("offline",()=>{tr.forEach(t=>t())},!1);class tn extends _{constructor(t,e){if(super(),this.binaryType="arraybuffer",this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&"object"==typeof t&&(e=t,t=null),t){const i=te(t);e.hostname=i.host,e.secure="https"===i.protocol||"wss"===i.protocol,e.port=i.port,i.query&&(e.query=i.query)}else e.host&&(e.hostname=te(e.host).host);D(this,e),this.secure=null!=e.secure?e.secure:"u">typeof location&&"https:"===location.protocol,e.hostname&&!e.port&&(e.port=this.secure?"443":"80"),this.hostname=e.hostname||("u">typeof location?location.hostname:"localhost"),this.port=e.port||("u">typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},e.transports.forEach(t=>{let e=t.prototype.name;this.transports.push(e),this._transportsByName[e]=t}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},e),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=function(t){let e={},i=t.split("&");for(let t=0,r=i.length;t<r;t++){let r=i[t].split("=");e[decodeURIComponent(r[0])]=decodeURIComponent(r[1])}return e}(this.opts.query)),ti&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},tr.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){let e=Object.assign({},this.opts.query);e.EIO=4,e.transport=t,this.id&&(e.sid=this.id);let i=Object.assign({},this.opts,{query:e,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](i)}_open(){if(0===this.transports.length)return void this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);let t=this.opts.rememberUpgrade&&tn.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket")?"websocket":this.transports[0];this.readyState="opening";let e=this.createTransport(t);e.open(),this.setTransport(e)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",t=>this._onClose("transport close",t))}onOpen(){this.readyState="open",tn.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush()}_onPacket(t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let e=Error("server error");e.code=t.data,this._onError(e);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data)}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),"closed"!==this.readyState&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let t=1;for(let e=0;e<this.writeBuffer.length;e++){let i=this.writeBuffer[e].data;if(i&&(t+="string"==typeof i?function(t){let e=0,i=0;for(let r=0,n=t.length;r<n;r++)(e=t.charCodeAt(r))<128?i+=1:e<2048?i+=2:e<55296||e>=57344?i+=3:(r++,i+=4);return i}(i):Math.ceil(1.33*(i.byteLength||i.size))),e>0&&t>this._maxPayload)return this.writeBuffer.slice(0,e);t+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,M(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,e,i){return this._sendPacket("message",t,e,i),this}send(t,e,i){return this._sendPacket("message",t,e,i),this}_sendPacket(t,e,i,r){if("function"==typeof e&&(r=e,e=void 0),"function"==typeof i&&(r=i,i=null),"closing"===this.readyState||"closed"===this.readyState)return;(i=i||{}).compress=!1!==i.compress;let n={type:t,data:e,options:i};this.emitReserved("packetCreate",n),this.writeBuffer.push(n),r&&this.once("flush",r),this.flush()}close(){let t=()=>{this._onClose("forced close"),this.transport.close()},e=()=>{this.off("upgrade",e),this.off("upgradeError",e),t()},i=()=>{this.once("upgrade",e),this.once("upgradeError",e)};return("opening"===this.readyState||"open"===this.readyState)&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?i():t()}):this.upgrading?i():t()),this}_onError(t){if(tn.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&"opening"===this.readyState)return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),ti&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let t=tr.indexOf(this._offlineEventListener);-1!==t&&tr.splice(t,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,e),this.writeBuffer=[],this._prevBufferLen=0}}}tn.protocol=4;class ts extends tn{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),"open"===this.readyState&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let e=this.createTransport(t),i=!1;tn.priorWebsocketSuccess=!1;let r=()=>{i||(e.send([{type:"ping",data:"probe"}]),e.once("packet",t=>{if(!i)if("pong"===t.type&&"probe"===t.data){if(this.upgrading=!0,this.emitReserved("upgrading",e),!e)return;tn.priorWebsocketSuccess="websocket"===e.name,this.transport.pause(()=>{i||"closed"!==this.readyState&&(u(),this.setTransport(e),e.send([{type:"upgrade"}]),this.emitReserved("upgrade",e),e=null,this.upgrading=!1,this.flush())})}else{let t=Error("probe error");t.transport=e.name,this.emitReserved("upgradeError",t)}}))};function n(){i||(i=!0,u(),e.close(),e=null)}let s=t=>{let i=Error("probe error: "+t);i.transport=e.name,n(),this.emitReserved("upgradeError",i)};function o(){s("transport closed")}function a(){s("socket closed")}function l(t){e&&t.name!==e.name&&n()}let u=()=>{e.removeListener("open",r),e.removeListener("error",s),e.removeListener("close",o),this.off("close",a),this.off("upgrading",l)};e.once("open",r),e.once("error",s),e.once("close",o),this.once("close",a),this.once("upgrading",l),-1!==this._upgrades.indexOf("webtransport")&&"webtransport"!==t?this.setTimeoutFn(()=>{i||e.open()},200):e.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){let e=[];for(let i=0;i<t.length;i++)~this.transports.indexOf(t[i])&&e.push(t[i]);return e}}class to extends ts{constructor(t,e={}){const i="object"==typeof t?t:e;(!i.transports||i.transports&&"string"==typeof i.transports[0])&&(i.transports=(i.transports||["polling","websocket","webtransport"]).map(t=>J[t]).filter(t=>!!t)),super(t,i)}}to.protocol;let ta="function"==typeof ArrayBuffer,tl=Object.prototype.toString,tu="function"==typeof Blob||"u">typeof Blob&&"[object BlobConstructor]"===tl.call(Blob),th="function"==typeof File||"u">typeof File&&"[object FileConstructor]"===tl.call(File);function tc(t){return ta&&(t instanceof ArrayBuffer||("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer))||tu&&t instanceof Blob||th&&t instanceof File}let td=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];(n=s||(s={}))[n.CONNECT=0]="CONNECT",n[n.DISCONNECT=1]="DISCONNECT",n[n.EVENT=2]="EVENT",n[n.ACK=3]="ACK",n[n.CONNECT_ERROR=4]="CONNECT_ERROR",n[n.BINARY_EVENT=5]="BINARY_EVENT",n[n.BINARY_ACK=6]="BINARY_ACK";class tp extends _{constructor(t){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},"function"==typeof t?{reviver:t}:t)}add(t){let e;if("string"==typeof t){if(this.reconstructor)throw Error("got plaintext data when reconstructing a packet");let i=(e=this.decodeString(t)).type===s.BINARY_EVENT;i||e.type===s.BINARY_ACK?(e.type=i?s.EVENT:s.ACK,this.reconstructor=new tf(e),0===e.attachments&&super.emitReserved("decoded",e)):super.emitReserved("decoded",e)}else if(tc(t)||t.base64)if(this.reconstructor)(e=this.reconstructor.takeBinaryData(t))&&(this.reconstructor=null,super.emitReserved("decoded",e));else throw Error("got binary data when not reconstructing a packet");else throw Error("Unknown type: "+t)}decodeString(t){let e=0,i={type:Number(t.charAt(0))};if(void 0===s[i.type])throw Error("unknown packet type "+i.type);if(i.type===s.BINARY_EVENT||i.type===s.BINARY_ACK){let r=e+1;for(;"-"!==t.charAt(++e)&&e!=t.length;);let n=t.substring(r,e);if(n!=Number(n)||"-"!==t.charAt(e))throw Error("Illegal attachments");let s=Number(n);if(!tm(s)||s<0)throw Error("Illegal attachments");if(s>this.opts.maxAttachments)throw Error("too many attachments");i.attachments=s}if("/"===t.charAt(e+1)){let r=e+1;for(;++e&&","!==t.charAt(e)&&e!==t.length;);i.nsp=t.substring(r,e)}else i.nsp="/";let r=t.charAt(e+1);if(""!==r&&Number(r)==r){let r=e+1;for(;++e;){let i=t.charAt(e);if(null==i||Number(i)!=i){--e;break}if(e===t.length)break}i.id=Number(t.substring(r,e+1))}if(t.charAt(++e)){let r=this.tryParse(t.substr(e));if(tp.isPayloadValid(i.type,r))i.data=r;else throw Error("invalid payload")}return i}tryParse(t){try{return JSON.parse(t,this.opts.reviver)}catch(t){return!1}}static isPayloadValid(t,e){switch(t){case s.CONNECT:return tg(e);case s.DISCONNECT:return void 0===e;case s.CONNECT_ERROR:return"string"==typeof e||tg(e);case s.EVENT:case s.BINARY_EVENT:return Array.isArray(e)&&("number"==typeof e[0]||"string"==typeof e[0]&&-1===td.indexOf(e[0]));case s.ACK:case s.BINARY_ACK:return Array.isArray(e)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class tf{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){var e,i;let t=(e=this.reconPack,i=this.buffers,e.data=function t(e,i){if(!e)return e;if(e&&!0===e._placeholder){if("number"==typeof e.num&&e.num>=0&&e.num<i.length)return i[e.num];throw Error("illegal attachments")}if(Array.isArray(e))for(let r=0;r<e.length;r++)e[r]=t(e[r],i);else if("object"==typeof e)for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=t(e[r],i));return e}(e.data,i),delete e.attachments,e);return this.finishedReconstruction(),t}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}let tm=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t};function tg(t){return"[object Object]"===Object.prototype.toString.call(t)}function ty(t,e,i){return t.on(e,i),function(){t.off(e,i)}}t.s(["Decoder",0,tp,"Encoder",0,class{constructor(t){this.replacer=t}encode(t){return(t.type===s.EVENT||t.type===s.ACK)&&function t(e,i){if(!e||"object"!=typeof e)return!1;if(Array.isArray(e)){for(let i=0,r=e.length;i<r;i++)if(t(e[i]))return!0;return!1}if(tc(e))return!0;if(e.toJSON&&"function"==typeof e.toJSON&&1==arguments.length)return t(e.toJSON(),!0);for(let i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&t(e[i]))return!0;return!1}(t)?this.encodeAsBinary({type:t.type===s.EVENT?s.BINARY_EVENT:s.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let e=""+t.type;return(t.type===s.BINARY_EVENT||t.type===s.BINARY_ACK)&&(e+=t.attachments+"-"),t.nsp&&"/"!==t.nsp&&(e+=t.nsp+","),null!=t.id&&(e+=t.id),null!=t.data&&(e+=JSON.stringify(t.data,this.replacer)),e}encodeAsBinary(t){let e,i,r=(e=[],i=t.data,t.data=function t(e,i){if(!e)return e;if(tc(e)){let t={_placeholder:!0,num:i.length};return i.push(e),t}if(Array.isArray(e)){let r=Array(e.length);for(let n=0;n<e.length;n++)r[n]=t(e[n],i);return r}if("object"==typeof e&&!(e instanceof Date)){let r={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=t(e[n],i));return r}return e}(i,e),t.attachments=e.length,{packet:t,buffers:e}),n=this.encodeAsString(r.packet),s=r.buffers;return s.unshift(n),s}},"PacketType",0,s,"isPacketValid",0,function(t){var e;return"string"==typeof t.nsp&&(void 0===(e=t.id)||tm(e))&&function(t,e){switch(t){case s.CONNECT:return void 0===e||tg(e);case s.DISCONNECT:return void 0===e;case s.EVENT:return Array.isArray(e)&&("number"==typeof e[0]||"string"==typeof e[0]&&-1===td.indexOf(e[0]));case s.ACK:return Array.isArray(e);case s.CONNECT_ERROR:return"string"==typeof e||tg(e);default:return!1}}(t.type,t.data)},"protocol",0,5],53192);let tv=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class tb extends _{constructor(t,e,i){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=e,i&&i.auth&&(this.auth=i.auth),this._opts=Object.assign({},i),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let t=this.io;this.subs=[ty(t,"open",this.onopen.bind(this)),ty(t,"packet",this.onpacket.bind(this)),ty(t,"error",this.onerror.bind(this)),ty(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...e){var i,r,n;if(tv.hasOwnProperty(t))throw Error('"'+t.toString()+'" is a reserved event name');if(e.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(e),this;let o={type:s.EVENT,data:e};if(o.options={},o.options.compress=!1!==this.flags.compress,"function"==typeof e[e.length-1]){let t=this.ids++,i=e.pop();this._registerAckCallback(t,i),o.id=t}let a=null==(r=null==(i=this.io.engine)?void 0:i.transport)?void 0:r.writable,l=this.connected&&!(null==(n=this.io.engine)?void 0:n._hasPingExpired());return this.flags.volatile&&!a||(l?(this.notifyOutgoingListeners(o),this.packet(o)):this.sendBuffer.push(o)),this.flags={},this}_registerAckCallback(t,e){var i;let r=null!=(i=this.flags.timeout)?i:this._opts.ackTimeout;if(void 0===r){this.acks[t]=e;return}let n=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let e=0;e<this.sendBuffer.length;e++)this.sendBuffer[e].id===t&&this.sendBuffer.splice(e,1);e.call(this,Error("operation has timed out"))},r),s=(...t)=>{this.io.clearTimeoutFn(n),e.apply(this,t)};s.withError=!0,this.acks[t]=s}emitWithAck(t,...e){return new Promise((i,r)=>{let n=(t,e)=>t?r(t):i(e);n.withError=!0,e.push(n),this.emit(t,...e)})}_addToQueue(t){let e;"function"==typeof t[t.length-1]&&(e=t.pop());let i={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((t,...r)=>(this._queue[0],null!==t?i.tryCount>this._opts.retries&&(this._queue.shift(),e&&e(t)):(this._queue.shift(),e&&e(null,...r)),i.pending=!1,this._drainQueue())),this._queue.push(i),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||0===this._queue.length)return;let e=this._queue[0];(!e.pending||t)&&(e.pending=!0,e.tryCount++,this.flags=e.flags,this.emit.apply(this,e.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){"function"==typeof this.auth?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:s.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,e){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,e),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(e=>String(e.id)===t)){let e=this.acks[t];delete this.acks[t],e.withError&&e.call(this,Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case s.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case s.EVENT:case s.BINARY_EVENT:this.onevent(t);break;case s.ACK:case s.BINARY_ACK:this.onack(t);break;case s.DISCONNECT:this.ondisconnect();break;case s.CONNECT_ERROR:this.destroy();let e=Error(t.data.message);e.data=t.data.data,this.emitReserved("connect_error",e)}}onevent(t){let e=t.data||[];null!=t.id&&e.push(this.ack(t.id)),this.connected?this.emitEvent(e):this.receiveBuffer.push(Object.freeze(e))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length)for(let e of this._anyListeners.slice())e.apply(this,t);super.emit.apply(this,t),this._pid&&t.length&&"string"==typeof t[t.length-1]&&(this._lastOffset=t[t.length-1])}ack(t){let e=this,i=!1;return function(...r){i||(i=!0,e.packet({type:s.ACK,id:t,data:r}))}}onack(t){let e=this.acks[t.id];"function"==typeof e&&(delete this.acks[t.id],e.withError&&t.data.unshift(null),e.apply(this,t.data))}onconnect(t,e){this.id=t,this.recovered=e&&this._pid===e,this._pid=e,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:s.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){let e=this._anyListeners;for(let i=0;i<e.length;i++)if(t===e[i]){e.splice(i,1);break}}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){let e=this._anyOutgoingListeners;for(let i=0;i<e.length;i++)if(t===e[i]){e.splice(i,1);break}}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length)for(let e of this._anyOutgoingListeners.slice())e.apply(this,t.data)}}var tx=t.i(53192);function tw(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}tw.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),i=Math.floor(e*this.jitter*t);t=(1&Math.floor(10*e))==0?t-i:t+i}return 0|Math.min(t,this.max)},tw.prototype.reset=function(){this.attempts=0},tw.prototype.setMin=function(t){this.ms=t},tw.prototype.setMax=function(t){this.max=t},tw.prototype.setJitter=function(t){this.jitter=t};class tC extends _{constructor(t,e){var i;super(),this.nsps={},this.subs=[],t&&"object"==typeof t&&(e=t,t=void 0),(e=e||{}).path=e.path||"/socket.io",this.opts=e,D(this,e),this.reconnection(!1!==e.reconnection),this.reconnectionAttempts(e.reconnectionAttempts||1/0),this.reconnectionDelay(e.reconnectionDelay||1e3),this.reconnectionDelayMax(e.reconnectionDelayMax||5e3),this.randomizationFactor(null!=(i=e.randomizationFactor)?i:.5),this.backoff=new tw({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==e.timeout?2e4:e.timeout),this._readyState="closed",this.uri=t;const r=e.parser||tx;this.encoder=new r.Encoder,this.decoder=new r.Decoder,this._autoConnect=!1!==e.autoConnect,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return void 0===t?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var e;return void 0===t?this._reconnectionDelay:(this._reconnectionDelay=t,null==(e=this.backoff)||e.setMin(t),this)}randomizationFactor(t){var e;return void 0===t?this._randomizationFactor:(this._randomizationFactor=t,null==(e=this.backoff)||e.setJitter(t),this)}reconnectionDelayMax(t){var e;return void 0===t?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,null==(e=this.backoff)||e.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new to(this.uri,this.opts);let e=this.engine,i=this;this._readyState="opening",this.skipReconnect=!1;let r=ty(e,"open",function(){i.onopen(),t&&t()}),n=e=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",e),t?t(e):this.maybeReconnectOnOpen()},s=ty(e,"error",n);if(!1!==this._timeout){let t=this._timeout,i=this.setTimeoutFn(()=>{r(),n(Error("timeout")),e.close()},t);this.opts.autoUnref&&i.unref(),this.subs.push(()=>{this.clearTimeoutFn(i)})}return this.subs.push(r),this.subs.push(s),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let t=this.engine;this.subs.push(ty(t,"ping",this.onping.bind(this)),ty(t,"data",this.ondata.bind(this)),ty(t,"error",this.onerror.bind(this)),ty(t,"close",this.onclose.bind(this)),ty(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(t){this.onclose("parse error",t)}}ondecoded(t){M(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,e){let i=this.nsps[t];return i?this._autoConnect&&!i.active&&i.connect():(i=new tb(this,t,e),this.nsps[t]=i),i}_destroy(t){for(let t of Object.keys(this.nsps))if(this.nsps[t].active)return;this._close()}_packet(t){let e=this.encoder.encode(t);for(let i=0;i<e.length;i++)this.engine.write(e[i],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,e){var i;this.cleanup(),null==(i=this.engine)||i.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,e),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let e=this.backoff.duration();this._reconnecting=!0;let i=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),t.skipReconnect||t.open(e=>{e?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",e)):t.onreconnect()}))},e);this.opts.autoUnref&&i.unref(),this.subs.push(()=>{this.clearTimeoutFn(i)})}}onreconnect(){let t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}let tk={};function tE(t,e){let i;"object"==typeof t&&(e=t,t=void 0);let r=function(t,e="",i){let r=t;i=i||"u">typeof location&&location,null==t&&(t=i.protocol+"//"+i.host),"string"==typeof t&&("/"===t.charAt(0)&&(t="/"===t.charAt(1)?i.protocol+t:i.host+t),/^(https?|wss?):\/\//.test(t)||(t=void 0!==i?i.protocol+"//"+t:"https://"+t),r=te(t)),!r.port&&(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";let n=-1!==r.host.indexOf(":")?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+n+":"+r.port+e,r.href=r.protocol+"://"+n+(i&&i.port===r.port?"":":"+r.port),r}(t,(e=e||{}).path||"/socket.io"),n=r.source,s=r.id,o=r.path,a=tk[s]&&o in tk[s].nsps;return e.forceNew||e["force new connection"]||!1===e.multiplex||a?i=new tC(n,e):(tk[s]||(tk[s]=new tC(n,e)),i=tk[s]),r.query&&!e.query&&(e.query=r.queryKey),i.socket(r.path,e)}Object.assign(tE,{Manager:tC,Socket:tb,io:tE,connect:tE});let tT=t=>{let e=(0,a.useRef)(t);e.current=t,(0,a.useEffect)(()=>{let t=tE(),i=t=>{console.debug("Reloading..."),e.current(t)};return t.on("reload",i),()=>{t.off("reload",i),t.disconnect()}},[])};t.s(["useHotreload",0,tT],54734);let tS=(0,a.createContext)(void 0);t.s(["EmailsProvider",0,t=>{let[e,i]=(0,a.useState)(t.initialEmailsDirectoryMetadata);return c||d||tT(async()=>{let t=await u();if(t)i(t);else throw Error("Hot reloading: unable to find the emails directory to update the sidebar")}),(0,o.jsx)(tS.Provider,{value:{emailsDirectoryMetadata:e},children:t.children})},"useEmails",0,()=>{let t=(0,a.useContext)(tS);if(void 0===t)throw Error("Cannot call `useEmails` outside of an `EmailsContext` provider.");return t}],60203)},64618,7284,t=>{"use strict";var e;let i,r,n,s,o;function a(){for(var t,e,i=0,r="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=function t(e){var i,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var s=e.length;for(i=0;i<s;i++)e[i]&&(r=t(e[i]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}(t))&&(r&&(r+=" "),r+=e);return r}t.s(["clsx",0,a,"default",0,a],7284);let l=(t=new Map,e=null,i)=>({nextPart:t,validators:e,classGroupId:i}),u=[],h=(t,e,i)=>{if(0==t.length-e)return i.classGroupId;let r=t[e],n=i.nextPart.get(r);if(n){let i=h(t,e+1,n);if(i)return i}let s=i.validators;if(null===s)return;let o=0===e?t.join("-"):t.slice(e).join("-"),a=s.length;for(let t=0;t<a;t++){let e=s[t];if(e.validator(o))return e.classGroupId}},c=(t,e)=>{let i=l();for(let r in t)d(t[r],i,r,e);return i},d=(t,e,i,r)=>{let n=t.length;for(let s=0;s<n;s++)p(t[s],e,i,r)},p=(t,e,i,r)=>{"string"==typeof t?f(t,e,i):"function"==typeof t?m(t,e,i,r):g(t,e,i,r)},f=(t,e,i)=>{(""===t?e:y(e,t)).classGroupId=i},m=(t,e,i,r)=>{v(t)?d(t(r),e,i,r):(null===e.validators&&(e.validators=[]),e.validators.push({classGroupId:i,validator:t}))},g=(t,e,i,r)=>{let n=Object.entries(t),s=n.length;for(let t=0;t<s;t++){let[s,o]=n[t];d(o,y(e,s),i,r)}},y=(t,e)=>{let i=t,r=e.split("-"),n=r.length;for(let t=0;t<n;t++){let e=r[t],n=i.nextPart.get(e);n||(n=l(),i.nextPart.set(e,n)),i=n}return i},v=t=>"isThemeGetter"in t&&!0===t.isThemeGetter,b=[],x=(t,e,i,r,n)=>({modifiers:t,hasImportantModifier:e,baseClassName:i,maybePostfixModifierPosition:r,isExternal:n}),w=/\s+/,C=t=>{let e;if("string"==typeof t)return t;let i="";for(let r=0;r<t.length;r++)t[r]&&(e=C(t[r]))&&(i&&(i+=" "),i+=e);return i},k=[],E=t=>{let e=e=>e[t]||k;return e.isThemeGetter=!0,e},T=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,S=/^\((?:(\w[\w-]*):)?(.+)\)$/i,P=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,A=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,R=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,_=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,M=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,L=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,j=t=>P.test(t),V=t=>!!t&&!Number.isNaN(Number(t)),O=t=>!!t&&Number.isInteger(Number(t)),D=t=>t.endsWith("%")&&V(t.slice(0,-1)),N=t=>A.test(t),B=()=>!0,I=t=>R.test(t)&&!_.test(t),F=()=>!1,U=t=>M.test(t),$=t=>L.test(t),z=t=>!W(t)&&!Q(t),H=t=>ta(t,tc,F),W=t=>T.test(t),q=t=>ta(t,td,I),Y=t=>ta(t,tp,V),K=t=>ta(t,tm,B),X=t=>ta(t,tf,F),Z=t=>ta(t,tu,F),G=t=>ta(t,th,$),J=t=>ta(t,tg,U),Q=t=>S.test(t),tt=t=>tl(t,td),te=t=>tl(t,tf),ti=t=>tl(t,tu),tr=t=>tl(t,tc),tn=t=>tl(t,th),ts=t=>tl(t,tg,!0),to=t=>tl(t,tm,!0),ta=(t,e,i)=>{let r=T.exec(t);return!!r&&(r[1]?e(r[1]):i(r[2]))},tl=(t,e,i=!1)=>{let r=S.exec(t);return!!r&&(r[1]?e(r[1]):i)},tu=t=>"position"===t||"percentage"===t,th=t=>"image"===t||"url"===t,tc=t=>"length"===t||"size"===t||"bg-size"===t,td=t=>"length"===t,tp=t=>"number"===t,tf=t=>"family-name"===t,tm=t=>"number"===t||"weight"===t,tg=t=>"shadow"===t,ty=(e=()=>{let t=E("color"),e=E("font"),i=E("text"),r=E("font-weight"),n=E("tracking"),s=E("leading"),o=E("breakpoint"),a=E("container"),l=E("spacing"),u=E("radius"),h=E("shadow"),c=E("inset-shadow"),d=E("text-shadow"),p=E("drop-shadow"),f=E("blur"),m=E("perspective"),g=E("aspect"),y=E("ease"),v=E("animate"),b=()=>["auto","avoid","all","avoid-page","page","left","right","column"],x=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],w=()=>[...x(),Q,W],C=()=>["auto","hidden","clip","visible","scroll"],k=()=>["auto","contain","none"],T=()=>[Q,W,l],S=()=>[j,"full","auto",...T()],P=()=>[O,"none","subgrid",Q,W],A=()=>["auto",{span:["full",O,Q,W]},O,Q,W],R=()=>[O,"auto",Q,W],_=()=>["auto","min","max","fr",Q,W],M=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],L=()=>["start","end","center","stretch","center-safe","end-safe"],I=()=>["auto",...T()],F=()=>[j,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...T()],U=()=>[j,"screen","full","dvw","lvw","svw","min","max","fit",...T()],$=()=>[j,"screen","full","lh","dvh","lvh","svh","min","max","fit",...T()],ta=()=>[t,Q,W],tl=()=>[...x(),ti,Z,{position:[Q,W]}],tu=()=>["no-repeat",{repeat:["","x","y","space","round"]}],th=()=>["auto","cover","contain",tr,H,{size:[Q,W]}],tc=()=>[D,tt,q],td=()=>["","none","full",u,Q,W],tp=()=>["",V,tt,q],tf=()=>["solid","dashed","dotted","double"],tm=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],tg=()=>[V,D,ti,Z],ty=()=>["","none",f,Q,W],tv=()=>["none",V,Q,W],tb=()=>["none",V,Q,W],tx=()=>[V,Q,W],tw=()=>[j,"full",...T()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[N],breakpoint:[N],color:[B],container:[N],"drop-shadow":[N],ease:["in","out","in-out"],font:[z],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[N],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[N],shadow:[N],spacing:["px",V],text:[N],"text-shadow":[N],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",j,W,Q,g]}],container:["container"],columns:[{columns:[V,W,Q,a]}],"break-after":[{"break-after":b()}],"break-before":[{"break-before":b()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:w()}],overflow:[{overflow:C()}],"overflow-x":[{"overflow-x":C()}],"overflow-y":[{"overflow-y":C()}],overscroll:[{overscroll:k()}],"overscroll-x":[{"overscroll-x":k()}],"overscroll-y":[{"overscroll-y":k()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:S()}],"inset-x":[{"inset-x":S()}],"inset-y":[{"inset-y":S()}],start:[{"inset-s":S(),start:S()}],end:[{"inset-e":S(),end:S()}],"inset-bs":[{"inset-bs":S()}],"inset-be":[{"inset-be":S()}],top:[{top:S()}],right:[{right:S()}],bottom:[{bottom:S()}],left:[{left:S()}],visibility:["visible","invisible","collapse"],z:[{z:[O,"auto",Q,W]}],basis:[{basis:[j,"full","auto",a,...T()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[V,j,"auto","initial","none",W]}],grow:[{grow:["",V,Q,W]}],shrink:[{shrink:["",V,Q,W]}],order:[{order:[O,"first","last","none",Q,W]}],"grid-cols":[{"grid-cols":P()}],"col-start-end":[{col:A()}],"col-start":[{"col-start":R()}],"col-end":[{"col-end":R()}],"grid-rows":[{"grid-rows":P()}],"row-start-end":[{row:A()}],"row-start":[{"row-start":R()}],"row-end":[{"row-end":R()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":_()}],"auto-rows":[{"auto-rows":_()}],gap:[{gap:T()}],"gap-x":[{"gap-x":T()}],"gap-y":[{"gap-y":T()}],"justify-content":[{justify:[...M(),"normal"]}],"justify-items":[{"justify-items":[...L(),"normal"]}],"justify-self":[{"justify-self":["auto",...L()]}],"align-content":[{content:["normal",...M()]}],"align-items":[{items:[...L(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...L(),{baseline:["","last"]}]}],"place-content":[{"place-content":M()}],"place-items":[{"place-items":[...L(),"baseline"]}],"place-self":[{"place-self":["auto",...L()]}],p:[{p:T()}],px:[{px:T()}],py:[{py:T()}],ps:[{ps:T()}],pe:[{pe:T()}],pbs:[{pbs:T()}],pbe:[{pbe:T()}],pt:[{pt:T()}],pr:[{pr:T()}],pb:[{pb:T()}],pl:[{pl:T()}],m:[{m:I()}],mx:[{mx:I()}],my:[{my:I()}],ms:[{ms:I()}],me:[{me:I()}],mbs:[{mbs:I()}],mbe:[{mbe:I()}],mt:[{mt:I()}],mr:[{mr:I()}],mb:[{mb:I()}],ml:[{ml:I()}],"space-x":[{"space-x":T()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":T()}],"space-y-reverse":["space-y-reverse"],size:[{size:F()}],"inline-size":[{inline:["auto",...U()]}],"min-inline-size":[{"min-inline":["auto",...U()]}],"max-inline-size":[{"max-inline":["none",...U()]}],"block-size":[{block:["auto",...$()]}],"min-block-size":[{"min-block":["auto",...$()]}],"max-block-size":[{"max-block":["none",...$()]}],w:[{w:[a,"screen",...F()]}],"min-w":[{"min-w":[a,"screen","none",...F()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[o]},...F()]}],h:[{h:["screen","lh",...F()]}],"min-h":[{"min-h":["screen","lh","none",...F()]}],"max-h":[{"max-h":["screen","lh",...F()]}],"font-size":[{text:["base",i,tt,q]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,to,K]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",D,W]}],"font-family":[{font:[te,X,e]}],"font-features":[{"font-features":[W]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,Q,W]}],"line-clamp":[{"line-clamp":[V,"none",Q,Y]}],leading:[{leading:[s,...T()]}],"list-image":[{"list-image":["none",Q,W]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Q,W]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:ta()}],"text-color":[{text:ta()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...tf(),"wavy"]}],"text-decoration-thickness":[{decoration:[V,"from-font","auto",Q,q]}],"text-decoration-color":[{decoration:ta()}],"underline-offset":[{"underline-offset":[V,"auto",Q,W]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Q,W]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Q,W]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:tl()}],"bg-repeat":[{bg:tu()}],"bg-size":[{bg:th()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},O,Q,W],radial:["",Q,W],conic:[O,Q,W]},tn,G]}],"bg-color":[{bg:ta()}],"gradient-from-pos":[{from:tc()}],"gradient-via-pos":[{via:tc()}],"gradient-to-pos":[{to:tc()}],"gradient-from":[{from:ta()}],"gradient-via":[{via:ta()}],"gradient-to":[{to:ta()}],rounded:[{rounded:td()}],"rounded-s":[{"rounded-s":td()}],"rounded-e":[{"rounded-e":td()}],"rounded-t":[{"rounded-t":td()}],"rounded-r":[{"rounded-r":td()}],"rounded-b":[{"rounded-b":td()}],"rounded-l":[{"rounded-l":td()}],"rounded-ss":[{"rounded-ss":td()}],"rounded-se":[{"rounded-se":td()}],"rounded-ee":[{"rounded-ee":td()}],"rounded-es":[{"rounded-es":td()}],"rounded-tl":[{"rounded-tl":td()}],"rounded-tr":[{"rounded-tr":td()}],"rounded-br":[{"rounded-br":td()}],"rounded-bl":[{"rounded-bl":td()}],"border-w":[{border:tp()}],"border-w-x":[{"border-x":tp()}],"border-w-y":[{"border-y":tp()}],"border-w-s":[{"border-s":tp()}],"border-w-e":[{"border-e":tp()}],"border-w-bs":[{"border-bs":tp()}],"border-w-be":[{"border-be":tp()}],"border-w-t":[{"border-t":tp()}],"border-w-r":[{"border-r":tp()}],"border-w-b":[{"border-b":tp()}],"border-w-l":[{"border-l":tp()}],"divide-x":[{"divide-x":tp()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":tp()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...tf(),"hidden","none"]}],"divide-style":[{divide:[...tf(),"hidden","none"]}],"border-color":[{border:ta()}],"border-color-x":[{"border-x":ta()}],"border-color-y":[{"border-y":ta()}],"border-color-s":[{"border-s":ta()}],"border-color-e":[{"border-e":ta()}],"border-color-bs":[{"border-bs":ta()}],"border-color-be":[{"border-be":ta()}],"border-color-t":[{"border-t":ta()}],"border-color-r":[{"border-r":ta()}],"border-color-b":[{"border-b":ta()}],"border-color-l":[{"border-l":ta()}],"divide-color":[{divide:ta()}],"outline-style":[{outline:[...tf(),"none","hidden"]}],"outline-offset":[{"outline-offset":[V,Q,W]}],"outline-w":[{outline:["",V,tt,q]}],"outline-color":[{outline:ta()}],shadow:[{shadow:["","none",h,ts,J]}],"shadow-color":[{shadow:ta()}],"inset-shadow":[{"inset-shadow":["none",c,ts,J]}],"inset-shadow-color":[{"inset-shadow":ta()}],"ring-w":[{ring:tp()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:ta()}],"ring-offset-w":[{"ring-offset":[V,q]}],"ring-offset-color":[{"ring-offset":ta()}],"inset-ring-w":[{"inset-ring":tp()}],"inset-ring-color":[{"inset-ring":ta()}],"text-shadow":[{"text-shadow":["none",d,ts,J]}],"text-shadow-color":[{"text-shadow":ta()}],opacity:[{opacity:[V,Q,W]}],"mix-blend":[{"mix-blend":[...tm(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":tm()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[V]}],"mask-image-linear-from-pos":[{"mask-linear-from":tg()}],"mask-image-linear-to-pos":[{"mask-linear-to":tg()}],"mask-image-linear-from-color":[{"mask-linear-from":ta()}],"mask-image-linear-to-color":[{"mask-linear-to":ta()}],"mask-image-t-from-pos":[{"mask-t-from":tg()}],"mask-image-t-to-pos":[{"mask-t-to":tg()}],"mask-image-t-from-color":[{"mask-t-from":ta()}],"mask-image-t-to-color":[{"mask-t-to":ta()}],"mask-image-r-from-pos":[{"mask-r-from":tg()}],"mask-image-r-to-pos":[{"mask-r-to":tg()}],"mask-image-r-from-color":[{"mask-r-from":ta()}],"mask-image-r-to-color":[{"mask-r-to":ta()}],"mask-image-b-from-pos":[{"mask-b-from":tg()}],"mask-image-b-to-pos":[{"mask-b-to":tg()}],"mask-image-b-from-color":[{"mask-b-from":ta()}],"mask-image-b-to-color":[{"mask-b-to":ta()}],"mask-image-l-from-pos":[{"mask-l-from":tg()}],"mask-image-l-to-pos":[{"mask-l-to":tg()}],"mask-image-l-from-color":[{"mask-l-from":ta()}],"mask-image-l-to-color":[{"mask-l-to":ta()}],"mask-image-x-from-pos":[{"mask-x-from":tg()}],"mask-image-x-to-pos":[{"mask-x-to":tg()}],"mask-image-x-from-color":[{"mask-x-from":ta()}],"mask-image-x-to-color":[{"mask-x-to":ta()}],"mask-image-y-from-pos":[{"mask-y-from":tg()}],"mask-image-y-to-pos":[{"mask-y-to":tg()}],"mask-image-y-from-color":[{"mask-y-from":ta()}],"mask-image-y-to-color":[{"mask-y-to":ta()}],"mask-image-radial":[{"mask-radial":[Q,W]}],"mask-image-radial-from-pos":[{"mask-radial-from":tg()}],"mask-image-radial-to-pos":[{"mask-radial-to":tg()}],"mask-image-radial-from-color":[{"mask-radial-from":ta()}],"mask-image-radial-to-color":[{"mask-radial-to":ta()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":x()}],"mask-image-conic-pos":[{"mask-conic":[V]}],"mask-image-conic-from-pos":[{"mask-conic-from":tg()}],"mask-image-conic-to-pos":[{"mask-conic-to":tg()}],"mask-image-conic-from-color":[{"mask-conic-from":ta()}],"mask-image-conic-to-color":[{"mask-conic-to":ta()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:tl()}],"mask-repeat":[{mask:tu()}],"mask-size":[{mask:th()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Q,W]}],filter:[{filter:["","none",Q,W]}],blur:[{blur:ty()}],brightness:[{brightness:[V,Q,W]}],contrast:[{contrast:[V,Q,W]}],"drop-shadow":[{"drop-shadow":["","none",p,ts,J]}],"drop-shadow-color":[{"drop-shadow":ta()}],grayscale:[{grayscale:["",V,Q,W]}],"hue-rotate":[{"hue-rotate":[V,Q,W]}],invert:[{invert:["",V,Q,W]}],saturate:[{saturate:[V,Q,W]}],sepia:[{sepia:["",V,Q,W]}],"backdrop-filter":[{"backdrop-filter":["","none",Q,W]}],"backdrop-blur":[{"backdrop-blur":ty()}],"backdrop-brightness":[{"backdrop-brightness":[V,Q,W]}],"backdrop-contrast":[{"backdrop-contrast":[V,Q,W]}],"backdrop-grayscale":[{"backdrop-grayscale":["",V,Q,W]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[V,Q,W]}],"backdrop-invert":[{"backdrop-invert":["",V,Q,W]}],"backdrop-opacity":[{"backdrop-opacity":[V,Q,W]}],"backdrop-saturate":[{"backdrop-saturate":[V,Q,W]}],"backdrop-sepia":[{"backdrop-sepia":["",V,Q,W]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":T()}],"border-spacing-x":[{"border-spacing-x":T()}],"border-spacing-y":[{"border-spacing-y":T()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Q,W]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[V,"initial",Q,W]}],ease:[{ease:["linear","initial",y,Q,W]}],delay:[{delay:[V,Q,W]}],animate:[{animate:["none",v,Q,W]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,Q,W]}],"perspective-origin":[{"perspective-origin":w()}],rotate:[{rotate:tv()}],"rotate-x":[{"rotate-x":tv()}],"rotate-y":[{"rotate-y":tv()}],"rotate-z":[{"rotate-z":tv()}],scale:[{scale:tb()}],"scale-x":[{"scale-x":tb()}],"scale-y":[{"scale-y":tb()}],"scale-z":[{"scale-z":tb()}],"scale-3d":["scale-3d"],skew:[{skew:tx()}],"skew-x":[{"skew-x":tx()}],"skew-y":[{"skew-y":tx()}],transform:[{transform:[Q,W,"","none","gpu","cpu"]}],"transform-origin":[{origin:w()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:tw()}],"translate-x":[{"translate-x":tw()}],"translate-y":[{"translate-y":tw()}],"translate-z":[{"translate-z":tw()}],"translate-none":["translate-none"],accent:[{accent:ta()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:ta()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Q,W]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mbs":[{"scroll-mbs":T()}],"scroll-mbe":[{"scroll-mbe":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pbs":[{"scroll-pbs":T()}],"scroll-pbe":[{"scroll-pbe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Q,W]}],fill:[{fill:["none",...ta()]}],"stroke-w":[{stroke:[V,tt,q,Y]}],stroke:[{stroke:["none",...ta()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},o=t=>{let e=r(t);if(e)return e;let s=((t,e)=>{let{parseClassName:i,getClassGroupId:r,getConflictingClassGroupIds:n,sortModifiers:s}=e,o=[],a=t.trim().split(w),l="";for(let t=a.length-1;t>=0;t-=1){let e=a[t],{isExternal:u,modifiers:h,hasImportantModifier:c,baseClassName:d,maybePostfixModifierPosition:p}=i(e);if(u){l=e+(l.length>0?" "+l:l);continue}let f=!!p,m=r(f?d.substring(0,p):d);if(!m){if(!f||!(m=r(d))){l=e+(l.length>0?" "+l:l);continue}f=!1}let g=0===h.length?"":1===h.length?h[0]:s(h).join(":"),y=c?g+"!":g,v=y+m;if(o.indexOf(v)>-1)continue;o.push(v);let b=n(m,f);for(let t=0;t<b.length;++t){let e=b[t];o.push(y+e)}l=e+(l.length>0?" "+l:l)}return l})(t,i);return n(t,s),s},s=t=>{var a;let l;return r=(i={cache:(t=>{if(t<1)return{get:()=>void 0,set:()=>{}};let e=0,i=Object.create(null),r=Object.create(null),n=(n,s)=>{i[n]=s,++e>t&&(e=0,r=i,i=Object.create(null))};return{get(t){let e=i[t];return void 0!==e?e:void 0!==(e=r[t])?(n(t,e),e):void 0},set(t,e){t in i?i[t]=e:n(t,e)}}})((a=[].reduce((t,e)=>e(t),e())).cacheSize),parseClassName:(t=>{let{prefix:e,experimentalParseClassName:i}=t,r=t=>{let e,i=[],r=0,n=0,s=0,o=t.length;for(let a=0;a<o;a++){let o=t[a];if(0===r&&0===n){if(":"===o){i.push(t.slice(s,a)),s=a+1;continue}if("/"===o){e=a;continue}}"["===o?r++:"]"===o?r--:"("===o?n++:")"===o&&n--}let a=0===i.length?t:t.slice(s),l=a,u=!1;return a.endsWith("!")?(l=a.slice(0,-1),u=!0):a.startsWith("!")&&(l=a.slice(1),u=!0),x(i,u,l,e&&e>s?e-s:void 0)};if(e){let t=e+":",i=r;r=e=>e.startsWith(t)?i(e.slice(t.length)):x(b,!1,e,void 0,!0)}if(i){let t=r;r=e=>i({className:e,parseClassName:t})}return r})(a),sortModifiers:(l=new Map,a.orderSensitiveModifiers.forEach((t,e)=>{l.set(t,1e6+e)}),t=>{let e=[],i=[];for(let r=0;r<t.length;r++){let n=t[r],s="["===n[0],o=l.has(n);s||o?(i.length>0&&(i.sort(),e.push(...i),i=[]),e.push(n)):i.push(n)}return i.length>0&&(i.sort(),e.push(...i)),e}),...(t=>{let e=(t=>{let{theme:e,classGroups:i}=t;return c(i,e)})(t),{conflictingClassGroups:i,conflictingClassGroupModifiers:r}=t;return{getClassGroupId:t=>{if(t.startsWith("[")&&t.endsWith("]")){var i;let e,r,n;return -1===(i=t).slice(1,-1).indexOf(":")?void 0:(r=(e=i.slice(1,-1)).indexOf(":"),(n=e.slice(0,r))?"arbitrary.."+n:void 0)}let r=t.split("-"),n=+(""===r[0]&&r.length>1);return h(r,n,e)},getConflictingClassGroupIds:(t,e)=>{if(e){let e=r[t],n=i[t];if(e){if(n){let t=Array(n.length+e.length);for(let e=0;e<n.length;e++)t[e]=n[e];for(let i=0;i<e.length;i++)t[n.length+i]=e[i];return t}return e}return n||u}return i[t]||u}}})(a)}).cache.get,n=i.cache.set,s=o,o(t)},(...t)=>s(((...t)=>{let e,i,r=0,n="";for(;r<t.length;)(e=t[r++])&&(i=C(e))&&(n&&(n+=" "),n+=i);return n})(...t)));t.s(["cn",0,(...t)=>ty(a(t))],64618)}]);
|