@hemangdoshi/devdeck 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent-client.d.ts +32 -0
- package/dist/commands/agent.d.ts +2 -0
- package/dist/commands/dev.d.ts +9 -0
- package/dist/commands/init.d.ts +10 -0
- package/dist/commands/session.d.ts +10 -0
- package/dist/commands/start.d.ts +7 -0
- package/dist/dashboard/404.html +1 -0
- package/dist/dashboard/__next.__PAGE__.txt +6 -0
- package/dist/dashboard/__next._full.txt +17 -0
- package/dist/dashboard/__next._head.txt +5 -0
- package/dist/dashboard/__next._index.txt +7 -0
- package/dist/dashboard/__next._tree.txt +3 -0
- package/dist/dashboard/_next/static/RB8s1jjgiLhjvp2HZDBhU/_buildManifest.js +1 -0
- package/dist/dashboard/_next/static/RB8s1jjgiLhjvp2HZDBhU/_ssgManifest.js +1 -0
- package/dist/dashboard/_next/static/chunks/101-70b226b829c9d4ae.js +1 -0
- package/dist/dashboard/_next/static/chunks/444-19cc275570eb4ec1.js +9 -0
- package/dist/dashboard/_next/static/chunks/87c73c54-f46fec743414da25.js +1 -0
- package/dist/dashboard/_next/static/chunks/968-8927f96477f316db.js +32 -0
- package/dist/dashboard/_next/static/chunks/app/_global-error/page-327b769f8d5a8082.js +1 -0
- package/dist/dashboard/_next/static/chunks/app/_not-found/page-528149ca15426794.js +1 -0
- package/dist/dashboard/_next/static/chunks/app/layout-970af65dc7518514.js +1 -0
- package/dist/dashboard/_next/static/chunks/app/page-8d1a7ef25da4dec8.js +6 -0
- package/dist/dashboard/_next/static/chunks/framework-f714a6dbe5864bc1.js +1 -0
- package/dist/dashboard/_next/static/chunks/main-26a54062acfda087.js +5 -0
- package/dist/dashboard/_next/static/chunks/main-app-3d143a4f086bb1fb.js +1 -0
- package/dist/dashboard/_next/static/chunks/next/dist/client/components/builtin/app-error-327b769f8d5a8082.js +1 -0
- package/dist/dashboard/_next/static/chunks/next/dist/client/components/builtin/forbidden-327b769f8d5a8082.js +1 -0
- package/dist/dashboard/_next/static/chunks/next/dist/client/components/builtin/global-error-279c886853324bb0.js +1 -0
- package/dist/dashboard/_next/static/chunks/next/dist/client/components/builtin/not-found-327b769f8d5a8082.js +1 -0
- package/dist/dashboard/_next/static/chunks/next/dist/client/components/builtin/unauthorized-327b769f8d5a8082.js +1 -0
- package/dist/dashboard/_next/static/chunks/polyfills-42372ed130431b0a.js +1 -0
- package/dist/dashboard/_next/static/chunks/webpack-c708016a143f497e.js +1 -0
- package/dist/dashboard/_next/static/css/5379a39d263cf11e.css +1 -0
- package/dist/dashboard/_next/static/media/22a5144ee8d83bca-s.p.woff2 +0 -0
- package/dist/dashboard/_next/static/media/9766a7e9e2e0ad5a-s.woff2 +0 -0
- package/dist/dashboard/_next/static/media/aa016aab0e6d1295-s.woff2 +0 -0
- package/dist/dashboard/_next/static/media/b66cf8e69499582a-s.woff2 +0 -0
- package/dist/dashboard/_next/static/media/f639721981034f88-s.woff2 +0 -0
- package/dist/dashboard/_not-found/__next._full.txt +18 -0
- package/dist/dashboard/_not-found/__next._head.txt +5 -0
- package/dist/dashboard/_not-found/__next._index.txt +7 -0
- package/dist/dashboard/_not-found/__next._not-found.__PAGE__.txt +5 -0
- package/dist/dashboard/_not-found/__next._not-found.txt +5 -0
- package/dist/dashboard/_not-found/__next._tree.txt +3 -0
- package/dist/dashboard/_not-found.html +1 -0
- package/dist/dashboard/_not-found.txt +18 -0
- package/dist/dashboard/index.html +1 -0
- package/dist/dashboard/index.txt +17 -0
- package/dist/dashboard/static/index.html +43 -0
- package/dist/format-agent-output.d.ts +5 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +45 -0
- package/dist/session-state.d.ts +21 -0
- package/package.json +25 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[444],{93:(t,e,r)=>{r.d(e,{G:()=>o,r:()=>s});var n=r(8933),i=r(7620);let o=i.createContext(void 0);function s(){let t=i.useContext(o);if(void 0===t)throw Error((0,n.A)(54));return t}},383:(t,e,r)=>{r.d(e,{A:()=>n});let n=(0,r(4188).A)("grip-vertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]])},435:(t,e,r)=>{r.d(e,{H:()=>G});var n=r(7620),i=r(9496),o=r(2196),s=r(3245),a=r(2903),l=r(2140),u=r(604),h=r(2930),c=r(2888),d=r(1614),f=r(5853),p=r(4372),m=r(7866),g=r(8877),v=r(7897),y=r(7898),x=r(207),w=r(131),b=r(6531),T=r(7089),M=r(8255),S=r(7806),A=r(9306),P=r(7270),E=r(920),R=r(4858),k=r(7463);function C(t,e,r){switch(t){case"vertical":return e;case"horizontal":return r;default:return e||r}}function V(t,e){return C(e,t===R.il||t===R.Jd,t===R.eR||t===R.RJ)}function D(t,e,r){return C(e,t===R.Jd,r?t===R.eR:t===R.RJ)||"Enter"===t||" "===t||""===t}var I=r(3294),L=r(8827),j=r(7592),F=r(3881),B=r(7564),O=r(1343),H=r(9704);let W=n.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:p.tE,validationMode:"onSubmit",submitAttemptedRef:{current:!1}});var N=r(6666),$=r(4749);function U(t,e){let r=n.useRef(t),i=(0,h.K)(e);(0,u.g)(()=>{r.current!==t&&i(r.current)},[t,i]),(0,u.g)(()=>{r.current=t},[t])}var z=r(5924),q=r(1588),Y=r(9841),K=r(8515),X=r(4568);function G(t){let{id:e,value:r,defaultValue:G=null,onValueChange:Z,open:_,defaultOpen:J=!1,onOpenChange:Q,name:tt,form:te,autoComplete:tr,disabled:tn=!1,readOnly:ti=!1,required:to=!1,modal:ts=!0,actionsRef:ta,inputRef:tl,onOpenChangeComplete:tu,items:th,multiple:tc=!1,itemToStringLabel:td,itemToStringValue:tf,isItemEqualToValue:tp=$.jd,highlightItemOnHover:tm=!0,children:tg}=t,{clearErrors:tv}=n.useContext(W),{setDirty:ty,setTouched:tx,setFocused:tw,shouldValidateOnChange:tb,validityData:tT,setFilled:tM,name:tS,disabled:tA,validation:tP,validationMode:tE}=(0,L.V$)(),tR=(0,F.l)({id:e}),tk=tA||tn,tC=tS??tt,[tV,tD]=(0,l.q)({controlled:r,default:tc?G??p.Ml:G,name:"Select",state:"value"}),[tI,tL]=(0,l.q)({controlled:_,default:J,name:"Select",state:"open"}),tj=n.useRef([]),tF=n.useRef([]),tB=n.useRef(null),tO=n.useRef(null),tH=n.useRef(0),tW=n.useRef(null),tN=n.useRef([]),t$=n.useRef(!1),tU=n.useRef(!1),tz=n.useRef(null),tq=n.useRef(null),tY=n.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0}),tK=n.useRef(!1),{mounted:tX,setMounted:tG,transitionStatus:tZ}=(0,B.$)(tI),{openMethod:t_,triggerProps:tJ}=function(t){let[e,r]=n.useState(null),i=function(t,e){var r;let i,o,{onClick:s,onPointerDown:a}=(r=(0,h.K)((r,n)=>{("function"==typeof t?t():t)||e(n||(z.un?"touch":""))}),i=n.useRef(""),o=n.useCallback(t=>{t.defaultPrevented||(i.current=t.pointerType,r(t,t.pointerType))},[r]),{onClick:n.useCallback(t=>{0===t.detail?r(t,"keyboard"):("pointerType"in t?r(t,t.pointerType):r(t,i.current),i.current="")},[r]),onPointerDown:o});return n.useMemo(()=>({onClick:s,onPointerDown:a}),[s,a])}(t,r);return U(t,e=>{e&&!t&&r(null)}),n.useMemo(()=>({openMethod:e,triggerProps:i}),[e,i])}(tI),tQ=(0,s.j)(()=>new d.i({id:tR,labelId:void 0,modal:ts,multiple:tc,itemToStringLabel:td,itemToStringValue:tf,isItemEqualToValue:tp,value:tV,open:tI,mounted:tX,transitionStatus:tZ,items:th,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:{},triggerProps:{},triggerElement:null,positionerElement:null,listElement:null,popupSide:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1})).current,t0=(0,f.P)(tQ,O.T.activeIndex),t1=(0,f.P)(tQ,O.T.selectedIndex),t2=(0,f.P)(tQ,O.T.triggerElement),t3=(0,f.P)(tQ,O.T.positionerElement),t5=function(t){let[e,r]=n.useState({current:t,previous:null});return t!==e.current&&r({current:t,previous:e.current}),e.previous}(t_),t8=t_??t5,t4=n.useMemo(()=>tc&&Array.isArray(tV)&&0===tV.length?"":(0,N.T)(tV,tf),[tc,tV,tf]),t6=n.useMemo(()=>tc&&Array.isArray(tV)?tV.map(t=>(0,N.T)(t,tf)):(0,N.T)(tV,tf),[tc,tV,tf]),t7=(0,c.u)(tQ.state.triggerElement),t9=(0,h.K)(()=>t6);(0,j.I)(t7,tR,tV,t9);let et=n.useRef(tV),ee=tc?Array.isArray(tV)&&tV.length>0:null!=tV;(0,u.g)(()=>{tV!==et.current&&tQ.set("forceMount",!0)},[tQ,tV]),(0,u.g)(()=>{tM(ee)},[ee,tM]),(0,u.g)(function(){let t,e=tN.current;if(tc){let r=Array.isArray(tV)?tV:[];if(0===r.length)t=null;else{let n=r[r.length-1],i=(0,$.Vz)(e,n,tp);t=-1===i?null:i}}else{let r=(0,$.Vz)(e,tV,tp);t=-1===r?null:r}null===t&&(tq.current=null),tI||tQ.set("selectedIndex",t)},[ee,tc,tI,tV,tN,tp,tQ,tq]),U(tV,()=>{tv(tC),ty(tV!==tT.initialValue),tb()?tP.commit(tV):tP.commit(tV,!0)});let er=(0,h.K)((t,e)=>{if(Q?.(t,e),!e.isCanceled&&(tL(t),t||e.reason!==T.Xn&&e.reason!==T.Np||(tx(!0),tw(!1),"onBlur"===tE&&tP.commit(tV)),!t&&null!==tQ.state.activeIndex)){let t=tj.current[tQ.state.activeIndex];queueMicrotask(()=>{t?.setAttribute("tabindex","-1")})}}),en=(0,h.K)(()=>{tG(!1),tQ.update({activeIndex:null,openMethod:null}),tu?.(!1)});(0,H.v)({enabled:!ta,open:tI,ref:tB,onComplete(){tI||en()}}),n.useImperativeHandle(ta,()=>({unmount:en}),[en]);let ei=(0,h.K)((t,e)=>{Z?.(t,e),e.isCanceled||tD(t)}),eo=(0,h.K)(()=>{let t=tQ.state.listElement||tB.current;if(!t)return;let e=(0,q.XF)(t.scrollHeight,t.clientHeight),r=(0,q.Qw)(t.scrollTop,e),n=r>0,i=r<e;tQ.state.scrollUpArrowVisible!==n&&tQ.set("scrollUpArrowVisible",n),tQ.state.scrollDownArrowVisible!==i&&tQ.set("scrollDownArrowVisible",i)}),es=(0,m.P)({open:tI,onOpenChange:er,elements:{reference:t2,floating:t3}}),ea=function(t,e={}){let{enabled:r=!0,event:i="click",toggle:o=!0,ignoreMouse:s=!1,stickIfOpen:a=!0,touchOpenDelay:l=0,reason:u=T.Ui}=e,h="rootStore"in t?t.rootStore:t,c=h.context.dataRef,d=n.useRef(void 0),f=(0,g.N)(),m=(0,v.Z)(),M=n.useMemo(()=>{function t(t,e,r,n){let i=(0,b.d)(u,e,r);t&&"touch"===n&&l>0?m.start(l,()=>{h.setOpen(!0,i)}):h.setOpen(t,i)}function e(t,e,r){let n=c.current.openEvent,i=h.select("domReferenceElement")!==e;return!!t&&!!i||!t||!o||!!n&&!!a&&!r(n.type)}return{onPointerDown(t){d.current=t.pointerType},onMouseDown(r){let n=d.current,o=r.nativeEvent,a=h.select("open");if(0!==r.button||"click"===i||(0,w.Go)(n,!0)&&s)return;let l=e(a,r.currentTarget,t=>"click"===t||"mousedown"===t),u=(0,y.EW)(o);if((0,x.$u)(u))return void t(l,o,u,n);let c=r.currentTarget;f.request(()=>{t(l,o,c,n)})},onClick(r){if("mousedown-only"===i)return;let n=d.current;if("mousedown"===i&&n){d.current=void 0;return}(0,w.Go)(n,!0)&&s||t(e(h.select("open"),r.currentTarget,t=>"click"===t||"mousedown"===t||"keydown"===t||"keyup"===t),r.nativeEvent,r.currentTarget,n)},onKeyDown(){d.current=void 0}}},[c,i,s,u,h,a,o,f,m,l]);return n.useMemo(()=>r?{reference:M}:p.t0,[r,M])}(es,{enabled:!ti&&!tk,event:"mousedown"}),el=(0,M.s)(es),eu=function(t,e){let{listRef:r,activeIndex:i,onNavigate:o=()=>{},enabled:s=!0,selectedIndex:a=null,allowEscape:l=!1,loopFocus:d=!1,nested:f=!1,rtl:p=!1,virtual:m=!1,focusItemOnOpen:v="auto",focusItemOnHover:M=!0,openOnArrowKeyDown:I=!0,disabledIndices:L,orientation:j="vertical",parentOrientation:F,cols:B=1,id:O,resetOnPointerLeave:H=!0,externalTree:W}=e,N="rootStore"in t?t.rootStore:t,$=N.useState("open"),U=N.useState("floatingElement"),z=N.useState("domReferenceElement"),q=N.context.dataRef,Y=(0,x.nd)(U),K=(0,x.WZ)(z),X=(0,c.u)(Y),G=(0,P.R1)(),Z=(0,P.cq)(W),_=n.useRef(v),J=n.useRef(a??-1),Q=n.useRef(null),tt=n.useRef(!0),te=(0,h.K)(t=>{o(-1===J.current?null:J.current,t)}),tr=n.useRef(te),tn=n.useRef(!!U),ti=n.useRef($),to=n.useRef(!1),ts=n.useRef(!1),ta=n.useRef(null),tl=(0,c.u)(L),tu=(0,c.u)($),th=(0,c.u)(a),tc=(0,c.u)(H),td=(0,g.N)(),tf=(0,g.N)(),tp=(0,h.K)(()=>{function t(t){m?Z?.events.emit("virtualfocus",t):ta.current=(0,k.p)(t,{sync:to.current,preventScroll:!0})}let e=r.current[J.current],n=ts.current;e&&t(e),(to.current?t=>t():t=>td.request(t))(()=>{let i=r.current[J.current]||e;!i||(e||t(i),tw&&(n||!tt.current)&&i.scrollIntoView?.({block:"nearest",inline:"nearest"}))})});(0,u.g)(()=>{q.current.orientation=j},[q,j]),(0,u.g)(()=>{s&&($&&U?(J.current=a??-1,_.current&&null!=a&&(ts.current=!0,te())):tn.current&&(J.current=-1,tr.current()))},[s,$,U,a,te]),(0,u.g)(()=>{if(s){if(!$){to.current=!1;return}if(U)if(null==i){if(to.current=!1,null!=th.current)return;if(tn.current&&(J.current=-1,tp()),(!ti.current||!tn.current)&&_.current&&(null!=Q.current||!0===_.current&&null==Q.current)){let t=0,e=()=>{null==r.current[0]?(t<2&&(t?t=>tf.request(t):queueMicrotask)(e),t+=1):(J.current=null==Q.current||D(Q.current,j,p)||f?(0,E.Zb)(r):(0,E.vB)(r),Q.current=null,te())};e()}}else(0,E.du)(r.current,i)||(J.current=i,tp(),ts.current=!1)}},[s,$,U,i,th,f,r,j,p,te,tp,tf]),(0,u.g)(()=>{if(!s||U||!Z||m||!tn.current)return;let t=Z.nodesRef.current,e=t.find(t=>t.id===G)?.context?.elements.floating,r=(0,y.RS)((0,S.R)(U)),n=t.some(t=>t.context&&(0,y.gR)(t.context.elements.floating,r));e&&!n&&tt.current&&e.focus({preventScroll:!0})},[s,U,Z,G,m]),(0,u.g)(()=>{tr.current=te,ti.current=$,tn.current=!!U}),(0,u.g)(()=>{$||(Q.current=null,_.current=v)},[$,v]);let tm=null!=i,tg=(0,h.K)(t=>{if(!tu.current)return;let e=r.current.indexOf(t.currentTarget);-1!==e&&(J.current!==e||i!==e)&&(J.current=e,te(t))}),tv=(0,h.K)(()=>F??Z?.nodesRef.current.find(t=>t.id===G)?.context?.dataRef?.current.orientation),ty=(0,h.K)(()=>(0,E.Zb)(r,tl.current)),tx=(0,h.K)(t=>{var e;let n,i;if(tt.current=!1,to.current=!0,229===t.which||!tu.current&&t.currentTarget===X.current)return;if(f&&(e=t.key,n=p?e===R.RJ:e===R.eR,i=e===R.il,"both"===j||"horizontal"===j&&B&&B>1?"Escape"===e:C(j,n,i))){V(t.key,tv())||(0,w.jo)(t),N.setOpen(!1,(0,b.d)(T.Dq,t.nativeEvent)),(0,A.sb)(z)&&(m?Z?.events.emit("virtualfocus",z):z.focus());return}let o=J.current,s=(0,E.Zb)(r,L),a=(0,E.vB)(r,L);if(K||("Home"===t.key&&((0,w.jo)(t),J.current=s,te(t)),"End"===t.key&&((0,w.jo)(t),J.current=a,te(t))),B>1){let e=Array.from({length:r.current.length},()=>({width:1,height:1})),n=(0,E.zf)(e,B,!1),i=n.findIndex(t=>null!=t&&!(0,E.FP)(r.current,t,L)),o=n.reduce((t,e,n)=>null==e||(0,E.FP)(r.current,e,L)?t:n,-1),l=n[(0,E.Kg)(n.map(t=>null!=t?r.current[t]:null),{event:t,orientation:j,loopFocus:d,rtl:p,cols:B,disabledIndices:(0,E.Y3)([...("function"!=typeof L?L:null)||r.current.map((t,e)=>(0,E.FP)(r.current,e,L)?e:void 0),void 0],n),minIndex:i,maxIndex:o,prevIndex:(0,E.fl)(J.current>a?s:J.current,e,n,B,t.key===R.Jd?"bl":t.key===(p?R.eR:R.RJ)?"tr":"tl"),stopEvent:!0})];if(null!=l&&(J.current=l,te(t)),"both"===j)return}if(V(t.key,j)){if((0,w.jo)(t),$&&!m&&(0,y.RS)(t.currentTarget.ownerDocument)===t.currentTarget){J.current=D(t.key,j,p)?s:a,te(t);return}D(t.key,j,p)?d?o>=a?l&&o!==r.current.length?J.current=-1:(to.current=!1,J.current=s):J.current=(0,E.BF)(r.current,{startingIndex:o,disabledIndices:L}):J.current=Math.min(a,(0,E.BF)(r.current,{startingIndex:o,disabledIndices:L})):d?o<=s?l&&-1!==o?J.current=r.current.length:(to.current=!1,J.current=a):J.current=(0,E.BF)(r.current,{startingIndex:o,decrement:!0,disabledIndices:L}):J.current=Math.max(s,(0,E.BF)(r.current,{startingIndex:o,decrement:!0,disabledIndices:L})),(0,E.du)(r.current,J.current)&&(J.current=-1),te(t)}}),tw=n.useMemo(()=>({onFocus(t){to.current=!0,tg(t)},onClick:({currentTarget:t})=>t.focus({preventScroll:!0}),onMouseMove(t){to.current=!0,ts.current=!1,M&&tg(t)},onPointerLeave(t){if(!tu.current||!tt.current||"touch"===t.pointerType)return;to.current=!0;let e=t.relatedTarget;if(!(!M||r.current.includes(e))&&tc.current&&(ta.current?.(),ta.current=null,J.current=-1,te(t),!m)){let t=X.current,e=(0,y.RS)((0,S.R)(t));t&&(0,y.gR)(t,e)&&t.focus({preventScroll:!0})}}}),[tg,tu,X,M,r,te,tc,m]),tb=n.useMemo(()=>m&&$&&tm&&{"aria-activedescendant":`${O}-${i}`},[m,$,tm,O,i]),tT=n.useMemo(()=>({"aria-orientation":"both"===j?void 0:j,...!K?tb:{},onKeyDown(t){if("Tab"===t.key&&t.shiftKey&&$&&!m){let e=(0,y.EW)(t.nativeEvent);if(e&&!(0,y.gR)(X.current,e))return;(0,w.jo)(t),N.setOpen(!1,(0,b.d)(T.Xn,t.nativeEvent)),(0,A.sb)(z)&&z.focus();return}tx(t)},onPointerMove(){tt.current=!0}}),[tb,tx,X,j,K,N,$,m,z]),tM=n.useMemo(()=>{function t(t){N.setOpen(!0,(0,b.d)(T.Dq,t.nativeEvent,t.currentTarget))}function e(t){"auto"===v&&(0,w.YF)(t.nativeEvent)&&(_.current=!m)}function r(t){_.current=v,"auto"===v&&(0,w.Pg)(t.nativeEvent)&&(_.current=!0)}return{onKeyDown(e){var r,n;let i=N.select("open");tt.current=!1;let o=e.key.startsWith("Arrow"),s=(r=e.key,n=tv(),C(n,p?r===R.eR:r===R.RJ,r===R.Jd)),a=V(e.key,j),l=(f?s:a)||"Enter"===e.key||""===e.key.trim();if(m&&i)return tx(e);if(i||I||!o){if(l){let t=V(e.key,tv());Q.current=f&&t?null:e.key}if(f){s&&((0,w.jo)(e),i?(J.current=ty(),te(e)):t(e));return}a&&(null!=th.current&&(J.current=th.current),(0,w.jo)(e),!i&&I?t(e):tx(e),i&&te(e))}},onFocus(t){N.select("open")&&!m&&(J.current=-1,te(t))},onPointerDown:r,onPointerEnter:r,onMouseDown:e,onClick:e}},[tx,v,ty,f,te,N,I,j,tv,p,th,m]),tS=n.useMemo(()=>({...tb,...tM}),[tb,tM]);return n.useMemo(()=>s?{reference:tS,floating:tT,item:tw,trigger:tM}:{},[s,tS,tT,tM,tw])}(es,{enabled:!ti&&!tk,listRef:tj,activeIndex:t0,selectedIndex:t1,disabledIndices:p.Ml,onNavigate(t){(null!==t||tI)&&tQ.set("activeIndex",t)},focusItemOnHover:tm}),eh=function(t,e){let{listRef:r,elementsRef:i,activeIndex:o,onMatch:s,onTyping:a,enabled:l=!0,resetMs:c=750,selectedIndex:d=null}=e,f="rootStore"in t?t.rootStore:t,p=f.useState("open"),m=(0,v.Z)(),g=n.useRef(""),x=n.useRef(d??o??-1),b=n.useRef(null),T=(0,h.K)(t=>{function e(t,r,n=0){if(0===t.length)return -1;let o=(n%t.length+t.length)%t.length,s=r.toLocaleLowerCase();for(let e=0;e<t.length;e+=1){let r=(o+e)%t.length,n=t[r];if(n?.toLocaleLowerCase().startsWith(s)&&function(t){let e=i?.current[t];return!e||(0,E.J9)(e)}(r))return r}return -1}let n=r.current;if(g.current.length>0&&" "===t.key&&((0,w.jo)(t),a?.(!0)),g.current.length>0&&" "!==g.current[0]&&-1===e(n,g.current)&&" "!==t.key&&a?.(!1),null==n||1!==t.key.length||t.ctrlKey||t.metaKey||t.altKey)return;p&&" "!==t.key&&((0,w.jo)(t),a?.(!0));let l=""===g.current;l&&(x.current=d??o??-1),n.every(t=>!t||t[0]?.toLocaleLowerCase()!==t[1]?.toLocaleLowerCase())&&g.current===t.key&&(g.current="",x.current=b.current),g.current+=t.key,m.start(c,()=>{g.current="",x.current=b.current,a?.(!1)});let u=l?d??o??-1:x.current,h=e(n,g.current,(u??0)+1);-1!==h?(s?.(h),b.current=h):" "!==t.key&&(g.current="",a?.(!1))}),M=(0,h.K)(t=>{let e=t.relatedTarget,r=f.select("domReferenceElement"),n=f.select("floatingElement");(0,y.gR)(r,e)||(0,y.gR)(n,e)||(m.clear(),g.current="",x.current=b.current,a?.(!1))});(0,u.g)(()=>{(p||null===d)&&(m.clear(),b.current=null,""!==g.current&&(g.current=""))},[p,d,m]),(0,u.g)(()=>{p&&""===g.current&&(x.current=d??o??-1)},[p,d,o]);let S=n.useMemo(()=>({onKeyDown:T,onBlur:M}),[T,M]);return n.useMemo(()=>l?{reference:S,floating:S}:{},[l,S])}(es,{enabled:!ti&&!tk&&(tI||!tc),listRef:tF,activeIndex:t0,selectedIndex:t1,onMatch(t){tI?tQ.set("activeIndex",t):ei(tN.current[t],(0,b.d)("none"))},onTyping(t){t$.current=t}}),ec=n.useMemo(()=>{let t=(0,K.v6)(eh.reference,eu.reference,el.reference,ea.reference,tJ);return tR&&(t.id=tR),t},[ea.reference,eh.reference,eu.reference,el.reference,tJ,tR]),ed=n.useMemo(()=>(0,K.v6)(Y.Ls,eh.floating,eu.floating,el.floating),[eh.floating,eu.floating,el.floating]),ef=eu.item??p.t0;(0,a.j)(()=>{tQ.update({popupProps:ed,triggerProps:ec})}),(0,u.g)(()=>{tQ.update({id:tR,modal:ts,multiple:tc,value:tV,open:tI,mounted:tX,transitionStatus:tZ,popupProps:ed,triggerProps:ec,items:th,itemToStringLabel:td,itemToStringValue:tf,isItemEqualToValue:tp,openMethod:t8})},[tQ,tR,ts,tc,tV,tI,tX,tZ,ed,ec,th,td,tf,tp,t8]);let ep=n.useMemo(()=>({store:tQ,name:tC,required:to,disabled:tk,readOnly:ti,multiple:tc,highlightItemOnHover:tm,setValue:ei,setOpen:er,listRef:tj,popupRef:tB,scrollHandlerRef:tO,handleScrollArrowVisibility:eo,scrollArrowsMountedCountRef:tH,itemProps:ef,events:es.context.events,valueRef:tW,valuesRef:tN,labelsRef:tF,typingRef:t$,selectionRef:tY,firstItemTextRef:tz,selectedItemTextRef:tq,validation:tP,onOpenChangeComplete:tu,keyboardActiveRef:tU,alignItemWithTriggerActiveRef:tK,initialValueRef:et}),[tQ,tC,to,tk,ti,tc,tm,ei,er,ef,es.context.events,tP,tu,eo]),em=(0,o.a)(tl,tP.inputRef),eg=tc&&Array.isArray(tV)&&tV.length>0,ev=tc?void 0:tC,ey=n.useMemo(()=>tc&&Array.isArray(tV)&&tC?tV.map(t=>{let e=(0,N.T)(t,tf);return(0,X.jsx)("input",{type:"hidden",form:te,name:tC,value:e},e)}):null,[tc,tV,te,tC,tf]);return(0,X.jsx)(I.CG.Provider,{value:ep,children:(0,X.jsxs)(I.iP.Provider,{value:es,children:[tg,(0,X.jsx)("input",{...tP.getInputValidationProps({onFocus(){tQ.state.triggerElement?.focus({focusVisible:!0})},onChange(t){if(t.nativeEvent.defaultPrevented||tk||ti)return void t.preventBaseUIHandler?.();let e=t.currentTarget.value,r=(0,b.d)(T.dv,t.nativeEvent);tQ.set("forceMount",!0),queueMicrotask(function(){if(tc)return;let t=tN.current.find(t=>(0,N.T)(t,tf).toLowerCase()===e.toLowerCase()||(0,N.yg)(t,td).toLowerCase()===e.toLowerCase());null!=t&&(ty(t!==tT.initialValue),ei(t,r),tb()&&tP.commit(t))})}}),id:tR&&null==ev?`${tR}-hidden-input`:void 0,form:te,name:ev,autoComplete:tr,value:t4,disabled:tk,required:to&&!eg,readOnly:ti,ref:em,style:tC?i.a:i.Q,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),ey]})})}},658:(t,e,r)=>{r.d(e,{H:()=>s});var n=r(7620),i=r(4372);let o=n.createContext({controlId:void 0,registerControlId:i.tE,labelId:void 0,setLabelId:i.tE,messageIds:[],setMessageIds:i.tE,getDescriptionProps:t=>t});function s(){return n.useContext(o)}},873:(t,e,r)=>{r.d(e,{xQ:()=>o});var n=r(7620),i=r(9518);function o(t=!0){let e=(0,n.useContext)(i.t);if(null===e)return[!0,null];let{isPresent:r,onExitComplete:s,register:a}=e,l=(0,n.useId)();(0,n.useEffect)(()=>{if(t)return a(l)},[t]);let u=(0,n.useCallback)(()=>t&&s&&s(l),[l,s,t]);return!r&&s?[!1,u]:[!0]}},890:(t,e,r)=>{r.d(e,{I:()=>s});var n=r(7620),i=r(4071),o=r(2925);let s=n.forwardRef(function(t,e){let{render:r,className:n,style:s,...a}=t,{cornerRef:l,cornerSize:u,hiddenState:h}=(0,i.p)(),c=(0,o.o)("div",t,{ref:[e,l],props:[{style:{position:"absolute",bottom:0,insetInlineEnd:0,width:u.width,height:u.height}},a]});return h.corner?null:c})},972:(t,e,r)=>{r.d(e,{V:()=>M});var n,i=r(7620),o=r(2930),s=r(7897),a=r(4071),l=r(2925),u=r(4721),h=r(5856),c=r(8728);let d=((n={}).orientation="data-orientation",n.hovering="data-hovering",n.scrolling="data-scrolling",n.hasOverflowX="data-has-overflow-x",n.hasOverflowY="data-has-overflow-y",n.overflowXStart="data-overflow-x-start",n.overflowXEnd="data-overflow-x-end",n.overflowYStart="data-overflow-y-start",n.overflowYEnd="data-overflow-y-end",n);var f=r(7833),p=r(1531),m=r(9661),g=r(7898),v=r(1894),y=r(4568);let x={x:0,y:0},w={width:0,height:0},b={xStart:!1,xEnd:!1,yStart:!1,yEnd:!1},T={x:!0,y:!0,corner:!0},M=i.forwardRef(function(t,e){let{render:r,className:n,overflowEdgeThreshold:M,style:S,...A}=t,P=function(t){if("number"==typeof t){let e=Math.max(0,t);return{xStart:e,xEnd:e,yStart:e,yEnd:e}}return{xStart:Math.max(0,t?.xStart||0),xEnd:Math.max(0,t?.xEnd||0),yStart:Math.max(0,t?.yStart||0),yEnd:Math.max(0,t?.yEnd||0)}}(M),E=(0,p.e)(),R=(0,s.Z)(),k=(0,s.Z)(),{nonce:C,disableStyleElements:V}=(0,v.n)(),[D,I]=i.useState(!1),[L,j]=i.useState(!1),[F,B]=i.useState(!1),[O,H]=i.useState(!1),[W,N]=i.useState(!1),[$,U]=i.useState(w),[z,q]=i.useState(w),[Y,K]=i.useState(b),[X,G]=i.useState(T),Z=i.useRef(null),_=i.useRef(null),J=i.useRef(null),Q=i.useRef(null),tt=i.useRef(null),te=i.useRef(null),tr=i.useRef(null),tn=i.useRef(!1),ti=i.useRef(0),to=i.useRef(0),ts=i.useRef(0),ta=i.useRef(0),tl=i.useRef("vertical"),tu=i.useRef(x),th=(0,o.K)(t=>{let e=t.x-tu.current.x,r=t.y-tu.current.y;tu.current=t,0!==r&&(B(!0),R.start(h.u,()=>{B(!1)})),0!==e&&(j(!0),k.start(h.u,()=>{j(!1)}))}),tc=(0,o.K)(t=>{0===t.button&&(tn.current=!0,ti.current=t.clientY,to.current=t.clientX,tl.current=t.currentTarget.getAttribute(d.orientation),_.current&&(ts.current=_.current.scrollTop,ta.current=_.current.scrollLeft),tt.current&&"vertical"===tl.current&&tt.current.setPointerCapture(t.pointerId),te.current&&"horizontal"===tl.current&&te.current.setPointerCapture(t.pointerId))}),td=(0,o.K)(t=>{if(!tn.current)return;let e=t.clientY-ti.current,r=t.clientX-to.current;if(_.current){let n=_.current.scrollHeight,i=_.current.clientHeight,o=_.current.scrollWidth,s=_.current.clientWidth;if(tt.current&&J.current&&"vertical"===tl.current){let r=(0,c.A)(J.current,"padding","y"),o=(0,c.A)(tt.current,"margin","y"),s=tt.current.offsetHeight,a=J.current.offsetHeight-s-r-o;_.current.scrollTop=ts.current+e/a*(n-i),t.preventDefault(),B(!0),R.start(h.u,()=>{B(!1)})}if(te.current&&Q.current&&"horizontal"===tl.current){let e=(0,c.A)(Q.current,"padding","x"),n=(0,c.A)(te.current,"margin","x"),i=te.current.offsetWidth,a=Q.current.offsetWidth-i-e-n;_.current.scrollLeft=ta.current+r/a*(o-s),t.preventDefault(),j(!0),k.start(h.u,()=>{j(!1)})}}}),tf=(0,o.K)(t=>{tn.current=!1,tt.current&&"vertical"===tl.current&&tt.current.releasePointerCapture(t.pointerId),te.current&&"horizontal"===tl.current&&te.current.releasePointerCapture(t.pointerId)});function tp(t){H("touch"===t.pointerType)}function tm(t){tp(t),"touch"!==t.pointerType&&I((0,g.gR)(Z.current,t.target))}let tg=i.useMemo(()=>({scrolling:L||F,hasOverflowX:!X.x,hasOverflowY:!X.y,overflowXStart:Y.xStart,overflowXEnd:Y.xEnd,overflowYStart:Y.yStart,overflowYEnd:Y.yEnd,cornerHidden:X.corner}),[L,F,X.x,X.y,X.corner,Y]),tv={role:"presentation",onPointerEnter:tm,onPointerMove:tm,onPointerDown:tp,onPointerLeave(){I(!1)},style:{position:"relative",[u.I.scrollAreaCornerHeight]:`${$.height}px`,[u.I.scrollAreaCornerWidth]:`${$.width}px`}},ty=(0,l.o)("div",t,{state:tg,ref:[e,Z],props:[tv,A],stateAttributesMapping:m.r}),tx=i.useMemo(()=>({handlePointerDown:tc,handlePointerMove:td,handlePointerUp:tf,handleScroll:th,cornerSize:$,setCornerSize:U,thumbSize:z,setThumbSize:q,hasMeasuredScrollbar:W,setHasMeasuredScrollbar:N,touchModality:O,cornerRef:tr,scrollingX:L,setScrollingX:j,scrollingY:F,setScrollingY:B,hovering:D,setHovering:I,viewportRef:_,rootRef:Z,scrollbarYRef:J,scrollbarXRef:Q,thumbYRef:tt,thumbXRef:te,rootId:E,hiddenState:X,setHiddenState:G,overflowEdges:Y,setOverflowEdges:K,viewportState:tg,overflowEdgeThreshold:P}),[tc,td,tf,th,$,z,W,O,L,j,F,B,D,I,E,X,Y,tg,P]);return(0,y.jsxs)(a.a.Provider,{value:tx,children:[!V&&f.E.getElement(C),ty]})})},974:(t,e,r)=>{r.d(e,{A:()=>n});let n=(0,r(4188).A)("paint-bucket",[["path",{d:"M11 7 6 2",key:"1jwth8"}],["path",{d:"M18.992 12H2.041",key:"xw1gg"}],["path",{d:"M21.145 18.38A3.34 3.34 0 0 1 20 16.5a3.3 3.3 0 0 1-1.145 1.88c-.575.46-.855 1.02-.855 1.595A2 2 0 0 0 20 22a2 2 0 0 0 2-2.025c0-.58-.285-1.13-.855-1.595",key:"1nkol4"}],["path",{d:"m8.5 4.5 2.148-2.148a1.205 1.205 0 0 1 1.704 0l7.296 7.296a1.205 1.205 0 0 1 0 1.704l-7.592 7.592a3.615 3.615 0 0 1-5.112 0l-3.888-3.888a3.615 3.615 0 0 1 0-5.112L5.67 7.33",key:"1nk1rd"}]])},1121:(t,e,r)=>{r.d(e,{A:()=>n});let n=(0,r(4188).A)("activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]])},1201:(t,e,r)=>{r.d(e,{A:()=>n});let n=(0,r(4188).A)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},1300:(t,e,r)=>{r.d(e,{B:()=>T});var n,i=r(7620),o=r(2930),s=r(604),a=r(5924),l=r(7897),u=r(4071);let h=i.createContext(void 0);var c=r(2925),d=r(6130),f=r(8728),p=r(5856),m=r(5625),g=r(7833),v=r(9661);let y=((n={}).scrollAreaOverflowXStart="--scroll-area-overflow-x-start",n.scrollAreaOverflowXEnd="--scroll-area-overflow-x-end",n.scrollAreaOverflowYStart="--scroll-area-overflow-y-start",n.scrollAreaOverflowYEnd="--scroll-area-overflow-y-end",n);var x=r(1588),w=r(4568);let b=!1,T=i.forwardRef(function(t,e){let{render:r,className:n,style:T,...M}=t,{viewportRef:S,scrollbarYRef:A,scrollbarXRef:P,thumbYRef:E,thumbXRef:R,cornerRef:k,cornerSize:C,setCornerSize:V,setThumbSize:D,rootId:I,setHiddenState:L,hiddenState:j,setHasMeasuredScrollbar:F,handleScroll:B,setHovering:O,setOverflowEdges:H,overflowEdges:W,overflowEdgeThreshold:N,scrollingX:$,scrollingY:U}=(0,u.p)(),z=(0,d.j)(),q=i.useRef(!0),Y=i.useRef([NaN,NaN,NaN,NaN]),K=(0,l.Z)(),X=(0,l.Z)(),G=(0,o.K)(()=>{var t;let e,r,n=S.current,i=A.current,o=P.current,s=E.current,a=R.current,l=k.current;if(!n)return;let u=n.scrollHeight,h=n.scrollWidth,c=n.clientHeight,d=n.clientWidth,g=n.scrollTop,v=n.scrollLeft,w=Y.current,b=Number.isNaN(w[0]);if(w[0]=c,w[1]=u,w[2]=d,w[3]=h,b&&F(!0),0===u||0===h)return;let T=(e=(t=n).clientHeight>=t.scrollHeight,{y:e,x:r=t.clientWidth>=t.scrollWidth,corner:e||r}),M=T.y,I=T.x,j=d/h,B=c/u,O=Math.max(0,h-d),W=Math.max(0,u-c),$=0,U=0;if(!I){let t=0;t="rtl"===z?(0,m.q)(-v,0,O):(0,m.q)(v,0,O),$=(0,x.Qw)(t,O),U=O-$}let q=M?0:(0,m.q)(g,0,W),K=M?0:(0,x.Qw)(q,W),X=M?0:W-K,G=I?0:d,Z=M?0:c,_=0,J=0;I||M||(_=i?.offsetWidth||0,J=o?.offsetHeight||0);let Q=0===C.width&&0===C.height,tt=Q?_:0,te=Q?J:0,tr=(0,f.A)(o,"padding","x"),tn=(0,f.A)(i,"padding","y"),ti=(0,f.A)(a,"margin","x"),to=(0,f.A)(s,"margin","y"),ts=G-tr-ti,ta=Z-tn-to,tl=o?Math.min(o.offsetWidth-tt,ts):ts,tu=i?Math.min(i.offsetHeight-te,ta):ta,th=Math.max(p.i,tl*j),tc=Math.max(p.i,tu*B);if(D(t=>t.height===tc&&t.width===th?t:{width:th,height:tc}),i&&s){let t=i.offsetHeight-tc-tn-to,e=u-c,r=Math.min(t,Math.max(0,(0===e?0:g/e)*t));s.style.transform=`translate3d(0,${r}px,0)`}if(o&&a){let t=o.offsetWidth-th-tr-ti,e=h-d,r=0===e?0:v/e,n="rtl"===z?(0,m.q)(r*t,-t,0):(0,m.q)(r*t,0,t);a.style.transform=`translate3d(${n}px,0,0)`}for(let[t,e]of[[y.scrollAreaOverflowXStart,$],[y.scrollAreaOverflowXEnd,U],[y.scrollAreaOverflowYStart,K],[y.scrollAreaOverflowYEnd,X]])n.style.setProperty(t,`${e}px`);l&&(I||M?V({width:0,height:0}):I||M||V({width:_,height:J})),L(t=>{var e,r;return e=t,r=T,e.y===r.y&&e.x===r.x&&e.corner===r.corner?e:r});let td={xStart:!I&&$>N.xStart,xEnd:!I&&U>N.xEnd,yStart:!M&&K>N.yStart,yEnd:!M&&X>N.yEnd};H(t=>t.xStart===td.xStart&&t.xEnd===td.xEnd&&t.yStart===td.yStart&&t.yEnd===td.yEnd?t:td)});function Z(){q.current=!1}(0,s.g)(()=>{S.current&&(b||a.Tc||("u">typeof CSS&&"registerProperty"in CSS&&[y.scrollAreaOverflowXStart,y.scrollAreaOverflowXEnd,y.scrollAreaOverflowYStart,y.scrollAreaOverflowYEnd].forEach(t=>{try{CSS.registerProperty({name:t,syntax:"<length>",inherits:!1,initialValue:"0px"})}catch{}}),b=!0))},[S]),(0,s.g)(()=>{queueMicrotask(G)},[G,j,z]),(0,s.g)(()=>{S.current?.matches(":hover")&&O(!0)},[S,O]),i.useEffect(()=>{let t=S.current;if("u"<typeof ResizeObserver||!t)return;let e=!1,r=new ResizeObserver(()=>{if(!e){e=!0;let r=Y.current;if(r[0]===t.clientHeight&&r[1]===t.scrollHeight&&r[2]===t.clientWidth&&r[3]===t.scrollWidth)return}G()});return r.observe(t),X.start(0,()=>{let e=t.getAnimations({subtree:!0});0!==e.length&&Promise.allSettled(e.map(t=>t.finished)).then(G).catch(()=>{})}),()=>{r.disconnect(),X.clear()}},[G,S,X]);let _={role:"presentation",...I&&{"data-id":`${I}-viewport`},tabIndex:j.x&&j.y?-1:0,className:g.E.className,style:{overflow:"scroll"},onScroll(){S.current&&(G(),q.current||B({x:S.current.scrollLeft,y:S.current.scrollTop}),K.start(100,()=>{q.current=!0}))},onWheel:Z,onTouchMove:Z,onPointerMove:Z,onPointerEnter:Z,onKeyDown:Z},J=i.useMemo(()=>({scrolling:$||U,hasOverflowX:!j.x,hasOverflowY:!j.y,overflowXStart:W.xStart,overflowXEnd:W.xEnd,overflowYStart:W.yStart,overflowYEnd:W.yEnd,cornerHidden:j.corner}),[$,U,j.x,j.y,j.corner,W]),Q=(0,c.o)("div",t,{ref:[e,S],state:J,props:[_,M],stateAttributesMapping:v.r}),tt=i.useMemo(()=>({computeThumbPosition:G}),[G]);return(0,w.jsx)(h.Provider,{value:tt,children:Q})})},1343:(t,e,r)=>{r.d(e,{T:()=>s});var n=r(8800),i=r(4749),o=r(6666);let s={id:(0,n.M)(t=>t.id),labelId:(0,n.M)(t=>t.labelId),modal:(0,n.M)(t=>t.modal),multiple:(0,n.M)(t=>t.multiple),items:(0,n.M)(t=>t.items),itemToStringLabel:(0,n.M)(t=>t.itemToStringLabel),itemToStringValue:(0,n.M)(t=>t.itemToStringValue),isItemEqualToValue:(0,n.M)(t=>t.isItemEqualToValue),value:(0,n.M)(t=>t.value),hasSelectedValue:(0,n.M)(t=>{let{value:e,multiple:r,itemToStringValue:n}=t;return null!=e&&(r&&Array.isArray(e)?e.length>0:""!==(0,o.T)(e,n))}),hasNullItemLabel:(0,n.M)((t,e)=>!!e&&(0,o.Dp)(t.items)),open:(0,n.M)(t=>t.open),mounted:(0,n.M)(t=>t.mounted),forceMount:(0,n.M)(t=>t.forceMount),transitionStatus:(0,n.M)(t=>t.transitionStatus),openMethod:(0,n.M)(t=>t.openMethod),activeIndex:(0,n.M)(t=>t.activeIndex),selectedIndex:(0,n.M)(t=>t.selectedIndex),isActive:(0,n.M)((t,e)=>t.activeIndex===e),isSelected:(0,n.M)((t,e,r)=>{let n=t.isItemEqualToValue,o=t.value;return t.multiple?Array.isArray(o)&&o.some(t=>(0,i.tl)(r,t,n)):t.selectedIndex===e&&null!==t.selectedIndex||(0,i.tl)(r,o,n)}),isSelectedByFocus:(0,n.M)((t,e)=>t.selectedIndex===e),popupProps:(0,n.M)(t=>t.popupProps),triggerProps:(0,n.M)(t=>t.triggerProps),triggerElement:(0,n.M)(t=>t.triggerElement),positionerElement:(0,n.M)(t=>t.positionerElement),listElement:(0,n.M)(t=>t.listElement),popupSide:(0,n.M)(t=>t.popupSide),scrollUpArrowVisible:(0,n.M)(t=>t.scrollUpArrowVisible),scrollDownArrowVisible:(0,n.M)(t=>t.scrollDownArrowVisible),hasScrollArrows:(0,n.M)(t=>t.hasScrollArrows)}},1397:(t,e,r)=>{r.d(e,{F:()=>s});var n=r(9917);let i=t=>"boolean"==typeof t?`${t}`:0===t?"0":t,o=n.$,s=(t,e)=>r=>{var n;if((null==e?void 0:e.variants)==null)return o(t,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:s,defaultVariants:a}=e,l=Object.keys(s).map(t=>{let e=null==r?void 0:r[t],n=null==a?void 0:a[t];if(null===e)return null;let o=i(e)||i(n);return s[t][o]}),u=r&&Object.entries(r).reduce((t,e)=>{let[r,n]=e;return void 0===n||(t[r]=n),t},{});return o(t,l,null==e||null==(n=e.compoundVariants)?void 0:n.reduce((t,e)=>{let{class:r,className:n,...i}=e;return Object.entries(i).every(t=>{let[e,r]=t;return Array.isArray(r)?r.includes({...a,...u}[e]):({...a,...u})[e]===r})?[...t,r,n]:t},[]),null==r?void 0:r.class,null==r?void 0:r.className)}},1410:(t,e,r)=>{r.d(e,{A:()=>n});let n=(0,r(4188).A)("square-terminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])},1470:(t,e,r)=>{r.d(e,{l:()=>l});var n=r(7620),i=r(4071),o=r(93),s=r(4307),a=r(2925);let l=n.forwardRef(function(t,e){let{render:r,className:n,style:l,...u}=t,{thumbYRef:h,thumbXRef:c,handlePointerDown:d,handlePointerMove:f,handlePointerUp:p,setScrollingX:m,setScrollingY:g,hasMeasuredScrollbar:v}=(0,i.p)(),{orientation:y}=(0,o.r)();return(0,a.o)("div",t,{ref:[e,"vertical"===y?h:c],state:{orientation:y},props:[{onPointerDown:d,onPointerMove:f,onPointerUp(t){"vertical"===y&&g(!1),"horizontal"===y&&m(!1),p(t)},style:{visibility:v?void 0:"hidden",..."vertical"===y&&{height:`var(${s.q.scrollAreaThumbHeight})`},..."horizontal"===y&&{width:`var(${s.q.scrollAreaThumbWidth})`}}},u]})})},1477:(t,e,r)=>{r.d(e,{A:()=>n});let n=(0,r(4188).A)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},1539:(t,e,r)=>{let n,i,o;r.d(e,{P:()=>oH});let s=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],a=new Set([...s,"pathRotation"]),l=(t,e,r)=>r>e?e:r<t?t:r,u={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},h={...u,transform:t=>l(0,1,t)},c={...u,default:1},d=t=>Math.round(1e5*t)/1e5,f=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,p=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,m=(t,e)=>r=>!!("string"==typeof r&&p.test(r)&&r.startsWith(t)||e&&null!=r&&Object.prototype.hasOwnProperty.call(r,e)),g=(t,e,r)=>n=>{if("string"!=typeof n)return n;let[i,o,s,a]=n.match(f);return{[t]:parseFloat(i),[e]:parseFloat(o),[r]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},v={...u,transform:t=>Math.round(l(0,255,t))},y={test:m("rgb","red"),parse:g("red","green","blue"),transform:({red:t,green:e,blue:r,alpha:n=1})=>"rgba("+v.transform(t)+", "+v.transform(e)+", "+v.transform(r)+", "+d(h.transform(n))+")"},x={test:m("#"),parse:function(t){let e="",r="",n="",i="";return t.length>5?(e=t.substring(1,3),r=t.substring(3,5),n=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),r=t.substring(2,3),n=t.substring(3,4),i=t.substring(4,5),e+=e,r+=r,n+=n,i+=i),{red:parseInt(e,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}},transform:y.transform},w=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),b=w("deg"),T=w("%"),M=w("px"),S=w("vh"),A=w("vw"),P={...T,parse:t=>T.parse(t)/100,transform:t=>T.transform(100*t)},E={test:m("hsl","hue"),parse:g("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:r,alpha:n=1})=>"hsla("+Math.round(t)+", "+T.transform(d(e))+", "+T.transform(d(r))+", "+d(h.transform(n))+")"},R={test:t=>y.test(t)||x.test(t)||E.test(t),parse:t=>y.test(t)?y.parse(t):E.test(t)?E.parse(t):x.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?y.transform(t):E.transform(t),getAnimatableNone:t=>{let e=R.parse(t);return e.alpha=0,R.transform(e)}},k=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,C="number",V="color",D=/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 I(t){let e=t.toString(),r=[],n={color:[],number:[],var:[]},i=[],o=0,s=e.replace(D,t=>(R.test(t)?(n.color.push(o),i.push(V),r.push(R.parse(t))):t.startsWith("var(")?(n.var.push(o),i.push("var"),r.push(t)):(n.number.push(o),i.push(C),r.push(parseFloat(t))),++o,"${}")).split("${}");return{values:r,split:s,indexes:n,types:i}}function L({split:t,types:e}){let r=t.length;return n=>{let i="";for(let o=0;o<r;o++)if(i+=t[o],void 0!==n[o]){let t=e[o];t===C?i+=d(n[o]):t===V?i+=R.transform(n[o]):i+=n[o]}return i}}let j={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(f)?.length||0)+(t.match(k)?.length||0)>0},parse:function(t){return I(t).values},createTransformer:function(t){return L(I(t))},getAnimatableNone:function(t){let e=I(t);return L(e)(e.values.map((t,r)=>((t,e)=>"number"==typeof t?e?.trim().endsWith("/")?t:0:"number"==typeof t?0:R.test(t)?R.getAnimatableNone(t):t)(t,e.split[r])))}},F=new Set(["brightness","contrast","saturate","opacity"]);function B(t){let[e,r]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=r.match(f)||[];if(!n)return t;let i=r.replace(n,""),o=+!!F.has(e);return n!==r&&(o*=100),e+"("+o+i+")"}let O=/\b([a-z-]*)\(.*?\)/gu,H={...j,getAnimatableNone:t=>{let e=t.match(O);return e?e.map(B).join(" "):t}},W={...j,getAnimatableNone:t=>{let e=j.parse(t);return j.createTransformer(t)(e.map(t=>"number"==typeof t?0:"object"==typeof t?{...t,alpha:1}:t))}},N={...u,transform:Math.round},$={borderWidth:M,borderTopWidth:M,borderRightWidth:M,borderBottomWidth:M,borderLeftWidth:M,borderRadius:M,borderTopLeftRadius:M,borderTopRightRadius:M,borderBottomRightRadius:M,borderBottomLeftRadius:M,width:M,maxWidth:M,height:M,maxHeight:M,top:M,right:M,bottom:M,left:M,inset:M,insetBlock:M,insetBlockStart:M,insetBlockEnd:M,insetInline:M,insetInlineStart:M,insetInlineEnd:M,padding:M,paddingTop:M,paddingRight:M,paddingBottom:M,paddingLeft:M,paddingBlock:M,paddingBlockStart:M,paddingBlockEnd:M,paddingInline:M,paddingInlineStart:M,paddingInlineEnd:M,margin:M,marginTop:M,marginRight:M,marginBottom:M,marginLeft:M,marginBlock:M,marginBlockStart:M,marginBlockEnd:M,marginInline:M,marginInlineStart:M,marginInlineEnd:M,fontSize:M,backgroundPositionX:M,backgroundPositionY:M,rotate:b,pathRotation:b,rotateX:b,rotateY:b,rotateZ:b,scale:c,scaleX:c,scaleY:c,scaleZ:c,skew:b,skewX:b,skewY:b,distance:M,translateX:M,translateY:M,translateZ:M,x:M,y:M,z:M,perspective:M,transformPerspective:M,opacity:h,originX:P,originY:P,originZ:M,zIndex:N,fillOpacity:h,strokeOpacity:h,numOctaves:N},U={...$,color:R,backgroundColor:R,outlineColor:R,fill:R,stroke:R,borderColor:R,borderTopColor:R,borderRightColor:R,borderBottomColor:R,borderLeftColor:R,filter:H,WebkitFilter:H,mask:W,WebkitMask:W},z=t=>U[t],q=()=>({translate:0,scale:1,origin:0,originPoint:0}),Y=()=>({x:q(),y:q()}),K=()=>({min:0,max:0}),X=()=>({x:K(),y:K()}),G=t=>!!(t&&t.getVelocity),Z=new Set(["width","height","top","left","right","bottom",...s]),_=t=>e=>e.test(t),J=[u,M,T,b,A,S,{test:t=>"auto"===t,parse:t=>t}],Q=t=>J.find(_(t));r(3680);let tt=()=>{},te=()=>{},tr=t=>e=>"string"==typeof e&&e.startsWith(t),tn=tr("--"),ti=tr("var(--"),to=t=>!!ti(t)&&ts.test(t.split("/*")[0].trim()),ts=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function ta(t){return"string"==typeof t&&t.split("/*")[0].includes("var(--")}let tl=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,tu=t=>180*t/Math.PI,th=t=>td(tu(Math.atan2(t[1],t[0]))),tc={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:th,rotateZ:th,skewX:t=>tu(Math.atan(t[1])),skewY:t=>tu(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},td=t=>((t%=360)<0&&(t+=360),t),tf=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),tp=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),tm={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:tf,scaleY:tp,scale:t=>(tf(t)+tp(t))/2,rotateX:t=>td(tu(Math.atan2(t[6],t[5]))),rotateY:t=>td(tu(Math.atan2(-t[2],t[0]))),rotateZ:th,rotate:th,skewX:t=>tu(Math.atan(t[4])),skewY:t=>tu(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function tg(t){return+!!t.includes("scale")}function tv(t,e){let r,n;if(!t||"none"===t)return tg(e);let i=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(i)r=tm,n=i;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=tc,n=e}if(!n)return tg(e);let o=r[e],s=n[1].split(",").map(ty);return"function"==typeof o?o(s):s[o]}function ty(t){return parseFloat(t.trim())}let tx=t=>t===u||t===M,tw=new Set(["x","y","z"]),tb=s.filter(t=>!tw.has(t)),tT={width:({x:t},{paddingLeft:e="0",paddingRight:r="0",boxSizing:n})=>{let i=t.max-t.min;return"border-box"===n?i:i-parseFloat(e)-parseFloat(r)},height:({y:t},{paddingTop:e="0",paddingBottom:r="0",boxSizing:n})=>{let i=t.max-t.min;return"border-box"===n?i:i-parseFloat(e)-parseFloat(r)},top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>tv(e,"x"),y:(t,{transform:e})=>tv(e,"y")};tT.translateX=tT.x,tT.translateY=tT.y;let tM=t=>t,tS={},tA=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function tP(t,e){let r=!1,n=!0,i={delta:0,timestamp:0,isProcessing:!1},o=()=>r=!0,s=tA.reduce((t,r)=>(t[r]=function(t,e){let r=new Set,n=new Set,i=!1,o=!1,s=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1},l=0;function u(e){s.has(e)&&(h.schedule(e),t()),l++,e(a)}let h={schedule:(t,e=!1,o=!1)=>{let a=o&&i?r:n;return e&&s.add(t),a.add(t),t},cancel:t=>{n.delete(t),s.delete(t)},process:t=>{if(a=t,i){o=!0;return}i=!0;let s=r;r=n,n=s,r.forEach(u),e,l=0,r.clear(),i=!1,o&&(o=!1,h.process(t))}};return h}(o,e?r:void 0),t),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:h,update:c,preRender:d,render:f,postRender:p}=s,m=()=>{let o=tS.useManualTiming,s=o?i.timestamp:performance.now();r=!1,o||(i.delta=n?1e3/60:Math.max(Math.min(s-i.timestamp,40),1)),i.timestamp=s,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),h.process(i),c.process(i),d.process(i),f.process(i),p.process(i),i.isProcessing=!1,r&&e&&(n=!1,t(m))};return{schedule:tA.reduce((e,o)=>{let a=s[o];return e[o]=(e,o=!1,s=!1)=>(!r&&(r=!0,n=!0,i.isProcessing||t(m)),a.schedule(e,o,s)),e},{}),cancel:t=>{for(let e=0;e<tA.length;e++)s[tA[e]].cancel(t)},state:i,steps:s}}let{schedule:tE,cancel:tR,state:tk,steps:tC}=tP("u">typeof requestAnimationFrame?requestAnimationFrame:tM,!0),tV=new Set,tD=!1,tI=!1,tL=!1;function tj(){if(tI){let t=Array.from(tV).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),r=new Map;e.forEach(t=>{let e,n=(e=[],tb.forEach(r=>{let n=t.getValue(r);void 0!==n&&(e.push([r,n.get()]),n.set(+!!r.startsWith("scale")))}),e);n.length&&(r.set(t,n),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=r.get(t);e&&e.forEach(([e,r])=>{t.getValue(e)?.set(r)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}tI=!1,tD=!1,tV.forEach(t=>t.complete(tL)),tV.clear()}function tF(){tV.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(tI=!0)})}class tB{constructor(t,e,r,n,i,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=r,this.motionValue=n,this.element=i,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(tV.add(this),tD||(tD=!0,tE.read(tF),tE.resolveKeyframes(tj))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:r,motionValue:n}=this;if(null===t[0]){let i=n?.get(),o=t[t.length-1];if(void 0!==i)t[0]=i;else if(r&&e){let n=r.readValue(e,o);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=o),n&&void 0===i&&n.set(t[0])}for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),tV.delete(this)}cancel(){"scheduled"===this.state&&(tV.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let tO=new Set([H,W]);function tH(t,e){let r=z(t);return tO.has(r)||(r=j),r.getAnimatableNone?r.getAnimatableNone(e):void 0}let tW=new Set(["auto","none","0"]);class tN extends tB{constructor(t,e,r,n,i){super(t,e,r,n,i,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:r}=this;if(!e||!e.current)return;super.readKeyframes();for(let r=0;r<t.length;r++){let n=t[r];if("string"==typeof n&&to(n=n.trim())){let i=function t(e,r,n=1){te(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[i,o]=function(t){let e=tl.exec(t);if(!e)return[,];let[,r,n,i]=e;return[`--${r??n}`,i]}(e);if(!i)return;let s=window.getComputedStyle(r).getPropertyValue(i);if(s){let t=s.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)?parseFloat(t):t}return to(o)?t(o,r,n+1):o}(n,e.current);void 0!==i&&(t[r]=i),r===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!Z.has(r)||2!==t.length)return;let[n,i]=t,o=Q(n),s=Q(i);if(ta(n)!==ta(i)&&tT[r]){this.needsMeasurement=!0;return}if(o!==s)if(tx(o)&&tx(s))for(let e=0;e<t.length;e++){let r=t[e];"string"==typeof r&&(t[e]=parseFloat(r))}else tT[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,r=[];for(let e=0;e<t.length;e++)(null===t[e]||function(t){if("number"==typeof t)return 0===t;if(null===t)return!0;return"none"===t||"0"===t||/^0[^.\s]+$/u.test(t)}(t[e]))&&r.push(e);r.length&&function(t,e,r){let n,i=0;for(;i<t.length&&!n;){let e=t[i];"string"==typeof e&&!tW.has(e)&&I(e).values.length&&(n=t[i]),i++}if(n&&r)for(let i of e)t[i]=tH(r,n)}(t,r,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:r}=this;if(!t||!t.current)return;"height"===r&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=tT[r](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let n=e[e.length-1];void 0!==n&&t.getValue(r,n).jump(n,!1)}measureEndState(){let{element:t,name:e,unresolvedKeyframes:r}=this;if(!t||!t.current)return;let n=t.getValue(e);n&&n.jump(this.measuredOrigin,!1);let i=r.length-1,o=r[i];r[i]=tT[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEach(([e,r])=>{t.getValue(e).set(r)}),this.resolveNoneKeyframes()}}let t$=t=>1e3*t;function tU(t,e){-1===t.indexOf(e)&&t.push(e)}function tz(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}class tq{constructor(){this.subscriptions=[]}add(t){return tU(this.subscriptions,t),()=>tz(this.subscriptions,t)}notify(t,e,r){let n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](t,e,r);else for(let i=0;i<n;i++){let n=this.subscriptions[i];n&&n(t,e,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function tY(t,e,r){e.startsWith("--")?t.style.setProperty(e,r):t.style[e]=r}function tK(t){let e;return()=>(void 0===e&&(e=t()),e)}let tX={};function tG(t,e){let r=tK(t);return()=>tX[e]??r()}let tZ=tG(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),t_=t=>null!==t;function tJ(t,{repeat:e,repeatType:r="loop"},n,i=1){let o=t.filter(t_),s=i<0||e&&"loop"!==r&&e%2==1?0:o.length-1;return s&&void 0!==n?n:o[s]}class tQ{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}let t0={layout:0,mainThread:0,waapi:0},t1=t=>Array.isArray(t)&&"number"==typeof t[0],t2=tG(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),t3=(t,e,r=10)=>{let n="",i=Math.max(Math.round(e/r),2);for(let e=0;e<i;e++)n+=Math.round(1e4*t(e/(i-1)))/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},t5=([t,e,r,n])=>`cubic-bezier(${t}, ${e}, ${r}, ${n})`,t8={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:t5([0,.65,.55,1]),circOut:t5([.55,0,1,.45]),backIn:t5([.31,.01,.66,-.59]),backOut:t5([.33,1.53,.69,.99])};function t4(t){return"function"==typeof t&&"applyToOptions"in t}class t6 extends tQ{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:e,name:r,keyframes:n,pseudoElement:i,allowFlatten:o=!1,finalKeyframe:s,onComplete:a}=t;this.isPseudoElement=!!i,this.allowFlatten=o,this.options=t,te("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:t,...e}){return t4(t)&&t2()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,r,{delay:n=0,duration:i=300,repeat:o=0,repeatType:s="loop",ease:a="easeOut",times:l}={},u){let h={[e]:r};l&&(h.offset=l);let c=function t(e,r){if(e)return"function"==typeof e?t2()?t3(e,r):"ease-out":t1(e)?t5(e):Array.isArray(e)?e.map(e=>t(e,r)||t8.easeOut):t8[e]}(a,i);Array.isArray(c)&&(h.easing=c);let d={delay:n,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:"reverse"===s?"alternate":"normal"};u&&(d.pseudoElement=u);let f=t.animate(h,d);return f}(e,r,n,l,i),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let t=tJ(n,this.options,s,this.speed);this.updateMotionValue&&this.updateMotionValue(t),tY(e,r,t),this.animation.cancel()}a?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(t){let e=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=t$(t),e&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:e,rangeEnd:r,observe:n}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&tZ())?(this.animation.timeline=t,e&&(this.animation.rangeStart=e),r&&(this.animation.rangeEnd=r),tM):n(this)}}let t7=new Set(["opacity","clipPath","filter","transform"]),{schedule:t9}=tP(queueMicrotask,!1);function et(){n=void 0}let ee={now:()=>(void 0===n&&ee.set(tk.isProcessing||tS.useManualTiming?tk.timestamp:performance.now()),n),set:t=>{n=t,queueMicrotask(et)}},er=(t,e)=>e?1e3/e*t:0,en;class ei{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=ee.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let t of this.dependents)t.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=ee.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new tq);let r=this.events[t].add(e);return"change"===t?()=>{r(),tE.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,r){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return en&&en.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=ee.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return er(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function eo(t,e){return new ei(t,e)}let es=[...J,R,j],ea=new WeakMap;function el(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function eu(t){return"string"==typeof t||Array.isArray(t)}let eh=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ec=["initial",...eh];function ed(t){return el(t.animate)||ec.some(e=>eu(t[e]))}function ef(t){return!!(ed(t)||t.variants)}let ep={current:null},em={current:!1},eg="u">typeof window;function ev(t){let e=[{},{}];return t?.values.forEach((t,r)=>{e[0][r]=t.get(),e[1][r]=t.getVelocity()}),e}function ey(t,e,r,n){if("function"==typeof e){let[i,o]=ev(n);e=e(void 0!==r?r:t.custom,i,o)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[i,o]=ev(n);e=e(void 0!==r?r:t.custom,i,o)}return e}let ex=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],ew={};class eb{scrapeMotionValuesFromProps(t,e,r){return{}}constructor({parent:t,props:e,presenceContext:r,reducedMotionConfig:n,skipAnimations:i,blockInitialAnimation:o,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=tB,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=ee.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,tE.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=e.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=e,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.skipAnimationsConfig=i,this.options=a,this.blockInitialAnimation=!!o,this.isControllingVariants=ed(e),this.isVariantNode=ef(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...c}=this.scrapeMotionValuesFromProps(e,{},this);for(const t in c){const e=c[t];void 0!==l[t]&&G(e)&&e.set(l[t])}}mount(t){if(this.hasBeenMounted)for(let t in this.initialValues)this.values.get(t)?.jump(this.initialValues[t]),this.latestValues[t]=this.initialValues[t];this.current=t,ea.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(em.current||function(){if(em.current=!0,eg)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>ep.current=t.matches;t.addEventListener("change",e),e()}else ep.current=!1}(),this.shouldReduceMotion=ep.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let t in this.projection&&this.projection.unmount(),tR(this.notifyUpdate),tR(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){let r;if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),e.accelerate&&t7.has(t)&&this.current instanceof HTMLElement){let{factory:r,keyframes:n,times:i,ease:o,duration:s}=e.accelerate,a=new t6({element:this.current,name:t,keyframes:n,times:i,ease:o,duration:t$(s)}),l=r(a);this.valueSubscriptions.set(t,()=>{l(),a.cancel()});return}let n=a.has(t);n&&this.onBindTransform&&this.onBindTransform();let i=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&tE.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{i(),r&&r()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in ew){let e=ew[t];if(!e)continue;let{isEnabled:r,Feature:n}=e;if(!this.features[t]&&n&&r(this.props)&&(this.features[t]=new n(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):X()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<ex.length;e++){let r=ex[e];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);let n=t["on"+r];n&&(this.propEventSubscriptions[r]=this.on(r,n))}this.prevMotionValues=function(t,e,r){for(let n in e){let i=e[n],o=r[n];if(G(i))t.addValue(n,i);else if(G(o))t.addValue(n,eo(i,{owner:t}));else if(o!==i)if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(i):e.hasAnimated||e.set(i)}else{let e=t.getStaticValue(n);t.addValue(n,eo(void 0!==e?e:i,{owner:t}))}}for(let n in r)void 0===e[n]&&t.removeValue(n);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let r=this.values.get(t);e!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return void 0===r&&void 0!==e&&(r=eo(null===e?void 0:e,{owner:this}),this.addValue(t,r)),r}readValue(t,e){let r=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];if(null!=r){let n,i;if("string"==typeof r&&(n=r,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n)||(i=r,/^0[^.\s]+$/u.test(i))))r=parseFloat(r);else{let n;n=r,!es.find(_(n))&&j.test(e)&&(r=tH(t,e))}this.setBaseTarget(t,G(r)?r.get():r)}return G(r)?r.get():r}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e,{initial:r}=this.props;if("string"==typeof r||"object"==typeof r){let n=ey(this.props,r,this.presenceContext?.custom);n&&(e=n[t])}if(r&&void 0!==e)return e;let n=this.getBaseTargetFromProps(this.props,t);return void 0===n||G(n)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:n}on(t,e){return this.events[t]||(this.events[t]=new tq),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){t9.render(this.render)}}class eT extends eb{constructor(){super(...arguments),this.KeyframeResolver=tN}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){let r=t.style;return r?r[e]:void 0}removeValueFromRenderState(t,{vars:e,style:r}){delete e[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;G(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}function eM(t){return t.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}let eS=(t,e)=>e&&"number"==typeof t?e.transform(t):t,eA={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},eP=s.length;function eE(t,e,r){let{style:n,vars:i,transformOrigin:o}=t,l=!1,u=!1;for(let t in e){let r=e[t];if(a.has(t)){l=!0;continue}if(tn(t)){i[t]=r;continue}{let e=eS(r,$[t]);t.startsWith("origin")?(u=!0,o[t]=e):n[t]=e}}if(!e.transform&&(l||r?n.transform=function(t,e,r){let n="",i=!0;for(let o=0;o<eP;o++){let a=s[o],l=t[a];if(void 0===l)continue;let u=!0;if("number"==typeof l)u=l===+!!a.startsWith("scale");else{let t=parseFloat(l);u=a.startsWith("scale")?1===t:0===t}if(!u||r){let t=eS(l,$[a]);if(!u){i=!1;let e=eA[a]||a;n+=`${e}(${t}) `}r&&(e[a]=t)}}let o=t.pathRotation;return o&&(i=!1,n+=`rotate(${eS(o,$.pathRotation)}) `),n=n.trim(),r?n=r(e,i?"":n):i&&(n="none"),n}(e,t.transform,r):n.transform&&(n.transform="none")),u){let{originX:t="50%",originY:e="50%",originZ:r=0}=o;n.transformOrigin=`${t} ${e} ${r}`}}let eR={offset:"stroke-dashoffset",array:"stroke-dasharray"},ek={offset:"strokeDashoffset",array:"strokeDasharray"},eC=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function eV(t,{attrX:e,attrY:r,attrScale:n,pathLength:i,pathSpacing:o=1,pathOffset:s=0,...a},l,u,h){if(eE(t,a,u),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:c,style:d}=t;for(let t of(c.transform&&(d.transform=c.transform,delete c.transform),(d.transform||c.transformOrigin)&&(d.transformOrigin=c.transformOrigin??"50% 50%",delete c.transformOrigin),d.transform&&(d.transformBox=h?.transformBox??"fill-box",delete c.transformBox),eC))void 0!==c[t]&&(d[t]=c[t],delete c[t]);void 0!==e&&(c.x=e),void 0!==r&&(c.y=r),void 0!==n&&(c.scale=n),void 0!==i&&function(t,e,r=1,n=0,i=!0){t.pathLength=1;let o=i?eR:ek;t[o.offset]=`${-n}`,t[o.array]=`${e} ${r}`}(c,i,o,s,!1)}let eD=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"]),eI=t=>"string"==typeof t&&"svg"===t.toLowerCase();function eL(t,{style:e,vars:r},n,i){let o,s=t.style;for(o in e)s[o]=e[o];for(o in i?.applyProjectionStyles(s,n),r)s.setProperty(o,r[o])}function ej(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let eF={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!M.test(t))return t;else t=parseFloat(t);let r=ej(t,e.target.x),n=ej(t,e.target.y);return`${r}% ${n}%`}},eB=(t,e,r)=>t+(e-t)*r,eO={borderRadius:{...eF,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:eF,borderTopRightRadius:eF,borderBottomLeftRadius:eF,borderBottomRightRadius:eF,boxShadow:{correct:(t,{treeScale:e,projectionDelta:r})=>{let n=j.parse(t);if(n.length>5)return t;let i=j.createTransformer(t),o=+("number"!=typeof n[0]),s=r.x.scale*e.x,a=r.y.scale*e.y;n[0+o]/=s,n[1+o]/=a;let l=eB(s,a,.5);return"number"==typeof n[2+o]&&(n[2+o]/=l),"number"==typeof n[3+o]&&(n[3+o]/=l),i(n)}}};function eH(t,{layout:e,layoutId:r}){return a.has(t)||t.startsWith("origin")||(e||void 0!==r)&&(!!eO[t]||"opacity"===t)}function eW(t,e,r){let n=t.style,i=e?.style,o={};if(!n)return o;for(let e in n)(G(n[e])||i&&G(i[e])||eH(e,t)||r?.getValue(e)?.liveStyle!==void 0)&&(o[e]=n[e]);return o}function eN(t,e,r){let n=eW(t,e,r);for(let r in t)(G(t[r])||G(e[r]))&&(n[-1!==s.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=t[r]);return n}class e$ extends eT{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=X}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(a.has(e)){let t=z(e);return t&&t.default||0}return e=eD.has(e)?e:eM(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,r){return eN(t,e,r)}build(t,e,r){eV(t,e,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,e,r,n){for(let r in eL(t,e,void 0,n),e.attrs)t.setAttribute(eD.has(r)?r:eM(r),e.attrs[r])}mount(t){this.isSVGTag=eI(t.tagName),super.mount(t)}}function eU({top:t,left:e,right:r,bottom:n}){return{x:{min:e,max:r},y:{min:t,max:n}}}function ez(t){return void 0===t||1===t}function eq({scale:t,scaleX:e,scaleY:r}){return!ez(t)||!ez(e)||!ez(r)}function eY(t){return eq(t)||eK(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function eK(t){var e,r;return(e=t.x)&&"0%"!==e||(r=t.y)&&"0%"!==r}function eX(t,e,r,n,i){return void 0!==i&&(t=n+i*(t-n)),n+r*(t-n)+e}function eG(t,e=0,r=1,n,i){t.min=eX(t.min,e,r,n,i),t.max=eX(t.max,e,r,n,i)}function eZ(t,{x:e,y:r}){eG(t.x,e.translate,e.scale,e.originPoint),eG(t.y,r.translate,r.scale,r.originPoint)}function e_(t,e){t.min+=e,t.max+=e}function eJ(t,e,r,n,i=.5){let o=eB(t.min,t.max,i);eG(t,e,r,o,n)}function eQ(t,e){return"string"==typeof t?parseFloat(t)/100*(e.max-e.min):t}function e0(t,e,r){let n=r??t;eJ(t.x,eQ(e.x,n.x),e.scaleX,e.scale,e.originX),eJ(t.y,eQ(e.y,n.y),e.scaleY,e.scale,e.originY)}function e1(t,e){return eU(function(t,e){if(!e)return t;let r=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}(t.getBoundingClientRect(),e))}class e2 extends eT{constructor(){super(...arguments),this.type="html",this.renderInstance=eL}readValueFromInstance(t,e){if(a.has(e))return this.projection?.isProjecting?tg(e):((t,e)=>{let{transform:r="none"}=getComputedStyle(t);return tv(r,e)})(t,e);{let r=window.getComputedStyle(t),n=(tn(e)?r.getPropertyValue(e):r[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return e1(t,e)}build(t,e,r){eE(t,e,r.transformTemplate)}scrapeMotionValuesFromProps(t,e,r){return eW(t,e,r)}}var e3,e5=r(7620);let e8=["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 e4(t){if("string"!=typeof t||t.includes("-"));else if(e8.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var e6=r(4568),e7=r(2576);let e9=(0,e5.createContext)({strict:!1});var rt=r(2543);let re=(0,e5.createContext)({});function rr(t){return Array.isArray(t)?t.join(" "):t}let rn=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ri(t,e,r){for(let n in e)G(e[n])||eH(n,r)||(t[n]=e[n])}let ro=()=>({...rn(),attrs:{}}),rs=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function ra(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||rs.has(t)}let rl=t=>!ra(t);try{e3=require("@emotion/is-prop-valid").default,"function"==typeof e3&&(rl=t=>t.startsWith("on")?!ra(t):e3(t))}catch{}function ru(t){return G(t)?t.get():t}var rh=r(9518),rc=r(8328);let rd=t=>(e,r)=>{let n=(0,e5.useContext)(re),i=(0,e5.useContext)(rh.t),o=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},r,n,i){return{latestValues:function(t,e,r,n){let i={},o=n(t,{});for(let t in o)i[t]=ru(o[t]);let{initial:s,animate:a}=t,l=ed(t),u=ef(t);e&&u&&!l&&!1!==t.inherit&&(void 0===s&&(s=e.initial),void 0===a&&(a=e.animate));let h=!!r&&!1===r.initial,c=(h=h||!1===s)?a:s;if(c&&"boolean"!=typeof c&&!el(c)){let e=Array.isArray(c)?c:[c];for(let r=0;r<e.length;r++){let n=ey(t,e[r]);if(n){let{transitionEnd:t,transition:e,...r}=n;for(let t in r){let e=r[t];if(Array.isArray(e)){let t=h?e.length-1:0;e=e[t]}null!==e&&(i[t]=e)}for(let e in t)i[e]=t[e]}}}return i}(r,n,i,t),renderState:e()}})(t,e,n,i);return r?o():(0,rc.M)(o)},rf=rd({scrapeMotionValuesFromProps:eW,createRenderState:rn}),rp=rd({scrapeMotionValuesFromProps:eN,createRenderState:ro}),rm={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"]},rg=!1;function rv(){return!function(){if(rg)return;let t={};for(let e in rm)t[e]={isEnabled:t=>rm[e].some(e=>!!t[e])};ew=t,rg=!0}(),ew}let ry=Symbol.for("motionComponentSymbol"),rx="data-"+eM("framerAppearId"),rw=(0,e5.createContext)({});function rb(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}var rT=r(3640);function rM(t,{forwardMotionProps:e=!1,type:r}={},n,i){n&&function(t){let e=rv();for(let r in t)e[r]={...e[r],...t[r]};ew=e}(n);let o=r?"svg"===r:e4(t),s=o?rp:rf;function a(r,n){var a;let l,u,h,c={...(0,e5.useContext)(rt.Q),...r,layoutId:function({layoutId:t}){let e=(0,e5.useContext)(e7.L).id;return e&&void 0!==t?e+"-"+t:t}(r)},{isStatic:d}=c,f=function(t){let{initial:e,animate:r}=function(t,e){if(ed(t)){let{initial:e,animate:r}=t;return{initial:!1===e||eu(e)?e:void 0,animate:eu(r)?r:void 0}}return!1!==t.inherit?e:{}}(t,(0,e5.useContext)(re));return(0,e5.useMemo)(()=>({initial:e,animate:r}),[rr(e),rr(r)])}(r),p=s(r,d);if(!d&&"u">typeof window){(0,e5.useContext)(e9).strict;let e=function(t){let{drag:e,layout:r}=rv();if(!e&&!r)return{};let n={...e,...r};return{MeasureLayout:e?.isEnabled(t)||r?.isEnabled(t)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(c);l=e.MeasureLayout,f.visualElement=function(t,e,r,n,i,o){let{visualElement:s}=(0,e5.useContext)(re),a=(0,e5.useContext)(e9),l=(0,e5.useContext)(rh.t),u=(0,e5.useContext)(rt.Q),h=u.reducedMotion,c=u.skipAnimations,d=(0,e5.useRef)(null),f=(0,e5.useRef)(!1);n=n||a.renderer,!d.current&&n&&(d.current=n(t,{visualState:e,parent:s,props:r,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:h,skipAnimations:c,isSVG:o}),f.current&&d.current&&(d.current.manuallyAnimateOnMount=!0));let p=d.current,m=(0,e5.useContext)(rw);p&&!p.projection&&i&&("html"===p.type||"svg"===p.type)&&function(t,e,r,n){let{layoutId:i,layout:o,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutAnchor:h,layoutCrossfade:c}=e;t.projection=new r(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!s||a&&rb(a),visualElement:t,animationType:"string"==typeof o?o:"both",initialPromotionConfig:n,crossfade:c,layoutScroll:l,layoutRoot:u,layoutAnchor:h})}(d.current,r,i,m);let g=(0,e5.useRef)(!1);(0,e5.useInsertionEffect)(()=>{p&&g.current&&p.update(r,l)});let v=r[rx],y=(0,e5.useRef)(!!v&&"u">typeof window&&!window.MotionHandoffIsComplete?.(v)&&window.MotionHasOptimisedAnimation?.(v));return(0,rT.E)(()=>{f.current=!0,p&&(g.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),y.current&&p.animationState&&p.animationState.animateChanges())}),(0,e5.useEffect)(()=>{p&&(!y.current&&p.animationState&&p.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(v)}),y.current=!1),p.enteringChildren=void 0)}),p}(t,p,c,i,e.ProjectionNode,o)}return(0,e6.jsxs)(re.Provider,{value:f,children:[l&&f.visualElement?(0,e6.jsx)(l,{visualElement:f.visualElement,...c}):null,function(t,e,r,{latestValues:n},i,o=!1,s){let a=(s??e4(t)?function(t,e,r,n){let i=(0,e5.useMemo)(()=>{let r=ro();return eV(r,e,eI(n),t.transformTemplate,t.style),{...r.attrs,style:{...r.style}}},[e]);if(t.style){let e={};ri(e,t.style,t),i.style={...e,...i.style}}return i}:function(t,e){let r,n,i={},o=(r=t.style||{},ri(n={},r,t),Object.assign(n,function({transformTemplate:t},e){return(0,e5.useMemo)(()=>{let r=rn();return eE(r,e,t),Object.assign({},r.vars,r.style)},[e])}(t,e)),n);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=o,i})(e,n,i,t),l=function(t,e,r){let n={};for(let i in t)("values"!==i||"object"!=typeof t.values)&&!G(t[i])&&(rl(i)||!0===r&&ra(i)||!e&&!ra(i)||t.draggable&&i.startsWith("onDrag"))&&(n[i]=t[i]);return n}(e,"string"==typeof t,o),u=t!==e5.Fragment?{...l,...a,ref:r}:{},{children:h}=e,c=(0,e5.useMemo)(()=>G(h)?h.get():h,[h]);return(0,e5.createElement)(t,{...u,children:c})}(t,r,(a=f.visualElement,u=(0,e5.useRef)(n),(0,e5.useInsertionEffect)(()=>{u.current=n}),h=(0,e5.useRef)(null),(0,e5.useCallback)(t=>{t&&p.onMount?.(t),a&&(t?a.mount(t):a.unmount());let e=u.current;if("function"==typeof e)if(t){let r=e(t);"function"==typeof r&&(h.current=r)}else h.current?(h.current(),h.current=null):e(t);else e&&(e.current=t)},[a])),p,d,e,o)]})}a.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;let l=(0,e5.forwardRef)(a);return l[ry]=t,l}class rS{constructor(t){this.isMounted=!1,this.node=t}update(){}}function rA(t,e,r){let n=t.getProps();return ey(n,e,void 0!==r?r:n.custom,t)}function rP(t,e){if(t?.inherit&&e){let{inherit:r,...n}=t;return{...e,...n}}return t}function rE(t,e){let r=t?.[e]??t?.default??t;return r!==t?rP(r,t):r}let rR=t=>Array.isArray(t);function rk(t,e){let r=t.getValue("willChange");if(G(r)&&r.add)return r.add(e);if(!r&&tS.WillChange){let r=new tS.WillChange("auto");t.addValue("willChange",r),r.add(e)}}let rC=(...t)=>t.reduce((t,e)=>r=>e(t(r)));function rV(t,e,r){return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?t+(e-t)*6*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function rD(t,e){return r=>r>0?e:t}let rI=(t,e,r)=>{let n=t*t,i=r*(e*e-n)+n;return i<0?0:Math.sqrt(i)},rL=[x,y,E];function rj(t){let e=rL.find(e=>e.test(t));if(tt(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let r=e.parse(t);return e===E&&(r=function({hue:t,saturation:e,lightness:r,alpha:n}){t/=360,r/=100;let i=0,o=0,s=0;if(e/=100){let n=r<.5?r*(1+e):r+e-r*e,a=2*r-n;i=rV(a,n,t+1/3),o=rV(a,n,t),s=rV(a,n,t-1/3)}else i=o=s=r;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*s),alpha:n}}(r)),r}let rF=(t,e)=>{let r=rj(t),n=rj(e);if(!r||!n)return rD(t,e);let i={...r};return t=>(i.red=rI(r.red,n.red,t),i.green=rI(r.green,n.green,t),i.blue=rI(r.blue,n.blue,t),i.alpha=eB(r.alpha,n.alpha,t),y.transform(i))},rB=new Set(["none","hidden"]);function rO(t,e){return r=>eB(t,e,r)}function rH(t){return"number"==typeof t?rO:"string"==typeof t?to(t)?rD:R.test(t)?rF:r$:Array.isArray(t)?rW:"object"==typeof t?R.test(t)?rF:rN:rD}function rW(t,e){let r=[...t],n=r.length,i=t.map((t,r)=>rH(t)(t,e[r]));return t=>{for(let e=0;e<n;e++)r[e]=i[e](t);return r}}function rN(t,e){let r={...t,...e},n={};for(let i in r)void 0!==t[i]&&void 0!==e[i]&&(n[i]=rH(t[i])(t[i],e[i]));return t=>{for(let e in n)r[e]=n[e](t);return r}}let r$=(t,e)=>{let r=j.createTransformer(e),n=I(t),i=I(e);if(!(n.indexes.var.length===i.indexes.var.length&&n.indexes.color.length===i.indexes.color.length&&n.indexes.number.length>=i.indexes.number.length))return tt(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),rD(t,e);if(rB.has(t)&&!i.values.length||rB.has(e)&&!n.values.length)return rB.has(t)?r=>r<=0?t:e:r=>r>=1?e:t;return rC(rW(function(t,e){let r=[],n={color:0,var:0,number:0};for(let i=0;i<e.values.length;i++){let o=e.types[i],s=t.indexes[o][n[o]],a=t.values[s]??0;r[i]=a,n[o]++}return r}(n,i),i.values),r)};function rU(t,e,r){return"number"==typeof t&&"number"==typeof e&&"number"==typeof r?eB(t,e,r):rH(t)(t,e)}let rz=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>tE.update(e,t),stop:()=>tR(e),now:()=>tk.isProcessing?tk.timestamp:ee.now()}};function rq(t){let e=0,r=t.next(e);for(;!r.done&&e<2e4;)e+=50,r=t.next(e);return e>=2e4?1/0:e}let rY=.01,rK=2,rX=.005,rG=.5;function rZ(t,e){return t*Math.sqrt(1-e*e)}let r_=["duration","bounce"],rJ=["stiffness","damping","mass"];function rQ(t,e){return e.some(e=>void 0!==t[e])}function r0(t=.3,e=.3){let r,n,i,o,s,a,u="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:h,restDelta:c}=u,d=u.keyframes[0],f=u.keyframes[u.keyframes.length-1],p={done:!1,value:d},{stiffness:m,damping:g,mass:v,duration:y,velocity:x,isResolvedFromDuration:w}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!rQ(t,rJ)&&rQ(t,r_))if(e.velocity=0,t.visualDuration){let r=2*Math.PI/(1.2*t.visualDuration),n=r*r,i=2*l(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:1,stiffness:n,damping:i}}else{let r=function({duration:t=800,bounce:e=.3,velocity:r=0,mass:n=1}){let i,o;tt(t<=t$(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-e;s=l(.05,1,s),t=l(.01,10,t/1e3),s<1?(i=e=>{let n=e*s,i=n*t;return .001-(n-r)/rZ(e,s)*Math.exp(-i)},o=e=>{let n=e*s*t,o=Math.pow(s,2)*Math.pow(e,2)*t,a=Math.exp(-n),l=rZ(Math.pow(e,2),s);return(n*r+r-o)*a*(-i(e)+.001>0?-1:1)/l}):(i=e=>-.001+Math.exp(-e*t)*((e-r)*t+1),o=e=>t*t*(r-e)*Math.exp(-e*t));let a=function(t,e,r){let n=r;for(let r=1;r<12;r++)n-=t(n)/e(n);return n}(i,o,5/t);if(t=t$(t),isNaN(a))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(a,2)*n;return{stiffness:e,damping:2*s*Math.sqrt(n*e),duration:t}}}({...t,velocity:0});(e={...e,...r,mass:1}).isResolvedFromDuration=!0}return e}({...u,velocity:-((u.velocity||0)/1e3)}),b=x||0,T=g/(2*Math.sqrt(m*v)),M=f-d,S=Math.sqrt(m/v)/1e3,A=5>Math.abs(M);if(h||(h=A?rY:rK),c||(c=A?rX:rG),T<1)i=rZ(S,T),o=(b+T*S*M)/i,r=t=>f-Math.exp(-T*S*t)*(o*Math.sin(i*t)+M*Math.cos(i*t)),s=T*S*o+M*i,a=T*S*M-o*i,n=t=>Math.exp(-T*S*t)*(s*Math.sin(i*t)+a*Math.cos(i*t));else if(1===T){r=t=>f-Math.exp(-S*t)*(M+(b+S*M)*t);let t=b+S*M;n=e=>Math.exp(-S*e)*(S*t*e-b)}else{let t=S*Math.sqrt(T*T-1);r=e=>{let r=Math.exp(-T*S*e),n=Math.min(t*e,300);return f-r*((b+T*S*M)*Math.sinh(n)+t*M*Math.cosh(n))/t};let e=(b+T*S*M)/t,i=T*S*e-M*t,o=T*S*M-e*t;n=e=>{let r=Math.exp(-T*S*e),n=Math.min(t*e,300);return r*(i*Math.sinh(n)+o*Math.cosh(n))}}let P={calculatedDuration:w&&y||null,velocity:t=>t$(n(t)),next:t=>{if(!w&&T<1){let e=Math.exp(-T*S*t),r=Math.sin(i*t),n=Math.cos(i*t),l=f-e*(o*r+M*n);return p.done=Math.abs(t$(e*(s*r+a*n)))<=h&&Math.abs(f-l)<=c,p.value=p.done?f:l,p}let e=r(t);return w?p.done=t>=y:p.done=Math.abs(t$(n(t)))<=h&&Math.abs(f-e)<=c,p.value=p.done?f:e,p},toString:()=>{let t=Math.min(rq(P),2e4),e=t3(e=>P.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return P}function r1(t,e,r){let n=Math.max(e-5,0);return er(r-t(n),e-n)}function r2({keyframes:t,velocity:e=0,power:r=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:h}){let c,d,f=t[0],p={done:!1,value:f},m=r*e,g=f+m,v=void 0===s?g:s(g);v!==g&&(m=v-f);let y=t=>-m*Math.exp(-t/n),x=t=>v+y(t),w=t=>{let e=y(t),r=x(t);p.done=Math.abs(e)<=u,p.value=p.done?v:r},b=t=>{let e;if(e=p.value,void 0!==a&&e<a||void 0!==l&&e>l){var r;c=t,d=r0({keyframes:[p.value,(r=p.value,void 0===a?l:void 0===l||Math.abs(a-r)<Math.abs(l-r)?a:l)],velocity:r1(x,t,p.value),damping:i,stiffness:o,restDelta:u,restSpeed:h})}};return b(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==c||(e=!0,w(t),b(t)),void 0!==c&&t>=c)?d.next(t-c):(e||w(t),p)}}}r0.applyToOptions=t=>{let e=function(t,e=100,r){let n=r({...t,keyframes:[0,e]}),i=Math.min(rq(n),2e4);return{type:"keyframes",ease:t=>n.next(i*t).value/e,duration:i/1e3}}(t,100,r0);return t.ease=e.ease,t.duration=t$(e.duration),t.type="keyframes",t};let r3=(t,e,r)=>(((1-3*r+3*e)*t+(3*r-6*e))*t+3*e)*t;function r5(t,e,r,n){return t===e&&r===n?tM:i=>0===i||1===i?i:r3(function(t,e,r,n,i){let o,s,a=0;do(o=r3(s=e+(r-e)/2,n,i)-t)>0?r=s:e=s;while(Math.abs(o)>1e-7&&++a<12);return s}(i,0,1,t,r),e,n)}let r8=r5(.42,0,1,1),r4=r5(0,0,.58,1),r6=r5(.42,0,.58,1),r7=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,r9=t=>e=>1-t(1-e),nt=r5(.33,1.53,.69,.99),ne=r9(nt),nr=r7(ne),nn=t=>t>=1?1:(t*=2)<1?.5*ne(t):.5*(2-Math.pow(2,-10*(t-1))),ni=t=>1-Math.sin(Math.acos(t)),no=r9(ni),ns=r7(ni),na={linear:tM,easeIn:r8,easeInOut:r6,easeOut:r4,circIn:ni,circInOut:ns,circOut:no,backIn:ne,backInOut:nr,backOut:nt,anticipate:nn},nl=t=>{if(t1(t)){te(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,r,n,i]=t;return r5(e,r,n,i)}return"string"==typeof t?(te(void 0!==na[t],`Invalid easing type '${t}'`,"invalid-easing-type"),na[t]):t},nu=(t,e,r)=>{let n=e-t;return n?(r-t)/n:1};function nh({duration:t=300,keyframes:e,times:r,ease:n="easeInOut"}){var i;let o,s=Array.isArray(n)&&"number"!=typeof n[0]?n.map(nl):nl(n),a={done:!1,value:e[0]},u=function(t,e,{clamp:r=!0,ease:n,mixer:i}={}){let o=t.length;if(te(o===e.length,"Both input and output ranges must be the same length","range-length"),1===o)return()=>e[0];if(2===o&&e[0]===e[1])return()=>e[1];let s=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());let a=function(t,e,r){let n=[],i=r||tS.mix||rU,o=t.length-1;for(let r=0;r<o;r++){let o=i(t[r],t[r+1]);e&&(o=rC(Array.isArray(e)?e[r]||tM:e,o)),n.push(o)}return n}(e,n,i),u=a.length,h=r=>{if(s&&r<t[0])return e[0];let n=0;if(u>1)for(;n<t.length-2&&!(r<t[n+1]);n++);let i=nu(t[n],t[n+1],r);return a[n](i)};return r?e=>h(l(t[0],t[o-1],e)):h}((i=r&&r.length===e.length?r:(!function(t,e){let r=t[t.length-1];for(let n=1;n<=e;n++){let i=nu(0,e,n);t.push(eB(r,1,i))}}(o=[0],e.length-1),o),i.map(e=>e*t)),e,{ease:Array.isArray(s)?s:e.map(()=>s||r6).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(a.value=u(e),a.done=e>=t,a)}}let nc={decay:r2,inertia:r2,tween:nh,keyframes:nh,spring:r0};function nd(t){"string"==typeof t.type&&(t.type=nc[t.type])}let nf=t=>t/100;class np extends tQ{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==ee.now()&&this.tick(ee.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},t0.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;nd(t);let{type:e=nh,repeat:r=0,repeatDelay:n=0,repeatType:i,velocity:o=0}=t,{keyframes:s}=t,a=e||nh;a!==nh&&"number"!=typeof s[0]&&(this.mixKeyframes=rC(nf,rU(s[0],s[1])),s=[0,100]);let l=a({...t,keyframes:s});"mirror"===i&&(this.mirroredGenerator=a({...t,keyframes:[...s].reverse(),velocity:-o})),null===l.calculatedDuration&&(l.calculatedDuration=rq(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+n,this.totalDuration=this.resolvedDuration*(r+1)-n,this.generator=l}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let r,{generator:n,totalDuration:i,mixKeyframes:o,mirroredGenerator:s,resolvedDuration:a,calculatedDuration:u}=this;if(null===this.startTime)return n.next(0);let{delay:h=0,keyframes:c,repeat:d,repeatType:f,repeatDelay:p,type:m,onUpdate:g,finalKeyframe:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let y=this.currentTime-h*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?y<0:y>i;this.currentTime=Math.max(y,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=i);let w=this.currentTime,b=n;if(d){let t=Math.min(this.currentTime,i)/a,e=Math.floor(t),r=t%1;!r&&t>=1&&(r=1),1===r&&e--,(e=Math.min(e,d+1))%2&&("reverse"===f?(r=1-r,p&&(r-=p/a)):"mirror"===f&&(b=s)),w=l(0,1,r)*a}x?(this.delayState.value=c[0],r=this.delayState):r=b.next(w),o&&!x&&(r.value=o(r.value));let{done:T}=r;x||null===u||(T=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);let M=null===this.holdTime&&("finished"===this.state||"running"===this.state&&T);return M&&m!==r2&&(r.value=tJ(c,this.options,v,this.speed)),g&&g(r.value),M&&this.finish(),r}then(t,e){return this.finished.then(t,e)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return this.currentTime/1e3}set time(t){t=t$(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){let t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);let e=this.generator.next(t).value;return r1(t=>this.generator.next(t).value,t,e)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;e&&this.driver&&this.updateTime(ee.now()),this.playbackSpeed=t,e&&this.driver&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:t=rz,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();let r=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=r):null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime||(this.startTime=e??r),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(ee.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,t0.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}let nm={anticipate:nn,backInOut:nr,circInOut:ns};class ng extends t6{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in nm&&(t.ease=nm[t.ease])}(t),nd(t),super(t),void 0!==t.startTime&&!1!==t.autoplay&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:r,onComplete:n,element:i,...o}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let s=new np({...o,autoplay:!1}),a=Math.max(10,ee.now()-this.startTime),u=l(0,10,a-10),h=s.sample(a).value,{name:c}=this.options;i&&c&&tY(i,c,h),e.setWithVelocity(s.sample(Math.max(0,a-u)).value,h,u),s.stop()}}let nv=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(j.test(t)||"0"===t)&&!t.startsWith("url("));function ny(t){t.duration=0,t.type="keyframes"}let nx=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,nw=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),nb=tK(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class nT extends tQ{constructor({autoplay:t=!0,delay:e=0,type:r="keyframes",repeat:n=0,repeatDelay:i=0,repeatType:o="loop",keyframes:s,name:a,motionValue:l,element:u,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=ee.now();const c={autoplay:t,delay:e,type:r,repeat:n,repeatDelay:i,repeatType:o,name:a,motionValue:l,element:u,...h},d=u?.KeyframeResolver||tB;this.keyframeResolver=new d(s,(t,e,r)=>this.onKeyframesResolved(t,e,c,!r),a,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,r,n){let i;this.keyframeResolver=void 0;let{name:o,type:s,velocity:a,delay:l,isHandoff:u,onUpdate:h}=r;this.resolvedAt=ee.now();let c=!0;!function(t,e,r,n){let i=t[0];if(null===i)return!1;if("display"===e||"visibility"===e)return!0;let o=t[t.length-1],s=nv(i,e),a=nv(o,e);return tt(s===a,`You are trying to animate ${e} from "${i}" to "${o}". "${s?o:i}" is not an animatable value.`,"value-not-animatable"),!!s&&!!a&&(function(t){let e=t[0];if(1===t.length)return!0;for(let r=0;r<t.length;r++)if(t[r]!==e)return!0}(t)||("spring"===r||t4(r))&&n)}(t,o,s,a)&&(c=!1,(tS.instantAnimations||!l)&&h?.(tJ(t,r,e)),t[0]=t[t.length-1],ny(r),r.repeat=0);let d={startTime:n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...r,keyframes:t},f=c&&!u&&function(t){let{motionValue:e,name:r,repeatDelay:n,repeatType:i,damping:o,type:s,keyframes:a}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:l,transformTemplate:u}=e.owner.getProps();return nb()&&r&&(t7.has(r)||nw.has(r)&&function(t){for(let e=0;e<t.length;e++)if("string"==typeof t[e]&&nx.test(t[e]))return!0;return!1}(a))&&("transform"!==r||!u)&&!l&&!n&&"mirror"!==i&&0!==o&&"inertia"!==s}(d),p=d.motionValue?.owner?.current;if(f)try{i=new ng({...d,element:p})}catch{i=new np(d)}else i=new np(d);i.finished.then(()=>{this.notifyFinished()}).catch(tM),this.pendingTimeline&&(this.stopTimeline=i.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=i}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),tL=!0,tF(),tj(),tL=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let nM={type:"spring",stiffness:500,damping:25,restSpeed:10},nS={type:"keyframes",duration:.8},nA={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},nP=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),nE=(t,e,r,n={},i,o)=>s=>{let l=rE(n,t)||{},u=l.delay||n.delay||0,{elapsed:h=0}=n;h-=t$(u);let c={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:e.getVelocity(),...l,delay:-h,onUpdate:t=>{e.set(t),l.onUpdate&&l.onUpdate(t)},onComplete:()=>{s(),l.onComplete&&l.onComplete()},name:t,motionValue:e,element:o?void 0:i};!function(t){for(let e in t)if(!nP.has(e))return!0;return!1}(l)&&Object.assign(c,((t,{keyframes:e})=>e.length>2?nS:a.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:nM:nA)(t,c)),c.duration&&(c.duration=t$(c.duration)),c.repeatDelay&&(c.repeatDelay=t$(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let d=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(ny(c),0===c.delay&&(d=!0)),(tS.instantAnimations||tS.skipAnimations||i?.shouldSkipAnimations||l.skipAnimations)&&(d=!0,ny(c),c.delay=0),c.allowFlatten=!l.type&&!l.ease,d&&!o&&void 0!==e.get()){let t=tJ(c.keyframes,l);if(void 0!==t)return void tE.update(()=>{c.onUpdate(t),c.onComplete()})}return l.isSync?new np(c):new nT(c)};function nR(t,e,{delay:r=0,transitionOverride:n,type:i}={}){let{transition:o,transitionEnd:s,...a}=e,l=t.getDefaultTransition();o=o?rP(o,l):l;let u=o?.reduceMotion,h=o?.skipAnimations;n&&(o=n);let c=[],d=i&&t.animationState&&t.animationState.getState()[i],f=o?.path;for(let e in f&&f.animateVisualElement(t,a,o,r,c),a){let n=t.getValue(e,t.latestValues[e]??null),i=a[e];if(void 0===i||d&&function({protectedKeys:t,needsAnimating:e},r){let n=t.hasOwnProperty(r)&&!0!==e[r];return e[r]=!1,n}(d,e))continue;let s={delay:r,...rE(o||{},e)};h&&(s.skipAnimations=!0);let l=n.get();if(void 0!==l&&!n.isAnimating()&&!Array.isArray(i)&&i===l&&!s.velocity){tE.update(()=>n.set(i));continue}let f=!1;if(window.MotionHandoffAnimation){let r=t.props[rx];if(r){let t=window.MotionHandoffAnimation(r,e,tE);null!==t&&(s.startTime=t,f=!0)}}rk(t,e);let p=u??t.shouldReduceMotion;n.start(nE(e,n,i,p&&Z.has(e)?{type:!1}:s,t,f));let m=n.animation;m&&c.push(m)}if(s){let e=()=>tE.update(()=>{s&&function(t,e){let{transitionEnd:r={},transition:n={},...i}=rA(t,e)||{};for(let e in i={...i,...r}){var o;let r=rR(o=i[e])?o[o.length-1]||0:o;t.hasValue(e)?t.getValue(e).set(r):t.addValue(e,eo(r))}}(t,s)});c.length?Promise.all(c).then(e):e()}return c}function nk(t,e,r,n=0,i=1){let o=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),s=t.size,a=(s-1)*n;return"function"==typeof r?r(o,s):1===i?o*n:a-o*n}function nC(t,e,r={}){let n=rA(t,e,"exit"===r.type?t.presenceContext?.custom:void 0),{transition:i=t.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(i=r.transitionOverride);let o=n?()=>Promise.all(nR(t,n,r)):()=>Promise.resolve(),s=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:o=0,staggerChildren:s,staggerDirection:a}=i;return function(t,e,r=0,n=0,i=0,o=1,s){let a=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),a.push(nC(l,e,{...s,delay:r+("function"==typeof n?0:n)+nk(t.variantChildren,l,n,i,o)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}(t,e,n,o,s,a,r)}:()=>Promise.resolve(),{when:a}=i;if(!a)return Promise.all([o(),s(r.delay)]);{let[t,e]="beforeChildren"===a?[o,s]:[s,o];return t().then(()=>e())}}let nV=ec.length;function nD(t,e){if(!Array.isArray(e))return!1;let r=e.length;if(r!==t.length)return!1;for(let n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}let nI=[...eh].reverse(),nL=eh.length;function nj(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function nF(){return{animate:nj(!0),whileInView:nj(),whileHover:nj(),whileTap:nj(),whileDrag:nj(),whileFocus:nj(),exit:nj()}}class nB extends rS{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:r})=>(function(t,e,r={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>nC(t,e,r)));else if("string"==typeof e)n=nC(t,e,r);else{let i="function"==typeof e?rA(t,e,r.custom):e;n=Promise.all(nR(t,i,r))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,r))),r=nF(),n=!0,i=!1,o=e=>(r,n)=>{let i=rA(t,n,"exit"===e?t.presenceContext?.custom:void 0);if(i){let{transition:t,transitionEnd:e,...n}=i;r={...r,...n,...e}}return r};function s(s){let{props:a}=t,l=function t(e){if(!e)return;if(!e.isControllingVariants){let r=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(r.initial=e.props.initial),r}let r={};for(let t=0;t<nV;t++){let n=ec[t],i=e.props[n];(eu(i)||!1===i)&&(r[n]=i)}return r}(t.parent)||{},u=[],h=new Set,c={},d=1/0;for(let e=0;e<nL;e++){var f,p;let m=nI[e],g=r[m],v=void 0!==a[m]?a[m]:l[m],y=eu(v),x=m===s?g.isActive:null;!1===x&&(d=e);let w=v===l[m]&&v!==a[m]&&y;if(w&&(n||i)&&t.manuallyAnimateOnMount&&(w=!1),g.protectedKeys={...c},!g.isActive&&null===x||!v&&!g.prevProp||el(v)||"boolean"==typeof v)continue;if("exit"===m&&g.isActive&&!0!==x){g.prevResolvedValues&&(c={...c,...g.prevResolvedValues});continue}let b=(f=g.prevProp,"string"==typeof(p=v)?p!==f:!!Array.isArray(p)&&!nD(p,f)),T=b||m===s&&g.isActive&&!w&&y||e>d&&y,M=!1,S=Array.isArray(v)?v:[v],A=S.reduce(o(m),{});!1===x&&(A={});let{prevResolvedValues:P={}}=g,E={...P,...A},R=e=>{T=!0,h.has(e)&&(M=!0,h.delete(e)),g.needsAnimating[e]=!0;let r=t.getValue(e);r&&(r.liveStyle=!1)};for(let t in E){let e=A[t],r=P[t];if(!c.hasOwnProperty(t))(rR(e)&&rR(r)?!nD(e,r)||b:e!==r)?null!=e?R(t):h.add(t):void 0!==e&&h.has(t)?R(t):g.protectedKeys[t]=!0}g.prevProp=v,g.prevResolvedValues=A,g.isActive&&(c={...c,...A}),(n||i)&&t.blockInitialAnimation&&(T=!1);let k=w&&b,C=!k||M;T&&C&&u.push(...S.map(e=>{let r={type:m};if("string"==typeof e&&(n||i)&&!k&&t.manuallyAnimateOnMount&&t.parent){let{parent:n}=t,i=rA(n,e);if(n.enteringChildren&&i){let{delayChildren:e}=i.transition||{};r.delay=nk(n.enteringChildren,t,e)}}return{animation:e,options:r}}))}if(h.size){let e={};if("boolean"!=typeof a.initial){let r=rA(t,Array.isArray(a.initial)?a.initial[0]:a.initial);r&&r.transition&&(e.transition=r.transition)}h.forEach(r=>{let n=t.getBaseTarget(r),i=t.getValue(r);i&&(i.liveStyle=!0),e[r]=n??null}),u.push({animation:e})}let m=!!u.length;return n&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(m=!1),n=!1,i=!1,m?e(u):Promise.resolve()}return{animateChanges:s,setActive:function(e,n){if(r[e].isActive===n)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,n)),r[e].isActive=n;let i=s(e);for(let t in r)r[t].protectedKeys={};return i},setAnimateFunction:function(r){e=r(t)},getState:()=>r,reset:()=>{r=nF(),i=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();el(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let nO=0;class nH extends rS{constructor(){super(...arguments),this.id=nO++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;if(t&&!1===r){if(this.isExitComplete){let{initial:t,custom:e}=this.node.getProps();if("string"==typeof t||"object"==typeof t&&null!==t&&!Array.isArray(t)){let r=rA(this.node,t,e);if(r){let{transition:t,transitionEnd:e,...n}=r;for(let t in n)this.node.getValue(t)?.jump(n[t])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>{this.isExitComplete=!0,e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}let nW={x:!1,y:!1};function nN(t){return[t("x"),t("y")]}function n$(t){return t.max-t.min}function nU(t,e,r,n=.5){t.origin=n,t.originPoint=eB(e.min,e.max,t.origin),t.scale=n$(r)/n$(e),t.translate=eB(r.min,r.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function nz(t,e,r,n){nU(t.x,e.x,r.x,n?n.originX:void 0),nU(t.y,e.y,r.y,n?n.originY:void 0)}function nq(t,e,r,n=0){t.min=(n?eB(r.min,r.max,n):r.min)+e.min,t.max=t.min+n$(e)}function nY(t,e,r,n=0){let i=n?eB(r.min,r.max,n):r.min;t.min=e.min-i,t.max=t.min+n$(e)}function nK(t,e,r,n){nY(t.x,e.x,r.x,n?.x),nY(t.y,e.y,r.y,n?.y)}let nX=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),nG=new Set(["INPUT","SELECT","TEXTAREA"]);function nZ(t,e,r,n={passive:!0}){return t.addEventListener(e,r,n),()=>t.removeEventListener(e,r)}var n_=r(2606);function nJ(t){return(0,n_.G)(t)&&"ownerSVGElement"in t}function nQ(t,e,r){if(null==t)return[];if(t instanceof EventTarget)return[t];if("string"==typeof t){let n=document;e&&(n=e.current);let i=r?.[t]??n.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t).filter(t=>null!=t)}let n0=new WeakMap,n1=(t,e,r)=>(n,i)=>i&&i[0]?i[0][t+"Size"]:nJ(n)&&"getBBox"in n?n.getBBox()[e]:n[r],n2=n1("inline","width","offsetWidth"),n3=n1("block","height","offsetHeight");function n5({target:t,borderBoxSize:e}){n0.get(t)?.forEach(r=>{r(t,{get width(){return n2(t,e)},get height(){return n3(t,e)}})})}function n8(t){t.forEach(n5)}let n4=new Set;function n6(t,e){let r;return"function"==typeof t?(n4.add(t),o||(o=()=>{let t={get width(){return window.innerWidth},get height(){return window.innerHeight}};n4.forEach(e=>e(t))},window.addEventListener("resize",o)),()=>{n4.delete(t),n4.size||"function"!=typeof o||(window.removeEventListener("resize",o),o=void 0)}):(!i&&"u">typeof ResizeObserver&&(i=new ResizeObserver(n8)),(r=nQ(t)).forEach(t=>{let r=n0.get(t);r||(r=new Set,n0.set(t,r)),r.add(e),i?.observe(t)}),()=>{r.forEach(t=>{let r=n0.get(t);r?.delete(e),r?.size||i?.unobserve(t)})})}let n7=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function n9(t){return{point:{x:t.pageX,y:t.pageY}}}function it(t,e,r,n){return nZ(t,e,t=>n7(t)&&r(t,n9(t)),n)}let ie=({current:t})=>t?t.ownerDocument.defaultView:null,ir=(t,e)=>Math.abs(t-e),ii=new Set(["auto","scroll"]);class io{constructor(t,e,{transformPagePoint:r,contextWindow:n=window,dragSnapToOrigin:i=!1,distanceThreshold:o=3,element:s}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=t=>{this.handleScroll(t.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=is(this.lastRawMoveEventInfo,this.transformPagePoint));let r=il(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,i=(t=r.offset,e={x:0,y:0},Math.sqrt(ir(t.x,e.x)**2+ir(t.y,e.y)**2)>=this.distanceThreshold);if(!n&&!i)return;let{point:o}=r,{timestamp:s}=tk;this.history.push({...o,timestamp:s});let{onStart:a,onMove:l}=this.handlers;n||(a&&a(this.lastMoveEvent,r),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,r)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastRawMoveEventInfo=e,this.lastMoveEventInfo=is(e,this.transformPagePoint),tE.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:r,onSessionEnd:n,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=il("pointercancel"===t.type?this.lastMoveEventInfo:is(e,this.transformPagePoint),this.history);this.startEvent&&r&&r(t,o),n&&n(t,o)},!n7(t))return;this.dragSnapToOrigin=i,this.handlers=e,this.transformPagePoint=r,this.distanceThreshold=o,this.contextWindow=n||window;const a=is(n9(t),this.transformPagePoint),{point:l}=a,{timestamp:u}=tk;this.history=[{...l,timestamp:u}];const{onSessionStart:h}=e;h&&h(t,il(a,this.history)),this.removeListeners=rC(it(this.contextWindow,"pointermove",this.handlePointerMove),it(this.contextWindow,"pointerup",this.handlePointerUp),it(this.contextWindow,"pointercancel",this.handlePointerUp)),s&&this.startScrollTracking(s)}startScrollTracking(t){let e=t.parentElement;for(;e;){let t=getComputedStyle(e);(ii.has(t.overflowX)||ii.has(t.overflowY))&&this.scrollPositions.set(e,{x:e.scrollLeft,y:e.scrollTop}),e=e.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){let e=this.scrollPositions.get(t);if(!e)return;let r=t===window,n=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},i={x:n.x-e.x,y:n.y-e.y};(0!==i.x||0!==i.y)&&(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(t,n),tE.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),tR(this.updatePoint)}}function is(t,e){return e?{point:e(t.point)}:t}function ia(t,e){return{x:t.x-e.x,y:t.y-e.y}}function il({point:t},e){return{point:t,delta:ia(t,iu(e)),offset:ia(t,e[0]),velocity:function(t){if(t.length<2)return{x:0,y:0};let e=t.length-1,r=null,n=iu(t);for(;e>=0&&(r=t[e],!(n.timestamp-r.timestamp>t$(.1)));)e--;if(!r)return{x:0,y:0};r===t[0]&&t.length>2&&n.timestamp-r.timestamp>2*t$(.1)&&(r=t[1]);let i=(n.timestamp-r.timestamp)/1e3;if(0===i)return{x:0,y:0};let o={x:(n.x-r.x)/i,y:(n.y-r.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e)}}function iu(t){return t[t.length-1]}function ih(t,e,r){return{min:void 0!==e?t.min+e:void 0,max:void 0!==r?t.max+r-(t.max-t.min):void 0}}function ic(t,e){let r=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([r,n]=[n,r]),{min:r,max:n}}function id(t,e,r){return{min:ip(t,e),max:ip(t,r)}}function ip(t,e){return"number"==typeof t?t:t[e]||0}let im=new WeakMap;class ig{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=X(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:r}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let i=t=>{e&&this.snapToCursor(n9(t).point),this.stopAnimation()},o=(t,e)=>{let{drag:r,dragPropagation:n,onDragStart:i}=this.getProps();if(r&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(nW[t])return null;else return nW[t]=!0,()=>{nW[t]=!1};return nW.x||nW.y?null:(nW.x=nW.y=!0,()=>{nW.x=nW.y=!1})}(r),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),nN(t=>{let e=this.getAxisMotionValue(t).get()||0;if(T.test(e)){let{projection:r}=this.visualElement;if(r&&r.layout){let n=r.layout.layoutBox[t];n&&(e=n$(n)*(parseFloat(e)/100))}}this.originPoint[t]=e}),i&&tE.update(()=>i(t,e),!1,!0),rk(this.visualElement,"transform");let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},s=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:r,dragDirectionLock:n,onDirectionLock:i,onDrag:o}=this.getProps();if(!r&&!this.openDragLock)return;let{offset:s}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t,e=10){let r=null;return Math.abs(t.y)>e?r="y":Math.abs(t.x)>e&&(r="x"),r}(s),null!==this.currentDirection&&i&&i(this.currentDirection);return}this.updateAxis("x",e.point,s),this.updateAxis("y",e.point,s),this.visualElement.render(),o&&tE.update(()=>o(t,e),!1,!0)},a=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:t}=this.getProps();(t||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new io(t,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:r,contextWindow:ie(this.visualElement),element:this.visualElement.current})}stop(t,e){let r=t||this.latestPointerEvent,n=e||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!n||!r)return;let{velocity:o}=n;this.startAnimation(o);let{onDragEnd:s}=this.getProps();s&&tE.postRender(()=>s(r,n))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,e,r){let{drag:n}=this.getProps();if(!r||!iy(t,n,this.currentDirection))return;let i=this.getAxisMotionValue(t),o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=function(t,{min:e,max:r},n){return void 0!==e&&t<e?t=n?eB(e,t,n.min):Math.max(t,e):void 0!==r&&t>r&&(t=n?eB(r,t,n.max):Math.min(t,r)),t}(o,this.constraints[t],this.elastic[t])),i.set(o)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;t&&rb(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=function(t,{top:e,left:r,bottom:n,right:i}){return{x:ih(t.x,r,i),y:ih(t.y,e,n)}}(r.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:id(t,"left","right"),y:id(t,"top","bottom")}}(e),n!==this.constraints&&!rb(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&nN(t=>{var e,n;let i;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=r.layoutBox[t],n=this.constraints[t],i={},void 0!==n.min&&(i.min=n.min-e.min),void 0!==n.max&&(i.max=n.max-e.min),i))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:r}=this.getProps();if(!e||!rb(e))return!1;let n=e.current;te(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;i.root&&(i.root.scroll=void 0,i.root.updateScroll());let o=function(t,e,r){let n=e1(t,r),{scroll:i}=e;return i&&(e_(n.x,i.offset.x),e_(n.y,i.offset.y)),n}(n,i.root,this.visualElement.getTransformPagePoint()),s=(t=i.layout.layoutBox,{x:ic(t.x,o.x),y:ic(t.y,o.y)});if(r){let t=r(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(s));this.hasMutatedConstraints=!!t,t&&(s=eU(t))}return s}startAnimation(t){let{drag:e,dragMomentum:r,dragElastic:n,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{};return Promise.all(nN(s=>{if(!iy(s,e,this.currentDirection))return;let l=a&&a[s]||{};(!0===o||o===s)&&(l={min:0,max:0});let u={type:"inertia",velocity:r?t[s]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(s,u)})).then(s)}startAxisValueAnimation(t,e){let r=this.getAxisMotionValue(t);return rk(this.visualElement,t),r.start(nE(t,r,0,e,this.visualElement,!1))}stopAnimation(){nN(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`;return this.visualElement.getProps()[e]||this.visualElement.getValue(t,this.visualElement.latestValues[t]??0)}snapToCursor(t){nN(e=>{let{drag:r}=this.getProps();if(!iy(e,r,this.currentDirection))return;let{projection:n}=this.visualElement,i=this.getAxisMotionValue(e);if(n&&n.layout){let{min:r,max:o}=n.layout.layoutBox[e],s=i.get()||0;i.set(t[e]-eB(r,o,.5)+s)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:r}=this.visualElement;if(!rb(e)||!r||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};nN(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var r,i;let o,s,a,u=e.get();n[t]=(r={min:u,max:u},i=this.constraints[t],o=.5,s=n$(r),(a=n$(i))>s?o=nu(i.min,i.max-s,r.min):s>a&&(o=nu(r.min,r.max-a,i.min)),l(0,1,o))}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),nN(e=>{if(!iy(e,t,null))return;let r=this.getAxisMotionValue(e),{min:i,max:o}=this.constraints[e];r.set(eB(i,o,n[e]))}),this.visualElement.render()}addListeners(){let t;if(!this.visualElement.current)return;im.set(this.visualElement,this);let e=this.visualElement.current,r=it(e,"pointerdown",t=>{let{drag:r,dragListener:n=!0}=this.getProps(),i=t.target,o=i!==e&&(nG.has(i.tagName)||!0===i.isContentEditable);r&&n&&!o&&this.start(t)}),n=()=>{var r,n,i;let o,s,{dragConstraints:a}=this.getProps();rb(a)&&a.current&&(this.constraints=this.resolveRefConstraints(),t||(r=e,n=a.current,o=n6(r,iv(i=()=>this.scalePositionWithinConstraints())),s=n6(n,iv(i)),t=()=>{o(),s()}))},{projection:i}=this.visualElement,o=i.addEventListener("measure",n);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),tE.read(n);let s=nZ(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(nN(e=>{let r=this.getAxisMotionValue(e);r&&(this.originPoint[e]+=t[e].translate,r.set(r.get()+t[e].translate))}),this.visualElement.render())});return()=>{s(),r(),o(),a&&a(),t&&t()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:r=!1,dragPropagation:n=!1,dragConstraints:i=!1,dragElastic:o=.35,dragMomentum:s=!0}=t;return{...t,drag:e,dragDirectionLock:r,dragPropagation:n,dragConstraints:i,dragElastic:o,dragMomentum:s}}}function iv(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function iy(t,e,r){return(!0===e||e===t)&&(null===r||r===t)}class ix extends rS{constructor(t){super(t),this.removeGroupControls=tM,this.removeListeners=tM,this.controls=new ig(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tM}update(){let{dragControls:t}=this.node.getProps(),{dragControls:e}=this.node.prevProps||{};t!==e&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}let iw=t=>(e,r)=>{t&&tE.update(()=>t(e,r),!1,!0)};class ib extends rS{constructor(){super(...arguments),this.removePointerDownListener=tM}onPointerDown(t){this.session=new io(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ie(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:r,onPanEnd:n}=this.node.getProps();return{onSessionStart:iw(t),onStart:iw(e),onMove:iw(r),onEnd:(t,e)=>{delete this.session,n&&tE.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=it(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let iT={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var iM=r(873);let iS=!1;class iA extends e5.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:r,layoutId:n}=this.props,{projection:i}=t;i&&(e.group&&e.group.add(i),r&&r.register&&n&&r.register(i),iS&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),iT.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:r,drag:n,isPresent:i}=this.props,{projection:o}=r;return o&&(o.isPresent=i,t.layoutDependency!==e&&o.setOptions({...o.options,layoutDependency:e}),iS=!0,n||t.layoutDependency!==e||void 0===e||t.isPresent!==i?o.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?o.promote():o.relegate()||tE.postRender(()=>{let t=o.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:t,layoutAnchor:e}=this.props,{projection:r}=t;r&&(r.options.layoutAnchor=e,r.root.didUpdate(),t9.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:r}=this.props,{projection:n}=t;iS=!0,n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),r&&r.deregister&&r.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function iP(t){let[e,r]=(0,iM.xQ)(),n=(0,e5.useContext)(e7.L);return(0,e6.jsx)(iA,{...t,layoutGroup:n,switchLayoutGroup:(0,e5.useContext)(rw),isPresent:e,safeToRemove:r})}let iE=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],iR=iE.length,ik=t=>"string"==typeof t?parseFloat(t):t,iC=t=>"number"==typeof t||M.test(t);function iV(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let iD=iL(0,.5,no),iI=iL(.5,.95,tM);function iL(t,e,r){return n=>n<t?0:n>e?1:r(nu(t,e,n))}function ij(t,e){t.min=e.min,t.max=e.max}function iF(t,e){ij(t.x,e.x),ij(t.y,e.y)}function iB(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function iO(t,e,r,n,i){return t-=e,t=n+1/r*(t-n),void 0!==i&&(t=n+1/i*(t-n)),t}function iH(t,e,[r,n,i],o,s){!function(t,e=0,r=1,n=.5,i,o=t,s=t){if(T.test(e)&&(e=parseFloat(e),e=eB(s.min,s.max,e/100)-s.min),"number"!=typeof e)return;let a=eB(o.min,o.max,n);t===o&&(a-=e),t.min=iO(t.min,e,r,a,i),t.max=iO(t.max,e,r,a,i)}(t,e[r],e[n],e[i],e.scale,o,s)}let iW=["x","scaleX","originX"],iN=["y","scaleY","originY"];function i$(t,e,r,n){iH(t.x,e,iW,r?r.x:void 0,n?n.x:void 0),iH(t.y,e,iN,r?r.y:void 0,n?n.y:void 0)}function iU(t){return 0===t.translate&&1===t.scale}function iz(t){return iU(t.x)&&iU(t.y)}function iq(t,e){return t.min===e.min&&t.max===e.max}function iY(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function iK(t,e){return iY(t.x,e.x)&&iY(t.y,e.y)}function iX(t){return n$(t.x)/n$(t.y)}function iG(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class iZ{constructor(){this.members=[]}add(t){tU(this.members,t);for(let e=this.members.length-1;e>=0;e--){let r=this.members[e];if(r===t||r===this.lead||r===this.prevLead)continue;let n=r.instance;n&&!1!==n.isConnected||r.snapshot||(tz(this.members,r),r.unmount())}t.scheduleRender()}remove(t){if(tz(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){for(let e=this.members.indexOf(t)-1;e>=0;e--){let t=this.members[e];if(!1!==t.isPresent&&t.instance?.isConnected!==!1)return this.promote(t),!0}return!1}promote(t,e){let r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.updateSnapshot(),t.scheduleRender();let{layoutDependency:n}=r.options,{layoutDependency:i}=t.options;(void 0===n||n!==i)&&(t.resumeFrom=r,e&&(r.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),!1===t.options.crossfade&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let i_=(t,e)=>t.depth-e.depth;class iJ{constructor(){this.children=[],this.isDirty=!1}add(t){tU(this.children,t),this.isDirty=!0}remove(t){tz(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(i_),this.isDirty=!1,this.children.forEach(t)}}let iQ=["","X","Y","Z"],i0=0;function i1(t,e,r,n){let{latestValues:i}=e;i[t]&&(r[t]=i[t],e.setStaticValue(t,0),n&&(n[t]=0))}function i2({attachResizeListener:t,defaultParent:e,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(t={},r=e?.()){this.id=i0++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(i8),this.nodes.forEach(oi),this.nodes.forEach(oo),this.nodes.forEach(i4)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new iJ)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new tq),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let r=this.eventHandlers.get(t);r&&r.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;this.isSVG=nJ(e)&&!(nJ(e)&&"svg"===e.tagName),this.instance=e;let{layoutId:r,layout:n,visualElement:i}=this.options;if(i&&!i.current&&i.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||r)&&(this.isLayoutDirty=!0),t){let r,n=0,i=()=>this.root.updateBlockedByResize=!1;tE.read(()=>{n=window.innerWidth}),t(e,()=>{let t=window.innerWidth;if(t!==n){let e,o;n=t,this.root.updateBlockedByResize=!0,r&&r(),e=ee.now(),o=({timestamp:t})=>{let r=t-e;r>=250&&(tR(o),i(r-250))},tE.setup(o,!0),r=()=>tR(o),iT.hasAnimatedSinceResize&&(iT.hasAnimatedSinceResize=!1,this.nodes.forEach(on))}})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&i&&(r||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:r,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let o=this.options.transition||i.getDefaultTransition()||oc,{onLayoutAnimationStart:s,onLayoutAnimationComplete:a}=i.getProps(),l=!this.targetLayout||!iK(this.targetLayout,n),u=!e&&r;if(this.options.layoutRoot||this.resumeFrom||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...rE(o,"layout"),onPlay:s,onComplete:a};(i.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,u,e.path)}else e||on(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),tR(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(os),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:r}=e.options;if(!r)return;let n=r.props[rx];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",tE,!(t||r))}let{parent:i}=e;i&&!i.hasCheckedOptimisedAppear&&t(i)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,("string"==typeof e.latestValues.x||"string"==typeof e.latestValues.y)&&(e.isLayoutDirty=!0),e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:r}=this.options;if(void 0===e&&!r)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let t=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),t&&this.nodes.forEach(i9),this.nodes.forEach(i7);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(ot);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(oe),this.nodes.forEach(or),this.nodes.forEach(i3),this.nodes.forEach(i5)):this.nodes.forEach(ot),this.clearAllSnapshots();let t=ee.now();tk.delta=l(0,1e3/60,t-tk.timestamp),tk.timestamp=t,tk.isProcessing=!0,tC.update.process(tk),tC.preRender.process(tk),tC.render.process(tk),tk.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,t9.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(i6),this.sharedNodes.forEach(oa)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tE.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){tE.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||n$(this.snapshot.measuredBox.x)||n$(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=X()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){let e=n(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!i)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!iz(this.projectionDelta),r=this.getTransformTemplate(),n=r?r(this.latestValues,""):void 0,o=n!==this.prevTransformTemplateValue;t&&this.instance&&(e||eY(this.latestValues)||o)&&(i(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let r=this.measurePageBox(),n=this.removeElementScroll(r);return t&&(n=this.removeTransform(n)),op((e=n).x),op(e.y),{animationId:this.root.animationId,measuredBox:r,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return X();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(og))){let{scroll:t}=this.root;t&&(e_(e.x,t.offset.x),e_(e.y,t.offset.y))}return e}removeElementScroll(t){let e=X();if(iF(e,t),this.scroll?.wasRoot)return e;for(let r=0;r<this.path.length;r++){let n=this.path[r],{scroll:i,options:o}=n;n!==this.root&&i&&o.layoutScroll&&(i.wasRoot&&iF(e,t),e_(e.x,i.offset.x),e_(e.y,i.offset.y))}return e}applyTransform(t,e=!1,r){let n=r||X();iF(n,t);for(let t=0;t<this.path.length;t++){let r=this.path[t];!e&&r.options.layoutScroll&&r.scroll&&r!==r.root&&(e_(n.x,-r.scroll.offset.x),e_(n.y,-r.scroll.offset.y)),eY(r.latestValues)&&e0(n,r.latestValues,r.layout?.layoutBox)}return eY(this.latestValues)&&e0(n,this.latestValues,this.layout?.layoutBox),n}removeTransform(t){let e=X();iF(e,t);for(let t=0;t<this.path.length;t++){let r,n=this.path[t];eY(n.latestValues)&&(n.instance&&(eq(n.latestValues)&&n.updateSnapshot(),iF(r=X(),n.measurePageBox())),i$(e,n.latestValues,n.snapshot?.layoutBox,r))}return eY(this.latestValues)&&i$(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==tk.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let r=!!this.resumingFrom||this!==e;if(!(t||r&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:n,layoutId:i}=this.options;if(!this.layout||!(n||i))return;this.resolvedRelativeTargetAt=tk.timestamp;let o=this.getClosestProjectingParent();if(o&&this.linkedParentVersion!==o.layoutVersion&&!o.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&o&&o.layout?this.createRelativeTarget(o,this.layout.layoutBox,o.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=X(),this.targetWithTransforms=X()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var s,a,l,u;this.forceRelativeParentToResolveTarget(),s=this.target,a=this.relativeTarget,l=this.relativeParent.target,u=this.options.layoutAnchor||void 0,nq(s.x,a.x,l.x,u?.x),nq(s.y,a.y,l.y,u?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):iF(this.target,this.layout.layoutBox),eZ(this.target,this.targetDelta)):iF(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&o&&!!o.resumingFrom==!!this.resumingFrom&&!o.options.layoutScroll&&o.target&&1!==this.animationProgress?this.createRelativeTarget(o,this.target,o.target):this.relativeParent=this.relativeTarget=void 0)}}getClosestProjectingParent(){if(!(!this.parent||eq(this.parent.latestValues)||eK(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(t,e,r){this.relativeParent=t,this.linkedParentVersion=t.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=X(),this.relativeTargetOrigin=X(),nK(this.relativeTargetOrigin,e,r,this.options.layoutAnchor||void 0),iF(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,r=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(r=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===tk.timestamp&&(r=!1),r)return;let{layout:n,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||i))return;iF(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,s=this.treeScale.y;!function(t,e,r,n=!1){let i,o,s=r.length;if(s){e.x=e.y=1;for(let a=0;a<s;a++){o=(i=r[a]).projectionDelta;let{visualElement:s}=i.options;(!s||!s.props.style||"contents"!==s.props.style.display)&&(n&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(e_(t.x,-i.scroll.offset.x),e_(t.y,-i.scroll.offset.y)),o&&(e.x*=o.x.scale,e.y*=o.y.scale,eZ(t,o)),n&&eY(i.latestValues)&&e0(t,i.latestValues,i.layout?.layoutBox))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=X());let{target:a}=t;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(iB(this.prevProjectionDelta.x,this.projectionDelta.x),iB(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),nz(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===o&&this.treeScale.y===s&&iG(this.projectionDelta.x,this.prevProjectionDelta.x)&&iG(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Y(),this.projectionDelta=Y(),this.projectionDeltaWithTransform=Y()}setAnimationOrigin(t,e=!1,r){let n,i=this.snapshot,o=i?i.latestValues:{},s={...this.latestValues},a=Y();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let l=X(),u=(i?i.source:void 0)!==(this.layout?this.layout.source:void 0),h=this.getStack(),c=!h||h.members.length<=1,d=!!(u&&!c&&!0===this.options.crossfade&&!this.path.some(oh));this.animationProgress=0;let f=r?.interpolateProjection(t);this.mixTargetDelta=e=>{let r=e/1e3,i=f?.(r);if(i?(a.x.translate=i.x,a.x.scale=eB(t.x.scale,1,r),a.x.origin=t.x.origin,a.x.originPoint=t.x.originPoint,a.y.translate=i.y,a.y.scale=eB(t.y.scale,1,r),a.y.origin=t.y.origin,a.y.originPoint=t.y.originPoint):(ol(a.x,t.x,r),ol(a.y,t.y,r)),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var h,p,m,g,v,y;nK(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),m=this.relativeTarget,g=this.relativeTargetOrigin,v=l,y=r,ou(m.x,g.x,v.x,y),ou(m.y,g.y,v.y,y),n&&(h=this.relativeTarget,p=n,iq(h.x,p.x)&&iq(h.y,p.y))&&(this.isProjectionDirty=!1),n||(n=X()),iF(n,this.relativeTarget)}u&&(this.animationValues=s,function(t,e,r,n,i,o){i?(t.opacity=eB(0,r.opacity??1,iD(n)),t.opacityExit=eB(e.opacity??1,0,iI(n))):o&&(t.opacity=eB(e.opacity??1,r.opacity??1,n));for(let i=0;i<iR;i++){let o=iE[i],s=iV(e,o),a=iV(r,o);(void 0!==s||void 0!==a)&&(s||(s=0),a||(a=0),0===s||0===a||iC(s)===iC(a)?(t[o]=Math.max(eB(ik(s),ik(a),n),0),(T.test(a)||T.test(s))&&(t[o]+="%")):t[o]=a)}(e.rotate||r.rotate)&&(t.rotate=eB(e.rotate||0,r.rotate||0,n))}(s,o,this.latestValues,r,d,c)),i&&void 0!==i.rotate&&(this.animationValues||(this.animationValues=s),this.animationValues.pathRotation=i.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(tR(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tE.update(()=>{var e,r,n;let i;iT.hasAnimatedSinceResize=!0,t0.layout++,this.motionValue||(this.motionValue=eo(0)),this.motionValue.jump(0,!1),this.currentAnimation=(e=this.motionValue,r=[0,1e3],n={...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{t0.layout--},onComplete:()=>{t0.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}},(i=G(e)?e:eo(e)).start(nE("",i,r,n)),i.animation),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:r,layout:n,latestValues:i}=t;if(e&&r&&n){if(this!==t&&this.layout&&n&&om(this.options.animationType,this.layout.layoutBox,n.layoutBox)){r=this.target||X();let e=n$(this.layout.layoutBox.x);r.x.min=t.target.x.min,r.x.max=r.x.min+e;let n=n$(this.layout.layoutBox.y);r.y.min=t.target.y.min,r.y.max=r.y.min+n}iF(e,r),e0(e,i),nz(this.projectionDeltaWithTransform,this.layoutCorrected,e,i)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new iZ),this.sharedNodes.get(t).add(e);let r=e.options.initialPromotionConfig;e.promote({transition:r?r.transition:void 0,preserveFollowOpacity:r&&r.shouldPreserveFollowOpacity?r.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:r}={}){let n=this.getStack();n&&n.promote(this,r),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:r}=t;if((r.z||r.rotate||r.rotateX||r.rotateY||r.rotateZ||r.skewX||r.skewY)&&(e=!0),!e)return;let n={};r.z&&i1("z",t,n,this.animationValues);for(let e=0;e<iQ.length;e++)i1(`rotate${iQ[e]}`,t,n,this.animationValues),i1(`skew${iQ[e]}`,t,n,this.animationValues);for(let e in t.render(),n)t.setStaticValue(e,n[e]),this.animationValues&&(this.animationValues[e]=n[e]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible){t.visibility="hidden";return}let r=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=ru(e?.pointerEvents)||"",t.transform=r?r(this.latestValues,""):"none";return}let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=ru(e?.pointerEvents)||""),this.hasProjected&&!eY(this.latestValues)&&(t.transform=r?r({},""):"none",this.hasProjected=!1);return}t.visibility="";let i=n.animationValues||n.latestValues;this.applyTransformsToTarget();let o=function(t,e,r){let n="",i=t.x.translate/e.x,o=t.y.translate/e.y,s=r?.z||0;if((i||o||s)&&(n=`translate3d(${i}px, ${o}px, ${s}px) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),r){let{transformPerspective:t,rotate:e,pathRotation:i,rotateX:o,rotateY:s,skewX:a,skewY:l}=r;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),i&&(n+=`rotate(${i}deg) `),o&&(n+=`rotateX(${o}deg) `),s&&(n+=`rotateY(${s}deg) `),a&&(n+=`skewX(${a}deg) `),l&&(n+=`skewY(${l}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(n+=`scale(${a}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,i);r&&(o=r(i,o)),t.transform=o;let{x:s,y:a}=this.projectionDelta;for(let e in t.transformOrigin=`${100*s.origin}% ${100*a.origin}% 0`,n.animationValues?t.opacity=n===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:t.opacity=n===this?void 0!==i.opacity?i.opacity:"":void 0!==i.opacityExit?i.opacityExit:0,eO){if(void 0===i[e])continue;let{correct:r,applyTo:s,isCSSVariable:a}=eO[e],l="none"===o?i[e]:r(i[e],n);if(s){let e=s.length;for(let r=0;r<e;r++)t[s[r]]=l}else a?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=n===this?ru(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(i7),this.root.sharedNodes.clear()}}}function i3(t){t.updateLayout()}function i5(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:r,measuredBox:n}=t.layout,{animationType:i}=t.options,o=e.source!==t.layout.source;if("size"===i)nN(t=>{let n=o?e.measuredBox[t]:e.layoutBox[t],i=n$(n);n.min=r[t].min,n.max=n.min+i});else if("x"===i||"y"===i){let t="x"===i?"y":"x";ij(o?e.measuredBox[t]:e.layoutBox[t],r[t])}else om(i,e.layoutBox,r)&&nN(n=>{let i=o?e.measuredBox[n]:e.layoutBox[n],s=n$(r[n]);i.max=i.min+s,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+s)});let s=Y();nz(s,r,e.layoutBox);let a=Y();o?nz(a,t.applyTransform(n,!0),e.measuredBox):nz(a,r,e.layoutBox);let l=!iz(s),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:i,layout:o}=n;if(i&&o){let s=t.options.layoutAnchor||void 0,a=X();nK(a,e.layoutBox,i.layoutBox,s);let l=X();nK(l,r,o.layoutBox,s),iK(a,l)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=l,t.relativeTargetOrigin=a,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:r,snapshot:e,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function i8(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function i4(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function i6(t){t.clearSnapshot()}function i7(t){t.clearMeasurements()}function i9(t){t.isLayoutDirty=!0,t.updateLayout()}function ot(t){t.isLayoutDirty=!1}function oe(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function or(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function on(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function oi(t){t.resolveTargetDelta()}function oo(t){t.calcProjection()}function os(t){t.resetSkewAndRotation()}function oa(t){t.removeLeadSnapshot()}function ol(t,e,r){t.translate=eB(e.translate,0,r),t.scale=eB(e.scale,1,r),t.origin=e.origin,t.originPoint=e.originPoint}function ou(t,e,r,n){t.min=eB(e.min,r.min,n),t.max=eB(e.max,r.max,n)}function oh(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let oc={duration:.45,ease:[.4,0,.1,1]},od=t=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),of=od("applewebkit/")&&!od("chrome/")?Math.round:tM;function op(t){t.min=of(t.min),t.max=of(t.max)}function om(t,e,r){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(iX(e)-iX(r)))}function og(t){return t!==t.root&&t.scroll?.wasRoot}let ov=i2({attachResizeListener:(t,e)=>nZ(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),oy={current:void 0},ox=i2({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!oy.current){let t=new ov({});t.mount(window),t.setOptions({layoutScroll:!0}),oy.current=t}return oy.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function ow(t,e){let r=nQ(t),n=new AbortController;return[r,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function ob(t,e,r){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===r);let i=n["onHover"+r];i&&tE.postRender(()=>i(e,n9(e)))}class oT extends rS{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,r={}){let[n,i,o]=ow(t,r);return n.forEach(t=>{let r,n=!1,o=!1,s=e=>{r&&(r(e),r=void 0),t.removeEventListener("pointerleave",l)},a=t=>{n=!1,window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",a),o&&(o=!1,s(t))},l=t=>{if("touch"!==t.pointerType){if(n){o=!0;return}s(t)}};t.addEventListener("pointerenter",n=>{if("touch"===n.pointerType||nW.x||nW.y)return;o=!1;let s=e(t,n);"function"==typeof s&&(r=s,t.addEventListener("pointerleave",l,i))},i),t.addEventListener("pointerdown",()=>{n=!0,window.addEventListener("pointerup",a,i),window.addEventListener("pointercancel",a,i)},i)}),o}(t,(t,e)=>(ob(this.node,e,"Start"),t=>ob(this.node,t,"End"))))}unmount(){}}class oM extends rS{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=rC(nZ(this.node.current,"focus",()=>this.onFocus()),nZ(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}var oS=r(5362);let oA=(t,e)=>!!e&&(t===e||oA(t,e.parentElement)),oP=new WeakSet;function oE(t){return e=>{"Enter"===e.key&&t(e)}}function oR(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function ok(t){return n7(t)&&!(nW.x||nW.y)}let oC=new WeakSet;function oV(t,e,r){let{props:n}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===r);let i=n["onTap"+("End"===r?"":r)];i&&tE.postRender(()=>i(e,n9(e)))}class oD extends rS{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:e,propagate:r}=this.node.props;this.unmount=function(t,e,r={}){let[n,i,o]=ow(t,r),s=t=>{let n=t.currentTarget;if(!ok(t)||oC.has(t))return;oP.add(n),r.stopPropagation&&oC.add(t);let o=e(n,t),s=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),oP.has(n)&&oP.delete(n),ok(t)&&"function"==typeof o&&o(t,{success:e})},a=t=>{s(t,n===window||n===document||r.useGlobalTarget||oA(n,t.target))},l=t=>{s(t,!1)};window.addEventListener("pointerup",a,i),window.addEventListener("pointercancel",l,i)};return n.forEach(t=>{((r.useGlobalTarget?window:t).addEventListener("pointerdown",s,i),(0,oS.s)(t))&&(t.addEventListener("focus",t=>((t,e)=>{let r=t.currentTarget;if(!r)return;let n=oE(()=>{if(oP.has(r))return;oR(r,"down");let t=oE(()=>{oR(r,"up")});r.addEventListener("keyup",t,e),r.addEventListener("blur",()=>oR(r,"cancel"),e)});r.addEventListener("keydown",n,e),r.addEventListener("blur",()=>r.removeEventListener("keydown",n),e)})(t,i)),nX.has(t.tagName)||!0===t.isContentEditable||t.hasAttribute("tabindex")||(t.tabIndex=0))}),o}(t,(t,e)=>(oV(this.node,e,"Start"),(t,{success:e})=>oV(this.node,t,e?"End":"Cancel")),{useGlobalTarget:e,stopPropagation:r?.tap===!1})}unmount(){}}let oI=new WeakMap,oL=new WeakMap,oj=t=>{let e=oI.get(t.target);e&&e(t)},oF=t=>{t.forEach(oj)},oB={some:0,all:1};class oO extends rS{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var t;let e;this.stopObserver?.();let{viewport:r={}}=this.node.getProps(),{root:n,margin:i,amount:o="some",once:s}=r,a={root:n?n.current:void 0,rootMargin:i,threshold:"number"==typeof o?o:oB[o]},l=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,s&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:r,onViewportLeave:n}=this.node.getProps(),i=e?r:n;i&&i(t)};this.stopObserver=(t=this.node.current,e=function({root:t,...e}){let r=t||document;oL.has(r)||oL.set(r,{});let n=oL.get(r),i=JSON.stringify(e);return n[i]||(n[i]=new IntersectionObserver(oF,{root:t,...e})),n[i]}(a),oI.set(t,l),e.observe(t),()=>{oI.delete(t),e.unobserve(t)})}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return r=>t[r]!==e[r]}(t,e))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}let oH=function(t,e){if("u"<typeof Proxy)return rM;let r=new Map,n=(r,n)=>rM(r,n,t,e);return new Proxy((t,e)=>n(t,e),{get:(i,o)=>"create"===o?n:(r.has(o)||r.set(o,rM(o,void 0,t,e)),r.get(o))})}({animation:{Feature:nB},exit:{Feature:nH},inView:{Feature:oO},tap:{Feature:oD},focus:{Feature:oM},hover:{Feature:oT},pan:{Feature:ib},drag:{Feature:ix,ProjectionNode:ox,MeasureLayout:iP},layout:{ProjectionNode:ox,MeasureLayout:iP}},(t,e)=>e.isSVG??e4(t)?new e$(e):new e2(e,{allowProjection:t!==e5.Fragment}))},1588:(t,e,r)=>{r.d(e,{Pv:()=>i,Qw:()=>s,XF:()=>o});var n=r(5625);let i=1;function o(t,e){return Math.max(0,t-e)}function s(t,e){if(e<=0)return 0;let r=(0,n.q)(t,0,e),o=e-r,s=r<=i,a=o<=i;return s&&a?r<=o?0:e:s?0:a?e:r}},1613:(t,e,r)=>{r.d(e,{A:()=>n});let n=(0,r(4188).A)("wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]])},1629:(t,e,r)=>{r.d(e,{h:()=>h});var n=r(7620),i=r(9052),o=r(7564),s=r(9704),a=r(2925),l=r(4528),u=r(4568);let h=n.forwardRef(function(t,e){let r=t.keepMounted??!1,{selected:n}=(0,i.G)();return r||n?(0,u.jsx)(c,{...t,ref:e}):null}),c=n.memo(n.forwardRef((t,e)=>{let{render:r,className:u,style:h,keepMounted:c,...d}=t,{selected:f}=(0,i.G)(),p=n.useRef(null),{transitionStatus:m,setMounted:g}=(0,o.$)(f),v=(0,a.o)("span",t,{ref:[e,p],state:{selected:f,transitionStatus:m},props:[{"aria-hidden":!0,children:"✔️"},d],stateAttributesMapping:l.G});return(0,s.v)({open:f,ref:p,onComplete(){f||g(!1)}}),v}))},1753:(t,e,r)=>{r.d(e,{e:()=>v});var n=r(7620),i=r(604),o=r(5853),s=r(3294),a=r(7462),l=r(2925),u=r(9052),h=r(1343),c=r(1977),d=r(6531),f=r(7089),p=r(4749),m=r(131),g=r(4568);let v=n.memo(n.forwardRef(function(t,e){let{render:r,className:v,style:y,value:x=null,label:w,disabled:b=!1,nativeButton:T=!1,...M}=t,S=n.useRef(null),A=(0,a.q)({label:w,textRef:S,indexGuessBehavior:a.G.GuessFromOrder}),{store:P,itemProps:E,setOpen:R,setValue:k,selectionRef:C,typingRef:V,valuesRef:D,multiple:I,selectedItemTextRef:L}=(0,s.ll)(),j=(0,o.P)(P,h.T.isActive,A.index),F=(0,o.P)(P,h.T.isSelected,A.index,x),B=(0,o.P)(P,h.T.isSelectedByFocus,A.index),O=(0,o.P)(P,h.T.isItemEqualToValue),H=A.index,W=-1!==H,N=n.useRef(null);(0,i.g)(()=>{if(!W)return;let t=D.current;return t[H]=x,()=>{delete t[H]}},[W,H,x,D]),(0,i.g)(()=>{if(!W)return;let t=P.state.value,e=t;I&&Array.isArray(t)&&t.length>0&&(e=t[t.length-1]),void 0!==e&&(0,p.tl)(x,e,O)&&(P.set("selectedIndex",H),S.current&&(L.current=S.current))},[W,H,I,O,P,x,L]);let $=n.useRef(null),U=n.useRef("mouse"),z=n.useRef(!1),{getButtonProps:q,buttonRef:Y}=(0,c.s)({disabled:b,focusableWhenDisabled:!0,native:T,composite:!0});function K(){C.current.dragY=0}let X=(0,l.o)("div",t,{ref:[Y,e,A.ref,N],state:{disabled:b,selected:F,highlighted:j},props:[E,{role:"option","aria-selected":F,tabIndex:j?0:-1,onKeyDown(t){$.current=t.key,P.set("activeIndex",H)," "===t.key&&V.current&&t.preventDefault()},onClick(t){let e="click"===t.type&&"touch"!==U.current,r=t.nativeEvent.pointerType,n=e&&(0,m.YF)(t.nativeEvent)&&(void 0!==r||j),i=e&&!n&&!z.current;if((z.current=!1,"keydown"!==t.type||null!==$.current)&&!b&&("keydown"!==t.type||" "!==$.current||!V.current)&&!i){$.current=null;var o=t.nativeEvent;let e=P.state.value;if(I){let t=Array.isArray(e)?e:[];k(F?(0,p.Ai)(t,x,O):[...t,x],(0,d.d)(f.Bo,o))}else k(x,(0,d.d)(f.Bo,o)),R(!1,(0,d.d)(f.Bo,o))}},onPointerEnter(t){U.current=t.pointerType},onPointerMove(t){if("mouse"===t.pointerType&&1===t.buttons){let e=C.current;e.dragY+=t.movementY,e.dragY**2>=64&&(e.allowUnselectedMouseUp=!0)}},onPointerDown(t){U.current=t.pointerType,z.current=!0,K()},onMouseUp(){if(K(),b||"touch"===U.current||z.current)return;let t=!C.current.allowSelectedMouseUp&&F,e=!C.current.allowUnselectedMouseUp&&!F;t||e||(z.current=!0,N.current?.click(),z.current=!1)}},M,q]}),G=n.useMemo(()=>({selected:F,index:H,textRef:S,selectedByFocus:B,hasRegistered:W}),[F,H,S,B,W]);return(0,g.jsx)(u.z.Provider,{value:G,children:X})}))},1814:(t,e,r)=>{r.d(e,{A:()=>n});let n=(0,r(4188).A)("funnel",[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]])},1894:(t,e,r)=>{r.d(e,{n:()=>s});var n=r(7620);let i=n.createContext(void 0),o={disableStyleElements:!1};function s(){return n.useContext(i)??o}},1977:(t,e,r)=>{r.d(e,{s:()=>u});var n=r(7620),i=r(9306),o=r(2930),s=r(604),a=r(8515),l=r(9301);function u(t={}){let{disabled:e=!1,focusableWhenDisabled:r,tabIndex:i=0,native:c=!0,composite:d}=t,f=n.useRef(null),p=(0,l.G)(!0),m=d??void 0!==p,{props:g}=function(t){let{focusableWhenDisabled:e,disabled:r,composite:i=!1,tabIndex:o=0,isNativeButton:s}=t,a=i&&!1!==e,l=i&&!1===e;return{props:n.useMemo(()=>{let t={onKeyDown(t){r&&e&&"Tab"!==t.key&&t.preventDefault()}};return i||(t.tabIndex=o,!s&&r&&(t.tabIndex=e?o:-1)),(s&&(e||a)||!s&&r)&&(t["aria-disabled"]=r),s&&(!e||l)&&(t.disabled=r),t},[i,r,e,a,l,s,o])}}({focusableWhenDisabled:r,disabled:e,composite:m,tabIndex:i,isNativeButton:c}),v=n.useCallback(()=>{let t=f.current;h(t)&&m&&e&&void 0===g.disabled&&t.disabled&&(t.disabled=!1)},[e,g.disabled,m]);return(0,s.g)(v,[v]),{getButtonProps:n.useCallback((t={})=>{let{onClick:r,onMouseDown:n,onKeyUp:i,onKeyDown:o,onPointerDown:s,...l}=t;return(0,a.v6)({onClick(t){e?t.preventDefault():r?.(t)},onMouseDown(t){e||n?.(t)},onKeyDown(t){var n;if(e||((0,a.PT)(t),o?.(t),t.baseUIHandlerPrevented))return;let i=t.target===t.currentTarget,s=t.currentTarget,l=h(s),u=!c&&(n=s,!!(n?.tagName==="A"&&n?.href)),d=i&&(c?l:!u),f="Enter"===t.key,p=" "===t.key,g=s.getAttribute("role"),v=g?.startsWith("menuitem")||"option"===g||"gridcell"===g;if(i&&m&&p){if(t.defaultPrevented&&v)return;t.preventDefault(),u||c&&l?(s.click(),t.preventBaseUIHandler()):d&&(r?.(t),t.preventBaseUIHandler());return}d&&(!c&&(p||f)&&t.preventDefault(),!c&&f&&r?.(t))},onKeyUp(t){e||(((0,a.PT)(t),i?.(t),t.target===t.currentTarget&&c&&m&&h(t.currentTarget)&&" "===t.key)?t.preventDefault():!t.baseUIHandlerPrevented&&(t.target!==t.currentTarget||c||m||" "!==t.key||r?.(t)))},onPointerDown(t){e?t.preventDefault():s?.(t)}},c?{type:"button"}:{role:"button"},g,l)},[e,g,m,c]),buttonRef:(0,o.K)(t=>{f.current=t,v()})}}function h(t){return(0,i.sb)(t)&&"BUTTON"===t.tagName}},2140:(t,e,r)=>{r.d(e,{q:()=>i});var n=r(7620);function i({controlled:t,default:e,name:r,state:o="value"}){let{current:s}=n.useRef(void 0!==t),[a,l]=n.useState(e),u=n.useCallback(t=>{s||l(t)},[]);return[s?t:a,u]}},2264:(t,e,r)=>{var n;r.d(e,{mk:()=>a,HH:()=>s,ZV:()=>o,dc:()=>l});let i=((n={}).disabled="data-disabled",n.valid="data-valid",n.invalid="data-invalid",n.touched="data-touched",n.dirty="data-dirty",n.filled="data-filled",n.focused="data-focused",n),o={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},s={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},a={disabled:!1,...s},l={valid:t=>null===t?null:t?{[i.valid]:""}:{[i.invalid]:""}}},2298:(t,e,r)=>{r.d(e,{A:()=>n});let n=(0,r(4188).A)("wifi-off",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]])},2407:(t,e,r)=>{r.d(e,{N:()=>x});var n=r(4568),i=r(7620),o=r(2576),s=r(8328),a=r(3640),l=r(9518),u=r(5362),h=r(2543);function c(t,e){if("function"==typeof t)return t(e);null!=t&&(t.current=e)}class d extends i.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if((0,u.s)(e)&&t.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let t=e.offsetParent,r=(0,u.s)(t)&&t.offsetWidth||0,n=(0,u.s)(t)&&t.offsetHeight||0,i=getComputedStyle(e),o=this.props.sizeRef.current;o.height=parseFloat(i.height),o.width=parseFloat(i.width),o.top=e.offsetTop,o.left=e.offsetLeft,o.right=r-o.width-o.left,o.bottom=n-o.height-o.top,o.direction=i.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function f({children:t,isPresent:e,anchorX:r,anchorY:o,root:s,pop:a}){let l=(0,i.useId)(),u=(0,i.useRef)(null),p=(0,i.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:m}=(0,i.useContext)(h.Q),g=function(...t){return i.useCallback(function(...t){return e=>{let r=!1,n=t.map(t=>{let n=c(t,e);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let e=0;e<n.length;e++){let r=n[e];"function"==typeof r?r():c(t[e],null)}}}}(...t),t)}(u,t.props?.ref??t?.ref);return(0,i.useInsertionEffect)(()=>{let{width:t,height:n,top:i,left:h,right:c,bottom:d,direction:f}=p.current;if(e||!1===a||!u.current||!t||!n)return;let g="rtl"===f,v="left"===r?g?`right: ${c}`:`left: ${h}`:g?`left: ${h}`:`right: ${c}`,y="bottom"===o?`bottom: ${d}`:`top: ${i}`;u.current.dataset.motionPopId=l;let x=document.createElement("style");m&&(x.nonce=m);let w=s??document.head;return w.appendChild(x),x.sheet&&x.sheet.insertRule(`
|
|
2
|
+
[data-motion-pop-id="${l}"] {
|
|
3
|
+
position: absolute !important;
|
|
4
|
+
width: ${t}px !important;
|
|
5
|
+
height: ${n}px !important;
|
|
6
|
+
${v}px !important;
|
|
7
|
+
${y}px !important;
|
|
8
|
+
}
|
|
9
|
+
`),()=>{u.current?.removeAttribute("data-motion-pop-id"),w.contains(x)&&w.removeChild(x)}},[e]),(0,n.jsx)(d,{isPresent:e,childRef:u,sizeRef:p,pop:a,children:!1===a?t:i.cloneElement(t,{ref:g})})}let p=({children:t,initial:e,isPresent:r,onExitComplete:o,custom:a,presenceAffectsLayout:u,mode:h,anchorX:c,anchorY:d,root:p})=>{let g=(0,s.M)(m),v=(0,i.useId)(),y=!0,x=(0,i.useMemo)(()=>(y=!1,{id:v,initial:e,isPresent:r,custom:a,onExitComplete:t=>{for(let e of(g.set(t,!0),g.values()))if(!e)return;o&&o()},register:t=>(g.set(t,!1),()=>g.delete(t))}),[r,g,o]);return u&&y&&(x={...x}),(0,i.useMemo)(()=>{g.forEach((t,e)=>g.set(e,!1))},[r]),i.useEffect(()=>{r||g.size||!o||o()},[r]),t=(0,n.jsx)(f,{pop:"popLayout"===h,isPresent:r,anchorX:c,anchorY:d,root:p,children:t}),(0,n.jsx)(l.t.Provider,{value:x,children:t})};function m(){return new Map}var g=r(873);let v=t=>t.key||"";function y(t){let e=[];return i.Children.forEach(t,t=>{(0,i.isValidElement)(t)&&e.push(t)}),e}let x=({children:t,custom:e,initial:r=!0,onExitComplete:l,presenceAffectsLayout:u=!0,mode:h="sync",propagate:c=!1,anchorX:d="left",anchorY:f="top",root:m})=>{let[x,w]=(0,g.xQ)(c),b=(0,i.useMemo)(()=>y(t),[t]),T=c&&!x?[]:b.map(v),M=(0,i.useRef)(!0),S=(0,i.useRef)(b),A=(0,s.M)(()=>new Map),P=(0,i.useRef)(new Set),[E,R]=(0,i.useState)(b),[k,C]=(0,i.useState)(b);(0,a.E)(()=>{M.current=!1,S.current=b;for(let t=0;t<k.length;t++){let e=v(k[t]);T.includes(e)?(A.delete(e),P.current.delete(e)):!0!==A.get(e)&&A.set(e,!1)}},[k,T.length,T.join("-")]);let V=[];if(b!==E){let t=[...b];for(let e=0;e<k.length;e++){let r=k[e],n=v(r);T.includes(n)||(t.splice(e,0,r),V.push(r))}return"wait"===h&&V.length&&(t=V),C(y(t)),R(b),null}let{forceRender:D}=(0,i.useContext)(o.L);return(0,n.jsx)(n.Fragment,{children:k.map(t=>{let i=v(t),o=(!c||!!x)&&(b===k||T.includes(i));return(0,n.jsx)(p,{isPresent:o,initial:(!M.current||!!r)&&void 0,custom:e,presenceAffectsLayout:u,mode:h,root:m,onExitComplete:o?void 0:()=>{if(P.current.has(i)||!A.has(i))return;P.current.add(i),A.set(i,!0);let t=!0;A.forEach(e=>{e||(t=!1)}),t&&(D?.(),C(S.current),c&&w?.(),l&&l())},anchorX:d,anchorY:f,children:t},i)})})}},2543:(t,e,r)=>{r.d(e,{Q:()=>n});let n=(0,r(7620).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},2576:(t,e,r)=>{r.d(e,{L:()=>n});let n=(0,r(7620).createContext)({})},2606:(t,e,r)=>{r.d(e,{G:()=>n});let n=t=>"object"==typeof t&&null!==t},2915:(t,e,r)=>{r.d(e,{A:()=>n});let n=(0,r(4188).A)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])},3045:(t,e,r)=>{r.d(e,{A:()=>n});let n=(0,r(4188).A)("radio",[["path",{d:"M16.247 7.761a6 6 0 0 1 0 8.478",key:"1fwjs5"}],["path",{d:"M19.075 4.933a10 10 0 0 1 0 14.134",key:"ehdyv1"}],["path",{d:"M4.925 19.067a10 10 0 0 1 0-14.134",key:"1q22gi"}],["path",{d:"M7.753 16.239a6 6 0 0 1 0-8.478",key:"r2q7qm"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]])},3287:(t,e,r)=>{r.d(e,{l:()=>L});var n=r(7620),i=r(7242),o=r(604),s=r(2930),a=r(5853),l=r(3294),u=r(7586),h=r(6897),c=r(7454),d=r(4568);let f=n.forwardRef(function(t,e){let r,{cutout:n,...i}=t;if(n){let t=n.getBoundingClientRect();r=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${t.left}px ${t.top}px,${t.left}px ${t.bottom}px,${t.right}px ${t.bottom}px,${t.right}px ${t.top}px,${t.left}px ${t.top}px)`}return(0,d.jsx)("div",{ref:e,role:"presentation","data-base-ui-inert":"",...i,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:r}})});var p=r(27),m=r(5674),g=r(1343),v=r(6531),y=r(7089),x=r(4749),w=r(4646),b=r(7806),T=r(9306),M=r(2014),S=r(5924),A=r(7897),P=r(8877),E=r(4372);let R={},k={},C="";class V{acquire(t){return this.lockCount+=1,1===this.lockCount&&null===this.restore&&this.timeoutLock.start(0,()=>this.lock(t)),this.release}lock(t){let e,r,n,i,o;if(0===this.lockCount||null!==this.restore)return;let s=(0,b.R)(t).documentElement,a=(0,T.zk)(s).getComputedStyle(s).overflowY;if("hidden"===a||"clip"===a){this.restore=E.tE;return}let l=S.un||!function(t){if("u"<typeof document)return!1;let e=(0,b.R)(t);return(0,T.zk)(e).innerWidth-e.documentElement.clientWidth>0}(t);this.restore=l?(r=(e=(0,b.R)(t)).documentElement,n=e.body,o={overflowY:(i=(0,T.ZU)(r)?r:n).style.overflowY,overflowX:i.style.overflowX},Object.assign(i.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(i.style,o)}):function(t){let e=(0,b.R)(t),r=e.documentElement,n=e.body,i=(0,T.zk)(r),o=0,s=0,a=!1,l=P.K.create();if(S.Tc&&(i.visualViewport?.scale??1)!==1)return()=>{};function u(){let e=i.getComputedStyle(r),l=i.getComputedStyle(n),u=(e.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";o=r.scrollTop,s=r.scrollLeft,R={scrollbarGutter:r.style.scrollbarGutter,overflowY:r.style.overflowY,overflowX:r.style.overflowX},C=r.style.scrollBehavior,k={position:n.style.position,height:n.style.height,width:n.style.width,boxSizing:n.style.boxSizing,overflowY:n.style.overflowY,overflowX:n.style.overflowX,scrollBehavior:n.style.scrollBehavior};let h=r.scrollHeight>r.clientHeight,c=r.scrollWidth>r.clientWidth,d="scroll"===e.overflowY||"scroll"===l.overflowY,f="scroll"===e.overflowX||"scroll"===l.overflowX,p=Math.max(0,i.innerWidth-n.clientWidth),m=Math.max(0,i.innerHeight-n.clientHeight),g=parseFloat(l.marginTop)+parseFloat(l.marginBottom),v=parseFloat(l.marginLeft)+parseFloat(l.marginRight),y=(0,T.ZU)(r)?r:n;if(a=function(t){if(!("u">typeof CSS&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||"u"<typeof document)return!1;let e=(0,b.R)(t),r=e.documentElement,n=e.body,i=(0,T.ZU)(r)?r:n,o=i.style.overflowY,s=r.style.scrollbarGutter;r.style.scrollbarGutter="stable",i.style.overflowY="scroll";let a=i.offsetWidth;i.style.overflowY="hidden";let l=i.offsetWidth;return i.style.overflowY=o,r.style.scrollbarGutter=s,a===l}(t)){r.style.scrollbarGutter=u,y.style.overflowY="hidden",y.style.overflowX="hidden";return}Object.assign(r.style,{scrollbarGutter:u,overflowY:"hidden",overflowX:"hidden"}),(h||d)&&(r.style.overflowY="scroll"),(c||f)&&(r.style.overflowX="scroll"),Object.assign(n.style,{position:"relative",height:g||m?`calc(100dvh - ${g+m}px)`:"100dvh",width:v||p?`calc(100vw - ${v+p}px)`:"100vw",boxSizing:"border-box",overflow:"hidden",scrollBehavior:"unset"}),n.scrollTop=o,n.scrollLeft=s,r.setAttribute("data-base-ui-scroll-locked",""),r.style.scrollBehavior="unset"}function h(){Object.assign(r.style,R),Object.assign(n.style,k),a||(r.scrollTop=o,r.scrollLeft=s,r.removeAttribute("data-base-ui-scroll-locked"),r.style.scrollBehavior=C)}u();let c=(0,M.q)(i,"resize",function(){h(),l.request(u)});return()=>{l.cancel(),h(),"function"==typeof i.removeEventListener&&c()}}(t)}constructor(){this.lockCount=0,this.restore=null,this.timeoutLock=A.E.create(),this.timeoutUnlock=A.E.create(),this.release=()=>{this.lockCount-=1,0===this.lockCount&&this.restore&&this.timeoutUnlock.start(0,this.unlock)},this.unlock=()=>{0===this.lockCount&&this.restore&&(this.restore?.(),this.restore=null)}}}let D=new V,I={position:"fixed"},L=n.forwardRef(function(t,e){var r;let{anchor:T,positionMethod:M="absolute",className:S,render:A,side:P="bottom",align:E="center",sideOffset:R=0,alignOffset:k=0,collisionBoundary:C="clipping-ancestors",collisionPadding:V,arrowPadding:L=5,sticky:j=!1,disableAnchorTracking:F,alignItemWithTrigger:B=!0,collisionAvoidance:O=p.uD,style:H,...W}=t,{store:N,listRef:$,labelsRef:U,alignItemWithTriggerActiveRef:z,selectedItemTextRef:q,valuesRef:Y,initialValueRef:K,popupRef:X,setValue:G}=(0,l.ll)(),Z=(0,l.hG)(),_=(0,a.P)(N,g.T.open),J=(0,a.P)(N,g.T.mounted),Q=(0,a.P)(N,g.T.modal),tt=(0,a.P)(N,g.T.value),te=(0,a.P)(N,g.T.openMethod),tr=(0,a.P)(N,g.T.positionerElement),tn=(0,a.P)(N,g.T.triggerElement),ti=(0,a.P)(N,g.T.isItemEqualToValue),to=(0,a.P)(N,g.T.transitionStatus),ts=n.useRef(null),ta=n.useRef(null),[tl,tu]=n.useState(B),th=J&&tl&&"touch"!==te;J||tl===B||tu(B),(0,o.g)(()=>{!J&&(g.T.scrollUpArrowVisible(N.state)&&N.set("scrollUpArrowVisible",!1),g.T.scrollDownArrowVisible(N.state)&&N.set("scrollDownArrowVisible",!1))},[N,J]),n.useImperativeHandle(z,()=>th),function(t,e,r,i){let[s,a]=n.useState(!1);(0,o.g)(()=>{if(!t||!e||null==r)return void a(!1);let n=(0,b.R)(r).documentElement.clientWidth,i=r.offsetWidth;a(n>0&&i>0&&i>=n-20)},[t,e,r]),function(t=!0,e=null){(0,o.g)(()=>{if(t)return D.acquire(e)},[t,e])}(t&&(!e||s),i)}((th||Q)&&_,"touch"===te,tr,tn);let tc=(0,h.s)({anchor:T,floatingRootContext:Z,positionMethod:M,mounted:J,side:P,sideOffset:R,align:E,alignOffset:k,arrowPadding:L,collisionBoundary:C,collisionPadding:V,sticky:j,disableAnchorTracking:F??th,collisionAvoidance:O,keepMounted:!0}),td=th?"none":tc.side,tf=th?I:tc.positionerStyles,tp={open:_,side:td,align:tc.align,anchorHidden:tc.anchorHidden};(0,o.g)(()=>{N.set("popupSide",tc.side)},[N,tc.side]);let tm=(0,s.K)(t=>{N.set("positionerElement",t)}),tg=(0,w.i)(t,tp,{styles:tf,transitionStatus:to,props:W,refs:[e,tm],hidden:!J,inert:!_}),tv=n.useRef(0),ty=(0,s.K)(t=>{if(0===t.size&&0===tv.current||0===Y.current.length)return;let e=tv.current;if(tv.current=t.size,t.size===e)return;let r=(0,v.d)(y.dv);if(0!==e&&!N.state.multiple&&null!==tt&&-1===(0,x.Vz)(Y.current,tt,ti)){let t=K.current,e=null!=t&&-1!==(0,x.Vz)(Y.current,t,ti)?t:null;G(e,r),null===e&&(N.set("selectedIndex",null),q.current=null)}if(0!==e&&N.state.multiple&&Array.isArray(tt)){let t=tt.filter(t=>-1!==(0,x.Vz)(Y.current,t,ti));(t.length!==tt.length||t.some(t=>!(0,x.kJ)(tt,t,ti)))&&(G(t,r),0===t.length&&(N.set("selectedIndex",null),q.current=null))}if(_&&th){N.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});let t={height:""};(0,m.Y)(tr,t),(0,m.Y)(X.current,t)}}),tx=n.useMemo(()=>({...tc,side:td,alignItemWithTriggerActive:th,setControlledAlignItemWithTrigger:tu,scrollUpArrowRef:ts,scrollDownArrowRef:ta}),[tc,td,th,tu]);return(0,d.jsx)(u.u,{elementsRef:$,labelsRef:U,onMapChange:ty,children:(0,d.jsxs)(c.i.Provider,{value:tx,children:[J&&Q&&(0,d.jsx)(f,{inert:(r=!_,(0,i._)(19)?r:r?"true":void 0),cutout:tn}),tg]})})})},3294:(t,e,r)=>{r.d(e,{CG:()=>o,hG:()=>l,iP:()=>s,ll:()=>a});var n=r(8933),i=r(7620);let o=i.createContext(null),s=i.createContext(null);function a(){let t=i.useContext(o);if(null===t)throw Error((0,n.A)(60));return t}function l(){let t=i.useContext(s);if(null===t)throw Error((0,n.A)(61));return t}},3508:(t,e,r)=>{r.d(e,{A:()=>n});let n=(0,r(4188).A)("plug-zap",[["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m18 3-4 4h6l-4 4",key:"16psg9"}]])},3640:(t,e,r)=>{r.d(e,{E:()=>i});var n=r(7620);let i="u">typeof window?n.useLayoutEffect:n.useEffect},3665:(t,e,r)=>{r.d(e,{f:()=>p});var n=r(7620),i=r(7897),o=r(5853),s=r(604),a=r(3294),l=r(7454),u=r(7564),h=r(9704),c=r(2925),d=r(1588),f=r(1343);let p=n.forwardRef(function(t,e){let{render:r,className:n,style:p,direction:m,keepMounted:g=!1,...v}=t,y="up"===m,{store:x,popupRef:w,listRef:b,handleScrollArrowVisibility:T,scrollArrowsMountedCountRef:M}=(0,a.ll)(),{side:S,scrollDownArrowRef:A,scrollUpArrowRef:P}=(0,l.H)(),E=y?f.T.scrollUpArrowVisible:f.T.scrollDownArrowVisible,R=(0,o.P)(x,E),k=(0,o.P)(x,f.T.openMethod),C=R&&"touch"!==k,V=(0,i.Z)(),D=y?P:A,{transitionStatus:I,setMounted:L}=(0,u.$)(C);(0,s.g)(()=>(M.current+=1,x.state.hasScrollArrows||x.set("hasScrollArrows",!0),()=>{M.current=Math.max(0,M.current-1),0===M.current&&x.state.hasScrollArrows&&x.set("hasScrollArrows",!1)}),[x,M]),(0,h.v)({open:C,ref:D,onComplete(){C||L(!1)}});let j=(0,c.o)("div",t,{ref:[e,D],state:{direction:m,visible:C,side:S,transitionStatus:I},props:[{"aria-hidden":!0,children:y?"▲":"▼",style:{position:"absolute"},onMouseMove(t){0===t.movementX&&0===t.movementY||V.isStarted()||(x.set("activeIndex",null),V.start(40,function t(){let e=x.state.listElement??w.current;if(!e)return;x.set("activeIndex",null),T();let r=(0,d.XF)(e.scrollHeight,e.clientHeight),n=(0,d.Qw)(e.scrollTop,r),i=n===(y?0:r),o=b.current;if(n!==e.scrollTop&&(e.scrollTop=n),0===o.length&&x.set(y?"scrollUpArrowVisible":"scrollDownArrowVisible",!i),i)return void V.clear();if(o.length>0){let t=D.current?.offsetHeight||0;e.scrollTop=function(t,e,r,n,i,o){if(e){let e=0,n=r+i-d.Pv;for(let r=0;r<t.length;r+=1){let i=t[r];if(i&&i.offsetTop>=n){e=r;break}}let s=Math.max(0,e-1),a=t[s];return s<e&&a?(0,d.Qw)(a.offsetTop-i,o):0}let s=t.length-1,a=r+n-i+d.Pv;for(let e=0;e<t.length;e+=1){let r=t[e];if(r&&r.offsetTop+r.offsetHeight>a){s=Math.max(0,e-1);break}}let l=Math.min(t.length-1,s+1),u=t[l];return l>s&&u?(0,d.Qw)(u.offsetTop+u.offsetHeight-n+i,o):o}(o,y,n,e.clientHeight,t,r)}V.start(40,t)}))},onMouseLeave(){V.clear()}},v]});return C||g?j:null})},3792:(t,e,r)=>{r.d(e,{w:()=>o});var n=r(7620),i=r(2925);let o=n.forwardRef(function(t,e){let{className:r,render:n,orientation:o="horizontal",style:s,...a}=t;return(0,i.o)("div",t,{state:{orientation:o},ref:e,props:[{role:"separator","aria-orientation":o},a]})})},3881:(t,e,r)=>{r.d(e,{l:()=>c});var n=r(7620),i=r(604),o=r(2930),s=r(3245),a=r(9306),l=r(4372),u=r(1531),h=r(658);function c(t={}){let{id:e,implicit:r=!1,controlRef:d}=t,{controlId:f,registerControlId:p}=(0,h.H)(),m=(0,u.e)(e),g=r?f:void 0,v=(0,s.j)(()=>Symbol("labelable-control")),y=n.useRef(!1),x=n.useRef(null!=e),w=(0,o.K)(()=>{y.current&&p!==l.tE&&(y.current=!1,p(v.current,void 0))});return(0,i.g)(()=>{let t;if(p!==l.tE){if(r){let r=d?.current;t=(0,a.vq)(r)&&null!=r.closest("label")?e??null:g??m}else if(null!=e)x.current=!0,t=e;else{if(!x.current)return void w();t=m}if(void 0===t)return void w();y.current=!0,p(v.current,t)}},[e,d,g,p,r,m,v,w]),n.useEffect(()=>w,[w]),f??m}},3932:(t,e,r)=>{r.d(e,{A:()=>n});let n=(0,r(4188).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},4071:(t,e,r)=>{r.d(e,{a:()=>o,p:()=>s});var n=r(8933),i=r(7620);let o=i.createContext(void 0);function s(){let t=i.useContext(o);if(void 0===t)throw Error((0,n.A)(53));return t}},4110:(t,e,r)=>{r.d(e,{A:()=>n});let n=(0,r(4188).A)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])},4183:(t,e,r)=>{r.d(e,{B:()=>d});var n=r(7620),i=r(2930),o=r(5853),s=r(3294),a=r(7454),l=r(2925),u=r(7833),h=r(5674),c=r(1343);let d=n.forwardRef(function(t,e){let{render:r,className:n,style:d,...f}=t,{store:p,scrollHandlerRef:m}=(0,s.ll)(),{alignItemWithTriggerActive:g}=(0,a.H)(),v=(0,o.P)(p,c.T.hasScrollArrows),y=(0,o.P)(p,c.T.openMethod),x=(0,o.P)(p,c.T.multiple),w=(0,o.P)(p,c.T.id),b={id:`${w}-list`,role:"listbox","aria-multiselectable":x||void 0,onScroll(t){m.current?.(t.currentTarget)},...g&&{style:h.O},className:v&&"touch"!==y?u.E.className:void 0},T=(0,i.K)(t=>{p.set("listElement",t)});return(0,l.o)("div",t,{ref:[e,T],props:[b,f]})})},4185:(t,e,r)=>{r.d(e,{A:()=>n});let n=(0,r(4188).A)("circle-stop",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",key:"1ssd4o"}]])},4265:(t,e,r)=>{r.d(e,{A:()=>n});let n=(0,r(4188).A)("server-cog",[["path",{d:"m10.852 14.772-.383.923",key:"11vil6"}],["path",{d:"M13.148 14.772a3 3 0 1 0-2.296-5.544l-.383-.923",key:"1v3clb"}],["path",{d:"m13.148 9.228.383-.923",key:"t2zzyc"}],["path",{d:"m13.53 15.696-.382-.924a3 3 0 1 1-2.296-5.544",key:"1bxfiv"}],["path",{d:"m14.772 10.852.923-.383",key:"k9m8cz"}],["path",{d:"m14.772 13.148.923.383",key:"1xvhww"}],["path",{d:"M4.5 10H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-.5",key:"tn8das"}],["path",{d:"M4.5 14H4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2h-.5",key:"1g2pve"}],["path",{d:"M6 18h.01",key:"uhywen"}],["path",{d:"M6 6h.01",key:"1utrut"}],["path",{d:"m9.228 10.852-.923-.383",key:"1wtb30"}],["path",{d:"m9.228 13.148-.923.383",key:"1a830x"}]])},4307:(t,e,r)=>{var n;r.d(e,{q:()=>i});let i=((n={}).scrollAreaThumbHeight="--scroll-area-thumb-height",n.scrollAreaThumbWidth="--scroll-area-thumb-width",n)},4314:(t,e,r)=>{r.d(e,{A:()=>n});let n=(0,r(4188).A)("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]])},4435:(t,e,r)=>{r.d(e,{A:()=>n});let n=(0,r(4188).A)("layout-grid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]])},4514:(t,e,r)=>{r.d(e,{V:()=>m});var n=r(7620),i=r(2014),o=r(7898),s=r(4071),a=r(93),l=r(2925),u=r(8728),h=r(4721),c=r(4307),d=r(6130),f=r(9661),p=r(4568);let m=n.forwardRef(function(t,e){let{render:r,className:m,orientation:g="vertical",keepMounted:v=!1,style:y,...x}=t,{hovering:w,scrollingX:b,scrollingY:T,hiddenState:M,overflowEdges:S,scrollbarYRef:A,scrollbarXRef:P,viewportRef:E,thumbYRef:R,thumbXRef:k,handlePointerDown:C,handlePointerUp:V,rootId:D,thumbSize:I,hasMeasuredScrollbar:L}=(0,s.p)(),j={hovering:w,scrolling:{horizontal:b,vertical:T}[g],orientation:g,hasOverflowX:!M.x,hasOverflowY:!M.y,overflowXStart:S.xStart,overflowXEnd:S.xEnd,overflowYStart:S.yStart,overflowYEnd:S.yEnd,cornerHidden:M.corner},F=(0,d.j)(),B=!L&&!v,O="vertical"===g?M.y:M.x,H=v||!O;n.useEffect(()=>{if(!H)return;let t=E.current,e="vertical"===g?A.current:P.current;if(e)return(0,i.q)(e,"wheel",function(r){if(!t||!e||r.ctrlKey)return;r.preventDefault();let n="horizontal"===g,i=n?"scrollLeft":"scrollTop",o=n?r.deltaX:r.deltaY,s=n?t.scrollWidth-t.clientWidth:t.scrollHeight-t.clientHeight,a=n&&"rtl"===F?-s:0,l=n&&"rtl"===F?0:s,u=t[i];u<=a&&o<0||u>=l&&o>0||(t[i]=Math.min(l,Math.max(a,u+o)))},{passive:!1})},[F,g,P,A,H,E]);let W={...D&&{"data-id":`${D}-scrollbar`},onPointerDown(t){if(0!==t.button)return;let e=(0,o.EW)(t.nativeEvent),r="vertical"===g?R.current:k.current;if(!(r&&(0,o.gR)(r,e))&&E.current){if(R.current&&A.current&&"vertical"===g){let e=(0,u.A)(R.current,"margin","y"),r=(0,u.A)(A.current,"padding","y"),n=R.current.offsetHeight,i=A.current.getBoundingClientRect(),o=t.clientY-i.top-n/2-r+e/2,s=E.current.scrollHeight,a=E.current.clientHeight,l=A.current.offsetHeight-n-r-e;E.current.scrollTop=o/l*(s-a)}if(k.current&&P.current&&"horizontal"===g){let e,r=(0,u.A)(k.current,"margin","x"),n=(0,u.A)(P.current,"padding","x"),i=k.current.offsetWidth,o=P.current.getBoundingClientRect(),s=t.clientX-o.left-i/2-n+r/2,a=E.current.scrollWidth,l=E.current.clientWidth,h=s/(P.current.offsetWidth-i-n-r);"rtl"===F?(e=(1-h)*(a-l),E.current.scrollLeft<=0&&(e=-e)):e=h*(a-l),E.current.scrollLeft=e}C(t)}},onPointerUp:V,style:{position:"absolute",touchAction:"none",WebkitUserSelect:"none",userSelect:"none",visibility:B?"hidden":void 0,..."vertical"===g&&{top:0,bottom:`var(${h.I.scrollAreaCornerHeight})`,insetInlineEnd:0,[c.q.scrollAreaThumbHeight]:`${I.height}px`},..."horizontal"===g&&{insetInlineStart:0,insetInlineEnd:`var(${h.I.scrollAreaCornerWidth})`,bottom:0,[c.q.scrollAreaThumbWidth]:`${I.width}px`}}},N=(0,l.o)("div",t,{ref:[e,"vertical"===g?A:P],state:j,props:[W,x],stateAttributesMapping:f.r}),$=n.useMemo(()=>({orientation:g}),[g]);return H?(0,p.jsx)(a.G.Provider,{value:$,children:N}):null})},4527:(t,e,r)=>{r.d(e,{t:()=>tc});var n=r(7620),i=r(9384),o=r(2014),s=r(5924),a=r(2930),l=r(7806),u=r(9306),h=r(604),c=r(5853),d=r(8877),f=r(4740),p=r(2196),m=r(2888),g=r(7897),v=r(1266),y=r(7898),x=r(207),w=r(131),b=r(7974),T=r(3718),M=r(920),S=r(6531),A=r(7089),P=r(763),E=r(7463);let R={inert:new WeakMap,"aria-hidden":new WeakMap},k="data-base-ui-inert",C={inert:new WeakSet,"aria-hidden":new WeakSet},V=new WeakMap,D=0,I=(t,e)=>e.map(e=>{if(t.contains(e))return e;let r=function t(e){return e?(0,u.Ng)(e)?e.host:t(e.parentNode):null}(e);return t.contains(r)?r:null}).filter(t=>null!=t),L=t=>{let e=new Set;return t.forEach(t=>{let r=t;for(;r&&!e.has(r);)e.add(r),r=r.parentNode}),e},j=(t,e,r)=>{let n=[],i=t=>{!t||r.has(t)||Array.from(t.children).forEach(t=>{"script"!==(0,u.mq)(t)&&(e.has(t)?i(t):n.push(t))})};return i(t),n};function F(t,e={}){let{ariaHidden:r=!1,inert:n=!1,mark:i=!0,markerIgnoreElements:o=[]}=e,s=(0,l.R)(t[0]).body;return function(t,e,r,n,{mark:i=!0,markerIgnoreElements:o=[]}){let s=n?"inert":r?"aria-hidden":null,a=null,l=null,u=I(e,t),h=new Set(i?I(e,o):[]),c=i?j(e,L(u),new Set(u)).filter(t=>!h.has(t)):[],d=[],f=[];if(s){let t=R[s],r=C[s];l=r,a=t;let n=I(e,Array.from(e.querySelectorAll("[aria-live]"))),i=u.concat(n);j(e,L(i),new Set(i)).forEach(e=>{let n=e.getAttribute(s),i=null!==n&&"false"!==n,o=(t.get(e)||0)+1;t.set(e,o),d.push(e),1===o&&i&&r.add(e),i||e.setAttribute(s,"inert"===s?"":"true")})}return i&&c.forEach(t=>{let e=(V.get(t)||0)+1;V.set(t,e),f.push(t),1===e&&t.setAttribute(k,"")}),D+=1,()=>{a&&d.forEach(t=>{let e=(a.get(t)||0)-1;a.set(t,e),e||(!l?.has(t)&&s&&t.removeAttribute(s),l?.delete(t))}),i&&f.forEach(t=>{let e=(V.get(t)||0)-1;V.set(t,e),e||t.removeAttribute(k)}),(D-=1)||(R.inert=new WeakMap,R["aria-hidden"]=new WeakMap,C.inert=new WeakSet,C["aria-hidden"]=new WeakSet,V=new WeakMap)}}(t,s,r,n,{mark:i,markerIgnoreElements:o})}var B=r(4368),O=r(7270),H=r(27),W=r(5950),N=r(4568);let $=[];function U(){$=$.filter(t=>t.deref()?.isConnected)}function z(){return U(),$[$.length-1]?.deref()}function q(t,e){if(t.hasAttribute("tabindex")&&!t.hasAttribute("data-tabindex")||!e.current.includes("floating")&&!t.getAttribute("role")?.includes("dialog"))return;let r=(0,b.nq)(t).filter(t=>{let e=t.getAttribute("data-tabindex")||"";return(0,b.AO)(t)||t.hasAttribute("data-tabindex")&&!e.startsWith("-")}),n=t.getAttribute("tabindex");e.current.includes("floating")||0===r.length?"0"!==n&&t.setAttribute("tabindex","0"):("-1"!==n||t.hasAttribute("data-tabindex")&&"-1"!==t.getAttribute("data-tabindex"))&&(t.setAttribute("tabindex","-1"),t.setAttribute("data-tabindex","-1"))}function Y(t){let{context:e,children:r,disabled:i=!1,initialFocus:c=!0,returnFocus:R=!0,restoreFocus:k=!1,modal:C=!0,closeOnFocusOut:V=!0,openInteractionType:D="",nextFocusableElement:I,previousFocusableElement:L,beforeContentFocusGuardRef:j,externalTree:Y,getInsideElements:K}=t,X="rootStore"in e?e.rootStore:e,G=X.useState("open"),Z=X.useState("domReferenceElement"),_=X.useState("floatingElement"),{events:J,dataRef:Q}=X.context,tt=(0,a.K)(()=>Q.current.floatingContext?.nodeId),te=(0,x.WZ)(Z)&&!1===c,tr=n.useRef(["content"]),tn=(0,m.u)(c),ti=(0,m.u)(R),to=(0,m.u)(D),ts=(0,O.cq)(Y),ta=(0,B.vB)(),tl=n.useRef(!1),tu=n.useRef(!1),th=n.useRef(!1),tc=n.useRef(null),td=n.useRef(""),tf=n.useRef(""),tp=n.useRef(null),tm=n.useRef(null),tg=(0,p.a)(tp,j,ta?.beforeInsideRef),tv=(0,p.a)(tm,ta?.afterInsideRef),ty=(0,g.Z)(),tx=(0,g.Z)(),tw=(0,d.N)(),tb=null!=ta,tT=(0,x.nd)(_),tM=(0,a.K)((t=tT)=>t?(0,b.Kr)(t):[]),tS=(0,a.K)(()=>K?.().filter(t=>null!=t)??[]);n.useEffect(()=>{if(i||!C)return;let t=(0,l.R)(tT);return(0,o.q)(t,"keydown",function(t){"Tab"===t.key&&(0,y.gR)(tT,(0,y.RS)((0,l.R)(tT)))&&0===tM().length&&!te&&(0,w.jo)(t)})},[i,tT,C,te,tM]),n.useEffect(()=>{if(i||!G)return;let t=(0,l.R)(tT);function e(){th.current=!1}return(0,f.g)((0,o.q)(t,"pointerdown",function(t){let e=(0,y.EW)(t),r=tS();th.current=!((0,y.gR)(_,e)||(0,y.gR)(Z,e)||(0,y.gR)(ta?.portalNode,e)||r.some(t=>t===e||(0,y.gR)(t,e))),tf.current=t.pointerType||"keyboard",e?.closest(`[${H.Kd}]`)&&(tu.current=!0)},!0),(0,o.q)(t,"pointerup",e,!0),(0,o.q)(t,"pointercancel",e,!0),(0,o.q)(t,"keydown",function(){tf.current="keyboard"},!0))},[i,_,Z,tT,G,ta,tS]),n.useEffect(()=>{if(i||!V)return;let t=(0,l.R)(tT);function e(e){let r=e.relatedTarget,n=e.currentTarget,i=(0,y.EW)(e);queueMicrotask(()=>{let o=tt(),s=X.context.triggerElements,a=tS(),l=r?.hasAttribute((0,P.F)("focus-guard"))&&[tp.current,tm.current,ta?.beforeInsideRef.current,ta?.afterInsideRef.current,ta?.beforeOutsideRef.current,ta?.afterOutsideRef.current,(0,W.q)(L),(0,W.q)(I)].includes(r),h=!((0,y.gR)(Z,r)||(0,y.gR)(_,r)||(0,y.gR)(r,_)||(0,y.gR)(ta?.portalNode,r)||a.some(t=>t===r||(0,y.gR)(t,r))||null!=r&&s.hasElement(r)||s.hasMatchingElement(t=>(0,y.gR)(t,r))||l||ts&&((0,T.CM)(ts.nodesRef.current,o).find(t=>(0,y.gR)(t.context?.elements.floating,r)||(0,y.gR)(t.context?.elements.domReference,r))||(0,T.$4)(ts.nodesRef.current,o).find(t=>[t.context?.elements.floating,(0,x.nd)(t.context?.elements.floating)].includes(r)||t.context?.elements.domReference===r)));if(n===Z&&tT&&q(tT,tr),k&&n!==Z&&!(0,M.J9)(i)&&(0,y.RS)(t)===t.body){if((0,u.sb)(tT)&&(tT.focus(),"popup"===k))return void tw.request(()=>{tT.focus()});let t=tM(),e=tc.current,r=(e&&t.includes(e)?e:null)||t[t.length-1]||tT;(0,u.sb)(r)&&r.focus()}if(Q.current.insideReactTree){Q.current.insideReactTree=!1;return}(te||!C)&&r&&h&&!tu.current&&(te||r!==z())&&(tl.current=!0,X.setOpen(!1,(0,S.d)(A.Xn,e)))})}let r=(0,u.sb)(Z)?Z:null;if(_||r)return(0,f.g)(r&&(0,o.q)(r,"focusout",e),r&&(0,o.q)(r,"pointerdown",function(){tu.current=!0,tx.start(0,()=>{tu.current=!1})}),_&&(0,o.q)(_,"focusin",function(t){let e=(0,y.EW)(t);(0,b.AO)(e)&&(tc.current=e)}),_&&(0,o.q)(_,"focusout",e),_&&ta&&(0,o.q)(_,"focusout",function(){th.current||(Q.current.insideReactTree=!0,ty.start(0,()=>{Q.current.insideReactTree=!1}))},!0))},[i,Z,_,tT,C,ts,ta,X,V,k,tM,te,tt,tr,Q,ty,tx,tw,I,L,tS]),n.useEffect(()=>{if(i||!_||!G)return;let t=Array.from(ta?.portalNode?.querySelectorAll(`[${(0,P.F)("portal")}]`)||[]),e=ts?(0,T.$4)(ts.nodesRef.current,tt()):[],r=e.find(t=>(0,x.WZ)(t.context?.elements.domReference||null))?.context?.elements.domReference,n=F([_,...t,tp.current,tm.current,ta?.beforeOutsideRef.current,ta?.afterOutsideRef.current,...tS(),r,(0,W.q)(L),(0,W.q)(I),te?Z:null].filter(t=>null!=t),{ariaHidden:C||te,mark:!1}),o=F([_,...t].filter(t=>null!=t));return()=>{o(),n()}},[G,i,Z,_,C,ta,te,ts,tt,I,L,tS]),(0,h.g)(()=>{if(!G||i||!(0,u.sb)(tT))return;let t=(0,l.R)(tT),e=(0,y.RS)(t);queueMicrotask(()=>{let r,n=tn.current,i="function"==typeof n?n(to.current||""):n;if(void 0===i||!1===i||(0,y.gR)(tT,e))return;let o=null,s=()=>(null==o&&(o=tM(tT)),o[0]||tT);r=(r=!0===i||null===i?s():(0,W.q)(i))||s();let a=(0,y.gR)(tT,(0,y.RS)(t));(0,E.p)(r,{preventScroll:r===tT,shouldFocus(){if(a)return!0;let e=(0,y.RS)(t);return!(e!==r&&(0,y.gR)(tT,e))}})})},[i,G,tT,tM,tn,to]),(0,h.g)(()=>{var t;if(i||!tT)return;let e=(0,l.R)(tT);function r(t){var e,r;let n;if(t.open||(e=t.nativeEvent,r=tf.current,n=(0,u.zk)((0,y.EW)(e)),td.current=e instanceof n.KeyboardEvent?"keyboard":e instanceof n.FocusEvent?r||"keyboard":"pointerType"in e?e.pointerType||"keyboard":"touches"in e?"touch":e instanceof n.MouseEvent?r||(0===e.detail?"keyboard":"mouse"):""),t.reason===A.N7&&"mouseleave"===t.nativeEvent.type&&(tl.current=!0),t.reason===A.Np)if(t.nested)tl.current=!1;else if((0,w.YF)(t.nativeEvent)||(0,w.Pg)(t.nativeEvent))tl.current=!1;else{let t=!1;(0,l.R)(tT).createElement("div").focus({get preventScroll(){return t=!0,!1}}),t?tl.current=!1:tl.current=!0}}return t=(0,y.RS)(e),U(),t&&"body"!==(0,u.mq)(t)&&($.push(new WeakRef(t)),$.length>20&&($=$.slice(-20))),J.on("openchange",r),()=>{J.off("openchange",r);let t=(0,y.RS)(e),n=tS(),i=(0,y.gR)(_,t)||n.some(e=>e===t||(0,y.gR)(e,t))||ts&&(0,T.CM)(ts.nodesRef.current,tt(),!1).some(e=>(0,y.gR)(e.context?.elements.floating,t)),o=ti.current,s=function(){let t=ti.current,e="function"==typeof t?t(td.current):t;if(void 0===e||!1===e)return null;if(null===e&&(e=!0),"boolean"==typeof e)return Z?.isConnected?Z:z()||null;let r=Z?.isConnected?Z:z();return(0,W.q)(e)||r||null}();queueMicrotask(()=>{let r=s?(0,b.AO)(s)?s:(0,b.Kr)(s)[0]||s:null;o&&!tl.current&&(0,u.sb)(r)&&("boolean"!=typeof o||r===t||t===e.body||i)&&r.focus({preventScroll:!0}),tl.current=!1})}},[i,_,tT,ti,J,ts,Z,tt,tS]),(0,h.g)(()=>{if(!s.Tc||G||!_)return;let t=(0,y.RS)((0,l.R)(_));(0,u.sb)(t)&&(0,x.$u)(t)&&(0,y.gR)(_,t)&&t.blur()},[G,_]),(0,h.g)(()=>{if(!i&&ta)return ta.setFocusManagerState({modal:C,closeOnFocusOut:V,open:G,onOpenChange:X.setOpen,domReference:Z}),()=>{ta.setFocusManagerState(null)}},[i,ta,C,G,X,V,Z]),(0,h.g)(()=>{if(!i&&tT)return q(tT,tr),()=>{queueMicrotask(U)}},[i,tT,tr]);let tA=!i&&(!C||!te)&&(tb||C);return(0,N.jsxs)(n.Fragment,{children:[tA&&(0,N.jsx)(v.U,{"data-type":"inside",ref:tg,onFocus:t=>{if(C){let t=tM();(0,E.p)(t[t.length-1])}else if(ta?.portalNode)if(tl.current=!1,(0,b.Qp)(t,ta.portalNode)){let t=(0,b.vF)(Z);t?.focus()}else(0,W.q)(L??ta.beforeOutsideRef)?.focus()}}),r,tA&&(0,N.jsx)(v.U,{"data-type":"inside",ref:tv,onFocus:t=>{if(C)(0,E.p)(tM()[0]);else if(ta?.portalNode)if(V&&(tl.current=!0),(0,b.Qp)(t,ta.portalNode)){let t=(0,b.XJ)(Z);t?.focus()}else(0,W.q)(I??ta.afterOutsideRef)?.focus()}})]})}var K=r(8629),X=r(3294),G=r(3322),Z=r(7454),_=r(7833),J=r(4528),Q=r(9704),tt=r(2925),te=r(1343),tr=r(5674),tn=r(9204),ti=r(9321),to=r(1451),ts=r(5625),ta=r(1588),tl=r(1894),tu=r(6130);let th={...G.GW,...J.G},tc=n.forwardRef(function(t,e){let{render:r,className:i,style:f,finalFocus:p,...m}=t,{store:g,popupRef:v,onOpenChangeComplete:y,setOpen:x,valueRef:w,firstItemTextRef:b,selectedItemTextRef:T,keyboardActiveRef:M,multiple:P,handleScrollArrowVisibility:E,scrollHandlerRef:R,listRef:k,highlightItemOnHover:C}=(0,X.ll)(),{side:V,align:D,alignItemWithTriggerActive:I,isPositioned:L,setControlledAlignItemWithTrigger:j,scrollDownArrowRef:F,scrollUpArrowRef:B}=(0,Z.H)(),O=null!=(0,tn.S)(!0),H=(0,X.hG)(),W=(0,tu.j)(),{nonce:$,disableStyleElements:U}=(0,tl.n)(),z=(0,c.P)(g,te.T.id),q=(0,c.P)(g,te.T.open),K=(0,c.P)(g,te.T.mounted),G=(0,c.P)(g,te.T.popupProps),J=(0,c.P)(g,te.T.transitionStatus),tc=(0,c.P)(g,te.T.triggerElement),tv=(0,c.P)(g,te.T.positionerElement),ty=(0,c.P)(g,te.T.listElement),tx=n.useRef(!1),tw=n.useRef(!1),tb=n.useRef({}),tT=(0,d.N)(),tM=(0,a.K)(t=>{var e;if(!tv||!v.current||!tw.current)return;if(tx.current||!I)return void E();let r="0px"===tv.style.top,n="0px"===tv.style.bottom;if(!r&&!n)return void E();let i=tp(tv),o=(e=tv.getBoundingClientRect().height,e/i.y),s=(0,l.R)(tv),a=getComputedStyle(tv),u=parseFloat(a.marginTop),h=parseFloat(a.marginBottom),c=td(getComputedStyle(v.current)),d=Math.min(s.documentElement.clientHeight-u-h,c),f=t.scrollTop,p=tf(t),m=0,g=null,y=!1,x=!1,w=t=>{tv.style.height=`${t}px`},b=r?p-f:f,T=Math.min(o+b,d);if(m=T,b<=ta.Pv){let e;return void((e=(0,ts.q)(b,0,d-o))>0&&w(o+e),t.scrollTop=r?p:0,d-(o+e)<=ta.Pv&&(tx.current=!0),E())}if(d-T>ta.Pv)r?x=!0:g=0;else if(y=!0,n&&f<p){let t=o+b-d;g=f-(b-t)}if(0!==(m=Math.ceil(m))&&w(m),x||null!=g){let e=tf(t),r=x?e:(0,ts.q)(g,0,e);Math.abs(t.scrollTop-r)>ta.Pv&&(t.scrollTop=r)}(y||m>=d-ta.Pv)&&(tx.current=!0),E()});n.useImperativeHandle(R,()=>tM,[tM]),(0,Q.v)({open:q,ref:v,onComplete(){q&&y?.(!0)}}),(0,h.g)(()=>{tv&&v.current&&!Object.keys(tb.current).length&&(tb.current={top:tv.style.top||"0",left:tv.style.left||"0",right:tv.style.right,height:tv.style.height,bottom:tv.style.bottom,minHeight:tv.style.minHeight,maxHeight:tv.style.maxHeight,marginTop:tv.style.marginTop,marginBottom:tv.style.marginBottom})},[v,tv]),(0,h.g)(()=>{q||I||(tw.current=!1,tx.current=!1,(0,tr.Y)(tv,tb.current))},[q,I,tv,v]),(0,h.g)(()=>{let t=v.current;if(!q||!tc||!tv||!t||I&&!L||"ending"===g.state.transitionStatus)return;if(!I){tw.current=!0,tT.request(E),t.style.removeProperty("--transform-origin");return}let e=function(t){let{style:e}=t,r={};for(let[t,n]of tg)r[t]=e.getPropertyValue(t),e.setProperty(t,n,"important");return()=>{for(let[t]of tg){let n=r[t];n?e.setProperty(t,n):e.removeProperty(t)}}}(t);t.style.removeProperty("--transform-origin");try{let e,r=T.current;r?.isConnected||(r=!te.T.hasSelectedValue(g.state)&&b.current?.isConnected?b.current:null);let n=w.current,i=getComputedStyle(tv),o=getComputedStyle(t),a=(0,l.R)(tc),h=(0,u.zk)(tv),c=tp(tc),d=tm(tc.getBoundingClientRect(),c),f=tm(tv.getBoundingClientRect(),c),p=d.height,m=ty||t,v=m.scrollHeight,y=parseFloat(o.borderBottomWidth),x=parseFloat(i.marginTop)||10,M=parseFloat(i.marginBottom)||10,S=parseFloat(i.minHeight)||100,A=td(o),P=a.documentElement.clientHeight-x-M,R=a.documentElement.clientWidth,V=P-d.bottom+p,D="rtl"===W?d.right-f.width:d.left,I=0;if(r&&n){let t=tm(n.getBoundingClientRect(),c);e=tm(r.getBoundingClientRect(),c),D=f.left+("rtl"===W?t.right-e.right:t.left-e.left);let i=t.top-d.top+t.height/2;I=e.top-f.top+e.height/2-i}let L=V+I+M+y,F=Math.min(P,L),B=P-x-M,O=L-F;tv.style.left=`${(0,ts.q)(D,5,R-5-f.width)}px`,tv.style.height=`${F}px`,tv.style.maxHeight="auto",tv.style.marginTop=`${x}px`,tv.style.marginBottom=`${M}px`,t.style.height="100%";let H=tf(m),N=O>=H-ta.Pv;N&&(F=Math.min(P,f.height)-(O-H));let $=d.top<20||d.bottom>P-20||Math.ceil(F)+ta.Pv<Math.min(v,S),U=(h.visualViewport?.scale??1)!==1&&s.Tc;if($||U){tw.current=!0,(0,tr.Y)(tv,tb.current),j(!1);return}let z=Math.max(S,F);if(N){let t=Math.max(0,P-L);tv.style.top=f.height>=B?"0":`${t}px`,tv.style.height=`${F}px`,m.scrollTop=tf(m)}else tv.style.bottom="0",m.scrollTop=O;if(e){let r=f.top,n=f.height,i=e.top+e.height/2,o=(0,ts.q)(n>0?(i-r)/n*100:50,0,100);t.style.setProperty("--transform-origin",`50% ${o}%`)}(z===P||F>=A)&&(tx.current=!0),E(),C&&null===g.state.selectedIndex&&null===g.state.activeIndex&&null!=k.current[0]&&g.set("activeIndex",0),tw.current=!0}finally{e()}},[g,q,tv,tc,w,b,T,v,E,I,j,tT,F,B,ty,k,C,W,L]),n.useEffect(()=>{if(!I||!tv||!q)return;let t=(0,u.zk)(tv);return(0,o.q)(t,"resize",function(t){x(!1,(0,S.d)(A.L5,t))})},[x,I,tv,q]);let tS={...ty?{role:"presentation","aria-orientation":void 0}:{role:"listbox","aria-multiselectable":P||void 0,id:`${z}-list`},onKeyDown(t){M.current=!0,O&&ti.jF.has(t.key)&&t.stopPropagation()},onMouseMove(){M.current=!1},onScroll(t){ty||tM(t.currentTarget)},...I&&{style:ty?{height:"100%"}:tr.O}},tA=(0,tt.o)("div",t,{ref:[e,v],state:{open:q,transitionStatus:J,side:V,align:D},stateAttributesMapping:th,props:[G,tS,(0,to.d)(J),{className:!ty&&I?_.E.className:void 0},m]});return(0,N.jsxs)(n.Fragment,{children:[!U&&_.E.getElement($),(0,N.jsx)(Y,{context:H,modal:!1,disabled:!K,returnFocus:p,restoreFocus:!0,children:tA})]})});function td(t){let e=t.maxHeight||"";return e.endsWith("px")&&parseFloat(e)||1/0}function tf(t){return(0,ta.XF)(t.scrollHeight,t.clientHeight)}function tp(t){return K.iD.getScale(t)}function tm(t,e){return(0,i.B1)({x:t.x/e.x,y:t.y/e.y,width:t.width/e.x,height:t.height/e.y})}let tg=[["transform","none"],["scale","1"],["translate","0 0"]]},4721:(t,e,r)=>{var n;r.d(e,{I:()=>i});let i=((n={}).scrollAreaCornerHeight="--scroll-area-corner-height",n.scrollAreaCornerWidth="--scroll-area-corner-width",n)},4749:(t,e,r)=>{r.d(e,{Ai:()=>a,Vz:()=>s,jd:()=>n,kJ:()=>o,tl:()=>i});let n=(t,e)=>Object.is(t,e);function i(t,e,r){return null==t||null==e?Object.is(t,e):r(t,e)}function o(t,e,r){return!!t&&0!==t.length&&t.some(t=>void 0!==t&&i(e,t,r))}function s(t,e,r){return t&&0!==t.length?t.findIndex(t=>void 0!==t&&i(t,e,r)):-1}function a(t,e,r){return t.filter(t=>!i(e,t,r))}},4925:(t,e,r)=>{r.d(e,{A:()=>n});let n=(0,r(4188).A)("rows-3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M21 9H3",key:"1338ky"}],["path",{d:"M21 15H3",key:"9uk58r"}]])},4948:(t,e,r)=>{r.d(e,{V:()=>h});var n=r(7620),i=r(5853),o=r(4368);let s=n.createContext(void 0);var a=r(3294),l=r(1343),u=r(4568);let h=n.forwardRef(function(t,e){let{store:r}=(0,a.ll)(),n=(0,i.P)(r,l.T.mounted),h=(0,i.P)(r,l.T.forceMount);return n||h?(0,u.jsx)(s.Provider,{value:!0,children:(0,u.jsx)(o.XF,{ref:e,...t})}):null})},5283:(t,e,r)=>{r.d(e,{C:()=>i});var n=r(2925);function i(t){return(0,n.o)(t.defaultTagName??"div",t,t)}},5311:(t,e,r)=>{r.d(e,{A:()=>n});let n=(0,r(4188).A)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},5362:(t,e,r)=>{r.d(e,{s:()=>i});var n=r(2606);function i(t){return(0,n.G)(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}},5461:(t,e,r)=>{r.d(e,{l:()=>v});var n=r(7620),i=r(2140),o=r(1531),s=r(2925),a=r(5818),l=r(1977),u=r(4372),h=r(2196),c=r(9301),d=r(7462);function f(t){let{render:e,className:r,style:i,state:o=u.t0,props:a=u.Ml,refs:l=u.Ml,metadata:f,stateAttributesMapping:p,tag:m="div",...g}=t,{compositeProps:v,compositeRef:y}=function(t={}){let{highlightItemOnHover:e,highlightedIndex:r,onHighlightedIndexChange:i}=(0,c.G)(),{ref:o,index:s}=(0,d.q)(t),a=r===s,l=n.useRef(null),u=(0,h.a)(o,l);return{compositeProps:n.useMemo(()=>({tabIndex:a?0:-1,onFocus(){i(s)},onMouseMove(){let t=l.current;if(!e||!t)return;let r=t.hasAttribute("disabled")||"true"===t.ariaDisabled;a||r||t.focus()}}),[a,i,s,e]),compositeRef:u,index:s}}({metadata:f});return(0,s.o)(m,t,{state:o,ref:[...l,y],props:[v,...a,g],stateAttributesMapping:p})}var p=r(6531),m=r(7089),g=r(4568);let v=n.forwardRef(function(t,e){let{className:r,defaultPressed:n=!1,disabled:u=!1,form:h,onPressedChange:c,pressed:d,render:v,type:y,value:x,nativeButton:w=!0,style:b,...T}=t,M=(0,o.e)(x||void 0),S=(0,a.C)(),A=S?.value??[],P=S?void 0:n,E=(u||S?.disabled)??!1,[R,k]=(0,i.q)({controlled:S?void 0!==M&&A.indexOf(M)>-1:d,default:P,name:"Toggle",state:"pressed"}),{getButtonProps:C,buttonRef:V}=(0,l.s)({disabled:E,native:w}),D={disabled:E,pressed:R},I=[V,e],L=[{"aria-pressed":R,onClick(t){let e=!R,r=(0,p.d)(m.dv,t.nativeEvent);M&&S?.setGroupValue?.(M,e,r),c?.(e,r),r.isCanceled||k(e)}},T,C],j=(0,s.o)("button",t,{enabled:!S,state:D,ref:I,props:L});return S?(0,g.jsx)(f,{tag:"button",render:v,className:r,style:b,state:D,refs:I,props:L}):j})},5516:(t,e,r)=>{r.d(e,{h:()=>a});var n=r(7620),i=r(3294),o=r(9052),s=r(2925);let a=n.memo(n.forwardRef(function(t,e){let{index:r,textRef:a,selectedByFocus:l,hasRegistered:u}=(0,o.G)(),{firstItemTextRef:h,selectedItemTextRef:c}=(0,i.ll)(),{render:d,className:f,style:p,...m}=t,g=n.useCallback(t=>{t&&(u&&0===r&&(h.current=t),u&&l&&(c.current=t))},[h,c,r,l,u]);return(0,s.o)("div",t,{ref:[g,e,a],props:m})}))},5625:(t,e,r)=>{r.d(e,{q:()=>n});function n(t,e=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(e,Math.min(t,r))}},5674:(t,e,r)=>{function n(t,e){t&&Object.assign(t.style,e)}r.d(e,{O:()=>i,Y:()=>n});let i={position:"relative",maxHeight:"100%",overflowX:"hidden",overflowY:"auto"}},5818:(t,e,r)=>{r.d(e,{C:()=>s,p:()=>o});var n=r(8933),i=r(7620);let o=i.createContext(void 0);function s(t=!0){let e=i.useContext(o);if(void 0===e&&!t)throw Error((0,n.A)(7));return e}},5856:(t,e,r)=>{r.d(e,{i:()=>i,u:()=>n});let n=500,i=16},6369:(t,e,r)=>{r.d(e,{w:()=>u});var n=r(7620),i=r(5853),o=r(2925),s=r(3294),a=r(3322),l=r(1343);let u=n.forwardRef(function(t,e){let{render:r,className:n,style:u,...h}=t,{store:c}=(0,s.ll)(),d=(0,i.P)(c,l.T.open);return(0,o.o)("span",t,{state:{open:d},ref:e,props:[{"aria-hidden":!0,children:"▼"},h],stateAttributesMapping:a.qV})})},6397:(t,e,r)=>{r.d(e,{O:()=>M});var n,i=r(7620),o=r(2930),s=r(2140),a=r(4372),l=r(2925),u=r(7586),h=r(2196),c=r(9321),d=r(920),f=r(7898);let p=[];var m=r(9301),g=r(6130),v=r(4568);function y(t){let{render:e,className:r,style:n,refs:s=a.Ml,props:y=a.Ml,state:x=a.t0,stateAttributesMapping:w,highlightedIndex:b,onHighlightedIndexChange:T,orientation:M,dense:S,itemSizes:A,loopFocus:P,onLoop:E,cols:R,enableHomeAndEndKeys:k,onMapChange:C,stopEventPropagation:V=!0,rootRef:D,disabledIndices:I,modifierKeys:L,highlightItemOnHover:j=!1,tag:F="div",...B}=t,{props:O,highlightedIndex:H,onHighlightedIndexChange:W,elementsRef:N,onMapChange:$,relayKeyboardEvent:U}=function(t){let{itemSizes:e,cols:r=1,loopFocus:n=!0,onLoop:s,dense:a=!1,orientation:l="both",direction:u,highlightedIndex:m,onHighlightedIndexChange:g,rootRef:v,enableHomeAndEndKeys:y=!1,stopEventPropagation:x=!1,disabledIndices:w,modifierKeys:b=p}=t,[T,M]=i.useState(0),S=r>1,A=i.useRef(null),P=(0,h.a)(A,v),E=i.useRef([]),R=i.useRef(!1),k=m??T,C=(0,o.K)((t,e=!1)=>{if((g??M)(t),e){let e=E.current[t];(0,c.$v)(A.current,e,u,l)}}),V=(0,o.K)(t=>{if(0===t.size||R.current)return;R.current=!0;let e=Array.from(t.keys()),r=e.find(t=>t?.hasAttribute("data-composite-item-active"))??null,n=r?e.indexOf(r):-1;-1!==n&&C(n),(0,c.$v)(A.current,r,u,l)}),D=(0,o.K)((t,e,r)=>s?s?.(t,e,r,E):r),I=i.useMemo(()=>({"aria-orientation":"both"===l?void 0:l,ref:P,onFocus(t){let e=A.current,r=(0,f.EW)(t.nativeEvent);e&&null!=r&&(0,c.Qi)(r)&&r.setSelectionRange(0,r.value.length??0)},onKeyDown(t){let i=y?c.jF:c.LM;if(!i.has(t.key)||function(t,e){for(let r of c.rT.values())if(!e.includes(r)&&t.getModifierState(r))return!0;return!1}(t,b)||!A.current)return;let o="rtl"===u,h=o?c.eR:c.RJ,p={horizontal:h,vertical:c.Jd,both:h}[l],m=o?c.RJ:c.eR,g={horizontal:m,vertical:c.il,both:m}[l],v=(0,f.EW)(t.nativeEvent);if(null!=v&&(0,c.Qi)(v)&&!(null==v||v.hasAttribute("disabled")||"true"===v.getAttribute("aria-disabled"))){let e=v.selectionStart,r=v.selectionEnd,n=v.value??"";if(null==e||t.shiftKey||e!==r||t.key!==g&&e<n.length||t.key!==p&&e>0)return}let T=k,M=(0,d.Zb)(E,w),P=(0,d.vB)(E,w);if(S){let i=e||Array.from({length:E.current.length},()=>({width:1,height:1})),s=(0,d.zf)(i,r,a),u=s.findIndex(t=>null!=t&&!(0,d.FP)(E.current,t,w)),h=s.reduce((t,e,r)=>null==e||(0,d.FP)(E.current,e,w)?t:r,-1);T=s[(0,d.Kg)(s.map(t=>null!=t?E.current[t]:null),{event:t,orientation:l,loopFocus:n,onLoop:D,cols:r,disabledIndices:(0,d.Y3)([...w||E.current.map((t,e)=>(0,d.FP)(E.current,e)?e:void 0),void 0],s),minIndex:u,maxIndex:h,prevIndex:(0,d.fl)(k>P?M:k,i,s,r,t.key===c.Jd?"bl":t.key===c.RJ?"tr":"tl"),rtl:o})]}let R={horizontal:[h],vertical:[c.Jd],both:[h,c.Jd]}[l],V={horizontal:[m],vertical:[c.il],both:[m,c.il]}[l],I=S?i:({horizontal:y?c.lZ:c.eb,vertical:y?c.z5:c.ug,both:i})[l];y&&(t.key===c.yZ?T=M:t.key===c.Kp&&(T=P)),T===k&&(R.includes(t.key)||V.includes(t.key))&&(n&&T===P&&R.includes(t.key)?(T=M,s&&(T=s(t,k,T,E))):n&&T===M&&V.includes(t.key)?(T=P,s&&(T=s(t,k,T,E))):T=(0,d.BF)(E.current,{startingIndex:T,decrement:V.includes(t.key),disabledIndices:w})),T===k||(0,d.du)(E.current,T)||(x&&t.stopPropagation(),I.has(t.key)&&t.preventDefault(),C(T,!0),queueMicrotask(()=>{E.current[T]?.focus()}))}}),[r,a,u,w,E,y,k,S,e,n,s,D,P,b,C,l,x]);return i.useMemo(()=>({props:I,highlightedIndex:k,onHighlightedIndexChange:C,elementsRef:E,disabledIndices:w,onMapChange:V,relayKeyboardEvent:I.onKeyDown}),[I,k,C,E,w,V])}({itemSizes:A,cols:R,loopFocus:P,onLoop:E,dense:S,orientation:M,highlightedIndex:b,onHighlightedIndexChange:T,rootRef:D,stopEventPropagation:V,enableHomeAndEndKeys:k,direction:(0,g.j)(),disabledIndices:I,modifierKeys:L}),z=(0,l.o)(F,t,{state:x,ref:s,props:[O,...y,B],stateAttributesMapping:w}),q=i.useMemo(()=>({highlightedIndex:H,onHighlightedIndexChange:W,highlightItemOnHover:j,relayKeyboardEvent:U}),[H,W,j,U]);return(0,v.jsx)(m.H.Provider,{value:q,children:(0,v.jsx)(u.u,{elementsRef:N,onMapChange:t=>{C?.(t),$(t)},children:z})})}var x=r(9204),w=r(5818);let b=((n={}).disabled="data-disabled",n.orientation="data-orientation",n.multiple="data-multiple",n),T={multiple:t=>t?{[b.multiple]:""}:null},M=i.forwardRef(function(t,e){let{defaultValue:r,disabled:n=!1,loopFocus:u=!0,onValueChange:h,orientation:c="horizontal",multiple:d=!1,value:f,className:p,render:m,style:g,...b}=t,M=(0,x.S)(!0),S=i.useMemo(()=>void 0!==f||void 0!==r,[f,r]),A=(M?.disabled??!1)||n,[P,E]=(0,s.q)({controlled:f,default:void 0===f?r??a.Ml:void 0,name:"ToggleGroup",state:"value"}),R=(0,o.K)((t,e,r)=>{let n;d?(n=P.slice(),e?n.push(t):n.splice(P.indexOf(t),1)):n=e?[t]:[],h?.(n,r),r.isCanceled||E(n)}),k={disabled:A,multiple:d,orientation:c},C=i.useMemo(()=>({disabled:A,orientation:c,setGroupValue:R,value:P,isValueInitialized:S}),[A,c,R,P,S]),V={role:"group"},D=(0,l.o)("div",t,{enabled:!!M,state:k,ref:e,props:[V,b],stateAttributesMapping:T});return(0,v.jsx)(w.p.Provider,{value:C,children:M?D:(0,v.jsx)(y,{render:m,className:p,style:g,state:k,refs:[e],props:[V,b],stateAttributesMapping:T,loopFocus:u,enableHomeAndEndKeys:!0,orientation:c})})})},6427:(t,e,r)=>{r.d(e,{d:()=>s});var n=r(7620),i=r(3665),o=r(4568);let s=n.forwardRef(function(t,e){return(0,o.jsx)(i.f,{...t,ref:e,direction:"down"})})},6666:(t,e,r)=>{r.d(e,{Dp:()=>a,u:()=>c,Md:()=>h,yg:()=>l,T:()=>u});var n=r(7620);function i(t){if(null==t)return"";if("string"==typeof t)return t;try{return JSON.stringify(t)}catch{return String(t)}}var o=r(4568);function s(t){return null!=t&&t.length>0&&"object"==typeof t[0]&&null!=t[0]&&"items"in t[0]}function a(t){if(!Array.isArray(t))return null!=t&&"null"in t;if(s(t)){for(let e of t)for(let t of e.items)if(t&&null==t.value&&null!=t.label)return!0;return!1}for(let e of t)if(e&&null==e.value&&null!=e.label)return!0;return!1}function l(t,e){if(e&&null!=t)return e(t)??"";if(t&&"object"==typeof t){if("label"in t&&null!=t.label)return String(t.label);if("value"in t)return String(t.value)}return i(t)}function u(t,e){return e&&null!=t?e(t)??"":t&&"object"==typeof t&&"value"in t&&"label"in t?i(t.value):i(t)}function h(t,e,r){if(r&&null!=t)return r(t);if(t&&"object"==typeof t&&"label"in t&&null!=t.label)return t.label;if(e&&!Array.isArray(e))return e[t]??l(t,r);if(Array.isArray(e)){let n=s(e)?e.flatMap(t=>t.items):e;if(null==t||"object"!=typeof t){let e=n.find(e=>e.value===t);return e&&null!=e.label?e.label:l(t,r)}if("value"in t){let e=n.find(e=>e&&e.value===t.value);if(e&&null!=e.label)return e.label}}return l(t,r)}function c(t,e,r){return t.reduce((t,i,s)=>(s>0&&t.push(", "),t.push((0,o.jsx)(n.Fragment,{children:h(i,e,r)},s)),t),[])}},7024:(t,e,r)=>{r.d(e,{A:()=>n});let n=(0,r(4188).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},7378:(t,e,r)=>{r.d(e,{A:()=>n});let n=(0,r(4188).A)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},7446:(t,e,r)=>{r.d(e,{w:()=>s});var n=r(7620),i=r(3665),o=r(4568);let s=n.forwardRef(function(t,e){return(0,o.jsx)(i.f,{...t,ref:e,direction:"up"})})},7454:(t,e,r)=>{r.d(e,{H:()=>s,i:()=>o});var n=r(8933),i=r(7620);let o=i.createContext(void 0);function s(){let t=i.useContext(o);if(!t)throw Error((0,n.A)(59));return t}},7462:(t,e,r)=>{r.d(e,{G:()=>a,q:()=>l});var n,i=r(7620),o=r(604),s=r(7597);let a=((n={})[n.None=0]="None",n[n.GuessFromOrder=1]="GuessFromOrder",n);function l(t={}){let{label:e,metadata:r,textRef:n,indexGuessBehavior:u,index:h}=t,{register:c,unregister:d,subscribeMapChange:f,elementsRef:p,labelsRef:m,nextIndexRef:g}=(0,s.M)(),v=i.useRef(-1),[y,x]=i.useState(h??(u===a.GuessFromOrder?()=>{if(-1===v.current){let t=g.current;g.current+=1,v.current=t}return v.current}:-1)),w=i.useRef(null),b=i.useCallback(t=>{if(w.current=t,-1!==y&&null!==t&&(p.current[y]=t,m)){let r=void 0!==e;m.current[y]=r?e:n?.current?.textContent??t.textContent}},[y,p,m,e,n]);return(0,o.g)(()=>{if(null!=h)return;let t=w.current;if(t)return c(t,r),()=>{d(t)}},[h,c,d,r]),(0,o.g)(()=>{if(null==h)return f(t=>{let e=w.current?t.get(w.current)?.index:null;null!=e&&x(e)})},[h,f,x]),i.useMemo(()=>({ref:b,index:y}),[y,b])}},7463:(t,e,r)=>{r.d(e,{p:()=>o});var n=r(4372);let i=0;function o(t,e={}){let{preventScroll:r=!1,sync:s=!1,shouldFocus:a}=e;function l(){(!a||a())&&t?.focus({preventScroll:r})}if(cancelAnimationFrame(i),s)return l(),n.tE;let u=requestAnimationFrame(l);return i=u,()=>{i===u&&(cancelAnimationFrame(u),i=0)}}},7586:(t,e,r)=>{r.d(e,{u:()=>u});var n=r(7620),i=r(3245),o=r(2930),s=r(604),a=r(7597),l=r(4568);function u(t){let{children:e,elementsRef:r,labelsRef:u,onMapChange:f}=t,p=(0,o.K)(f),m=n.useRef(0),g=(0,i.j)(c).current,v=(0,i.j)(h).current,[y,x]=n.useState(0),w=n.useRef(y),b=(0,o.K)((t,e)=>{v.set(t,e??null),w.current+=1,x(w.current)}),T=(0,o.K)(t=>{v.delete(t),w.current+=1,x(w.current)}),M=n.useMemo(()=>{let t=new Map;return Array.from(v.keys()).filter(t=>t.isConnected).sort(d).forEach((e,r)=>{let n=v.get(e)??{};t.set(e,{...n,index:r})}),t},[v,y]);(0,s.g)(()=>{if("function"!=typeof MutationObserver||0===M.size)return;let t=new MutationObserver(t=>{let e=new Set,r=t=>e.has(t)?e.delete(t):e.add(t);t.forEach(t=>{t.removedNodes.forEach(r),t.addedNodes.forEach(r)}),0===e.size&&(w.current+=1,x(w.current))});return M.forEach((e,r)=>{r.parentElement&&t.observe(r.parentElement,{childList:!0})}),()=>{t.disconnect()}},[M]),(0,s.g)(()=>{w.current===y&&(r.current.length!==M.size&&(r.current.length=M.size),u&&u.current.length!==M.size&&(u.current.length=M.size),m.current=M.size),p(M)},[p,M,r,u,y]),(0,s.g)(()=>()=>{r.current=[]},[r]),(0,s.g)(()=>()=>{u&&(u.current=[])},[u]);let S=(0,o.K)(t=>(g.add(t),()=>{g.delete(t)}));(0,s.g)(()=>{g.forEach(t=>t(M))},[g,M]);let A=n.useMemo(()=>({register:b,unregister:T,subscribeMapChange:S,elementsRef:r,labelsRef:u,nextIndexRef:m}),[b,T,S,r,u,m]);return(0,l.jsx)(a.D.Provider,{value:A,children:e})}function h(){return new Map}function c(){return new Set}function d(t,e){let r=t.compareDocumentPosition(e);return r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS?1:0}},7592:(t,e,r)=>{r.d(e,{I:()=>s});var n=r(7620),i=r(604),o=r(8827);function s(t,e,r,a,l=!0){let{registerFieldControl:u}=(0,o.V$)(),h=n.useRef(null);h.current||(h.current=Symbol()),(0,i.g)(()=>{let n=h.current;if(n&&l)return u(n,{controlRef:t,getValue:a,id:e,value:r}),()=>{u(n,void 0)}},[t,l,a,e,u,r])}},7597:(t,e,r)=>{r.d(e,{D:()=>i,M:()=>o});var n=r(7620);let i=n.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});function o(){return n.useContext(i)}},7680:(t,e,r)=>{r.d(e,{p:()=>x});var n=r(7620),i=r(2140),o=r(604),s=r(7806),a=r(2930),l=r(8827),u=r(7592),h=r(658),c=r(3881),d=r(2264),f=r(2925),p=r(6531),m=r(7089),g=r(7898);let v=n.forwardRef(function(t,e){let{render:r,className:v,id:y,name:x,value:w,disabled:b=!1,onValueChange:T,defaultValue:M,autoFocus:S=!1,style:A,...P}=t,{state:E,name:R,disabled:k,setTouched:C,setDirty:V,validityData:D,setFocused:I,setFilled:L,validationMode:j,validation:F}=(0,l.V$)(),B=k||b,O={...E,disabled:B},{labelId:H}=(0,h.H)(),W=(0,c.l)({id:y});(0,o.g)(()=>{let t=null!=w;F.inputRef.current?.value||t&&""!==w?L(!0):t&&""===w&&L(!1)},[F.inputRef,L,w]);let N=n.useRef(null);(0,o.g)(()=>{S&&N.current===(0,g.RS)((0,s.R)(N.current))&&I(!0)},[S,I]);let[$]=(0,i.q)({controlled:w,default:M,name:"FieldControl",state:"value"}),U=void 0!==w,z=U?$:void 0,q=(0,a.K)(()=>F.inputRef.current?.value);return(0,u.I)(F.inputRef,W,z,q),(0,f.o)("input",t,{ref:[e,N],state:O,props:[{id:W,disabled:B,name:R??x,ref:F.inputRef,"aria-labelledby":H,autoFocus:S,...U?{value:z}:{defaultValue:M},onChange(t){let e=t.currentTarget.value;T?.(e,(0,p.d)(m.dv,t.nativeEvent)),V(e!==D.initialValue),L(""!==e)},onFocus(){I(!0)},onBlur(t){C(!0),I(!1),"onBlur"===j&&F.commit(t.currentTarget.value)},onKeyDown(t){"INPUT"===t.currentTarget.tagName&&"Enter"===t.key&&(C(!0),F.commit(t.currentTarget.value))}},F.getInputValidationProps(),P],stateAttributesMapping:d.dc})});var y=r(4568);let x=n.forwardRef(function(t,e){return(0,y.jsx)(v,{ref:e,...t})})},7812:(t,e,r)=>{r.d(e,{A:()=>n});let n=(0,r(4188).A)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},7833:(t,e,r)=>{r.d(e,{E:()=>o});var n=r(4568);let i="base-ui-disable-scrollbar",o={className:i,getElement:t=>(0,n.jsx)("style",{nonce:t,href:i,precedence:"base-ui:low",children:`.${i}{scrollbar-width:none}.${i}::-webkit-scrollbar{display:none}`})}},8328:(t,e,r)=>{r.d(e,{M:()=>i});var n=r(7620);function i(t){let e=(0,n.useRef)(null);return null===e.current&&(e.current=t()),e.current}},8728:(t,e,r)=>{r.d(e,{A:()=>n});function n(t,e,r){if(!t)return 0;let n=getComputedStyle(t),i="x"===r?"Inline":"Block";return"x"===r&&"margin"===e?2*parseFloat(n[`${e}InlineStart`]):parseFloat(n[`${e}${i}Start`])+parseFloat(n[`${e}${i}End`])}},8742:(t,e,r)=>{r.d(e,{A:()=>n});let n=(0,r(4188).A)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]])},8827:(t,e,r)=>{r.d(e,{V$:()=>u});var n=r(8933),i=r(7620),o=r(4372),s=r(2264);let a={invalid:void 0,name:void 0,validityData:{state:s.ZV,errors:[],error:"",value:"",initialValue:null},setValidityData:o.tE,disabled:void 0,touched:s.HH.touched,setTouched:o.tE,dirty:s.HH.dirty,setDirty:o.tE,filled:s.HH.filled,setFilled:o.tE,focused:s.HH.focused,setFocused:o.tE,validate:()=>null,validationMode:"onSubmit",validationDebounceTime:0,shouldValidateOnChange:()=>!1,state:s.mk,markedDirtyRef:{current:!1},registerFieldControl:o.tE,validation:{getValidationProps:(t=o.t0)=>t,getInputValidationProps:(t=o.t0)=>t,inputRef:{current:null},commit:async()=>{}}},l=i.createContext(a);function u(t=!0){let e=i.useContext(l);if(e.setValidityData===o.tE&&!t)throw Error((0,n.A)(28));return e}},8912:(t,e,r)=>{r.d(e,{A:()=>n});let n=(0,r(4188).A)("square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]])},9052:(t,e,r)=>{r.d(e,{G:()=>s,z:()=>o});var n=r(8933),i=r(7620);let o=i.createContext(void 0);function s(){let t=i.useContext(o);if(!t)throw Error((0,n.A)(57));return t}},9086:(t,e,r)=>{r.d(e,{$:()=>s});var n=r(7620),i=r(1977),o=r(2925);let s=n.forwardRef(function(t,e){let{render:r,className:n,disabled:s=!1,focusableWhenDisabled:a=!1,nativeButton:l=!0,style:u,...h}=t,{getButtonProps:c,buttonRef:d}=(0,i.s)({disabled:s,focusableWhenDisabled:a,native:l});return(0,o.o)("button",t,{state:{disabled:s},ref:[e,d],props:[h,c]})})},9204:(t,e,r)=>{r.d(e,{S:()=>s});var n=r(8933),i=r(7620);let o=i.createContext(void 0);function s(t){let e=i.useContext(o);if(void 0===e&&!t)throw Error((0,n.A)(69));return e}},9250:(t,e,r)=>{r.d(e,{A:()=>n});let n=(0,r(4188).A)("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]])},9301:(t,e,r)=>{r.d(e,{G:()=>s,H:()=>o});var n=r(8933),i=r(7620);let o=i.createContext(void 0);function s(t=!1){let e=i.useContext(o);if(void 0===e&&!t)throw Error((0,n.A)(16));return e}},9321:(t,e,r)=>{r.d(e,{$v:()=>y,Jd:()=>o,Kp:()=>u,LM:()=>p,Qi:()=>v,RJ:()=>a,eR:()=>s,eb:()=>h,il:()=>i,jF:()=>m,lZ:()=>c,rT:()=>g,ug:()=>d,yZ:()=>l,z5:()=>f});var n=r(9306);let i="ArrowUp",o="ArrowDown",s="ArrowLeft",a="ArrowRight",l="Home",u="End",h=new Set([s,a]),c=new Set([s,a,l,u]),d=new Set([i,o]),f=new Set([i,o,l,u]),p=new Set([...h,...d]),m=new Set([...p,l,u]),g=new Set(["Shift","Control","Alt","Meta"]);function v(t){return!!((0,n.sb)(t)&&"INPUT"===t.tagName&&null!=t.selectionStart||(0,n.sb)(t)&&"TEXTAREA"===t.tagName)}function y(t,e,r,n){if(!t||!e||!e.scrollTo)return;let i=t.scrollLeft,o=t.scrollTop,s=t.clientWidth<t.scrollWidth,a=t.clientHeight<t.scrollHeight;if(s&&"vertical"!==n){let n=x(t,e,"left"),o=w(t),s=w(e);"ltr"===r&&(n+e.offsetWidth+s.scrollMarginRight>t.scrollLeft+t.clientWidth-o.scrollPaddingRight?i=n+e.offsetWidth+s.scrollMarginRight-t.clientWidth+o.scrollPaddingRight:n-s.scrollMarginLeft<t.scrollLeft+o.scrollPaddingLeft&&(i=n-s.scrollMarginLeft-o.scrollPaddingLeft)),"rtl"===r&&(n-s.scrollMarginRight<t.scrollLeft+o.scrollPaddingLeft?i=n-s.scrollMarginLeft-o.scrollPaddingLeft:n+e.offsetWidth+s.scrollMarginRight>t.scrollLeft+t.clientWidth-o.scrollPaddingRight&&(i=n+e.offsetWidth+s.scrollMarginRight-t.clientWidth+o.scrollPaddingRight))}if(a&&"horizontal"!==n){let r=x(t,e,"top"),n=w(t),i=w(e);r-i.scrollMarginTop<t.scrollTop+n.scrollPaddingTop?o=r-i.scrollMarginTop-n.scrollPaddingTop:r+e.offsetHeight+i.scrollMarginBottom>t.scrollTop+t.clientHeight-n.scrollPaddingBottom&&(o=r+e.offsetHeight+i.scrollMarginBottom-t.clientHeight+n.scrollPaddingBottom)}t.scrollTo({left:i,top:o,behavior:"auto"})}function x(t,e,r){let n="left"===r?"offsetLeft":"offsetTop",i=0;for(;e.offsetParent&&(i+=e[n],e.offsetParent!==t);)e=e.offsetParent;return i}function w(t){let e=getComputedStyle(t);return{scrollMarginTop:parseFloat(e.scrollMarginTop)||0,scrollMarginRight:parseFloat(e.scrollMarginRight)||0,scrollMarginBottom:parseFloat(e.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(e.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(e.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(e.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(e.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(e.scrollPaddingLeft)||0}}},9518:(t,e,r)=>{r.d(e,{t:()=>n});let n=(0,r(7620).createContext)(null)},9661:(t,e,r)=>{var n;r.d(e,{r:()=>o});let i=((n={}).scrolling="data-scrolling",n.hasOverflowX="data-has-overflow-x",n.hasOverflowY="data-has-overflow-y",n.overflowXStart="data-overflow-x-start",n.overflowXEnd="data-overflow-x-end",n.overflowYStart="data-overflow-y-start",n.overflowYEnd="data-overflow-y-end",n),o={hasOverflowX:t=>t?{[i.hasOverflowX]:""}:null,hasOverflowY:t=>t?{[i.hasOverflowY]:""}:null,overflowXStart:t=>t?{[i.overflowXStart]:""}:null,overflowXEnd:t=>t?{[i.overflowXEnd]:""}:null,overflowYStart:t=>t?{[i.overflowYStart]:""}:null,overflowYEnd:t=>t?{[i.overflowYEnd]:""}:null,cornerHidden:()=>null}},9765:(t,e,r)=>{r.d(e,{y:()=>h});var n=r(7620),i=r(5853),o=r(2925),s=r(3294),a=r(6666),l=r(1343);let u={value:()=>null},h=n.forwardRef(function(t,e){let{className:r,render:n,children:h,placeholder:c,style:d,...f}=t,{store:p,valueRef:m}=(0,s.ll)(),g=(0,i.P)(p,l.T.value),v=(0,i.P)(p,l.T.items),y=(0,i.P)(p,l.T.itemToStringLabel),x=(0,i.P)(p,l.T.hasSelectedValue),w=(0,i.P)(p,l.T.hasNullItemLabel,!x&&null!=c&&null==h),b=null;return b="function"==typeof h?h(g):null!=h?h:x||null==c||w?Array.isArray(g)?(0,a.u)(g,v,y):(0,a.Md)(g,v,y):c,(0,o.o)("span",t,{state:{value:g,placeholder:!x},ref:[e,m],props:[{children:b},f],stateAttributesMapping:u})})},9836:(t,e,r)=>{r.d(e,{b:()=>P});var n=r(7620),i=r(7806),o=r(7897),s=r(2930),a=r(2196),l=r(2888),u=r(5853),h=r(3294),c=r(8827),d=r(658),f=r(3322),p=r(2264),m=r(2925),g=r(1343),v=r(9306),y=r(207),x=r(7898),w=r(8515),b=r(1977),T=r(6531),M=r(7089),S=r(3881);let A={...f.jL,...p.dc,popupSide:t=>t?{"data-popup-side":t}:null,value:()=>null},P=n.forwardRef(function(t,e){let{render:r,className:f,id:p,disabled:P=!1,nativeButton:E=!0,style:R,...k}=t,{setTouched:C,setFocused:V,validationMode:D,state:I,disabled:L}=(0,c.V$)(),{labelId:j}=(0,d.H)(),{store:F,setOpen:B,selectionRef:O,validation:H,readOnly:W,required:N,alignItemWithTriggerActiveRef:$,disabled:U,keyboardActiveRef:z}=(0,h.ll)(),q=L||U||P,Y=(0,u.P)(F,g.T.open),K=(0,u.P)(F,g.T.mounted),X=(0,u.P)(F,g.T.value),G=(0,u.P)(F,g.T.triggerProps),Z=(0,u.P)(F,g.T.positionerElement),_=(0,u.P)(F,g.T.listElement),J=(0,u.P)(F,g.T.popupSide),Q=(0,u.P)(F,g.T.id),tt=(0,u.P)(F,g.T.labelId),te=(0,u.P)(F,g.T.hasSelectedValue),tr=K&&Z?J:null,tn=p??Q;(0,S.l)({id:tn});let ti=(0,l.u)(Z),to=n.useRef(null),{getButtonProps:ts,buttonRef:ta}=(0,b.s)({disabled:q,native:E}),tl=(0,s.K)(t=>{F.set("triggerElement",t)}),tu=(0,a.a)(e,to,ta,tl),th=(0,o.Z)(),tc=(0,o.Z)(),td=(0,o.Z)();n.useEffect(()=>{if(Y)return td.start(400,()=>{O.current.allowUnselectedMouseUp=!0,O.current.allowSelectedMouseUp=!0}),()=>{td.clear()};O.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0},tc.clear()},[Y,O,tc,td]);let tf=(0,w.v6)(G,{id:tn,role:"combobox","aria-expanded":Y?"true":"false","aria-haspopup":"listbox","aria-controls":Y?_?.id??(0,y.nd)(Z)?.id:void 0,"aria-labelledby":j??tt,"aria-readonly":W||void 0,"aria-required":N||void 0,tabIndex:q?-1:0,ref:tu,onFocus(t){V(!0),Y&&$.current&&B(!1,(0,T.d)(M.dv,t.nativeEvent)),th.start(0,()=>{F.set("forceMount",!0)})},onBlur(t){(0,x.gR)(Z,t.relatedTarget)||(C(!0),V(!1),"onBlur"===D&&H.commit(X))},onPointerMove(){z.current=!1},onKeyDown(){z.current=!0},onMouseDown(t){if(Y)return;let e=(0,i.R)(t.currentTarget);function r(t){if(!to.current)return;let e=t.target;if((0,x.gR)(to.current,e)||(0,x.gR)(ti.current,e)||e===to.current)return;let r=function(t){let e=t.getBoundingClientRect(),r=(0,v.zk)(t),n=r.getComputedStyle(t,"::before"),i=r.getComputedStyle(t,"::after");if("none"===n.content&&"none"===i.content)return e;let o=parseFloat(n.width)||0,s=parseFloat(n.height)||0,a=parseFloat(i.width)||0,l=parseFloat(i.height)||0,u=Math.max(e.width,o,a),h=Math.max(e.height,s,l),c=u-e.width,d=h-e.height;return{left:e.left-c/2,right:e.right+c/2,top:e.top-d/2,bottom:e.bottom+d/2}}(to.current);t.clientX>=r.left-2&&t.clientX<=r.right+2&&t.clientY>=r.top-2&&t.clientY<=r.bottom+2||B(!1,(0,T.d)(M.LO,t))}tc.start(0,()=>{e.addEventListener("mouseup",r,{once:!0})})}},H.getValidationProps,k,ts);tf.role="combobox";let tp={...I,open:Y,disabled:q,value:X,readOnly:W,popupSide:tr,placeholder:!te};return(0,m.o)("button",t,{ref:[e,to],state:tp,stateAttributesMapping:A,props:tf})})},9844:(t,e,r)=>{r.d(e,{A:()=>n});let n=(0,r(4188).A)("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]])}}]);
|