@forsion/unit 2.13.0 → 2.13.1
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/main.mjs +5 -3
- package/package.json +1 -1
- package/release.json +5 -5
- package/web/assets/{ArtificialView-BSv3Mx5C.js → ArtificialView-XwHMLUFb.js} +1 -1
- package/web/assets/{AutomationBuilder-BuiHtVB-.js → AutomationBuilder-hqs0QhMt.js} +1 -1
- package/web/assets/{CalendarConfigView-BJtG6cqN.js → CalendarConfigView-DKib8Oed.js} +1 -1
- package/web/assets/{CalendarView-C-FX1RED.js → CalendarView-DJ5iOzvu.js} +1 -1
- package/web/assets/{CapabilityMenu-kx1TIJYN.js → CapabilityMenu-SwVlZ06x.js} +1 -1
- package/web/assets/{CheckboxInput-eW7xdiRS.js → CheckboxInput-BC-5a_C9.js} +1 -1
- package/web/assets/{Chrome-B77-lQyh.js → Chrome-HdfyYV3i.js} +1 -1
- package/web/assets/{CodeView-Df3AiSIi.js → CodeView-CFL6yQ-6.js} +3 -3
- package/web/assets/{DashboardGridView-MlO1dpuo.js → DashboardGridView-B9DCWYVb.js} +12 -12
- package/web/assets/{EventCard-CDmeCbI8.js → EventCard-B_ndpqH_.js} +1 -1
- package/web/assets/{ExcalidrawCanvas-D9vkBh_5.js → ExcalidrawCanvas-BQ4KKLJP.js} +1 -1
- package/web/assets/{FloatingToc-tART_jC4.js → FloatingToc-Ce9GamvH.js} +1 -1
- package/web/assets/{HomepageView-Trqmd3RV.js → HomepageView-RCOfcVbE.js} +1 -1
- package/web/assets/{ImageStudioPanels-BfCVTnKC.js → ImageStudioPanels-lkS_y2uM.js} +2 -2
- package/web/assets/{ImageStudioView-KJhx0wJk.js → ImageStudioView-UPv52acl.js} +1 -1
- package/web/assets/{InlineFiles-BHwivGbQ.js → InlineFiles-CQbQumkf.js} +1 -1
- package/web/assets/{MarkdownBlock-D8LgHFYY.js → MarkdownBlock-CkqiwPXa.js} +19 -19
- package/web/assets/{ModelPill-DrW2cG0l.js → ModelPill-CY-rU1RU.js} +2 -2
- package/web/assets/{MuseLibraryView-CW78Uivf.js → MuseLibraryView-CtTHlVnT.js} +2 -2
- package/web/assets/{MuseView-Cb6R_l4i.js → MuseView-CC2A7MBs.js} +2 -2
- package/web/assets/{PageHistoryPanel-BQs9IWTP.js → PageHistoryPanel-KhKT1DLy.js} +2 -2
- package/web/assets/{PdfAnnotator-BFTBkxvO.js → PdfAnnotator-DUyrgY-t.js} +1 -1
- package/web/assets/{ProductView-mB-S0j81.js → ProductView-CgsIYZqD.js} +1 -1
- package/web/assets/{RightPanel-BVZeVO3c.js → RightPanel-BHDgqTFs.js} +3 -3
- package/web/assets/RunLocationPicker-DBnXYV5B.js +38 -0
- package/web/assets/{SidebarRow-D77yrSLf.js → SidebarRow-BAJxbMcx.js} +1 -1
- package/web/assets/{SketchCard-CAAr_cqF.js → SketchCard-BGYz-bXP.js} +1 -1
- package/web/assets/{StudioGuestSurface-DthpuVGg.js → StudioGuestSurface-lt6znmkl.js} +1 -1
- package/web/assets/{TodoListView-C3ZkMIIf.js → TodoListView-DPKhee6i.js} +1 -1
- package/web/assets/{Tooltip-D9Dt9ZTr.js → Tooltip-ZxrDqN4p.js} +1 -1
- package/web/assets/{UnifiedPage-C75y-MKT.js → UnifiedPage-BX6ZQL0h.js} +27 -27
- package/web/assets/{amadeus-manual.en-D5wZKuag.js → amadeus-manual.en-DzRWr4BL.js} +15 -15
- package/web/assets/{amadeus-manual.zh-Br5fidrj.js → amadeus-manual.zh-DW32DkL7.js} +15 -15
- package/web/assets/{appStore-B1ynyt42.js → appStore-DWP8UET9.js} +99 -79
- package/web/assets/appStore-wtOILggO.css +1 -0
- package/web/assets/{arrow-up-right-R10mR2I6.js → arrow-up-right-DrCXuWS7.js} +1 -1
- package/web/assets/{astryxBridge-CU_kQTEl.js → astryxBridge-D-m4_kYt.js} +3 -3
- package/web/assets/{automationListSource-B8EIRmDW.js → automationListSource-C8BNy6RY.js} +1 -1
- package/web/assets/{book-open-DBJ3dDpw.js → book-open-OLNm7OaB.js} +1 -1
- package/web/assets/{calendarNavStore-DGvUlU5N.js → calendarNavStore-Cylfvv3s.js} +1 -1
- package/web/assets/{canvasPrefs-DwL_OAAo.js → canvasPrefs-8taQ42Cz.js} +1 -1
- package/web/assets/{chatBoxSurface-Lq-2qfd3.js → chatBoxSurface-CIlzs45H.js} +1 -1
- package/web/assets/{circle-question-mark-HPZpZQxd.js → circle-question-mark-XbAFplz1.js} +1 -1
- package/web/assets/{circle-x-BZfe7d6S.js → circle-x-fcReAZaE.js} +1 -1
- package/web/assets/{client-DxGbwZLy.js → client-0MPbodA6.js} +1 -1
- package/web/assets/{code-xml-joKQ-qGS.js → code-xml-Cuna8Kh4.js} +1 -1
- package/web/assets/{codeStudioStore-C7rGKlOC.js → codeStudioStore-BBU62GTy.js} +1 -1
- package/web/assets/{codingNavigation-CjeWG4xm.js → codingNavigation-DDlPpPk5.js} +7 -7
- package/web/assets/{create-BjBRKATq.js → create-BGtEfCcg.js} +2 -2
- package/web/assets/{dashboardSurface-Cojgf_-U.js → dashboardSurface-BYM3C7WG.js} +1 -1
- package/web/assets/{deskCapture-DnGWk1iq.js → deskCapture-BiUCmqfc.js} +1 -1
- package/web/assets/{diff2html-Cd1rVi_Z.js → diff2html-BNp2FTbk.js} +1 -1
- package/web/assets/{docx-preview-CK0k1mUD.js → docx-preview-CFznGVOU.js} +1 -1
- package/web/assets/{emoji-Cjm3bKiF.js → emoji-6zl4yfOS.js} +1 -1
- package/web/assets/{floatingTocSurface-Dd1pT5j5.js → floatingTocSurface-DreXPCa6.js} +1 -1
- package/web/assets/{foldActions-Dm-uAt3L.js → foldActions-05QcQziQ.js} +1 -1
- package/web/assets/{folder-CvZyHIgb.js → folder-BpsfOHD4.js} +1 -1
- package/web/assets/{folder-plus-BRScGQ9m.js → folder-plus-BeQHr4AZ.js} +1 -1
- package/web/assets/{gestures-CZQVefU0.js → gestures-DQBCcK4y.js} +1 -1
- package/web/assets/{hand-D3QspKYq.js → hand-Bko7ms15.js} +1 -1
- package/web/assets/{hard-drive-BQsHSala.js → hard-drive-BpuI5ebj.js} +1 -1
- package/web/assets/{i18n.generated-BZRHO2Nc.js → i18n.generated-BuLjnmY8.js} +1 -1
- package/web/assets/{imageStudio-Cy3_437s.js → imageStudio-BLVNKmEG.js} +2 -2
- package/web/assets/{index-BPhwi4-v.js → index-BF10xp_K.js} +1 -1
- package/web/assets/{index-GjLSlygt.js → index-BHm6K743.js} +1 -1
- package/web/assets/{index-Bh_nLVTc.js → index-BM2o7PeV.js} +5 -5
- package/web/assets/{index-BcVGjCAJ.js → index-BgnNNv3e.js} +1 -1
- package/web/assets/{index-CcOag8eb.js → index-C0Gy2NQ6.js} +1 -1
- package/web/assets/{index-0AYHATDX.js → index-C1doZp5H.js} +1 -1
- package/web/assets/{index-9BmmlTjY.js → index-C4L6vjd_.js} +1 -1
- package/web/assets/{index-8ag1K7AZ.js → index-CD3yIkOA.js} +1 -1
- package/web/assets/{index-Dkd-nl1u.js → index-CJeUgjPU.js} +1 -1
- package/web/assets/{index-B5GxvbNm.js → index-CLHoq1w-.js} +1 -1
- package/web/assets/{index-DElrDw66.js → index-CUZI62qU.js} +1 -1
- package/web/assets/{index-BgtO11q8.js → index-Cff42k7q.js} +1 -1
- package/web/assets/{index-Dj-PygjB.js → index-Ck_O3Jdd.js} +1 -1
- package/web/assets/index-CuiYK18N.js +1 -0
- package/web/assets/{index-Bpc3R3DS.js → index-CwcOeZdT.js} +1 -1
- package/web/assets/{index-DJLWTPtq.js → index-D6AycQIz.js} +1 -1
- package/web/assets/{index-C9yo04Ck.js → index-D7gVhvNY.js} +1 -1
- package/web/assets/{index-BnWj6ggb.js → index-D9UZQy42.js} +1 -1
- package/web/assets/{index-D6mpAJ9S.js → index-DuBQ0j2g.js} +1 -1
- package/web/assets/{index-1FhRiJ_X.js → index-OD1gSX3h.js} +1 -1
- package/web/assets/{index-DNE_PBJt.js → index-Uo5tswys.js} +1 -1
- package/web/assets/{index-BgDZGDqt.js → index-o8cj0pRH.js} +1 -1
- package/web/assets/{index-BdZaheMZ.js → index-rHjhbwvm.js} +1 -1
- package/web/assets/{index-4E9nrhwf.js → index-rggq2czF.js} +1 -1
- package/web/assets/{index-D0FLFLfh.js → index-sCXThwqZ.js} +1 -1
- package/web/assets/{invitePage-B4gMvEKi.js → invitePage-b0HGvMj6.js} +1 -1
- package/web/assets/{ipc-CPhL3bPp.js → ipc-CxAyeo8q.js} +1 -1
- package/web/assets/{jszip.min-DAJT9RUA.js → jszip.min-B94KpE21.js} +1 -1
- package/web/assets/{layout-grid-DfUfnvDS.js → layout-grid-BBVuEdWG.js} +1 -1
- package/web/assets/{linkFollow-C6PHGUxk.js → linkFollow-B7ivDZMM.js} +5 -5
- package/web/assets/{list-tree-DaGpnIYu.js → list-tree-4-0QDbLu.js} +1 -1
- package/web/assets/{listFold-Q_8mh5ZG.js → listFold-DLuxXiIj.js} +1 -1
- package/web/assets/{lock-DQ_yL4nF.js → lock-CnbZm4vo.js} +1 -1
- package/web/assets/{log-out-DFwTeh2X.js → log-out-BEynWaHa.js} +1 -1
- package/web/assets/{main-NgUPPqDn.css → main-BiS_5wrB.css} +1 -1
- package/web/assets/main-sIq2N9Z5.js +20 -0
- package/web/assets/{markdownEditorSurface-e_oMhqx-.js → markdownEditorSurface-ZSJ3RHAv.js} +1 -1
- package/web/assets/{mdMarkStore-DjN4bf1T.js → mdMarkStore-DQHDjG7s.js} +2 -2
- package/web/assets/{mdMarks-cmL6vzR-.js → mdMarks-DbIcRa0O.js} +1 -1
- package/web/assets/{message-square-plus-CEHkduIL.js → message-square-plus-CpiKDvle.js} +1 -1
- package/web/assets/{messages-CBtmbpur.js → messages-_jta1lSI.js} +1 -1
- package/web/assets/minus-C9ndHJ9O.js +1 -0
- package/web/assets/{mobileEntry-qR7BAROr.js → mobileEntry-CPmU_c4m.js} +1 -1
- package/web/assets/{nativeDownload-CziEyW_p.js → nativeDownload-BYT082bY.js} +1 -1
- package/web/assets/{pageChrome-DFz_AAzZ.js → pageChrome-D3Niv1JM.js} +1 -1
- package/web/assets/{pageTree-yVO1_fSy.js → pageTree-CgfvpzIj.js} +1 -1
- package/web/assets/{pen-tool-uxsFELYC.js → pen-tool-BXEFnU2i.js} +1 -1
- package/web/assets/{pencil-BSbra1Ra.js → pencil-cqvCkekG.js} +1 -1
- package/web/assets/pluginChat-BbBukMuN.js +2 -0
- package/web/assets/{redo-2-BK5LMNa5.js → redo-2-BO7wCDwy.js} +1 -1
- package/web/assets/{rotate-ccw-HedfU4na.js → rotate-ccw-BvipPIjC.js} +1 -1
- package/web/assets/{sharePage-CpzDpuU1.js → sharePage-XbN50US7.js} +2 -2
- package/web/assets/{shareViewer-BwzH2bIs.js → shareViewer-BaYogetW.js} +1 -1
- package/web/assets/{star-CgYon3z4.js → star-BQWMXnn7.js} +1 -1
- package/web/assets/tableSurface-BXqqidd1.js +1 -0
- package/web/assets/{terminal-krsPf1mc.js → terminal-l9k6RDrH.js} +1 -1
- package/web/assets/{terminalView-4e2_u5_I.js → terminalView-Cpnt5_0P.js} +1 -1
- package/web/assets/{type-GJYLEhY-.js → type-CFoaj2eD.js} +1 -1
- package/web/assets/{undo-2-DCTs4Ro4.js → undo-2-DusxpdLa.js} +1 -1
- package/web/assets/{unitAccount-D3xjX3cu.js → unitAccount-DwutFPPw.js} +1 -1
- package/web/assets/{unitBridge-D5JcIkAP.js → unitBridge-CcgQpkqV.js} +1 -1
- package/web/assets/{unitCloudTransport-B44L3x6M.js → unitCloudTransport-vA7cLDts.js} +1 -1
- package/web/assets/{unitOwnerAccess-CRUHWGpf.js → unitOwnerAccess-LBlJ1YfA.js} +1 -1
- package/web/assets/{unitShim-_VzxvdEG.js → unitShim-B_M9IrbC.js} +3 -3
- package/web/assets/{upload-MVVRQtkj.js → upload-ZrOj6tXA.js} +1 -1
- package/web/assets/{userSpaces-CI4eqEgh.js → userSpaces-uJOnsedR.js} +1 -1
- package/web/assets/viewportLock-D3SNkwS2.js +631 -0
- package/web/assets/{workflow-DzeW9OXR.js → workflow-DPoG4QE2.js} +1 -1
- package/web/assets/{zoom-in-CovPsw4g.js → zoom-in-lbTgzdQP.js} +1 -1
- package/web/index.html +27 -7
- package/web/assets/RunLocationPicker-CyVa0RJa.js +0 -38
- package/web/assets/appStore-BC_CQv-L.css +0 -1
- package/web/assets/index-BaRySZ-M.js +0 -1
- package/web/assets/main-CwqZ_ymb.js +0 -19
- package/web/assets/minus-BUT48dAC.js +0 -1
- package/web/assets/pluginChat-BMFnf_j2.js +0 -2
- package/web/assets/tableSurface-CmDwnKnd.js +0 -1
- package/web/assets/viewportLock-BH26xHQO.js +0 -611
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{F as ln,u as _o,co as Xo}from"./appStore-B1ynyt42.js";import{d as v,j as U}from"./index-Bh_nLVTc.js";import{c as ri}from"./nativeDownload-CziEyW_p.js";const Yo=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],ch=ln("clock",Yo);const qo=[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]],uh=ln("pin",qo);const Zo=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],hh=ln("square-pen",Zo),cn=v.createContext({});function un(t){const e=v.useRef(null);return e.current===null&&(e.current=t()),e.current}const Jo=typeof window<"u",hn=Jo?v.useLayoutEffect:v.useEffect,fe=v.createContext(null);function fn(t,e){t.indexOf(e)===-1&&t.push(e)}function ee(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const tt=(t,e,n)=>n>e?e:n<t?t:n;let dn=()=>{};const ot={},ai=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),li=t=>typeof t=="object"&&t!==null,ci=t=>/^0[^.\s]+$/u.test(t);function ui(t){let e;return()=>(e===void 0&&(e=t()),e)}const H=t=>t,Ot=(...t)=>t.reduce((e,n)=>s=>n(e(s))),Lt=(t,e,n)=>{const s=e-t;return s?(n-t)/s:1};class pn{constructor(){this.subscriptions=[]}add(e){return fn(this.subscriptions,e),()=>ee(this.subscriptions,e)}notify(e,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,s);else for(let r=0;r<i;r++){const o=this.subscriptions[r];o&&o(e,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const K=t=>t*1e3,z=t=>t/1e3,hi=(t,e)=>e?t*(1e3/e):0,fi=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,Qo=1e-7,tr=12;function er(t,e,n,s,i){let r,o,a=0;do o=e+(n-e)/2,r=fi(o,s,i)-t,r>0?n=o:e=o;while(Math.abs(r)>Qo&&++a<tr);return o}function jt(t,e,n,s){if(t===e&&n===s)return H;const i=r=>er(r,0,1,t,n);return r=>r===0||r===1?r:fi(i(r),e,s)}const di=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,pi=t=>e=>1-t(1-e),mi=jt(.33,1.53,.69,.99),mn=pi(mi),gi=di(mn),yi=t=>t>=1?1:(t*=2)<1?.5*mn(t):.5*(2-Math.pow(2,-10*(t-1))),gn=t=>1-Math.sin(Math.acos(t)),vi=pi(gn),xi=di(gn),nr=jt(.42,0,1,1),sr=jt(0,0,.58,1),Ti=jt(.42,0,.58,1),ir=t=>Array.isArray(t)&&typeof t[0]!="number",wi=t=>Array.isArray(t)&&typeof t[0]=="number",or={linear:H,easeIn:nr,easeInOut:Ti,easeOut:sr,circIn:gn,circInOut:xi,circOut:vi,backIn:mn,backInOut:gi,backOut:mi,anticipate:yi},rr=t=>typeof t=="string",Un=t=>{if(wi(t)){dn(t.length===4);const[e,n,s,i]=t;return jt(e,n,s,i)}else if(rr(t))return or[t];return t},Ut=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function ar(t){let e=new Set,n=new Set,s=!1,i=!1;const r=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function a(l){r.has(l)&&(u.schedule(l),t()),l(o)}const u={schedule:(l,c=!1,h=!1)=>{const p=h&&s?e:n;return c&&r.add(l),p.add(l),l},cancel:l=>{n.delete(l),r.delete(l)},process:l=>{if(o=l,s){i=!0;return}s=!0;const c=e;e=n,n=c,e.forEach(a),e.clear(),s=!1,i&&(i=!1,u.process(l))}};return u}const lr=40;function Pi(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,o=Ut.reduce((x,w)=>(x[w]=ar(r),x),{}),{setup:a,read:u,resolveKeyframes:l,preUpdate:c,update:h,preRender:f,render:p,postRender:d}=o,m=()=>{const x=ot.useManualTiming,w=x?i.timestamp:performance.now();n=!1,x||(i.delta=s?1e3/60:Math.max(Math.min(w-i.timestamp,lr),1)),i.timestamp=w,i.isProcessing=!0,a.process(i),u.process(i),l.process(i),c.process(i),h.process(i),f.process(i),p.process(i),d.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(m))},g=()=>{n=!0,s=!0,i.isProcessing||t(m)};return{schedule:Ut.reduce((x,w)=>{const A=o[w];return x[w]=(V,M=!1,S=!1)=>(n||g(),A.schedule(V,M,S)),x},{}),cancel:x=>{for(let w=0;w<Ut.length;w++)o[Ut[w]].cancel(x)},state:i,steps:o}}const{schedule:E,cancel:rt,state:O,steps:ye}=Pi(typeof requestAnimationFrame<"u"?requestAnimationFrame:H,!0);let Gt;function cr(){Gt=void 0}const N={now:()=>(Gt===void 0&&N.set(O.isProcessing||ot.useManualTiming?O.timestamp:performance.now()),Gt),set:t=>{Gt=t,queueMicrotask(cr)}},Si=t=>e=>typeof e=="string"&&e.startsWith(t),bi=Si("--"),ur=Si("var(--"),yn=t=>ur(t)?hr.test(t.split("/*")[0].trim()):!1,hr=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Kn(t){return typeof t!="string"?!1:t.split("/*")[0].includes("var(--")}const St={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},kt={...St,transform:t=>tt(0,1,t)},Kt={...St,default:1},Mt=t=>Math.round(t*1e5)/1e5,vn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function fr(t){return t==null}const dr=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,xn=(t,e)=>n=>!!(typeof n=="string"&&dr.test(n)&&n.startsWith(t)||e&&!fr(n)&&Object.prototype.hasOwnProperty.call(n,e)),Ai=(t,e,n)=>s=>{if(typeof s!="string")return s;const[i,r,o,a]=s.match(vn);return{[t]:parseFloat(i),[e]:parseFloat(r),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},pr=t=>tt(0,255,t),ve={...St,transform:t=>Math.round(pr(t))},ht={test:xn("rgb","red"),parse:Ai("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+ve.transform(t)+", "+ve.transform(e)+", "+ve.transform(n)+", "+Mt(kt.transform(s))+")"};function mr(t){let e="",n="",s="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,s+=s,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const Ie={test:xn("#"),parse:mr,transform:ht.transform},Nt=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),st=Nt("deg"),Q=Nt("%"),P=Nt("px"),gr=Nt("vh"),yr=Nt("vw"),$n={...Q,parse:t=>Q.parse(t)/100,transform:t=>Q.transform(t*100)},yt={test:xn("hsl","hue"),parse:Ai("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+Q.transform(Mt(e))+", "+Q.transform(Mt(n))+", "+Mt(kt.transform(s))+")"},k={test:t=>ht.test(t)||Ie.test(t)||yt.test(t),parse:t=>ht.test(t)?ht.parse(t):yt.test(t)?yt.parse(t):Ie.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?ht.transform(t):yt.transform(t),getAnimatableNone:t=>{const e=k.parse(t);return e.alpha=0,k.transform(e)}},vr=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function xr(t){return isNaN(t)&&typeof t=="string"&&(t.match(vn)?.length||0)+(t.match(vr)?.length||0)>0}const Vi="number",Ci="color",Tr="var",wr="var(",zn="${}",Pr=/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 wt(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let r=0;const a=e.replace(Pr,u=>(k.test(u)?(s.color.push(r),i.push(Ci),n.push(k.parse(u))):u.startsWith(wr)?(s.var.push(r),i.push(Tr),n.push(u)):(s.number.push(r),i.push(Vi),n.push(parseFloat(u))),++r,zn)).split(zn);return{values:n,split:a,indexes:s,types:i}}function Sr(t){return wt(t).values}function Mi({split:t,types:e}){const n=t.length;return s=>{let i="";for(let r=0;r<n;r++)if(i+=t[r],s[r]!==void 0){const o=e[r];o===Vi?i+=Mt(s[r]):o===Ci?i+=k.transform(s[r]):i+=s[r]}return i}}function br(t){return Mi(wt(t))}const Ar=t=>typeof t=="number"?0:k.test(t)?k.getAnimatableNone(t):t,Vr=(t,e)=>typeof t=="number"?e?.trim().endsWith("/")?t:0:Ar(t);function Cr(t){const e=wt(t);return Mi(e)(e.values.map((s,i)=>Vr(s,e.split[i])))}const X={test:xr,parse:Sr,createTransformer:br,getAnimatableNone:Cr};function xe(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Mr({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,r=0,o=0;if(!e)i=r=o=n;else{const a=n<.5?n*(1+e):n+e-n*e,u=2*n-a;i=xe(u,a,t+1/3),r=xe(u,a,t),o=xe(u,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:s}}function ne(t,e){return n=>n>0?e:t}const D=(t,e,n)=>t+(e-t)*n,Te=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},Dr=[Ie,ht,yt],Er=t=>Dr.find(e=>e.test(t));function Hn(t){const e=Er(t);if(!e)return!1;let n=e.parse(t);return e===yt&&(n=Mr(n)),n}const Gn=(t,e)=>{const n=Hn(t),s=Hn(e);if(!n||!s)return ne(t,e);const i={...n};return r=>(i.red=Te(n.red,s.red,r),i.green=Te(n.green,s.green,r),i.blue=Te(n.blue,s.blue,r),i.alpha=D(n.alpha,s.alpha,r),ht.transform(i))},Be=new Set(["none","hidden"]);function Rr(t,e){return Be.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function Lr(t,e){return n=>D(t,e,n)}function Tn(t){return typeof t=="number"?Lr:typeof t=="string"?yn(t)?ne:k.test(t)?Gn:Br:Array.isArray(t)?Di:typeof t=="object"?k.test(t)?Gn:kr:ne}function Di(t,e){const n=[...t],s=n.length,i=t.map((r,o)=>Tn(r)(r,e[o]));return r=>{for(let o=0;o<s;o++)n[o]=i[o](r);return n}}function kr(t,e){const n={...t,...e},s={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(s[i]=Tn(t[i])(t[i],e[i]));return i=>{for(const r in s)n[r]=s[r](i);return n}}function Ir(t,e){const n=[],s={color:0,var:0,number:0};for(let i=0;i<e.values.length;i++){const r=e.types[i],o=t.indexes[r][s[r]],a=t.values[o]??0;n[i]=a,s[r]++}return n}const Br=(t,e)=>{const n=X.createTransformer(e),s=wt(t),i=wt(e);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?Be.has(t)&&!i.values.length||Be.has(e)&&!s.values.length?Rr(t,e):Ot(Di(Ir(s,i),i.values),n):ne(t,e)};function Ei(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?D(t,e,n):Tn(t)(t,e)}const Fr=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>E.update(e,n),stop:()=>rt(e),now:()=>O.isProcessing?O.timestamp:N.now()}},Ri=(t,e,n=10)=>{let s="";const i=Math.max(Math.round(e/n),2);for(let r=0;r<i;r++)s+=Math.round(t(r/(i-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},se=2e4;function wn(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<se;)e+=n,s=t.next(e);return e>=se?1/0:e}function Or(t,e=100,n){const s=n({...t,keyframes:[0,e]}),i=Math.min(wn(s),se);return{type:"keyframes",ease:r=>s.next(i*r).value/e,duration:z(i)}}const L={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function Fe(t,e){return t*Math.sqrt(1-e*e)}const jr=12;function Nr(t,e,n){let s=n;for(let i=1;i<jr;i++)s=s-t(s)/e(s);return s}const we=.001;function Wr({duration:t=L.duration,bounce:e=L.bounce,velocity:n=L.velocity,mass:s=L.mass}){let i,r,o=1-e;o=tt(L.minDamping,L.maxDamping,o),t=tt(L.minDuration,L.maxDuration,z(t)),o<1?(i=l=>{const c=l*o,h=c*t,f=c-n,p=Fe(l,o),d=Math.exp(-h);return we-f/p*d},r=l=>{const h=l*o*t,f=h*n+n,p=Math.pow(o,2)*Math.pow(l,2)*t,d=Math.exp(-h),m=Fe(Math.pow(l,2),o);return(-i(l)+we>0?-1:1)*((f-p)*d)/m}):(i=l=>{const c=Math.exp(-l*t),h=(l-n)*t+1;return-we+c*h},r=l=>{const c=Math.exp(-l*t),h=(n-l)*(t*t);return c*h});const a=5/t,u=Nr(i,r,a);if(t=K(t),isNaN(u))return{stiffness:L.stiffness,damping:L.damping,duration:t};{const l=Math.pow(u,2)*s;return{stiffness:l,damping:o*2*Math.sqrt(s*l),duration:t}}}const Ur=["duration","bounce"],Kr=["stiffness","damping","mass"];function _n(t,e){return e.some(n=>t[n]!==void 0)}function $r(t){let e={velocity:L.velocity,stiffness:L.stiffness,damping:L.damping,mass:L.mass,isResolvedFromDuration:!1,...t};if(!_n(t,Kr)&&_n(t,Ur))if(e.velocity=0,t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,r=2*tt(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:L.mass,stiffness:i,damping:r}}else{const n=Wr({...t,velocity:0});e={...e,...n,mass:L.mass},e.isResolvedFromDuration=!0}return e}function ie(t=L.visualDuration,e=L.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:s,restDelta:i}=n;const r=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:u,damping:l,mass:c,duration:h,velocity:f,isResolvedFromDuration:p}=$r({...n,velocity:-z(n.velocity||0)}),d=f||0,m=l/(2*Math.sqrt(u*c)),g=o-r,y=z(Math.sqrt(u/c)),T=Math.abs(g)<5;s||(s=T?L.restSpeed.granular:L.restSpeed.default),i||(i=T?L.restDelta.granular:L.restDelta.default);let x,w,A,V,M,S;if(m<1)A=Fe(y,m),V=(d+m*y*g)/A,x=b=>{const R=Math.exp(-m*y*b);return o-R*(V*Math.sin(A*b)+g*Math.cos(A*b))},M=m*y*V+g*A,S=m*y*g-V*A,w=b=>Math.exp(-m*y*b)*(M*Math.sin(A*b)+S*Math.cos(A*b));else if(m===1){x=R=>o-Math.exp(-y*R)*(g+(d+y*g)*R);const b=d+y*g;w=R=>Math.exp(-y*R)*(y*b*R-d)}else{const b=y*Math.sqrt(m*m-1);x=Y=>{const nt=Math.exp(-m*y*Y),q=Math.min(b*Y,300);return o-nt*((d+m*y*g)*Math.sinh(q)+b*g*Math.cosh(q))/b};const R=(d+m*y*g)/b,B=m*y*R-g*b,et=m*y*g-R*b;w=Y=>{const nt=Math.exp(-m*y*Y),q=Math.min(b*Y,300);return nt*(B*Math.sinh(q)+et*Math.cosh(q))}}const C={calculatedDuration:p&&h||null,velocity:b=>K(w(b)),next:b=>{if(!p&&m<1){const B=Math.exp(-m*y*b),et=Math.sin(A*b),Y=Math.cos(A*b),nt=o-B*(V*et+g*Y),q=K(B*(M*et+S*Y));return a.done=Math.abs(q)<=s&&Math.abs(o-nt)<=i,a.value=a.done?o:nt,a}const R=x(b);if(p)a.done=b>=h;else{const B=K(w(b));a.done=Math.abs(B)<=s&&Math.abs(o-R)<=i}return a.value=a.done?o:R,a},toString:()=>{const b=Math.min(wn(C),se),R=Ri(B=>C.next(b*B).value,b,30);return b+"ms "+R},toTransition:()=>{}};return C}ie.applyToOptions=t=>{const e=Or(t,100,ie);return t.ease=e.ease,t.duration=K(e.duration),t.type="keyframes",t};const zr=5;function Li(t,e,n){const s=Math.max(e-zr,0);return hi(n-t(s),e-s)}function Oe({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:u,restDelta:l=.5,restSpeed:c}){const h=t[0],f={done:!1,value:h},p=S=>a!==void 0&&S<a||u!==void 0&&S>u,d=S=>a===void 0?u:u===void 0||Math.abs(a-S)<Math.abs(u-S)?a:u;let m=n*e;const g=h+m,y=o===void 0?g:o(g);y!==g&&(m=y-h);const T=S=>-m*Math.exp(-S/s),x=S=>y+T(S),w=S=>{const C=T(S),b=x(S);f.done=Math.abs(C)<=l,f.value=f.done?y:b};let A,V;const M=S=>{p(f.value)&&(A=S,V=ie({keyframes:[f.value,d(f.value)],velocity:Li(x,S,f.value),damping:i,stiffness:r,restDelta:l,restSpeed:c}))};return M(0),{calculatedDuration:null,next:S=>{let C=!1;return!V&&A===void 0&&(C=!0,w(S),M(S)),A!==void 0&&S>=A?V.next(S-A):(!C&&w(S),f)}}}function Hr(t,e,n){const s=[],i=n||ot.mix||Ei,r=t.length-1;for(let o=0;o<r;o++){let a=i(t[o],t[o+1]);if(e){const u=Array.isArray(e)?e[o]||H:e;a=Ot(u,a)}s.push(a)}return s}function Gr(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const r=t.length;if(dn(r===e.length),r===1)return()=>e[0];if(r===2&&e[0]===e[1])return()=>e[1];const o=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=Hr(e,s,i),u=a.length,l=c=>{if(o&&c<t[0])return e[0];let h=0;if(u>1)for(;h<t.length-2&&!(c<t[h+1]);h++);const f=Lt(t[h],t[h+1],c);return a[h](f)};return n?c=>l(tt(t[0],t[r-1],c)):l}function _r(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=Lt(0,e,s);t.push(D(n,1,i))}}function Xr(t){const e=[0];return _r(e,t.length-1),e}function Yr(t,e){return t.map(n=>n*e)}function qr(t,e){return t.map(()=>e||Ti).splice(0,t.length-1)}function Dt({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=ir(s)?s.map(Un):Un(s),r={done:!1,value:e[0]},o=Yr(n&&n.length===e.length?n:Xr(e),t),a=Gr(o,e,{ease:Array.isArray(i)?i:qr(e,i)});return{calculatedDuration:t,next:u=>(r.value=a(u),r.done=u>=t,r)}}const Zr=t=>t!==null;function de(t,{repeat:e,repeatType:n="loop"},s,i=1){const r=t.filter(Zr),a=i<0||e&&n!=="loop"&&e%2===1?0:r.length-1;return!a||s===void 0?r[a]:s}const Jr={decay:Oe,inertia:Oe,tween:Dt,keyframes:Dt,spring:ie};function ki(t){typeof t.type=="string"&&(t.type=Jr[t.type])}class Pn{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,n){return this.finished.then(e,n)}}const Qr=t=>t/100;class oe extends Pn{constructor(e){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=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==N.now()&&this.tick(N.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;ki(e);const{type:n=Dt,repeat:s=0,repeatDelay:i=0,repeatType:r,velocity:o=0}=e;let{keyframes:a}=e;const u=n||Dt;u!==Dt&&typeof a[0]!="number"&&(this.mixKeyframes=Ot(Qr,Ei(a[0],a[1])),a=[0,100]);const l=u({...e,keyframes:a});r==="mirror"&&(this.mirroredGenerator=u({...e,keyframes:[...a].reverse(),velocity:-o})),l.calculatedDuration===null&&(l.calculatedDuration=wn(l));const{calculatedDuration:c}=l;this.calculatedDuration=c,this.resolvedDuration=c+i,this.totalDuration=this.resolvedDuration*(s+1)-i,this.generator=l}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:s,totalDuration:i,mixKeyframes:r,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:u}=this;if(this.startTime===null)return s.next(0);const{delay:l=0,keyframes:c,repeat:h,repeatType:f,repeatDelay:p,type:d,onUpdate:m,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const y=this.currentTime-l*(this.playbackSpeed>=0?1:-1),T=this.playbackSpeed>=0?y<0:y>i;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let x=this.currentTime,w=s;if(h){const S=Math.min(this.currentTime,i)/a;let C=Math.floor(S),b=S%1;!b&&S>=1&&(b=1),b===1&&C--,C=Math.min(C,h+1),C%2&&(f==="reverse"?(b=1-b,p&&(b-=p/a)):f==="mirror"&&(w=o)),x=tt(0,1,b)*a}let A;T?(this.delayState.value=c[0],A=this.delayState):A=w.next(x),r&&!T&&(A.value=r(A.value));let{done:V}=A;!T&&u!==null&&(V=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const M=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&V);return M&&d!==Oe&&(A.value=de(c,this.options,g,this.speed)),m&&m(A.value),M&&this.finish(),A}then(e,n){return this.finished.then(e,n)}get duration(){return z(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+z(e)}get time(){return z(this.currentTime)}set time(e){e=K(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){const e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);const n=this.generator.next(e).value;return Li(s=>this.generator.next(s).value,e,n)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;n&&this.driver&&this.updateTime(N.now()),this.playbackSpeed=e,n&&this.driver&&(this.time=z(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=Fr,startTime:n}=this.options;this.driver||(this.driver=e(i=>this.tick(i))),this.options.onPlay?.();const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=n??s),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(N.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&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}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}function ta(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const ft=t=>t*180/Math.PI,je=t=>{const e=ft(Math.atan2(t[1],t[0]));return Ne(e)},ea={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:je,rotateZ:je,skewX:t=>ft(Math.atan(t[1])),skewY:t=>ft(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},Ne=t=>(t=t%360,t<0&&(t+=360),t),Xn=je,Yn=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),qn=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),na={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Yn,scaleY:qn,scale:t=>(Yn(t)+qn(t))/2,rotateX:t=>Ne(ft(Math.atan2(t[6],t[5]))),rotateY:t=>Ne(ft(Math.atan2(-t[2],t[0]))),rotateZ:Xn,rotate:Xn,skewX:t=>ft(Math.atan(t[4])),skewY:t=>ft(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function We(t){return t.includes("scale")?1:0}function Ue(t,e){if(!t||t==="none")return We(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,i;if(n)s=na,i=n;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=ea,i=a}if(!i)return We(e);const r=s[e],o=i[1].split(",").map(ia);return typeof r=="function"?r(o):o[r]}const sa=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return Ue(n,e)};function ia(t){return parseFloat(t.trim())}const bt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],At=new Set([...bt,"pathRotation"]),Zn=t=>t===St||t===P,oa=new Set(["x","y","z"]),ra=bt.filter(t=>!oa.has(t));function aa(t){const e=[];return ra.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const it={width:({x:t},{paddingLeft:e="0",paddingRight:n="0",boxSizing:s})=>{const i=t.max-t.min;return s==="border-box"?i:i-parseFloat(e)-parseFloat(n)},height:({y:t},{paddingTop:e="0",paddingBottom:n="0",boxSizing:s})=>{const i=t.max-t.min;return s==="border-box"?i:i-parseFloat(e)-parseFloat(n)},top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>Ue(e,"x"),y:(t,{transform:e})=>Ue(e,"y")};it.translateX=it.x;it.translateY=it.y;const dt=new Set;let Ke=!1,$e=!1,ze=!1;function Ii(){if($e){const t=Array.from(dt).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=aa(s);i.length&&(n.set(s,i),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([r,o])=>{s.getValue(r)?.set(o)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}$e=!1,Ke=!1,dt.forEach(t=>t.complete(ze)),dt.clear()}function Bi(){dt.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&($e=!0)})}function la(){ze=!0,Bi(),Ii(),ze=!1}class Sn{constructor(e,n,s,i,r,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=i,this.element=r,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(dt.add(this),Ke||(Ke=!0,E.read(Bi),E.resolveKeyframes(Ii))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;if(e[0]===null){const r=i?.get(),o=e[e.length-1];if(r!==void 0)e[0]=r;else if(s&&n){const a=s.readValue(n,o);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=o),i&&r===void 0&&i.set(e[0])}ta(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),dt.delete(this)}cancel(){this.state==="scheduled"&&(dt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const ca=t=>t.startsWith("--");function Fi(t,e,n){ca(e)?t.style.setProperty(e,n):t.style[e]=n}const ua={};function Oi(t,e){const n=ui(t);return()=>ua[e]??n()}const ha=Oi(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),ji=Oi(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Ct=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,Jn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ct([0,.65,.55,1]),circOut:Ct([.55,0,1,.45]),backIn:Ct([.31,.01,.66,-.59]),backOut:Ct([.33,1.53,.69,.99])};function Ni(t,e){if(t)return typeof t=="function"?ji()?Ri(t,e):"ease-out":wi(t)?Ct(t):Array.isArray(t)?t.map(n=>Ni(n,e)||Jn.easeOut):Jn[t]}function fa(t,e,n,{delay:s=0,duration:i=300,repeat:r=0,repeatType:o="loop",ease:a="easeOut",times:u}={},l=void 0){const c={[e]:n};u&&(c.offset=u);const h=Ni(a,i);Array.isArray(h)&&(c.easing=h);const f={delay:s,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:r+1,direction:o==="reverse"?"alternate":"normal"};return l&&(f.pseudoElement=l),t.animate(c,f)}function Wi(t){return typeof t=="function"&&"applyToOptions"in t}function da({type:t,...e}){return Wi(t)&&ji()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class Ui extends Pn{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:n,name:s,keyframes:i,pseudoElement:r,allowFlatten:o=!1,finalKeyframe:a,onComplete:u}=e;this.isPseudoElement=!!r,this.allowFlatten=o,this.options=e,dn(typeof e.type!="string");const l=da(e);this.animation=fa(n,s,i,l,r),l.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){const c=de(i,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(c),Fi(n,s,c),this.animation.cancel()}u?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){const e=this.animation.effect?.getComputedTiming?.().duration||0;return z(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+z(e)}get time(){return z(Number(this.animation.currentTime)||0)}set time(e){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=K(e),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:n,rangeEnd:s,observe:i}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&ha()?(this.animation.timeline=e,n&&(this.animation.rangeStart=n),s&&(this.animation.rangeEnd=s),H):i(this)}}const Ki={anticipate:yi,backInOut:gi,circInOut:xi};function pa(t){return t in Ki}function ma(t){typeof t.ease=="string"&&pa(t.ease)&&(t.ease=Ki[t.ease])}const Pe=10;class ga extends Ui{constructor(e){ma(e),ki(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:n,onUpdate:s,onComplete:i,element:r,...o}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const a=new oe({...o,autoplay:!1}),u=Math.max(Pe,N.now()-this.startTime),l=tt(0,Pe,u-Pe),c=a.sample(u).value,{name:h}=this.options;r&&h&&Fi(r,h,c),n.setWithVelocity(a.sample(Math.max(0,u-l)).value,c,l),a.stop()}}const Qn=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(X.test(t)||t==="0")&&!t.startsWith("url("));function ya(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function va(t,e,n,s){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const r=t[t.length-1],o=Qn(i,e),a=Qn(r,e);return!o||!a?!1:ya(t)||(n==="spring"||Wi(n))&&s}function He(t){t.duration=0,t.type="keyframes"}const $i=new Set(["opacity","clipPath","filter","transform"]),xa=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Ta(t){for(let e=0;e<t.length;e++)if(typeof t[e]=="string"&&xa.test(t[e]))return!0;return!1}const wa=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),Pa=ui(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Sa(t){const{motionValue:e,name:n,repeatDelay:s,repeatType:i,damping:r,type:o,keyframes:a}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=e.owner.getProps();return Pa()&&n&&($i.has(n)||wa.has(n)&&Ta(a))&&(n!=="transform"||!c)&&!l&&!s&&i!=="mirror"&&r!==0&&o!=="inertia"}const ba=40;class Aa extends Pn{constructor({autoplay:e=!0,delay:n=0,type:s="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o="loop",keyframes:a,name:u,motionValue:l,element:c,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=N.now();const f={autoplay:e,delay:n,type:s,repeat:i,repeatDelay:r,repeatType:o,name:u,motionValue:l,element:c,...h},p=c?.KeyframeResolver||Sn;this.keyframeResolver=new p(a,(d,m,g)=>this.onKeyframesResolved(d,m,f,!g),u,l,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,n,s,i){this.keyframeResolver=void 0;const{name:r,type:o,velocity:a,delay:u,isHandoff:l,onUpdate:c}=s;this.resolvedAt=N.now();let h=!0;va(e,r,o,a)||(h=!1,(ot.instantAnimations||!u)&&c?.(de(e,s,n)),e[0]=e[e.length-1],He(s),s.repeat=0);const p={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>ba?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:e},d=h&&!l&&Sa(p),m=p.motionValue?.owner?.current;let g;if(d)try{g=new ga({...p,element:m})}catch{g=new oe(p)}else g=new oe(p);g.finished.then(()=>{this.notifyFinished()}).catch(H),this.pendingTimeline&&(this.stopTimeline=g.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=g}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),la()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function zi(t,e,n,s=0,i=1){const r=Array.from(t).sort((l,c)=>l.sortNodePosition(c)).indexOf(e),o=t.size,a=(o-1)*s;return typeof n=="function"?n(r,o):i===1?r*s:a-r*s}const ts=30,Va=t=>!isNaN(parseFloat(t));class Ca{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{const i=N.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const r of this.dependents)r.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=N.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Va(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new pn);const s=this.events[e].add(n);return e==="change"?()=>{s(),E.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=N.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>ts)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,ts);return hi(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Pt(t,e){return new Ca(t,e)}function Hi(t,e){if(t?.inherit&&e){const{inherit:n,...s}=t;return{...e,...s}}return t}function bn(t,e){const n=t?.[e]??t?.default??t;return n!==t?Hi(n,t):n}const Ma={type:"spring",stiffness:500,damping:25,restSpeed:10},Da=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Ea={type:"keyframes",duration:.8},Ra={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},La=(t,{keyframes:e})=>e.length>2?Ea:At.has(t)?t.startsWith("scale")?Da(e[1]):Ma:Ra,ka=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function Ia(t){for(const e in t)if(!ka.has(e))return!0;return!1}const An=(t,e,n,s={},i,r)=>o=>{const a=bn(s,t)||{},u=a.delay||s.delay||0;let{elapsed:l=0}=s;l=l-K(u);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-l,onUpdate:f=>{e.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:r?void 0:i};Ia(a)||Object.assign(c,La(t,c)),c.duration&&(c.duration=K(c.duration)),c.repeatDelay&&(c.repeatDelay=K(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let h=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(He(c),c.delay===0&&(h=!0)),(ot.instantAnimations||ot.skipAnimations||i?.shouldSkipAnimations||a.skipAnimations)&&(h=!0,He(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,h&&!r&&e.get()!==void 0){const f=de(c.keyframes,a);if(f!==void 0){E.update(()=>{c.onUpdate(f),c.onComplete()});return}}return a.isSync?new oe(c):new Aa(c)},Ba=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Fa(t){const e=Ba.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}function Gi(t,e,n=1){const[s,i]=Fa(t);if(!s)return;const r=window.getComputedStyle(e).getPropertyValue(s);if(r){const o=r.trim();return ai(o)?parseFloat(o):o}return yn(i)?Gi(i,e,n+1):i}function es(t){const e=[{},{}];return t?.values.forEach((n,s)=>{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function Vn(t,e,n,s){if(typeof e=="function"){const[i,r]=es(s);e=e(n!==void 0?n:t.custom,i,r)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,r]=es(s);e=e(n!==void 0?n:t.custom,i,r)}return e}function pt(t,e,n){const s=t.getProps();return Vn(s,e,n!==void 0?n:s.custom,t)}const _i=new Set(["width","height","top","left","right","bottom",...bt]),Ge=t=>Array.isArray(t);function Oa(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Pt(n))}function ja(t){return Ge(t)?t[t.length-1]||0:t}function Na(t,e){const n=pt(t,e);let{transitionEnd:s={},transition:i={},...r}=n||{};r={...r,...s};for(const o in r){const a=ja(r[o]);Oa(t,o,a)}}const j=t=>!!(t&&t.getVelocity);function Wa(t){return!!(j(t)&&t.add)}function _e(t,e){const n=t.getValue("willChange");if(Wa(n))return n.add(e);if(!n&&ot.WillChange){const s=new ot.WillChange("auto");t.addValue("willChange",s),s.add(e)}}function Cn(t){return t.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}const Ua="framerAppearId",Xi="data-"+Cn(Ua);function Yi(t){return t.props[Xi]}function Ka({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function qi(t,e,{delay:n=0,transitionOverride:s,type:i}={}){let{transition:r,transitionEnd:o,...a}=e;const u=t.getDefaultTransition();r=r?Hi(r,u):u;const l=r?.reduceMotion,c=r?.skipAnimations;s&&(r=s);const h=[],f=i&&t.animationState&&t.animationState.getState()[i],p=r?.path;p&&p.animateVisualElement(t,a,r,n,h);for(const d in a){const m=t.getValue(d,t.latestValues[d]??null),g=a[d];if(g===void 0||f&&Ka(f,d))continue;const y={delay:n,...bn(r||{},d)};c&&(y.skipAnimations=!0);const T=m.get();if(T!==void 0&&!m.isAnimating()&&!Array.isArray(g)&&g===T&&!y.velocity){E.update(()=>m.set(g));continue}let x=!1;if(window.MotionHandoffAnimation){const V=Yi(t);if(V){const M=window.MotionHandoffAnimation(V,d,E);M!==null&&(y.startTime=M,x=!0)}}_e(t,d);const w=l??t.shouldReduceMotion;m.start(An(d,m,g,w&&_i.has(d)?{type:!1}:y,t,x));const A=m.animation;A&&h.push(A)}if(o){const d=()=>E.update(()=>{o&&Na(t,o)});h.length?Promise.all(h).then(d):d()}return h}function Xe(t,e,n={}){const s=pt(t,e,n.type==="exit"?t.presenceContext?.custom:void 0);let{transition:i=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const r=s?()=>Promise.all(qi(t,s,n)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(u=0)=>{const{delayChildren:l=0,staggerChildren:c,staggerDirection:h}=i;return $a(t,e,u,l,c,h,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[u,l]=a==="beforeChildren"?[r,o]:[o,r];return u().then(()=>l())}else return Promise.all([r(),o(n.delay)])}function $a(t,e,n=0,s=0,i=0,r=1,o){const a=[];for(const u of t.variantChildren)u.notify("AnimationStart",e),a.push(Xe(u,e,{...o,delay:n+(typeof s=="function"?0:s)+zi(t.variantChildren,u,s,i,r)}).then(()=>u.notify("AnimationComplete",e)));return Promise.all(a)}function za(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(r=>Xe(t,r,n));s=Promise.all(i)}else if(typeof e=="string")s=Xe(t,e,n);else{const i=typeof e=="function"?pt(t,e,n.custom):e;s=Promise.all(qi(t,i,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}const Ha={test:t=>t==="auto",parse:t=>t},Zi=t=>e=>e.test(t),Ji=[St,P,Q,st,yr,gr,Ha],ns=t=>Ji.find(Zi(t));function Ga(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||ci(t):!0}const _a=new Set(["brightness","contrast","saturate","opacity"]);function Xa(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(vn)||[];if(!s)return t;const i=n.replace(s,"");let r=_a.has(e)?1:0;return s!==n&&(r*=100),e+"("+r+i+")"}const Ya=/\b([a-z-]*)\(.*?\)/gu,Ye={...X,getAnimatableNone:t=>{const e=t.match(Ya);return e?e.map(Xa).join(" "):t}},qe={...X,getAnimatableNone:t=>{const e=X.parse(t);return X.createTransformer(t)(e.map(s=>typeof s=="number"?0:typeof s=="object"?{...s,alpha:1}:s))}},ss={...St,transform:Math.round},qa={rotate:st,pathRotation:st,rotateX:st,rotateY:st,rotateZ:st,scale:Kt,scaleX:Kt,scaleY:Kt,scaleZ:Kt,skew:st,skewX:st,skewY:st,distance:P,translateX:P,translateY:P,translateZ:P,x:P,y:P,z:P,perspective:P,transformPerspective:P,opacity:kt,originX:$n,originY:$n,originZ:P},re={borderWidth:P,borderTopWidth:P,borderRightWidth:P,borderBottomWidth:P,borderLeftWidth:P,borderRadius:P,borderTopLeftRadius:P,borderTopRightRadius:P,borderBottomRightRadius:P,borderBottomLeftRadius:P,width:P,maxWidth:P,height:P,maxHeight:P,top:P,right:P,bottom:P,left:P,inset:P,insetBlock:P,insetBlockStart:P,insetBlockEnd:P,insetInline:P,insetInlineStart:P,insetInlineEnd:P,padding:P,paddingTop:P,paddingRight:P,paddingBottom:P,paddingLeft:P,paddingBlock:P,paddingBlockStart:P,paddingBlockEnd:P,paddingInline:P,paddingInlineStart:P,paddingInlineEnd:P,margin:P,marginTop:P,marginRight:P,marginBottom:P,marginLeft:P,marginBlock:P,marginBlockStart:P,marginBlockEnd:P,marginInline:P,marginInlineStart:P,marginInlineEnd:P,fontSize:P,backgroundPositionX:P,backgroundPositionY:P,...qa,zIndex:ss,fillOpacity:kt,strokeOpacity:kt,numOctaves:ss},Za={...re,color:k,backgroundColor:k,outlineColor:k,fill:k,stroke:k,borderColor:k,borderTopColor:k,borderRightColor:k,borderBottomColor:k,borderLeftColor:k,filter:Ye,WebkitFilter:Ye,mask:qe,WebkitMask:qe},Qi=t=>Za[t],Ja=new Set([Ye,qe]);function to(t,e){let n=Qi(t);return Ja.has(n)||(n=X),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Qa=new Set(["auto","none","0"]);function tl(t,e,n){let s=0,i;for(;s<t.length&&!i;){const r=t[s];typeof r=="string"&&!Qa.has(r)&&wt(r).values.length&&(i=t[s]),s++}if(i&&n)for(const r of e)t[r]=to(n,i)}class el extends Sn{constructor(e,n,s,i,r){super(e,n,s,i,r,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<e.length;c++){let h=e[c];if(typeof h=="string"&&(h=h.trim(),yn(h))){const f=Gi(h,n.current);f!==void 0&&(e[c]=f),c===e.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!_i.has(s)||e.length!==2)return;const[i,r]=e,o=ns(i),a=ns(r),u=Kn(i),l=Kn(r);if(u!==l&&it[s]){this.needsMeasurement=!0;return}if(o!==a)if(Zn(o)&&Zn(a))for(let c=0;c<e.length;c++){const h=e[c];typeof h=="string"&&(e[c]=parseFloat(h))}else it[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,s=[];for(let i=0;i<e.length;i++)(e[i]===null||Ga(e[i]))&&s.push(i);s.length&&tl(e,s,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:s}=this;if(!e||!e.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=it[s](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(s,i).jump(i,!1)}measureEndState(){const{element:e,name:n,unresolvedKeyframes:s}=this;if(!e||!e.current)return;const i=e.getValue(n);i&&i.jump(this.measuredOrigin,!1);const r=s.length-1,o=s[r];s[r]=it[n](e.measureViewportBox(),window.getComputedStyle(e.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,u])=>{e.getValue(a).set(u)}),this.resolveNoneKeyframes()}}function eo(t,e,n){if(t==null)return[];if(t instanceof EventTarget)return[t];if(typeof t=="string"){let s=document;const i=n?.[t]??s.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t).filter(s=>s!=null)}const Ze=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function _t(t){return li(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}const{schedule:Mn}=Pi(queueMicrotask,!1),_={x:!1,y:!1};function no(){return _.x||_.y}function nl(t){return t==="x"||t==="y"?_[t]?null:(_[t]=!0,()=>{_[t]=!1}):_.x||_.y?null:(_.x=_.y=!0,()=>{_.x=_.y=!1})}function so(t,e){const n=eo(t),s=new AbortController,i={passive:!0,...e,signal:s.signal};return[n,i,()=>s.abort()]}function sl(t){return!(t.pointerType==="touch"||no())}function il(t,e,n={}){const[s,i,r]=so(t,n);return s.forEach(o=>{let a=!1,u=!1,l;const c=()=>{o.removeEventListener("pointerleave",d)},h=g=>{l&&(l(g),l=void 0),c()},f=g=>{a=!1,window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",f),u&&(u=!1,h(g))},p=()=>{a=!0,window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",f,i)},d=g=>{if(g.pointerType!=="touch"){if(a){u=!0;return}h(g)}},m=g=>{if(!sl(g))return;u=!1;const y=e(o,g);typeof y=="function"&&(l=y,o.addEventListener("pointerleave",d,i))};o.addEventListener("pointerenter",m,i),o.addEventListener("pointerdown",p,i)}),r}const io=(t,e)=>e?t===e?!0:io(t,e.parentElement):!1,Dn=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,ol=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function rl(t){return ol.has(t.tagName)||t.isContentEditable===!0}const al=new Set(["INPUT","SELECT","TEXTAREA"]);function ll(t){return al.has(t.tagName)||t.isContentEditable===!0}const Xt=new WeakSet;function is(t){return e=>{e.key==="Enter"&&t(e)}}function Se(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const cl=(t,e)=>{const n=t.currentTarget;if(!n)return;const s=is(()=>{if(Xt.has(n))return;Se(n,"down");const i=is(()=>{Se(n,"up")}),r=()=>Se(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",r,e)});n.addEventListener("keydown",s,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),e)};function os(t){return Dn(t)&&!no()}const rs=new WeakSet;function ul(t,e,n={}){const[s,i,r]=so(t,n),o=a=>{const u=a.currentTarget;if(!os(a)||rs.has(a))return;Xt.add(u),n.stopPropagation&&rs.add(a);const l=e(u,a),c={...i,capture:!0},h=(d,m)=>{window.removeEventListener("pointerup",f,c),window.removeEventListener("pointercancel",p,c),Xt.has(u)&&Xt.delete(u),os(d)&&typeof l=="function"&&l(d,{success:m})},f=d=>{h(d,u===window||u===document||n.useGlobalTarget||io(u,d.target))},p=d=>{h(d,!1)};window.addEventListener("pointerup",f,c),window.addEventListener("pointercancel",p,c)};return s.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),_t(a)&&(a.addEventListener("focus",l=>cl(l,i)),!rl(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),r}function En(t){return li(t)&&"ownerSVGElement"in t}const Yt=new WeakMap;let qt;const oo=(t,e,n)=>(s,i)=>i&&i[0]?i[0][t+"Size"]:En(s)&&"getBBox"in s?s.getBBox()[e]:s[n],hl=oo("inline","width","offsetWidth"),fl=oo("block","height","offsetHeight");function dl({target:t,borderBoxSize:e}){Yt.get(t)?.forEach(n=>{n(t,{get width(){return hl(t,e)},get height(){return fl(t,e)}})})}function pl(t){t.forEach(dl)}function ml(){typeof ResizeObserver>"u"||(qt=new ResizeObserver(pl))}function gl(t,e){qt||ml();const n=eo(t);return n.forEach(s=>{let i=Yt.get(s);i||(i=new Set,Yt.set(s,i)),i.add(e),qt?.observe(s)}),()=>{n.forEach(s=>{const i=Yt.get(s);i?.delete(e),i?.size||qt?.unobserve(s)})}}const Zt=new Set;let vt;function yl(){vt=()=>{const t={get width(){return window.innerWidth},get height(){return window.innerHeight}};Zt.forEach(e=>e(t))},window.addEventListener("resize",vt)}function vl(t){return Zt.add(t),vt||yl(),()=>{Zt.delete(t),!Zt.size&&typeof vt=="function"&&(window.removeEventListener("resize",vt),vt=void 0)}}function as(t,e){return typeof t=="function"?vl(t):gl(t,e)}function xl(t){return En(t)&&t.tagName==="svg"}const Tl=[...Ji,k,X],wl=t=>Tl.find(Zi(t)),ls=()=>({translate:0,scale:1,origin:0,originPoint:0}),xt=()=>({x:ls(),y:ls()}),cs=()=>({min:0,max:0}),I=()=>({x:cs(),y:cs()}),Pl=new WeakMap;function pe(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function It(t){return typeof t=="string"||Array.isArray(t)}const Rn=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ln=["initial",...Rn];function me(t){return pe(t.animate)||Ln.some(e=>It(t[e]))}function ro(t){return!!(me(t)||t.variants)}function Sl(t,e,n){for(const s in e){const i=e[s],r=n[s];if(j(i))t.addValue(s,i);else if(j(r))t.addValue(s,Pt(i,{owner:t}));else if(r!==i)if(t.hasValue(s)){const o=t.getValue(s);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=t.getStaticValue(s);t.addValue(s,Pt(o!==void 0?o:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const ae={current:null},kn={current:!1},bl=typeof window<"u";function ao(){if(kn.current=!0,!!bl)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>ae.current=t.matches;t.addEventListener("change",e),e()}else ae.current=!1}const us=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let le={};function lo(t){le=t}function Al(){return le}class Vl{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,skipAnimations:r,blockInitialAnimation:o,visualState:a},u={}){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=Sn,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=()=>{const p=N.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,E.render(this.render,!1,!0))};const{latestValues:l,renderState:c}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,this.parent=e,this.props=n,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=r,this.options=u,this.blockInitialAnimation=!!o,this.isControllingVariants=me(n),this.isVariantNode=ro(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:h,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const p in f){const d=f[p];l[p]!==void 0&&j(d)&&d.set(l[p])}}mount(e){if(this.hasBeenMounted)for(const n in this.initialValues)this.values.get(n)?.jump(this.initialValues[n]),this.latestValues[n]=this.initialValues[n];this.current=e,Pl.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,s)=>this.bindToMotionValue(s,n)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(kn.current||ao(),this.shouldReduceMotion=ae.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),rt(this.notifyUpdate),rt(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,n){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),n.accelerate&&$i.has(e)&&this.current instanceof HTMLElement){const{factory:o,keyframes:a,times:u,ease:l,duration:c}=n.accelerate,h=new Ui({element:this.current,name:e,keyframes:a,times:u,ease:l,duration:K(c)}),f=o(h);this.valueSubscriptions.set(e,()=>{f(),h.cancel()});return}const s=At.has(e);s&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",o=>{this.latestValues[e]=o,this.props.onUpdate&&E.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let r;typeof window<"u"&&window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),r&&r()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in le){const n=le[e];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[e]&&i&&s(this.props)&&(this.features[e]=new i(this)),this.features[e]){const r=this.features[e];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):I()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<us.length;s++){const i=us[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const r="on"+i,o=e[r];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=Sl(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const s=this.values.get(e);n!==s&&(s&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&n!==void 0&&(s=Pt(n===null?void 0:n,{owner:this}),this.addValue(e,s)),s}readValue(e,n){let s=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return s!=null&&(typeof s=="string"&&(ai(s)||ci(s))?s=parseFloat(s):!wl(s)&&X.test(n)&&(s=to(e,n)),this.setBaseTarget(e,j(s)?s.get():s)),j(s)?s.get():s}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){const{initial:n}=this.props;let s;if(typeof n=="string"||typeof n=="object"){const r=Vn(this.props,n,this.presenceContext?.custom);r&&(s=r[e])}if(n&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!j(i)?i:this.initialValues[e]!==void 0&&s===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new pn),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){Mn.render(this.render)}}class co extends Vl{constructor(){super(...arguments),this.KeyframeResolver=el}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){const s=e.style;return s?s[n]:void 0}removeValueFromRenderState(e,{vars:n,style:s}){delete n[e],delete s[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;j(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class at{constructor(e){this.isMounted=!1,this.node=e}update(){}}function uo({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function Cl({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Ml(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function be(t){return t===void 0||t===1}function Je({scale:t,scaleX:e,scaleY:n}){return!be(t)||!be(e)||!be(n)}function ut(t){return Je(t)||ho(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function ho(t){return hs(t.x)||hs(t.y)}function hs(t){return t&&t!=="0%"}function ce(t,e,n){const s=t-n,i=e*s;return n+i}function fs(t,e,n,s,i){return i!==void 0&&(t=ce(t,i,s)),ce(t,n,s)+e}function Qe(t,e=0,n=1,s,i){t.min=fs(t.min,e,n,s,i),t.max=fs(t.max,e,n,s,i)}function fo(t,{x:e,y:n}){Qe(t.x,e.translate,e.scale,e.originPoint),Qe(t.y,n.translate,n.scale,n.originPoint)}const ds=.999999999999,ps=1.0000000000001;function Dl(t,e,n,s=!1){const i=n.length;if(!i)return;e.x=e.y=1;let r,o;for(let a=0;a<i;a++){r=n[a],o=r.projectionDelta;const{visualElement:u}=r.options;u&&u.props.style&&u.props.style.display==="contents"||(s&&r.options.layoutScroll&&r.scroll&&r!==r.root&&(J(t.x,-r.scroll.offset.x),J(t.y,-r.scroll.offset.y)),o&&(e.x*=o.x.scale,e.y*=o.y.scale,fo(t,o)),s&&ut(r.latestValues)&&Jt(t,r.latestValues,r.layout?.layoutBox))}e.x<ps&&e.x>ds&&(e.x=1),e.y<ps&&e.y>ds&&(e.y=1)}function J(t,e){t.min+=e,t.max+=e}function ms(t,e,n,s,i=.5){const r=D(t.min,t.max,i);Qe(t,e,n,r,s)}function gs(t,e){return typeof t=="string"?parseFloat(t)/100*(e.max-e.min):t}function Jt(t,e,n){const s=n??t;ms(t.x,gs(e.x,s.x),e.scaleX,e.scale,e.originX),ms(t.y,gs(e.y,s.y),e.scaleY,e.scale,e.originY)}function po(t,e){return uo(Ml(t.getBoundingClientRect(),e))}function El(t,e,n){const s=po(t,n),{scroll:i}=e;return i&&(J(s.x,i.offset.x),J(s.y,i.offset.y)),s}const Rl={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Ll=bt.length;function kl(t,e,n){let s="",i=!0;for(let o=0;o<Ll;o++){const a=bt[o],u=t[a];if(u===void 0)continue;let l=!0;if(typeof u=="number")l=u===(a.startsWith("scale")?1:0);else{const c=parseFloat(u);l=a.startsWith("scale")?c===1:c===0}if(!l||n){const c=Ze(u,re[a]);if(!l){i=!1;const h=Rl[a]||a;s+=`${h}(${c}) `}n&&(e[a]=c)}}const r=t.pathRotation;return r&&(i=!1,s+=`rotate(${Ze(r,re.pathRotation)}) `),s=s.trim(),n?s=n(e,i?"":s):i&&(s="none"),s}function In(t,e,n){const{style:s,vars:i,transformOrigin:r}=t;let o=!1,a=!1;for(const u in e){const l=e[u];if(At.has(u)){o=!0;continue}else if(bi(u)){i[u]=l;continue}else{const c=Ze(l,re[u]);u.startsWith("origin")?(a=!0,r[u]=c):s[u]=c}}if(e.transform||(o||n?s.transform=kl(e,t.transform,n):s.transform&&(s.transform="none")),a){const{originX:u="50%",originY:l="50%",originZ:c=0}=r;s.transformOrigin=`${u} ${l} ${c}`}}function mo(t,{style:e,vars:n},s,i){const r=t.style;let o;for(o in e)r[o]=e[o];i?.applyProjectionStyles(r,s);for(o in n)r.setProperty(o,n[o])}function ys(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Vt={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(P.test(t))t=parseFloat(t);else return t;const n=ys(t,e.target.x),s=ys(t,e.target.y);return`${n}% ${s}%`}},Il={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=X.parse(t);if(i.length>5)return s;const r=X.createTransformer(t),o=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,u=n.y.scale*e.y;i[0+o]/=a,i[1+o]/=u;const l=D(a,u,.5);return typeof i[2+o]=="number"&&(i[2+o]/=l),typeof i[3+o]=="number"&&(i[3+o]/=l),r(i)}},tn={borderRadius:{...Vt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Vt,borderTopRightRadius:Vt,borderBottomLeftRadius:Vt,borderBottomRightRadius:Vt,boxShadow:Il};function go(t,{layout:e,layoutId:n}){return At.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!tn[t]||t==="opacity")}function Bn(t,e,n){const s=t.style,i=e?.style,r={};if(!s)return r;for(const o in s)(j(s[o])||i&&j(i[o])||go(o,t)||n?.getValue(o)?.liveStyle!==void 0)&&(r[o]=s[o]);return r}function Bl(t){return window.getComputedStyle(t)}class Fl extends co{constructor(){super(...arguments),this.type="html",this.renderInstance=mo}readValueFromInstance(e,n){if(At.has(n))return this.projection?.isProjecting?We(n):sa(e,n);{const s=Bl(e),i=(bi(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return po(e,n)}build(e,n,s){In(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return Bn(e,n,s)}}const Ol={offset:"stroke-dashoffset",array:"stroke-dasharray"},jl={offset:"strokeDashoffset",array:"strokeDasharray"};function Nl(t,e,n=1,s=0,i=!0){t.pathLength=1;const r=i?Ol:jl;t[r.offset]=`${-s}`,t[r.array]=`${e} ${n}`}const Wl=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function yo(t,{attrX:e,attrY:n,attrScale:s,pathLength:i,pathSpacing:r=1,pathOffset:o=0,...a},u,l,c){if(In(t,a,l),u){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:h,style:f}=t;h.transform&&(f.transform=h.transform,delete h.transform),(f.transform||h.transformOrigin)&&(f.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),f.transform&&(f.transformBox=c?.transformBox??"fill-box",delete h.transformBox);for(const p of Wl)h[p]!==void 0&&(f[p]=h[p],delete h[p]);e!==void 0&&(h.x=e),n!==void 0&&(h.y=n),s!==void 0&&(h.scale=s),i!==void 0&&Nl(h,i,r,o,!1)}const vo=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"]),xo=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Ul(t,e,n,s){mo(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(vo.has(i)?i:Cn(i),e.attrs[i])}function To(t,e,n){const s=Bn(t,e,n);for(const i in t)if(j(t[i])||j(e[i])){const r=bt.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[r]=t[i]}return s}class Kl extends co{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=I}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(At.has(n)){const s=Qi(n);return s&&s.default||0}return n=vo.has(n)?n:Cn(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return To(e,n,s)}build(e,n,s){yo(e,n,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(e,n,s,i){Ul(e,n,s,i)}mount(e){this.isSVGTag=xo(e.tagName),super.mount(e)}}const $l=Ln.length;function wo(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?wo(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<$l;n++){const s=Ln[n],i=t.props[s];(It(i)||i===!1)&&(e[s]=i)}return e}function Po(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let s=0;s<n;s++)if(e[s]!==t[s])return!1;return!0}const zl=[...Rn].reverse(),Hl=Rn.length;function Gl(t){return e=>Promise.all(e.map(({animation:n,options:s})=>za(t,n,s)))}function _l(t){let e=Gl(t),n=vs(),s=!0,i=!1;const r=l=>(c,h)=>{const f=pt(t,h,l==="exit"?t.presenceContext?.custom:void 0);if(f){const{transition:p,transitionEnd:d,...m}=f;c={...c,...m,...d}}return c};function o(l){e=l(t)}function a(l){const{props:c}=t,h=wo(t.parent)||{},f=[],p=new Set;let d={},m=1/0;for(let y=0;y<Hl;y++){const T=zl[y],x=n[T],w=c[T]!==void 0?c[T]:h[T],A=It(w),V=T===l?x.isActive:null;V===!1&&(m=y);let M=w===h[T]&&w!==c[T]&&A;if(M&&(s||i)&&t.manuallyAnimateOnMount&&(M=!1),x.protectedKeys={...d},!x.isActive&&V===null||!w&&!x.prevProp||pe(w)||typeof w=="boolean")continue;if(T==="exit"&&x.isActive&&V!==!0){x.prevResolvedValues&&(d={...d,...x.prevResolvedValues});continue}const S=Xl(x.prevProp,w);let C=S||T===l&&x.isActive&&!M&&A||y>m&&A,b=!1;const R=Array.isArray(w)?w:[w];let B=R.reduce(r(T),{});V===!1&&(B={});const{prevResolvedValues:et={}}=x,Y={...et,...B},nt=F=>{C=!0,p.has(F)&&(b=!0,p.delete(F)),x.needsAnimating[F]=!0;const $=t.getValue(F);$&&($.liveStyle=!1)};for(const F in Y){const $=B[F],lt=et[F];if(d.hasOwnProperty(F))continue;let mt=!1;Ge($)&&Ge(lt)?mt=!Po($,lt)||S:mt=$!==lt,mt?$!=null?nt(F):p.add(F):$!==void 0&&p.has(F)?nt(F):x.protectedKeys[F]=!0}x.prevProp=w,x.prevResolvedValues=B,x.isActive&&(d={...d,...B}),(s||i)&&t.blockInitialAnimation&&(C=!1);const q=M&&S;C&&(!q||b)&&f.push(...R.map(F=>{const $={type:T};if(typeof F=="string"&&(s||i)&&!q&&t.manuallyAnimateOnMount&&t.parent){const{parent:lt}=t,mt=pt(lt,F);if(lt.enteringChildren&&mt){const{delayChildren:Go}=mt.transition||{};$.delay=zi(lt.enteringChildren,t,Go)}}return{animation:F,options:$}}))}if(p.size){const y={};if(typeof c.initial!="boolean"){const T=pt(t,Array.isArray(c.initial)?c.initial[0]:c.initial);T&&T.transition&&(y.transition=T.transition)}p.forEach(T=>{const x=t.getBaseTarget(T),w=t.getValue(T);w&&(w.liveStyle=!0),y[T]=x??null}),f.push({animation:y})}let g=!!f.length;return s&&(c.initial===!1||c.initial===c.animate)&&!t.manuallyAnimateOnMount&&(g=!1),s=!1,i=!1,g?e(f):Promise.resolve()}function u(l,c){if(n[l].isActive===c)return Promise.resolve();t.variantChildren?.forEach(f=>f.animationState?.setActive(l,c)),n[l].isActive=c;const h=a(l);for(const f in n)n[f].protectedKeys={};return h}return{animateChanges:a,setActive:u,setAnimateFunction:o,getState:()=>n,reset:()=>{n=vs(),i=!0}}}function Xl(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Po(e,t):!1}function ct(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function vs(){return{animate:ct(!0),whileInView:ct(),whileHover:ct(),whileTap:ct(),whileDrag:ct(),whileFocus:ct(),exit:ct()}}function en(t,e){t.min=e.min,t.max=e.max}function G(t,e){en(t.x,e.x),en(t.y,e.y)}function xs(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}const So=1e-4,Yl=1-So,ql=1+So,bo=.01,Zl=0-bo,Jl=0+bo;function W(t){return t.max-t.min}function Ql(t,e,n){return Math.abs(t-e)<=n}function Ts(t,e,n,s=.5){t.origin=s,t.originPoint=D(e.min,e.max,t.origin),t.scale=W(n)/W(e),t.translate=D(n.min,n.max,t.origin)-t.originPoint,(t.scale>=Yl&&t.scale<=ql||isNaN(t.scale))&&(t.scale=1),(t.translate>=Zl&&t.translate<=Jl||isNaN(t.translate))&&(t.translate=0)}function Et(t,e,n,s){Ts(t.x,e.x,n.x,s?s.originX:void 0),Ts(t.y,e.y,n.y,s?s.originY:void 0)}function ws(t,e,n,s=0){const i=s?D(n.min,n.max,s):n.min;t.min=i+e.min,t.max=t.min+W(e)}function tc(t,e,n,s){ws(t.x,e.x,n.x,s?.x),ws(t.y,e.y,n.y,s?.y)}function Ps(t,e,n,s=0){const i=s?D(n.min,n.max,s):n.min;t.min=e.min-i,t.max=t.min+W(e)}function ue(t,e,n,s){Ps(t.x,e.x,n.x,s?.x),Ps(t.y,e.y,n.y,s?.y)}function Ss(t,e,n,s,i){return t-=e,t=ce(t,1/n,s),i!==void 0&&(t=ce(t,1/i,s)),t}function ec(t,e=0,n=1,s=.5,i,r=t,o=t){if(Q.test(e)&&(e=parseFloat(e),e=D(o.min,o.max,e/100)-o.min),typeof e!="number")return;let a=D(r.min,r.max,s);t===r&&(a-=e),t.min=Ss(t.min,e,n,a,i),t.max=Ss(t.max,e,n,a,i)}function bs(t,e,[n,s,i],r,o){ec(t,e[n],e[s],e[i],e.scale,r,o)}const nc=["x","scaleX","originX"],sc=["y","scaleY","originY"];function As(t,e,n,s){bs(t.x,e,nc,n?n.x:void 0,s?s.x:void 0),bs(t.y,e,sc,n?n.y:void 0,s?s.y:void 0)}function Vs(t){return t.translate===0&&t.scale===1}function Ao(t){return Vs(t.x)&&Vs(t.y)}function Cs(t,e){return t.min===e.min&&t.max===e.max}function ic(t,e){return Cs(t.x,e.x)&&Cs(t.y,e.y)}function Ms(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Vo(t,e){return Ms(t.x,e.x)&&Ms(t.y,e.y)}function Ds(t){return W(t.x)/W(t.y)}function Es(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}function Z(t){return[t("x"),t("y")]}function oc(t,e,n){let s="";const i=t.x.translate/e.x,r=t.y.translate/e.y,o=n?.z||0;if((i||r||o)&&(s=`translate3d(${i}px, ${r}px, ${o}px) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:l,rotate:c,pathRotation:h,rotateX:f,rotateY:p,skewX:d,skewY:m}=n;l&&(s=`perspective(${l}px) ${s}`),c&&(s+=`rotate(${c}deg) `),h&&(s+=`rotate(${h}deg) `),f&&(s+=`rotateX(${f}deg) `),p&&(s+=`rotateY(${p}deg) `),d&&(s+=`skewX(${d}deg) `),m&&(s+=`skewY(${m}deg) `)}const a=t.x.scale*e.x,u=t.y.scale*e.y;return(a!==1||u!==1)&&(s+=`scale(${a}, ${u})`),s||"none"}const Co=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],rc=Co.length,Rs=t=>typeof t=="string"?parseFloat(t):t,Ls=t=>typeof t=="number"||P.test(t);function ac(t,e,n,s,i,r){i?(t.opacity=D(0,n.opacity??1,lc(s)),t.opacityExit=D(e.opacity??1,0,cc(s))):r&&(t.opacity=D(e.opacity??1,n.opacity??1,s));for(let o=0;o<rc;o++){const a=Co[o];let u=ks(e,a),l=ks(n,a);if(u===void 0&&l===void 0)continue;u||(u=0),l||(l=0),u===0||l===0||Ls(u)===Ls(l)?(t[a]=Math.max(D(Rs(u),Rs(l),s),0),(Q.test(l)||Q.test(u))&&(t[a]+="%")):t[a]=l}(e.rotate||n.rotate)&&(t.rotate=D(e.rotate||0,n.rotate||0,s))}function ks(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const lc=Mo(0,.5,vi),cc=Mo(.5,.95,H);function Mo(t,e,n){return s=>s<t?0:s>e?1:n(Lt(t,e,s))}function uc(t,e,n){const s=j(t)?t:Pt(t);return s.start(An("",s,e,n)),s.animation}function Bt(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n,s)}const hc=(t,e)=>t.depth-e.depth;class fc{constructor(){this.children=[],this.isDirty=!1}add(e){fn(this.children,e),this.isDirty=!0}remove(e){ee(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(hc),this.isDirty=!1,this.children.forEach(e)}}function dc(t,e){const n=N.now(),s=({timestamp:i})=>{const r=i-n;r>=e&&(rt(s),t(r-e))};return E.setup(s,!0),()=>rt(s)}function Qt(t){return j(t)?t.get():t}class pc{constructor(){this.members=[]}add(e){fn(this.members,e);for(let n=this.members.length-1;n>=0;n--){const s=this.members[n];if(s===e||s===this.lead||s===this.prevLead)continue;const i=s.instance;(!i||i.isConnected===!1)&&!s.snapshot&&(ee(this.members,s),s.unmount())}e.scheduleRender()}remove(e){if(ee(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){for(let n=this.members.indexOf(e)-1;n>=0;n--){const s=this.members[n];if(s.isPresent!==!1&&s.instance?.isConnected!==!1)return this.promote(s),!0}return!1}promote(e,n){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.updateSnapshot(),e.scheduleRender();const{layoutDependency:i}=s.options,{layoutDependency:r}=e.options;(i===void 0||i!==r)&&(e.resumeFrom=s,n&&(s.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const te={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Ae=["","X","Y","Z"],mc=1e3;let gc=0;function Ve(t,e,n,s){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),s&&(s[t]=0))}function Do(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=Yi(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:r}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",E,!(i||r))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&Do(s)}function Eo({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(o={},a=e?.()){this.id=gc++,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(xc),this.nodes.forEach(Ac),this.nodes.forEach(Vc),this.nodes.forEach(Tc)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new fc)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new pn),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const u=this.eventHandlers.get(o);u&&u.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=En(o)&&!xl(o),this.instance=o;const{layoutId:a,layout:u,visualElement:l}=this.options;if(l&&!l.current&&l.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(u||a)&&(this.isLayoutDirty=!0),t){let c,h=0;const f=()=>this.root.updateBlockedByResize=!1;E.read(()=>{h=window.innerWidth}),t(o,()=>{const p=window.innerWidth;p!==h&&(h=p,this.root.updateBlockedByResize=!0,c&&c(),c=dc(f,250),te.hasAnimatedSinceResize&&(te.hasAnimatedSinceResize=!1,this.nodes.forEach(Fs)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&l&&(a||u)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:h,hasRelativeLayoutChanged:f,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const d=this.options.transition||l.getDefaultTransition()||Rc,{onLayoutAnimationStart:m,onLayoutAnimationComplete:g}=l.getProps(),y=!this.targetLayout||!Vo(this.targetLayout,p),T=!h&&f;if(this.options.layoutRoot||this.resumeFrom||T||h&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const x={...bn(d,"layout"),onPlay:m,onComplete:g};(l.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x),this.setAnimationOrigin(c,T,x.path)}else h||Fs(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),rt(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(Cc),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Do(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const h=this.path[c];h.shouldResetTransform=!0,(typeof h.latestValues.x=="string"||typeof h.latestValues.y=="string")&&(h.isLayoutDirty=!0),h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:a,layout:u}=this.options;if(a===void 0&&!u)return;const l=this.getTransformTemplate();this.prevTransformTemplateValue=l?l(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const u=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),u&&this.nodes.forEach(Pc),this.nodes.forEach(Is);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Bs);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Sc),this.nodes.forEach(bc),this.nodes.forEach(yc),this.nodes.forEach(vc)):this.nodes.forEach(Bs),this.clearAllSnapshots();const a=N.now();O.delta=tt(0,1e3/60,a-O.timestamp),O.timestamp=a,O.isProcessing=!0,ye.update.process(O),ye.preRender.process(O),ye.render.process(O),O.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Mn.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(wc),this.sharedNodes.forEach(Mc)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,E.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){E.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!W(this.snapshot.measuredBox.x)&&!W(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 u=0;u<this.path.length;u++)this.path[u].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=I()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a&&this.instance){const u=s(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Ao(this.projectionDelta),u=this.getTransformTemplate(),l=u?u(this.latestValues,""):void 0,c=l!==this.prevTransformTemplateValue;o&&this.instance&&(a||ut(this.latestValues)||c)&&(i(this.instance,l),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let u=this.removeElementScroll(a);return o&&(u=this.removeTransform(u)),Lc(u),{animationId:this.root.animationId,measuredBox:a,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:o}=this.options;if(!o)return I();const a=o.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(kc))){const{scroll:l}=this.root;l&&(J(a.x,l.offset.x),J(a.y,l.offset.y))}return a}removeElementScroll(o){const a=I();if(G(a,o),this.scroll?.wasRoot)return a;for(let u=0;u<this.path.length;u++){const l=this.path[u],{scroll:c,options:h}=l;l!==this.root&&c&&h.layoutScroll&&(c.wasRoot&&G(a,o),J(a.x,c.offset.x),J(a.y,c.offset.y))}return a}applyTransform(o,a=!1,u){const l=u||I();G(l,o);for(let c=0;c<this.path.length;c++){const h=this.path[c];!a&&h.options.layoutScroll&&h.scroll&&h!==h.root&&(J(l.x,-h.scroll.offset.x),J(l.y,-h.scroll.offset.y)),ut(h.latestValues)&&Jt(l,h.latestValues,h.layout?.layoutBox)}return ut(this.latestValues)&&Jt(l,this.latestValues,this.layout?.layoutBox),l}removeTransform(o){const a=I();G(a,o);for(let u=0;u<this.path.length;u++){const l=this.path[u];if(!ut(l.latestValues))continue;let c;l.instance&&(Je(l.latestValues)&&l.updateSnapshot(),c=I(),G(c,l.measurePageBox())),As(a,l.latestValues,l.snapshot?.layoutBox,c)}return ut(this.latestValues)&&As(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==O.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==a;if(!(o||u&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:c,layoutId:h}=this.options;if(!this.layout||!(c||h))return;this.resolvedRelativeTargetAt=O.timestamp;const f=this.getClosestProjectingParent();f&&this.linkedParentVersion!==f.layoutVersion&&!f.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&f&&f.layout?this.createRelativeTarget(f,this.layout.layoutBox,f.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=I(),this.targetWithTransforms=I()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),tc(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):G(this.target,this.layout.layoutBox),fo(this.target,this.targetDelta)):G(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?this.createRelativeTarget(f,this.target,f.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Je(this.parent.latestValues)||ho(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(o,a,u){this.relativeParent=o,this.linkedParentVersion=o.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=I(),this.relativeTargetOrigin=I(),ue(this.relativeTargetOrigin,a,u,this.options.layoutAnchor||void 0),G(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const o=this.getLead(),a=!!this.resumingFrom||this!==o;let u=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(u=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===O.timestamp&&(u=!1),u)return;const{layout:l,layoutId:c}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(l||c))return;G(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,f=this.treeScale.y;Dl(this.layoutCorrected,this.treeScale,this.path,a),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=I());const{target:p}=o;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(xs(this.prevProjectionDelta.x,this.projectionDelta.x),xs(this.prevProjectionDelta.y,this.projectionDelta.y)),Et(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==f||!Es(this.projectionDelta.x,this.prevProjectionDelta.x)||!Es(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){if(this.options.visualElement?.scheduleRender(),o){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=xt(),this.projectionDelta=xt(),this.projectionDeltaWithTransform=xt()}setAnimationOrigin(o,a=!1,u){const l=this.snapshot,c=l?l.latestValues:{},h={...this.latestValues},f=xt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const p=I(),d=l?l.source:void 0,m=this.layout?this.layout.source:void 0,g=d!==m,y=this.getStack(),T=!y||y.members.length<=1,x=!!(g&&!T&&this.options.crossfade===!0&&!this.path.some(Ec));this.animationProgress=0;let w;const A=u?.interpolateProjection(o);this.mixTargetDelta=V=>{const M=V/1e3,S=A?.(M);S?(f.x.translate=S.x,f.x.scale=D(o.x.scale,1,M),f.x.origin=o.x.origin,f.x.originPoint=o.x.originPoint,f.y.translate=S.y,f.y.scale=D(o.y.scale,1,M),f.y.origin=o.y.origin,f.y.originPoint=o.y.originPoint):(Os(f.x,o.x,M),Os(f.y,o.y,M)),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ue(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Dc(this.relativeTarget,this.relativeTargetOrigin,p,M),w&&ic(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=I()),G(w,this.relativeTarget)),g&&(this.animationValues=h,ac(h,c,this.latestValues,M,x,T)),S&&S.rotate!==void 0&&(this.animationValues||(this.animationValues=h),this.animationValues.pathRotation=S.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=M},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(rt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=E.update(()=>{te.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Pt(0)),this.motionValue.jump(0,!1),this.currentAnimation=uc(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(mc),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:u,layout:l,latestValues:c}=o;if(!(!a||!u||!l)){if(this!==o&&this.layout&&l&&Ro(this.options.animationType,this.layout.layoutBox,l.layoutBox)){u=this.target||I();const h=W(this.layout.layoutBox.x);u.x.min=o.target.x.min,u.x.max=u.x.min+h;const f=W(this.layout.layoutBox.y);u.y.min=o.target.y.min,u.y.max=u.y.min+f}G(a,u),Jt(a,c),Et(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new pc),this.sharedNodes.get(o).add(a);const l=a.options.initialPromotionConfig;a.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){const{layoutId:o}=this.options;return o?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:o}=this.options;return o?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:u}={}){const l=this.getStack();l&&l.promote(this,u),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:u}=o;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(a=!0),!a)return;const l={};u.z&&Ve("z",o,l,this.animationValues);for(let c=0;c<Ae.length;c++)Ve(`rotate${Ae[c]}`,o,l,this.animationValues),Ve(`skew${Ae[c]}`,o,l,this.animationValues);o.render();for(const c in l)o.setStaticValue(c,l[c]),this.animationValues&&(this.animationValues[c]=l[c]);o.scheduleRender()}applyProjectionStyles(o,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const u=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=Qt(a?.pointerEvents)||"",o.transform=u?u(this.latestValues,""):"none";return}const l=this.getLead();if(!this.projectionDelta||!this.layout||!l.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=Qt(a?.pointerEvents)||""),this.hasProjected&&!ut(this.latestValues)&&(o.transform=u?u({},""):"none",this.hasProjected=!1);return}o.visibility="";const c=l.animationValues||l.latestValues;this.applyTransformsToTarget();let h=oc(this.projectionDeltaWithTransform,this.treeScale,c);u&&(h=u(c,h)),o.transform=h;const{x:f,y:p}=this.projectionDelta;o.transformOrigin=`${f.origin*100}% ${p.origin*100}% 0`,l.animationValues?o.opacity=l===this?c.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:c.opacityExit:o.opacity=l===this?c.opacity!==void 0?c.opacity:"":c.opacityExit!==void 0?c.opacityExit:0;for(const d in tn){if(c[d]===void 0)continue;const{correct:m,applyTo:g,isCSSVariable:y}=tn[d],T=h==="none"?c[d]:m(c[d],l);if(g){const x=g.length;for(let w=0;w<x;w++)o[g[w]]=T}else y?this.options.visualElement.renderState.vars[d]=T:o[d]=T}this.options.layoutId&&(o.pointerEvents=l===this?Qt(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>o.currentAnimation?.stop()),this.root.nodes.forEach(Is),this.root.sharedNodes.clear()}}}function yc(t){t.updateLayout()}function vc(t){const e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:s}=t.layout,{animationType:i}=t.options,r=e.source!==t.layout.source;if(i==="size")Z(c=>{const h=r?e.measuredBox[c]:e.layoutBox[c],f=W(h);h.min=n[c].min,h.max=h.min+f});else if(i==="x"||i==="y"){const c=i==="x"?"y":"x";en(r?e.measuredBox[c]:e.layoutBox[c],n[c])}else Ro(i,e.layoutBox,n)&&Z(c=>{const h=r?e.measuredBox[c]:e.layoutBox[c],f=W(n[c]);h.max=h.min+f,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[c].max=t.relativeTarget[c].min+f)});const o=xt();Et(o,n,e.layoutBox);const a=xt();r?Et(a,t.applyTransform(s,!0),e.measuredBox):Et(a,n,e.layoutBox);const u=!Ao(o);let l=!1;if(!t.resumeFrom){const c=t.getClosestProjectingParent();if(c&&!c.resumeFrom){const{snapshot:h,layout:f}=c;if(h&&f){const p=t.options.layoutAnchor||void 0,d=I();ue(d,e.layoutBox,h.layoutBox,p);const m=I();ue(m,n,f.layoutBox,p),Vo(d,m)||(l=!0),c.options.layoutRoot&&(t.relativeTarget=m,t.relativeTargetOrigin=d,t.relativeParent=c)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:e,delta:a,layoutDelta:o,hasLayoutChanged:u,hasRelativeLayoutChanged:l})}else if(t.isLead()){const{onExitComplete:n}=t.options;n&&n()}t.options.transition=void 0}function xc(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 Tc(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function wc(t){t.clearSnapshot()}function Is(t){t.clearMeasurements()}function Pc(t){t.isLayoutDirty=!0,t.updateLayout()}function Bs(t){t.isLayoutDirty=!1}function Sc(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function bc(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Fs(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Ac(t){t.resolveTargetDelta()}function Vc(t){t.calcProjection()}function Cc(t){t.resetSkewAndRotation()}function Mc(t){t.removeLeadSnapshot()}function Os(t,e,n){t.translate=D(e.translate,0,n),t.scale=D(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function js(t,e,n,s){t.min=D(e.min,n.min,s),t.max=D(e.max,n.max,s)}function Dc(t,e,n,s){js(t.x,e.x,n.x,s),js(t.y,e.y,n.y,s)}function Ec(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Rc={duration:.45,ease:[.4,0,.1,1]},Ns=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Ws=Ns("applewebkit/")&&!Ns("chrome/")?Math.round:H;function Us(t){t.min=Ws(t.min),t.max=Ws(t.max)}function Lc(t){Us(t.x),Us(t.y)}function Ro(t,e,n){return t==="position"||t==="preserve-aspect"&&!Ql(Ds(e),Ds(n),.2)}function kc(t){return t!==t.root&&t.scroll?.wasRoot}const Ic=Eo({attachResizeListener:(t,e)=>Bt(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Ce={current:void 0},Lo=Eo({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Ce.current){const t=new Ic({});t.mount(window),t.setOptions({layoutScroll:!0}),Ce.current=t}return Ce.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Fn=v.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function Ks(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function Bc(...t){return e=>{let n=!1;const s=t.map(i=>{const r=Ks(i,e);return!n&&typeof r=="function"&&(n=!0),r});if(n)return()=>{for(let i=0;i<s.length;i++){const r=s[i];typeof r=="function"?r():Ks(t[i],null)}}}}function Fc(...t){return v.useCallback(Bc(...t),t)}class Oc extends v.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(_t(n)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const s=n.offsetParent,i=_t(s)&&s.offsetWidth||0,r=_t(s)&&s.offsetHeight||0,o=getComputedStyle(n),a=this.props.sizeRef.current;a.height=parseFloat(o.height),a.width=parseFloat(o.width),a.top=n.offsetTop,a.left=n.offsetLeft,a.right=i-a.width-a.left,a.bottom=r-a.height-a.top,a.direction=o.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function jc({children:t,isPresent:e,anchorX:n,anchorY:s,root:i,pop:r}){const o=v.useId(),a=v.useRef(null),u=v.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:l}=v.useContext(Fn),c=t.props?.ref??t?.ref,h=Fc(a,c);return v.useInsertionEffect(()=>{const{width:f,height:p,top:d,left:m,right:g,bottom:y,direction:T}=u.current;if(e||r===!1||!a.current||!f||!p)return;const x=T==="rtl",w=n==="left"?x?`right: ${g}`:`left: ${m}`:x?`left: ${m}`:`right: ${g}`,A=s==="bottom"?`bottom: ${y}`:`top: ${d}`;a.current.dataset.motionPopId=o;const V=document.createElement("style");l&&(V.nonce=l);const M=i??document.head;return M.appendChild(V),V.sheet&&V.sheet.insertRule(`
|
|
1
|
+
import{F as ln,u as _o,cp as Xo}from"./appStore-DWP8UET9.js";import{d as v,j as U}from"./index-BM2o7PeV.js";import{c as ri}from"./nativeDownload-BYT082bY.js";const Yo=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],ch=ln("clock",Yo);const qo=[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]],uh=ln("pin",qo);const Zo=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],hh=ln("square-pen",Zo),cn=v.createContext({});function un(t){const e=v.useRef(null);return e.current===null&&(e.current=t()),e.current}const Jo=typeof window<"u",hn=Jo?v.useLayoutEffect:v.useEffect,fe=v.createContext(null);function fn(t,e){t.indexOf(e)===-1&&t.push(e)}function ee(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const tt=(t,e,n)=>n>e?e:n<t?t:n;let dn=()=>{};const ot={},ai=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),li=t=>typeof t=="object"&&t!==null,ci=t=>/^0[^.\s]+$/u.test(t);function ui(t){let e;return()=>(e===void 0&&(e=t()),e)}const H=t=>t,Ot=(...t)=>t.reduce((e,n)=>s=>n(e(s))),Lt=(t,e,n)=>{const s=e-t;return s?(n-t)/s:1};class pn{constructor(){this.subscriptions=[]}add(e){return fn(this.subscriptions,e),()=>ee(this.subscriptions,e)}notify(e,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,s);else for(let r=0;r<i;r++){const o=this.subscriptions[r];o&&o(e,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const K=t=>t*1e3,z=t=>t/1e3,hi=(t,e)=>e?t*(1e3/e):0,fi=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,Qo=1e-7,tr=12;function er(t,e,n,s,i){let r,o,a=0;do o=e+(n-e)/2,r=fi(o,s,i)-t,r>0?n=o:e=o;while(Math.abs(r)>Qo&&++a<tr);return o}function jt(t,e,n,s){if(t===e&&n===s)return H;const i=r=>er(r,0,1,t,n);return r=>r===0||r===1?r:fi(i(r),e,s)}const di=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,pi=t=>e=>1-t(1-e),mi=jt(.33,1.53,.69,.99),mn=pi(mi),gi=di(mn),yi=t=>t>=1?1:(t*=2)<1?.5*mn(t):.5*(2-Math.pow(2,-10*(t-1))),gn=t=>1-Math.sin(Math.acos(t)),vi=pi(gn),xi=di(gn),nr=jt(.42,0,1,1),sr=jt(0,0,.58,1),Ti=jt(.42,0,.58,1),ir=t=>Array.isArray(t)&&typeof t[0]!="number",wi=t=>Array.isArray(t)&&typeof t[0]=="number",or={linear:H,easeIn:nr,easeInOut:Ti,easeOut:sr,circIn:gn,circInOut:xi,circOut:vi,backIn:mn,backInOut:gi,backOut:mi,anticipate:yi},rr=t=>typeof t=="string",Un=t=>{if(wi(t)){dn(t.length===4);const[e,n,s,i]=t;return jt(e,n,s,i)}else if(rr(t))return or[t];return t},Ut=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function ar(t){let e=new Set,n=new Set,s=!1,i=!1;const r=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function a(l){r.has(l)&&(u.schedule(l),t()),l(o)}const u={schedule:(l,c=!1,h=!1)=>{const p=h&&s?e:n;return c&&r.add(l),p.add(l),l},cancel:l=>{n.delete(l),r.delete(l)},process:l=>{if(o=l,s){i=!0;return}s=!0;const c=e;e=n,n=c,e.forEach(a),e.clear(),s=!1,i&&(i=!1,u.process(l))}};return u}const lr=40;function Pi(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,o=Ut.reduce((x,w)=>(x[w]=ar(r),x),{}),{setup:a,read:u,resolveKeyframes:l,preUpdate:c,update:h,preRender:f,render:p,postRender:d}=o,m=()=>{const x=ot.useManualTiming,w=x?i.timestamp:performance.now();n=!1,x||(i.delta=s?1e3/60:Math.max(Math.min(w-i.timestamp,lr),1)),i.timestamp=w,i.isProcessing=!0,a.process(i),u.process(i),l.process(i),c.process(i),h.process(i),f.process(i),p.process(i),d.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(m))},g=()=>{n=!0,s=!0,i.isProcessing||t(m)};return{schedule:Ut.reduce((x,w)=>{const A=o[w];return x[w]=(V,M=!1,S=!1)=>(n||g(),A.schedule(V,M,S)),x},{}),cancel:x=>{for(let w=0;w<Ut.length;w++)o[Ut[w]].cancel(x)},state:i,steps:o}}const{schedule:E,cancel:rt,state:O,steps:ye}=Pi(typeof requestAnimationFrame<"u"?requestAnimationFrame:H,!0);let Gt;function cr(){Gt=void 0}const N={now:()=>(Gt===void 0&&N.set(O.isProcessing||ot.useManualTiming?O.timestamp:performance.now()),Gt),set:t=>{Gt=t,queueMicrotask(cr)}},Si=t=>e=>typeof e=="string"&&e.startsWith(t),bi=Si("--"),ur=Si("var(--"),yn=t=>ur(t)?hr.test(t.split("/*")[0].trim()):!1,hr=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Kn(t){return typeof t!="string"?!1:t.split("/*")[0].includes("var(--")}const St={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},kt={...St,transform:t=>tt(0,1,t)},Kt={...St,default:1},Mt=t=>Math.round(t*1e5)/1e5,vn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function fr(t){return t==null}const dr=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,xn=(t,e)=>n=>!!(typeof n=="string"&&dr.test(n)&&n.startsWith(t)||e&&!fr(n)&&Object.prototype.hasOwnProperty.call(n,e)),Ai=(t,e,n)=>s=>{if(typeof s!="string")return s;const[i,r,o,a]=s.match(vn);return{[t]:parseFloat(i),[e]:parseFloat(r),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},pr=t=>tt(0,255,t),ve={...St,transform:t=>Math.round(pr(t))},ht={test:xn("rgb","red"),parse:Ai("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+ve.transform(t)+", "+ve.transform(e)+", "+ve.transform(n)+", "+Mt(kt.transform(s))+")"};function mr(t){let e="",n="",s="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,s+=s,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const Ie={test:xn("#"),parse:mr,transform:ht.transform},Nt=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),st=Nt("deg"),Q=Nt("%"),P=Nt("px"),gr=Nt("vh"),yr=Nt("vw"),$n={...Q,parse:t=>Q.parse(t)/100,transform:t=>Q.transform(t*100)},yt={test:xn("hsl","hue"),parse:Ai("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+Q.transform(Mt(e))+", "+Q.transform(Mt(n))+", "+Mt(kt.transform(s))+")"},k={test:t=>ht.test(t)||Ie.test(t)||yt.test(t),parse:t=>ht.test(t)?ht.parse(t):yt.test(t)?yt.parse(t):Ie.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?ht.transform(t):yt.transform(t),getAnimatableNone:t=>{const e=k.parse(t);return e.alpha=0,k.transform(e)}},vr=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function xr(t){return isNaN(t)&&typeof t=="string"&&(t.match(vn)?.length||0)+(t.match(vr)?.length||0)>0}const Vi="number",Ci="color",Tr="var",wr="var(",zn="${}",Pr=/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 wt(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let r=0;const a=e.replace(Pr,u=>(k.test(u)?(s.color.push(r),i.push(Ci),n.push(k.parse(u))):u.startsWith(wr)?(s.var.push(r),i.push(Tr),n.push(u)):(s.number.push(r),i.push(Vi),n.push(parseFloat(u))),++r,zn)).split(zn);return{values:n,split:a,indexes:s,types:i}}function Sr(t){return wt(t).values}function Mi({split:t,types:e}){const n=t.length;return s=>{let i="";for(let r=0;r<n;r++)if(i+=t[r],s[r]!==void 0){const o=e[r];o===Vi?i+=Mt(s[r]):o===Ci?i+=k.transform(s[r]):i+=s[r]}return i}}function br(t){return Mi(wt(t))}const Ar=t=>typeof t=="number"?0:k.test(t)?k.getAnimatableNone(t):t,Vr=(t,e)=>typeof t=="number"?e?.trim().endsWith("/")?t:0:Ar(t);function Cr(t){const e=wt(t);return Mi(e)(e.values.map((s,i)=>Vr(s,e.split[i])))}const X={test:xr,parse:Sr,createTransformer:br,getAnimatableNone:Cr};function xe(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Mr({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,r=0,o=0;if(!e)i=r=o=n;else{const a=n<.5?n*(1+e):n+e-n*e,u=2*n-a;i=xe(u,a,t+1/3),r=xe(u,a,t),o=xe(u,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:s}}function ne(t,e){return n=>n>0?e:t}const D=(t,e,n)=>t+(e-t)*n,Te=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},Dr=[Ie,ht,yt],Er=t=>Dr.find(e=>e.test(t));function Hn(t){const e=Er(t);if(!e)return!1;let n=e.parse(t);return e===yt&&(n=Mr(n)),n}const Gn=(t,e)=>{const n=Hn(t),s=Hn(e);if(!n||!s)return ne(t,e);const i={...n};return r=>(i.red=Te(n.red,s.red,r),i.green=Te(n.green,s.green,r),i.blue=Te(n.blue,s.blue,r),i.alpha=D(n.alpha,s.alpha,r),ht.transform(i))},Be=new Set(["none","hidden"]);function Rr(t,e){return Be.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function Lr(t,e){return n=>D(t,e,n)}function Tn(t){return typeof t=="number"?Lr:typeof t=="string"?yn(t)?ne:k.test(t)?Gn:Br:Array.isArray(t)?Di:typeof t=="object"?k.test(t)?Gn:kr:ne}function Di(t,e){const n=[...t],s=n.length,i=t.map((r,o)=>Tn(r)(r,e[o]));return r=>{for(let o=0;o<s;o++)n[o]=i[o](r);return n}}function kr(t,e){const n={...t,...e},s={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(s[i]=Tn(t[i])(t[i],e[i]));return i=>{for(const r in s)n[r]=s[r](i);return n}}function Ir(t,e){const n=[],s={color:0,var:0,number:0};for(let i=0;i<e.values.length;i++){const r=e.types[i],o=t.indexes[r][s[r]],a=t.values[o]??0;n[i]=a,s[r]++}return n}const Br=(t,e)=>{const n=X.createTransformer(e),s=wt(t),i=wt(e);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?Be.has(t)&&!i.values.length||Be.has(e)&&!s.values.length?Rr(t,e):Ot(Di(Ir(s,i),i.values),n):ne(t,e)};function Ei(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?D(t,e,n):Tn(t)(t,e)}const Fr=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>E.update(e,n),stop:()=>rt(e),now:()=>O.isProcessing?O.timestamp:N.now()}},Ri=(t,e,n=10)=>{let s="";const i=Math.max(Math.round(e/n),2);for(let r=0;r<i;r++)s+=Math.round(t(r/(i-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},se=2e4;function wn(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<se;)e+=n,s=t.next(e);return e>=se?1/0:e}function Or(t,e=100,n){const s=n({...t,keyframes:[0,e]}),i=Math.min(wn(s),se);return{type:"keyframes",ease:r=>s.next(i*r).value/e,duration:z(i)}}const L={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function Fe(t,e){return t*Math.sqrt(1-e*e)}const jr=12;function Nr(t,e,n){let s=n;for(let i=1;i<jr;i++)s=s-t(s)/e(s);return s}const we=.001;function Wr({duration:t=L.duration,bounce:e=L.bounce,velocity:n=L.velocity,mass:s=L.mass}){let i,r,o=1-e;o=tt(L.minDamping,L.maxDamping,o),t=tt(L.minDuration,L.maxDuration,z(t)),o<1?(i=l=>{const c=l*o,h=c*t,f=c-n,p=Fe(l,o),d=Math.exp(-h);return we-f/p*d},r=l=>{const h=l*o*t,f=h*n+n,p=Math.pow(o,2)*Math.pow(l,2)*t,d=Math.exp(-h),m=Fe(Math.pow(l,2),o);return(-i(l)+we>0?-1:1)*((f-p)*d)/m}):(i=l=>{const c=Math.exp(-l*t),h=(l-n)*t+1;return-we+c*h},r=l=>{const c=Math.exp(-l*t),h=(n-l)*(t*t);return c*h});const a=5/t,u=Nr(i,r,a);if(t=K(t),isNaN(u))return{stiffness:L.stiffness,damping:L.damping,duration:t};{const l=Math.pow(u,2)*s;return{stiffness:l,damping:o*2*Math.sqrt(s*l),duration:t}}}const Ur=["duration","bounce"],Kr=["stiffness","damping","mass"];function _n(t,e){return e.some(n=>t[n]!==void 0)}function $r(t){let e={velocity:L.velocity,stiffness:L.stiffness,damping:L.damping,mass:L.mass,isResolvedFromDuration:!1,...t};if(!_n(t,Kr)&&_n(t,Ur))if(e.velocity=0,t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,r=2*tt(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:L.mass,stiffness:i,damping:r}}else{const n=Wr({...t,velocity:0});e={...e,...n,mass:L.mass},e.isResolvedFromDuration=!0}return e}function ie(t=L.visualDuration,e=L.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:s,restDelta:i}=n;const r=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:u,damping:l,mass:c,duration:h,velocity:f,isResolvedFromDuration:p}=$r({...n,velocity:-z(n.velocity||0)}),d=f||0,m=l/(2*Math.sqrt(u*c)),g=o-r,y=z(Math.sqrt(u/c)),T=Math.abs(g)<5;s||(s=T?L.restSpeed.granular:L.restSpeed.default),i||(i=T?L.restDelta.granular:L.restDelta.default);let x,w,A,V,M,S;if(m<1)A=Fe(y,m),V=(d+m*y*g)/A,x=b=>{const R=Math.exp(-m*y*b);return o-R*(V*Math.sin(A*b)+g*Math.cos(A*b))},M=m*y*V+g*A,S=m*y*g-V*A,w=b=>Math.exp(-m*y*b)*(M*Math.sin(A*b)+S*Math.cos(A*b));else if(m===1){x=R=>o-Math.exp(-y*R)*(g+(d+y*g)*R);const b=d+y*g;w=R=>Math.exp(-y*R)*(y*b*R-d)}else{const b=y*Math.sqrt(m*m-1);x=Y=>{const nt=Math.exp(-m*y*Y),q=Math.min(b*Y,300);return o-nt*((d+m*y*g)*Math.sinh(q)+b*g*Math.cosh(q))/b};const R=(d+m*y*g)/b,B=m*y*R-g*b,et=m*y*g-R*b;w=Y=>{const nt=Math.exp(-m*y*Y),q=Math.min(b*Y,300);return nt*(B*Math.sinh(q)+et*Math.cosh(q))}}const C={calculatedDuration:p&&h||null,velocity:b=>K(w(b)),next:b=>{if(!p&&m<1){const B=Math.exp(-m*y*b),et=Math.sin(A*b),Y=Math.cos(A*b),nt=o-B*(V*et+g*Y),q=K(B*(M*et+S*Y));return a.done=Math.abs(q)<=s&&Math.abs(o-nt)<=i,a.value=a.done?o:nt,a}const R=x(b);if(p)a.done=b>=h;else{const B=K(w(b));a.done=Math.abs(B)<=s&&Math.abs(o-R)<=i}return a.value=a.done?o:R,a},toString:()=>{const b=Math.min(wn(C),se),R=Ri(B=>C.next(b*B).value,b,30);return b+"ms "+R},toTransition:()=>{}};return C}ie.applyToOptions=t=>{const e=Or(t,100,ie);return t.ease=e.ease,t.duration=K(e.duration),t.type="keyframes",t};const zr=5;function Li(t,e,n){const s=Math.max(e-zr,0);return hi(n-t(s),e-s)}function Oe({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:u,restDelta:l=.5,restSpeed:c}){const h=t[0],f={done:!1,value:h},p=S=>a!==void 0&&S<a||u!==void 0&&S>u,d=S=>a===void 0?u:u===void 0||Math.abs(a-S)<Math.abs(u-S)?a:u;let m=n*e;const g=h+m,y=o===void 0?g:o(g);y!==g&&(m=y-h);const T=S=>-m*Math.exp(-S/s),x=S=>y+T(S),w=S=>{const C=T(S),b=x(S);f.done=Math.abs(C)<=l,f.value=f.done?y:b};let A,V;const M=S=>{p(f.value)&&(A=S,V=ie({keyframes:[f.value,d(f.value)],velocity:Li(x,S,f.value),damping:i,stiffness:r,restDelta:l,restSpeed:c}))};return M(0),{calculatedDuration:null,next:S=>{let C=!1;return!V&&A===void 0&&(C=!0,w(S),M(S)),A!==void 0&&S>=A?V.next(S-A):(!C&&w(S),f)}}}function Hr(t,e,n){const s=[],i=n||ot.mix||Ei,r=t.length-1;for(let o=0;o<r;o++){let a=i(t[o],t[o+1]);if(e){const u=Array.isArray(e)?e[o]||H:e;a=Ot(u,a)}s.push(a)}return s}function Gr(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const r=t.length;if(dn(r===e.length),r===1)return()=>e[0];if(r===2&&e[0]===e[1])return()=>e[1];const o=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=Hr(e,s,i),u=a.length,l=c=>{if(o&&c<t[0])return e[0];let h=0;if(u>1)for(;h<t.length-2&&!(c<t[h+1]);h++);const f=Lt(t[h],t[h+1],c);return a[h](f)};return n?c=>l(tt(t[0],t[r-1],c)):l}function _r(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=Lt(0,e,s);t.push(D(n,1,i))}}function Xr(t){const e=[0];return _r(e,t.length-1),e}function Yr(t,e){return t.map(n=>n*e)}function qr(t,e){return t.map(()=>e||Ti).splice(0,t.length-1)}function Dt({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=ir(s)?s.map(Un):Un(s),r={done:!1,value:e[0]},o=Yr(n&&n.length===e.length?n:Xr(e),t),a=Gr(o,e,{ease:Array.isArray(i)?i:qr(e,i)});return{calculatedDuration:t,next:u=>(r.value=a(u),r.done=u>=t,r)}}const Zr=t=>t!==null;function de(t,{repeat:e,repeatType:n="loop"},s,i=1){const r=t.filter(Zr),a=i<0||e&&n!=="loop"&&e%2===1?0:r.length-1;return!a||s===void 0?r[a]:s}const Jr={decay:Oe,inertia:Oe,tween:Dt,keyframes:Dt,spring:ie};function ki(t){typeof t.type=="string"&&(t.type=Jr[t.type])}class Pn{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,n){return this.finished.then(e,n)}}const Qr=t=>t/100;class oe extends Pn{constructor(e){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=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==N.now()&&this.tick(N.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;ki(e);const{type:n=Dt,repeat:s=0,repeatDelay:i=0,repeatType:r,velocity:o=0}=e;let{keyframes:a}=e;const u=n||Dt;u!==Dt&&typeof a[0]!="number"&&(this.mixKeyframes=Ot(Qr,Ei(a[0],a[1])),a=[0,100]);const l=u({...e,keyframes:a});r==="mirror"&&(this.mirroredGenerator=u({...e,keyframes:[...a].reverse(),velocity:-o})),l.calculatedDuration===null&&(l.calculatedDuration=wn(l));const{calculatedDuration:c}=l;this.calculatedDuration=c,this.resolvedDuration=c+i,this.totalDuration=this.resolvedDuration*(s+1)-i,this.generator=l}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:s,totalDuration:i,mixKeyframes:r,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:u}=this;if(this.startTime===null)return s.next(0);const{delay:l=0,keyframes:c,repeat:h,repeatType:f,repeatDelay:p,type:d,onUpdate:m,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const y=this.currentTime-l*(this.playbackSpeed>=0?1:-1),T=this.playbackSpeed>=0?y<0:y>i;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let x=this.currentTime,w=s;if(h){const S=Math.min(this.currentTime,i)/a;let C=Math.floor(S),b=S%1;!b&&S>=1&&(b=1),b===1&&C--,C=Math.min(C,h+1),C%2&&(f==="reverse"?(b=1-b,p&&(b-=p/a)):f==="mirror"&&(w=o)),x=tt(0,1,b)*a}let A;T?(this.delayState.value=c[0],A=this.delayState):A=w.next(x),r&&!T&&(A.value=r(A.value));let{done:V}=A;!T&&u!==null&&(V=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const M=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&V);return M&&d!==Oe&&(A.value=de(c,this.options,g,this.speed)),m&&m(A.value),M&&this.finish(),A}then(e,n){return this.finished.then(e,n)}get duration(){return z(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+z(e)}get time(){return z(this.currentTime)}set time(e){e=K(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){const e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);const n=this.generator.next(e).value;return Li(s=>this.generator.next(s).value,e,n)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;n&&this.driver&&this.updateTime(N.now()),this.playbackSpeed=e,n&&this.driver&&(this.time=z(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=Fr,startTime:n}=this.options;this.driver||(this.driver=e(i=>this.tick(i))),this.options.onPlay?.();const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=n??s),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(N.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&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}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}function ta(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const ft=t=>t*180/Math.PI,je=t=>{const e=ft(Math.atan2(t[1],t[0]));return Ne(e)},ea={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:je,rotateZ:je,skewX:t=>ft(Math.atan(t[1])),skewY:t=>ft(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},Ne=t=>(t=t%360,t<0&&(t+=360),t),Xn=je,Yn=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),qn=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),na={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Yn,scaleY:qn,scale:t=>(Yn(t)+qn(t))/2,rotateX:t=>Ne(ft(Math.atan2(t[6],t[5]))),rotateY:t=>Ne(ft(Math.atan2(-t[2],t[0]))),rotateZ:Xn,rotate:Xn,skewX:t=>ft(Math.atan(t[4])),skewY:t=>ft(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function We(t){return t.includes("scale")?1:0}function Ue(t,e){if(!t||t==="none")return We(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,i;if(n)s=na,i=n;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=ea,i=a}if(!i)return We(e);const r=s[e],o=i[1].split(",").map(ia);return typeof r=="function"?r(o):o[r]}const sa=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return Ue(n,e)};function ia(t){return parseFloat(t.trim())}const bt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],At=new Set([...bt,"pathRotation"]),Zn=t=>t===St||t===P,oa=new Set(["x","y","z"]),ra=bt.filter(t=>!oa.has(t));function aa(t){const e=[];return ra.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const it={width:({x:t},{paddingLeft:e="0",paddingRight:n="0",boxSizing:s})=>{const i=t.max-t.min;return s==="border-box"?i:i-parseFloat(e)-parseFloat(n)},height:({y:t},{paddingTop:e="0",paddingBottom:n="0",boxSizing:s})=>{const i=t.max-t.min;return s==="border-box"?i:i-parseFloat(e)-parseFloat(n)},top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>Ue(e,"x"),y:(t,{transform:e})=>Ue(e,"y")};it.translateX=it.x;it.translateY=it.y;const dt=new Set;let Ke=!1,$e=!1,ze=!1;function Ii(){if($e){const t=Array.from(dt).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=aa(s);i.length&&(n.set(s,i),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([r,o])=>{s.getValue(r)?.set(o)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}$e=!1,Ke=!1,dt.forEach(t=>t.complete(ze)),dt.clear()}function Bi(){dt.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&($e=!0)})}function la(){ze=!0,Bi(),Ii(),ze=!1}class Sn{constructor(e,n,s,i,r,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=i,this.element=r,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(dt.add(this),Ke||(Ke=!0,E.read(Bi),E.resolveKeyframes(Ii))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;if(e[0]===null){const r=i?.get(),o=e[e.length-1];if(r!==void 0)e[0]=r;else if(s&&n){const a=s.readValue(n,o);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=o),i&&r===void 0&&i.set(e[0])}ta(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),dt.delete(this)}cancel(){this.state==="scheduled"&&(dt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const ca=t=>t.startsWith("--");function Fi(t,e,n){ca(e)?t.style.setProperty(e,n):t.style[e]=n}const ua={};function Oi(t,e){const n=ui(t);return()=>ua[e]??n()}const ha=Oi(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),ji=Oi(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Ct=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,Jn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ct([0,.65,.55,1]),circOut:Ct([.55,0,1,.45]),backIn:Ct([.31,.01,.66,-.59]),backOut:Ct([.33,1.53,.69,.99])};function Ni(t,e){if(t)return typeof t=="function"?ji()?Ri(t,e):"ease-out":wi(t)?Ct(t):Array.isArray(t)?t.map(n=>Ni(n,e)||Jn.easeOut):Jn[t]}function fa(t,e,n,{delay:s=0,duration:i=300,repeat:r=0,repeatType:o="loop",ease:a="easeOut",times:u}={},l=void 0){const c={[e]:n};u&&(c.offset=u);const h=Ni(a,i);Array.isArray(h)&&(c.easing=h);const f={delay:s,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:r+1,direction:o==="reverse"?"alternate":"normal"};return l&&(f.pseudoElement=l),t.animate(c,f)}function Wi(t){return typeof t=="function"&&"applyToOptions"in t}function da({type:t,...e}){return Wi(t)&&ji()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class Ui extends Pn{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:n,name:s,keyframes:i,pseudoElement:r,allowFlatten:o=!1,finalKeyframe:a,onComplete:u}=e;this.isPseudoElement=!!r,this.allowFlatten=o,this.options=e,dn(typeof e.type!="string");const l=da(e);this.animation=fa(n,s,i,l,r),l.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){const c=de(i,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(c),Fi(n,s,c),this.animation.cancel()}u?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){const e=this.animation.effect?.getComputedTiming?.().duration||0;return z(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+z(e)}get time(){return z(Number(this.animation.currentTime)||0)}set time(e){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=K(e),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:n,rangeEnd:s,observe:i}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&ha()?(this.animation.timeline=e,n&&(this.animation.rangeStart=n),s&&(this.animation.rangeEnd=s),H):i(this)}}const Ki={anticipate:yi,backInOut:gi,circInOut:xi};function pa(t){return t in Ki}function ma(t){typeof t.ease=="string"&&pa(t.ease)&&(t.ease=Ki[t.ease])}const Pe=10;class ga extends Ui{constructor(e){ma(e),ki(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:n,onUpdate:s,onComplete:i,element:r,...o}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const a=new oe({...o,autoplay:!1}),u=Math.max(Pe,N.now()-this.startTime),l=tt(0,Pe,u-Pe),c=a.sample(u).value,{name:h}=this.options;r&&h&&Fi(r,h,c),n.setWithVelocity(a.sample(Math.max(0,u-l)).value,c,l),a.stop()}}const Qn=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(X.test(t)||t==="0")&&!t.startsWith("url("));function ya(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function va(t,e,n,s){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const r=t[t.length-1],o=Qn(i,e),a=Qn(r,e);return!o||!a?!1:ya(t)||(n==="spring"||Wi(n))&&s}function He(t){t.duration=0,t.type="keyframes"}const $i=new Set(["opacity","clipPath","filter","transform"]),xa=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Ta(t){for(let e=0;e<t.length;e++)if(typeof t[e]=="string"&&xa.test(t[e]))return!0;return!1}const wa=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),Pa=ui(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Sa(t){const{motionValue:e,name:n,repeatDelay:s,repeatType:i,damping:r,type:o,keyframes:a}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=e.owner.getProps();return Pa()&&n&&($i.has(n)||wa.has(n)&&Ta(a))&&(n!=="transform"||!c)&&!l&&!s&&i!=="mirror"&&r!==0&&o!=="inertia"}const ba=40;class Aa extends Pn{constructor({autoplay:e=!0,delay:n=0,type:s="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o="loop",keyframes:a,name:u,motionValue:l,element:c,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=N.now();const f={autoplay:e,delay:n,type:s,repeat:i,repeatDelay:r,repeatType:o,name:u,motionValue:l,element:c,...h},p=c?.KeyframeResolver||Sn;this.keyframeResolver=new p(a,(d,m,g)=>this.onKeyframesResolved(d,m,f,!g),u,l,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,n,s,i){this.keyframeResolver=void 0;const{name:r,type:o,velocity:a,delay:u,isHandoff:l,onUpdate:c}=s;this.resolvedAt=N.now();let h=!0;va(e,r,o,a)||(h=!1,(ot.instantAnimations||!u)&&c?.(de(e,s,n)),e[0]=e[e.length-1],He(s),s.repeat=0);const p={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>ba?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:e},d=h&&!l&&Sa(p),m=p.motionValue?.owner?.current;let g;if(d)try{g=new ga({...p,element:m})}catch{g=new oe(p)}else g=new oe(p);g.finished.then(()=>{this.notifyFinished()}).catch(H),this.pendingTimeline&&(this.stopTimeline=g.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=g}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),la()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function zi(t,e,n,s=0,i=1){const r=Array.from(t).sort((l,c)=>l.sortNodePosition(c)).indexOf(e),o=t.size,a=(o-1)*s;return typeof n=="function"?n(r,o):i===1?r*s:a-r*s}const ts=30,Va=t=>!isNaN(parseFloat(t));class Ca{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{const i=N.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const r of this.dependents)r.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=N.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Va(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new pn);const s=this.events[e].add(n);return e==="change"?()=>{s(),E.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=N.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>ts)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,ts);return hi(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Pt(t,e){return new Ca(t,e)}function Hi(t,e){if(t?.inherit&&e){const{inherit:n,...s}=t;return{...e,...s}}return t}function bn(t,e){const n=t?.[e]??t?.default??t;return n!==t?Hi(n,t):n}const Ma={type:"spring",stiffness:500,damping:25,restSpeed:10},Da=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Ea={type:"keyframes",duration:.8},Ra={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},La=(t,{keyframes:e})=>e.length>2?Ea:At.has(t)?t.startsWith("scale")?Da(e[1]):Ma:Ra,ka=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function Ia(t){for(const e in t)if(!ka.has(e))return!0;return!1}const An=(t,e,n,s={},i,r)=>o=>{const a=bn(s,t)||{},u=a.delay||s.delay||0;let{elapsed:l=0}=s;l=l-K(u);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-l,onUpdate:f=>{e.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:r?void 0:i};Ia(a)||Object.assign(c,La(t,c)),c.duration&&(c.duration=K(c.duration)),c.repeatDelay&&(c.repeatDelay=K(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let h=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(He(c),c.delay===0&&(h=!0)),(ot.instantAnimations||ot.skipAnimations||i?.shouldSkipAnimations||a.skipAnimations)&&(h=!0,He(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,h&&!r&&e.get()!==void 0){const f=de(c.keyframes,a);if(f!==void 0){E.update(()=>{c.onUpdate(f),c.onComplete()});return}}return a.isSync?new oe(c):new Aa(c)},Ba=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Fa(t){const e=Ba.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}function Gi(t,e,n=1){const[s,i]=Fa(t);if(!s)return;const r=window.getComputedStyle(e).getPropertyValue(s);if(r){const o=r.trim();return ai(o)?parseFloat(o):o}return yn(i)?Gi(i,e,n+1):i}function es(t){const e=[{},{}];return t?.values.forEach((n,s)=>{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function Vn(t,e,n,s){if(typeof e=="function"){const[i,r]=es(s);e=e(n!==void 0?n:t.custom,i,r)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,r]=es(s);e=e(n!==void 0?n:t.custom,i,r)}return e}function pt(t,e,n){const s=t.getProps();return Vn(s,e,n!==void 0?n:s.custom,t)}const _i=new Set(["width","height","top","left","right","bottom",...bt]),Ge=t=>Array.isArray(t);function Oa(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Pt(n))}function ja(t){return Ge(t)?t[t.length-1]||0:t}function Na(t,e){const n=pt(t,e);let{transitionEnd:s={},transition:i={},...r}=n||{};r={...r,...s};for(const o in r){const a=ja(r[o]);Oa(t,o,a)}}const j=t=>!!(t&&t.getVelocity);function Wa(t){return!!(j(t)&&t.add)}function _e(t,e){const n=t.getValue("willChange");if(Wa(n))return n.add(e);if(!n&&ot.WillChange){const s=new ot.WillChange("auto");t.addValue("willChange",s),s.add(e)}}function Cn(t){return t.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}const Ua="framerAppearId",Xi="data-"+Cn(Ua);function Yi(t){return t.props[Xi]}function Ka({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function qi(t,e,{delay:n=0,transitionOverride:s,type:i}={}){let{transition:r,transitionEnd:o,...a}=e;const u=t.getDefaultTransition();r=r?Hi(r,u):u;const l=r?.reduceMotion,c=r?.skipAnimations;s&&(r=s);const h=[],f=i&&t.animationState&&t.animationState.getState()[i],p=r?.path;p&&p.animateVisualElement(t,a,r,n,h);for(const d in a){const m=t.getValue(d,t.latestValues[d]??null),g=a[d];if(g===void 0||f&&Ka(f,d))continue;const y={delay:n,...bn(r||{},d)};c&&(y.skipAnimations=!0);const T=m.get();if(T!==void 0&&!m.isAnimating()&&!Array.isArray(g)&&g===T&&!y.velocity){E.update(()=>m.set(g));continue}let x=!1;if(window.MotionHandoffAnimation){const V=Yi(t);if(V){const M=window.MotionHandoffAnimation(V,d,E);M!==null&&(y.startTime=M,x=!0)}}_e(t,d);const w=l??t.shouldReduceMotion;m.start(An(d,m,g,w&&_i.has(d)?{type:!1}:y,t,x));const A=m.animation;A&&h.push(A)}if(o){const d=()=>E.update(()=>{o&&Na(t,o)});h.length?Promise.all(h).then(d):d()}return h}function Xe(t,e,n={}){const s=pt(t,e,n.type==="exit"?t.presenceContext?.custom:void 0);let{transition:i=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const r=s?()=>Promise.all(qi(t,s,n)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(u=0)=>{const{delayChildren:l=0,staggerChildren:c,staggerDirection:h}=i;return $a(t,e,u,l,c,h,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[u,l]=a==="beforeChildren"?[r,o]:[o,r];return u().then(()=>l())}else return Promise.all([r(),o(n.delay)])}function $a(t,e,n=0,s=0,i=0,r=1,o){const a=[];for(const u of t.variantChildren)u.notify("AnimationStart",e),a.push(Xe(u,e,{...o,delay:n+(typeof s=="function"?0:s)+zi(t.variantChildren,u,s,i,r)}).then(()=>u.notify("AnimationComplete",e)));return Promise.all(a)}function za(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(r=>Xe(t,r,n));s=Promise.all(i)}else if(typeof e=="string")s=Xe(t,e,n);else{const i=typeof e=="function"?pt(t,e,n.custom):e;s=Promise.all(qi(t,i,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}const Ha={test:t=>t==="auto",parse:t=>t},Zi=t=>e=>e.test(t),Ji=[St,P,Q,st,yr,gr,Ha],ns=t=>Ji.find(Zi(t));function Ga(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||ci(t):!0}const _a=new Set(["brightness","contrast","saturate","opacity"]);function Xa(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(vn)||[];if(!s)return t;const i=n.replace(s,"");let r=_a.has(e)?1:0;return s!==n&&(r*=100),e+"("+r+i+")"}const Ya=/\b([a-z-]*)\(.*?\)/gu,Ye={...X,getAnimatableNone:t=>{const e=t.match(Ya);return e?e.map(Xa).join(" "):t}},qe={...X,getAnimatableNone:t=>{const e=X.parse(t);return X.createTransformer(t)(e.map(s=>typeof s=="number"?0:typeof s=="object"?{...s,alpha:1}:s))}},ss={...St,transform:Math.round},qa={rotate:st,pathRotation:st,rotateX:st,rotateY:st,rotateZ:st,scale:Kt,scaleX:Kt,scaleY:Kt,scaleZ:Kt,skew:st,skewX:st,skewY:st,distance:P,translateX:P,translateY:P,translateZ:P,x:P,y:P,z:P,perspective:P,transformPerspective:P,opacity:kt,originX:$n,originY:$n,originZ:P},re={borderWidth:P,borderTopWidth:P,borderRightWidth:P,borderBottomWidth:P,borderLeftWidth:P,borderRadius:P,borderTopLeftRadius:P,borderTopRightRadius:P,borderBottomRightRadius:P,borderBottomLeftRadius:P,width:P,maxWidth:P,height:P,maxHeight:P,top:P,right:P,bottom:P,left:P,inset:P,insetBlock:P,insetBlockStart:P,insetBlockEnd:P,insetInline:P,insetInlineStart:P,insetInlineEnd:P,padding:P,paddingTop:P,paddingRight:P,paddingBottom:P,paddingLeft:P,paddingBlock:P,paddingBlockStart:P,paddingBlockEnd:P,paddingInline:P,paddingInlineStart:P,paddingInlineEnd:P,margin:P,marginTop:P,marginRight:P,marginBottom:P,marginLeft:P,marginBlock:P,marginBlockStart:P,marginBlockEnd:P,marginInline:P,marginInlineStart:P,marginInlineEnd:P,fontSize:P,backgroundPositionX:P,backgroundPositionY:P,...qa,zIndex:ss,fillOpacity:kt,strokeOpacity:kt,numOctaves:ss},Za={...re,color:k,backgroundColor:k,outlineColor:k,fill:k,stroke:k,borderColor:k,borderTopColor:k,borderRightColor:k,borderBottomColor:k,borderLeftColor:k,filter:Ye,WebkitFilter:Ye,mask:qe,WebkitMask:qe},Qi=t=>Za[t],Ja=new Set([Ye,qe]);function to(t,e){let n=Qi(t);return Ja.has(n)||(n=X),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Qa=new Set(["auto","none","0"]);function tl(t,e,n){let s=0,i;for(;s<t.length&&!i;){const r=t[s];typeof r=="string"&&!Qa.has(r)&&wt(r).values.length&&(i=t[s]),s++}if(i&&n)for(const r of e)t[r]=to(n,i)}class el extends Sn{constructor(e,n,s,i,r){super(e,n,s,i,r,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<e.length;c++){let h=e[c];if(typeof h=="string"&&(h=h.trim(),yn(h))){const f=Gi(h,n.current);f!==void 0&&(e[c]=f),c===e.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!_i.has(s)||e.length!==2)return;const[i,r]=e,o=ns(i),a=ns(r),u=Kn(i),l=Kn(r);if(u!==l&&it[s]){this.needsMeasurement=!0;return}if(o!==a)if(Zn(o)&&Zn(a))for(let c=0;c<e.length;c++){const h=e[c];typeof h=="string"&&(e[c]=parseFloat(h))}else it[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,s=[];for(let i=0;i<e.length;i++)(e[i]===null||Ga(e[i]))&&s.push(i);s.length&&tl(e,s,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:s}=this;if(!e||!e.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=it[s](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(s,i).jump(i,!1)}measureEndState(){const{element:e,name:n,unresolvedKeyframes:s}=this;if(!e||!e.current)return;const i=e.getValue(n);i&&i.jump(this.measuredOrigin,!1);const r=s.length-1,o=s[r];s[r]=it[n](e.measureViewportBox(),window.getComputedStyle(e.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,u])=>{e.getValue(a).set(u)}),this.resolveNoneKeyframes()}}function eo(t,e,n){if(t==null)return[];if(t instanceof EventTarget)return[t];if(typeof t=="string"){let s=document;const i=n?.[t]??s.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t).filter(s=>s!=null)}const Ze=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function _t(t){return li(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}const{schedule:Mn}=Pi(queueMicrotask,!1),_={x:!1,y:!1};function no(){return _.x||_.y}function nl(t){return t==="x"||t==="y"?_[t]?null:(_[t]=!0,()=>{_[t]=!1}):_.x||_.y?null:(_.x=_.y=!0,()=>{_.x=_.y=!1})}function so(t,e){const n=eo(t),s=new AbortController,i={passive:!0,...e,signal:s.signal};return[n,i,()=>s.abort()]}function sl(t){return!(t.pointerType==="touch"||no())}function il(t,e,n={}){const[s,i,r]=so(t,n);return s.forEach(o=>{let a=!1,u=!1,l;const c=()=>{o.removeEventListener("pointerleave",d)},h=g=>{l&&(l(g),l=void 0),c()},f=g=>{a=!1,window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",f),u&&(u=!1,h(g))},p=()=>{a=!0,window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",f,i)},d=g=>{if(g.pointerType!=="touch"){if(a){u=!0;return}h(g)}},m=g=>{if(!sl(g))return;u=!1;const y=e(o,g);typeof y=="function"&&(l=y,o.addEventListener("pointerleave",d,i))};o.addEventListener("pointerenter",m,i),o.addEventListener("pointerdown",p,i)}),r}const io=(t,e)=>e?t===e?!0:io(t,e.parentElement):!1,Dn=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,ol=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function rl(t){return ol.has(t.tagName)||t.isContentEditable===!0}const al=new Set(["INPUT","SELECT","TEXTAREA"]);function ll(t){return al.has(t.tagName)||t.isContentEditable===!0}const Xt=new WeakSet;function is(t){return e=>{e.key==="Enter"&&t(e)}}function Se(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const cl=(t,e)=>{const n=t.currentTarget;if(!n)return;const s=is(()=>{if(Xt.has(n))return;Se(n,"down");const i=is(()=>{Se(n,"up")}),r=()=>Se(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",r,e)});n.addEventListener("keydown",s,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),e)};function os(t){return Dn(t)&&!no()}const rs=new WeakSet;function ul(t,e,n={}){const[s,i,r]=so(t,n),o=a=>{const u=a.currentTarget;if(!os(a)||rs.has(a))return;Xt.add(u),n.stopPropagation&&rs.add(a);const l=e(u,a),c={...i,capture:!0},h=(d,m)=>{window.removeEventListener("pointerup",f,c),window.removeEventListener("pointercancel",p,c),Xt.has(u)&&Xt.delete(u),os(d)&&typeof l=="function"&&l(d,{success:m})},f=d=>{h(d,u===window||u===document||n.useGlobalTarget||io(u,d.target))},p=d=>{h(d,!1)};window.addEventListener("pointerup",f,c),window.addEventListener("pointercancel",p,c)};return s.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),_t(a)&&(a.addEventListener("focus",l=>cl(l,i)),!rl(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),r}function En(t){return li(t)&&"ownerSVGElement"in t}const Yt=new WeakMap;let qt;const oo=(t,e,n)=>(s,i)=>i&&i[0]?i[0][t+"Size"]:En(s)&&"getBBox"in s?s.getBBox()[e]:s[n],hl=oo("inline","width","offsetWidth"),fl=oo("block","height","offsetHeight");function dl({target:t,borderBoxSize:e}){Yt.get(t)?.forEach(n=>{n(t,{get width(){return hl(t,e)},get height(){return fl(t,e)}})})}function pl(t){t.forEach(dl)}function ml(){typeof ResizeObserver>"u"||(qt=new ResizeObserver(pl))}function gl(t,e){qt||ml();const n=eo(t);return n.forEach(s=>{let i=Yt.get(s);i||(i=new Set,Yt.set(s,i)),i.add(e),qt?.observe(s)}),()=>{n.forEach(s=>{const i=Yt.get(s);i?.delete(e),i?.size||qt?.unobserve(s)})}}const Zt=new Set;let vt;function yl(){vt=()=>{const t={get width(){return window.innerWidth},get height(){return window.innerHeight}};Zt.forEach(e=>e(t))},window.addEventListener("resize",vt)}function vl(t){return Zt.add(t),vt||yl(),()=>{Zt.delete(t),!Zt.size&&typeof vt=="function"&&(window.removeEventListener("resize",vt),vt=void 0)}}function as(t,e){return typeof t=="function"?vl(t):gl(t,e)}function xl(t){return En(t)&&t.tagName==="svg"}const Tl=[...Ji,k,X],wl=t=>Tl.find(Zi(t)),ls=()=>({translate:0,scale:1,origin:0,originPoint:0}),xt=()=>({x:ls(),y:ls()}),cs=()=>({min:0,max:0}),I=()=>({x:cs(),y:cs()}),Pl=new WeakMap;function pe(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function It(t){return typeof t=="string"||Array.isArray(t)}const Rn=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ln=["initial",...Rn];function me(t){return pe(t.animate)||Ln.some(e=>It(t[e]))}function ro(t){return!!(me(t)||t.variants)}function Sl(t,e,n){for(const s in e){const i=e[s],r=n[s];if(j(i))t.addValue(s,i);else if(j(r))t.addValue(s,Pt(i,{owner:t}));else if(r!==i)if(t.hasValue(s)){const o=t.getValue(s);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=t.getStaticValue(s);t.addValue(s,Pt(o!==void 0?o:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const ae={current:null},kn={current:!1},bl=typeof window<"u";function ao(){if(kn.current=!0,!!bl)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>ae.current=t.matches;t.addEventListener("change",e),e()}else ae.current=!1}const us=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let le={};function lo(t){le=t}function Al(){return le}class Vl{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,skipAnimations:r,blockInitialAnimation:o,visualState:a},u={}){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=Sn,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=()=>{const p=N.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,E.render(this.render,!1,!0))};const{latestValues:l,renderState:c}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,this.parent=e,this.props=n,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=r,this.options=u,this.blockInitialAnimation=!!o,this.isControllingVariants=me(n),this.isVariantNode=ro(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:h,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const p in f){const d=f[p];l[p]!==void 0&&j(d)&&d.set(l[p])}}mount(e){if(this.hasBeenMounted)for(const n in this.initialValues)this.values.get(n)?.jump(this.initialValues[n]),this.latestValues[n]=this.initialValues[n];this.current=e,Pl.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,s)=>this.bindToMotionValue(s,n)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(kn.current||ao(),this.shouldReduceMotion=ae.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),rt(this.notifyUpdate),rt(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,n){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),n.accelerate&&$i.has(e)&&this.current instanceof HTMLElement){const{factory:o,keyframes:a,times:u,ease:l,duration:c}=n.accelerate,h=new Ui({element:this.current,name:e,keyframes:a,times:u,ease:l,duration:K(c)}),f=o(h);this.valueSubscriptions.set(e,()=>{f(),h.cancel()});return}const s=At.has(e);s&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",o=>{this.latestValues[e]=o,this.props.onUpdate&&E.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let r;typeof window<"u"&&window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),r&&r()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in le){const n=le[e];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[e]&&i&&s(this.props)&&(this.features[e]=new i(this)),this.features[e]){const r=this.features[e];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):I()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<us.length;s++){const i=us[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const r="on"+i,o=e[r];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=Sl(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const s=this.values.get(e);n!==s&&(s&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&n!==void 0&&(s=Pt(n===null?void 0:n,{owner:this}),this.addValue(e,s)),s}readValue(e,n){let s=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return s!=null&&(typeof s=="string"&&(ai(s)||ci(s))?s=parseFloat(s):!wl(s)&&X.test(n)&&(s=to(e,n)),this.setBaseTarget(e,j(s)?s.get():s)),j(s)?s.get():s}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){const{initial:n}=this.props;let s;if(typeof n=="string"||typeof n=="object"){const r=Vn(this.props,n,this.presenceContext?.custom);r&&(s=r[e])}if(n&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!j(i)?i:this.initialValues[e]!==void 0&&s===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new pn),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){Mn.render(this.render)}}class co extends Vl{constructor(){super(...arguments),this.KeyframeResolver=el}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){const s=e.style;return s?s[n]:void 0}removeValueFromRenderState(e,{vars:n,style:s}){delete n[e],delete s[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;j(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class at{constructor(e){this.isMounted=!1,this.node=e}update(){}}function uo({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function Cl({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Ml(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function be(t){return t===void 0||t===1}function Je({scale:t,scaleX:e,scaleY:n}){return!be(t)||!be(e)||!be(n)}function ut(t){return Je(t)||ho(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function ho(t){return hs(t.x)||hs(t.y)}function hs(t){return t&&t!=="0%"}function ce(t,e,n){const s=t-n,i=e*s;return n+i}function fs(t,e,n,s,i){return i!==void 0&&(t=ce(t,i,s)),ce(t,n,s)+e}function Qe(t,e=0,n=1,s,i){t.min=fs(t.min,e,n,s,i),t.max=fs(t.max,e,n,s,i)}function fo(t,{x:e,y:n}){Qe(t.x,e.translate,e.scale,e.originPoint),Qe(t.y,n.translate,n.scale,n.originPoint)}const ds=.999999999999,ps=1.0000000000001;function Dl(t,e,n,s=!1){const i=n.length;if(!i)return;e.x=e.y=1;let r,o;for(let a=0;a<i;a++){r=n[a],o=r.projectionDelta;const{visualElement:u}=r.options;u&&u.props.style&&u.props.style.display==="contents"||(s&&r.options.layoutScroll&&r.scroll&&r!==r.root&&(J(t.x,-r.scroll.offset.x),J(t.y,-r.scroll.offset.y)),o&&(e.x*=o.x.scale,e.y*=o.y.scale,fo(t,o)),s&&ut(r.latestValues)&&Jt(t,r.latestValues,r.layout?.layoutBox))}e.x<ps&&e.x>ds&&(e.x=1),e.y<ps&&e.y>ds&&(e.y=1)}function J(t,e){t.min+=e,t.max+=e}function ms(t,e,n,s,i=.5){const r=D(t.min,t.max,i);Qe(t,e,n,r,s)}function gs(t,e){return typeof t=="string"?parseFloat(t)/100*(e.max-e.min):t}function Jt(t,e,n){const s=n??t;ms(t.x,gs(e.x,s.x),e.scaleX,e.scale,e.originX),ms(t.y,gs(e.y,s.y),e.scaleY,e.scale,e.originY)}function po(t,e){return uo(Ml(t.getBoundingClientRect(),e))}function El(t,e,n){const s=po(t,n),{scroll:i}=e;return i&&(J(s.x,i.offset.x),J(s.y,i.offset.y)),s}const Rl={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Ll=bt.length;function kl(t,e,n){let s="",i=!0;for(let o=0;o<Ll;o++){const a=bt[o],u=t[a];if(u===void 0)continue;let l=!0;if(typeof u=="number")l=u===(a.startsWith("scale")?1:0);else{const c=parseFloat(u);l=a.startsWith("scale")?c===1:c===0}if(!l||n){const c=Ze(u,re[a]);if(!l){i=!1;const h=Rl[a]||a;s+=`${h}(${c}) `}n&&(e[a]=c)}}const r=t.pathRotation;return r&&(i=!1,s+=`rotate(${Ze(r,re.pathRotation)}) `),s=s.trim(),n?s=n(e,i?"":s):i&&(s="none"),s}function In(t,e,n){const{style:s,vars:i,transformOrigin:r}=t;let o=!1,a=!1;for(const u in e){const l=e[u];if(At.has(u)){o=!0;continue}else if(bi(u)){i[u]=l;continue}else{const c=Ze(l,re[u]);u.startsWith("origin")?(a=!0,r[u]=c):s[u]=c}}if(e.transform||(o||n?s.transform=kl(e,t.transform,n):s.transform&&(s.transform="none")),a){const{originX:u="50%",originY:l="50%",originZ:c=0}=r;s.transformOrigin=`${u} ${l} ${c}`}}function mo(t,{style:e,vars:n},s,i){const r=t.style;let o;for(o in e)r[o]=e[o];i?.applyProjectionStyles(r,s);for(o in n)r.setProperty(o,n[o])}function ys(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Vt={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(P.test(t))t=parseFloat(t);else return t;const n=ys(t,e.target.x),s=ys(t,e.target.y);return`${n}% ${s}%`}},Il={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=X.parse(t);if(i.length>5)return s;const r=X.createTransformer(t),o=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,u=n.y.scale*e.y;i[0+o]/=a,i[1+o]/=u;const l=D(a,u,.5);return typeof i[2+o]=="number"&&(i[2+o]/=l),typeof i[3+o]=="number"&&(i[3+o]/=l),r(i)}},tn={borderRadius:{...Vt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Vt,borderTopRightRadius:Vt,borderBottomLeftRadius:Vt,borderBottomRightRadius:Vt,boxShadow:Il};function go(t,{layout:e,layoutId:n}){return At.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!tn[t]||t==="opacity")}function Bn(t,e,n){const s=t.style,i=e?.style,r={};if(!s)return r;for(const o in s)(j(s[o])||i&&j(i[o])||go(o,t)||n?.getValue(o)?.liveStyle!==void 0)&&(r[o]=s[o]);return r}function Bl(t){return window.getComputedStyle(t)}class Fl extends co{constructor(){super(...arguments),this.type="html",this.renderInstance=mo}readValueFromInstance(e,n){if(At.has(n))return this.projection?.isProjecting?We(n):sa(e,n);{const s=Bl(e),i=(bi(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return po(e,n)}build(e,n,s){In(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return Bn(e,n,s)}}const Ol={offset:"stroke-dashoffset",array:"stroke-dasharray"},jl={offset:"strokeDashoffset",array:"strokeDasharray"};function Nl(t,e,n=1,s=0,i=!0){t.pathLength=1;const r=i?Ol:jl;t[r.offset]=`${-s}`,t[r.array]=`${e} ${n}`}const Wl=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function yo(t,{attrX:e,attrY:n,attrScale:s,pathLength:i,pathSpacing:r=1,pathOffset:o=0,...a},u,l,c){if(In(t,a,l),u){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:h,style:f}=t;h.transform&&(f.transform=h.transform,delete h.transform),(f.transform||h.transformOrigin)&&(f.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),f.transform&&(f.transformBox=c?.transformBox??"fill-box",delete h.transformBox);for(const p of Wl)h[p]!==void 0&&(f[p]=h[p],delete h[p]);e!==void 0&&(h.x=e),n!==void 0&&(h.y=n),s!==void 0&&(h.scale=s),i!==void 0&&Nl(h,i,r,o,!1)}const vo=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"]),xo=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Ul(t,e,n,s){mo(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(vo.has(i)?i:Cn(i),e.attrs[i])}function To(t,e,n){const s=Bn(t,e,n);for(const i in t)if(j(t[i])||j(e[i])){const r=bt.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[r]=t[i]}return s}class Kl extends co{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=I}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(At.has(n)){const s=Qi(n);return s&&s.default||0}return n=vo.has(n)?n:Cn(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return To(e,n,s)}build(e,n,s){yo(e,n,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(e,n,s,i){Ul(e,n,s,i)}mount(e){this.isSVGTag=xo(e.tagName),super.mount(e)}}const $l=Ln.length;function wo(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?wo(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<$l;n++){const s=Ln[n],i=t.props[s];(It(i)||i===!1)&&(e[s]=i)}return e}function Po(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let s=0;s<n;s++)if(e[s]!==t[s])return!1;return!0}const zl=[...Rn].reverse(),Hl=Rn.length;function Gl(t){return e=>Promise.all(e.map(({animation:n,options:s})=>za(t,n,s)))}function _l(t){let e=Gl(t),n=vs(),s=!0,i=!1;const r=l=>(c,h)=>{const f=pt(t,h,l==="exit"?t.presenceContext?.custom:void 0);if(f){const{transition:p,transitionEnd:d,...m}=f;c={...c,...m,...d}}return c};function o(l){e=l(t)}function a(l){const{props:c}=t,h=wo(t.parent)||{},f=[],p=new Set;let d={},m=1/0;for(let y=0;y<Hl;y++){const T=zl[y],x=n[T],w=c[T]!==void 0?c[T]:h[T],A=It(w),V=T===l?x.isActive:null;V===!1&&(m=y);let M=w===h[T]&&w!==c[T]&&A;if(M&&(s||i)&&t.manuallyAnimateOnMount&&(M=!1),x.protectedKeys={...d},!x.isActive&&V===null||!w&&!x.prevProp||pe(w)||typeof w=="boolean")continue;if(T==="exit"&&x.isActive&&V!==!0){x.prevResolvedValues&&(d={...d,...x.prevResolvedValues});continue}const S=Xl(x.prevProp,w);let C=S||T===l&&x.isActive&&!M&&A||y>m&&A,b=!1;const R=Array.isArray(w)?w:[w];let B=R.reduce(r(T),{});V===!1&&(B={});const{prevResolvedValues:et={}}=x,Y={...et,...B},nt=F=>{C=!0,p.has(F)&&(b=!0,p.delete(F)),x.needsAnimating[F]=!0;const $=t.getValue(F);$&&($.liveStyle=!1)};for(const F in Y){const $=B[F],lt=et[F];if(d.hasOwnProperty(F))continue;let mt=!1;Ge($)&&Ge(lt)?mt=!Po($,lt)||S:mt=$!==lt,mt?$!=null?nt(F):p.add(F):$!==void 0&&p.has(F)?nt(F):x.protectedKeys[F]=!0}x.prevProp=w,x.prevResolvedValues=B,x.isActive&&(d={...d,...B}),(s||i)&&t.blockInitialAnimation&&(C=!1);const q=M&&S;C&&(!q||b)&&f.push(...R.map(F=>{const $={type:T};if(typeof F=="string"&&(s||i)&&!q&&t.manuallyAnimateOnMount&&t.parent){const{parent:lt}=t,mt=pt(lt,F);if(lt.enteringChildren&&mt){const{delayChildren:Go}=mt.transition||{};$.delay=zi(lt.enteringChildren,t,Go)}}return{animation:F,options:$}}))}if(p.size){const y={};if(typeof c.initial!="boolean"){const T=pt(t,Array.isArray(c.initial)?c.initial[0]:c.initial);T&&T.transition&&(y.transition=T.transition)}p.forEach(T=>{const x=t.getBaseTarget(T),w=t.getValue(T);w&&(w.liveStyle=!0),y[T]=x??null}),f.push({animation:y})}let g=!!f.length;return s&&(c.initial===!1||c.initial===c.animate)&&!t.manuallyAnimateOnMount&&(g=!1),s=!1,i=!1,g?e(f):Promise.resolve()}function u(l,c){if(n[l].isActive===c)return Promise.resolve();t.variantChildren?.forEach(f=>f.animationState?.setActive(l,c)),n[l].isActive=c;const h=a(l);for(const f in n)n[f].protectedKeys={};return h}return{animateChanges:a,setActive:u,setAnimateFunction:o,getState:()=>n,reset:()=>{n=vs(),i=!0}}}function Xl(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Po(e,t):!1}function ct(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function vs(){return{animate:ct(!0),whileInView:ct(),whileHover:ct(),whileTap:ct(),whileDrag:ct(),whileFocus:ct(),exit:ct()}}function en(t,e){t.min=e.min,t.max=e.max}function G(t,e){en(t.x,e.x),en(t.y,e.y)}function xs(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}const So=1e-4,Yl=1-So,ql=1+So,bo=.01,Zl=0-bo,Jl=0+bo;function W(t){return t.max-t.min}function Ql(t,e,n){return Math.abs(t-e)<=n}function Ts(t,e,n,s=.5){t.origin=s,t.originPoint=D(e.min,e.max,t.origin),t.scale=W(n)/W(e),t.translate=D(n.min,n.max,t.origin)-t.originPoint,(t.scale>=Yl&&t.scale<=ql||isNaN(t.scale))&&(t.scale=1),(t.translate>=Zl&&t.translate<=Jl||isNaN(t.translate))&&(t.translate=0)}function Et(t,e,n,s){Ts(t.x,e.x,n.x,s?s.originX:void 0),Ts(t.y,e.y,n.y,s?s.originY:void 0)}function ws(t,e,n,s=0){const i=s?D(n.min,n.max,s):n.min;t.min=i+e.min,t.max=t.min+W(e)}function tc(t,e,n,s){ws(t.x,e.x,n.x,s?.x),ws(t.y,e.y,n.y,s?.y)}function Ps(t,e,n,s=0){const i=s?D(n.min,n.max,s):n.min;t.min=e.min-i,t.max=t.min+W(e)}function ue(t,e,n,s){Ps(t.x,e.x,n.x,s?.x),Ps(t.y,e.y,n.y,s?.y)}function Ss(t,e,n,s,i){return t-=e,t=ce(t,1/n,s),i!==void 0&&(t=ce(t,1/i,s)),t}function ec(t,e=0,n=1,s=.5,i,r=t,o=t){if(Q.test(e)&&(e=parseFloat(e),e=D(o.min,o.max,e/100)-o.min),typeof e!="number")return;let a=D(r.min,r.max,s);t===r&&(a-=e),t.min=Ss(t.min,e,n,a,i),t.max=Ss(t.max,e,n,a,i)}function bs(t,e,[n,s,i],r,o){ec(t,e[n],e[s],e[i],e.scale,r,o)}const nc=["x","scaleX","originX"],sc=["y","scaleY","originY"];function As(t,e,n,s){bs(t.x,e,nc,n?n.x:void 0,s?s.x:void 0),bs(t.y,e,sc,n?n.y:void 0,s?s.y:void 0)}function Vs(t){return t.translate===0&&t.scale===1}function Ao(t){return Vs(t.x)&&Vs(t.y)}function Cs(t,e){return t.min===e.min&&t.max===e.max}function ic(t,e){return Cs(t.x,e.x)&&Cs(t.y,e.y)}function Ms(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Vo(t,e){return Ms(t.x,e.x)&&Ms(t.y,e.y)}function Ds(t){return W(t.x)/W(t.y)}function Es(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}function Z(t){return[t("x"),t("y")]}function oc(t,e,n){let s="";const i=t.x.translate/e.x,r=t.y.translate/e.y,o=n?.z||0;if((i||r||o)&&(s=`translate3d(${i}px, ${r}px, ${o}px) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:l,rotate:c,pathRotation:h,rotateX:f,rotateY:p,skewX:d,skewY:m}=n;l&&(s=`perspective(${l}px) ${s}`),c&&(s+=`rotate(${c}deg) `),h&&(s+=`rotate(${h}deg) `),f&&(s+=`rotateX(${f}deg) `),p&&(s+=`rotateY(${p}deg) `),d&&(s+=`skewX(${d}deg) `),m&&(s+=`skewY(${m}deg) `)}const a=t.x.scale*e.x,u=t.y.scale*e.y;return(a!==1||u!==1)&&(s+=`scale(${a}, ${u})`),s||"none"}const Co=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],rc=Co.length,Rs=t=>typeof t=="string"?parseFloat(t):t,Ls=t=>typeof t=="number"||P.test(t);function ac(t,e,n,s,i,r){i?(t.opacity=D(0,n.opacity??1,lc(s)),t.opacityExit=D(e.opacity??1,0,cc(s))):r&&(t.opacity=D(e.opacity??1,n.opacity??1,s));for(let o=0;o<rc;o++){const a=Co[o];let u=ks(e,a),l=ks(n,a);if(u===void 0&&l===void 0)continue;u||(u=0),l||(l=0),u===0||l===0||Ls(u)===Ls(l)?(t[a]=Math.max(D(Rs(u),Rs(l),s),0),(Q.test(l)||Q.test(u))&&(t[a]+="%")):t[a]=l}(e.rotate||n.rotate)&&(t.rotate=D(e.rotate||0,n.rotate||0,s))}function ks(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const lc=Mo(0,.5,vi),cc=Mo(.5,.95,H);function Mo(t,e,n){return s=>s<t?0:s>e?1:n(Lt(t,e,s))}function uc(t,e,n){const s=j(t)?t:Pt(t);return s.start(An("",s,e,n)),s.animation}function Bt(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n,s)}const hc=(t,e)=>t.depth-e.depth;class fc{constructor(){this.children=[],this.isDirty=!1}add(e){fn(this.children,e),this.isDirty=!0}remove(e){ee(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(hc),this.isDirty=!1,this.children.forEach(e)}}function dc(t,e){const n=N.now(),s=({timestamp:i})=>{const r=i-n;r>=e&&(rt(s),t(r-e))};return E.setup(s,!0),()=>rt(s)}function Qt(t){return j(t)?t.get():t}class pc{constructor(){this.members=[]}add(e){fn(this.members,e);for(let n=this.members.length-1;n>=0;n--){const s=this.members[n];if(s===e||s===this.lead||s===this.prevLead)continue;const i=s.instance;(!i||i.isConnected===!1)&&!s.snapshot&&(ee(this.members,s),s.unmount())}e.scheduleRender()}remove(e){if(ee(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){for(let n=this.members.indexOf(e)-1;n>=0;n--){const s=this.members[n];if(s.isPresent!==!1&&s.instance?.isConnected!==!1)return this.promote(s),!0}return!1}promote(e,n){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.updateSnapshot(),e.scheduleRender();const{layoutDependency:i}=s.options,{layoutDependency:r}=e.options;(i===void 0||i!==r)&&(e.resumeFrom=s,n&&(s.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const te={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Ae=["","X","Y","Z"],mc=1e3;let gc=0;function Ve(t,e,n,s){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),s&&(s[t]=0))}function Do(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=Yi(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:r}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",E,!(i||r))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&Do(s)}function Eo({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(o={},a=e?.()){this.id=gc++,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(xc),this.nodes.forEach(Ac),this.nodes.forEach(Vc),this.nodes.forEach(Tc)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new fc)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new pn),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const u=this.eventHandlers.get(o);u&&u.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=En(o)&&!xl(o),this.instance=o;const{layoutId:a,layout:u,visualElement:l}=this.options;if(l&&!l.current&&l.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(u||a)&&(this.isLayoutDirty=!0),t){let c,h=0;const f=()=>this.root.updateBlockedByResize=!1;E.read(()=>{h=window.innerWidth}),t(o,()=>{const p=window.innerWidth;p!==h&&(h=p,this.root.updateBlockedByResize=!0,c&&c(),c=dc(f,250),te.hasAnimatedSinceResize&&(te.hasAnimatedSinceResize=!1,this.nodes.forEach(Fs)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&l&&(a||u)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:h,hasRelativeLayoutChanged:f,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const d=this.options.transition||l.getDefaultTransition()||Rc,{onLayoutAnimationStart:m,onLayoutAnimationComplete:g}=l.getProps(),y=!this.targetLayout||!Vo(this.targetLayout,p),T=!h&&f;if(this.options.layoutRoot||this.resumeFrom||T||h&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const x={...bn(d,"layout"),onPlay:m,onComplete:g};(l.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x),this.setAnimationOrigin(c,T,x.path)}else h||Fs(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),rt(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(Cc),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Do(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const h=this.path[c];h.shouldResetTransform=!0,(typeof h.latestValues.x=="string"||typeof h.latestValues.y=="string")&&(h.isLayoutDirty=!0),h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:a,layout:u}=this.options;if(a===void 0&&!u)return;const l=this.getTransformTemplate();this.prevTransformTemplateValue=l?l(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const u=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),u&&this.nodes.forEach(Pc),this.nodes.forEach(Is);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Bs);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Sc),this.nodes.forEach(bc),this.nodes.forEach(yc),this.nodes.forEach(vc)):this.nodes.forEach(Bs),this.clearAllSnapshots();const a=N.now();O.delta=tt(0,1e3/60,a-O.timestamp),O.timestamp=a,O.isProcessing=!0,ye.update.process(O),ye.preRender.process(O),ye.render.process(O),O.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Mn.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(wc),this.sharedNodes.forEach(Mc)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,E.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){E.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!W(this.snapshot.measuredBox.x)&&!W(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 u=0;u<this.path.length;u++)this.path[u].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=I()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a&&this.instance){const u=s(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Ao(this.projectionDelta),u=this.getTransformTemplate(),l=u?u(this.latestValues,""):void 0,c=l!==this.prevTransformTemplateValue;o&&this.instance&&(a||ut(this.latestValues)||c)&&(i(this.instance,l),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let u=this.removeElementScroll(a);return o&&(u=this.removeTransform(u)),Lc(u),{animationId:this.root.animationId,measuredBox:a,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:o}=this.options;if(!o)return I();const a=o.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(kc))){const{scroll:l}=this.root;l&&(J(a.x,l.offset.x),J(a.y,l.offset.y))}return a}removeElementScroll(o){const a=I();if(G(a,o),this.scroll?.wasRoot)return a;for(let u=0;u<this.path.length;u++){const l=this.path[u],{scroll:c,options:h}=l;l!==this.root&&c&&h.layoutScroll&&(c.wasRoot&&G(a,o),J(a.x,c.offset.x),J(a.y,c.offset.y))}return a}applyTransform(o,a=!1,u){const l=u||I();G(l,o);for(let c=0;c<this.path.length;c++){const h=this.path[c];!a&&h.options.layoutScroll&&h.scroll&&h!==h.root&&(J(l.x,-h.scroll.offset.x),J(l.y,-h.scroll.offset.y)),ut(h.latestValues)&&Jt(l,h.latestValues,h.layout?.layoutBox)}return ut(this.latestValues)&&Jt(l,this.latestValues,this.layout?.layoutBox),l}removeTransform(o){const a=I();G(a,o);for(let u=0;u<this.path.length;u++){const l=this.path[u];if(!ut(l.latestValues))continue;let c;l.instance&&(Je(l.latestValues)&&l.updateSnapshot(),c=I(),G(c,l.measurePageBox())),As(a,l.latestValues,l.snapshot?.layoutBox,c)}return ut(this.latestValues)&&As(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==O.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==a;if(!(o||u&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:c,layoutId:h}=this.options;if(!this.layout||!(c||h))return;this.resolvedRelativeTargetAt=O.timestamp;const f=this.getClosestProjectingParent();f&&this.linkedParentVersion!==f.layoutVersion&&!f.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&f&&f.layout?this.createRelativeTarget(f,this.layout.layoutBox,f.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=I(),this.targetWithTransforms=I()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),tc(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):G(this.target,this.layout.layoutBox),fo(this.target,this.targetDelta)):G(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?this.createRelativeTarget(f,this.target,f.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Je(this.parent.latestValues)||ho(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(o,a,u){this.relativeParent=o,this.linkedParentVersion=o.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=I(),this.relativeTargetOrigin=I(),ue(this.relativeTargetOrigin,a,u,this.options.layoutAnchor||void 0),G(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const o=this.getLead(),a=!!this.resumingFrom||this!==o;let u=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(u=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===O.timestamp&&(u=!1),u)return;const{layout:l,layoutId:c}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(l||c))return;G(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,f=this.treeScale.y;Dl(this.layoutCorrected,this.treeScale,this.path,a),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=I());const{target:p}=o;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(xs(this.prevProjectionDelta.x,this.projectionDelta.x),xs(this.prevProjectionDelta.y,this.projectionDelta.y)),Et(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==f||!Es(this.projectionDelta.x,this.prevProjectionDelta.x)||!Es(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){if(this.options.visualElement?.scheduleRender(),o){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=xt(),this.projectionDelta=xt(),this.projectionDeltaWithTransform=xt()}setAnimationOrigin(o,a=!1,u){const l=this.snapshot,c=l?l.latestValues:{},h={...this.latestValues},f=xt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const p=I(),d=l?l.source:void 0,m=this.layout?this.layout.source:void 0,g=d!==m,y=this.getStack(),T=!y||y.members.length<=1,x=!!(g&&!T&&this.options.crossfade===!0&&!this.path.some(Ec));this.animationProgress=0;let w;const A=u?.interpolateProjection(o);this.mixTargetDelta=V=>{const M=V/1e3,S=A?.(M);S?(f.x.translate=S.x,f.x.scale=D(o.x.scale,1,M),f.x.origin=o.x.origin,f.x.originPoint=o.x.originPoint,f.y.translate=S.y,f.y.scale=D(o.y.scale,1,M),f.y.origin=o.y.origin,f.y.originPoint=o.y.originPoint):(Os(f.x,o.x,M),Os(f.y,o.y,M)),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ue(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Dc(this.relativeTarget,this.relativeTargetOrigin,p,M),w&&ic(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=I()),G(w,this.relativeTarget)),g&&(this.animationValues=h,ac(h,c,this.latestValues,M,x,T)),S&&S.rotate!==void 0&&(this.animationValues||(this.animationValues=h),this.animationValues.pathRotation=S.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=M},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(rt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=E.update(()=>{te.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Pt(0)),this.motionValue.jump(0,!1),this.currentAnimation=uc(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(mc),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:u,layout:l,latestValues:c}=o;if(!(!a||!u||!l)){if(this!==o&&this.layout&&l&&Ro(this.options.animationType,this.layout.layoutBox,l.layoutBox)){u=this.target||I();const h=W(this.layout.layoutBox.x);u.x.min=o.target.x.min,u.x.max=u.x.min+h;const f=W(this.layout.layoutBox.y);u.y.min=o.target.y.min,u.y.max=u.y.min+f}G(a,u),Jt(a,c),Et(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new pc),this.sharedNodes.get(o).add(a);const l=a.options.initialPromotionConfig;a.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){const{layoutId:o}=this.options;return o?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:o}=this.options;return o?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:u}={}){const l=this.getStack();l&&l.promote(this,u),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:u}=o;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(a=!0),!a)return;const l={};u.z&&Ve("z",o,l,this.animationValues);for(let c=0;c<Ae.length;c++)Ve(`rotate${Ae[c]}`,o,l,this.animationValues),Ve(`skew${Ae[c]}`,o,l,this.animationValues);o.render();for(const c in l)o.setStaticValue(c,l[c]),this.animationValues&&(this.animationValues[c]=l[c]);o.scheduleRender()}applyProjectionStyles(o,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const u=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=Qt(a?.pointerEvents)||"",o.transform=u?u(this.latestValues,""):"none";return}const l=this.getLead();if(!this.projectionDelta||!this.layout||!l.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=Qt(a?.pointerEvents)||""),this.hasProjected&&!ut(this.latestValues)&&(o.transform=u?u({},""):"none",this.hasProjected=!1);return}o.visibility="";const c=l.animationValues||l.latestValues;this.applyTransformsToTarget();let h=oc(this.projectionDeltaWithTransform,this.treeScale,c);u&&(h=u(c,h)),o.transform=h;const{x:f,y:p}=this.projectionDelta;o.transformOrigin=`${f.origin*100}% ${p.origin*100}% 0`,l.animationValues?o.opacity=l===this?c.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:c.opacityExit:o.opacity=l===this?c.opacity!==void 0?c.opacity:"":c.opacityExit!==void 0?c.opacityExit:0;for(const d in tn){if(c[d]===void 0)continue;const{correct:m,applyTo:g,isCSSVariable:y}=tn[d],T=h==="none"?c[d]:m(c[d],l);if(g){const x=g.length;for(let w=0;w<x;w++)o[g[w]]=T}else y?this.options.visualElement.renderState.vars[d]=T:o[d]=T}this.options.layoutId&&(o.pointerEvents=l===this?Qt(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>o.currentAnimation?.stop()),this.root.nodes.forEach(Is),this.root.sharedNodes.clear()}}}function yc(t){t.updateLayout()}function vc(t){const e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:s}=t.layout,{animationType:i}=t.options,r=e.source!==t.layout.source;if(i==="size")Z(c=>{const h=r?e.measuredBox[c]:e.layoutBox[c],f=W(h);h.min=n[c].min,h.max=h.min+f});else if(i==="x"||i==="y"){const c=i==="x"?"y":"x";en(r?e.measuredBox[c]:e.layoutBox[c],n[c])}else Ro(i,e.layoutBox,n)&&Z(c=>{const h=r?e.measuredBox[c]:e.layoutBox[c],f=W(n[c]);h.max=h.min+f,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[c].max=t.relativeTarget[c].min+f)});const o=xt();Et(o,n,e.layoutBox);const a=xt();r?Et(a,t.applyTransform(s,!0),e.measuredBox):Et(a,n,e.layoutBox);const u=!Ao(o);let l=!1;if(!t.resumeFrom){const c=t.getClosestProjectingParent();if(c&&!c.resumeFrom){const{snapshot:h,layout:f}=c;if(h&&f){const p=t.options.layoutAnchor||void 0,d=I();ue(d,e.layoutBox,h.layoutBox,p);const m=I();ue(m,n,f.layoutBox,p),Vo(d,m)||(l=!0),c.options.layoutRoot&&(t.relativeTarget=m,t.relativeTargetOrigin=d,t.relativeParent=c)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:e,delta:a,layoutDelta:o,hasLayoutChanged:u,hasRelativeLayoutChanged:l})}else if(t.isLead()){const{onExitComplete:n}=t.options;n&&n()}t.options.transition=void 0}function xc(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 Tc(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function wc(t){t.clearSnapshot()}function Is(t){t.clearMeasurements()}function Pc(t){t.isLayoutDirty=!0,t.updateLayout()}function Bs(t){t.isLayoutDirty=!1}function Sc(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function bc(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Fs(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Ac(t){t.resolveTargetDelta()}function Vc(t){t.calcProjection()}function Cc(t){t.resetSkewAndRotation()}function Mc(t){t.removeLeadSnapshot()}function Os(t,e,n){t.translate=D(e.translate,0,n),t.scale=D(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function js(t,e,n,s){t.min=D(e.min,n.min,s),t.max=D(e.max,n.max,s)}function Dc(t,e,n,s){js(t.x,e.x,n.x,s),js(t.y,e.y,n.y,s)}function Ec(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Rc={duration:.45,ease:[.4,0,.1,1]},Ns=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Ws=Ns("applewebkit/")&&!Ns("chrome/")?Math.round:H;function Us(t){t.min=Ws(t.min),t.max=Ws(t.max)}function Lc(t){Us(t.x),Us(t.y)}function Ro(t,e,n){return t==="position"||t==="preserve-aspect"&&!Ql(Ds(e),Ds(n),.2)}function kc(t){return t!==t.root&&t.scroll?.wasRoot}const Ic=Eo({attachResizeListener:(t,e)=>Bt(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Ce={current:void 0},Lo=Eo({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Ce.current){const t=new Ic({});t.mount(window),t.setOptions({layoutScroll:!0}),Ce.current=t}return Ce.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Fn=v.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function Ks(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function Bc(...t){return e=>{let n=!1;const s=t.map(i=>{const r=Ks(i,e);return!n&&typeof r=="function"&&(n=!0),r});if(n)return()=>{for(let i=0;i<s.length;i++){const r=s[i];typeof r=="function"?r():Ks(t[i],null)}}}}function Fc(...t){return v.useCallback(Bc(...t),t)}class Oc extends v.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(_t(n)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const s=n.offsetParent,i=_t(s)&&s.offsetWidth||0,r=_t(s)&&s.offsetHeight||0,o=getComputedStyle(n),a=this.props.sizeRef.current;a.height=parseFloat(o.height),a.width=parseFloat(o.width),a.top=n.offsetTop,a.left=n.offsetLeft,a.right=i-a.width-a.left,a.bottom=r-a.height-a.top,a.direction=o.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function jc({children:t,isPresent:e,anchorX:n,anchorY:s,root:i,pop:r}){const o=v.useId(),a=v.useRef(null),u=v.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:l}=v.useContext(Fn),c=t.props?.ref??t?.ref,h=Fc(a,c);return v.useInsertionEffect(()=>{const{width:f,height:p,top:d,left:m,right:g,bottom:y,direction:T}=u.current;if(e||r===!1||!a.current||!f||!p)return;const x=T==="rtl",w=n==="left"?x?`right: ${g}`:`left: ${m}`:x?`left: ${m}`:`right: ${g}`,A=s==="bottom"?`bottom: ${y}`:`top: ${d}`;a.current.dataset.motionPopId=o;const V=document.createElement("style");l&&(V.nonce=l);const M=i??document.head;return M.appendChild(V),V.sheet&&V.sheet.insertRule(`
|
|
2
2
|
[data-motion-pop-id="${o}"] {
|
|
3
3
|
position: absolute !important;
|
|
4
4
|
width: ${f}px !important;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{F as N}from"./appStore-
|
|
1
|
+
import{F as N}from"./appStore-DWP8UET9.js";import{j as o,u as z,d as i}from"./index-BM2o7PeV.js";const O=[["path",{d:"M4 11V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-1",key:"1q9hii"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M2 15h10",key:"jfw4w8"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]],ct=N("file-input",O);const F=[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]],dt=N("scroll-text",F),D="forsion-sketch";function ft(t){const e=Math.max(0,...(t.match(/`+/g)??[]).map(a=>a.length)),n="`".repeat(Math.max(3,e+1));return`${n}${D}
|
|
2
2
|
${t.replace(/\s+$/,"")}
|
|
3
3
|
${n}`}const K=`/* The sketch document is isolated. All colors inherit Forsion's current theme. */
|
|
4
4
|
html, body { margin: 0; padding: 0; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as v}from"./index-
|
|
1
|
+
import{d as v}from"./index-BM2o7PeV.js";import{ed as J,bp as ne,ag as re}from"./appStore-DWP8UET9.js";const K=/^(auto|scroll|hidden|clip)$/,M=(l,p=1)=>Number.isFinite(l)&&l>0?l:p,m=l=>`${Math.round(l*1e3)/1e3}px`;function ae({anchorRef:l,enabled:p=!0,onActivate:Y,children:Q}){const[t]=v.useState(()=>{const d=document.createElement("div");return d.className="csu-guest-surface",d.setAttribute("aria-hidden","true"),d.inert=!0,Object.assign(d.style,{position:"absolute",display:"flex",flexDirection:"column",minWidth:"0",minHeight:"0",overflow:"hidden",boxSizing:"border-box",visibility:"hidden",pointerEvents:"none",zIndex:"1"}),d}),E=v.useRef(p);E.current=p;const q=v.useRef(Y);q.current=Y;const $=v.useRef(0),I=v.useRef(null);return v.useLayoutEffect(()=>{$.current++;let d=!1,b=0,r=t.parentElement,x=null,N=!1,R=!1;const n=t.ownerDocument,a=n.defaultView,o=(i,e)=>{t.style[i]!==e&&(t.style[i]=e)},f=()=>{o("visibility","hidden"),o("pointerEvents","none"),t.inert||(t.inert=!0),t.getAttribute("aria-hidden")!=="true"&&t.setAttribute("aria-hidden","true")},D=()=>{const i=t.style.visibility==="visible"&&E.current&&!N&&!n.documentElement.hasAttribute("data-dv-dragging");o("pointerEvents",i?"auto":"none"),t.inert===i&&(t.inert=!i);const e=i?"false":"true";t.getAttribute("aria-hidden")!==e&&t.setAttribute("aria-hidden",e)},y=()=>{d||!E.current||n.hidden||t.inert||t.style.visibility!=="visible"||!l.current?.isConnected||l.current.closest('[hidden], [inert], [aria-hidden="true"]')||n.documentElement.hasAttribute("data-dv-dragging")||(R=t.contains(n.activeElement),q.current?.())},G=()=>{t.contains(n.activeElement)||(R=!1)},ee=()=>{const i=l.current;if(!i?.isConnected||(r||(r=i.closest(".shell-work")??i.closest(".shell-host")??n.body,(r===n.body||a.getComputedStyle(r).position==="static")&&o("position","fixed"),r.appendChild(t),A?.observe(r)),x!==i&&(x&&A?.unobserve(x),A?.observe(i),x=i),!E.current||n.hidden||!r.isConnected))return f(),!1;const e=i.getBoundingClientRect();if(e.width<=0||e.height<=0)return f(),!1;let g=Math.max(0,e.left),C=Math.max(0,e.top),z=Math.min(a.innerWidth,e.right),O=Math.min(a.innerHeight,e.bottom),W=1,k="";N=!1;for(let s=i;s;s=s.parentElement){const u=a.getComputedStyle(s);if(s.hidden||u.display==="none"||u.visibility==="hidden"||u.visibility==="collapse")return f(),!1;(s.inert||s.getAttribute("aria-hidden")==="true")&&(N=!0),s!==r&&!s.contains(r)&&(W*=Number.parseFloat(u.opacity||"1"));const V=/\b(paint|strict|content)\b/.test(u.contain),B=V||K.test(u.overflowX||u.overflow),X=V||K.test(u.overflowY||u.overflow);if(!B&&!X)continue;const h=s.getBoundingClientRect(),Z=M(h.width/s.offsetWidth),_=M(h.height/s.offsetHeight),j=h.left+s.clientLeft*Z,U=h.top+s.clientTop*_,te=j+s.clientWidth*Z,ie=U+s.clientHeight*_;B&&(g=Math.max(g,j),z=Math.min(z,te)),X&&(C=Math.max(C,U),O=Math.min(O,ie)),!k&&B&&X&&Math.abs(h.left-e.left)<1&&Math.abs(h.top-e.top)<1&&Math.abs(h.right-e.right)<1&&Math.abs(h.bottom-e.bottom)<1&&(k=u.borderRadius)}if(z<=g||O<=C)return f(),!1;if(W<=0)return f(),!0;const S=r.getBoundingClientRect(),F=M(re(t)),H=t.style.position==="absolute",L=H?M(S.width/r.offsetWidth,F):F,w=H?M(S.height/r.offsetHeight,F):F;return o("left",m(H?(e.left-S.left)/L-r.clientLeft+r.scrollLeft:e.left/L)),o("top",m(H?(e.top-S.top)/w-r.clientTop+r.scrollTop:e.top/w)),o("width",m(e.width/L)),o("height",m(e.height/w)),o("clipPath",`inset(${m((C-e.top)/w)} ${m((e.right-z)/L)} ${m((e.bottom-O)/w)} ${m((g-e.left)/L)})`),o("borderRadius",k),o("opacity",String(W)),o("visibility","visible"),D(),!0},T=()=>{if(b=0,d)return;const i=ee(),e=t.contains(n.activeElement),g=e&&!R;R=e,g&&y(),i&&(b=a.requestAnimationFrame(T))},c=()=>{!d&&!b&&(b=a.requestAnimationFrame(T))},A=typeof ResizeObserver>"u"?null:new ResizeObserver(c),P=new MutationObserver(i=>{i.some(e=>e.target===n.documentElement&&e.attributeName==="data-dv-dragging")&&D(),i.some(e=>!t.contains(e.target))&&c()});return P.observe(n.documentElement,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["style","class","hidden","inert","aria-hidden","data-dv-dragging"]}),a.addEventListener("resize",c),n.addEventListener("scroll",c,!0),n.addEventListener("visibilitychange",c),a.addEventListener(J,c),t.addEventListener("focus",y,!0),t.addEventListener("pointerdown",y,!0),n.addEventListener("focus",G,!0),I.current=()=>{E.current||f(),c()},T(),()=>{d=!0,b&&a.cancelAnimationFrame(b),A?.disconnect(),P.disconnect(),a.removeEventListener("resize",c),n.removeEventListener("scroll",c,!0),n.removeEventListener("visibilitychange",c),a.removeEventListener(J,c),t.removeEventListener("focus",y,!0),t.removeEventListener("pointerdown",y,!0),n.removeEventListener("focus",G,!0),I.current=null,f();const i=++$.current;queueMicrotask(()=>{$.current===i&&t.remove()})}},[l,t]),v.useLayoutEffect(()=>{I.current?.()},[p]),ne.createPortal(Q,t)}export{ae as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as B,d as c,j as o,r as O}from"./index-
|
|
1
|
+
import{u as B,d as c,j as o,r as O}from"./index-BM2o7PeV.js";import{A as P}from"./astryxBridge-D-m4_kYt.js";import{iX as R,js as _,j4 as F,jt as K,ju as z,dl as U,jv as V,jw as Y,aq as q,c5 as W,jx as X,jr as G,aD as J,jk as Q,jd as Z,jy as ee,ag as te}from"./appStore-DWP8UET9.js";import{a as oe,p as se}from"./mdMarkStore-DQHDjG7s.js";import{E as ae}from"./EventCard-B_ndpqH_.js";import"./client-0MPbodA6.js";import{C as E}from"./CheckboxInput-BC-5a_C9.js";import"./nativeDownload-BYT082bY.js";import"./ipc-CxAyeo8q.js";import"./mdMarks-DbIcRa0O.js";import"./Tooltip-ZxrDqN4p.js";O({"todolist.title":{zh:"待办",en:"To-dos"},"todolist.untitled":{zh:"未命名",en:"Untitled"},"todolist.done":{zh:"已完成",en:"Completed"},"todolist.openInNote":{zh:"在笔记中打开",en:"Open in note"},"todolist.clickToEdit":{zh:"点击编辑",en:"Click to edit"},"todolist.addPlaceholder":{zh:"新建待办",en:"New to-do"},"todolist.allDone":{zh:"全部完成了。",en:"All done."},"todolist.emptyTitle":{zh:"还没有待办。",en:"No to-dos yet."},"todolist.emptyHintA":{zh:"在笔记里写 ",en:"Write "},"todolist.emptyExample":{zh:"- [ ] 事项 @2026-09-01",en:"- [ ] Task @2026-09-01"},"todolist.emptyHintB":{zh:"(打 ",en:" in a note (type "},"todolist.emptyHintC":{zh:" 有候选),或在下面直接加一条。",en:" for suggestions), or add one below."},"todolist.emptyHintCNoAdd":{zh:" 有候选)。",en:" for suggestions)."}});const M="done";function ne(h){const l=i=>typeof i=="string"?i:typeof i=="number"?String(i):"",n=l(h?.src);return{db:l(h?.db)||void 0,src:n==="db"||n==="md"?n:"all"}}function be({params:h}={}){const l=ne(h),{t:n}=B(),i=R(),C=oe(),[I,T]=c.useState(new Set([..._,M])),[m,k]=c.useState(null),[N,b]=c.useState(""),x=c.useMemo(()=>F(new Date),[]),u=c.useMemo(()=>i.filter(e=>e.checkboxCol&&(!l.db||e.db.path===l.db)),[i,l.db]),r=c.useMemo(()=>{const e=[];if(l.src!=="md")for(const t of u){const s=t.checkboxCol;for(const a of t.db.rows){const d=typeof a.cells[t.dateCol]=="string"?a.cells[t.dateCol]:"";e.push({key:`db:${t.db.path}:${a.rowId}`,name:a.name||n("todolist.untitled"),checked:a.cells[s]===!0,raw:d,source:t.db.name,db:t,rowId:a.rowId})}}if(l.src!=="db"&&!l.db)for(const t of C.filter(s=>s.isTask))e.push({key:`md:${t.path}:${t.line}`,name:t.text,checked:t.checked,raw:t.due,source:t.heading?`${t.title} › ${t.heading}`:t.title,note:{path:t.path,heading:t.heading},mark:t});return e},[u,C,l.src,l.db,n]),f=c.useMemo(()=>r.filter(e=>e.checked),[r]),D=c.useMemo(()=>{const e=new Map;for(const t of r){if(t.checked)continue;const s=K(t.raw,x),a=e.get(s);a?a.push(t):e.set(s,[t])}for(const t of e.values())t.sort((s,a)=>{const d=z(s.raw),v=z(a.raw);return(d===v?0:d<v?-1:1)||s.source.localeCompare(a.source,"zh")||s.name.localeCompare(a.name,"zh")});return e},[r,x]),g=r.length-f.length,A=e=>T(t=>{const s=new Set(t);return s.has(e)?s.delete(e):s.add(e),s}),w=c.useMemo(()=>{if(!m)return null;const e=u.find(a=>a.db.path===m.dbPath),t=e?.db.rows.find(a=>a.rowId===m.rowId);if(!e||!t)return null;const s=typeof t.cells[e.dateCol]=="string"?t.cells[e.dateCol]:"";return{db:e.db,row:t,colId:e.dateCol,title:t.name,raw:s}},[m,u]),p=c.useMemo(()=>u.find(e=>!e.db.readonly&&!e.db.isNoteView),[u]),H=()=>{const e=N.trim();!e||!p||(Q(p.db,p.dateCol,Z(x,!0),e),b(""))},$=(e,t)=>{if(e.note){ee(e.note.path,e.note.heading);return}if(!e.db||!e.rowId)return;const s=t.currentTarget.getBoundingClientRect();k({dbPath:e.db.db.path,rowId:e.rowId,at:{left:s.left,top:s.top,right:s.right,bottom:s.bottom,zoom:te(t.currentTarget)||1}})},S=!!U?.patchMark,j=e=>{const t=X(e.raw,x);return o.jsxs("li",{className:"amx-todo-item",children:[e.db&&e.rowId?o.jsx(E,{label:e.name,isLabelHidden:!0,size:"sm",value:e.checked,onChange:s=>G(e.db.db,e.rowId,e.db.checkboxCol,s?!0:void 0)}):e.mark&&S?o.jsx(E,{label:e.name,isLabelHidden:!0,size:"sm",value:e.checked,onChange:s=>se(e.mark,{checked:s})}):o.jsx("span",{className:`amx-todo-box${e.checked?" on":""}`,"aria-hidden":"true"}),o.jsxs("button",{className:"amx-todo-main",title:e.note?n("todolist.openInNote"):n("todolist.clickToEdit"),onClick:s=>$(e,s),children:[o.jsx("span",{className:`amx-todo-name${e.checked?" done":""}`,children:e.name}),e.raw?o.jsx("span",{className:`amx-todo-due ${t.tone}`,children:t.label}):null,e.note?o.jsx(J,{className:"amx-todo-jump",size:12}):null]})]},e.key)},L=(e,t)=>{if(e!=="undated")return o.jsx("ul",{className:"amx-todo-list",children:t.map(j)});const s=[];for(const a of t){const d=s[s.length-1];d&&d.source===a.source?d.items.push(a):s.push({source:a.source,items:[a]})}return o.jsx(o.Fragment,{children:s.map(a=>o.jsxs("div",{children:[o.jsxs("div",{className:"amx-todo-src",children:[a.source,o.jsx("span",{className:"amx-todo-srcn",children:a.items.length})]}),o.jsx("ul",{className:"amx-todo-list",children:a.items.map(j)})]},a.source))})},y=(e,t,s,a)=>{const d=!I.has(e);return o.jsxs("section",{className:"amx-todo-group",children:[o.jsxs("button",{className:`amx-todo-ghead${d?" is-open":""}`,onClick:()=>A(e),"aria-expanded":d,children:[o.jsx(W,{className:"amx-todo-caret",size:12}),o.jsx("span",{className:"amx-todo-gname",children:t}),o.jsx("span",{className:"amx-todo-gcount",children:s.length})]}),o.jsx("div",{className:`amx-todo-reveal${d?" is-open":""}`,children:o.jsx("div",{className:"amx-todo-reveal-in",children:a})})]},e)};return o.jsx(P,{children:o.jsxs("div",{className:"amx-todo",children:[o.jsxs("div",{className:"amx-todo-bar",children:[o.jsx("span",{className:"amx-todo-title",children:n("todolist.title")}),g>0&&o.jsx("span",{className:"amx-todo-total",children:g})]}),r.length===0&&o.jsxs("div",{className:"amx-todo-empty",children:[n("todolist.emptyTitle"),!h?.miniSurface&&o.jsxs(o.Fragment,{children:[o.jsx("br",{}),n("todolist.emptyHintA"),o.jsx("code",{children:n("todolist.emptyExample")}),n("todolist.emptyHintB"),o.jsx("code",{children:"@"}),n(p?"todolist.emptyHintC":"todolist.emptyHintCNoAdd")]})]}),r.length>0&&g===0&&o.jsx("div",{className:"amx-todo-empty",children:n("todolist.allDone")}),V.map(e=>{const t=D.get(e);return t&&t.length?y(e,Y[e],t,L(e,t)):null}),f.length>0&&y(M,n("todolist.done"),f,o.jsx("ul",{className:"amx-todo-list",children:f.map(j)})),p&&o.jsxs("div",{className:"amx-todo-add",children:[o.jsx(q,{className:"amx-todo-addicon",size:13}),o.jsx("input",{className:"amx-todo-addinput",placeholder:n("todolist.addPlaceholder"),value:N,onChange:e=>b(e.target.value),onKeyDown:e=>{e.nativeEvent.isComposing||(e.key==="Enter"&&(e.preventDefault(),H()),e.key==="Escape"&&b(""))}})]}),w&&m&&o.jsx(ae,{ev:w,at:m.at,onClose:()=>k(null)})]})})}export{be as TodoListView,ne as readTodoParams};
|