PageSourceSearch

https://transportsimple.com/assets/vendor-ui-A12DDDPJ.js

js transportsimple.com collected 2026-10-01 23:52:04 UTC 188,448 bytes, 61 lines download raw bytes

vendor: 4,171 bytes, lines 1-9
1import{r as h,R as $,a as rs,b as gl,c as is}from"./vendor-react-zaFybfsY.js";var ss={exports:{}},on={};/**
2 * @license React
3 * react-jsx-runtime.production.min.js
4 *
5 * Copyright (c) Facebook, Inc. and its affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var vl=h,yl=Symbol.for("react.element"),xl=Symbol.for("react.fragment"),wl=Object.prototype.hasOwnProperty,bl=vl.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Cl={key:!0,ref:!0,__self:!0,__source:!0};function as(t,e,n){var o,r={},i=null,s=null;n!==void 0&&(i=""+n),e.key!==void 0&&(i=""+e.key),e.ref!==void 0&&(s=e.ref);for(o in e)wl.call(e,o)&&!Cl.hasOwnProperty(o)&&(r[o]=e[o]);if(t&&t.defaultProps)for(o in e=t.defaultProps,e)r[o]===void 0&&(r[o]=e[o]);return{$$typeof:yl,type:t,key:i,ref:s,props:r,_owner:bl.current}}on.Fragment=xl;on.jsx=as;on.jsxs=as;ss.exports=on;var P=ss.exports;function z(t,e,{checkForDefaultPrevented:n=!0}={}){return function(r){if(t?.(r),n===!1||!r.defaultPrevented)return e?.(r)}}function yr(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function cs(...t){return e=>{let n=!1;const o=t.map(r=>{const i=yr(r,e);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let r=0;r<o.length;r++){const i=o[r];typeof i=="function"?i():yr(t[r],null)}}}}function Y(...t){return h.useCallback(cs(...t),t)}function Pl(t,e){const n=h.createContext(e),o=i=>{const{children:s,...a}=i,c=h.useMemo(()=>a,Object.values(a));return P.jsx(n.Provider,{value:c,children:s})};o.displayName=t+"Provider";function r(i){const s=h.useContext(n);if(s)return s;if(e!==void 0)return e;throw new Error(`\`${i}\` must be used within \`${t}\``)}return[o,r]}function Qt(t,e=[]){let n=[];function o(i,s){const a=h.createContext(s),c=n.length;n=[...n,s];const l=f=>{const{scope:d,children:p,...g}=f,m=d?.[t]?.[c]||a,v=h.useMemo(()=>g,Object.values(g));return P.jsx(m.Provider,{value:v,children:p})};l.displayName=i+"Provider";function u(f,d){const p=d?.[t]?.[c]||a,g=h.useContext(p);if(g)return g;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[l,u]}const r=()=>{const i=n.map(s=>h.createContext(s));return function(a){const c=a?.[t]||i;return h.useMemo(()=>({[`__scope${t}`]:{...a,[t]:c}}),[a,c])}};return r.scopeName=t,[o,Tl(r,...e)]}function Tl(...t){const e=t[0];if(t.length===1)return e;const n=()=>{const o=t.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(i){const s=o.reduce((a,{useScope:c,scopeName:l})=>{const f=c(i)[`__scope${l}`];return{...a,...f}},{});return h.useMemo(()=>({[`__scope${e.scopeName}`]:s}),[s])}};return n.scopeName=e.scopeName,n}function pe(t){const e=Al(t),n=h.forwardRef((o,r)=>{const{children:i,...s}=o,a=h.Children.toArray(i),c=a.find(El);if(c){const l=c.props.children,u=a.map(f=>f===c?h.Children.count(l)>1?h.Children.only(null):h.isValidElement(l)?l.props.children:null:f);return P.jsx(e,{...s,ref:r,children:h.isValidElement(l)?h.cloneElement(l,void 0,u):null})}return P.jsx(e,{...s,ref:r,children:i})});return n.displayName=`${t}.Slot`,n}var Dv=pe("Slot");function Al(t){const e=h.forwardRef((n,o)=>{const{children:r,...i}=n;if(h.isValidElement(r)){const s=Dl(r),a=Rl(i,r.props);return r.type!==h.Fragment&&(a.ref=o?cs(o,s):s),h.cloneElement(r,a)}return h.Children.count(r)>1?h.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var ls=Symbol("radix.slottable");function Sl(t){const e=({children:n})=>P.jsx(P.Fragment,{children:n});return e.displayName=`${t}.Slottable`,e.__radixId=ls,e}function El(t){return h.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===ls}function Rl(t,e){const n={...e};for(const o in e){const r=t[o],i=e[o];/^on[A-Z]/.test(o)?r&&i?n[o]=(...a)=>{const c=i(...a);return r(...a),c}:r&&(n[o]=r):o==="style"?n[o]={...r,...i}:o==="className"&&(n[o]=[r,i].filter(Boolean).join(" "))}return{...t,...n}}function Dl(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,n=e&&"isReactWarning"in e&&e.
vendor: 1,891 bytes, line 9
9isReactWarning,n?t.props.ref:t.props.ref||t.ref)}function Ml(t){const e=t+"CollectionProvider",[n,o]=Qt(e),[r,i]=n(e,{collectionRef:{current:null},itemMap:new Map}),s=m=>{const{scope:v,children:y}=m,x=$.useRef(null),w=$.useRef(new Map).current;return P.jsx(r,{scope:v,itemMap:w,collectionRef:x,children:y})};s.displayName=e;const a=t+"CollectionSlot",c=pe(a),l=$.forwardRef((m,v)=>{const{scope:y,children:x}=m,w=i(a,y),C=Y(v,w.collectionRef);return P.jsx(c,{ref:C,children:x})});l.displayName=a;const u=t+"CollectionItemSlot",f="data-radix-collection-item",d=pe(u),p=$.forwardRef((m,v)=>{const{scope:y,children:x,...w}=m,C=$.useRef(null),b=Y(v,C),A=i(u,y);return $.useEffect(()=>(A.itemMap.set(C,{ref:C,...w}),()=>void A.itemMap.delete(C))),P.jsx(d,{[f]:"",ref:b,children:x})});p.displayName=u;function g(m){const v=i(t+"CollectionConsumer",m);return $.useCallback(()=>{const x=v.collectionRef.current;if(!x)return[];const w=Array.from(x.querySelectorAll(`[${f}]`));return Array.from(v.itemMap.values()).sort((A,T)=>w.indexOf(A.ref.current)-w.indexOf(T.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:s,Slot:l,ItemSlot:p},g,o]}var Ol=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],W=Ol.reduce((t,e)=>{const n=pe(`Primitive.${e}`),o=h.forwardRef((r,i)=>{const{asChild:s,...a}=r,c=s?n:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),P.jsx(c,{...a,ref:i})});return o.displayName=`Primitive.${e}`,{...t,[e]:o}},{});function Vl(t,e){t&&rs.flushSync(()=>t.dispatchEvent(e))}function zt(t){const e=h.useRef(t);return h.useEffect(()=>{e.current=t}),h.useMemo(()=>(...n)=>e.current?.(...n),[])}function Ll(t,e=globalThis?.document){const n=zt(t);h.useEffect(()=>{const o=r=>{r.key==="Escape"&&n(r)};return e.addEventListener("keydown",o,{capture:!0}),()=>e.removeEventListener("keydown",o,{capture:!0})},[n,e])}
vendor: 9,989 bytes, line 9
9var Il="DismissableLayer",Kn="dismissableLayer.update",Nl="dismissableLayer.pointerDownOutside",kl="dismissableLayer.focusOutside",xr,us=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),rn=h.forwardRef((t,e)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...c}=t,l=h.useContext(us),[u,f]=h.useState(null),d=u?.ownerDocument??globalThis?.document,[,p]=h.useState({}),g=Y(e,T=>f(T)),m=Array.from(l.layers),[v]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),y=m.indexOf(v),x=u?m.indexOf(u):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,C=x>=y,b=_l(T=>{const S=T.target,D=[...l.branches].some(M=>M.contains(S));!C||D||(r?.(T),s?.(T),T.defaultPrevented||a?.())},d),A=jl(T=>{const S=T.target;[...l.branches].some(M=>M.contains(S))||(i?.(T),s?.(T),T.defaultPrevented||a?.())},d);return Ll(T=>{x===l.layers.size-1&&(o?.(T),!T.defaultPrevented&&a&&(T.preventDefault(),a()))},d),h.useEffect(()=>{if(u)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(xr=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),wr(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=xr)}},[u,d,n,l]),h.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),wr())},[u,l]),h.useEffect(()=>{const T=()=>p({});return document.addEventListener(Kn,T),()=>document.removeEventListener(Kn,T)},[]),P.jsx(W.div,{...c,ref:g,style:{pointerEvents:w?C?"auto":"none":void 0,...t.style},onFocusCapture:z(t.onFocusCapture,A.onFocusCapture),onBlurCapture:z(t.onBlurCapture,A.onBlurCapture),onPointerDownCapture:z(t.onPointerDownCapture,b.onPointerDownCapture)})});rn.displayName=Il;var Fl="DismissableLayerBranch",fs=h.forwardRef((t,e)=>{const n=h.useContext(us),o=h.useRef(null),r=Y(e,o);return h.useEffect(()=>{const i=o.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),P.jsx(W.div,{...t,ref:r})});fs.displayName=Fl;function _l(t,e=globalThis?.document){const n=zt(t),o=h.useRef(!1),r=h.useRef(()=>{});return h.useEffect(()=>{const i=a=>{if(a.target&&!o.current){let c=function(){ds(Nl,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(e.removeEventListener("click",r.current),r.current=c,e.addEventListener("click",r.current,{once:!0})):c()}else e.removeEventListener("click",r.current);o.current=!1},s=window.setTimeout(()=>{e.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),e.removeEventListener("pointerdown",i),e.removeEventListener("click",r.current)}},[e,n]),{onPointerDownCapture:()=>o.current=!0}}function jl(t,e=globalThis?.document){const n=zt(t),o=h.useRef(!1);return h.useEffect(()=>{const r=i=>{i.target&&!o.current&&ds(kl,n,{originalEvent:i},{discrete:!1})};return e.addEventListener("focusin",r),()=>e.removeEventListener("focusin",r)},[e,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function wr(){const t=new CustomEvent(Kn);document.dispatchEvent(t)}function ds(t,e,n,{discrete:o}){const r=n.originalEvent.target,i=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&r.addEventListener(t,e,{once:!0}),o?Vl(r,i):r.dispatchEvent(i)}var Mv=rn,Ov=fs,vt=globalThis?.document?h.useLayoutEffect:()=>{},Bl="Portal",hs=h.forwardRef((t,e)=>{const{container:n,...o}=t,[r,i]=h.useState(!1);vt(()=>i(!0),[]);const s=n||r&&globalThis?.document?.body;return s?gl.createPortal(P.jsx(W.div,{...o,ref:e}),s):null});hs.displayName=Bl;function $l(t,e){return h.useReducer((n,o)=>e[n][o]??n,t)}var Jt=t=>{const{present:e,children:n}=t,o=Wl(e),r=typeof n=="function"?n({present:o.isPresent}):h.Children.only(n),i=Y(o.ref,Ul(r));return typeof n=="function"||o.isPresent?h.cloneElement(r,{ref:i}):null};Jt.displayName="Presence";function Wl(t){const[e,n]=h.useState(),o=h.useRef(null),r=h.useRef(t),i=h.useRef("none"),s=t?"mounted":"unmounted",[a,c]=$l(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return h.useEffect(()=>{const l=Re(o.current);i.current=a==="mounted"?l:"none"},[a]),vt(()=>{const l=o.current,u=r.current;if(u!==t){const d=i.current,p=Re(l);t?c("MOUNT"):p==="none"||l?.display==="none"?c("UNMOUNT"):c(u&&d!==p?"ANIMATION_OUT":"UNMOUNT"),r.current=t}},[t,c]),vt(()=>{if(e){let l;const u=e.ownerDocument.defaultView??window,f=p=>{const m=Re(o.current).includes(p.animationName);if(p.target===e&&m&&(c("ANIMATION_END"),!r.current)){const v=e.style.animationFillMode;e.style.animationFillMode="forwards",l=u.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=v)})}},d=p=>{p.target===e&&(i.current=Re(o.current))};return e.addEventListener("animationstart",d),e.addEventListener("animationcancel",f),e.addEventListener("animationend",f),()=>{u.clearTimeout(l),e.removeEventListener("animationstart",d),e.removeEventListener("animationcancel",f),e.removeEventListener("animationend",f)}}else c("ANIMATION_END")},[e,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:h.useCallback(l=>{o.current=l?getComputedStyle(l):null,n(l)},[])}}function Re(t){return t?.animationName||"none"}function Ul(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var Hl=is[" useInsertionEffect ".trim().toString()]||vt;function sn({prop:t,defaultProp:e,onChange:n=()=>{},caller:o}){const[r,i,s]=Kl({defaultProp:e,onChange:n}),a=t!==void 0,c=a?t:r;{const u=h.useRef(t!==void 0);h.useEffect(()=>{const f=u.current;f!==a&&console.warn(`${o} is changing from ${f?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. 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.`),u.current=a},[a,o])}const l=h.useCallback(u=>{if(a){const f=zl(u)?u(t):u;f!==t&&s.current?.(f)}else i(u)},[a,t,i,s]);return[c,l]}function Kl({defaultProp:t,onChange:e}){const[n,o]=h.useState(t),r=h.useRef(n),i=h.useRef(e);return Hl(()=>{i.current=e},[e]),h.useEffect(()=>{r.current!==n&&(i.current?.(n),r.current=n)},[n,r]),[n,o,i]}function zl(t){return typeof t=="function"}var Gl=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Yl="VisuallyHidden",ps=h.forwardRef((t,e)=>P.jsx(W.span,{...t,ref:e,style:{...Gl,...t.style}}));ps.displayName=Yl;var Xl=ps,ql=is[" useId ".trim().toString()]||(()=>{}),Zl=0;function le(t){const[e,n]=h.useState(ql());return vt(()=>{n(o=>o??String(Zl++))},[t]),e?`radix-${e}`:""}const Ql=["top","right","bottom","left"],Pt=Math.min,Z=Math.max,He=Math.round,De=Math.floor,ut=t=>({x:t,y:t}),Jl={left:"right",right:"left",bottom:"top",top:"bottom"},tu={start:"end",end:"start"};function zn(t,e,n){return Z(t,Pt(e,n))}function yt(t,e){return typeof t=="function"?t(e):t}function xt(t){return t.split("-")[0]}function te(t){return t.split("-")[1]}function vo(t){return t==="x"?"y":"x"}function yo(t){return t==="y"?"height":"width"}const eu=new Set(["top","bottom"]);function lt(t){return eu.has(xt(t))?"y":"x"}function xo(t){return vo(lt(t))}function nu(t,e,n){n===void 0&&(n=!1);const o=te(t),r=xo(t),i=yo(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=Ke(s)),[s,Ke(s)]}function ou(t){const e=Ke(t);return[Gn(t),e,Gn(e)]}function Gn(t){return t.replace(/start|end/g,e=>tu[e])}const br=["left","right"],Cr=["right","left"],ru=["top","bottom"],iu=["bottom","top"];function su(t,e,n){switch(t){case"top":case"bottom":return n?e?Cr:br:e?br:Cr;case"left":case"right":return e?ru:iu;default:return[]}}function au(t,e,n,o){const r=te(t);let i=su(xt(t),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),e&&(i=i.concat(i.map(Gn)))),i}function Ke(t){return t.replace(/left|right|bottom|top/g,e=>Jl[e])}function cu(t){return{top:0,right:0,bottom:0,left:0,...t}}function ms(t){return typeof t!="number"?cu(t):{top:t,right:t,bottom:t,left:t}}function ze(t){const{x:e,y:n,width:o,height:r}=t;return{width:o,height:r,top:n,left:e,right:e+o,bottom:n+r,x:e,y:n}}function Pr(t,e,n){let{reference:o,floating:r}=t;const i=lt(e),s=xo(e),a=yo(s),c=xt(e),l=i==="y",u=o.x+o.width/2-r.width/2,f=o.y+o.height/2-r.height/2,d=o[a]/2-r[a]/2;let p;switch(c){case"top":p={x:u,y:o.y-r.height};break;case"bottom":p={x:u,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:f};break;case"left":p={x:o.x-r.width,y:f};break;default:p={x:o.x,y:o.y}}switch(te(e)){case"start":p[s]-=d*(n&&l?-1:1);break;case"end":p[s]+=d*(n&&l?-1:1);break}return p}const lu=async(t,e,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(e));let l=await s.getElementRects({reference:t,floating:e,strategy:r}),{x:u,y:f}=Pr(l,o,c),d=o,p={},g=0;for(let m=0;m<a.length;m++){const{name:v,fn:y}=a[m],{x,y:w,data:C,reset:b}=await y({x:u,y:f,initialPlacement:o,placement:d,strategy:r,middlewareData:p,rects:l,platform:s,elements:{reference:t,floating:e}});u=x??u,f=w??f,p={...p,[v]:{...p[v],...C}},b&&g<=50&&(g++,typeof b=="object"&&(b.placement&&(d=b.placement),b.rects&&(l=b.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:r}):b.rects),{x:u,y:f}=Pr(l,d,c)),m=-1)}return{x:u,y:f,placement:d,strategy:r,middlewareData:p}};async function me(t,e){var n;e===void 0&&(e={});const{x:o,y:r,platform:i,rects:s,elements:a,strategy:c}=t,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=yt(e,t),g=ms(p),v=a[d?f==="floating"?"reference":"floating":f],y=ze(await i.getClippingRect
vendor: 8,947 bytes, line 9
9({element:(n=await(i.isElement==null?void 0:i.isElement(v)))==null||n?v:v.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:l,rootBoundary:u,strategy:c})),x=f==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),C=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},b=ze(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:w,strategy:c}):x);return{top:(y.top-b.top+g.top)/C.y,bottom:(b.bottom-y.bottom+g.bottom)/C.y,left:(y.left-b.left+g.left)/C.x,right:(b.right-y.right+g.right)/C.x}}const uu=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:r,rects:i,platform:s,elements:a,middlewareData:c}=e,{element:l,padding:u=0}=yt(t,e)||{};if(l==null)return{};const f=ms(u),d={x:n,y:o},p=xo(r),g=yo(p),m=await s.getDimensions(l),v=p==="y",y=v?"top":"left",x=v?"bottom":"right",w=v?"clientHeight":"clientWidth",C=i.reference[g]+i.reference[p]-d[p]-i.floating[g],b=d[p]-i.reference[p],A=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l));let T=A?A[w]:0;(!T||!await(s.isElement==null?void 0:s.isElement(A)))&&(T=a.floating[w]||i.floating[g]);const S=C/2-b/2,D=T/2-m[g]/2-1,M=Pt(f[y],D),N=Pt(f[x],D),U=M,F=T-m[g]-N,L=T/2-m[g]/2+S,X=zn(U,L,F),j=!c.arrow&&te(r)!=null&&L!==X&&i.reference[g]/2-(L<U?M:N)-m[g]/2<0,O=j?L<U?L-U:L-F:0;return{[p]:d[p]+O,data:{[p]:X,centerOffset:L-X-O,...j&&{alignmentOffset:O}},reset:j}}}),fu=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:a,platform:c,elements:l}=e,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0,...v}=yt(t,e);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const y=xt(r),x=lt(a),w=xt(a)===a,C=await(c.isRTL==null?void 0:c.isRTL(l.floating)),b=d||(w||!m?[Ke(a)]:ou(a)),A=g!=="none";!d&&A&&b.push(...au(a,m,g,C));const T=[a,...b],S=await me(e,v),D=[];let M=((o=i.flip)==null?void 0:o.overflows)||[];if(u&&D.push(S[y]),f){const L=nu(r,s,C);D.push(S[L[0]],S[L[1]])}if(M=[...M,{placement:r,overflows:D}],!D.every(L=>L<=0)){var N,U;const L=(((N=i.flip)==null?void 0:N.index)||0)+1,X=T[L];if(X&&(!(f==="alignment"?x!==lt(X):!1)||M.every(R=>R.overflows[0]>0&&lt(R.placement)===x)))return{data:{index:L,overflows:M},reset:{placement:X}};let j=(U=M.filter(O=>O.overflows[0]<=0).sort((O,R)=>O.overflows[1]-R.overflows[1])[0])==null?void 0:U.placement;if(!j)switch(p){case"bestFit":{var F;const O=(F=M.filter(R=>{if(A){const B=lt(R.placement);return B===x||B==="y"}return!0}).map(R=>[R.placement,R.overflows.filter(B=>B>0).reduce((B,q)=>B+q,0)]).sort((R,B)=>R[1]-B[1])[0])==null?void 0:F[0];O&&(j=O);break}case"initialPlacement":j=a;break}if(r!==j)return{reset:{placement:j}}}return{}}}};function Tr(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function Ar(t){return Ql.some(e=>t[e]>=0)}const du=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:o="referenceHidden",...r}=yt(t,e);switch(o){case"referenceHidden":{const i=await me(e,{...r,elementContext:"reference"}),s=Tr(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Ar(s)}}}case"escaped":{const i=await me(e,{...r,altBoundary:!0}),s=Tr(i,n.floating);return{data:{escapedOffsets:s,escaped:Ar(s)}}}default:return{}}}}},gs=new Set(["left","top"]);async function hu(t,e){const{placement:n,platform:o,elements:r}=t,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=xt(n),a=te(n),c=lt(n)==="y",l=gs.has(s)?-1:1,u=i&&c?-1:1,f=yt(e,t);let{mainAxis:d,crossAxis:p,alignmentAxis:g}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof g=="number"&&(p=a==="end"?g*-1:g),c?{x:p*u,y:d*l}:{x:d*l,y:p*u}}const pu=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:r,y:i,placement:s,middlewareData:a}=e,c=await hu(e,t);return s===((n=a.offset)==null?void 0:n.placement)&&(o=a.arrow)!=null&&o.alignmentOffset?{}:{x:r+c.x,y:i+c.y,data:{...c,placement:s}}}}},mu=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:r}=e,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:v=>{let{x:y,y:x}=v;return{x:y,y:x}}},...c}=yt(t,e),l={x:n,y:o},u=await me(e,c),f=lt(xt(r)),d=vo(f);let p=l[d],g=l[f];if(i){const v=d==="y"?"top":"left",y=d==="y"?"bottom":"right",x=p+u[v],w=p-u[y];p=zn(x,p,w)}if(s){const v=f==="y"?"top":"left",y=f==="y"?"bottom":"right",x=g+u[v],w=g-u[y];g=zn(x,g,w)}const m=a.fn({...e,[d]:p,[f]:g});return{...m,data:{x:m.x-n,y:m.y-o,enabled:{[d]:i,[f]:s}}}}}},gu=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:o,placement:r,rects:i,middlewareData:s}=e,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=yt(t,e),u={x:n,y:o},f=lt(r),d=vo(f);let p=u[d],g=u[f];const m=yt(a,e),v=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(c){const w=d==="y"?"height":"width",C=i.reference[d]-i.floating[w]+v.mainAxis,b=i.reference[d]+i.reference[w]-v.mainAxis;p<C?p=C:p>b&&(p=b)}if(l){var y,x;const w=d==="y"?"width":"height",C=gs.has(xt(r)),b=i.reference[f]-i.floating[w]+(C&&((y=s.offset)==null?void 0:y[f])||0)+(C?0:v.crossAxis),A=i.reference[f]+i.reference[w]+(C?0:((x=s.offset)==null?void 0:x[f])||0)-(C?v.crossAxis:0);g<b?g=b:g>A&&(g=A)}return{[d]:p,[f]:g}}}},vu=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,o;const{placement:r,rects:i,platform:s,elements:a}=e,{apply:c=()=>{},...l}=yt(t,e),u=await me(e,l),f=xt(r),d=te(r),p=lt(r)==="y",{width:g,height:m}=i.floating;let v,y;f==="top"||f==="bottom"?(v=f,y=d===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(y=f,v=d==="end"?"top":"bottom");const x=m-u.top-u.bottom,w=g-u.left-u.right,C=Pt(m-u[v],x),b=Pt(g-u[y],w),A=!e.middlewareData.shift;let T=C,S=b;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(S=w),(o=e.middlewareData.shift)!=null&&o.enabled.y&&(T=x),A&&!d){const M=Z(u.left,0),N=Z(u.right,0),U=Z(u.top,0),F=Z(u.bottom,0);p?S=g-2*(M!==0||N!==0?M+N:Z(u.left,u.right)):T=m-2*(U!==0||F!==0?U+F:Z(u.top,u.bottom))}await c({...e,availableWidth:S,availableHeight:T});const D=await s.getDimensions(a.floating);return g!==D.width||m!==D.height?{reset:{rects:!0}}:{}}}};function an(){return typeof window<"u"}function ee(t){return vs(t)?(t.nodeName||"").toLowerCase():"#document"}function Q(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function pt(t){var e;return(e=(vs(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function vs(t){return an()?t instanceof Node||t instanceof Q(t).Node:!1}function rt(t){return an()?t instanceof Element||t instanceof Q(t).Element:!1}function ht(t){return an()?t instanceof HTMLElement||t instanceof Q(t).HTMLElement:!1}function Sr(t){return!an()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Q(t).ShadowRoot}const yu=new Set(["inline","contents"]);function Ce(t){const{overflow:e,overflowX:n,overflowY:o,display:r}=it(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!yu.has(r)}const xu=new Set(["table","td","th"]);function wu(t){return xu.has(ee(t))}const bu=[":popover-open",":modal"];function cn(t){return bu.some(e=>{try{return t.matches(e)}catch{return!1}})}const Cu=["transform","translate","scale","rotate","perspective"],Pu=["transform","translate","scale","rotate","perspective","filter"],Tu=["paint","layout","strict","content"];function wo(t){const e=bo(),n=rt(t)?it(t):t;return Cu.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||Pu.some(o=>(n.willChange||"").includes(o))||Tu.some(o=>(n.contain||"").includes(o))}function Au(t){let e=Tt(t);for(;ht(e)&&!Gt(e);){if(wo(e))return e;if(cn(e))return null;e=Tt(e)}return null}function bo(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Su=new Set(["html","body","#document"]);function Gt(t){return Su.has(ee(t))}function it(t){return Q(t).getComputedStyle(t)}function ln(t){return rt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Tt(t){if(ee(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Sr(t)&&t.host||pt(t);return Sr(e)?e.host:e}function ys(t){const e=Tt(t);return Gt(e)?t.ownerDocument?t.ownerDocument.body:t.body:ht(e)&&Ce(e)?e:ys(e)}function ge(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const r=ys(t),i=r===((o=t.ownerDocument)==null?void 0:o.body),s=Q(r);if(i){const a=Yn(s);
vendor: 4,256 bytes, line 9
9return e.concat(s,s.visualViewport||[],Ce(r)?r:[],a&&n?ge(a):[])}return e.concat(r,ge(r,[],n))}function Yn(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function xs(t){const e=it(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=ht(t),i=r?t.offsetWidth:n,s=r?t.offsetHeight:o,a=He(n)!==i||He(o)!==s;return a&&(n=i,o=s),{width:n,height:o,$:a}}function Co(t){return rt(t)?t:t.contextElement}function Ht(t){const e=Co(t);if(!ht(e))return ut(1);const n=e.getBoundingClientRect(),{width:o,height:r,$:i}=xs(e);let s=(i?He(n.width):n.width)/o,a=(i?He(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Eu=ut(0);function ws(t){const e=Q(t);return!bo()||!e.visualViewport?Eu:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Ru(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==Q(t)?!1:e}function Lt(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const r=t.getBoundingClientRect(),i=Co(t);let s=ut(1);e&&(o?rt(o)&&(s=Ht(o)):s=Ht(t));const a=Ru(i,n,o)?ws(i):ut(0);let c=(r.left+a.x)/s.x,l=(r.top+a.y)/s.y,u=r.width/s.x,f=r.height/s.y;if(i){const d=Q(i),p=o&&rt(o)?Q(o):o;let g=d,m=Yn(g);for(;m&&o&&p!==g;){const v=Ht(m),y=m.getBoundingClientRect(),x=it(m),w=y.left+(m.clientLeft+parseFloat(x.paddingLeft))*v.x,C=y.top+(m.clientTop+parseFloat(x.paddingTop))*v.y;c*=v.x,l*=v.y,u*=v.x,f*=v.y,c+=w,l+=C,g=Q(m),m=Yn(g)}}return ze({width:u,height:f,x:c,y:l})}function Po(t,e){const n=ln(t).scrollLeft;return e?e.left+n:Lt(pt(t)).left+n}function bs(t,e,n){n===void 0&&(n=!1);const o=t.getBoundingClientRect(),r=o.left+e.scrollLeft-(n?0:Po(t,o)),i=o.top+e.scrollTop;return{x:r,y:i}}function Du(t){let{elements:e,rect:n,offsetParent:o,strategy:r}=t;const i=r==="fixed",s=pt(o),a=e?cn(e.floating):!1;if(o===s||a&&i)return n;let c={scrollLeft:0,scrollTop:0},l=ut(1);const u=ut(0),f=ht(o);if((f||!f&&!i)&&((ee(o)!=="body"||Ce(s))&&(c=ln(o)),ht(o))){const p=Lt(o);l=Ht(o),u.x=p.x+o.clientLeft,u.y=p.y+o.clientTop}const d=s&&!f&&!i?bs(s,c,!0):ut(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+d.x,y:n.y*l.y-c.scrollTop*l.y+u.y+d.y}}function Mu(t){return Array.from(t.getClientRects())}function Ou(t){const e=pt(t),n=ln(t),o=t.ownerDocument.body,r=Z(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),i=Z(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+Po(t);const a=-n.scrollTop;return it(o).direction==="rtl"&&(s+=Z(e.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:a}}function Vu(t,e){const n=Q(t),o=pt(t),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,a=0,c=0;if(r){i=r.width,s=r.height;const l=bo();(!l||l&&e==="fixed")&&(a=r.offsetLeft,c=r.offsetTop)}return{width:i,height:s,x:a,y:c}}const Lu=new Set(["absolute","fixed"]);function Iu(t,e){const n=Lt(t,!0,e==="fixed"),o=n.top+t.clientTop,r=n.left+t.clientLeft,i=ht(t)?Ht(t):ut(1),s=t.clientWidth*i.x,a=t.clientHeight*i.y,c=r*i.x,l=o*i.y;return{width:s,height:a,x:c,y:l}}function Er(t,e,n){let o;if(e==="viewport")o=Vu(t,n);else if(e==="document")o=Ou(pt(t));else if(rt(e))o=Iu(e,n);else{const r=ws(t);o={x:e.x-r.x,y:e.y-r.y,width:e.width,height:e.height}}return ze(o)}function Cs(t,e){const n=Tt(t);return n===e||!rt(n)||Gt(n)?!1:it(n).position==="fixed"||Cs(n,e)}function Nu(t,e){const n=e.get(t);if(n)return n;let o=ge(t,[],!1).filter(a=>rt(a)&&ee(a)!=="body"),r=null;const i=it(t).position==="fixed";let s=i?Tt(t):t;for(;rt(s)&&!Gt(s);){const a=it(s),c=wo(s);!c&&a.position==="fixed"&&(r=null),(i?!c&&!r:!c&&a.position==="static"&&!!r&&Lu.has(r.position)||Ce(s)&&!c&&Cs(t,s))?o=o.filter(u=>u!==s):r=a,s=Tt(s)}return e.set(t,o),o}function ku(t){let{element:e,boundary:n,rootBoundary:o,strategy:r}=t;const s=[...n==="clippingAncestors"?cn(e)?[]:Nu(e,this._c):[].concat(n),o],a=s[0],c=s.reduce((l,u)=>{const f=Er(e,u,r);return l.top=Z(f.top,l.top),l.right=Pt(f.right,l.right),l.bottom=Pt(f.bottom,l.bottom),l.left=Z(f.left,l.left),l},Er(e,a,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Fu(t){const{width:e,height:n}=xs(t);return{width:e,height:n}}function _u(t,e,n){const o=ht(e),r=pt(e),i=n==="fixed",s=Lt(t,!0,i,e);let a={scrollLeft:0,scrollTop:0};const c=ut(0);function l(){c.x=Po(r)}
vendor: 15,633 bytes, line 9
9if(o||!o&&!i)if((ee(e)!=="body"||Ce(r))&&(a=ln(e)),o){const p=Lt(e,!0,i,e);c.x=p.x+e.clientLeft,c.y=p.y+e.clientTop}else r&&l();i&&!o&&r&&l();const u=r&&!o&&!i?bs(r,a):ut(0),f=s.left+a.scrollLeft-c.x-u.x,d=s.top+a.scrollTop-c.y-u.y;return{x:f,y:d,width:s.width,height:s.height}}function Pn(t){return it(t).position==="static"}function Rr(t,e){if(!ht(t)||it(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return pt(t)===n&&(n=n.ownerDocument.body),n}function Ps(t,e){const n=Q(t);if(cn(t))return n;if(!ht(t)){let r=Tt(t);for(;r&&!Gt(r);){if(rt(r)&&!Pn(r))return r;r=Tt(r)}return n}let o=Rr(t,e);for(;o&&wu(o)&&Pn(o);)o=Rr(o,e);return o&&Gt(o)&&Pn(o)&&!wo(o)?n:o||Au(t)||n}const ju=async function(t){const e=this.getOffsetParent||Ps,n=this.getDimensions,o=await n(t.floating);return{reference:_u(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Bu(t){return it(t).direction==="rtl"}const $u={convertOffsetParentRelativeRectToViewportRelativeRect:Du,getDocumentElement:pt,getClippingRect:ku,getOffsetParent:Ps,getElementRects:ju,getClientRects:Mu,getDimensions:Fu,getScale:Ht,isElement:rt,isRTL:Bu};function Ts(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Wu(t,e){let n=null,o;const r=pt(t);function i(){var a;clearTimeout(o),(a=n)==null||a.disconnect(),n=null}function s(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),i();const l=t.getBoundingClientRect(),{left:u,top:f,width:d,height:p}=l;if(a||e(),!d||!p)return;const g=De(f),m=De(r.clientWidth-(u+d)),v=De(r.clientHeight-(f+p)),y=De(u),w={rootMargin:-g+"px "+-m+"px "+-v+"px "+-y+"px",threshold:Z(0,Pt(1,c))||1};let C=!0;function b(A){const T=A[0].intersectionRatio;if(T!==c){if(!C)return s();T?s(!1,T):o=setTimeout(()=>{s(!1,1e-7)},1e3)}T===1&&!Ts(l,t.getBoundingClientRect())&&s(),C=!1}try{n=new IntersectionObserver(b,{...w,root:r.ownerDocument})}catch{n=new IntersectionObserver(b,w)}n.observe(t)}return s(!0),i}function Uu(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,l=Co(t),u=r||i?[...l?ge(l):[],...ge(e)]:[];u.forEach(y=>{r&&y.addEventListener("scroll",n,{passive:!0}),i&&y.addEventListener("resize",n)});const f=l&&a?Wu(l,n):null;let d=-1,p=null;s&&(p=new ResizeObserver(y=>{let[x]=y;x&&x.target===l&&p&&(p.unobserve(e),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var w;(w=p)==null||w.observe(e)})),n()}),l&&!c&&p.observe(l),p.observe(e));let g,m=c?Lt(t):null;c&&v();function v(){const y=Lt(t);m&&!Ts(m,y)&&n(),m=y,g=requestAnimationFrame(v)}return n(),()=>{var y;u.forEach(x=>{r&&x.removeEventListener("scroll",n),i&&x.removeEventListener("resize",n)}),f?.(),(y=p)==null||y.disconnect(),p=null,c&&cancelAnimationFrame(g)}}const Hu=pu,Ku=mu,zu=fu,Gu=vu,Yu=du,Dr=uu,Xu=gu,qu=(t,e,n)=>{const o=new Map,r={platform:$u,...n},i={...r.platform,_c:o};return lu(t,e,{...r,platform:i})};var Zu=typeof document<"u",Qu=function(){},_e=Zu?h.useLayoutEffect:Qu;function Ge(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,o,r;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(o=n;o--!==0;)if(!Ge(t[o],e[o]))return!1;return!0}if(r=Object.keys(t),n=r.length,n!==Object.keys(e).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(e,r[o]))return!1;for(o=n;o--!==0;){const i=r[o];if(!(i==="_owner"&&t.$$typeof)&&!Ge(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function As(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Mr(t,e){const n=As(t);return Math.round(e*n)/n}function Tn(t){const e=h.useRef(t);return _e(()=>{e.current=t}),e}function Ju(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:c,open:l}=t,[u,f]=h.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[d,p]=h.useState(o);Ge(d,o)||p(o);const[g,m]=h.useState(null),[v,y]=h.useState(null),x=h.useCallback(R=>{R!==A.current&&(A.current=R,m(R))},[]),w=h.useCallback(R=>{R!==T.current&&(T.current=R,y(R))},[]),C=i||g,b=s||v,A=h.useRef(null),T=h.useRef(null),S=h.useRef(u),D=c!=null,M=Tn(c),N=Tn(r),U=Tn(l),F=h.useCallback(()=>{if(!A.current||!T.current)return;const R={placement:e,strategy:n,middleware:d};N.current&&(R.platform=N.current),qu(A.current,T.current,R).then(B=>{const q={...B,isPositioned:U.current!==!1};L.current&&!Ge(S.current,q)&&(S.current=q,rs.flushSync(()=>{f(q)}))})},[d,e,n,N,U]);_e(()=>{l===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,f(R=>({...R,isPositioned:!1})))},[l]);const L=h.useRef(!1);_e(()=>(L.current=!0,()=>{L.current=!1}),[]),_e(()=>{if(C&&(A.current=C),b&&(T.current=b),C&&b){if(M.current)return M.current(C,b,F);F()}},[C,b,F,M,D]);const X=h.useMemo(()=>({reference:A,floating:T,setReference:x,setFloating:w}),[x,w]),j=h.useMemo(()=>({reference:C,floating:b}),[C,b]),O=h.useMemo(()=>{const R={position:n,left:0,top:0};if(!j.floating)return R;const B=Mr(j.floating,u.x),q=Mr(j.floating,u.y);return a?{...R,transform:"translate("+B+"px, "+q+"px)",...As(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:B,top:q}},[n,a,j.floating,u.x,u.y]);return h.useMemo(()=>({...u,update:F,refs:X,elements:j,floatingStyles:O}),[u,F,X,j,O])}const tf=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:o,padding:r}=typeof t=="function"?t(n):t;return o&&e(o)?o.current!=null?Dr({element:o.current,padding:r}).fn(n):{}:o?Dr({element:o,padding:r}).fn(n):{}}}},ef=(t,e)=>({...Hu(t),options:[t,e]}),nf=(t,e)=>({...Ku(t),options:[t,e]}),of=(t,e)=>({...Xu(t),options:[t,e]}),rf=(t,e)=>({...zu(t),options:[t,e]}),sf=(t,e)=>({...Gu(t),options:[t,e]}),af=(t,e)=>({...Yu(t),options:[t,e]}),cf=(t,e)=>({...tf(t),options:[t,e]});var lf="Arrow",Ss=h.forwardRef((t,e)=>{const{children:n,width:o=10,height:r=5,...i}=t;return P.jsx(W.svg,{...i,ref:e,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:P.jsx("polygon",{points:"0,0 30,0 15,10"})})});Ss.displayName=lf;var uf=Ss;function ff(t){const[e,n]=h.useState(void 0);return vt(()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const i=r[0];let s,a;if("borderBoxSize"in i){const c=i.borderBoxSize,l=Array.isArray(c)?c[0]:c;s=l.inlineSize,a=l.blockSize}else s=t.offsetWidth,a=t.offsetHeight;n({width:s,height:a})});return o.observe(t,{box:"border-box"}),()=>o.unobserve(t)}else n(void 0)},[t]),e}var To="Popper",[Es,Rs]=Qt(To),[df,Ds]=Es(To),Ms=t=>{const{__scopePopper:e,children:n}=t,[o,r]=h.useState(null);return P.jsx(df,{scope:e,anchor:o,onAnchorChange:r,children:n})};Ms.displayName=To;var Os="PopperAnchor",Vs=h.forwardRef((t,e)=>{const{__scopePopper:n,virtualRef:o,...r}=t,i=Ds(Os,n),s=h.useRef(null),a=Y(e,s);return h.useEffect(()=>{i.onAnchorChange(o?.current||s.current)}),o?null:P.jsx(W.div,{...r,ref:a})});Vs.displayName=Os;var Ao="PopperContent",[hf,pf]=Es(Ao),Ls=h.forwardRef((t,e)=>{const{__scopePopper:n,side:o="bottom",sideOffset:r=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:f="partial",hideWhenDetached:d=!1,updatePositionStrategy:p="optimized",onPlaced:g,...m}=t,v=Ds(Ao,n),[y,x]=h.useState(null),w=Y(e,re=>x(re)),[C,b]=h.useState(null),A=ff(C),T=A?.width??0,S=A?.height??0,D=o+(i!=="center"?"-"+i:""),M=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},N=Array.isArray(l)?l:[l],U=N.length>0,F={padding:M,boundary:N.filter(gf),altBoundary:U},{refs:L,floatingStyles:X,placement:j,isPositioned:O,middlewareData:R}=Ju({strategy:"fixed",placement:D,whileElementsMounted:(...re)=>Uu(...re,{animationFrame:p==="always"}),elements:{reference:v.anchor},middleware:[ef({mainAxis:r+S,alignmentAxis:s}),c&&nf({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?of():void 0,...F}),c&&rf({...F}),sf({...F,apply:({elements:re,rects:vr,availableWidth:dl,availableHeight:hl})=>{const{width:pl,height:ml}=vr.reference,Ee=re.floating.style;Ee.setProperty("--radix-popper-available-width",`${dl}px`),Ee.setProperty("--radix-popper-available-height",`${hl}px`),Ee.setProperty("--radix-popper-anchor-width",`${pl}px`),Ee.setProperty("--radix-popper-anchor-height",`${ml}px`)}}),C&&cf({element:C,padding:a}),vf({arrowWidth:T,arrowHeight:S}),d&&af({strategy:"referenceHidden",...F})]}),[B,q]=ks(j),gr=zt(g);vt(()=>{O&&gr?.()},[O,gr]);const al=R.arrow?.x,cl=R.arrow?.y,ll=R.arrow?.centerOffset!==0,[ul,fl]=h.useState();return vt(()=>{y&&fl(window.getComputedStyle(y).zIndex)},[y]),P.jsx("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...X,transform:O?X.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ul,"--radix-popper-transform-origin":[R.transformOrigin?.x,R.transformOrigin?.y].join(" "),...R.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:P.jsx(hf,{scope:n,placedSide:B,onArrowChange:b,arrowX:al,arrowY:cl,shouldHideArrow:ll,children:P.jsx(W.div,{"data-side":B,"data-align":q,...m,ref:w,style:{...m.style,animation:O?void 0:"none"}})})})});Ls.displayName=Ao;var Is="PopperArrow",mf={top:"bottom",right:"left",bottom:"top",left:"right"},Ns=h.forwardRef(function(e,n){const{__scopePopper:o,...r}=e,i=pf(Is,o),s=mf[i.placedSide];return P.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:P.jsx(uf,{...r,ref:n,style:{...r.style,display:"block"}})})});Ns.displayName=Is;function gf(t){return t!==null}var vf=t=>({name:"transformOrigin",options:t,fn(e){const{placement:n,rects:o,middlewareData:r}=e,s=r.arrow?.centerOffset!==0,a=s?0:t.arrowWidth,c=s?0:t.arrowHeight,[l,u]=ks(n),f={start:"0%",center:"50%",end:"100%"}[u],d=(r.arrow?.x??0)+a/2,p=(r.arrow?.y??0)+c/2;let g="",m="";return l==="bottom"?(g=s?f:`${d}px`,m=`${-c}px`):l==="top"?(g=s?f:`${d}px`,m=`${o.floating.height+c}px`):l==="right"?(g=`${-c}px`,m=s?f:`${p}px`):l==="left"&&(g=`${o.floating.width+c}px`,m=s?f:`${p}px`),{data:{x:g,y:m}}}});function ks(t){const[e,n="center"]=t.split("-");return[e,n]}var Vv=Ms,yf=Vs,xf=Ls,wf=Ns,[un,Lv]=Qt("Tooltip",[Rs]),So=Rs(),Fs="TooltipProvider",bf=700,Or="tooltip.open",[Cf,_s]=un(Fs),js=t=>{const{__scopeTooltip:e,delayDuration:n=bf,skipDelayDuration:o=300,disableHoverableContent:r=!1,children:i}=t,s=h.useRef(!0),a=h.useRef(!1),c=h.useRef(0);return h.useEffect(()=>{const l=c.current;return()=>window.clearTimeout(l)},[]),P.jsx(Cf,{scope:e,isOpenDelayedRef:s,delayDuration:n,onOpen:h.useCallback(()=>{window.clearTimeout(c.current),s.current=!1},[]),onClose:h.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.current=!0,o)},[o]),isPointerInTransitRef:a,onPointerInTransitChange:h.useCallback(l=>{a.current=l},[]),disableHoverableContent:r,children:i})};js.displayName=Fs;var Bs="Tooltip",[Iv,fn]=un(Bs),Xn="TooltipTrigger",Pf=h.forwardRef((t,e)=>{const{__scopeTooltip:n,...o}=t,r=fn(Xn,n),i=_s(Xn,n),s=So(n),a=h.useRef(null),c=Y(e,a,r.onTriggerChange),l=h.useRef(!1),u=h.useRef(!1),f=h.useCallback(()=>l.current=!1,[]);return h.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),P.jsx(yf,{asChild:!0,...s,children:P.jsx(W.button,{"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute,...o,ref:c,onPointerMove:z(t.onPointerMove,d=>{d.pointerType!=="touch"&&!u.current&&!i.isPointerInTransitRef.current&&(r.onTriggerEnter(),u.current=!0)}),onPointerLeave:z(t.onPointerLeave,()=>{r.onTriggerLeave(),u.current=!1}),onPointerDown:z(t.onPointerDown,()=>{r.open&&r.onClose(),l.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:z(t.onFocus,()=>{l.current||r.onOpen()}),onBlur:z(t.onBlur,r.onClose),onClick:z(t.onClick,r.onClose)})})});Pf.displayName=Xn;var Tf="TooltipPortal",[Nv,Af]=un(Tf,{forceMount:void 0}),Yt="TooltipContent",$s=h.forwardRef((t,e)=>{const n=Af(Yt,t.__scopeTooltip),{forceMount:o=n.forceMount,side:r="top",...i}=t,s=fn(Yt,t.__scopeTooltip);return P.jsx(Jt,{present:o||s.open,children:s.disableHoverableContent?P.jsx(Ws,{side:r,...i,ref:e}):P.jsx(Sf,{side:r,...i,ref:e})})}),Sf=h.forwardRef((t,e)=>{const n=fn(Yt,t.__scopeTooltip),o=_s(Yt,t.__scopeTooltip),r=h.useRef(null),i=Y(e,r),[s,a]=h.useState(null),{trigger:c,onClose:l}=n,u=r.current,{onPointerInTransitChange:f}=o,d=h.useCallback(()=>{a(null),f(!1)},[f]),p=h.useCallback((g,m)=>{const v=g.currentTarget,y={x:g.clientX,y:g.clientY},x=Of(y,v.getBoundingClientRect()),w=Vf(y,x),C=Lf(m.getBoundingClientRect()),b=Nf([...w,...C]);a(b),f(!0)},[f]);return h.useEffect(()=>()=>d(),[d]),h.useEffect(()=>{if(c&&u){const g=v=>p(v,u),m=v=>p(v,c);return c.addEventListener("pointerleave",g),u.addEventListener("pointerleave",m),()=>{c.removeEventListener("pointerleave",g),u.removeEventListener("pointerleave",m)}}},[c,u,p,d]),h.useEffect(()=>{if(s){const g=m=>{const v=m.target,y={x:m.clientX,y:m.clientY},x=c?.contains(v)||u?.contains(v),w=!If(y,s);x?d():w&&(d(),l())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[c,u,s,l,d]),P.jsx(Ws,{...t,ref:i})}),[Ef,Rf]=un(Bs,{isInside:!1}),Df=Sl("TooltipContent"),Ws=h.forwardRef((t,e)=>{const{__scopeTooltip:n,children:o,"aria-label":r,onEscapeKeyDown:i,onPointerDownOutside:s,...a}=t,c=fn(Yt,n),l=So(n),{onClose:u}=c;return h.useEffect(()=>(document.addEventListener(Or,u),()=>document.removeEventListener(Or,u)),[u]),h.useEffect(()=>{if(c.trigger){const f=d=>{d.target?.contains(c.trigger)&&u()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[c.trigger,u]),P.jsx(rn,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:f=>f.preventDefault(),onDismiss:u,children:P.jsxs(xf,{"data-state":c.stateAttribute,...l,...a,ref:e,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[P.jsx(Df,{children:o}),P.jsx(Ef,{scope:n,isInside:!0,children:P.jsx(Xl,{id:c.contentId,role:"tooltip",children:r||o})})]})})});$s.displayName=Yt;var Us="TooltipArrow",Mf=h.forwardRef((t,e)=>{const{__scopeTooltip:n,...o}=t,r=So(n);return Rf(Us,n).isInside?null:P.jsx(wf,{...r,...o,ref:e})});Mf.displayName=Us;function Of(t,e){const n=Math.abs(e.top-t.y),o=Math.abs(e.bottom-t.y),r=Math.abs(e.right-t.x),i=Math.abs(e.left-t.x);switch(Math.min(n,o,r,i)){case i:return"left";case r:return"right";case n:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function Vf(t,e,n=5){const o=[];switch(e){case"top":o.push({x:t.x-n,y:t.y+n},{x:t.x+n,y:t.y+n});break;case"bottom":o.push({x:t.x-n,y:t.y-n},{x:t.x+n,y:t.y-n});break;case"left":o.push({x:t.x+n,y:t.y-n},{x:t.x+n,y:t.y+n});break;case"right":o.push({x:t.x-n,y:t.y-n},{x:t.x-n,y:t.y+n});break}return o}
vendor: 10,982 bytes, lines 9-24
9function Lf(t){const{top:e,right:n,bottom:o,left:r}=t;return[{x:r,y:e},{x:n,y:e},{x:n,y:o},{x:r,y:o}]}function If(t,e){const{x:n,y:o}=t;let r=!1;for(let i=0,s=e.length-1;i<e.length;s=i++){const a=e[i],c=e[s],l=a.x,u=a.y,f=c.x,d=c.y;u>o!=d>o&&n<(f-l)*(o-u)/(d-u)+l&&(r=!r)}return r}function Nf(t){const e=t.slice();return e.sort((n,o)=>n.x<o.x?-1:n.x>o.x?1:n.y<o.y?-1:n.y>o.y?1:0),kf(e)}function kf(t){if(t.length<=1)return t.slice();const e=[];for(let o=0;o<t.length;o++){const r=t[o];for(;e.length>=2;){const i=e[e.length-1],s=e[e.length-2];if((i.x-s.x)*(r.y-s.y)>=(i.y-s.y)*(r.x-s.x))e.pop();else break}e.push(r)}e.pop();const n=[];for(let o=t.length-1;o>=0;o--){const r=t[o];for(;n.length>=2;){const i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(r.y-s.y)>=(i.y-s.y)*(r.x-s.x))n.pop();else break}n.push(r)}return n.pop(),e.length===1&&n.length===1&&e[0].x===n[0].x&&e[0].y===n[0].y?e:e.concat(n)}var kv=js,Fv=$s,qn=function(t,e){return qn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(n[r]=o[r])},qn(t,e)};function _v(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");qn(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var ct=function(){return ct=Object.assign||function(e){for(var n,o=1,r=arguments.length;o<r;o++){n=arguments[o];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},ct.apply(this,arguments)};function Hs(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(t);r<o.length;r++)e.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(t,o[r])&&(n[o[r]]=t[o[r]]);return n}function jv(t,e,n,o){function r(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(u){try{l(o.next(u))}catch(f){s(f)}}function c(u){try{l(o.throw(u))}catch(f){s(f)}}function l(u){u.done?i(u.value):r(u.value).then(a,c)}l((o=o.apply(t,e||[])).next())})}function Ff(t,e,n){if(n||arguments.length===2)for(var o=0,r=e.length,i;o<r;o++)(i||!(o in e))&&(i||(i=Array.prototype.slice.call(e,0,o)),i[o]=e[o]);return t.concat(i||Array.prototype.slice.call(e))}var An="focusScope.autoFocusOnMount",Sn="focusScope.autoFocusOnUnmount",Vr={bubbles:!1,cancelable:!0},_f="FocusScope",Ks=h.forwardRef((t,e)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:r,onUnmountAutoFocus:i,...s}=t,[a,c]=h.useState(null),l=zt(r),u=zt(i),f=h.useRef(null),d=Y(e,m=>c(m)),p=h.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;h.useEffect(()=>{if(o){let m=function(w){if(p.paused||!a)return;const C=w.target;a.contains(C)?f.current=C:bt(f.current,{select:!0})},v=function(w){if(p.paused||!a)return;const C=w.relatedTarget;C!==null&&(a.contains(C)||bt(f.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const b of w)b.removedNodes.length>0&&bt(a)};document.addEventListener("focusin",m),document.addEventListener("focusout",v);const x=new MutationObserver(y);return a&&x.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",v),x.disconnect()}}},[o,a,p.paused]),h.useEffect(()=>{if(a){Ir.add(p);const m=document.activeElement;if(!a.contains(m)){const y=new CustomEvent(An,Vr);a.addEventListener(An,l),a.dispatchEvent(y),y.defaultPrevented||(jf(Hf(zs(a)),{select:!0}),document.activeElement===m&&bt(a))}return()=>{a.removeEventListener(An,l),setTimeout(()=>{const y=new CustomEvent(Sn,Vr);a.addEventListener(Sn,u),a.dispatchEvent(y),y.defaultPrevented||bt(m??document.body,{select:!0}),a.removeEventListener(Sn,u),Ir.remove(p)},0)}}},[a,l,u,p]);const g=h.useCallback(m=>{if(!n&&!o||p.paused)return;const v=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,y=document.activeElement;if(v&&y){const x=m.currentTarget,[w,C]=Bf(x);w&&C?!m.shiftKey&&y===C?(m.preventDefault(),n&&bt(w,{select:!0})):m.shiftKey&&y===w&&(m.preventDefault(),n&&bt(C,{select:!0})):y===x&&m.preventDefault()}},[n,o,p.paused]);return P.jsx(W.div,{tabIndex:-1,...s,ref:d,onKeyDown:g})});Ks.displayName=_f;function jf(t,{select:e=!1}={}){const n=document.activeElement;for(const o of t)if(bt(o,{select:e}),document.activeElement!==n)return}function Bf(t){const e=zs(t),n=Lr(e,t),o=Lr(e.reverse(),t);return[n,o]}function zs(t){const e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)e.push(n.currentNode);return e}function Lr(t,e){for(const n of t)if(!$f(n,{upTo:e}))return n}function $f(t,{upTo:e}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function Wf(t){return t instanceof HTMLInputElement&&"select"in t}function bt(t,{select:e=!1}={}){if(t&&t.focus){const n=document.activeElement;t.focus({preventScroll:!0}),t!==n&&Wf(t)&&e&&t.select()}}var Ir=Uf();function Uf(){let t=[];return{add(e){const n=t[0];e!==n&&n?.pause(),t=Nr(t,e),t.unshift(e)},remove(e){t=Nr(t,e),t[0]?.resume()}}}function Nr(t,e){const n=[...t],o=n.indexOf(e);return o!==-1&&n.splice(o,1),n}function Hf(t){return t.filter(e=>e.tagName!=="A")}var En=0;function Kf(){h.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??kr()),document.body.insertAdjacentElement("beforeend",t[1]??kr()),En++,()=>{En===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),En--}},[])}function kr(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var je="right-scroll-bar-position",Be="width-before-scroll-bar",zf="with-scroll-bars-hidden",Gf="--removed-body-scroll-bar-size";function Rn(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}function Yf(t,e){var n=h.useState(function(){return{value:t,callback:e,facade:{get current(){return n.value},set current(o){var r=n.value;r!==o&&(n.value=o,n.callback(o,r))}}}})[0];return n.callback=e,n.facade}var Xf=typeof window<"u"?h.useLayoutEffect:h.useEffect,Fr=new WeakMap;function qf(t,e){var n=Yf(null,function(o){return t.forEach(function(r){return Rn(r,o)})});return Xf(function(){var o=Fr.get(n);if(o){var r=new Set(o),i=new Set(t),s=n.current;r.forEach(function(a){i.has(a)||Rn(a,null)}),i.forEach(function(a){r.has(a)||Rn(a,s)})}Fr.set(n,t)},[t]),n}function Zf(t){return t}function Qf(t,e){e===void 0&&(e=Zf);var n=[],o=!1,r={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:t},useMedium:function(i){var s=e(i,o);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(o=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){o=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(i),s=n}var c=function(){var u=s;s=[],u.forEach(i)},l=function(){return Promise.resolve().then(c)};l(),n={push:function(u){s.push(u),l()},filter:function(u){return s=s.filter(u),n}}}};return r}function Jf(t){t===void 0&&(t={});var e=Qf(null);return e.options=ct({async:!0,ssr:!1},t),e}var Gs=function(t){var e=t.sideCar,n=Hs(t,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=e.read();if(!o)throw new Error("Sidecar medium not found");return h.createElement(o,ct({},n))};Gs.isSideCarExport=!0;function td(t,e){return t.useMedium(e),Gs}var Ys=Jf(),Dn=function(){},dn=h.forwardRef(function(t,e){var n=h.useRef(null),o=h.useState({onScrollCapture:Dn,onWheelCapture:Dn,onTouchMoveCapture:Dn}),r=o[0],i=o[1],s=t.forwardProps,a=t.children,c=t.className,l=t.removeScrollBar,u=t.enabled,f=t.shards,d=t.sideCar,p=t.noRelative,g=t.noIsolation,m=t.inert,v=t.allowPinchZoom,y=t.as,x=y===void 0?"div":y,w=t.gapMode,C=Hs(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),b=d,A=qf([n,e]),T=ct(ct({},C),r);return h.createElement(h.Fragment,null,u&&h.createElement(b,{sideCar:Ys,removeScrollBar:l,shards:f,noRelative:p,noIsolation:g,inert:m,setCallbacks:i,allowPinchZoom:!!v,lockRef:n,gapMode:w}),s?h.cloneElement(h.Children.only(a),ct(ct({},T),{ref:A})):h.createElement(x,ct({},T,{className:c,ref:A}),a))});dn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};dn.classNames={fullWidth:Be,zeroRight:je};var ed=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function nd(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=ed();return e&&t.setAttribute("nonce",e),t}function od(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function rd(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var id=function(){var t=0,e=null;return{add:function(n){t==0&&(e=nd())&&(od(e,n),rd(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},sd=function(){var t=id();return function(e,n){h.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&n])}},Xs=function(){var t=sd(),e=function(n){var o=n.styles,r=n.dynamic;return t(o,r),null};return e},ad={left:0,top:0,right:0,gap:0},Mn=function(t){return parseInt(t||"",10)||0},cd=function(t){var e=window.getComputedStyle(document.body),n=e[t==="padding"?"paddingLeft":"marginLeft"],o=e[t==="padding"?"paddingTop":"marginTop"],r=e[t==="padding"?"paddingRight":"marginRight"];return[Mn(n),Mn(o),Mn(r)]},ld=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return ad;var e=cd(t),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,o-n+e[2]-e[0])}},ud=Xs(),Kt="data-scroll-locked",fd=function(t,e,n,o){var r=t.left,i=t.top,s=t.right,a=t.gap;return n===void 0&&(n="margin"),`
10  .`.concat(zf,` {
11   overflow: hidden `).concat(o,`;
12   padding-right: `).concat(a,"px ").concat(o,`;
13  }
14  body[`).concat(Kt,`] {
15    overflow: hidden `).concat(o,`;
16    overscroll-behavior: contain;
17    `).concat([e&&"position: relative ".concat(o,";"),n==="margin"&&`
18    padding-left: `.concat(r,`px;
19    padding-top: `).concat(i,`px;
20    padding-right: `).concat(s,`px;
21    margin-left:0;
22    margin-top:0;
23    margin-right: `).concat(a,"px ").concat(o,`;
24    `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(o,";
24")].filter(Boolean).join(""),`
25  }
26  
27  .`).concat(je,` {
28    right: `).concat(a,"px ").concat(o,`;
29  }
30  
31  .`).concat(Be,` {
32    margin-right: `).concat(a,"px ").concat(o,`;
33  }
34  
35  .`).concat(je," .").concat(je,` {
36    right: 0 `).concat(o,`;
37  }
38  
39  .`).concat(Be," .").concat(Be,` {
40    margin-right: 0 `).concat(o,`;
41  }
42  
43  body[`).concat(Kt,`] {
44    `).concat(Gf,": ").concat(a,`px;
45  }
46`)},_r=function(){var t=parseInt(document.body.getAttribute(Kt)||"0",10);return isFinite(t)?t:0},dd=function(){h.useEffect(function(){return document.body.setAttribute(Kt,(_r()+1).toString()),function(){var t=_r()-1;t<=0?document.body.removeAttribute(Kt):document.body.setAttribute(Kt,t.toString())}},[])},hd=function(t){var e=t.noRelative,n=t.noImportant,o=t.gapMode,r=o===void 0?"margin":o;dd();var i=h.useMemo(function(){return ld(r)},[r]);return h.createElement(ud,{styles:fd(i,!e,r,n?"":"!important")})},Zn=!1;if(typeof window<"u")try{var Me=Object.defineProperty({},"passive",{get:function(){return Zn=!0,!0}});window.addEventListener("test",Me,Me),window.removeEventListener("test",Me,Me)}catch{Zn=!1}var kt=Zn?{passive:!1}:!1,pd=function(t){return t.tagName==="TEXTAREA"},qs=function(t,e){if(!(t instanceof Element))return!1;var n=window.getComputedStyle(t);return n[e]!=="hidden"&&!(n.overflowY===n.overflowX&&!pd(t)&&n[e]==="visible")},md=function(t){return qs(t,"overflowY")},gd=function(t){return qs(t,"overflowX")},jr=function(t,e){var n=e.ownerDocument,o=e;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var r=Zs(t,o);if(r){var i=Qs(t,o),s=i[1],a=i[2];if(s>a)return!0}o=o.parentNode}while(o&&o!==n.body);return!1},vd=function(t){var e=t.scrollTop,n=t.scrollHeight,o=t.clientHeight;return[e,n,o]},yd=function(t){var e=t.scrollLeft,n=t.scrollWidth,o=t.clientWidth;return[e,n,o]},Zs=function(t,e){return t==="v"?md(e):gd(e)},Qs=function(t,e){return t==="v"?vd(e):yd(e)},xd=function(t,e){return t==="h"&&e==="rtl"?-1:1},wd=function(t,e,n,o,r){var i=xd(t,window.getComputedStyle(e).direction),s=i*o,a=n.target,c=e.contains(a),l=!1,u=s>0,f=0,d=0;do{if(!a)break;var p=Qs(t,a),g=p[0],m=p[1],v=p[2],y=m-v-i*g;(g||y)&&Zs(t,a)&&(f+=y,d+=g);var x=a.parentNode;a=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!c&&a!==document.body||c&&(e.contains(a)||e===a));return(u&&(Math.abs(f)<1||!r)||!u&&(Math.abs(d)<1||!r))&&(l=!0),l},Oe=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},Br=function(t){return[t.deltaX,t.deltaY]},$r=function(t){return t&&"current"in t?t.current:t},bd=function(t,e){return t[0]===e[0]&&t[1]===e[1]},Cd=function(t){return`
47  .block-interactivity-`.concat(t,` {pointer-events: none;}
48  .allow-interactivity-`).concat(t,` {pointer-events: all;}
49`)},Pd=0,Ft=[];function Td(t){var e=h.useRef([]),n=h.useRef([0,0]),o=h.useRef(),r=h.useState(Pd++)[0],i=h.useState(Xs)[0],s=h.useRef(t);h.useEffect(function(){s.current=t},[t]),h.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(r));var m=Ff([t.lockRef.current],(t.shards||[]).map($r),!0).filter(Boolean);return m.forEach(function(v){return v.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),m.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(r))})}}},[t.inert,t.lockRef.current,t.shards]);var a=h.useCallback(function(m,v){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!s.current.allowPinchZoom;var y=Oe(m),x=n.current,w="deltaX"in m?m.deltaX:x[0]-y[0],C="deltaY"in m?m.deltaY:x[1]-y[1],b,A=m.target,T=Math.abs(w)>Math.abs(C)?"h":"v";if("touches"in m&&T==="h"&&A.type==="range")return!1;var S=jr(T,A);if(!S)return!0;if(S?b=T:(b=T==="v"?"h":"v",S=jr(T,A)),!S)return!1;if(!o.current&&"changedTouches"in m&&(w||C)&&(o.current=b),!b)return!0;var D=o.current||b;return wd(D,v,m,D==="h"?w:C,!0)},[]),c=h.useCallback(function(m){var v=m;if(!(!Ft.length||Ft[Ft.length-1]!==i)){var y="deltaY"in v?Br(v):Oe(v),x=e.current.filter(function(b){return b.name===v.type&&(b.target===v.target||v.target===b.shadowParent)&&bd(b.delta,y)})[0];if(x&&x.should){v.cancelable&&v.preventDefault();return}
vendor: 6,734 bytes, line 49
49if(!x){var w=(s.current.shards||[]).map($r).filter(Boolean).filter(function(b){return b.contains(v.target)}),C=w.length>0?a(v,w[0]):!s.current.noIsolation;C&&v.cancelable&&v.preventDefault()}}},[]),l=h.useCallback(function(m,v,y,x){var w={name:m,delta:v,target:y,should:x,shadowParent:Ad(y)};e.current.push(w),setTimeout(function(){e.current=e.current.filter(function(C){return C!==w})},1)},[]),u=h.useCallback(function(m){n.current=Oe(m),o.current=void 0},[]),f=h.useCallback(function(m){l(m.type,Br(m),m.target,a(m,t.lockRef.current))},[]),d=h.useCallback(function(m){l(m.type,Oe(m),m.target,a(m,t.lockRef.current))},[]);h.useEffect(function(){return Ft.push(i),t.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:d}),document.addEventListener("wheel",c,kt),document.addEventListener("touchmove",c,kt),document.addEventListener("touchstart",u,kt),function(){Ft=Ft.filter(function(m){return m!==i}),document.removeEventListener("wheel",c,kt),document.removeEventListener("touchmove",c,kt),document.removeEventListener("touchstart",u,kt)}},[]);var p=t.removeScrollBar,g=t.inert;return h.createElement(h.Fragment,null,g?h.createElement(i,{styles:Cd(r)}):null,p?h.createElement(hd,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function Ad(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const Sd=td(Ys,Td);var Js=h.forwardRef(function(t,e){return h.createElement(dn,ct({},t,{ref:e,sideCar:Sd}))});Js.classNames=dn.classNames;var Ed=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},_t=new WeakMap,Ve=new WeakMap,Le={},On=0,ta=function(t){return t&&(t.host||ta(t.parentNode))},Rd=function(t,e){return e.map(function(n){if(t.contains(n))return n;var o=ta(n);return o&&t.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",t,". Doing nothing"),null)}).filter(function(n){return!!n})},Dd=function(t,e,n,o){var r=Rd(e,Array.isArray(t)?t:[t]);Le[n]||(Le[n]=new WeakMap);var i=Le[n],s=[],a=new Set,c=new Set(r),l=function(f){!f||a.has(f)||(a.add(f),l(f.parentNode))};r.forEach(l);var u=function(f){!f||c.has(f)||Array.prototype.forEach.call(f.children,function(d){if(a.has(d))u(d);else try{var p=d.getAttribute(o),g=p!==null&&p!=="false",m=(_t.get(d)||0)+1,v=(i.get(d)||0)+1;_t.set(d,m),i.set(d,v),s.push(d),m===1&&g&&Ve.set(d,!0),v===1&&d.setAttribute(n,"true"),g||d.setAttribute(o,"true")}catch(y){console.error("aria-hidden: cannot operate on ",d,y)}})};return u(e),a.clear(),On++,function(){s.forEach(function(f){var d=_t.get(f)-1,p=i.get(f)-1;_t.set(f,d),i.set(f,p),d||(Ve.has(f)||f.removeAttribute(o),Ve.delete(f)),p||f.removeAttribute(n)}),On--,On||(_t=new WeakMap,_t=new WeakMap,Ve=new WeakMap,Le={})}},Md=function(t,e,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(t)?t:[t]),r=Ed(t);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live]"))),Dd(o,r,n,"aria-hidden")):function(){return null}},hn="Dialog",[ea,Bv]=Qt(hn),[Od,st]=ea(hn),na=t=>{const{__scopeDialog:e,children:n,open:o,defaultOpen:r,onOpenChange:i,modal:s=!0}=t,a=h.useRef(null),c=h.useRef(null),[l,u]=sn({prop:o,defaultProp:r??!1,onChange:i,caller:hn});return P.jsx(Od,{scope:e,triggerRef:a,contentRef:c,contentId:le(),titleId:le(),descriptionId:le(),open:l,onOpenChange:u,onOpenToggle:h.useCallback(()=>u(f=>!f),[u]),modal:s,children:n})};na.displayName=hn;var oa="DialogTrigger",ra=h.forwardRef((t,e)=>{const{__scopeDialog:n,...o}=t,r=st(oa,n),i=Y(e,r.triggerRef);return P.jsx(W.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":Do(r.open),...o,ref:i,onClick:z(t.onClick,r.onOpenToggle)})});ra.displayName=oa;var Eo="DialogPortal",[Vd,ia]=ea(Eo,{forceMount:void 0}),sa=t=>{const{__scopeDialog:e,forceMount:n,children:o,container:r}=t,i=st(Eo,e);return P.jsx(Vd,{scope:e,forceMount:n,children:h.Children.map(o,s=>P.jsx(Jt,{present:n||i.open,children:P.jsx(hs,{asChild:!0,container:r,children:s})}))})};sa.displayName=Eo;var Ye="DialogOverlay",aa=h.forwardRef((t,e)=>{const n=ia(Ye,t.__scopeDialog),{forceMount:o=n.forceMount,...r}=t,i=st(Ye,t.__scopeDialog);return i.modal?P.jsx(Jt,{present:o||i.open,children:P.jsx(Id,{...r,ref:e})}):null});aa.displayName=Ye;var Ld=pe("DialogOverlay.RemoveScroll"),Id=h.forwardRef((t,e)=>{const{__scopeDialog:n,...o}=t,r=st(Ye,n);return P.jsx(Js,{as:Ld,allowPinchZoom:!0,shards:[r.contentRef],children:P.jsx(W.div,{"data-state":Do(r.open),...o,ref:e,style:{pointerEvents:"auto",...o.style}})})}),It="DialogContent",ca=h.forwardRef((t,e)=>{const n=ia(It,t.__scopeDialog),{forceMount:o=n.forceMount,...r}=t,i=st(It,t.__scopeDialog);return P.jsx(Jt,{present:o||i.open,children:i.modal?P.jsx(Nd,{...r,ref:e}):P.jsx(kd,{...r,ref:e})})});ca.displayName=It;var Nd=h.forwardRef((t,e)=>{const n=st(It,t.__scopeDialog),o=h.useRef(null),r=Y(e,n.contentRef,o);return h.useEffect(()=>{const i=o.current;if(i)return Md(i)},[]),P.jsx(la,{...t,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:z(t.onCloseAutoFocus,i=>{i.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:z(t.onPointerDownOutside,i=>{const s=i.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&i.preventDefault()}),onFocusOutside:z(t.onFocusOutside,i=>i.preventDefault())})}),kd=h.forwardRef((t,e)=>{const n=st(It,t.__scopeDialog),o=h.useRef(!1),r=h.useRef(!1);return P.jsx(la,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{t.onCloseAutoFocus?.(i),i.defaultPrevented||(o.current||n.triggerRef.current?.focus(),i.preventDefault()),o.current=!1,r.current=!1},onInteractOutside:i=>{t.onInteractOutside?.(i),i.defaultPrevented||(o.current=!0,i.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const s=i.target;n.triggerRef.current?.contains(s)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&r.current&&i.preventDefault()}})}),la=h.forwardRef((t,e)=>{const{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:r,onCloseAutoFocus:i,...s}=t,a=st(It,n),c=h.useRef(null),l=Y(e,c);return Kf(),P.jsxs(P.Fragment,{children:[P.jsx(Ks,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:r,onUnmountAutoFocus:i,children:P.jsx(rn,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Do(a.open),...s,ref:l,onDismiss:()=>a.onOpenChange(!1)})}),P.jsxs(P.Fragment,{children:[P.jsx(Fd,{titleId:a.titleId}),P.jsx(jd,{contentRef:c,descriptionId:a.descriptionId})]})]})}),Ro="DialogTitle",ua=h.forwardRef((t,e)=>{const{__scopeDialog:n,...o}=t,r=st(Ro,n);return P.jsx(W.h2,{id:r.titleId,...o,ref:e})});ua.displayName=Ro;var fa="DialogDescription",da=h.forwardRef((t,e)=>{const{__scopeDialog:n,...o}=t,r=st(fa,n);
vendor: 36,801 bytes, lines 49-61
49return P.jsx(W.p,{id:r.descriptionId,...o,ref:e})});da.displayName=fa;var ha="DialogClose",pa=h.forwardRef((t,e)=>{const{__scopeDialog:n,...o}=t,r=st(ha,n);return P.jsx(W.button,{type:"button",...o,ref:e,onClick:z(t.onClick,()=>r.onOpenChange(!1))})});pa.displayName=ha;function Do(t){return t?"open":"closed"}var ma="DialogTitleWarning",[$v,ga]=Pl(ma,{contentName:It,titleName:Ro,docsSlug:"dialog"}),Fd=({titleId:t})=>{const e=ga(ma),n=`\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
50
51If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component.
52
53For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;return h.useEffect(()=>{t&&(document.getElementById(t)||console.error(n))},[n,t]),null},_d="DialogDescriptionWarning",jd=({contentRef:t,descriptionId:e})=>{const o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${ga(_d).contentName}}.`;return h.useEffect(()=>{const r=t.current?.getAttribute("aria-describedby");e&&r&&(document.getElementById(e)||console.warn(o))},[o,t,e]),null},Wv=na,Uv=ra,Hv=sa,Kv=aa,zv=ca,Gv=ua,Yv=da,Xv=pa;const Mo=h.createContext({});function Oo(t){const e=h.useRef(null);return e.current===null&&(e.current=t()),e.current}const pn=h.createContext(null),Vo=h.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});class Bd extends h.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent){const o=this.props.sizeRef.current;o.height=n.offsetHeight||0,o.width=n.offsetWidth||0,o.top=n.offsetTop,o.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function $d({children:t,isPresent:e}){const n=h.useId(),o=h.useRef(null),r=h.useRef({width:0,height:0,top:0,left:0}),{nonce:i}=h.useContext(Vo);return h.useInsertionEffect(()=>{const{width:s,height:a,top:c,left:l}=r.current;if(e||!o.current||!s||!a)return;o.current.dataset.motionPopId=n;const u=document.createElement("style");return i&&(u.nonce=i),document.head.appendChild(u),u.sheet&&u.sheet.insertRule(`
54          [data-motion-pop-id="${n}"] {
55            position: absolute !important;
56            width: ${s}px !important;
57            height: ${a}px !important;
58            top: ${c}px !important;
59            left: ${l}px !important;
60          }
61        `),()=>{document.head.removeChild(u)}},[e]),P.jsx(Bd,{isPresent:e,childRef:o,sizeRef:r,children:h.cloneElement(t,{ref:o})})}const Wd=({children:t,initial:e,isPresent:n,onExitComplete:o,custom:r,presenceAffectsLayout:i,mode:s})=>{const a=Oo(Ud),c=h.useId(),l=h.useCallback(f=>{a.set(f,!0);for(const d of a.values())if(!d)return;o&&o()},[a,o]),u=h.useMemo(()=>({id:c,initial:e,isPresent:n,custom:r,onExitComplete:l,register:f=>(a.set(f,!1),()=>a.delete(f))}),i?[Math.random(),l]:[n,l]);return h.useMemo(()=>{a.forEach((f,d)=>a.set(d,!1))},[n]),h.useEffect(()=>{!n&&!a.size&&o&&o()},[n]),s==="popLayout"&&(t=P.jsx($d,{isPresent:n,children:t})),P.jsx(pn.Provider,{value:u,children:t})};function Ud(){return new Map}function va(t=!0){const e=h.useContext(pn);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:o,register:r}=e,i=h.useId();h.useEffect(()=>{t&&r(i)},[t]);const s=h.useCallback(()=>t&&o&&o(i),[i,o,t]);return!n&&o?[!1,s]:[!0]}const Ie=t=>t.key||"";function Wr(t){const e=[];return h.Children.forEach(t,n=>{h.isValidElement(n)&&e.push(n)}),e}const Lo=typeof window<"u",ya=Lo?h.useLayoutEffect:h.useEffect,qv=({children:t,custom:e,initial:n=!0,onExitComplete:o,presenceAffectsLayout:r=!0,mode:i="sync",propagate:s=!1})=>{const[a,c]=va(s),l=h.useMemo(()=>Wr(t),[t]),u=s&&!a?[]:l.map(Ie),f=h.useRef(!0),d=h.useRef(l),p=Oo(()=>new Map),[g,m]=h.useState(l),[v,y]=h.useState(l);ya(()=>{f.current=!1,d.current=l;for(let C=0;C<v.length;C++){const b=Ie(v[C]);u.includes(b)?p.delete(b):p.get(b)!==!0&&p.set(b,!1)}},[v,u.length,u.join("-")]);const x=[];if(l!==g){let C=[...l];for(let b=0;b<v.length;b++){const A=v[b],T=Ie(A);u.includes(T)||(C.splice(b,0,A),x.push(A))}i==="wait"&&x.length&&(C=x),y(Wr(C)),m(l);return}const{forceRender:w}=h.useContext(Mo);return P.jsx(P.Fragment,{children:v.map(C=>{const b=Ie(C),A=s&&!a?!1:l===v||u.includes(b),T=()=>{if(p.has(b))p.set(b,!0);else return;let S=!0;p.forEach(D=>{D||(S=!1)}),S&&(w?.(),y(d.current),s&&c?.(),o&&o())};return P.jsx(Wd,{isPresent:A,initial:!f.current||n?void 0:!1,custom:A?void 0:e,presenceAffectsLayout:r,mode:i,onExitComplete:A?void 0:T,children:C},b)})})},J=t=>t;let Qn=J;function Io(t){let e;return()=>(e===void 0&&(e=t()),e)}const Xt=(t,e,n)=>{const o=e-t;return o===0?1:(n-t)/o},mt=t=>t*1e3,gt=t=>t/1e3,Hd={skipAnimations:!1,useManualTiming:!1};function Kd(t){let e=new Set,n=new Set,o=!1,r=!1;const i=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function a(l){i.has(l)&&(c.schedule(l),t()),l(s)}const c={schedule:(l,u=!1,f=!1)=>{const p=f&&o?e:n;return u&&i.add(l),p.has(l)||p.add(l),l},cancel:l=>{n.delete(l),i.delete(l)},process:l=>{if(s=l,o){r=!0;return}o=!0,[e,n]=[n,e],e.forEach(a),e.clear(),o=!1,r&&(r=!1,c.process(l))}};return c}const Ne=["read","resolveKeyframes","update","preRender","render","postRender"],zd=40;function xa(t,e){let n=!1,o=!0;const r={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=Ne.reduce((y,x)=>(y[x]=Kd(i),y),{}),{read:a,resolveKeyframes:c,update:l,preRender:u,render:f,postRender:d}=s,p=()=>{const y=performance.now();n=!1,r.delta=o?1e3/60:Math.max(Math.min(y-r.timestamp,zd),1),r.timestamp=y,r.isProcessing=!0,a.process(r),c.process(r),l.process(r),u.process(r),f.process(r),d.process(r),r.isProcessing=!1,n&&e&&(o=!1,t(p))},g=()=>{n=!0,o=!0,r.isProcessing||t(p)};return{schedule:Ne.reduce((y,x)=>{const w=s[x];return y[x]=(C,b=!1,A=!1)=>(n||g(),w.schedule(C,b,A)),y},{}),cancel:y=>{for(let x=0;x<Ne.length;x++)s[Ne[x]].cancel(y)},state:r,steps:s}}const{schedule:V,cancel:At,state:H,steps:Vn}=xa(typeof requestAnimationFrame<"u"?requestAnimationFrame:J,!0),wa=h.createContext({strict:!1}),Ur={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"]},qt={};for(const t in Ur)qt[t]={isEnabled:e=>Ur[t].some(n=>!!e[n])};function Gd(t){for(const e in t)qt[e]={...qt[e],...t[e]}}const Yd=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Xe(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Yd.has(t)}let ba=t=>!Xe(t);function Xd(t){t&&(ba=e=>e.startsWith("on")?!Xe(e):t(e))}try{Xd(require("@emotion/is-prop-valid").default)}catch{}function qd(t,e,n){const o={};for(const r in t)r==="values"&&typeof t.values=="object"||(ba(r)||n===!0&&Xe(r)||!e&&!Xe(r)||t.draggable&&r.startsWith("onDrag"))&&(o[r]=t[r]);return o}function Zd(t){if(typeof Proxy>"u")return t;const e=new Map,n=(...o)=>t(...o);return new Proxy(n,{get:(o,r)=>r==="create"?t:(e.has(r)||e.set(r,t(r)),e.get(r))})}const mn=h.createContext({});function ve(t){return typeof t=="string"||Array.isArray(t)}function gn(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const No=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ko=["initial",...No];function vn(t){return gn(t.animate)||ko.some(e=>ve(t[e]))}function Ca(t){return!!(vn(t)||t.variants)}function Qd(t,e){if(vn(t)){const{initial:n,animate:o}=t;return{initial:n===!1||ve(n)?n:void 0,animate:ve(o)?o:void 0}}return t.inherit!==!1?e:{}}function Jd(t){const{initial:e,animate:n}=Qd(t,h.useContext(mn));return h.useMemo(()=>({initial:e,animate:n}),[Hr(e),Hr(n)])}function Hr(t){return Array.isArray(t)?t.join(" "):t}const th=Symbol.for("motionComponentSymbol");function jt(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function eh(t,e,n){return h.useCallback(o=>{o&&t.onMount&&t.onMount(o),e&&(o?e.mount(o):e.unmount()),n&&(typeof n=="function"?n(o):jt(n)&&(n.current=o))},[e])}const Fo=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),nh="framerAppearId",Pa="data-"+Fo(nh),{schedule:_o,cancel:Zv}=xa(queueMicrotask,!1),Ta=h.createContext({});function oh(t,e,n,o,r){var i,s;const{visualElement:a}=h.useContext(mn),c=h.useContext(wa),l=h.useContext(pn),u=h.useContext(Vo).reducedMotion,f=h.useRef(null);o=o||c.renderer,!f.current&&o&&(f.current=o(t,{visualState:e,parent:a,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:u}));const d=f.current,p=h.useContext(Ta);d&&!d.projection&&r&&(d.type==="html"||d.type==="svg")&&rh(f.current,n,r,p);const g=h.useRef(!1);h.useInsertionEffect(()=>{d&&g.current&&d.update(n,l)});const m=n[Pa],v=h.useRef(!!m&&!(!((i=window.MotionHandoffIsComplete)===null||i===void 0)&&i.call(window,m))&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,m)));return ya(()=>{d&&(g.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),_o.render(d.render),v.current&&d.animationState&&d.animationState.animateChanges())}),h.useEffect(()=>{d&&(!v.current&&d.animationState&&d.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var y;(y=window.MotionHandoffMarkAsComplete)===null||y===void 0||y.call(window,m)}),v.current=!1))}),d}function rh(t,e,n,o){const{layoutId:r,layout:i,drag:s,dragConstraints:a,layoutScroll:c,layoutRoot:l}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Aa(t.parent)),t.projection.setOptions({layoutId:r,layout:i,alwaysMeasureLayout:!!s||a&&jt(a),visualElement:t,animationType:typeof i=="string"?i:"both",initialPromotionConfig:o,layoutScroll:c,layoutRoot:l})}function Aa(t){if(t)return t.options.allowProjection!==!1?t.projection:Aa(t.parent)}function ih({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:o,Component:r}){var i,s;t&&Gd(t);function a(l,u){let f;const d={...h.useContext(Vo),...l,layoutId:sh(l)},{isStatic:p}=d,g=Jd(l),m=o(l,p);if(!p&&Lo){ah();const v=ch(d);f=v.MeasureLayout,g.visualElement=oh(r,m,d,e,v.ProjectionNode)}return P.jsxs(mn.Provider,{value:g,children:[f&&g.visualElement?P.jsx(f,{visualElement:g.visualElement,...d}):null,n(r,l,eh(m,g.visualElement,u),m,p,g.visualElement)]})}a.displayName=`motion.${typeof r=="string"?r:`create(${(s=(i=r.displayName)!==null&&i!==void 0?i:r.name)!==null&&s!==void 0?s:""})`}`;const c=h.forwardRef(a);return c[th]=r,c}function sh({layoutId:t}){const e=h.useContext(Mo).id;return e&&t!==void 0?e+"-"+t:t}function ah(t,e){h.useContext(wa).strict}function ch(t){const{drag:e,layout:n}=qt;if(!e&&!n)return{};const o={...e,...n};return{MeasureLayout:e?.isEnabled(t)||n?.isEnabled(t)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}const lh=["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 jo(t){return typeof t!="string"||t.includes("-")?!1:!!(lh.indexOf(t)>-1||/[A-Z]/u.test(t))}function Kr(t){const e=[{},{}];return t?.values.forEach((n,o)=>{e[0][o]=n.get(),e[1][o]=n.getVelocity()}),e}function Bo(t,e,n,o){if(typeof e=="function"){const[r,i]=Kr(o);e=e(n!==void 0?n:t.custom,r,i)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[r,i]=Kr(o);e=e(n!==void 0?n:t.custom,r,i)}return e}const Jn=t=>Array.isArray(t),uh=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),fh=t=>Jn(t)?t[t.length-1]||0:t,G=t=>!!(t&&t.getVelocity);function $e(t){const e=G(t)?t.get():t;return uh(e)?e.toValue():e}function dh({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:n},o,r,i){const s={latestValues:hh(o,r,i,t),renderState:e()};return n&&(s.onMount=a=>n({props:o,current:a,...s}),s.onUpdate=a=>n(a)),s}const Sa=t=>(e,n)=>{const o=h.useContext(mn),r=h.useContext(pn),i=()=>dh(t,e,o,r);return n?i():Oo(i)};function hh(t,e,n,o){const r={},i=o(t,{});for(const d in i)r[d]=$e(i[d]);let{initial:s,animate:a}=t;const c=vn(t),l=Ca(t);e&&l&&!c&&t.inherit!==!1&&(s===void 0&&(s=e.initial),a===void 0&&(a=e.animate));let u=n?n.initial===!1:!1;u=u||s===!1;const f=u?a:s;if(f&&typeof f!="boolean"&&!gn(f)){const d=Array.isArray(f)?f:[f];for(let p=0;p<d.length;p++){const g=Bo(t,d[p]);if(g){const{transitionEnd:m,transition:v,...y}=g;for(const x in y){let w=y[x];if(Array.isArray(w)){const C=u?w.length-1:0;w=w[C]}w!==null&&(r[x]=w)}for(const x in m)r[x]=m[x]}}}return r}const ne=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Nt=new Set(ne),Ea=t=>e=>typeof e=="string"&&e.startsWith(t),Ra=Ea("--"),ph=Ea("var(--"),$o=t=>ph(t)?mh.test(t.split("/*")[0].trim()):!1,mh=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Da=(t,e)=>e&&typeof t=="number"?e.transform(t):t,wt=(t,e,n)=>n>e?e:n<t?t:n,oe={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},ye={...oe,transform:t=>wt(0,1,t)},ke={...oe,default:1},Pe=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Ct=Pe("deg"),ft=Pe("%"),E=Pe("px"),gh=Pe("vh"),vh=Pe("vw"),zr={...ft,parse:t=>ft.parse(t)/100,transform:t=>ft.transform(t*100)},yh={borderWidth:E,borderTopWidth:E,borderRightWidth:E,borderBottomWidth:E,borderLeftWidth:E,borderRadius:E,radius:E,borderTopLeftRadius:E,borderTopRightRadius:E,borderBottomRightRadius:E,borderBottomLeftRadius:E,width:E,maxWidth:E,height:E,maxHeight:E,top:E,right:E,bottom:E,left:E,padding:E,paddingTop:E,paddingRight:E,paddingBottom:E,paddingLeft:E,margin:E,marginTop:E,marginRight:E,marginBottom:E,marginLeft:E,backgroundPositionX:E,backgroundPositionY:E},xh={rotate:Ct,rotateX:Ct,rotateY:Ct,rotateZ:Ct,scale:ke,scaleX:ke,scaleY:ke,scaleZ:ke,skew:Ct,skewX:Ct,skewY:Ct,distance:E,translateX:E,translateY:E,translateZ:E,x:E,y:E,z:E,perspective:E,transformPerspective:E,opacity:ye,originX:zr,originY:zr,originZ:E},Gr={...oe,transform:Math.round},Wo={...yh,...xh,zIndex:Gr,size:E,fillOpacity:ye,strokeOpacity:ye,numOctaves:Gr},wh={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},bh=ne.length;function Ch(t,e,n){let o="",r=!0;for(let i=0;i<bh;i++){const s=ne[i],a=t[s];if(a===void 0)continue;let c=!0;if(typeof a=="number"?c=a===(s.startsWith("scale")?1:0):c=parseFloat(a)===0,!c||n){const l=Da(a,Wo[s]);if(!c){r=!1;const u=wh[s]||s;o+=`${u}(${l}) `}n&&(e[s]=l)}}return o=o.trim(),n?o=n(e,r?"":o):r&&(o="none"),o}function Uo(t,e,n){const{style:o,vars:r,transformOrigin:i}=t;let s=!1,a=!1;for(const c in e){const l=e[c];if(Nt.has(c)){s=!0;continue}else if(Ra(c)){r[c]=l;continue}else{const u=Da(l,Wo[c]);c.startsWith("origin")?(a=!0,i[c]=u):o[c]=u}}if(e.transform||(s||n?o.transform=Ch(e,t.transform,n):o.transform&&(o.transform="none")),a){const{originX:c="50%",originY:l="50%",originZ:u=0}=i;o.transformOrigin=`${c} ${l} ${u}`}}const Ph={offset:"stroke-dashoffset",array:"stroke-dasharray"},Th={offset:"strokeDashoffset",array:"strokeDasharray"};function Ah(t,e,n=1,o=0,r=!0){t.pathLength=1;const i=r?Ph:Th;t[i.offset]=E.transform(-o);const s=E.transform(e),a=E.transform(n);t[i.array]=`${s} ${a}`}function Yr(t,e,n){return typeof t=="string"?t:E.transform(e+n*t)}function Sh(t,e,n){const o=Yr(e,t.x,t.width),r=Yr(n,t.y,t.height);return`${o} ${r}`}function Ho(t,{attrX:e,attrY:n,attrScale:o,originX:r,originY:i,pathLength:s,pathSpacing:a=1,pathOffset:c=0,...l},u,f){if(Uo(t,l,f),u){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:d,style:p,dimensions:g}=t;d.transform&&(g&&(p.transform=d.transform),delete d.transform),g&&(r!==void 0||i!==void 0||p.transform)&&(p.transformOrigin=Sh(g,r!==void 0?r:.5,i!==void 0?i:.5)),e!==void 0&&(d.x=e),n!==void 0&&(d.y=n),o!==void 0&&(d.scale=o),s!==void 0&&Ah(d,s,a,c,!1)}const Ko=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),Ma=()=>({...Ko(),attrs:{}}),zo=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Oa(t,{style:e,vars:n},o,r){Object.assign(t.style,e,r&&r.getProjectionStyles(o));for(const i in n)t.style.setProperty(i,n[i])}const Va=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function La(t,e,n,o){Oa(t,e,void 0,o);for(const r in e.attrs)t.setAttribute(Va.has(r)?r:Fo(r),e.attrs[r])}const qe={};function Eh(t){Object.assign(qe,t)}function Ia(t,{layout:e,layoutId:n}){return Nt.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!qe[t]||t==="opacity")}function Go(t,e,n){var o;const{style:r}=t,i={};for(const s in r)(G(r[s])||e.style&&G(e.style[s])||Ia(s,t)||((o=n?.getValue(s))===null||o===void 0?void 0:o.liveStyle)!==void 0)&&(i[s]=r[s]);return i}function Na(t,e,n){const o=Go(t,e,n);for(const r in t)if(G(t[r])||G(e[r])){const i=ne.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;o[i]=t[r]}return o}function Rh(t,e){try{e.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{e.dimensions={x:0,y:0,width:0,height:0}}}const Xr=["x","y","width","height","cx","cy","r"],Dh={useVisualState:Sa({scrapeMotionValuesFromProps:Na,createRenderState:Ma,onUpdate:({props:t,prevProps:e,current:n,renderState:o,latestValues:r})=>{if(!n)return;let i=!!t.drag;if(!i){for(const a in r)if(Nt.has(a)){i=!0;break}}if(!i)return;let s=!e;if(e)for(let a=0;a<Xr.length;a++){const c=Xr[a];t[c]!==e[c]&&(s=!0)}s&&V.read(()=>{Rh(n,o),V.render(()=>{Ho(o,r,zo(n.tagName),t.transformTemplate),La(n,o)})})}})},Mh={useVisualState:Sa({scrapeMotionValuesFromProps:Go,createRenderState:Ko})};function ka(t,e,n){for(const o in e)!G(e[o])&&!Ia(o,n)&&(t[o]=e[o])}function Oh({transformTemplate:t},e){return h.useMemo(()=>{const n=Ko();return Uo(n,e,t),Object.assign({},n.vars,n.style)},[e])}function Vh(t,e){const n=t.style||{},o={};return ka(o,n,t),Object.assign(o,Oh(t,e)),o}function Lh(t,e){const n={},o=Vh(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=o,n}function Ih(t,e,n,o){const r=h.useMemo(()=>{const i=Ma();return Ho(i,e,zo(o),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){const i={};ka(i,t.style,t),r.style={...i,...r.style}}return r}function Nh(t=!1){return(n,o,r,{latestValues:i},s)=>{const c=(jo(n)?Ih:Lh)(o,i,s,n),l=qd(o,typeof n=="string",t),u=n!==h.Fragment?{...l,...c,ref:r}:{},{children:f}=o,d=h.useMemo(()=>G(f)?f.get():f,[f]);return h.createElement(n,{...u,children:d})}}function kh(t,e){return function(o,{forwardMotionProps:r}={forwardMotionProps:!1}){const s={...jo(o)?Dh:Mh,preloadedFeatures:t,useRender:Nh(r),createVisualElement:e,Component:o};return ih(s)}}function Fa(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let o=0;o<n;o++)if(e[o]!==t[o])return!1;return!0}function yn(t,e,n){const o=t.getProps();return Bo(o,e,n!==void 0?n:o.custom,t)}const Fh=Io(()=>window.ScrollTimeline!==void 0);class _h{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,n){for(let o=0;o<this.animations.length;o++)this.animations[o][e]=n}attachTimeline(e,n){const o=this.animations.map(r=>{if(Fh()&&r.attachTimeline)return r.attachTimeline(e);if(typeof n=="function")return n(r)});return()=>{o.forEach((r,i)=>{r&&r(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let n=0;n<this.animations.length;n++)e=Math.max(e,this.animations[n].duration);return e}runAll(e){this.animations.forEach(n=>n[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class jh extends _h{then(e,n){return Promise.all(this.animations).then(e).catch(n)}}function Yo(t,e){return t?t[e]||t.default||t:void 0}const to=2e4;function _a(t){let e=0;const n=50;let o=t.next(e);for(;!o.done&&e<to;)e+=n,o=t.next(e);return e>=to?1/0:e}function Xo(t){return typeof t=="function"}function qr(t,e){t.timeline=e,t.onfinish=null}const qo=t=>Array.isArray(t)&&typeof t[0]=="number",Bh={linearEasing:void 0};function $h(t,e){const n=Io(t);return()=>{var o;return(o=Bh[e])!==null&&o!==void 0?o:n()}}const Ze=$h(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ja=(t,e,n=10)=>{let o="";const r=Math.max(Math.round(e/n),2);for(let i=0;i<r;i++)o+=t(Xt(0,r-1,i))+", ";return`linear(${o.substring(0,o.length-2)})`};function Ba(t){return!!(typeof t=="function"&&Ze()||!t||typeof t=="string"&&(t in eo||Ze())||qo(t)||Array.isArray(t)&&t.every(Ba))}const se=([t,e,n,o])=>`cubic-bezier(${t}, ${e}, ${n}, ${o})`,eo={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:se([0,.65,.55,1]),circOut:se([.55,0,1,.45]),backIn:se([.31,.01,.66,-.59]),backOut:se([.33,1.53,.69,.99])};function $a(t,e){if(t)return typeof t=="function"&&Ze()?ja(t,e):qo(t)?se(t):Array.isArray(t)?t.map(n=>$a(n,e)||eo.easeOut):eo[t]}const ot={x:!1,y:!1};function Wa(){return ot.x||ot.y}function Wh(t,e,n){var o;if(t instanceof Element)return[t];if(typeof t=="string"){let r=document;const i=(o=void 0)!==null&&o!==void 0?o:r.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t)}function Ua(t,e){const n=Wh(t),o=new AbortController,r={passive:!0,...e,signal:o.signal};return[n,r,()=>o.abort()]}function Zr(t){return e=>{e.pointerType==="touch"||Wa()||t(e)}}function Uh(t,e,n={}){const[o,r,i]=Ua(t,n),s=Zr(a=>{const{target:c}=a,l=e(a);if(typeof l!="function"||!c)return;const u=Zr(f=>{l(f),c.removeEventListener("pointerleave",u)});c.addEventListener("pointerleave",u,r)});return o.forEach(a=>{a.addEventListener("pointerenter",s,r)}),i}const Ha=(t,e)=>e?t===e?!0:Ha(t,e.parentElement):!1,Zo=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,Hh=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Kh(t){return Hh.has(t.tagName)||t.tabIndex!==-1}const ae=new WeakSet;function Qr(t){return e=>{e.key==="Enter"&&t(e)}}function Ln(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const zh=(t,e)=>{const n=t.currentTarget;if(!n)return;const o=Qr(()=>{if(ae.has(n))return;Ln(n,"down");const r=Qr(()=>{Ln(n,"up")}),i=()=>Ln(n,"cancel");n.addEventListener("keyup",r,e),n.addEventListener("blur",i,e)});n.addEventListener("keydown",o,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",o),e)};function Jr(t){return Zo(t)&&!Wa()}function Gh(t,e,n={}){const[o,r,i]=Ua(t,n),s=a=>{const c=a.currentTarget;if(!Jr(a)||ae.has(c))return;ae.add(c);const l=e(a),u=(p,g)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",d),!(!Jr(p)||!ae.has(c))&&(ae.delete(c),typeof l=="function"&&l(p,{success:g}))},f=p=>{u(p,n.useGlobalTarget||Ha(c,p.target))},d=p=>{u(p,!1)};window.addEventListener("pointerup",f,r),window.addEventListener("pointercancel",d,r)};return o.forEach(a=>{!Kh(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0),(n.useGlobalTarget?window:a).addEventListener("pointerdown",s,r),a.addEventListener("focus",l=>zh(l,r),r)}),i}function Yh(t){return t==="x"||t==="y"?ot[t]?null:(ot[t]=!0,()=>{ot[t]=!1}):ot.x||ot.y?null:(ot.x=ot.y=!0,()=>{ot.x=ot.y=!1})}const Ka=new Set(["width","height","top","left","right","bottom",...ne]);let We;function Xh(){We=void 0}const dt={now:()=>(We===void 0&&dt.set(H.isProcessing||Hd.useManualTiming?H.timestamp:performance.now()),We),set:t=>{We=t,queueMicrotask(Xh)}};function Qo(t,e){t.indexOf(e)===-1&&t.push(e)}function Jo(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class tr{constructor(){this.subscriptions=[]}add(e){return Qo(this.subscriptions,e),()=>Jo(this.subscriptions,e)}notify(e,n,o){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,n,o);else for(let i=0;i<r;i++){const s=this.subscriptions[i];s&&s(e,n,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function za(t,e){return e?t*(1e3/e):0}const ti=30,qh=t=>!isNaN(parseFloat(t));class Zh{constructor(e,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(o,r=!0)=>{const i=dt.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),r&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=dt.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=qh(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new tr);const o=this.events[e].add(n);return e==="change"?()=>{o(),V.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,o){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-o}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=dt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>ti)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,ti);return za(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),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.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function xe(t,e){return new Zh(t,e)}function Qh(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,xe(n))}function Jh(t,e){const n=yn(t,e);let{transitionEnd:o={},transition:r={},...i}=n||{};i={...i,...o};for(const s in i){const a=fh(i[s]);Qh(t,s,a)}}function tp(t){return!!(G(t)&&t.add)}function no(t,e){const n=t.getValue("willChange");if(tp(n))return n.add(e)}function Ga(t){return t.props[Pa]}const Ya=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,ep=1e-7,np=12;function op(t,e,n,o,r){let i,s,a=0;do s=e+(n-e)/2,i=Ya(s,o,r)-t,i>0?n=s:e=s;while(Math.abs(i)>ep&&++a<np);return s}function Te(t,e,n,o){if(t===e&&n===o)return J;const r=i=>op(i,0,1,t,n);return i=>i===0||i===1?i:Ya(r(i),e,o)}const Xa=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,qa=t=>e=>1-t(1-e),Za=Te(.33,1.53,.69,.99),er=qa(Za),Qa=Xa(er),Ja=t=>(t*=2)<1?.5*er(t):.5*(2-Math.pow(2,-10*(t-1))),nr=t=>1-Math.sin(Math.acos(t)),tc=qa(nr),ec=Xa(nr),nc=t=>/^0[^.\s]+$/u.test(t);function rp(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||nc(t):!0}const ue=t=>Math.round(t*1e5)/1e5,or=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function ip(t){return t==null}const sp=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,rr=(t,e)=>n=>!!(typeof n=="string"&&sp.test(n)&&n.startsWith(t)||e&&!ip(n)&&Object.prototype.hasOwnProperty.call(n,e)),oc=(t,e,n)=>o=>{if(typeof o!="string")return o;const[r,i,s,a]=o.match(or);return{[t]:parseFloat(r),[e]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},ap=t=>wt(0,255,t),In={...oe,transform:t=>Math.round(ap(t))},Ot={test:rr("rgb","red"),parse:oc("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:o=1})=>"rgba("+In.transform(t)+", "+In.transform(e)+", "+In.transform(n)+", "+ue(ye.transform(o))+")"};function cp(t){let e="",n="",o="",r="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),o=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),o=t.substring(3,4),r=t.substring(4,5),e+=e,n+=n,o+=o,r+=r),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(o,16),alpha:r?parseInt(r,16)/255:1}}const oo={test:rr("#"),parse:cp,transform:Ot.transform},Bt={test:rr("hsl","hue"),parse:oc("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:o=1})=>"hsla("+Math.round(t)+", "+ft.transform(ue(e))+", "+ft.transform(ue(n))+", "+ue(ye.transform(o))+")"},K={test:t=>Ot.test(t)||oo.test(t)||Bt.test(t),parse:t=>Ot.test(t)?Ot.parse(t):Bt.test(t)?Bt.parse(t):oo.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?Ot.transform(t):Bt.transform(t)},lp=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function up(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(or))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(lp))===null||n===void 0?void 0:n.length)||0)>0}const rc="number",ic="color",fp="var",dp="var(",ei="${}",hp=/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 we(t){const e=t.toString(),n=[],o={color:[],number:[],var:[]},r=[];let i=0;const a=e.replace(hp,c=>(K.test(c)?(o.color.push(i),r.push(ic),n.push(K.parse(c))):c.startsWith(dp)?(o.var.push(i),r.push(fp),n.push(c)):(o.number.push(i),r.push(rc),n.push(parseFloat(c))),++i,ei)).split(ei);return{values:n,split:a,indexes:o,types:r}}function sc(t){return we(t).values}function ac(t){const{split:e,types:n}=we(t),o=e.length;return r=>{let i="";for(let s=0;s<o;s++)if(i+=e[s],r[s]!==void 0){const a=n[s];a===rc?i+=ue(r[s]):a===ic?i+=K.transform(r[s]):i+=r[s]}return i}}const pp=t=>typeof t=="number"?0:t;function mp(t){const e=sc(t);return ac(t)(e.map(pp))}const St={test:up,parse:sc,createTransformer:ac,getAnimatableNone:mp},gp=new Set(["brightness","contrast","saturate","opacity"]);function vp(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[o]=n.match(or)||[];if(!o)return t;const r=n.replace(o,"");let i=gp.has(e)?1:0;return o!==n&&(i*=100),e+"("+i+r+")"}const yp=/\b([a-z-]*)\(.*?\)/gu,ro={...St,getAnimatableNone:t=>{const e=t.match(yp);return e?e.map(vp).join(" "):t}},xp={...Wo,color:K,backgroundColor:K,outlineColor:K,fill:K,stroke:K,borderColor:K,borderTopColor:K,borderRightColor:K,borderBottomColor:K,borderLeftColor:K,filter:ro,WebkitFilter:ro},ir=t=>xp[t];function cc(t,e){let n=ir(t);return n!==ro&&(n=St),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const wp=new Set(["auto","none","0"]);function bp(t,e,n){let o=0,r;for(;o<t.length&&!r;){const i=t[o];typeof i=="string"&&!wp.has(i)&&we(i).values.length&&(r=t[o]),o++}if(r&&n)for(const i of e)t[i]=cc(n,r)}const ni=t=>t===oe||t===E,oi=(t,e)=>parseFloat(t.split(", ")[e]),ri=(t,e)=>(n,{transform:o})=>{if(o==="none"||!o)return 0;const r=o.match(/^matrix3d\((.+)\)$/u);if(r)return oi(r[1],e);{const i=o.match(/^matrix\((.+)\)$/u);return i?oi(i[1],t):0}},Cp=new Set(["x","y","z"]),Pp=ne.filter(t=>!Cp.has(t));function Tp(t){const e=[];return Pp.forEach(n=>{const o=t.getValue(n);o!==void 0&&(e.push([n,o.get()]),o.set(n.startsWith("scale")?1:0))}),e}const Zt={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),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:ri(4,13),y:ri(5,14)};Zt.translateX=Zt.x;Zt.translateY=Zt.y;const Vt=new Set;let io=!1,so=!1;function lc(){if(so){const t=Array.from(Vt).filter(o=>o.needsMeasurement),e=new Set(t.map(o=>o.element)),n=new Map;e.forEach(o=>{const r=Tp(o);r.length&&(n.set(o,r),o.render())}),t.forEach(o=>o.measureInitialState()),e.forEach(o=>{o.render();const r=n.get(o);r&&r.forEach(([i,s])=>{var a;(a=o.getValue(i))===null||a===void 0||a.set(s)})}),t.forEach(o=>o.measureEndState()),t.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}so=!1,io=!1,Vt.forEach(t=>t.complete()),Vt.clear()}function uc(){Vt.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(so=!0)})}function Ap(){uc(),lc()}class sr{constructor(e,n,o,r,i,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=o,this.motionValue=r,this.element=i,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Vt.add(this),io||(io=!0,V.read(uc),V.resolveKeyframes(lc))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:o,motionValue:r}=this;for(let i=0;i<e.length;i++)if(e[i]===null)if(i===0){const s=r?.get(),a=e[e.length-1];if(s!==void 0)e[0]=s;else if(o&&n){const c=o.readValue(n,a);c!=null&&(e[0]=c)}e[0]===void 0&&(e[0]=a),r&&s===void 0&&r.set(e[0])}else e[i]=e[i-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Vt.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Vt.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const fc=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),Sp=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ep(t){const e=Sp.exec(t);if(!e)return[,];const[,n,o,r]=e;return[`--${n??o}`,r]}function dc(t,e,n=1){const[o,r]=Ep(t);if(!o)return;const i=window.getComputedStyle(e).getPropertyValue(o);if(i){const s=i.trim();return fc(s)?parseFloat(s):s}return $o(r)?dc(r,e,n+1):r}const hc=t=>e=>e.test(t),Rp={test:t=>t==="auto",parse:t=>t},pc=[oe,E,ft,Ct,vh,gh,Rp],ii=t=>pc.find(hc(t));class mc extends sr{constructor(e,n,o,r,i){super(e,n,o,r,i,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:o}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<e.length;c++){let l=e[c];if(typeof l=="string"&&(l=l.trim(),$o(l))){const u=dc(l,n.current);u!==void 0&&(e[c]=u),c===e.length-1&&(this.finalKeyframe=l)}}if(this.resolveNoneKeyframes(),!Ka.has(o)||e.length!==2)return;const[r,i]=e,s=ii(r),a=ii(i);if(s!==a)if(ni(s)&&ni(a))for(let c=0;c<e.length;c++){const l=e[c];typeof l=="string"&&(e[c]=parseFloat(l))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,o=[];for(let r=0;r<e.length;r++)rp(e[r])&&o.push(r);o.length&&bp(e,o,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:o}=this;if(!e||!e.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Zt[o](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const r=n[n.length-1];r!==void 0&&e.getValue(o,r).jump(r,!1)}measureEndState(){var e;const{element:n,name:o,unresolvedKeyframes:r}=this;if(!n||!n.current)return;const i=n.getValue(o);i&&i.jump(this.measuredOrigin,!1);const s=r.length-1,a=r[s];r[s]=Zt[o](n.measureViewportBox(),window.getComputedStyle(n.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),!((e=this.removedTransforms)===null||e===void 0)&&e.length&&this.removedTransforms.forEac
vendor: 9,287 bytes, line 61
61h(([c,l])=>{n.getValue(c).set(l)}),this.resolveNoneKeyframes()}}const si=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(St.test(t)||t==="0")&&!t.startsWith("url("));function Dp(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function Mp(t,e,n,o){const r=t[0];if(r===null)return!1;if(e==="display"||e==="visibility")return!0;const i=t[t.length-1],s=si(r,e),a=si(i,e);return!s||!a?!1:Dp(t)||(n==="spring"||Xo(n))&&o}const Op=t=>t!==null;function xn(t,{repeat:e,repeatType:n="loop"},o){const r=t.filter(Op),i=e&&n!=="loop"&&e%2===1?0:r.length-1;return!i||o===void 0?r[i]:o}const Vp=40;class gc{constructor({autoplay:e=!0,delay:n=0,type:o="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:s="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=dt.now(),this.options={autoplay:e,delay:n,type:o,repeat:r,repeatDelay:i,repeatType:s,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>Vp?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Ap(),this._resolved}onKeyframesResolved(e,n){this.resolvedAt=dt.now(),this.hasAttemptedResolve=!0;const{name:o,type:r,velocity:i,delay:s,onComplete:a,onUpdate:c,isGenerator:l}=this.options;if(!l&&!Mp(e,o,r,i))if(s)this.options.duration=0;else{c&&c(xn(e,this.options,n)),a&&a(),this.resolveFinishedPromise();return}const u=this.initPlayback(e,n);u!==!1&&(this._resolved={keyframes:e,finalKeyframe:n,...u},this.onPostResolved())}onPostResolved(){}then(e,n){return this.currentFinishedPromise.then(e,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}const I=(t,e,n)=>t+(e-t)*n;function Nn(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Lp({hue:t,saturation:e,lightness:n,alpha:o}){t/=360,e/=100,n/=100;let r=0,i=0,s=0;if(!e)r=i=s=n;else{const a=n<.5?n*(1+e):n+e-n*e,c=2*n-a;r=Nn(c,a,t+1/3),i=Nn(c,a,t),s=Nn(c,a,t-1/3)}return{red:Math.round(r*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:o}}function Qe(t,e){return n=>n>0?e:t}const kn=(t,e,n)=>{const o=t*t,r=n*(e*e-o)+o;return r<0?0:Math.sqrt(r)},Ip=[oo,Ot,Bt],Np=t=>Ip.find(e=>e.test(t));function ai(t){const e=Np(t);if(!e)return!1;let n=e.parse(t);return e===Bt&&(n=Lp(n)),n}const ci=(t,e)=>{const n=ai(t),o=ai(e);if(!n||!o)return Qe(t,e);const r={...n};return i=>(r.red=kn(n.red,o.red,i),r.green=kn(n.green,o.green,i),r.blue=kn(n.blue,o.blue,i),r.alpha=I(n.alpha,o.alpha,i),Ot.transform(r))},kp=(t,e)=>n=>e(t(n)),Ae=(...t)=>t.reduce(kp),ao=new Set(["none","hidden"]);function Fp(t,e){return ao.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function _p(t,e){return n=>I(t,e,n)}function ar(t){return typeof t=="number"?_p:typeof t=="string"?$o(t)?Qe:K.test(t)?ci:$p:Array.isArray(t)?vc:typeof t=="object"?K.test(t)?ci:jp:Qe}function vc(t,e){const n=[...t],o=n.length,r=t.map((i,s)=>ar(i)(i,e[s]));return i=>{for(let s=0;s<o;s++)n[s]=r[s](i);return n}}function jp(t,e){const n={...t,...e},o={};for(const r in n)t[r]!==void 0&&e[r]!==void 0&&(o[r]=ar(t[r])(t[r],e[r]));return r=>{for(const i in o)n[i]=o[i](r);return n}}function Bp(t,e){var n;const o=[],r={color:0,var:0,number:0};for(let i=0;i<e.values.length;i++){const s=e.types[i],a=t.indexes[s][r[s]],c=(n=t.values[a])!==null&&n!==void 0?n:0;o[i]=c,r[s]++}return o}const $p=(t,e)=>{const n=St.createTransformer(e),o=we(t),r=we(e);return o.indexes.var.length===r.indexes.var.length&&o.indexes.color.length===r.indexes.color.length&&o.indexes.number.length>=r.indexes.number.length?ao.has(t)&&!r.values.length||ao.has(e)&&!o.values.length?Fp(t,e):Ae(vc(Bp(o,r),r.values),n):Qe(t,e)};function yc(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?I(t,e,n):ar(t)(t,e)}const Wp=5;function xc(t,e,n){const o=Math.max(e-Wp,0);return za(n-t(o),e-o)}const k={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Fn=.001;function Up({duration:t=k.duration,bounce:e=k.bounce,velocity:n=k.velocity,mass:o=k.mass}){let r,i,s=1-e;s=wt(k.minDamping,k.maxDamping,s),t=wt(k.minDuration,k.maxDuration,gt(t)),s<1?(r=l=>{const u=l*s,f=u*t,d=u-n,p=co(l,s),g=Math.exp(-f);return Fn-d/p*g},i=l=>{const f=l*s*t,d=f*n+n,p=Math.pow(s,2)*Math.pow(l,2)*t,g=Math.exp(-f),m=co(Math.pow(l,2),s);return(-r(l)+Fn>0?-1:1)*((d-p)*g)/m}):(r=l=>{const u=Math.exp(-l*t),f=(l-n)*t+1;return-Fn+u*f},i=l=>{const u=Math.exp(-l*t),f=(n-l)*(t*t);return u*f});const a=5/t,c=Kp(r,i,a);if(t=mt(t),isNaN(c))return{stiffness:k.stiffness,damping:k.damping,duration:t};{const l=Math.pow(c,2)*o;return{stiffness:l,damping:s*2*Math.sqrt(o*l),duration:t}}}const Hp=12;function Kp(t,e,n){let o=n;for(let r=1;r<Hp;r++)o=o-t(o)/e(o);return o}function co(t,e){return t*Math.sqrt(1-e*e)}const zp=["duration","bounce"],Gp=["stiffness","damping","mass"];function li(t,e){return e.some(n=>t[n]!==void 0)}function Yp(t){let e={velocity:k.velocity,stiffness:k.stiffness,damping:k.damping,mass:k.mass,isResolvedFromDuration:!1,...t};if(!li(t,Gp)&&li(t,zp))if(t.visualDuration){const n=t.visualDuration,o=2*Math.PI/(n*1.2),r=o*o,i=2*wt(.05,1,1-(t.bounce||0))*Math.sqrt(r);e={...e,mass:k.mass,stiffness:r,damping:i}}else{const n=Up(t);e={...e,...n,mass:k.mass},e.isResolvedFromDuration=!0}return e}function wc(t=k.visualDuration,e=k.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:o,restDelta:r}=n;const i=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:c,damping:l,mass:u,duration:f,velocity:d,isResolvedFromDuration:p}=Yp({...n,velocity:-gt(n.velocity||0)}),g=d||0,m=l/(2*Math.sqrt(c*u)),v=s-i,y=gt(Math.sqrt(c/u)),x=Math.abs(v)<5;o||(o=x?k.restSpeed.granular:k.restSpeed.default),r||(r=x?k.restDelta.granular:k.restDelta.default);let w;if(m<1){const b=co(y,m);w=A=>{const T=Math.exp(-m*y*A);return s-T*((g+m*y*v)/b*Math.sin(b*A)+v*Math.cos(b*A))}}else if(m===1)w=b=>s-Math.exp(-y*b)*(v+(g+y*v)*b);else{const b=y*Math.sqrt(m*m-1);w=A=>{const T=Math.exp(-m*y*A),S=Math.min(b*A,300);return s-T*((g+m*y*v)*Math.sinh(S)+b*v*Math.cosh(S))/b}}const C={calculatedDuration:p&&f||null,next:b=>{const A=w(b);if(p)a.done=b>=f;else{let T=0;m<1&&(T=b===0?mt(g):xc(w,b,A));const S=Math.abs(T)<=o,D=Math.abs(s-A)<=r;a.done=S&&D}return a.value=a.done?s:A,a},toString:()=>{const b=Math.min(_a(C),to),A=ja(T=>C.next(b*T).value,b,30);return b+"ms "+A}};return C}function ui({keyframes:t,velocity:e=0,power:n=.8,timeConstant:o=325,bounceDamping:r=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:c,restDelta:l=.5,restSpeed:u}){const f=t[0],d={done:!1,value:f},p=S=>a!==void 0&&S<a||c!==void 0&&S>c,g=S=>a===void 0?c:c===void 0||Math.abs(a-S)<Math.abs(c-S)?a:c;let m=n*e;const v=f+m,y=s===void 0?v:s(v);y!==v&&(m=y-f);const x=S=>-m*Math.exp(-S/o),w=S=>y+x(S),C=S=>{const D=x(S),M=w(S);d.done=Math.abs(D)<=l,d.value=d.done?y:M};let b,A;const T=S=>{p(d.value)&&(b=S,A=wc({keyframes:[d.value,g(d.value)],velocity:xc(w,S,d.value),damping:r,stiffness:i,restDelta:l,restSpeed:u}))};return T(0),{calculatedDuration:null,next:S=>{let D=!1;return!A&&b===void 0&&(D=!0,C(S),T(S)),b!==void 0&&S>=b?A.next(S-b):(!D&&C(S),d)}}}const Xp=Te(.42,0,1,1),qp=Te(0,0,.58,1),bc=Te(.42,0,.58,1),Zp=t=>Array.isArray(t)&&typeof t[0]!="number",fi={linear:J,easeIn:Xp,easeInOut:bc,easeOut:qp,circIn:nr,circInOut:ec,circOut:tc,backIn:er,backInOut:Qa,backOut:Za,anticipate:Ja},di=t=>{if(qo(t)){Qn(t.length===4);const[e,n,o,r]=t;return Te(e,n,o,r)}else if(typeof t=="string")return Qn(fi[t]!==void 0),fi[t];return t};function Qp(t,e,n){const o=[],r=n||yc,i=t.length-1;for(let s=0;s<i;s++){let a=r(t[s],t[s+1]);if(e){const c=Array.isArray(e)?e[s]||J:e;a=Ae(c,a)}o.push(a)}return o}function Jp(t,e,{clamp:n=!0,ease:o,mixer:r}={}){const i=t.length;if(Qn(i===e.length),i===1)return()=>e[0];if(i===2&&e[0]===e[1])return()=>e[1];const s=t[0]===t[1];t[0]>t[i-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=Qp(e,o,r),c=a.length,l=u=>{if(s&&u<t[0])return e[0];let f=0;if(c>1)for(;f<t.length-2&&!(u<t[f+1]);f++);const d=Xt(t[f],t[f+1],u);return a[f](d)};return n?u=>l(wt(t[0],t[i-1],u)):l}function tm(t,e){const n=t[t.length-1];for(let o=1;o<=e;o++){const r=Xt(0,e,o);t.push(I(n,1,r))}}function em(t){const e=[0];return tm(e,t.length-1),e}function nm(t,e){return t.map(n=>n*e)}function om(t,e){return t.map(()=>e||bc).splice(0,t.length-1)}function Je({duration:t=300,keyframes:e,times:n,ease:o="easeInOut"}){const r=Zp(o)?o.map(di):di(o),i={done:!1,value:e[0]},s=nm(n&&n.length===e.length?n:em(e),t),a=Jp(s,e,{ease:Array.isArray(r)?r:om(e,r)});return{calculatedDuration:t,next:c=>(i.value=a(c),i.done=c>=t,i)}}const rm=t=>{const e=({timestamp:n})=>t(n);return{start:()=>V.update(e,!0),stop:()=>At(e),now:()=>H.isProcessing?H.timestamp:dt.now()}},im={decay:ui,inertia:ui,tween:Je,keyframes:Je,spring:wc},sm=t=>t/100;class cr extends gc{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>
vendor: 4,501 bytes, line 61
61{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:c}=this.options;c&&c()};const{name:n,motionValue:o,element:r,keyframes:i}=this.options,s=r?.KeyframeResolver||sr,a=(c,l)=>this.onKeyframesResolved(c,l);this.resolver=new s(i,a,n,o,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:n="keyframes",repeat:o=0,repeatDelay:r=0,repeatType:i,velocity:s=0}=this.options,a=Xo(n)?n:im[n]||Je;let c,l;a!==Je&&typeof e[0]!="number"&&(c=Ae(sm,yc(e[0],e[1])),e=[0,100]);const u=a({...this.options,keyframes:e});i==="mirror"&&(l=a({...this.options,keyframes:[...e].reverse(),velocity:-s})),u.calculatedDuration===null&&(u.calculatedDuration=_a(u));const{calculatedDuration:f}=u,d=f+r,p=d*(o+1)-r;return{generator:u,mirroredGenerator:l,mapPercentToKeyframes:c,calculatedDuration:f,resolvedDuration:d,totalDuration:p}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,n=!1){const{resolved:o}=this;if(!o){const{keyframes:S}=this.options;return{done:!0,value:S[S.length-1]}}const{finalKeyframe:r,generator:i,mirroredGenerator:s,mapPercentToKeyframes:a,keyframes:c,calculatedDuration:l,totalDuration:u,resolvedDuration:f}=o;if(this.startTime===null)return i.next(0);const{delay:d,repeat:p,repeatType:g,repeatDelay:m,onUpdate:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-u/this.speed,this.startTime)),n?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const y=this.currentTime-d*(this.speed>=0?1:-1),x=this.speed>=0?y<0:y>u;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let w=this.currentTime,C=i;if(p){const S=Math.min(this.currentTime,u)/f;let D=Math.floor(S),M=S%1;!M&&S>=1&&(M=1),M===1&&D--,D=Math.min(D,p+1),!!(D%2)&&(g==="reverse"?(M=1-M,m&&(M-=m/f)):g==="mirror"&&(C=s)),w=wt(0,1,M)*f}const b=x?{done:!1,value:c[0]}:C.next(w);a&&(b.value=a(b.value));let{done:A}=b;!x&&l!==null&&(A=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const T=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&A);return T&&r!==void 0&&(b.value=xn(c,this.options,r)),v&&v(b.value),T&&this.finish(),b}get duration(){const{resolved:e}=this;return e?gt(e.calculatedDuration):0}get time(){return gt(this.currentTime)}set time(e){e=mt(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=gt(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=rm,onPlay:n,startTime:o}=this.options;this.driver||(this.driver=e(i=>this.tick(i))),n&&n();const r=this.driver.now();this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=r):this.startTime=o??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const am=new Set(["opacity","clipPath","filter","transform"]);function cm(t,e,n,{delay:o=0,duration:r=300,repeat:i=0,repeatType:s="loop",ease:a="easeInOut",times:c}={}){const l={[e]:n};c&&(l.offset=c);const u=$a(a,r);return Array.isArray(u)&&(l.easing=u),t.animate(l,{delay:o,duration:r,easing:Array.isArray(u)?"linear":u,f
vendor: 6,316 bytes, line 61
61ill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"})}const lm=Io(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),tn=10,um=2e4;function fm(t){return Xo(t.type)||t.type==="spring"||!Ba(t.ease)}function dm(t,e){const n=new cr({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let o={done:!1,value:t[0]};const r=[];let i=0;for(;!o.done&&i<um;)o=n.sample(i),r.push(o.value),i+=tn;return{times:void 0,keyframes:r,duration:i-tn,ease:"linear"}}const Cc={anticipate:Ja,backInOut:Qa,circInOut:ec};function hm(t){return t in Cc}class hi extends gc{constructor(e){super(e);const{name:n,motionValue:o,element:r,keyframes:i}=this.options;this.resolver=new mc(i,(s,a)=>this.onKeyframesResolved(s,a),n,o,r),this.resolver.scheduleResolve()}initPlayback(e,n){let{duration:o=300,times:r,ease:i,type:s,motionValue:a,name:c,startTime:l}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof i=="string"&&Ze()&&hm(i)&&(i=Cc[i]),fm(this.options)){const{onComplete:f,onUpdate:d,motionValue:p,element:g,...m}=this.options,v=dm(e,m);e=v.keyframes,e.length===1&&(e[1]=e[0]),o=v.duration,r=v.times,i=v.ease,s="keyframes"}const u=cm(a.owner.current,c,e,{...this.options,duration:o,times:r,ease:i});return u.startTime=l??this.calcStartTime(),this.pendingTimeline?(qr(u,this.pendingTimeline),this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:f}=this.options;a.set(xn(e,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:o,times:r,type:s,ease:i,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:n}=e;return gt(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return gt(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:o}=n;o.currentTime=mt(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:n}=e;return n.playbackRate}set speed(e){const{resolved:n}=this;if(!n)return;const{animation:o}=n;o.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:n}=e;return n.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:n}=e;return n.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:n}=this;if(!n)return J;const{animation:o}=n;qr(o,e)}return J}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:n,keyframes:o,duration:r,type:i,ease:s,times:a}=e;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:l,onUpdate:u,onComplete:f,element:d,...p}=this.options,g=new cr({...p,keyframes:o,duration:r,type:i,ease:s,times:a,isGenerator:!0}),m=mt(this.time);l.setWithVelocity(g.sample(m-tn).value,g.sample(m).value,tn)}const{onStop:c}=this.options;c&&c(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:n,name:o,repeatDelay:r,repeatType:i,damping:s,type:a}=e;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:l}=n.owner.getProps();return lm()&&o&&am.has(o)&&!c&&!l&&!r&&i!=="mirror"&&s!==0&&a!=="inertia"}}const pm={type:"spring",stiffness:500,damping:25,restSpeed:10},mm=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),gm={type:"keyframes",duration:.8},vm={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ym=(t,{keyframes:e})=>e.length>2?gm:Nt.has(t)?t.startsWith("scale")?mm(e[1]):pm:vm;function xm({when:t,delay:e,delayChildren:n,staggerChildren:o,staggerDirection:r,repeat:i,repeatType:s,repeatDelay:a,from:c,elapsed:l,...u}){return!!Object.keys(u).length}const lr=(t,e,n,o={},r,i)=>s=>{const a=Yo(o,t)||{},c=a.delay||o.delay||0;let{elapsed:l=0}=o;l=l-mt(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-l,onUpdate:d=>{e.set(d),a.onUpdate&&a.onUpdate(d)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:i?void 0:r};xm(a)||(u={...u,...ym(t,u)}),u.duration&&(u.duration=mt(u.duration)),u.repeatDelay&&(u.repeatDelay=mt(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let f=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(u.duration=0,u.delay===0&&(f=!0)),f&&!i&&e.get()!==void 0){const d=xn(u.keyframes,a);if(d!==void 0)return V.update(()=>{u.onUpdate(d),u.onComplete()}),new jh([])}return!i&&hi.supports(u)?new hi(u):new cr(u)};function wm({protectedKeys:t,needsAnimating:e},n){const o=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,o}function Pc(t,e,{delay:n=0,transitionOverride:o,type:r}={}){var i;let{transition:s=t.getDefaultTransition(),transitionEnd:a,...c}=e;o&&(s=o);const l=[],u=r&&t.animationState&&t.animationState.getState()[r];for(const f in c){const d=t.getValue(f,(i=t.latestValues[f])!==null&&i!==void 0?i:null),p=c[f];if(p===void 0||u&&wm(u,f))continue;const g={delay:n,...Yo(s||{},f)};let m=!1;if(window.MotionHandoffAnimation){const y=Ga(t);if(y){const x=window.MotionHandoffAnimation(y,f,V);x!==null&&(g.startTime=x,m=!0)}}no(t,f),d.start(lr(f,d,p,t.shouldReduceMotion&&Ka.has(f)?{type:!1}:g,t,m));const v=d.animation;v&&l.push(v)}return a&&Promise.all(l).then(()=>{V.update(()=>{a&&Jh(t,a)})}),l}function lo(t,e,n={}){var o;const r=yn(t,e,n.type==="exit"?(o=t.presenceContext)===null||o===void 0?void 0:o.custom:void 0);let{transition:i=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const s=r?()=>Promise.all(Pc(t,r,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:f,staggerDirection:d}=i;return bm(t,e,u+l,f,d,n)}:()=>Promise.resolve(),{when:c}=i;if(c){const[l,u]=c==="beforeChildren"?[s,a]:[a,s];return l().then(()=>u())}else return Promise.all([s(),a(n.delay)])}function bm(t,e,n=0,o=0,r=1,i){const s=[],a=(t.variantChildren.size-1)*o,c=r===1?(l=0)=>l*o:(l=0)=>a-l*o;return Array.from(t.variantChildren).sort(Cm).forEach((l,u)=>
vendor: 45,337 bytes, line 61
61{l.notify("AnimationStart",e),s.push(lo(l,e,{...i,delay:n+c(u)}).then(()=>l.notify("AnimationComplete",e)))}),Promise.all(s)}function Cm(t,e){return t.sortNodePosition(e)}function Pm(t,e,n={}){t.notify("AnimationStart",e);let o;if(Array.isArray(e)){const r=e.map(i=>lo(t,i,n));o=Promise.all(r)}else if(typeof e=="string")o=lo(t,e,n);else{const r=typeof e=="function"?yn(t,e,n.custom):e;o=Promise.all(Pc(t,r,n))}return o.then(()=>{t.notify("AnimationComplete",e)})}const Tm=ko.length;function Tc(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?Tc(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<Tm;n++){const o=ko[n],r=t.props[o];(ve(r)||r===!1)&&(e[o]=r)}return e}const Am=[...No].reverse(),Sm=No.length;function Em(t){return e=>Promise.all(e.map(({animation:n,options:o})=>Pm(t,n,o)))}function Rm(t){let e=Em(t),n=pi(),o=!0;const r=c=>(l,u)=>{var f;const d=yn(t,u,c==="exit"?(f=t.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(d){const{transition:p,transitionEnd:g,...m}=d;l={...l,...m,...g}}return l};function i(c){e=c(t)}function s(c){const{props:l}=t,u=Tc(t.parent)||{},f=[],d=new Set;let p={},g=1/0;for(let v=0;v<Sm;v++){const y=Am[v],x=n[y],w=l[y]!==void 0?l[y]:u[y],C=ve(w),b=y===c?x.isActive:null;b===!1&&(g=v);let A=w===u[y]&&w!==l[y]&&C;if(A&&o&&t.manuallyAnimateOnMount&&(A=!1),x.protectedKeys={...p},!x.isActive&&b===null||!w&&!x.prevProp||gn(w)||typeof w=="boolean")continue;const T=Dm(x.prevProp,w);let S=T||y===c&&x.isActive&&!A&&C||v>g&&C,D=!1;const M=Array.isArray(w)?w:[w];let N=M.reduce(r(y),{});b===!1&&(N={});const{prevResolvedValues:U={}}=x,F={...U,...N},L=O=>{S=!0,d.has(O)&&(D=!0,d.delete(O)),x.needsAnimating[O]=!0;const R=t.getValue(O);R&&(R.liveStyle=!1)};for(const O in F){const R=N[O],B=U[O];if(p.hasOwnProperty(O))continue;let q=!1;Jn(R)&&Jn(B)?q=!Fa(R,B):q=R!==B,q?R!=null?L(O):d.add(O):R!==void 0&&d.has(O)?L(O):x.protectedKeys[O]=!0}x.prevProp=w,x.prevResolvedValues=N,x.isActive&&(p={...p,...N}),o&&t.blockInitialAnimation&&(S=!1),S&&(!(A&&T)||D)&&f.push(...M.map(O=>({animation:O,options:{type:y}})))}if(d.size){const v={};d.forEach(y=>{const x=t.getBaseTarget(y),w=t.getValue(y);w&&(w.liveStyle=!0),v[y]=x??null}),f.push({animation:v})}let m=!!f.length;return o&&(l.initial===!1||l.initial===l.animate)&&!t.manuallyAnimateOnMount&&(m=!1),o=!1,m?e(f):Promise.resolve()}function a(c,l){var u;if(n[c].isActive===l)return Promise.resolve();(u=t.variantChildren)===null||u===void 0||u.forEach(d=>{var p;return(p=d.animationState)===null||p===void 0?void 0:p.setActive(c,l)}),n[c].isActive=l;const f=s(c);for(const d in n)n[d].protectedKeys={};return f}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=pi(),o=!0}}}function Dm(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Fa(e,t):!1}function Rt(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function pi(){return{animate:Rt(!0),whileInView:Rt(),whileHover:Rt(),whileTap:Rt(),whileDrag:Rt(),whileFocus:Rt(),exit:Rt()}}class Et{constructor(e){this.isMounted=!1,this.node=e}update(){}}class Mm extends Et{constructor(e){super(e),e.animationState||(e.animationState=Rm(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();gn(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)===null||e===void 0||e.call(this)}}let Om=0;class Vm extends Et{constructor(){super(...arguments),this.id=Om++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===o)return;const r=this.node.animationState.setActive("exit",!e);n&&!e&&r.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const Lm={animation:{Feature:Mm},exit:{Feature:Vm}};function be(t,e,n,o={passive:!0}){return t.addEventListener(e,n,o),()=>t.removeEventListener(e,n)}function Se(t){return{point:{x:t.pageX,y:t.pageY}}}const Im=t=>e=>Zo(e)&&t(e,Se(e));function fe(t,e,n,o){return be(t,e,Im(n),o)}const mi=(t,e)=>Math.abs(t-e);function Nm(t,e){const n=mi(t.x,e.x),o=mi(t.y,e.y);return Math.sqrt(n**2+o**2)}class Ac{constructor(e,n,{transformPagePoint:o,contextWindow:r,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=jn(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,p=Nm(f.offset,{x:0,y:0})>=3;if(!d&&!p)return;const{point:g}=f,{timestamp:m}=H;this.history.push({...g,timestamp:m});const{onStart:v,onMove:y}=this.handlers;d||(v&&v(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,f)},this.handlePointerMove=(f,d)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=_n(d,this.transformPagePoint),V.update(this.updatePoint,!0)},this.handlePointerUp=(f,d)=>{this.end();const{onEnd:p,onSessionEnd:g,resumeAnimation:m}=this.handlers;if(this.dragSnapToOrigin&&m&&m(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=jn(f.type==="pointercancel"?this.lastMoveEventInfo:_n(d,this.transformPagePoint),this.history);this.startEvent&&p&&p(f,v),g&&g(f,v)},!Zo(e))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=o,this.contextWindow=r||window;const s=Se(e),a=_n(s,this.transformPagePoint),{point:c}=a,{timestamp:l}=H;this.history=[{...c,timestamp:l}];const{onSessionStart:u}=n;u&&u(e,jn(a,this.history)),this.removeListeners=Ae(fe(this.contextWindow,"pointermove",this.handlePointerMove),fe(this.contextWindow,"pointerup",this.handlePointerUp),fe(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),At(this.updatePoint)}}function _n(t,e){return e?{point:e(t.point)}:t}function gi(t,e){return{x:t.x-e.x,y:t.y-e.y}}function jn({point:t},e){return{point:t,delta:gi(t,Sc(e)),offset:gi(t,km(e)),velocity:Fm(e,.1)}}function km(t){return t[0]}function Sc(t){return t[t.length-1]}function Fm(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,o=null;const r=Sc(t);for(;n>=0&&(o=t[n],!(r.timestamp-o.timestamp>mt(e)));)n--;if(!o)return{x:0,y:0};const i=gt(r.timestamp-o.timestamp);if(i===0)return{x:0,y:0};const s={x:(r.x-o.x)/i,y:(r.y-o.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}const Ec=1e-4,_m=1-Ec,jm=1+Ec,Rc=.01,Bm=0-Rc,$m=0+Rc;function tt(t){return t.max-t.min}function Wm(t,e,n){return Math.abs(t-e)<=n}function vi(t,e,n,o=.5){t.origin=o,t.originPoint=I(e.min,e.max,t.origin),t.scale=tt(n)/tt(e),t.translate=I(n.min,n.max,t.origin)-t.originPoint,(t.scale>=_m&&t.scale<=jm||isNaN(t.scale))&&(t.scale=1),(t.translate>=Bm&&t.translate<=$m||isNaN(t.translate))&&(t.translate=0)}function de(t,e,n,o){vi(t.x,e.x,n.x,o?o.originX:void 0),vi(t.y,e.y,n.y,o?o.originY:void 0)}function yi(t,e,n){t.min=n.min+e.min,t.max=t.min+tt(e)}function Um(t,e,n){yi(t.x,e.x,n.x),yi(t.y,e.y,n.y)}function xi(t,e,n){t.min=e.min-n.min,t.max=t.min+tt(e)}function he(t,e,n){xi(t.x,e.x,n.x),xi(t.y,e.y,n.y)}function Hm(t,{min:e,max:n},o){return e!==void 0&&t<e?t=o?I(e,t,o.min):Math.max(t,e):n!==void 0&&t>n&&(t=o?I(n,t,o.max):Math.min(t,n)),t}function wi(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function Km(t,{top:e,left:n,bottom:o,right:r}){return{x:wi(t.x,n,r),y:wi(t.y,e,o)}}function bi(t,e){let n=e.min-t.min,o=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,o]=[o,n]),{min:n,max:o}}function zm(t,e){return{x:bi(t.x,e.x),y:bi(t.y,e.y)}}function Gm(t,e){let n=.5;const o=tt(t),r=tt(e);return r>o?n=Xt(e.min,e.max-o,t.min):o>r&&(n=Xt(t.min,t.max-r,e.min)),wt(0,1,n)}function Ym(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const uo=.35;function Xm(t=uo){return t===!1?t=0:t===!0&&(t=uo),{x:Ci(t,"left","right"),y:Ci(t,"top","bottom")}}function Ci(t,e,n){return{min:Pi(t,e),max:Pi(t,n)}}function Pi(t,e){return typeof t=="number"?t:t[e]||0}const Ti=()=>({translate:0,scale:1,origin:0,originPoint:0}),$t=()=>({x:Ti(),y:Ti()}),Ai=()=>({min:0,max:0}),_=()=>({x:Ai(),y:Ai()});function nt(t){return[t("x"),t("y")]}function Dc({top:t,left:e,right:n,bottom:o}){return{x:{min:e,max:n},y:{min:t,max:o}}}function qm({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Zm(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),o=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:o.y,right:o.x}}function Bn(t){return t===void 0||t===1}function fo({scale:t,scaleX:e,scaleY:n}){return!Bn(t)||!Bn(e)||!Bn(n)}function Dt(t){return fo(t)||Mc(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Mc(t){return Si(t.x)||Si(t.y)}function Si(t){return t&&t!=="0%"}function en(t,e,n){const o=t-n,r=e*o;return n+r}function Ei(t,e,n,o,r){return r!==void 0&&(t=en(t,r,o)),en(t,n,o)+e}function ho(t,e=0,n=1,o,r){t.min=Ei(t.min,e,n,o,r),t.max=Ei(t.max,e,n,o,r)}function Oc(t,{x:e,y:n}){ho(t.x,e.translate,e.scale,e.originPoint),ho(t.y,n.translate,n.scale,n.originPoint)}const Ri=.999999999999,Di=1.0000000000001;function Qm(t,e,n,o=!1){const r=n.length;if(!r)return;e.x=e.y=1;let i,s;for(let a=0;a<r;a++){i=n[a],s=i.projectionDelta;const{visualElement:c}=i.options;c&&c.props.style&&c.props.style.display==="contents"||(o&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Ut(t,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,Oc(t,s)),o&&Dt(i.latestValues)&&Ut(t,i.latestValues))}e.x<Di&&e.x>Ri&&(e.x=1),e.y<Di&&e.y>Ri&&(e.y=1)}function Wt(t,e){t.min=t.min+e,t.max=t.max+e}function Mi(t,e,n,o,r=.5){const i=I(t.min,t.max,r);ho(t,e,n,i,o)}function Ut(t,e){Mi(t.x,e.x,e.scaleX,e.scale,e.originX),Mi(t.y,e.y,e.scaleY,e.scale,e.originY)}function Vc(t,e){return Dc(Zm(t.getBoundingClientRect(),e))}function Jm(t,e,n){const o=Vc(t,n),{scroll:r}=e;return r&&(Wt(o.x,r.offset.x),Wt(o.y,r.offset.y)),o}const Lc=({current:t})=>t?t.ownerDocument.defaultView:null,tg=new WeakMap;class eg{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=_(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const r=u=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Se(u).point)},i=(u,f)=>{const{drag:d,dragPropagation:p,onDragStart:g}=this.getProps();if(d&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Yh(d),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),nt(v=>{let y=this.getAxisMotionValue(v).get()||0;if(ft.test(y)){const{projection:x}=this.visualElement;if(x&&x.layout){const w=x.layout.layoutBox[v];w&&(y=tt(w)*(parseFloat(y)/100))}}this.originPoint[v]=y}),g&&V.postRender(()=>g(u,f)),no(this.visualElement,"transform");const{animationState:m}=this.visualElement;m&&m.setActive("whileDrag",!0)},s=(u,f)=>{const{dragPropagation:d,dragDirectionLock:p,onDirectionLock:g,onDrag:m}=this.getProps();if(!d&&!this.openDragLock)return;const{offset:v}=f;if(p&&this.currentDirection===null){this.currentDirection=ng(v),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",f.point,v),this.updateAxis("y",f.point,v),this.visualElement.render(),m&&m(u,f)},a=(u,f)=>this.stop(u,f),c=()=>nt(u=>{var f;return this.getAnimationState(u)==="paused"&&((f=this.getAxisMotionValue(u).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new Ac(e,{onSessionStart:r,onStart:i,onMove:s,onSessionEnd:a,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:Lc(this.visualElement)})}stop(e,n){const o=this.isDragging;if(this.cancel(),!o)return;const{velocity:r}=n;this.startAnimation(r);const{onDragEnd:i}=this.getProps();i&&V.postRender(()=>i(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,o){const{drag:r}=this.getProps();if(!o||!Fe(e,r,this.currentDirection))return;const i=this.getAxisMotionValue(e);let s=this.originPoint[e]+o[e];this.constraints&&this.constraints[e]&&(s=Hm(s,this.constraints[e],this.elastic[e])),i.set(s)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:o}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,i=this.constraints;n&&jt(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&r?this.constraints=Km(r.layoutBox,n):this.constraints=!1,this.elastic=Xm(o),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&nt(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=Ym(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!jt(e))return!1;const o=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const i=Jm(o,r.root,this.visualElement.getTransformPagePoint());let s=zm(r.layout.layoutBox,i);if(n){const a=n(qm(s));this.hasMutatedConstraints=!!a,a&&(s=Dc(a))}return s}startAnimation(e){const{drag:n,dragMomentum:o,dragElastic:r,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),c=this.constraints||{},l=nt(u=>{if(!Fe(u,n,this.currentDirection))return;let f=c&&c[u]||{};s&&(f={min:0,max:0});const d=r?200:1e6,p=r?40:1e7,g={type:"inertia",velocity:o?e[u]:0,bounceStiffness:d,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...i,...f};return this.startAxisValueAnimation(u,g)});return Promise.all(l).then(a)}startAxisValueAnimation(e,n){const o=this.getAxisMotionValue(e);return no(this.visualElement,e),o.start(lr(e,o,0,n,this.visualElement,!1))}stopAnimation(){nt(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){nt(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,o=this.visualElement.getProps(),r=o[n];return r||this.visualElement.getValue(e,(o.initial?o.initial[e]:void 0)||0)}snapToCursor(e){nt(n=>{const{drag:o}=this.getProps();if(!Fe(n,o,this.currentDirection))return;const{projection:r}=this.visualElement,i=this.getAxisMotionValue(n);if(r&&r.layout){const{min:s,max:a}=r.layout.layoutBox[n];i.set(e[n]-I(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:o}=this.visualElement;if(!jt(n)||!o||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};nt(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const c=a.get();r[s]=Gm({min:c,max:c},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.resolveConstraints(),nt(s=>{if(!Fe(s,e,null))return;const a=this.getAxisMotionValue(s),{min:c,max:l}=this.constraints[s];a.set(I(c,l,r[s]))})}addListeners(){if(!this.visualElement.current)return;tg.set(this.visualElement,this);const e=this.visualElement.current,n=fe(e,"pointerdown",c=>{const{drag:l,dragListener:u=!0}=this.getProps();l&&u&&this.start(c)}),o=()=>{const{dragConstraints:c}=this.getProps();jt(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,i=r.addEventListener("measure",o);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),V.read(o);const s=be(window,"resize",()=>this.scalePositionWithinConstraints()),a=r.addEventListener("didUpdate",({delta:c,hasLayoutChanged:l})=>{this.isDragging&&l&&(nt(u=>{const f=this.getAxisMotionValue(u);f&&(this.originPoint[u]+=c[u].translate,f.set(f.get()+c[u].translate))}),this.visualElement.render())});return()=>{s(),n(),i(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:o=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:s=uo,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:o,dragPropagation:r,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function Fe(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function ng(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class og extends Et{constructor(e){super(e),this.removeGroupControls=J,this.removeListeners=J,this.controls=new eg(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||J}unmount(){this.removeGroupControls(),this.removeListeners()}}const Oi=t=>(e,n)=>{t&&V.postRender(()=>t(e,n))};class rg extends Et{constructor(){super(...arguments),this.removePointerDownListener=J}onPointerDown(e){this.session=new Ac(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Lc(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:o,onPanEnd:r}=this.node.getProps();return{onSessionStart:Oi(e),onStart:Oi(n),onMove:o,onEnd:(i,s)=>{delete this.session,r&&V.postRender(()=>r(i,s))}}}mount(){this.removePointerDownListener=fe(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Ue={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Vi(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const ie={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(E.test(t))t=parseFloat(t);else return t;const n=Vi(t,e.target.x),o=Vi(t,e.target.y);return`${n}% ${o}%`}},ig={correct:(t,{treeScale:e,projectionDelta:n})=>{const o=t,r=St.parse(t);if(r.length>5)return o;const i=St.createTransformer(t),s=typeof r[0]!="number"?1:0,a=n.x.scale*e.x,c=n.y.scale*e.y;r[0+s]/=a,r[1+s]/=c;const l=I(a,c,.5);return typeof r[2+s]=="number"&&(r[2+s]/=l),typeof r[3+s]=="number"&&(r[3+s]/=l),i(r)}};class sg extends h.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:o,layoutId:r}=this.props,{projection:i}=e;Eh(ag),i&&(n.group&&n.group.add(i),o&&o.register&&r&&o.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Ue.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:o,drag:r,isPresent:i}=this.props,s=o.projection;return s&&(s.isPresent=i,r||e.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?s.promote():s.relegate()||V.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),_o.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:o}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(r),o&&o.deregister&&o.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Ic(t){const[e,n]=va(),o=h.useContext(Mo);return P.jsx(sg,{...t,layoutGroup:o,switchLayoutGroup:h.useContext(Ta),isPresent:e,safeToRemove:n})}const ag={borderRadius:{...ie,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ie,borderTopRightRadius:ie,borderBottomLeftRadius:ie,borderBottomRightRadius:ie,boxShadow:ig};function cg(t,e,n){const o=G(t)?t:xe(t);return o.start(lr("",o,e,n)),o.animation}function lg(t){return t instanceof SVGElement&&t.tagName!=="svg"}const ug=(t,e)=>t.depth-e.depth;class fg{constructor(){this.children=[],this.isDirty=!1}add(e){Qo(this.children,e),this.isDirty=!0}remove(e){Jo(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(ug),this.isDirty=!1,this.children.forEach(e)}}function dg(t,e){const n=dt.now(),o=({timestamp:r})=>{const i=r-n;i>=e&&(At(o),t(i-e))};return V.read(o,!0),()=>At(o)}const Nc=["TopLeft","TopRight","BottomLeft","BottomRight"],hg=Nc.length,Li=t=>typeof t=="string"?parseFloat(t):t,Ii=t=>typeof t=="number"||E.test(t);function pg(t,e,n,o,r,i){r?(t.opacity=I(0,n.opacity!==void 0?n.opacity:1,mg(o)),t.opacityExit=I(e.opacity!==void 0?e.opacity:1,0,gg(o))):i&&(t.opacity=I(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,o));for(let s=0;s<hg;s++){const a=`border${Nc[s]}Radius`;let c=Ni(e,a),l=Ni(n,a);if(c===void 0&&l===void 0)continue;c||(c=0),l||(l=0),c===0||l===0||Ii(c)===Ii(l)?(t[a]=Math.max(I(Li(c),Li(l),o),0),(ft.test(l)||ft.test(c))&&(t[a]+="%")):t[a]=l}(e.rotate||n.rotate)&&(t.rotate=I(e.rotate||0,n.rotate||0,o))}function Ni(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const mg=kc(0,.5,tc),gg=kc(.5,.95,J);function kc(t,e,n){return o=>o<t?0:o>e?1:n(Xt(t,e,o))}function ki(t,e){t.min=e.min,t.max=e.max}function et(t,e){ki(t.x,e.x),ki(t.y,e.y)}function Fi(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function _i(t,e,n,o,r){return t-=e,t=en(t,1/n,o),r!==void 0&&(t=en(t,1/r,o)),t}function vg(t,e=0,n=1,o=.5,r,i=t,s=t){if(ft.test(e)&&(e=parseFloat(e),e=I(s.min,s.max,e/100)-s.min),typeof e!="number")return;let a=I(i.min,i.max,o);t===i&&(a-=e),t.min=_i(t.min,e,n,a,r),t.max=_i(t.max,e,n,a,r)}function ji(t,e,[n,o,r],i,s){vg(t,e[n],e[o],e[r],e.scale,i,s)}const yg=["x","scaleX","originX"],xg=["y","scaleY","originY"];function Bi(t,e,n,o){ji(t.x,e,yg,n?n.x:void 0,o?o.x:void 0),ji(t.y,e,xg,n?n.y:void 0,o?o.y:void 0)}function $i(t){return t.translate===0&&t.scale===1}function Fc(t){return $i(t.x)&&$i(t.y)}function Wi(t,e){return t.min===e.min&&t.max===e.max}function wg(t,e){return Wi(t.x,e.x)&&Wi(t.y,e.y)}function Ui(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function _c(t,e){return Ui(t.x,e.x)&&Ui(t.y,e.y)}function Hi(t){return tt(t.x)/tt(t.y)}function Ki(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class bg{constructor(){this.members=[]}add(e){Qo(this.members,e),e.scheduleRender()}remove(e){if(Jo(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(r=>e===r);if(n===0)return!1;let o;for(let r=n;r>=0;r--){const i=this.members[r];if(i.isPresent!==!1){o=i;break}}return o?(this.promote(o),!0):!1}promote(e,n){const o=this.lead;if(e!==o&&(this.prevLead=o,this.lead=e,e.show(),o)){o.instance&&o.scheduleRender(),e.scheduleRender(),e.resumeFrom=o,n&&(e.resumeFrom.preserveOpacity=!0),o.snapshot&&(e.snapshot=o.snapshot,e.snapshot.latestValues=o.animationValues||o.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:r}=e.options;r===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:o}=e;n.onExitComplete&&n.onExitComplete(),o&&o.options.onExitComplete&&o.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Cg(t,e,n){let o="";const r=t.x.translate/e.x,i=t.y.translate/e.y,s=n?.z||0;if((r||i||s)&&(o=`translate3d(${r}px, ${i}px, ${s}px) `),(e.x!==1||e.y!==1)&&(o+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:l,rotate:u,rotateX:f,rotateY:d,skewX:p,skewY:g}=n;l&&(o=`perspective(${l}px) ${o}`),u&&(o+=`rotate(${u}deg) `),f&&(o+=`rotateX(${f}deg) `),d&&(o+=`rotateY(${d}deg) `),p&&(o+=`skewX(${p}deg) `),g&&(o+=`skewY(${g}deg) `)}const a=t.x.scale*e.x,c=t.y.scale*e.y;return(a!==1||c!==1)&&(o+=`scale(${a}, ${c})`),o||"none"}const Mt={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},ce=typeof window<"u"&&window.MotionDebug!==void 0,$n=["","X","Y","Z"],Pg={visibility:"hidden"},zi=1e3;let Tg=0;function Wn(t,e,n,o){const{latestValues:r}=e;r[t]&&(n[t]=r[t],e.setStaticValue(t,0),o&&(o[t]=0))}function jc(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=Ga(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:r,layoutId:i}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",V,!(r||i))}const{parent:o}=t;o&&!o.hasCheckedOptimisedAppear&&jc(o)}function Bc({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:o,resetTransform:r}){return class{constructor(s={},a=e?.()){this.id=Tg++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,ce&&(Mt.totalNodes=Mt.resolvedTargetDeltas=Mt.recalculatedProjection=0),this.nodes.forEach(Eg),this.nodes.forEach(Vg),this.nodes.forEach(Lg),this.nodes.forEach(Rg),ce&&window.MotionDebug.record(Mt)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new fg)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new tr),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){const c=this.eventHandlers.get(s);c&&c.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=lg(s),this.instance=s;const{layoutId:c,layout:l,visualElement:u}=this.options;if(u&&!u.current&&u.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(l||c)&&(this.isLayoutDirty=!0),t){let f;const d=()=>this.root.updateBlockedByResize=!1;t(s,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=dg(d,250),Ue.hasAnimatedSinceResize&&(Ue.hasAnimatedSinceResize=!1,this.nodes.forEach(Yi))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&u&&(c||l)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:d,hasRelativeTargetChanged:p,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||u.getDefaultTransition()||_g,{onLayoutAnimationStart:v,onLayoutAnimationComplete:y}=u.getProps(),x=!this.targetLayout||!_c(this.targetLayout,g)||p,w=!d&&p;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||w||d&&(x||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,w);const C={...Yo(m,"layout"),onPlay:v,onComplete:y};(u.shouldReduceMotion||this.options.layoutRoot)&&(C.delay=0,C.type=!1),this.startAnimation(C)}else d||Yi(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,At(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(Ig),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&jc(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const f=this.path[u];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:a,layout:c}=this.options;if(a===void 0&&!c)return;const l=this.getTransformTemplate();this.prevTransformTemplateValue=l?l(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Gi);return}this.isUpdating||this.nodes.forEach(Mg),this.isUpdating=!1,this.nodes.forEach(Og),this.nodes.forEach(Ag),this.nodes.forEach(Sg),this.clearAllSnapshots();const a=dt.now();H.delta=wt(0,1e3/60,a-H.timestamp),H.timestamp=a,H.isProcessing=!0,Vn.update.process(H),Vn.preRender.process(H),Vn.render.process(H),H.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,_o.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Dg),this.sharedNodes.forEach(Ng)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,V.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){V.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=_(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a){const c=o(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!r)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Fc(this.projectionDelta),c=this.getTransformTemplate(),l=c?c(this.latestValues,""):void 0,u=l!==this.prevTransformTemplateValue;s&&(a||Dt(this.latestValues)||u)&&(r(this.instance,l),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let c=this.removeElementScroll(a);return s&&(c=this.removeTransform(c)),jg(c),{animationId:this.root.animationId,measuredBox:a,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var s;const{visualElement:a}=this.options;if(!a)return _();const c=a.measureViewportBox();if(!(((s=this.scroll)===null||s===void 0?void 0:s.wasRoot)||this.path.some(Bg))){const{scroll:u}=this.root;u&&(Wt(c.x,u.offset.x),Wt(c.y,u.offset.y))}return c}removeElementScroll(s){var a;const c=_();if(et(c,s),!((a=this.scroll)===null||a===void 0)&&a.wasRoot)return c;for(let l=0;l<this.path.length;l++){const u=this.path[l],{scroll:f,options:d}=u;u!==this.root&&f&&d.layoutScroll&&(f.wasRoot&&et(c,s),Wt(c.x,f.offset.x),Wt(c.y,f.offset.y))}return c}applyTransform(s,a=!1){const c=_();et(c,s);for(let l=0;l<this.path.length;l++){const u=this.path[l];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&Ut(c,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),Dt(u.latestValues)&&Ut(c,u.latestValues)}return Dt(this.latestValues)&&Ut(c,this.latestValues),c}removeTransform(s){const a=_();et(a,s);for(let c=0;c<this.path.length;c++){const l=this.path[c];if(!l.instance||!Dt(l.latestValues))continue;fo(l.latestValues)&&l.updateSnapshot();const u=_(),f=l.measurePageBox();et(u,f),Bi(a,l.latestValues,l.snapshot?l.snapshot.layoutBox:void 0,u)}return Dt(this.latestValues)&&Bi(a,this.latestValues),a}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==H.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var a;const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==c;if(!(s||l&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:f,layoutId:d}=this.options;if(!(!this.layout||!(f||d))){if(this.resolvedRelativeTargetAt=H.timestamp,!this.targetDelta&&!this.relativeTarget){const p=this.getClosestProjectingParent();p&&p.layout&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=_(),this.relativeTargetOrigin=_(),he(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),et(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=_(),this.targetWithTransforms=_()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Um(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):et(this.target,this.layout.layoutBox),Oc(this.target,this.targetDelta)):et(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const p=this.getClosestProjectingParent();p&&!!p.resumingFrom==!!this.resumingFrom&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=_(),this.relativeTargetOrigin=_(),he(this.relativeTargetOrigin,this.target,p.target),et(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}ce&&Mt.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||fo(this.parent.latestValues)||Mc(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var s;const a=this.getLead(),c=!!this.resumingFrom||this!==a;let l=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(l=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===H.timestamp&&(l=!1),l)return;const{layout:u,layoutId:f}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||f))return;et(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,p=this.treeScale.y;Qm(this.layoutCorrected,this.treeScale,this.path,c),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=_());const{target:g}=a;if(!g){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Fi(this.prevProjectionDelta.x,this.projectionDelta.x),Fi(this.prevProjectionDelta.y,this.projectionDelta.y)),de(this.projectionDelta,this.layoutCorrected,g,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==p||!Ki(this.projectionDelta.x,this.prevProjectionDelta.x)||!Ki(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",g)),ce&&Mt.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var a;if((a=this.options.visualElement)===null||a===void 0||a.scheduleRender(),s){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=$t(),this.projectionDelta=$t(),this.projectionDeltaWithTransform=$t()}setAnimationOrigin(s,a=!1){const c=this.snapshot,l=c?c.latestValues:{},u={...this.latestValues},f=$t();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const d=_(),p=c?c.source:void 0,g=this.layout?this.layout.source:void 0,m=p!==g,v=this.getStack(),y=!v||v.members.length<=1,x=!!(m&&!y&&this.options.crossfade===!0&&!this.path.some(Fg));this.animationProgress=0;let w;this.mixTargetDelta=C=>{const b=C/1e3;Xi(f.x,s.x,b),Xi(f.y,s.y,b),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(he(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),kg(this.relativeTarget,this.relativeTargetOrigin,d,b),w&&wg(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=_()),et(w,this.relativeTarget)),m&&(this.animationValues=u,pg(u,l,this.latestValues,b,x,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=b},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(At(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=V.update(()=>{Ue.hasAnimatedSinceResize=!0,this.currentAnimation=cg(0,zi,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(zi),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:c,layout:l,latestValues:u}=s;if(!(!a||!c||!l)){if(this!==s&&this.layout&&l&&$c(this.options.animationType,this.layout.layoutBox,l.layoutBox)){c=this.target||_();const f=tt(this.layout.layoutBox.x);c.x.min=s.target.x.min,c.x.max=c.x.min+f;const d=tt(this.layout.layoutBox.y);c.y.min=s.target.y.min,c.y.max=c.y.min+d}et(a,c),Ut(a,u),de(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new bg),this.sharedNodes.get(s).add(a);const l=a.options.initialPromotionConfig;a.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:c}={}){const l=this.getStack();l&&l.promote(this,c),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:c}=s;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(a=!0),!a)return;const l={};c.z&&Wn("z",s,l,this.animationValues);for(let u=0;u<$n.length;u++)Wn(`rotate${$n[u]}`,s,l,this.animationValues),Wn(`skew${$n[u]}`,s,l,this.animationValues);s.render();for(const u in l)s.setStaticValue(u,l[u]),this.animationValues&&(this.animationValues[u]=l[u]);s.scheduleRender()}getProjectionStyles(s){var a,c;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Pg;const l={visibility:""},u=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,l.opacity="",l.pointerEvents=$e(s?.pointerEvents)||"",l.transform=u?u(this.latestValues,""):"none",l;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const m={};return this.options.layoutId&&(m.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,m.pointerEvents=$e(s?.pointerEvents)||""),this.hasProjected&&!Dt(this.latestValues)&&(m.transform=u?u({},""):"none",this.hasProjected=!1),m}const d=f.animationValues||f.latestValues;this.applyTransformsToTarget(),l.transform=Cg(this.projectionDeltaWithTransform,this.treeScale,d),u&&(l.transform=u(d,l.transform));const{x:p,y:g}=this.projectionDelta;l.transformOrigin=`${p.origin*100}% ${g.origin*100}% 0`,f.animationValues?l.opacity=f===this?(c=(a=d.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&c!==void 0?c:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:l.opacity=f===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const m in qe){if(d[m]===void 0)continue;const{correct:v,applyTo:y}=qe[m],x=l.transform==="none"?d[m]:v(d[m],f);if(y){const w=y.length;for(let C=0;C<w;C++)l[y[C]]=x}else l[m]=x}return this.options.layoutId&&(l.pointerEvents=f===this?$e(s?.pointerEvents)||"":"none"),l}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(Gi),this.root.sharedNodes.clear()}}}function Ag(t){t.updateLayout()}function Sg(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:o,measuredBox:r}=t.layout,{animationType:i}=t.options,s=n.source!==t.layout.source;i==="size"?nt(f=>{const d=s?n.measuredBox[f]:n.layoutBox[f],p=tt(d);d.min=o[f].min,d.max=d.min+p}):$c(i,n.layoutBox,o)&&nt(f=>{const d=s?n.measuredBox[f]:n.layoutBox[f],p=tt(o[f]);d.max=d.min+p,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[f].max=t.relativeTarget[f].min+p)});const a=$t();de(a,o,n.layoutBox);const c=$t();s?de(c,t.applyTransform(r,!0),n.measuredBox):de(c,o,n.layoutBox);const l=!Fc(a);let u=!1;if(!t.resumeFrom){const f=t.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:p}=f;if(d&&p){const g=_();he(g,n.layoutBox,d.layoutBox);const m=_();he(m,o,p.layoutBox),_c(g,m)||(u=!0),f.options.layoutRoot&&(t.relativeTarget=m,t.relativeTargetOrigin=g,t.relativeParent=f)}}}t.notifyListeners("didUpdate",{layout:o,snapshot:n,delta:c,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(t.isLead()){const{onExitComplete:o}=t.options;o&&o()}t.options.transition=void 0}function Eg(t){ce&&Mt.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
vendor: 7,235 bytes, line 61
61isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Rg(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Dg(t){t.clearSnapshot()}function Gi(t){t.clearMeasurements()}function Mg(t){t.isLayoutDirty=!1}function Og(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Yi(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Vg(t){t.resolveTargetDelta()}function Lg(t){t.calcProjection()}function Ig(t){t.resetSkewAndRotation()}function Ng(t){t.removeLeadSnapshot()}function Xi(t,e,n){t.translate=I(e.translate,0,n),t.scale=I(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function qi(t,e,n,o){t.min=I(e.min,n.min,o),t.max=I(e.max,n.max,o)}function kg(t,e,n,o){qi(t.x,e.x,n.x,o),qi(t.y,e.y,n.y,o)}function Fg(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const _g={duration:.45,ease:[.4,0,.1,1]},Zi=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Qi=Zi("applewebkit/")&&!Zi("chrome/")?Math.round:J;function Ji(t){t.min=Qi(t.min),t.max=Qi(t.max)}function jg(t){Ji(t.x),Ji(t.y)}function $c(t,e,n){return t==="position"||t==="preserve-aspect"&&!Wm(Hi(e),Hi(n),.2)}function Bg(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}const $g=Bc({attachResizeListener:(t,e)=>be(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Un={current:void 0},Wc=Bc({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Un.current){const t=new $g({});t.mount(window),t.setOptions({layoutScroll:!0}),Un.current=t}return Un.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Wg={pan:{Feature:rg},drag:{Feature:og,ProjectionNode:Wc,MeasureLayout:Ic}};function ts(t,e,n){const{props:o}=t;t.animationState&&o.whileHover&&t.animationState.setActive("whileHover",n==="Start");const r="onHover"+n,i=o[r];i&&V.postRender(()=>i(e,Se(e)))}class Ug extends Et{mount(){const{current:e}=this.node;e&&(this.unmount=Uh(e,n=>(ts(this.node,n,"Start"),o=>ts(this.node,o,"End"))))}unmount(){}}class Hg extends Et{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!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=Ae(be(this.node.current,"focus",()=>this.onFocus()),be(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function es(t,e,n){const{props:o}=t;t.animationState&&o.whileTap&&t.animationState.setActive("whileTap",n==="Start");const r="onTap"+(n==="End"?"":n),i=o[r];i&&V.postRender(()=>i(e,Se(e)))}class Kg extends Et{mount(){const{current:e}=this.node;e&&(this.unmount=Gh(e,n=>(es(this.node,n,"Start"),(o,{success:r})=>es(this.node,o,r?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const po=new WeakMap,Hn=new WeakMap,zg=t=>{const e=po.get(t.target);e&&e(t)},Gg=t=>{t.forEach(zg)};function Yg({root:t,...e}){const n=t||document;Hn.has(n)||Hn.set(n,{});const o=Hn.get(n),r=JSON.stringify(e);return o[r]||(o[r]=new IntersectionObserver(Gg,{root:t,...e})),o[r]}function Xg(t,e,n){const o=Yg(e);return po.set(t,n),o.observe(t),()=>{po.delete(t),o.unobserve(t)}}const qg={some:0,all:1};class Zg extends Et{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:o,amount:r="some",once:i}=e,s={root:n?n.current:void 0,rootMargin:o,threshold:typeof r=="number"?r:qg[r]},a=c=>{const{isIntersecting:l}=c;if(this.isInView===l||(this.isInView=l,i&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:u,onViewportLeave:f}=this.node.getProps(),d=l?u:f;d&&d(c)};return Xg(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(Qg(e,n))&&this.startObserver()}unmount(){}}function Qg({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const Jg={inView:{Feature:Zg},tap:{Feature:Kg},focus:{Feature:Hg},hover:{Feature:Ug}},tv={layout:{ProjectionNode:Wc,MeasureLayout:Ic}},mo={current:null},Uc={current:!1};function ev(){if(Uc.current=!0,!!Lo)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>mo.current=t.matches;t.addListener(e),e()}else mo.current=!1}const nv=[...pc,K,St],ov=t=>nv.find(hc(t)),ns=new WeakMap;function rv(t,e,n){for(const o in e){const r=e[o],i=n[o];if(G(r))t.addValue(o,r);else if(G(i))t.addValue(o,xe(r,{owner:t}));else if(i!==r)if(t.hasValue(o)){const s=t.getValue(o);s.liveStyle===!0?s.jump(r):s.hasAnimated||s.set(r)}else{const s=t.getStaticValue(o);t.addValue(o,xe(s!==void 0?s:r,{owner:t}))}}for(const o in n)e[o]===void 0&&t.removeValue(o);return e}const os=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class iv{scrapeMotionValuesFromProps(e,n,o){return{}}constructor({parent:e,props:n,presenceContext:o,reducedMotionConfig:r,blockInitialAnimation:i,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=sr,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const p=dt.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,V.render(this.render,!1,!0))};const{latestValues:c,renderState:l,onUpdate:u}=s;this.onUpdate=u,this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=n,this.presenceContext=o,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=vn(n),this.isVariantNode=Ca(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:f,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const p in d){const g=d[p];c[p]!==void 0&&G(g)&&g.set(c[p],!1)}}mount(e){this.current=e,ns.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
vendor: 6,792 bytes, line 61
61h((n,o)=>this.bindToMotionValue(o,n)),Uc.current||ev(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:mo.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){ns.delete(this.current),this.projection&&this.projection.unmount(),At(this.notifyUpdate),At(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const o=Nt.has(e),r=n.on("change",a=>{this.latestValues[e]=a,this.props.onUpdate&&V.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{r(),i(),s&&s(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in qt){const n=qt[e];if(!n)continue;const{isEnabled:o,Feature:r}=n;if(!this.features[e]&&r&&o(this.props)&&(this.features[e]=new r(this)),this.features[e]){const i=this.features[e];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):_()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let o=0;o<os.length;o++){const r=os[o];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);const i="on"+r,s=e[i];s&&(this.propEventSubscriptions[r]=this.on(r,s))}this.prevMotionValues=rv(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]: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(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const o=this.values.get(e);n!==o&&(o&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let o=this.values.get(e);return o===void 0&&n!==void 0&&(o=xe(n===null?void 0:n,{owner:this}),this.addValue(e,o)),o}readValue(e,n){var o;let r=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(o=this.getBaseTargetFromProps(this.props,e))!==null&&o!==void 0?o:this.readValueFromInstance(this.current,e,this.options);return r!=null&&(typeof r=="string"&&(fc(r)||nc(r))?r=parseFloat(r):!ov(r)&&St.test(n)&&(r=cc(e,n)),this.setBaseTarget(e,G(r)?r.get():r)),G(r)?r.get():r}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:o}=this.props;let r;if(typeof o=="string"||typeof o=="object"){const s=Bo(this.props,o,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(r=s[e])}if(o&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!G(i)?i:this.initialValues[e]!==void 0&&r===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new tr),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class Hc extends iv{constructor(){super(...arguments),this.KeyframeResolver=mc}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:o}){delete n[e],delete o[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;G(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function sv(t){return window.getComputedStyle(t)}class av extends Hc{constructor(){super(...arguments),this.type="html",this.renderInstance=Oa}readValueFromInstance(e,n){if(Nt.has(n)){const o=ir(n);return o&&o.default||0}else{const o=sv(e),r=(Ra(n)?o.getPropertyValue(n):o[n])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:n}){return Vc(e,n)}build(e,n,o){Uo(e,n,o.transformTemplate)}scrapeMotionValuesFromProps(e,n,o){return Go(e,n,o)}}class cv extends Hc{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=_}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Nt.has(n)){const o=ir(n);return o&&o.default||0}return n=Va.has(n)?n:Fo(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,o){return Na(e,n,o)}build(e,n,o){Ho(e,n,this.isSVGTag,o.transformTemplate)}renderInstance(e,n,o,r){La(e,n,o,r)}mount(e){this.isSVGTag=zo(e.tagName),super.mount(e)}}const lv=(t,e)=>jo(t)?new cv(e):new av(e,{allowProjection:t!==h.Fragment}),uv=kh({...Lm,...Jg,...Wg,...tv},lv),Jv=Zd(uv);var wn="Collapsible",[fv,Kc]=Qt(wn),[dv,ur]=fv(wn),zc=h.forwardRef((t,e)=>{const{__scopeCollapsible:n,open:o,defaultOpen:r,disabled:i,onOpenChange:s,...a}=t,[c,l]=sn({prop:o,defaultProp:r??!1,onChange:s,caller:wn});return P.jsx(dv,{scope:n,disabled:i,contentId:le(),open:c,onOpenToggle:h.useCallback(()=>l(u=>!u),[l]),children:P.jsx(W.div,{"data-state":dr(c),"data-disabled":i?"":void 0,...a,ref:e})})});zc.displayName=wn;var Gc="CollapsibleTrigger",Yc=h.forwardRef((t,e)=>{const{__scopeCollapsible:n,...o}=t,r=ur(Gc,n);return P.jsx(W.button,{type:"button","aria-controls":r.contentId,"aria-expanded":r.open||!1,"data-state":dr(r.open),"data-disabled":r.disabled?"":void 0,disabled:r.disabled,...o,ref:e,onClick:z(t.onClick,r.onOpenToggle)})});Yc.displayName=Gc;
vendor: 5,375 bytes, line 61
61var fr="CollapsibleContent",Xc=h.forwardRef((t,e)=>{const{forceMount:n,...o}=t,r=ur(fr,t.__scopeCollapsible);return P.jsx(Jt,{present:n||r.open,children:({present:i})=>P.jsx(hv,{...o,ref:e,present:i})})});Xc.displayName=fr;var hv=h.forwardRef((t,e)=>{const{__scopeCollapsible:n,present:o,children:r,...i}=t,s=ur(fr,n),[a,c]=h.useState(o),l=h.useRef(null),u=Y(e,l),f=h.useRef(0),d=f.current,p=h.useRef(0),g=p.current,m=s.open||a,v=h.useRef(m),y=h.useRef(void 0);return h.useEffect(()=>{const x=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(x)},[]),vt(()=>{const x=l.current;if(x){y.current=y.current||{transitionDuration:x.style.transitionDuration,animationName:x.style.animationName},x.style.transitionDuration="0s",x.style.animationName="none";const w=x.getBoundingClientRect();f.current=w.height,p.current=w.width,v.current||(x.style.transitionDuration=y.current.transitionDuration,x.style.animationName=y.current.animationName),c(o)}},[s.open,o]),P.jsx(W.div,{"data-state":dr(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!m,...i,ref:u,style:{"--radix-collapsible-content-height":d?`${d}px`:void 0,"--radix-collapsible-content-width":g?`${g}px`:void 0,...t.style},children:m&&r})});function dr(t){return t?"open":"closed"}var pv=zc,mv=Yc,gv=Xc,vv=h.createContext(void 0);function yv(t){const e=h.useContext(vv);return t||e||"ltr"}var at="Accordion",xv=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[hr,wv,bv]=Ml(at),[bn,ty]=Qt(at,[bv,Kc]),pr=Kc(),qc=$.forwardRef((t,e)=>{const{type:n,...o}=t,r=o,i=o;return P.jsx(hr.Provider,{scope:t.__scopeAccordion,children:n==="multiple"?P.jsx(Av,{...i,ref:e}):P.jsx(Tv,{...r,ref:e})})});qc.displayName=at;var[Zc,Cv]=bn(at),[Qc,Pv]=bn(at,{collapsible:!1}),Tv=$.forwardRef((t,e)=>{const{value:n,defaultValue:o,onValueChange:r=()=>{},collapsible:i=!1,...s}=t,[a,c]=sn({prop:n,defaultProp:o??"",onChange:r,caller:at});return P.jsx(Zc,{scope:t.__scopeAccordion,value:$.useMemo(()=>a?[a]:[],[a]),onItemOpen:c,onItemClose:$.useCallback(()=>i&&c(""),[i,c]),children:P.jsx(Qc,{scope:t.__scopeAccordion,collapsible:i,children:P.jsx(Jc,{...s,ref:e})})})}),Av=$.forwardRef((t,e)=>{const{value:n,defaultValue:o,onValueChange:r=()=>{},...i}=t,[s,a]=sn({prop:n,defaultProp:o??[],onChange:r,caller:at}),c=$.useCallback(u=>a((f=[])=>[...f,u]),[a]),l=$.useCallback(u=>a((f=[])=>f.filter(d=>d!==u)),[a]);return P.jsx(Zc,{scope:t.__scopeAccordion,value:s,onItemOpen:c,onItemClose:l,children:P.jsx(Qc,{scope:t.__scopeAccordion,collapsible:!0,children:P.jsx(Jc,{...i,ref:e})})})}),[Sv,Cn]=bn(at),Jc=$.forwardRef((t,e)=>{const{__scopeAccordion:n,disabled:o,dir:r,orientation:i="vertical",...s}=t,a=$.useRef(null),c=Y(a,e),l=wv(n),f=yv(r)==="ltr",d=z(t.onKeyDown,p=>{if(!xv.includes(p.key))return;const g=p.target,m=l().filter(S=>!S.ref.current?.disabled),v=m.findIndex(S=>S.ref.current===g),y=m.length;if(v===-1)return;p.preventDefault();let x=v;const w=0,C=y-1,b=()=>{x=v+1,x>C&&(x=w)},A=()=>{x=v-1,x<w&&(x=C)};switch(p.key){case"Home":x=w;break;case"End":x=C;break;case"ArrowRight":i==="horizontal"&&(f?b():A());break;case"ArrowDown":i==="vertical"&&b();break;case"ArrowLeft":i==="horizontal"&&(f?A():b());break;case"ArrowUp":i==="vertical"&&A();break}const T=x%y;m[T].ref.current?.focus()});return P.jsx(Sv,{scope:n,disabled:o,direction:r,orientation:i,children:P.jsx(hr.Slot,{scope:n,children:P.jsx(W.div,{...s,"data-orientation":i,ref:c,onKeyDown:o?void 0:d})})})}),nn="AccordionItem",[Ev,mr]=bn(nn),tl=$.forwardRef((t,e)=>{const{__scopeAccordion:n,value:o,...r}=t,i=Cn(nn,n),s=Cv(nn,n),a=pr(n),c=le(),l=o&&s.value.includes(o)||!1,u=i.disabled||t.disabled;return P.jsx(Ev,{scope:n,open:l,disabled:u,triggerId:c,children:P.jsx(pv,{"data-orientation":i.orientation,"data-state":sl(l),...a,...r,ref:e,disabled:u,open:l,onOpenChange:f=>{f?s.onItemOpen(o):s.onItemClose(o)}})})});tl.displayName=nn;var el="AccordionHeader",nl=$.forwardRef((t,e)=>{const{__scopeAccordion:n,...o}=t,r=Cn(at,n),i=mr(el,n);return P.jsx(W.h3,{"data-orientation":r.orientation,"data-state":sl(i.open),"data-disabled":i.disabled?"":void 0,...o,ref:e})});nl.displayName=el;var go="AccordionTrigger",ol=$.forwardRef((t,e)=>{const{__scopeAccordion:n,...o}=t,r=Cn(at,n),i=mr(go,n),s=Pv(go,n),a=pr(n);return P.jsx(hr.ItemSlot,{scope:n,children:P.jsx(mv,{"aria-disabled":i.open&&!s.collapsible||void 0,"data-orientation":r.orientation,id:i.triggerId,...a,...o,ref:e})})});ol.displayName=go;var rl="AccordionContent",il=$.forwardRef((t,e)=>{const{__scopeAccordion:n,...o}=t,r=Cn(at,n),i=mr(rl,n),s=pr(n);return P.jsx(gv,{role:"region","aria-labelledby":i.triggerId,"data-orientation":r.orientation,...s,...o,ref:e,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...t.style}})});il.displayName=rl;function sl(t){return t?"open":"closed"}var ey=qc,ny=tl,oy=nl,ry=ol,iy=il;export{Sl as $,qv as A,Ov as B,Fv as C,Yv as D,Vv as E,Ks as F,le as G,pe as H,ny as I,oy as J,ry as K,iy as L,ey as M,yv as N,Kv as O,W as P,_v as Q,Mv as R,Dv as S,Gv as T,ct as U,ps as V,ff as W,Bv as X,Uv as Y,$v as Z,jv as _,Hs as a,Gl as a0,Qt as b,Ml as c,sn as d,Jt as e,zt as f,z as g,hs as h,vt as i,P as j,Vl as k,kv as l,zv as m,Xv as n,Wv as o,Hv as p,Jv as q,Rs as r,yf as s,Md as t,Y as u,Js as v,Kf as w,rn as x,xf as y,wf as z};

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