1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1],{3329:(e,t,n)=>{"use strict";function r(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return Array.from(new Set(t.flatMap(e=>"string"==typeof e?e.split(" "):[]))).filter(Boolean).join(" ")}n.d(t,{x:()=>r})},3716:(e,t,n)=>{"use strict";function r(){let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent}n.d(t,{$t:()=>r})},3791:(e,t,n)=>{"use strict";n.d(t,{El:()=>a,O_:()=>o,Uw:()=>s});var r=n(7620);let i=(0,r.createContext)(null);i.displayName="OpenClosedContext";var s=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(s||{});function o(){return(0,r.useContext)(i)}function a(e){let{value:t,children:n}=e;return r.createElement(i.Provider,{value:t},n)}},9989:(e,t,n)=>{"use strict";n.d(t,{e:()=>A});var r=n(7620),i=n(53604),s=n(35919),o=n(89109),a=n(98846),l=n(58479),u=n(83987),c=n(47324),d=n(3791),h=n(3329),f=n(99901),p=n(11964);function m(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||(null!=(t=e.as)?t:w)!==r.Fragment||1===r.Children.count(e.children)}let v=(0,r.createContext)(null);v.displayName="TransitionContext";var g=(e=>(e.Visible="visible",e.Hidden="hidden",e))(g||{});let y=(0,r.createContext)(null);function b(e){return"children"in e?b(e.children):e.current.filter(e=>{let{el:t}=e;return null!==t.current}).filter(e=>{let{state:t}=e;return"visible"===t}).length>0}function x(e,t){let n,l=(0,a.Y)(e),u=(0,r.useRef)([]),c=(n=(0,r.useRef)(!1),(0,o.s)(()=>(n.current=!0,()=>{n.current=!1}),[]),n),d=(0,i.L)(),h=(0,s._)(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.mK.Hidden,n=u.current.findIndex(t=>{let{el:n}=t;return n===e});-1!==n&&((0,f.Y)(t,{[p.mK.Unmount](){u.current.splice(n,1)},[p.mK.Hidden](){u.current[n].state="hidden"}}),d.microTask(()=>{var e;!b(u)&&c.current&&(null==(e=l.current)||e.call(l))}))}),m=(0,s._)(e=>{let t=u.current.find(t=>{let{el:n}=t;return n===e});return t?"visible"!==t.state&&(t.state="visible"):u.current.push({el:e,state:"visible"}),()=>h(e,p.mK.Unmount)}),v=(0,r.useRef)([]),g=(0,r.useRef)(Promise.resolve()),y=(0,r.useRef)({enter:[],leave:[]}),x=(0,s._)((e,n,r)=>{v.current.splice(0),t&&(t.chains.current[n]=t.chains.current[n].filter(t=>{let[n]=t;return n!==e})),null==t||t.chains.current[n].push([e,new Promise(e=>{v.current.push(e)})]),null==t||t.chains.current[n].push([e,new Promise(e=>{Promise.all(y.current[n].map(e=>{let[t,n]=e;return n})).then(()=>e())}
1)]),"enter"===n?g.current=g.current.then(()=>null==t?void 0:t.wait.current).then(()=>r(n)):r(n)}),w=(0,s._)((e,t,n)=>{Promise.all(y.current[t].splice(0).map(e=>{let[t,n]=e;return n})).then(()=>{var e;null==(e=v.current.shift())||e()}).then(()=>n(t))});return(0,r.useMemo)(()=>({children:u,register:m,unregister:h,onStart:x,onStop:w,wait:g,chains:y}),[m,h,u,x,w,y,g])}y.displayName="NestingContext";let w=r.Fragment,E=p.Ac.RenderStrategy,P=(0,p.FX)(function(e,t){let{show:n,appear:i=!1,unmount:a=!0,...c}=e,h=(0,r.useRef)(null),f=m(e),g=(0,u.P)(...f?[h,t]:null===t?[]:[t]);(0,l.g)();let w=(0,d.O_)();if(void 0===n&&null!==w&&(n=(w&d.Uw.Open)===d.Uw.Open),void 0===n)throw Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[P,S]=(0,r.useState)(n?"visible":"hidden"),A=x(()=>{n||S("hidden")}),[C,M]=(0,r.useState)(!0),F=(0,r.useRef)([n]);(0,o.s)(()=>{!1!==C&&F.current[F.current.length-1]!==n&&(F.current.push(n),M(!1))},[F,n]);let k=(0,r.useMemo)(()=>({show:n,appear:i,initial:C}),[n,i,C]);(0,o.s)(()=>{n?S("visible"):b(A)||null===h.current||S("hidden")},[n,A]);let D={unmount:a},R=(0,s._)(()=>{var t;C&&M(!1),null==(t=e.beforeEnter)||t.call(e)}),L=(0,s._)(()=>{var t;C&&M(!1),null==(t=e.beforeLeave)||t.call(e)}),I=(0,p.Ci)();return r.createElement(y.Provider,{value:A},r.createElement(v.Provider,{value:k},I({ourProps:{...D,as:r.Fragment,children:r.createElement(T,{ref:g,...D,...c,beforeEnter:R,beforeLeave:L})},theirProps:{},defaultTag:r.Fragment,features:E,visible:"visible"===P,name:"Transition"})))}),T=(0,p.FX)(function(e,t){var n,i;let{transition:a=!0,beforeEnter:g,afterEnter:P,beforeLeave:T,afterLeave:S,enter:A,enterFrom:C,enterTo:M,entered:F,leave:k,leaveFrom:D,leaveTo:R,...L}=e,[I,j]=(0,r.useState)(null),O=(0,r.useRef)(null),V=m(e),_=(0,u.P)(...V?[O,t,j]:null===t?[]:[t]),N=null==(n=L.unmount)||n?p.mK.Unmount:p.mK.Hidden,{show:B,appear:U,initial:H}=function(){let e=(0,r.useContext)(v);if(null===e)throw Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[W,Y]=(0,r.useState)(B?"visible":"hidden"),$=function(){let e=(0,r.useContext)(y);if(null===e)throw Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:K,unregister:X}=$;(0,o.s)(()=>K(O),[K,O]),(0,o.s)(()=>{if(N===p.mK.Hidden&&O.current)return B&&"visible"!==W?void Y("visible"):(0,f.Y)(W,{hidden:()=>X(O),visible:()=>K(O)})},[W,O,K,X,B,N]);let q=(0,l.g)();(0,o.s)(()=>{if(V&&q&&"visible"===W&&null===O.current)throw Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[O,W,q,V]);let z=H&&!U,G=U&&B&&H,Z=(0,r.useRef)(!1),J=x(()=>{Z.current||(Y("hidden"),X(O))},$),Q=(0,s._)(e=>{Z.current=!0,J.onStart(O,e?"enter":"leave",e=>{"enter"===e?null==g||g():"leave"===e&&(null==T||T())})}),ee=(0,s._)(e=>{let t=e?"enter":"leave";Z.current=!1,J.onStop(O,t,e=>{"enter"===e?null==P||P():"leave"===e&&(null==S||S())}),"leave"!==t||b(J)||(Y("hidden"),X(O))});(0,r.useEffect)(()=>{V&&a||(Q(B),ee(B))},[B,V,a]);let et=!(!a||!V||!q||z),[,en]=(0,c.p)(et,I,B,{start:Q,end:ee}),er=(0,p.oE)({ref:_,className:(null==(i=(0,h.x)(L.className,G&&A,G&&C,en.enter&&A,en.enter&&en.closed&&C,en.enter&&!en.closed&&M,en.leave&&k,en.leave&&!en.closed&&D,en.leave&&en.closed&&R,!en.transition&&B&&F))?void 0:i.trim())||void 0,...(0,c.B)(en)}),ei=0;"visible"===W&&(ei|=d.Uw.Open),"hidden"===W&&(ei|=d.Uw.Closed),en.enter&&(ei|=d.Uw.Opening),en.leave&&(ei|=d.Uw.Closing);let es=(0,p.Ci)();return r.createElement(y.Provider,{value:J},r.createElement(d.El,{value:ei},es({ourProps:er,theirProps:L,defaultTag:w,features:E,visible:"visible"===W,name:"Transition.Child"})))}),S=(0,p.FX)(function(e,t){let n=null!==(0,r.useContext)(v),i=null!==(0,d.O_)();return r.createElement(r.Fragment,null,!n&&i?r.createElement(P,{ref:t,...e}):r.createElement(T,{ref:t,...e}))}),A=Object.assign(P,{Child:S,Root:P})},10614:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(92068).A)("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]])},11961:(e,t,n)=>{"use strict";let r;
1Object.defineProperty(t,"__esModule",{value:!0}),t.GoogleAnalytics=function(e){let{gaId:t,debugMode:n,dataLayerName:a="dataLayer",nonce:l}=e;return void 0===r&&(r=a),(0,s.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-ga"}})},[]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.default,{id:"_next-ga-init",dangerouslySetInnerHTML:{__html:"\n window['".concat(a,"'] = window['").concat(a,"'] || [];\n function gtag(){window['").concat(a,"'].push(arguments);}\n gtag('js', new Date());\n\n gtag('config', '").concat(t,"' ").concat(n?",{ 'debug_mode': true }":"",");")},nonce:l}),(0,i.jsx)(o.default,{id:"_next-ga",src:"https://www.googletagmanager.com/gtag/js?id=".concat(t),nonce:l})]})},t.sendGAEvent=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(void 0===r)return void console.warn("@next/third-parties: GA has not been initialized");window[r]?window[r].push(arguments):console.warn("@next/third-parties: GA dataLayer ".concat(r," does not exist"))};let i=n(54568),s=n(7620),o=function(e){return e&&e.__esModule?e:{default:e}}(n(23792))},11964:(e,t,n)=>{"use strict";n.d(t,{Ac:()=>o,Ci:()=>l,FX:()=>f,mK:()=>a,oE:()=>p,v6:()=>h});var r=n(7620),i=n(3329),s=n(99901),o=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(o||{}),a=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(a||{});function l(){let e,t,n=(e=(0,r.useRef)([]),t=(0,r.useCallback)(t=>{for(let n of e.current)null!=n&&("function"==typeof n?n(t):n.current=t)},[]),function(){for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];if(!r.every(e=>null==e))return e.current=r,t});return(0,r.useCallback)(e=>(function(e){let{ourProps:t,theirProps:n,slot:r,defaultTag:i,features:o,visible:a=!0,name:l,mergeRefs:h}=e;h=null!=h?h:c;let f=d(n,t);if(a)return u(f,r,i,l,h);let p=null!=o?o:0;if(2&p){let{static:e=!1,...t}=f;if(e)return u(t,r,i,l,h)}if(1&p){let{unmount:e=!0,...t}=f;return(0,s.Y)(+!e,{0:()=>null,1:()=>u({...t,hidden:!0,style:{display:"none"}},r,i,l,h)})}return u(f,r,i,l,h)})({mergeRefs:n,...e}),[n])}function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,s=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,{as:a=n,children:l,refName:u="ref",...c}=m(e,["unmount","static"]),h=void 0!==e.ref?{[u]:e.ref}:{},f="function"==typeof l?l(t):l;"className"in c&&c.className&&"function"==typeof c.className&&(c.className=c.className(t)),c["aria-labelledby"]&&c["aria-labelledby"]===c.id&&(c["aria-labelledby"]=void 0);let v={};if(t){let e=!1,n=[];for(let[r,i]of Object.entries(t))"boolean"==typeof i&&(e=!0),!0===i&&n.push(r.replace(/([A-Z])/g,e=>"-".concat(e.toLowerCase())));if(e)for(let e of(v["data-headlessui-state"]=n.join(" "),n))v["data-".concat(e)]=""}if(a===r.Fragment&&(Object.keys(p(c)).length>0||Object.keys(p(v)).length>0))if(!(0,r.isValidElement)(f)||Array.isArray(f)&&f.length>1){if(Object.keys(p(c)).length>0)throw Error(['Passing props on "Fragment"!\n',"The current component <".concat(s,' /> is rendering a "Fragment".'),"However we need to passthrough the following props:",Object.keys(p(c)).concat(Object.keys(p(v))).map(e=>" - ".concat(e)).join("\n"),"\nYou can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(e=>" - ".concat(e)).join("\n")].join("\n"))}else{var g;let e=f.props,t=null==e?void 0:e.className,n="function"==typeof t?function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return(0,i.x)(t(...n),c.className)}:(0,i.x)(t,c.className),s=d(f.props,p(m(c,["ref"])));for(let e in v)e in s&&delete v[e];return(0,r.cloneElement)(f,Object.assign({},s,v,h,{ref:o((g=f,r.version.split(".")[0]>="19"?g.props.ref:g.ref),h.ref)},n?{className:n}:{}))}return(0,r.createElement)(a,Object.assign({},m(c,["ref"]),a!==r.Fragment&&h,a!==r.Fragment&&v),f)}function c(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.every(e=>null==e)?void 0:e=>{for(let n of t)null!=n&&("function"==typeof n?n(e):n.current=e)}}function d(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(0===t.length)return{};if(1===t.length)return t[0];let r={},i={};for(let e of t)for(let t in e)t.startsWith("on")&&"function"==typeof e[t]?(null!=i[t]||(i[t]=[]),i[t].push(e[t])):r[t]=e[t];if(r.disabled||r["aria-disabled"])for(let e in i)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(e)&&(i[e]=[e=>{var t;return null==(t=null==e?void 0:e.preventDefault)?void 0:t.call(e)}]);for(let e in i)Object.assign(r,{[e](t){for(var n=arguments.length,r=Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];for(let n of i[e]){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;n(t,...r)}}});return r}function h(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(0===t.length)return{};if(1===t.length)return t[0];let r={},i={};for(let e of t)for(let t in e)t.startsWith("on")&&"function"==typeof e[t]?(null!=i[t]||(i[t]=[]),i[t].push(e[t])):r[t]=e[t];for(let e in i)Object.assign(r,{[e](){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];for(let t of i[e])null==t||t(...n)}});return r}function f(e){var t;return Object.assign((0,r.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function p(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function m(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}},12494:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(92068).A)("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},13166:(e,t)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ESCAPE_REGEX:function(){return r},htmlEscapeAttributeString:function(){return a},htmlEscapeJsonString:function(){return o}});let n={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},r=/[&><\u2028\u2029]/g,i={"&":"&",'"':""","'":"'","<":"<",">":">"},s=/[&"'<>]/g;function o(e){return e.replace(r,e=>n[e])}function a(e){return e.replace(s,e=>i[e])}},14425:(e,t,n)=>{"use strict";n.d(t,{sf:()=>a,so:()=>o});var r=n(89211),i=n(7620),s=(0,i.createContext)({client:r.Ay});function o(e){var t=e.children,n=e.client,o=e.apiKey,a=e.options,l=(0,i.useState)(!1),u=l[0],c=l[1],d=(0,i.useMemo)(function(){return n?(o&&console.warn("[PostHog.js] You have provided both `client` and `apiKey` to `PostHogProvider`. `apiKey` will be ignored in favour of `client`."),a&&console.warn("[PostHog.js] You have provided both `client` and `options` to `PostHogProvider`. `options` will be ignored in favour of `client`."),n.__loaded&&console.warn("[PostHog.js] `client` was already loaded elsewhere. This may cause issues."),n):o?(!1!==u?(o!==u.previousAPIKey&&console.warn("[PostHog.js] You have provided a different `apiKey` to `PostHogProvider` than the one that was already initialized. This is not supported by our provider and we'll keep using the previous key. If you need to toggle between API Keys you need to control the `client` yourself and pass it in as a prop rather than an `apiKey` prop."),a&&!function e(t,n,r){if(void 0===r&&(r=new WeakMap),t===n)return!0;if("object"!=typeof t||null===t||"object"!=typeof n||null===n)return!1;if(r.has(t)&&r.get(t)===n)return!0;r.set(t,n);var i=Object.keys(t),s=Object.keys(n);if(i.length!==s.length)return!1;for(var o=0;o<i.length;o++){var a=i[o];if(!s.includes(a)||!e(t[a],n[a],r))return!1}return!0}(a,u.previousOptions)&&r.Ay.set_config(a)):(r.Ay.__loaded&&console.warn("[PostHog.js] `posthog` was already loaded elsewhere. This may cause issues."),r.Ay.init(o,a)),c({previousAPIKey:o,previousOptions:null!=a?a:{}}),r.Ay):(console.warn("[PostHog.js] No `apiKey` or `client` were provided to `PostHogProvider`. Using default global `window.posthog` instance. You must initialize it manually. This is not recommended behavior."),r.Ay)},[n,o,JSON.stringify(a)]);return i.createElement(s.Provider,{value:{client:d}},t)}var a=function(){return(0,i.useContext)(s).client}},19134:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(92068).A)("EllipsisVertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]])},23792:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i.a});var r=n(45165),i=n.n(r),s={};for(let e in r)"default"!==e&&(s[e]=()=>r[e]);n.d(t,s)},27241:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sendGTMEvent=void 0,t.GoogleTagManager=function(e){let{gtmId:t,gtmScriptUrl:n="https://www.googletagmanager.com/gtm.js",dataLayerName:a="dataLayer",auth:l,preview:u,dataLayer:c,nonce:d}=e;o=a;let h="dataLayer"!==a?"&l=".concat(a):"";return(0,i.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-gtm"}})},[]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.default,{id:"_next-gtm-init",dangerouslySetInnerHTML:{__html:"\n (function(w,l){\n w[l]=w[l]||[];\n w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});\n ".concat(c?"w[l].push(".concat(JSON.stringify(c),")"):"","\n })(window,'").concat(a,"');")},nonce:d}),(0,r.jsx)(s.default,{id:"_next-gtm","data-ntpc":"GTM",src:"".concat(n,"?id=").concat(t).concat(h).concat(l?">m_auth=".concat(l):"").concat(u?">m_preview=".concat(u,">m_cookies_win=x"):""),nonce:d})]})};let r=n(54568),i=n(7620),s=function(e){return e&&e.__esModule?e:{default:e}}(n(23792)),o="dataLayer";t.sendGTMEvent=(e,t)=>{let n=t||o;window[n]=window[n]||[],window[n].push(e)}},31534:(e,t,n)=>{"use strict";function r(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&((null==(t=window.navigator.userAgentData)?void 0:t.brands.some(t=>e.test(t.brand)))||e.test(window.navigator.userAgent))}function i(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null==(t=window.navigator.userAgentData)?void 0:t.platform)||window.navigator.platform)}function s(e){let t=null;return()=>(null==t&&(t=e()),t)}n.d(t,{W1:()=>tn,IU:()=>e7,Dr:()=>tt,c:()=>te});let o=s(function(){return i(/^Mac/i)}),a=s(function(){return i(/^iPhone/i)}),l=s(function(){return i(/^iPad/i)||o()&&navigator.maxTouchPoints>1}),u=s(function(){return a()||l()});s(function(){return o()||u()}
1),s(function(){return r(/AppleWebKit/i)&&!c()});let c=s(function(){return r(/Chrome/i)}),d=s(function(){return r(/Android/i)});s(function(){return r(/Firefox/i)});let h=e=>{var t;return null!=(t=null==e?void 0:e.ownerDocument)?t:document},f=e=>e&&"window"in e&&e.window===e?e:h(e).defaultView||window;var p=n(7620);let m=null,v=new Set,g=new Map,y=!1,b=!1,x={Tab:!0,Escape:!0};function w(e,t){for(let n of v)n(e,t)}function E(e){y=!0,e.metaKey||!o()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key||(m="keyboard",w("keyboard",e))}function P(e){m="pointer",("mousedown"===e.type||"pointerdown"===e.type)&&(y=!0,w("pointer",e))}function T(e){(0===e.mozInputSource&&e.isTrusted||(d()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType))&&(y=!0,m="virtual")}function S(e){e.target!==window&&e.target!==document&&(y||b||(m="virtual",w("virtual",e)),y=!1,b=!1)}function A(){y=!1,b=!0}function C(e){if("undefined"==typeof window||g.get(f(e)))return;let t=f(e),n=h(e),r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){y=!0,r.apply(this,arguments)},n.addEventListener("keydown",E,!0),n.addEventListener("keyup",E,!0),n.addEventListener("click",T,!0),t.addEventListener("focus",S,!0),t.addEventListener("blur",A,!1),"undefined"!=typeof PointerEvent?(n.addEventListener("pointerdown",P,!0),n.addEventListener("pointermove",P,!0),n.addEventListener("pointerup",P,!0)):(n.addEventListener("mousedown",P,!0),n.addEventListener("mousemove",P,!0),n.addEventListener("mouseup",P,!0)),t.addEventListener("beforeunload",()=>{M(e)},{once:!0}),g.set(t,{focus:r})}let M=(e,t)=>{let n=f(e),r=h(e);t&&r.removeEventListener("DOMContentLoaded",t),g.has(n)&&(n.HTMLElement.prototype.focus=g.get(n).focus,r.removeEventListener("keydown",E,!0),r.removeEventListener("keyup",E,!0),r.removeEventListener("click",T,!0),n.removeEventListener("focus",S,!0),n.removeEventListener("blur",A,!1),"undefined"!=typeof PointerEvent?(r.removeEventListener("pointerdown",P,!0),r.removeEventListener("pointermove",P,!0),r.removeEventListener("pointerup",P,!0)):(r.removeEventListener("mousedown",P,!0),r.removeEventListener("mousemove",P,!0),r.removeEventListener("mouseup",P,!0)),g.delete(n))};function F(){return"pointer"!==m}"undefined"!=typeof document&&function(e){let t,n=h(void 0);"loading"!==n.readyState?C(void 0):(t=()=>{C(e)},n.addEventListener("DOMContentLoaded",t)),()=>M(e,t)}();let k=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),D="undefined"!=typeof document?p.useLayoutEffect:()=>{};class R{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,t){this.nativeEvent=t,this.target=t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=e}}function L(e){let t=(0,p.useRef)({isFocused:!1,observer:null});D(()=>{let e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]);let n=function(e){let t=(0,p.useRef)(null);return D(()=>{t.current=e},[e]),(0,p.useCallback)((...e)=>{let n=t.current;return null==n?void 0:n(...e)},[])}(t=>{null==e||e(t)});return(0,p.useCallback)(e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=e.target;r.addEventListener("focusout",e=>{t.current.isFocused=!1,r.disabled&&n(new R("blur",e)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&r.disabled){var e;null==(e=t.current.observer)||e.disconnect();let n=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n}))}}),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let I=!1,j=0;function O(){I=!0,setTimeout(()=>{I=!1},50)}function V(e){"touch"===e.pointerType&&O()}function _(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",V):document.addEventListener("touchend",O),j++,()=>{--j>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",V):document.removeEventListener("touchend",O))}}var N=n(97509),B=n(61443);function U(e){return B._.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}
1var H=n(53604),W=n(35919),Y=n(89109),$=n(71019);class K extends Map{get(e){let t=super.get(e);return void 0===t&&(t=this.factory(e),this.set(e,t)),t}constructor(e){super(),this.factory=e}}function X(e,t){let n=e(),r=new Set;return{getSnapshot:()=>n,subscribe:e=>(r.add(e),()=>r.delete(e)),dispatch(e){for(var i=arguments.length,s=Array(i>1?i-1:0),o=1;o<i;o++)s[o-1]=arguments[o];let a=t[e].call(n,...s);a&&(n=a,r.forEach(e=>e()))}}}function q(e){return(0,p.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot)}let z=new K(()=>X(()=>[],{ADD(e){return this.includes(e)?this:[...this,e]},REMOVE(e){let t=this.indexOf(e);if(-1===t)return this;let n=this.slice();return n.splice(t,1),n}}));function G(e,t){let n=z.get(t),r=(0,p.useId)(),i=q(n);if((0,Y.s)(()=>{if(e)return n.dispatch("ADD",r),()=>n.dispatch("REMOVE",r)},[n,e]),!e)return!1;let s=i.indexOf(r),o=i.length;return -1===s&&(s=o,o+=1),s===o-1}let Z=new Map,J=new Map;function Q(e){var t;let n=null!=(t=J.get(e))?t:0;return J.set(e,n+1),0!==n||(Z.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0),()=>(function(e){var t;let n=null!=(t=J.get(e))?t:1;if(1===n?J.delete(e):J.set(e,n-1),1!==n)return;let r=Z.get(e);r&&(null===r["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,Z.delete(e))})(e)}var ee=n(98846),et=n(99901);let en=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>"".concat(e,":not([tabindex='-1'])")).join(","),er=["[data-autofocus]"].map(e=>"".concat(e,":not([tabindex='-1'])")).join(",");var ei=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e[e.AutoFocus=64]="AutoFocus",e))(ei||{}),es=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(es||{}),eo=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(eo||{});function ea(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return null==e?[]:Array.from(e.querySelectorAll(en)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}var el=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(el||{});function eu(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e!==(null==(t=U(e))?void 0:t.body)&&(0,et.Y)(n,{0:()=>e.matches(en),1(){let t=e;for(;null!==t;){if(t.matches(en))return!0;t=t.parentElement}return!1}})}function ec(e){let t=U(e);(0,$.e)().nextFrame(()=>{var n;t&&!eu(t.activeElement,0)&&(null==(n=e)||n.focus({preventScroll:!0}))})}var ed=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(ed||{});function eh(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e;return e.slice().sort((e,n)=>{let r=t(e),i=t(n);if(null===r||null===i)return 0;let s=r.compareDocumentPosition(i);return s&Node.DOCUMENT_POSITION_FOLLOWING?-1:s&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function ef(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function ep(e,t,n,r){let i=(0,ee.Y)(n);(0,p.useEffect)(()=>{if(e)return document.addEventListener(t,n,r),()=>document.removeEventListener(t,n,r);function n(e){i.current(e)}},[e,t,r])}function em(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,p.useMemo)(()=>U(...t),[...t])}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));let ev=X(()=>new Map,{PUSH(e,t){var n;let r=null!=(n=this.get(e))?n:{doc:e,count:0,d:(0,$.e)(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT(e){let t,{doc:n,d:r,meta:i}=e,s={doc:n,d:r,meta:function(e){let t={};for(let n of e)Object.assign(t,n(t));return t}(i)},o=[ef()?{before(e){let{doc:t,d:n,meta:r}=e;function i(e){return r.containers.flatMap(e=>e()).some(t=>t.contains(e))}n.microTask(()=>{var e;if("auto"!==window.getComputedStyle(t.documentElement).scrollBehavior){let e=(0,$.e)();e.style(t.documentElement,"scrollBehavior","auto"),n.add(()=>n.microTask(()=>
1e.dispose()))}let r=null!=(e=window.scrollY)?e:window.pageYOffset,s=null;n.addEventListener(t,"click",e=>{if(e.target instanceof HTMLElement)try{let n=e.target.closest("a");if(!n)return;let{hash:r}=new URL(n.href),o=t.querySelector(r);o&&!i(o)&&(s=o)}catch(e){}},!0),n.addEventListener(t,"touchstart",e=>{if(e.target instanceof HTMLElement)if(i(e.target)){let t=e.target;for(;t.parentElement&&i(t.parentElement);)t=t.parentElement;n.style(t,"overscrollBehavior","contain")}else n.style(e.target,"touchAction","none")}),n.addEventListener(t,"touchmove",e=>{if(e.target instanceof HTMLElement&&"INPUT"!==e.target.tagName)if(i(e.target)){let t=e.target;for(;t.parentElement&&""!==t.dataset.headlessuiPortal&&!(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)t=t.parentElement;""===t.dataset.headlessuiPortal&&e.preventDefault()}else e.preventDefault()},{passive:!1}),n.add(()=>{var e;r!==(null!=(e=window.scrollY)?e:window.pageYOffset)&&window.scrollTo(0,r),s&&s.isConnected&&(s.scrollIntoView({block:"nearest"}),s=null)})})}}:{},{before(e){var n;let{doc:r}=e,i=r.documentElement;t=Math.max(0,(null!=(n=r.defaultView)?n:window).innerWidth-i.clientWidth)},after(e){let{doc:n,d:r}=e,i=n.documentElement,s=Math.max(0,i.clientWidth-i.offsetWidth),o=Math.max(0,t-s);r.style(i,"paddingRight","".concat(o,"px"))}},{before(e){let{doc:t,d:n}=e;n.style(t.documentElement,"overflow","hidden")}}];o.forEach(e=>{let{before:t}=e;return null==t?void 0:t(s)}),o.forEach(e=>{let{after:t}=e;return null==t?void 0:t(s)})},SCROLL_ALLOW(e){let{d:t}=e;t.dispose()},TEARDOWN(e){let{doc:t}=e;this.delete(t)}});ev.subscribe(()=>{let e=ev.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let e="hidden"===t.get(n.doc),r=0!==n.count;(r&&!e||!r&&e)&&ev.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),0===n.count&&ev.dispatch("TEARDOWN",n)}});var eg=n(83987);let ey=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function eb(e){var t,n;let r=null!=(t=e.innerText)?t:"",i=e.cloneNode(!0);if(!(i instanceof HTMLElement))return r;let s=!1;for(let e of i.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))e.remove(),s=!0;let o=s?null!=(n=i.innerText)?n:"":r;return ey.test(o)&&(o=o.replace(ey,"")),o}function ex(e){return[e.screenX,e.screenY]}var ew=n(47324),eE=n(23201),eP=n(81543),eT=n(69662);let eS=(0,p.createContext)({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});eS.displayName="FloatingContext";let eA=(0,p.createContext)(null);function eC(e){var t,n,r,i,s,o;let a,l,u,{children:c,enabled:d=!0}=e,[h,f]=(0,p.useState)(null),[m,v]=(0,p.useState)(0),g=(0,p.useRef)(null),[y,b]=(0,p.useState)(null);t=y,(0,Y.s)(()=>{if(!t)return;let e=new MutationObserver(()=>{let e=window.getComputedStyle(t).maxHeight,n=parseFloat(e);if(isNaN(n))return;let r=parseInt(e);isNaN(r)||n!==r&&(t.style.maxHeight="".concat(Math.ceil(n),"px"))});return e.observe(t,{attributes:!0,attributeFilter:["style"]}),()=>{e.disconnect()}},[t]);let x=d&&null!==h&&null!==y,{to:w="bottom",gap:E=0,offset:P=0,padding:T=0,inner:S}=(n=h,r=y,a=eM(null!=(i=null==n?void 0:n.gap)?i:"var(--anchor-gap, 0)",r),l=eM(null!=(s=null==n?void 0:n.offset)?s:"var(--anchor-offset, 0)",r),u=eM(null!=(o=null==n?void 0:n.padding)?o:"var(--anchor-padding, 0)",r),{...n,gap:a,offset:l,padding:u}),[A,C="center"]=w.split(" ");(0,Y.s)(()=>{x&&v(0)},[x]);let{refs:M,floatingStyles:F,context:k}=(0,eE.we)({open:x,placement:"selection"===A?"center"===C?"bottom":"bottom-".concat(C):"center"===C?"".concat(A):"".concat(A,"-").concat(C),strategy:"absolute",transform:!1,middleware:[(0,eP.cY)({mainAxis:"selection"===A?0:E,crossAxis:P}),(0,eP.BN)({padding:T}),"selection"!==A&&(0,eP.UU)({padding:T}),"selection"===A&&S?(0,eE.vW)({...S,padding:T,overflowRef:g,offset:m,minItemsVisible:4,referenceOverflowThreshold:T,onFallbackChange(e){var t,n;if(!e)return;let r=k.elements.floating;if(!r)return;let i=parseFloat(getComputedStyle(r).scrollPaddingBottom)||0,s=Math.min(4,r.childElementCount),o=0,a=0;for(let e of null!=(n=null==(t=k.elements.floating)?void 0:t.childNodes)?n:[])if(e instanceof HTMLElement){let t=e.offsetTop,n=t+e.clientHeight+i,l=r.scrollTop,u=l+r.clientHeight;if(t>=l&&n<=u)s--;else{a=Math.max(0,Math.min(n,u)-Math.max(t,l)),o=e.clientHeight;break}}s>=1&&v(e=>
1{let t=o*s-a+i;return e>=t?e:t})}}):null,(0,eP.Ej)({padding:T,apply(e){let{availableWidth:t,availableHeight:n,elements:r}=e;Object.assign(r.floating.style,{overflow:"auto",maxWidth:"".concat(t,"px"),maxHeight:"min(var(--anchor-max-height, 100vh), ".concat(n,"px)")})}})].filter(Boolean),whileElementsMounted:eT.ll}),[D=A,R=C]=k.placement.split("-");"selection"===A&&(D="selection");let L=(0,p.useMemo)(()=>({anchor:[D,R].filter(Boolean).join(" ")}),[D,R]),I=(0,eE.Zx)(k,{overflowRef:g,onChange:v}),{getReferenceProps:j,getFloatingProps:O}=(0,eE.bv)([I]),V=(0,W._)(e=>{b(e),M.setFloating(e)});return p.createElement(eA.Provider,{value:f},p.createElement(eS.Provider,{value:{setFloating:V,setReference:M.setReference,styles:F,getReferenceProps:j,getFloatingProps:O,slot:L}},c))}function eM(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=(0,H.L)(),i=(0,W._)((e,t)=>{if(null==e)return[n,null];if("number"==typeof e)return[e,null];if("string"==typeof e){if(!t)return[n,null];let i=eF(e,t);return[i,n=>{let s=function e(t){let n=/var\((.*)\)/.exec(t);if(n){let t=n[1].indexOf(",");if(-1===t)return[n[1]];let r=n[1].slice(0,t).trim(),i=n[1].slice(t+1).trim();return i?[r,...e(i)]:[r]}return[]}(e);{let o=s.map(e=>window.getComputedStyle(t).getPropertyValue(e));r.requestAnimationFrame(function a(){r.nextFrame(a);let l=!1;for(let[e,n]of s.entries()){let r=window.getComputedStyle(t).getPropertyValue(n);if(o[e]!==r){o[e]=r,l=!0;break}}if(!l)return;let u=eF(e,t);i!==u&&(n(u),i=u)})}return r.dispose}]}return[n,null]}),s=(0,p.useMemo)(()=>i(e,t)[0],[e,t]),[o=s,a]=(0,p.useState)();return(0,Y.s)(()=>{let[n,r]=i(e,t);if(a(n),r)return r(a)},[e,t]),o}function eF(e,t){let n=document.createElement("div");t.appendChild(n),n.style.setProperty("margin-top","0px","important"),n.style.setProperty("margin-top",e,"important");let r=parseFloat(window.getComputedStyle(n).marginTop)||0;return t.removeChild(n),r}eA.displayName="PlacementContext";var ek=n(3791),eD=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(eD||{});function eR(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),i=null!=r?r:-1;switch(e.focus){case 0:for(let e=0;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 1:-1===i&&(i=n.length);for(let e=i-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 2:for(let e=i+1;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 3:for(let e=n.length-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 4:for(let r=0;r<n.length;++r)if(t.resolveId(n[r],r,n)===e.id)return r;return r;case 5:return null;default:throw Error("Unexpected object: "+e)}}var eL=n(11964);let eI=(0,p.createContext)(void 0);function ej(){return(0,p.useContext)(eI)}let eO=(0,p.createContext)(null);eO.displayName="DescriptionContext",Object.assign((0,eL.FX)(function(e,t){let n=(0,p.useId)(),r=ej(),{id:i="headlessui-description-".concat(n),...s}=e,o=function e(){let t=(0,p.useContext)(eO);if(null===t){let t=Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,e),t}return t}(),a=(0,eg.P)(t);(0,Y.s)(()=>o.register(i),[i,o.register]);let l=r||!1,u=(0,p.useMemo)(()=>({...o.slot,disabled:l}),[o.slot,l]),c={ref:a,...o.props,id:i};return(0,eL.Ci)()({ourProps:c,theirProps:s,slot:u,defaultTag:"p",name:o.name||"Description"})}),{});var eV=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(eV||{});let e_=(0,p.createContext)(void 0),eN=(0,p.createContext)(null);function eB(){let e=(0,p.useContext)(eN);if(null===e){let e=Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,eB),e}return e}function eU(){var e,t,n;let r,{inherit:i=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=r=null!=(n=null==(t=(0,p.useContext)(eN))?void 0:t.value)?n:void 0,[o,a]=(0,p.useState)([]),l=i?[s,...o].filter(
1Boolean):o;return[l.length>0?l.join(" "):void 0,(0,p.useMemo)(()=>function(e){let t=(0,W._)(e=>(a(t=>[...t,e]),()=>a(t=>{let n=t.slice(),r=n.indexOf(e);return -1!==r&&n.splice(r,1),n}))),n=(0,p.useMemo)(()=>({register:t,slot:e.slot,name:e.name,props:e.props,value:e.value}),[t,e.slot,e.name,e.props,e.value]);return p.createElement(eN.Provider,{value:n},e.children)},[a])]}eN.displayName="LabelContext",Object.assign((0,eL.FX)(function(e,t){var n;let r=(0,p.useId)(),i=eB(),s=(0,p.useContext)(e_),o=ej(),{id:a="headlessui-label-".concat(r),htmlFor:l=null!=s?s:null==(n=i.props)?void 0:n.htmlFor,passive:u=!1,...c}=e,d=(0,eg.P)(t);(0,Y.s)(()=>i.register(a),[a,i.register]);let h=(0,W._)(e=>{let t=e.currentTarget;if(t instanceof HTMLLabelElement&&e.preventDefault(),i.props&&"onClick"in i.props&&"function"==typeof i.props.onClick&&i.props.onClick(e),t instanceof HTMLLabelElement){let e=document.getElementById(t.htmlFor);if(e){let t=e.getAttribute("disabled");if("true"===t||""===t)return;let n=e.getAttribute("aria-disabled");if("true"===n||""===n)return;(e instanceof HTMLInputElement&&("radio"===e.type||"checkbox"===e.type)||"radio"===e.role||"checkbox"===e.role||"switch"===e.role)&&e.click(),e.focus({preventScroll:!0})}}}),f=o||!1,m=(0,p.useMemo)(()=>({...i.slot,disabled:f}),[i.slot,f]),v={ref:d,...i.props,id:a,htmlFor:l,onClick:h};return u&&("onClick"in v&&(delete v.htmlFor,delete v.onClick),"onClick"in c&&delete c.onClick),(0,eL.Ci)()({ourProps:v,theirProps:c,slot:m,defaultTag:l?"label":"div",name:i.name||"Label"})}),{});var eH=n(50010),eW=n(58479);let eY=(0,p.createContext)(!1),e$=p.Fragment,eK=(0,eL.FX)(function(e,t){let n,r,i=(0,p.useRef)(null),s=(0,eg.P)((0,eg.a)(e=>{i.current=e}),t),o=em(i),a=function(e){let t=(0,p.useContext)(eY),n=(0,p.useContext)(eq),r=em(e),[i,s]=(0,p.useState)(()=>{var e;if(!t&&null!==n)return null!=(e=n.current)?e:null;if(B._.isServer)return null;let i=null==r?void 0:r.getElementById("headlessui-portal-root");if(i)return i;if(null===r)return null;let s=r.createElement("div");return s.setAttribute("id","headlessui-portal-root"),r.body.appendChild(s)});return(0,p.useEffect)(()=>{null!==i&&(null!=r&&r.body.contains(i)||null==r||r.body.appendChild(i))},[i,r]),(0,p.useEffect)(()=>{t||null!==n&&s(n.current)},[n,s,t]),i}(i),[l]=(0,p.useState)(()=>{var e;return B._.isServer?null:null!=(e=null==o?void 0:o.createElement("div"))?e:null}),u=(0,p.useContext)(ez),c=(0,eW.g)();(0,Y.s)(()=>{!a||!l||a.contains(l)||(l.setAttribute("data-headlessui-portal",""),a.appendChild(l))},[a,l]),(0,Y.s)(()=>{if(l&&u)return u.register(l)},[u,l]),n=(0,W._)(()=>{var e;a&&l&&(l instanceof Node&&a.contains(l)&&a.removeChild(l),a.childNodes.length<=0&&(null==(e=a.parentElement)||e.removeChild(a)))}),r=(0,p.useRef)(!1),(0,p.useEffect)(()=>(r.current=!1,()=>{r.current=!0,(0,eH._)(()=>{r.current&&n()})}),[n]);let d=(0,eL.Ci)();return c&&a&&l?(0,N.createPortal)(d({ourProps:{ref:s},theirProps:e,slot:{},defaultTag:e$,name:"Portal"}),l):null}),eX=p.Fragment,eq=(0,p.createContext)(null),ez=(0,p.createContext)(null),eG=Object.assign((0,eL.FX)(function(e,t){let n=(0,eg.P)(t),{enabled:r=!0,...i}=e,s=(0,eL.Ci)();return r?p.createElement(eK,{...i,ref:n}):s({ourProps:{ref:n},theirProps:i,slot:{},defaultTag:e$,name:"Portal"})}),{Group:(0,eL.FX)(function(e,t){let{target:n,...r}=e,i={ref:(0,eg.P)(t)},s=(0,eL.Ci)();return p.createElement(eq.Provider,{value:n},s({ourProps:i,theirProps:r,defaultTag:eX,name:"Popover.Group"}))})});var eZ=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(eZ||{}),eJ=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(eJ||{}),eQ=(e=>(e[e.OpenMenu=0]="OpenMenu",e[e.CloseMenu=1]="CloseMenu",e[e.GoToItem=2]="GoToItem",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterItem=5]="RegisterItem",e[e.UnregisterItem=6]="UnregisterItem",e[e.SetButtonElement=7]="SetButtonElement",e[e.SetItemsElement=8]="SetItemsElement",e))(eQ||{});function e0(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,n=null!==e.activeItemIndex?e.items[e.activeItemIndex]:null,r=eh(t(e.items.slice()),e=>e.dataRef.current.domRef.current),i=n?r.indexOf(n):null;return -1===i&&(i=null),{items:r,activeItemIndex:i}}let e1={1:e=>1===e.menuState?e:{...e,activeItemIndex:null,menuState:1},0:e=>0===e.menuState?e:{...e,__demoMode:!1,menuState:0},2:(e,t)=>{var n,r,i,s,o;if(1===e.menuState)return e;let a={...e,searchQuery:"",activationTrigger:null!=(n=t.trigger)?n:1,__demoMode:!1};if(t.focus===eD.Nothing)return{...a,activeItemIndex:null};if(t.focus===eD.Specific)return{...a,activeItemIndex:e.items.findIndex(e=>e.id===t.id)};if(t.focus===eD.Previous){let n=e.activeItemIndex;if(null!==n){let s=e.items[n].dataRef.current.domRef,o=eR(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==o){let t=e.items[o].dataRef.current.domRef;if((null==(r=s.current)?void 0:r.previousElementSibling)===t.current||(null==(i=t.current)?void 0:i.previousElementSibling)===null)return{...a,activeItemIndex:o}}}}else if(t.focus===eD.Next){let n=e.activeItemIndex;if(null!==n){let r=e.items[n].dataRef.current.domRef,i=eR(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==i){let t=e.items[i].dataRef.current.domRef;if((null==(s=r.current)?void 0:s.nextElementSibling)===t.current||(null==(o=t.current)?void 0:o.nextElementSibling)===null)return{...a,activeItemIndex:i}}}}let l=e0(e),u=eR(t,{resolveItems:()=>l.items,resolveActiveIndex:()=>l.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...a,...l,activeItemIndex:u}},3:(e,t)=>
1{let n=+(""===e.searchQuery),r=e.searchQuery+t.value.toLowerCase(),i=(null!==e.activeItemIndex?e.items.slice(e.activeItemIndex+n).concat(e.items.slice(0,e.activeItemIndex+n)):e.items).find(e=>{var t;return(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(r))&&!e.dataRef.current.disabled}),s=i?e.items.indexOf(i):-1;return -1===s||s===e.activeItemIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeItemIndex:s,activationTrigger:1}},4:e=>""===e.searchQuery?e:{...e,searchQuery:"",searchActiveItemIndex:null},5:(e,t)=>{let n=e0(e,e=>[...e,{id:t.id,dataRef:t.dataRef}]);return{...e,...n}},6:(e,t)=>{let n=e0(e,e=>{let n=e.findIndex(e=>e.id===t.id);return -1!==n&&e.splice(n,1),e});return{...e,...n,activationTrigger:1}},7:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},8:(e,t)=>e.itemsElement===t.element?e:{...e,itemsElement:t.element}},e2=(0,p.createContext)(null);function e9(e){let t=(0,p.useContext)(e2);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Menu /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,e9),t}return t}function e3(e,t){return(0,et.Y)(t.type,e1,e,t)}e2.displayName="MenuContext";let e5=p.Fragment,e4=eL.Ac.RenderStrategy|eL.Ac.Static,e6=p.Fragment,e8=(0,eL.FX)(function(e,t){var n,r;let i,s,o,a,l,u,{__demoMode:c=!1,...d}=e,h=(0,p.useReducer)(e3,{__demoMode:c,menuState:+!c,buttonElement:null,itemsElement:null,items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1}),[{menuState:f,itemsElement:m,buttonElement:v},g]=h,y=(0,eg.P)(t);n=[v,m],i=G(0===f,"outside-click"),s=(0,ee.Y)((e,t)=>{g({type:1}),eu(t,el.Loose)||(e.preventDefault(),null==v||v.focus())}),o=(0,p.useCallback)(function(e,t){if(e.defaultPrevented)return;let r=t(e);if(null!==r&&r.getRootNode().contains(r)&&r.isConnected){for(let t of function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(n))if(null!==t&&(t.contains(r)||e.composed&&e.composedPath().includes(t)))return;return eu(r,el.Loose)||-1===r.tabIndex||e.preventDefault(),s.current(e,r)}},[s,n]),a=(0,p.useRef)(null),ep(i,"pointerdown",e=>{var t,n;a.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target},!0),ep(i,"mousedown",e=>{var t,n;a.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target},!0),ep(i,"click",e=>{ef()||/Android/gi.test(window.navigator.userAgent)||a.current&&(o(e,()=>a.current),a.current=null)},!0),l=(0,p.useRef)({x:0,y:0}),ep(i,"touchstart",e=>{l.current.x=e.touches[0].clientX,l.current.y=e.touches[0].clientY},!0),ep(i,"touchend",e=>{let t={x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY};if(!(Math.abs(t.x-l.current.x)>=30||Math.abs(t.y-l.current.y)>=30))return o(e,()=>e.target instanceof HTMLElement?e.target:null)},!0),r="blur",u=(0,ee.Y)(e=>o(e,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null)),(0,p.useEffect)(()=>{if(i)return window.addEventListener(r,e,!0),()=>window.removeEventListener(r,e,!0);function e(e){u.current(e)}},[i,r,!0]);let b=(0,W._)(()=>{g({type:1})}),x=(0,p.useMemo)(()=>({open:0===f,close:b}),[f,b]),w=(0,eL.Ci)();return p.createElement(eC,null,p.createElement(e2.Provider,{value:h},p.createElement(ek.El,{value:(0,et.Y)(f,{0:ek.Uw.Open,1:ek.Uw.Closed})},w({ourProps:{ref:y},theirProps:d,slot:x,defaultTag:e5,name:"Menu"}))))}),e7=(0,eL.FX)(function(e,t){var n,r;let i=(0,p.useId)(),{id:s="headlessui-menu-button-".concat(i),disabled:o=!1,autoFocus:a=!1,...l}=e,[u,c]=e9("Menu.Button"),d=(0,p.useContext)(eS).getReferenceProps,m=(0,eg.P)(t,(0,p.useContext)(eS).setReference,(0,W._)(e=>c({type:7,element:e}))),g=(0,W._)(e=>{switch(e.key){case eV.Space:case eV.Enter:case eV.ArrowDown:e.preventDefault(),e.stopPropagation(),(0,N.flushSync)(()=>c({type:0})),c({type:2,focus:eD.First});break;case eV.ArrowUp:e.preventDefault(),e.stopPropagation(),(0,N.flushSync)(()=>c({type:0})),c({type:2,focus:eD.Last})}}),y=(0,W._)(e=>{e.key===eV.Space&&e.preventDefault()}),b=(0,W._)(e=>{var t;if(function(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(null==t?void 0:t.getAttribute("disabled"))==="";return!(r&&function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&r}(e.currentTarget))return e.preventDefault();o||(0===u.menuState?((0,N.flushSync)(()=>c({type:1}
1)),null==(t=u.buttonElement)||t.focus({preventScroll:!0})):(e.preventDefault(),c({type:0})))}),{isFocusVisible:w,focusProps:E}=function(e={}){var t;let{autoFocus:n=!1,isTextInput:r,within:i}=e,s=(0,p.useRef)({isFocused:!1,isFocusVisible:n||F()}),[o,a]=(0,p.useState)(!1),[l,u]=(0,p.useState)(()=>s.current.isFocused&&s.current.isFocusVisible),c=(0,p.useCallback)(()=>u(s.current.isFocused&&s.current.isFocusVisible),[]),d=(0,p.useCallback)(e=>{s.current.isFocused=e,a(e),c()},[c]);t={isTextInput:r},C(),(0,p.useEffect)(()=>{let e=(e,n)=>{(function(e,t,n){var r;let i="undefined"!=typeof window?f(null==n?void 0:n.target).HTMLInputElement:HTMLInputElement,s="undefined"!=typeof window?f(null==n?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,o="undefined"!=typeof window?f(null==n?void 0:n.target).HTMLElement:HTMLElement,a="undefined"!=typeof window?f(null==n?void 0:n.target).KeyboardEvent:KeyboardEvent;return!((e=e||(null==n?void 0:n.target)instanceof i&&!k.has(null==n||null==(r=n.target)?void 0:r.type)||(null==n?void 0:n.target)instanceof s||(null==n?void 0:n.target)instanceof o&&(null==n?void 0:n.target.isContentEditable))&&"keyboard"===t&&n instanceof a&&!x[n.key])})(!!(null==t?void 0:t.isTextInput),e,n)&&(e=>{s.current.isFocusVisible=e,c()})(F())};return v.add(e),()=>{v.delete(e)}},[]);let{focusProps:m}=function(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e,s=(0,p.useCallback)(e=>{if(e.target===e.currentTarget)return r&&r(e),i&&i(!1),!0},[r,i]),o=L(s),a=(0,p.useCallback)(e=>{let t=h(e.target);e.target===e.currentTarget&&t.activeElement===e.target&&(n&&n(e),i&&i(!0),o(e))},[i,n,o]);return{focusProps:{onFocus:!t&&(n||i||r)?a:void 0,onBlur:!t&&(r||i)?s:void 0}}}({isDisabled:i,onFocusChange:d}),{focusWithinProps:g}=function(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,s=(0,p.useRef)({isFocusWithin:!1}),o=(0,p.useCallback)(e=>{s.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(s.current.isFocusWithin=!1,n&&n(e),i&&i(!1))},[n,i,s]),a=L(o),l=(0,p.useCallback)(e=>{s.current.isFocusWithin||document.activeElement!==e.target||(r&&r(e),i&&i(!0),s.current.isFocusWithin=!0,a(e))},[r,i,a]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:o}}}({isDisabled:!i,onFocusWithinChange:d});return{isFocused:o,isFocusVisible:l,focusProps:i?g:m}}({autoFocus:a}),{isHovered:P,hoverProps:T}=function(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[s,o]=(0,p.useState)(!1),a=(0,p.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,p.useEffect)(_,[]);let{hoverProps:l,triggerHoverEnd:u}=(0,p.useMemo)(()=>{let e=(e,r)=>{if(a.pointerType=r,i||"touch"===r||a.isHovered||!e.currentTarget.contains(e.target))return;a.isHovered=!0;let s=e.currentTarget;a.target=s,t&&t({type:"hoverstart",target:s,pointerType:r}),n&&n(!0),o(!0)},s=(e,t)=>{if(a.pointerType="",a.target=null,"touch"===t||!a.isHovered)return;a.isHovered=!1;let i=e.currentTarget;r&&r({type:"hoverend",target:i,pointerType:t}),n&&n(!1),o(!1)},l={};return"undefined"!=typeof PointerEvent?(l.onPointerEnter=t=>{I&&"mouse"===t.pointerType||e(t,t.pointerType)},l.onPointerLeave=e=>{!i&&e.currentTarget.contains(e.target)&&s(e,e.pointerType)}):(l.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},l.onMouseEnter=t=>{a.ignoreEmulatedMouseEvents||I||e(t,"mouse"),a.ignoreEmulatedMouseEvents=!1},l.onMouseLeave=e=>{!i&&e.currentTarget.contains(e.target)&&s(e,"mouse")}),{hoverProps:l,triggerHoverEnd:s}},[t,n,r,i,a]);return(0,p.useEffect)(()=>{i&&u({currentTarget:a.target},a.pointerType)},[i]),{hoverProps:l,isHovered:s}}({isDisabled:o}),{pressed:S,pressProps:A}=function(){let{disabled:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,p.useRef)(null),[n,r]=(0,p.useState)(!1),i=(0,H.L)(),s=(0,W._)(()=>{t.current=null,r(!1),i.dispose()}),o=(0,W._)(e=>{if(i.dispose(),null===t.current){t.current=e.currentTarget,r(!0);{let n=U(e.currentTarget);i.addEventListener(n,"pointerup",s,!1),i.addEventListener(n,"pointermove",e=>{if(t.current){var n,i;let s,o;r((s=e.width/2,o=e.height/2,n={top:e.clientY-o,right:e.clientX+s,bottom:e.clientY+o,left
1:e.clientX-s},i=t.current.getBoundingClientRect(),!(!n||!i||n.right<i.left||n.left>i.right||n.bottom<i.top||n.top>i.bottom)))}},!1),i.addEventListener(n,"pointercancel",s,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:o,onPointerUp:s,onClick:s}}}({disabled:o}),M=(0,p.useMemo)(()=>({open:0===u.menuState,active:S||0===u.menuState,disabled:o,hover:P,focus:w,autofocus:a}),[u,P,w,S,o,a]),D=(0,eL.v6)(d(),{ref:m,id:s,type:(r=u.buttonElement,(0,p.useMemo)(()=>{var t;if(e.type)return e.type;let n=null!=(t=e.as)?t:"button";if("string"==typeof n&&"button"===n.toLowerCase()||(null==r?void 0:r.tagName)==="BUTTON"&&!r.hasAttribute("type"))return"button"},[e.type,e.as,r])),"aria-haspopup":"menu","aria-controls":null==(n=u.itemsElement)?void 0:n.id,"aria-expanded":0===u.menuState,disabled:o||void 0,autoFocus:a,onKeyDown:g,onKeyUp:y,onClick:b},E,T,A);return(0,eL.Ci)()({ourProps:D,theirProps:l,slot:M,defaultTag:"button",name:"Menu.Button"})}),te=(0,eL.FX)(function(e,t){var n,r,i;let s,o=(0,p.useId)(),{id:a="headlessui-menu-items-".concat(o),anchor:l,portal:u=!1,modal:c=!0,transition:d=!1,...h}=e,f=(0,p.useMemo)(()=>l?"string"==typeof l?{to:l}:l:null,[l]),[m,v]=e9("Menu.Items"),[g,y]=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;!1===e&&(e=null),"string"==typeof e&&(e={to:e});let t=(0,p.useContext)(eA),n=(0,p.useMemo)(()=>e,[JSON.stringify(e,(e,t)=>{var n;return null!=(n=null==t?void 0:t.outerHTML)?n:t})]);(0,Y.s)(()=>{null==t||t(null!=n?n:null)},[t,n]);let r=(0,p.useContext)(eS);return(0,p.useMemo)(()=>[r.setFloating,e?r.styles:{}],[r.setFloating,e,r.styles])}(f),b=function(){let{getFloatingProps:e,slot:t}=(0,p.useContext)(eS);return(0,p.useCallback)(function(){for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return Object.assign({},e(...r),{"data-anchor":t.anchor})},[e,t])}(),[x,w]=(0,p.useState)(null),E=(0,eg.P)(t,f?g:null,(0,W._)(e=>v({type:8,element:e})),w),P=em(m.itemsElement);f&&(u=!0);let T=(0,ek.O_)(),[S,A]=(0,ew.p)(d,x,null!==T?(T&ek.Uw.Open)===ek.Uw.Open:0===m.menuState);i=m.buttonElement,s=(0,ee.Y)(e=>{let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&(()=>{v({type:1})})()}),(0,p.useEffect)(()=>{if(!S)return;let e=null===i?null:i instanceof HTMLElement?i:i.current;if(!e)return;let t=(0,$.e)();if("undefined"!=typeof ResizeObserver){let n=new ResizeObserver(()=>s.current(e));n.observe(e),t.add(()=>n.disconnect())}if("undefined"!=typeof IntersectionObserver){let n=new IntersectionObserver(()=>s.current(e));n.observe(e),t.add(()=>n.disconnect())}return()=>t.dispose()},[i,s,S]),function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>[document.body];!function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>({containers:[]}),r=q(ev),i=t?r.get(t):void 0;i&&i.count,(0,Y.s)(()=>{if(!(!t||!e))return ev.dispatch("PUSH",t,n),()=>ev.dispatch("POP",t,n)},[e,t])}(G(e,"scroll-lock"),t,e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],n]}})}(!m.__demoMode&&c&&0===m.menuState,P),function(e){let{allowed:t,disallowed:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=G(e,"inert-others");(0,Y.s)(()=>{var e,i;if(!r)return;let s=(0,$.e)();for(let t of null!=(e=null==n?void 0:n())?e:[])t&&s.add(Q(t));let o=null!=(i=null==t?void 0:t())?i:[];for(let e of o){if(!e)continue;let t=U(e);if(!t)continue;let n=e.parentElement;for(;n&&n!==t.body;){for(let e of n.children)o.some(t=>e.contains(t))||s.add(Q(e));n=n.parentElement}}return s.dispose},[r,t,n])}(!m.__demoMode&&c&&0===m.menuState,{allowed:(0,p.useCallback)(()=>[m.buttonElement,m.itemsElement],[m.buttonElement,m.itemsElement])});let C=!function(e,t){let n=(0,p.useRef)({left:0,top:0});if((0,Y.s)(()=>{if(!t)return;let e=t.getBoundingClientRect();e&&(n.current=e)},[e,t]),null==t||!e||t===document.activeElement)return!1;let r=t.getBoundingClientRect();return r.top!==n.current.top||r.left!==n.current.left}(0!==m.menuState,m.buttonElement)&&S;(0,p.useEffect)(()=>{let e=m.itemsElement;e&&0===m.menuState&&e!==(null==P?void 0:P.activeElement)&&e.focus({preventScroll:!0})}
1,[m.menuState,m.itemsElement,P]),function(e,t){let{container:n,accept:r,walk:i}=t,s=(0,p.useRef)(r),o=(0,p.useRef)(i);(0,p.useEffect)(()=>{s.current=r,o.current=i},[r,i]),(0,Y.s)(()=>{if(!n||!e)return;let t=U(n);if(!t)return;let r=s.current,i=o.current,a=Object.assign(e=>r(e),{acceptNode:r}),l=t.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,a,!1);for(;l.nextNode();)i(l.currentNode)},[n,e,s,o])}(0===m.menuState,{container:m.itemsElement,accept:e=>"menuitem"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let M=(0,H.L)(),F=(0,W._)(e=>{var t,n,r,i,s;switch(M.dispose(),e.key){case eV.Space:if(""!==m.searchQuery)return e.preventDefault(),e.stopPropagation(),v({type:3,value:e.key});case eV.Enter:if(e.preventDefault(),e.stopPropagation(),v({type:1}),null!==m.activeItemIndex){let{dataRef:e}=m.items[m.activeItemIndex];null==(n=null==(t=e.current)?void 0:t.domRef.current)||n.click()}ec(m.buttonElement);break;case eV.ArrowDown:return e.preventDefault(),e.stopPropagation(),v({type:2,focus:eD.Next});case eV.ArrowUp:return e.preventDefault(),e.stopPropagation(),v({type:2,focus:eD.Previous});case eV.Home:case eV.PageUp:return e.preventDefault(),e.stopPropagation(),v({type:2,focus:eD.First});case eV.End:case eV.PageDown:return e.preventDefault(),e.stopPropagation(),v({type:2,focus:eD.Last});case eV.Escape:e.preventDefault(),e.stopPropagation(),(0,N.flushSync)(()=>v({type:1})),null==(r=m.buttonElement)||r.focus({preventScroll:!0});break;case eV.Tab:e.preventDefault(),e.stopPropagation(),(0,N.flushSync)(()=>v({type:1})),i=m.buttonElement,s=e.shiftKey?ei.Previous:ei.Next,function(e,t){var n,r,i;let{sorted:s=!0,relativeTo:o=null,skipElements:a=[]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,u=Array.isArray(e)?s?eh(e):e:64&t?function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return null==e?[]:Array.from(e.querySelectorAll(er)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}(e):ea(e);a.length>0&&u.length>1&&(u=u.filter(e=>!a.some(t=>null!=t&&"current"in t?(null==t?void 0:t.current)===e:t===e))),o=null!=o?o:l.activeElement;let c=(()=>{if(5&t)return 1;if(10&t)return -1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),d=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,u.indexOf(o))-1;if(4&t)return Math.max(0,u.indexOf(o))+1;if(8&t)return u.length-1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),h=32&t?{preventScroll:!0}:{},f=0,p=u.length,m;do{if(f>=p||f+p<=0)return 0;let e=d+f;if(16&t)e=(e+p)%p;else{if(e<0)return 3;if(e>=p)return 1}null==(m=u[e])||m.focus(h),f+=c}while(m!==l.activeElement);6&t&&null!=(i=null==(r=null==(n=m)?void 0:n.matches)?void 0:r.call(n,"textarea,input"))&&i&&m.select()}(ea(),s,{relativeTo:i});break;default:1===e.key.length&&(v({type:3,value:e.key}),M.setTimeout(()=>v({type:4}),350))}}),k=(0,W._)(e=>{e.key===eV.Space&&e.preventDefault()}),D=(0,p.useMemo)(()=>({open:0===m.menuState}),[m.menuState]),R=(0,eL.v6)(f?b():{},{"aria-activedescendant":null===m.activeItemIndex||null==(n=m.items[m.activeItemIndex])?void 0:n.id,"aria-labelledby":null==(r=m.buttonElement)?void 0:r.id,id:a,onKeyDown:F,onKeyUp:k,role:"menu",tabIndex:0===m.menuState?0:void 0,ref:E,style:{...h.style,...y,"--button-width":function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],[n,r]=(0,p.useReducer)(()=>({}),{}),i=(0,p.useMemo)(()=>(function(e){if(null===e)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}})(e),[e,n]);return(0,Y.s)(()=>{if(!e)return;let t=new ResizeObserver(r);return t.observe(e),()=>{t.disconnect()}},[e]),t?{width:"".concat(i.width,"px"),height:"".concat(i.height,"px")}:i}(m.buttonElement,!0).width},...(0,ew.B)(A)}),L=(0,eL.Ci)();return p.createElement(eG,{enabled:!!u&&(e.static||S)},L({ourProps:R,theirProps:h,slot:D,defaultTag:"div",features:e4,visible:C,name:"Menu.Items"}))}),tt=(0,eL.FX)(function(e,t){let n,r,i,s=(0,p.useId)(),{id:o="headlessui-menu-item-".concat(s),disabled:a=!1,...l}=e,[u,c]=e9("Menu.Item"),d=null!==u.activeItemIndex&&u.items[u.activeItemIndex].id===o,h=(0,p.useRef)(null),f=(0,eg.P)(t,h);(0,Y.s)(()=>
1{if(!u.__demoMode&&0===u.menuState&&d&&0!==u.activationTrigger)return(0,$.e)().requestAnimationFrame(()=>{var e,t;null==(t=null==(e=h.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})},[u.__demoMode,h,d,u.menuState,u.activationTrigger,u.activeItemIndex]);let m=(n=(0,p.useRef)(""),r=(0,p.useRef)(""),(0,W._)(()=>{let e=h.current;if(!e)return"";let t=e.innerText;if(n.current===t)return r.current;let i=(function(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let e=n.split(" ").map(e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():eb(t).trim()}return null}).filter(Boolean);if(e.length>0)return e.join(", ")}return eb(e).trim()})(e).trim().toLowerCase();return n.current=t,r.current=i,i})),v=(0,p.useRef)({disabled:a,domRef:h,get textValue(){return m()}});(0,Y.s)(()=>{v.current.disabled=a},[v,a]),(0,Y.s)(()=>(c({type:5,id:o,dataRef:v}),()=>c({type:6,id:o})),[v,o]);let g=(0,W._)(()=>{c({type:1})}),y=(0,W._)(e=>{if(a)return e.preventDefault();c({type:1}),ec(u.buttonElement)}),b=(0,W._)(()=>{if(a)return c({type:2,focus:eD.Nothing});c({type:2,focus:eD.Specific,id:o})}),x=(i=(0,p.useRef)([-1,-1]),{wasMoved(e){let t=ex(e);return(i.current[0]!==t[0]||i.current[1]!==t[1])&&(i.current=t,!0)},update(e){i.current=ex(e)}}),w=(0,W._)(e=>{x.update(e),!a&&(d||c({type:2,focus:eD.Specific,id:o,trigger:0}))}),E=(0,W._)(e=>{x.wasMoved(e)&&(a||d||c({type:2,focus:eD.Specific,id:o,trigger:0}))}),P=(0,W._)(e=>{x.wasMoved(e)&&(a||d&&c({type:2,focus:eD.Nothing}))}),[T,S]=eU(),[A,C]=function(){let[e,t]=(0,p.useState)([]);return[e.length>0?e.join(" "):void 0,(0,p.useMemo)(()=>function(e){let n=(0,W._)(e=>(t(t=>[...t,e]),()=>t(t=>{let n=t.slice(),r=n.indexOf(e);return -1!==r&&n.splice(r,1),n}))),r=(0,p.useMemo)(()=>({register:n,slot:e.slot,name:e.name,props:e.props,value:e.value}),[n,e.slot,e.name,e.props,e.value]);return p.createElement(eO.Provider,{value:r},e.children)},[t])]}(),M=(0,p.useMemo)(()=>({active:d,focus:d,disabled:a,close:g}),[d,a,g]),F=(0,eL.Ci)();return p.createElement(S,null,p.createElement(C,null,F({ourProps:{id:o,ref:f,role:"menuitem",tabIndex:!0===a?void 0:-1,"aria-disabled":!0===a||void 0,"aria-labelledby":T,"aria-describedby":A,disabled:void 0,onClick:y,onFocus:b,onPointerEnter:w,onMouseEnter:w,onPointerMove:E,onMouseMove:E,onPointerLeave:P,onMouseLeave:P},theirProps:l,slot:M,defaultTag:e6,name:"Menu.Item"})))}),tn=Object.assign(e8,{Button:e7,Items:te,Item:tt,Section:(0,eL.FX)(function(e,t){let[n,r]=eU(),i=(0,eL.Ci)();return p.createElement(r,null,i({ourProps:{ref:t,"aria-labelledby":n,role:"group"},theirProps:e,slot:{},defaultTag:"div",name:"Menu.Section"}))}),Heading:(0,eL.FX)(function(e,t){let n=(0,p.useId)(),{id:r="headlessui-menu-heading-".concat(n),...i}=e,s=eB();(0,Y.s)(()=>s.register(r),[r,s.register]);let o={id:r,ref:t,role:"presentation",...s.props};return(0,eL.Ci)()({ourProps:o,theirProps:i,slot:{},defaultTag:"header",name:"Menu.Heading"})}),Separator:(0,eL.FX)(function(e,t){return(0,eL.Ci)()({ourProps:{ref:t,role:"separator"},theirProps:e,slot:{},defaultTag:"div",name:"Menu.Separator"})})})},34903:e=>{e.exports={style:{fontFamily:"'DM Sans', 'DM Sans Fallback'",fontStyle:"normal"},className:"__className_e64f39",variable:"__variable_e64f39"}},35919:(e,t,n)=>{"use strict";n.d(t,{_:()=>s});var r=n(7620),i=n(98846);let s=function(e){let t=(0,i.Y)(e);return r.useCallback(function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.current(...n)},[t])}},39214:(e,t,n)=>{"use strict";n.d(t,{UC:()=>et,VY:()=>er,ZL:()=>Q,bL:()=>Z,bm:()=>ei,hE:()=>en,hJ:()=>ee,l9:()=>J});var r=n(7620),i=n(47231),s=n(61715),o=n(18107),a=n(1679),l=n(54111),u=n(48966),c=n(18249),d=n(14972),h=n(48787),f=n(60421),p=n(26419),m=n(72413),v=n(9702),g=n(46118),y=n(54568),b="Dialog",[x,w]=(0,o.A)(b),[E,P]=x(b),T=e=>{let{__scopeDialog:t,children:n,open:i,defaultOpen:s,onOpenChange:o,modal:u=!0}=e,c=r.useRef(null),d=r.useRef(null),[h=!1,f]=(0,l.i)({prop:i,defaultProp:s,onChange:o});return(0,y.jsx)(E,{scope:t,triggerRef:c,contentRef:d,contentId:(0,a.B)(),titleId:(0,a.B)(),descriptionId:(0,a.B)(),open:h,onOpenChange:f,onOpenToggle:r.useCallback(()=>f(e=>!e),[f]),modal:u,children:n})};T.displayName=b;var S="DialogTrigger",A=r.forwardRef((e,t)=>
1{let{__scopeDialog:n,...r}=e,o=P(S,n),a=(0,s.s)(t,o.triggerRef);return(0,y.jsx)(f.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":$(o.open),...r,ref:a,onClick:(0,i.m)(e.onClick,o.onOpenToggle)})});A.displayName=S;var C="DialogPortal",[M,F]=x(C,{forceMount:void 0}),k=e=>{let{__scopeDialog:t,forceMount:n,children:i,container:s}=e,o=P(C,t);return(0,y.jsx)(M,{scope:t,forceMount:n,children:r.Children.map(i,e=>(0,y.jsx)(h.C,{present:n||o.open,children:(0,y.jsx)(d.Z,{asChild:!0,container:s,children:e})}))})};k.displayName=C;var D="DialogOverlay",R=r.forwardRef((e,t)=>{let n=F(D,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,s=P(D,e.__scopeDialog);return s.modal?(0,y.jsx)(h.C,{present:r||s.open,children:(0,y.jsx)(L,{...i,ref:t})}):null});R.displayName=D;var L=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=P(D,n);return(0,y.jsx)(m.A,{as:g.DX,allowPinchZoom:!0,shards:[i.contentRef],children:(0,y.jsx)(f.sG.div,{"data-state":$(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),I="DialogContent",j=r.forwardRef((e,t)=>{let n=F(I,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,s=P(I,e.__scopeDialog);return(0,y.jsx)(h.C,{present:r||s.open,children:s.modal?(0,y.jsx)(O,{...i,ref:t}):(0,y.jsx)(V,{...i,ref:t})})});j.displayName=I;var O=r.forwardRef((e,t)=>{let n=P(I,e.__scopeDialog),o=r.useRef(null),a=(0,s.s)(t,n.contentRef,o);return r.useEffect(()=>{let e=o.current;
1if(e)return(0,v.Eq)(e)},[]),(0,y.jsx)(_,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,i.m)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null==(t=n.triggerRef.current)||t.focus()}),onPointerDownOutside:(0,i.m)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:(0,i.m)(e.onFocusOutside,e=>e.preventDefault())})}),V=r.forwardRef((e,t)=>{let n=P(I,e.__scopeDialog),i=r.useRef(!1),s=r.useRef(!1);return(0,y.jsx)(_,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var r,o;null==(r=e.onCloseAutoFocus)||r.call(e,t),t.defaultPrevented||(i.current||null==(o=n.triggerRef.current)||o.focus(),t.preventDefault()),i.current=!1,s.current=!1},onInteractOutside:t=>{var r,o;null==(r=e.onInteractOutside)||r.call(e,t),t.defaultPrevented||(i.current=!0,"pointerdown"===t.detail.originalEvent.type&&(s.current=!0));let a=t.target;(null==(o=n.triggerRef.current)?void 0:o.contains(a))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&s.current&&t.preventDefault()}})}),_=r.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:i,onOpenAutoFocus:o,onCloseAutoFocus:a,...l}=e,d=P(I,n),h=r.useRef(null),f=(0,s.s)(t,h);return(0,p.Oh)(),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(c.n,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:o,onUnmountAutoFocus:a,children:(0,y.jsx)(u.qW,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":$(d.open),...l,ref:f,onDismiss:()=>d.onOpenChange(!1)})}),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(z,{titleId:d.titleId}),(0,y.jsx)(G,{contentRef:h,descriptionId:d.descriptionId})]})]})}),N="DialogTitle",B=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=P(N,n);return(0,y.jsx)(f.sG.h2,{id:i.titleId,...r,ref:t})});B.displayName=N;var U="DialogDescription",H=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=P(U,n);return(0,y.jsx)(f.sG.p,{id:i.descriptionId,...r,ref:t})});H.displayName=U;var W="DialogClose",Y=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,s=P(W,n);return(0,y.jsx)(f.sG.button,{type:"button",...r,ref:t,onClick:(0,i.m)(e.onClick,()=>s.onOpenChange(!1))})});function $(e){return e?"open":"closed"}Y.displayName=W;var K="DialogTitleWarning",[X,q]=(0,o.q)(K,{contentName:I,titleName:N,docsSlug:"dialog"}),z=e=>{let{titleId:t}=e,n=q(K),i="`".concat(n.contentName,"` requires a `").concat(n.titleName,"` for the component to be accessible for screen reader users.\n\nIf you want to hide the `").concat(n.titleName,"`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/").concat(n.docsSlug);return r.useEffect(()=>{t&&(document.getElementById(t)||console.error(i))},[i,t]),null},G=e=>{let{contentRef:t,descriptionId:n}=e,i=q("DialogDescriptionWarning"),s="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(i.contentName,"}.");return r.useEffect(()=>{var e;let r=null==(e=t.current)?void 0:e.getAttribute("aria-describedby");n&&r&&(document.getElementById(n)||console.warn(s))},[s,t,n]),null},Z=T,J=A,Q=k,ee=R,et=j,en=B,er=H,ei=Y},45165:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return y},handleClientScriptLoad:function(){return m},initScriptLoader:function(){return v}});let r=n(84931),i=n(96632),s=n(54568),o=r._(n(97509)),a=i._(n(7620)),l=n(89892),u=n(78716),c=n(55848),d=n(13166),h=new Map,f=new Set,p=e=>{let{src:t,id:n,onLoad:r=()=>{},onReady:i=null,dangerouslySetInnerHTML:s,children:a="",strategy:l="afterInteractive",onError:c,stylesheets:d}=e,p=n||t;if(p&&f.has(p))return;if(h.has(t)){f.add(p),h.get(t).then(r,c);return}let m=()=>{i&&i(),f.add(p)},v=document.createElement("script"),g=new Promise((e,t)=>{v.addEventListener("load",function(t){e(),r&&r.call(this,t),m()}),v.addEventListener("error",function(e){t(e)})}).catch(function(e){c&&c(e)});s?(v.innerHTML=s.__html||"",m()):a?(v.textContent="string"==typeof a?a:Array.isArray(a)?a.join(""):"",m()):t&&(v.src=t,h.set(t,g)),(0,u.setAttributesFromProps)(v,e),"worker"===l&&v.setAttribute("type","text/partytown"),v.setAttribute("data-nscript",l),d&&(e=>
1{if(o.default.preinit)return e.forEach(e=>{o.default.preinit(e,{as:"style"})});{let t=document.head;e.forEach(e=>{let n=document.createElement("link");n.type="text/css",n.rel="stylesheet",n.href=e,t.appendChild(n)})}})(d),document.body.appendChild(v)};function m(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>p(e))}):p(e)}function v(e){e.forEach(m),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");f.add(t)})}function g(e){let{id:t,src:n="",onLoad:r=()=>{},onReady:i=null,strategy:u="afterInteractive",onError:h,stylesheets:m,...v}=e,{updateScripts:g,scripts:y,getIsSsr:b,appDir:x,nonce:w}=(0,a.useContext)(l.HeadManagerContext);w=v.nonce||w;let E=(0,a.useRef)(!1);(0,a.useEffect)(()=>{let e=t||n;E.current||(i&&e&&f.has(e)&&i(),E.current=!0)},[i,t,n]);let P=(0,a.useRef)(!1);if((0,a.useEffect)(()=>{if(!P.current){if("afterInteractive"===u)p(e);else"lazyOnload"===u&&("complete"===document.readyState?(0,c.requestIdleCallback)(()=>p(e)):window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>p(e))}));P.current=!0}},[e,u]),("beforeInteractive"===u||"worker"===u)&&(g?(y[u]=(y[u]||[]).concat([{id:t,src:n,onLoad:r,onReady:i,onError:h,...v,nonce:w}]),g(y)):b&&b()?f.add(t||n):b&&!b()&&p({...e,nonce:w})),x){if(m&&m.forEach(e=>{o.default.preinit(e,{as:"style"})}),"beforeInteractive"===u)if(!n)return v.dangerouslySetInnerHTML&&(v.children=v.dangerouslySetInnerHTML.__html,delete v.dangerouslySetInnerHTML),(0,s.jsx)("script",{nonce:w,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+(0,d.htmlEscapeJsonString)(JSON.stringify([0,{...v,id:t}]))+")"}});else return o.default.preload(n,v.integrity?{as:"script",integrity:v.integrity,nonce:w,crossOrigin:v.crossOrigin}:{as:"script",nonce:w,crossOrigin:v.crossOrigin}),(0,s.jsx)("script",{nonce:w,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+(0,d.htmlEscapeJsonString)(JSON.stringify([n,{...v,id:t}]))+")"}});"afterInteractive"===u&&n&&o.default.preload(n,v.integrity?{as:"script",integrity:v.integrity,nonce:w,crossOrigin:v.crossOrigin}:{as:"script",nonce:w,crossOrigin:v.crossOrigin})}return null}Object.defineProperty(g,"__nextScript",{value:!0});let y=g;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},47324:(e,t,n)=>{"use strict";n.d(t,{B:()=>d,p:()=>h});var r,i,s=n(7620),o=n(71019),a=n(53604),l=n(89109),u=n(40459);void 0!==u&&"undefined"!=typeof globalThis&&"undefined"!=typeof Element&&(null==(r=null==u?void 0:u.env)?void 0:r.NODE_ENV)==="test"&&void 0===(null==(i=null==Element?void 0:Element.prototype)?void 0:i.getAnimations)&&(Element.prototype.getAnimations=function(){return console.warn("Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.\nPlease install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.\n\nExample usage:\n```js\nimport { mockAnimationsApi } from 'jsdom-testing-mocks'\nmockAnimationsApi()\n```"),[]});var c=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(c||{});function d(e){let t={};for(let n in e)!0===e[n]&&(t["data-".concat(n)]="");return t}function h(e,t,n,r){let[i,u]=(0,s.useState)(n),{hasFlag:c,addFlag:d,removeFlag:h}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,[t,n]=(0,s.useState)(e),r=(0,s.useCallback)(e=>n(e),[t]),i=(0,s.useCallback)(e=>n(t=>t|e),[t]),o=(0,s.useCallback)(e=>(t&e)===e,[t]);return{flags:t,setFlag:r,addFlag:i,hasFlag:o,removeFlag:(0,s.useCallback)(e=>n(t=>t&~e),[n]),toggleFlag:(0,s.useCallback)(e=>n(t=>t^e),[n])}}(e&&i?3:0),f=(0,s.useRef)(!1),p=(0,s.useRef)(!1),m=(0,a.L)();return(0,l.s)(()=>{var i;if(e){if(n&&u(!0),!t){n&&d(3);return}return null==(i=null==r?void 0:r.start)||i.call(r,n),function(e,t){let{prepare:n,run:r,done:i,inFlight:s}=t,a=(0,o.e)();return function(e,t){let{inFlight:n,prepare:r}=t;if(null!=n&&n.current)return r();let i=e.style.transition;e.style.transition="none",r(),e.offsetHeight,e.style.transition=i}(e,{prepare:n,inFlight:s}),a.nextFrame(()=>{r(),a.requestAnimationFrame(()=>{a.add(function(e,t){var n,r;let i=(0,o.e)();if(!e)return i.dispose;let s=!1;i.add(()=>{s=!0});let a=null!=(r=null==(n=e.getAnimations)?void 0:n.call(e).filter(e=>e instanceof CSSTransition))?r:[];return 0===a.length?t():Promise.allSettled(a.map(e=>e.finished)).then(()=>{s||t()}),i.dispose}(e,i))})}),a.dispose}(t,{inFlight:f,prepare(){p.current?p.current=!1:p.current=f.current,f.current=!0,p.current||(n?(d(3),h(4)):(d(4),h(2)))},run(){p.current?n?(h(3),d(4)):(h(4),d(3)):n?h(1):d(1)},done(){var e;p.current&&"function"==typeof t.getAnimations&&t.getAnimations().length>0||(f.current=!1,h(7),n||u(!1),null==(e=null==r?void 0:r.end)||e.call(r,n))}})}},[e,n,t,m]),e?[i,{closed:c(1),enter:c(2),leave:c(4),transition:c(2)||c(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}},50010:(e,t,n)=>{"use strict";function r(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}n.d(t,{_:()=>r})}
1,53604:(e,t,n)=>{"use strict";n.d(t,{L:()=>s});var r=n(7620),i=n(71019);function s(){let[e]=(0,r.useState)(i.e);return(0,r.useEffect)(()=>()=>e.dispose(),[e]),e}},55848:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{cancelIdleCallback:function(){return r},requestIdleCallback:function(){return n}});let n="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},r="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},56005:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(92068).A)("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]])},58479:(e,t,n)=>{"use strict";n.d(t,{g:()=>o});var r,i=n(7620),s=n(61443);function o(){let e,t=(e="undefined"==typeof document,(0,(r||(r=n.t(i,2))).useSyncExternalStore)(()=>()=>{},()=>!1,()=>!e)),[o,a]=i.useState(s._.isHandoffComplete);return o&&!1===s._.isHandoffComplete&&a(!1),i.useEffect(()=>{!0!==o&&a(!0)},[o]),i.useEffect(()=>s._.handoff(),[]),!t&&o}},60987:(e,t,n)=>{"use strict";n.d(t,{r7:()=>s});var r=n(7620),i=n(34047);function s(){let e=(0,r.useCallback)(e=>(i.dh.add(e),()=>i.dh.delete(e)),[]);return(0,r.useSyncExternalStore)(e,()=>i.cA,()=>"checking")}},61443:(e,t,n)=>{"use strict";n.d(t,{_:()=>o});var r=Object.defineProperty,i=(e,t,n)=>(((e,t,n)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),n);class s{set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}constructor(){i(this,"current",this.detect()),i(this,"handoffState","pending"),i(this,"currentId",0)}}let o=new s},62128:(e,t,n)=>{"use strict";let r;function i(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}n.d(t,{P:()=>sn});let s=e=>Array.isArray(e);function o(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function a(e){return"string"==typeof e||Array.isArray(e)}function l(e){let t=[{},{}];return null==e||e.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function u(e,t,n,r){if("function"==typeof t){let[i,s]=l(r);t=t(void 0!==n?n:e.custom,i,s)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[i,s]=l(r);t=t(void 0!==n?n:e.custom,i,s)}return t}function c(e,t,n){let r=e.getProps();return u(r,t,void 0!==n?n:r.custom,e)}let d=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],h=["initial",...d];function f(e){let t;return()=>(void 0===t&&(t=e()),t)}let p=f(()=>void 0!==window.ScrollTimeline);class m{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e,t){let n=this.animations.map(n=>p()&&n.attachTimeline?n.attachTimeline(e):"function"==typeof t?t(n):void 0);return()=>{n.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach(t=>t[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class v extends m{then(e,t){return Promise.all(this.animations).then(e).catch(t)}}function g(e,t){return e?e[t]||e.default||e:void 0}function y(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function b(e){return"function"==typeof e}function x(e,t){e.timeline=t,e.onfinish=null}let w=e=>Array.isArray(e)&&"number"==typeof e[0],E={linearEasing:void 0},P=function(e,t){let n=f(e);return()=>{var e;return null!=(e=E[t])?e:n()}}(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),T=(e,t,n)=>{let r=t-e;return 0===r?1:(n-e)/r},S=(e,t,n=10)=>{let r="",i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=e(T(0,i-1,t))+", ";return`linear(${r.substring(0,r.length-2)})`},A=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,C={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:A([0,.65,.55,1]),circOut:A([.55,0,1,.45]),backIn:A([.31,.01,.66,-.59]),backOut:A([.33,1.53,.69,.99])},M={x:!1,y:!1};function F(e,t){let n=function(e,t,n){if(e instanceof Element)return[e];if("string"==typeof e){let t=document.querySelectorAll(e);return t?Array.from(t):[]}return Array.from(e)}(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function k(e){return t=>{"touch"===t.pointerType||M.x||M.y||e(t)}}let D=(e,t)=>!!t&&(e===t||D(e,t.parentElement)),R=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary,L=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),I=new WeakSet;function j(e){return t=>{"Enter"===t.key&&e(t)}}function O(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function V(e){return R(e)&&!(M.x||M.y)}let _=e=>1e3*e,N=e=>e,B=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],U=new Set(B),H=new Set(["width","height","top","left","right","bottom",...B]),W=e=>s(e)?e[e.length-1]||0:e,Y={skipAnimations:!1,useManualTiming:!1},$=["read","resolveKeyframes","update","preRender","render","postRender"];function K(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,o=$.reduce((e,t)=>(e[t]=function(e){let t=new Set,n=new Set,r=!1,i=!1,s=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function a(t){s.has(t)&&(l.schedule(t),e()),t(o)}let l={schedule:(e,i=!1,o=!1)=>{let a=o&&r?t:n;return i&&s.add(e),a.has(e)||a.add(e),e},cancel:e=>{n.delete(e),s.delete(e)},process:e=>{if(o=e,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(a),t.clear(),r=!1,i&&(i=!1,l.process(e))}};return l}(s),e),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:d,postRender:h}=o,f=()=>{let s=Y.useManualTiming?i.timestamp:performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(s-i.timestamp,40),1),i.timestamp=s,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),d.process(i),h.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(f))};return{schedule:$.reduce((t,s)=>{let a=o[s];return t[s]=(t,s=!1,o=!1)=>(!n&&(n=!0,r=!0,i.isProcessing||e(f)),a.schedule(t,s,o)),t},{}),cancel:e=>{for(let t=0;t<$.length;t++)o[$[t]].cancel(e)},state:i,steps:o}}let{schedule:X,cancel:q,state:z,steps:G}=K("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:N,!0);function Z(){r=void 0}let J={now:()=>(void 0===r&&J.set(z.isProcessing||Y.useManualTiming?z.timestamp:performance.now()),r),set:e=>{r=e,queueMicrotask(Z)}};function Q(e,t){-1===e.indexOf(t)&&e.push(t)}function ee(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}class et{constructor(){this.subscriptions=[]}add(e){return Q(this.subscriptions,e),()=>ee(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let en={current:void 0};class er{constructor(e,t={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>
1{let n=J.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=J.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new et);let n=this.events[e].add(t);return"change"===e?()=>{n(),X.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return en.current&&en.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var e;let t=J.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let n=Math.min(this.updatedAt-this.prevUpdatedAt,30);return e=parseFloat(this.current)-parseFloat(this.prevFrameValue),n?1e3/n*e:0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ei(e,t){return new er(e,t)}let es=e=>!!(e&&e.getVelocity);function eo(e,t){let n=e.getValue("willChange");if(es(n)&&n.add)return n.add(t)}let ea=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),el="data-"+ea("framerAppearId"),eu={current:!1},ec=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function ed(e,t,n,r){return e===t&&n===r?N:i=>0===i||1===i?i:ec(function(e,t,n,r,i){let s,o,a=0;do(s=ec(o=t+(n-t)/2,r,i)-e)>0?n=o:t=o;while(Math.abs(s)>1e-7&&++a<12);return o}(i,0,1,e,n),t,r)}let eh=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ef=e=>t=>1-e(1-t),ep=ed(.33,1.53,.69,.99),em=ef(ep),ev=eh(em),eg=e=>(e*=2)<1?.5*em(e):.5*(2-Math.pow(2,-10*(e-1))),ey=e=>1-Math.sin(Math.acos(e)),eb=ef(ey),ex=eh(ey),ew=e=>/^0[^.\s]+$/u.test(e),eE=(e,t,n)=>n>t?t:n<e?e:n,eP={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},eT={...eP,transform:e=>eE(0,1,e)},eS={...eP,default:1},eA=e=>Math.round(1e5*e)/1e5,eC=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,eM=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,eF=(e,t)=>n=>!!("string"==typeof n&&eM.test(n)&&n.startsWith(e)||t&&null!=n&&Object.prototype.hasOwnProperty.call(n,t)),ek=(e,t,n)=>r=>{if("string"!=typeof r)return r;let[i,s,o,a]=r.match(eC);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},eD={...eP,transform:e=>Math.round(eE(0,255,e))},eR={test:eF("rgb","red"),parse:ek("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+eD.transform(e)+", "+eD.transform(t)+", "+eD.transform(n)+", "+eA(eT.transform(r))+")"},eL={test:eF("#"),parse:function(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:eR.transform},eI=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),ej=eI("deg"),eO=eI("%"),eV=eI("px"),e_=eI("vh"),eN=eI("vw"),eB={...eO,parse:e=>eO.parse(e)/100,transform:e=>eO.transform(100*e)},eU={test:eF("hsl","hue"),parse:ek("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+eO.transform(eA(t))+", "+eO.transform(eA(n))+", "+eA(eT.transform(r))+")"},eH={test:e=>eR.test(e)||eL.test(e)||eU.test(e),parse:e=>eR.test(e)?eR.parse(e):eU.test(e)?eU.parse(e):eL.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?eR.transform(e):eU.transform(e)},eW=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,eY="number",e$="color",eK=/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 eX(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],s=0,o=t.replace(eK,e=>(eH.test(e)?(r.color.push(s),i.push(e$),n.push(eH.parse(e))):e.startsWith("var(")?(r.var.push(s),i.push("var"),n.push(e)):(r.number.push(s),i.push(eY),n.push(parseFloat(e))),++s,"${}")).split("${}");return{values:n,split:o,indexes:r,types:i}}function eq(e){return eX(e).values}function ez(e){let{split:t,types:n}=eX(e),r=t.length;return e=>{let i="";for(let s=0;s<r;s++)if(i+=t[s],void 0!==e[s]){let t=n[s];t===eY?i+=eA(e[s]):t===e$?i+=eH.transform(e[s]):i+=e[s]}return i}}let eG=e=>"number"==typeof e?0:e,eZ={test:function(e){var t,n;return isNaN(e)&&"string"==typeof e&&((null==(t=e.match(eC))?void 0:t.length)||0)+((null==(n=e.match(eW))?void 0:n.length)||0)>0},parse:eq,createTransformer:ez,getAnimatableNone:function(e){let t=eq(e);return ez(e)(t.map(eG))}},eJ=new Set(["brightness","contrast","saturate","opacity"]);function eQ(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=n.match(eC)||[];if(!r)return e;let i=n.replace(r,""),s=+!!eJ.has(t);return r!==n&&(s*=100),t+"("+s+i+")"}let e0=/\b([a-z-]*)\(.*?\)/gu,e1={...eZ,getAnimatableNone:e=>{let t=e.match(e0);return t?t.map(eQ).join(" "):e}},e2={...eP,transform:Math.round},e9={borderWidth:eV,borderTopWidth:eV,borderRightWidth:eV,borderBottomWidth:eV,borderLeftWidth:eV,borderRadius:eV,radius:eV,borderTopLeftRadius:eV,borderTopRightRadius:eV,borderBottomRightRadius:eV,borderBottomLeftRadius:eV,width:eV,maxWidth:eV,height:eV,maxHeight:eV,top:eV,right:eV,bottom:eV,left:eV,padding:eV,paddingTop:eV,paddingRight:eV,paddingBottom:eV,paddingLeft:eV,margin:eV,marginTop:eV,marginRight:eV,marginBottom:eV,marginLeft:eV,backgroundPositionX:eV,backgroundPositionY:eV,rotate:ej,rotateX:ej,rotateY:ej,rotateZ:ej,scale:eS,scaleX:eS,scaleY:eS,scaleZ:eS,skew:ej,skewX:ej,skewY:ej,distance:eV,translateX:eV,translateY:eV,translateZ:eV,x:eV,y:eV,z:eV,perspective:eV,transformPerspective:eV,opacity:eT,originX:eB,originY:eB,originZ:eV,zIndex:e2,size:eV,fillOpacity:eT,strokeOpacity:eT,numOctaves:e2},e3={...e9,color:eH,backgroundColor:eH,outlineColor:eH,fill:eH,stroke:eH,borderColor:eH,borderTopColor:eH,borderRightColor:eH,borderBottomColor:eH,borderLeftColor:eH,filter:e1,WebkitFilter:e1},e5=e=>e3[e];function e4(e,t){let n=e5(e);return n!==e1&&(n=eZ),n.getAnimatableNone?n.getAnimatableNone(t):void 0}
1let e6=new Set(["auto","none","0"]),e8=e=>e===eP||e===eV,e7=(e,t)=>parseFloat(e.split(", ")[t]),te=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;let i=r.match(/^matrix3d\((.+)\)$/u);if(i)return e7(i[1],t);{let t=r.match(/^matrix\((.+)\)$/u);return t?e7(t[1],e):0}},tt=new Set(["x","y","z"]),tn=B.filter(e=>!tt.has(e)),tr={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:te(4,13),y:te(5,14)};tr.translateX=tr.x,tr.translateY=tr.y;let ti=new Set,ts=!1,to=!1;function ta(){if(to){let e=Array.from(ti).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=function(e){let t=[];return tn.forEach(n=>{let r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(+!!n.startsWith("scale")))}),t}(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{var r;null==(r=e.getValue(t))||r.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}to=!1,ts=!1,ti.forEach(e=>e.complete()),ti.clear()}function tl(){ti.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(to=!0)})}class tu{constructor(e,t,n,r,i,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ti.add(this),ts||(ts=!0,X.read(tl),X.resolveKeyframes(ta))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;for(let i=0;i<e.length;i++)if(null===e[i])if(0===i){let i=null==r?void 0:r.get(),s=e[e.length-1];if(void 0!==i)e[0]=i;else if(n&&t){let r=n.readValue(t,s);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=s),r&&void 0===i&&r.set(e[0])}else e[i]=e[i-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),ti.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,ti.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}let tc=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),td=e=>t=>"string"==typeof t&&t.startsWith(e),th=td("--"),tf=td("var(--"),tp=e=>!!tf(e)&&tm.test(e.split("/*")[0].trim()),tm=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,tv=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,tg=e=>t=>t.test(e),ty=[eP,eV,eO,ej,eN,e_,{test:e=>"auto"===e,parse:e=>e}],tb=e=>ty.find(tg(e));class tx extends tu{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if("string"==typeof r&&tp(r=r.trim())){let i=function e(t,n,r=1){N(r<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[i,s]=function(e){let t=tv.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${null!=n?n:r}`,i]}(t);if(!i)return;let o=window.getComputedStyle(n).getPropertyValue(i);if(o){let e=o.trim();return tc(e)?parseFloat(e):e}return tp(s)?e(s,n,r+1):s}(r,t.current);void 0!==i&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!H.has(n)||2!==e.length)return;let[r,i]=e,s=tb(r),o=tb(i);if(s!==o)if(e8(s)&&e8(o))for(let t=0;t<e.length;t++){let n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else this.needsMeasurement=!0}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++){var r;("number"==typeof(r=e[t])?0===r:null===r||"none"===r||"0"===r||ew(r))&&n.push(t)}n.length&&function(e,t,n){let r,i=0;for(;i<e.length&&!r;){let t=e[i];"string"==typeof t&&!e6.has(t)&&eX(t).values.length&&(r=e[i]),i++}if(r&&n)for(let i of t)e[i]=e4(n,r)}(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=tr[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){var e;let{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;let i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);let s=r.length-1,o=r[s];r[s]=tr[n](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),(null==(e=this.removedTransforms)?void 0:e.length)&&this.removedTransforms.forEac
1h(([e,n])=>{t.getValue(e).set(n)}),this.resolveNoneKeyframes()}}let tw=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(eZ.test(e)||"0"===e)&&!e.startsWith("url(")),tE=e=>null!==e;function tP(e,{repeat:t,repeatType:n="loop"},r){let i=e.filter(tE),s=t&&"loop"!==n&&t%2==1?0:i.length-1;return s&&void 0!==r?r:i[s]}class tT{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:s="loop",...o}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=J.now(),this.options={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:s,...o},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(tl(),ta()),this._resolved}onKeyframesResolved(e,t){this.resolvedAt=J.now(),this.hasAttemptedResolve=!0;let{name:n,type:r,velocity:i,delay:s,onComplete:o,onUpdate:a,isGenerator:l}=this.options;if(!l&&!function(e,t,n,r){let i=e[0];if(null===i)return!1;if("display"===t||"visibility"===t)return!0;let s=e[e.length-1],o=tw(i,t),a=tw(s,t);return N(o===a,`You are trying to animate ${t} from "${i}" to "${s}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${s} via the \`style\` property.`),!!o&&!!a&&(function(e){let t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||b(n))&&r)}(e,n,r,i))if(eu.current||!s){a&&a(tP(e,this.options,t)),o&&o(),this.resolveFinishedPromise();return}else this.options.duration=0;let u=this.initPlayback(e,t);!1!==u&&(this._resolved={keyframes:e,finalKeyframe:t,...u},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}let tS=(e,t,n)=>e+(t-e)*n;function tA(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function tC(e,t){return n=>n>0?t:e}let tM=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},tF=[eL,eR,eU];function tk(e){let t=tF.find(t=>t.test(e));if(N(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===eU&&(n=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,s=0,o=0;if(t/=100){let r=n<.5?n*(1+t):n+t-n*t,a=2*n-r;i=tA(a,r,e+1/3),s=tA(a,r,e),o=tA(a,r,e-1/3)}else i=s=o=n;return{red:Math.round(255*i),green:Math.round(255*s),blue:Math.round(255*o),alpha:r}}(n)),n}let tD=(e,t)=>{let n=tk(e),r=tk(t);if(!n||!r)return tC(e,t);let i={...n};return e=>(i.red=tM(n.red,r.red,e),i.green=tM(n.green,r.green,e),i.blue=tM(n.blue,r.blue,e),i.alpha=tS(n.alpha,r.alpha,e),eR.transform(i))},tR=(e,t)=>n=>t(e(n)),tL=(...e)=>e.reduce(tR),tI=new Set(["none","hidden"]);function tj(e,t){return n=>tS(e,t,n)}function tO(e){return"number"==typeof e?tj:"string"==typeof e?tp(e)?tC:eH.test(e)?tD:tN:Array.isArray(e)?tV:"object"==typeof e?eH.test(e)?tD:t_:tC}function tV(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>tO(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function t_(e,t){let n={...e,...t},r={};for(let i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=tO(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}let tN=(e,t)=>{let n=eZ.createTransformer(t),r=eX(e),i=eX(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?tI.has(e)&&!i.values.length||tI.has(t)&&!r.values.length?function(e,t){return tI.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}(e,t):tL(tV(function(e,t){var n;let r=[],i={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){let o=t.types[s],a=e.indexes[o][i[o]],l=null!=(n=e.values[a])?n:0;r[s]=l,i[o]++}return r}(r,i),i.values),n):(N(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),tC(e,t))};function tB(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?tS(e,t,n):tO(e)(e,t)}function tU(e,t,n){var r,i;let s=Math.max(t-5,0);return r=n-e(s),(i=t-s)?1e3/i*r:0}let tH={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 tW(e,t){return e*Math.sqrt(1-t*t)}
1let tY=["duration","bounce"],t$=["stiffness","damping","mass"];function tK(e,t){return t.some(t=>void 0!==e[t])}function tX(e=tH.visualDuration,t=tH.bounce){let n,r="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:i,restDelta:s}=r,o=r.keyframes[0],a=r.keyframes[r.keyframes.length-1],l={done:!1,value:o},{stiffness:u,damping:c,mass:d,duration:h,velocity:f,isResolvedFromDuration:p}=function(e){let t={velocity:tH.velocity,stiffness:tH.stiffness,damping:tH.damping,mass:tH.mass,isResolvedFromDuration:!1,...e};if(!tK(e,t$)&&tK(e,tY))if(e.visualDuration){let n=2*Math.PI/(1.2*e.visualDuration),r=n*n,i=2*eE(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:tH.mass,stiffness:r,damping:i}}else{let n=function({duration:e=tH.duration,bounce:t=tH.bounce,velocity:n=tH.velocity,mass:r=tH.mass}){let i,s;N(e<=_(tH.maxDuration),"Spring duration must be 10 seconds or less");let o=1-t;o=eE(tH.minDamping,tH.maxDamping,o),e=eE(tH.minDuration,tH.maxDuration,e/1e3),o<1?(i=t=>{let r=t*o,i=r*e;return .001-(r-n)/tW(t,o)*Math.exp(-i)},s=t=>{let r=t*o*e,s=Math.pow(o,2)*Math.pow(t,2)*e,a=Math.exp(-r),l=tW(Math.pow(t,2),o);return(r*n+n-s)*a*(-i(t)+.001>0?-1:1)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),s=t=>e*e*(n-t)*Math.exp(-t*e));let a=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(i,s,5/e);if(e=_(e),isNaN(a))return{stiffness:tH.stiffness,damping:tH.damping,duration:e};{let t=Math.pow(a,2)*r;return{stiffness:t,damping:2*o*Math.sqrt(r*t),duration:e}}}(e);(t={...t,...n,mass:tH.mass}).isResolvedFromDuration=!0}return t}({...r,velocity:-((r.velocity||0)/1e3)}),m=f||0,v=c/(2*Math.sqrt(u*d)),g=a-o,b=Math.sqrt(u/d)/1e3,x=5>Math.abs(g);if(i||(i=x?tH.restSpeed.granular:tH.restSpeed.default),s||(s=x?tH.restDelta.granular:tH.restDelta.default),v<1){let e=tW(b,v);n=t=>a-Math.exp(-v*b*t)*((m+v*b*g)/e*Math.sin(e*t)+g*Math.cos(e*t))}else if(1===v)n=e=>a-Math.exp(-b*e)*(g+(m+b*g)*e);else{let e=b*Math.sqrt(v*v-1);n=t=>{let n=Math.exp(-v*b*t),r=Math.min(e*t,300);return a-n*((m+v*b*g)*Math.sinh(r)+e*g*Math.cosh(r))/e}}let w={calculatedDuration:p&&h||null,next:e=>{let t=n(e);if(p)l.done=e>=h;else{let r=0;v<1&&(r=0===e?_(m):tU(n,e,t));let o=Math.abs(a-t)<=s;l.done=Math.abs(r)<=i&&o}return l.value=l.done?a:t,l},toString:()=>{let e=Math.min(y(w),2e4),t=S(t=>w.next(e*t).value,e,30);return e+"ms "+t}};return w}function tq({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:c}){let d,h,f=e[0],p={done:!1,value:f},m=n*t,v=f+m,g=void 0===o?v:o(v);g!==v&&(m=g-f);let y=e=>-m*Math.exp(-e/r),b=e=>g+y(e),x=e=>{let t=y(e),n=b(e);p.done=Math.abs(t)<=u,p.value=p.done?g:n},w=e=>{let t;if(t=p.value,void 0!==a&&t<a||void 0!==l&&t>l){var n;d=e,h=tX({keyframes:[p.value,(n=p.value,void 0===a?l:void 0===l||Math.abs(a-n)<Math.abs(l-n)?a:l)],velocity:tU(b,e,p.value),damping:i,stiffness:s,restDelta:u,restSpeed:c})}};return w(0),{calculatedDuration:null,next:e=>{let t=!1;return(h||void 0!==d||(t=!0,x(e),w(e)),void 0!==d&&e>=d)?h.next(e-d):(t||x(e),p)}}}let tz=ed(.42,0,1,1),tG=ed(0,0,.58,1),tZ=ed(.42,0,.58,1),tJ={linear:N,easeIn:tz,easeInOut:tZ,easeOut:tG,circIn:ey,circInOut:ex,circOut:eb,backIn:em,backInOut:ev,backOut:ep,anticipate:eg},tQ=e=>{if(w(e)){N(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,n,r,i]=e;return ed(t,n,r,i)}return"string"==typeof e?(N(void 0!==tJ[e],`Invalid easing type '${e}'`),tJ[e]):e};function t0({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){var i;let s=Array.isArray(r)&&"number"!=typeof r[0]?r.map(tQ):tQ(r),o={done:!1,value:t[0]},a=function(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let s=e.length;if(N(s===t.length,"Both input and output ranges must be the same length"),1===s)return()=>t[0];if(2===s&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());let a=function(e,t,n){let r=[],i=n||tB,s=e.length-1;for(let n=0;n<s;n++){let s=i(e[n],e[n+1]);t&&(s=tL(Array.isArray(t)?t[n]||N:t,s)),r.push(s)}return r}(t,r,i),l=a.length,u=n=>{if(o&&n<e[0])return t[0];let r=0;if(l>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=T(e[r],e[r+1],n);return a[r](i)};return n?t=>u(eE(e[0],e[s-1],t)):u}((i=n&&n.length===t.length?n:function(e){let t=[0];return!function(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=T(0,t,r);e.push(tS(n,1,i))}}(t,e.length-1),t}(t),i.map(t=>t*e)),t,{ease:Array.isArray(s)?s:t.map(()=>s||tZ).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(o.value=a(t),o.done=t>=e,o)}}let t1=e=>{let t=({timestamp:t})=>e(t);return{start:()=>X.update(t,!0),stop:()=>q(t),now:()=>z.isProcessing?z.timestamp:J.now()}},t2={decay:tq,inertia:tq,tween:t0,keyframes:t0,spring:tX},t9=e=>e/100;class t3 extends tT{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>
1{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();let{onStop:e}=this.options;e&&e()};let{name:t,motionValue:n,element:r,keyframes:i}=this.options,s=(null==r?void 0:r.KeyframeResolver)||tu,o=(e,t)=>this.onKeyframesResolved(e,t);this.resolver=new s(i,o,t,n,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){let t,n,{type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o,velocity:a=0}=this.options,l=b(r)?r:t2[r]||t0;l!==t0&&"number"!=typeof e[0]&&(t=tL(t9,tB(e[0],e[1])),e=[0,100]);let u=l({...this.options,keyframes:e});"mirror"===o&&(n=l({...this.options,keyframes:[...e].reverse(),velocity:-a})),null===u.calculatedDuration&&(u.calculatedDuration=y(u));let{calculatedDuration:c}=u,d=c+s;return{generator:u,mirroredGenerator:n,mapPercentToKeyframes:t,calculatedDuration:c,resolvedDuration:d,totalDuration:d*(i+1)-s}}onPostResolved(){let{autoplay:e=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&e?this.state=this.pendingPlayState:this.pause()}tick(e,t=!1){let{resolved:n}=this;if(!n){let{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}let{finalKeyframe:r,generator:i,mirroredGenerator:s,mapPercentToKeyframes:o,keyframes:a,calculatedDuration:l,totalDuration:u,resolvedDuration:c}=n;if(null===this.startTime)return i.next(0);let{delay:d,repeat:h,repeatType:f,repeatDelay:p,onUpdate:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-u/this.speed,this.startTime)),t?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;let v=this.currentTime-d*(this.speed>=0?1:-1),g=this.speed>=0?v<0:v>u;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let y=this.currentTime,b=i;if(h){let e=Math.min(this.currentTime,u)/c,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,(t=Math.min(t,h+1))%2&&("reverse"===f?(n=1-n,p&&(n-=p/c)):"mirror"===f&&(b=s)),y=eE(0,1,n)*c}let x=g?{done:!1,value:a[0]}:b.next(y);o&&(x.value=o(x.value));let{done:w}=x;g||null===l||(w=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let E=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return E&&void 0!==r&&(x.value=tP(a,this.options,r)),m&&m(x.value),E&&this.finish(),x}get duration(){let{resolved:e}=this;return e?e.calculatedDuration/1e3:0}get time(){return this.currentTime/1e3}set time(e){e=_(e),this.currentTime=e,null!==this.holdTime||0===this.speed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=this.currentTime/1e3)}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:e=t1,onPlay:t,startTime:n}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),t&&t();let r=this.driver.now();null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=r):this.startTime=null!=n?n:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=null!=(e=this.currentTime)?e:0}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:e}=this.options;e&&e()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}let t5=new Set(["opacity","clipPath","filter","transform"]),t4=f(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),t6={anticipate:eg,backInOut:ev,circInOut:ex};class t8 extends tT{constructor(e){super(e);let{name:t,motionValue:n,element:r,keyframes:i}=this.options;this.resolver=new tx(i,(e,t)=>this.onKeyframesResolved(e,t),t,n,r),this.resolver.scheduleResolve()}initPlayback(e,t){var n;let{duration:r=300,times:i,ease:s,type:o,motionValue:a,name:l,startTime:u}=this.options;if(!a.owner||!a.owner.current)return!1;if("string"==typeof s&&P()&&s in t6&&(s=t6[s]),b((n=this.options).type)||"spring"===n.type||!function e(t){return!!("function"==typeof t&&P()||!t||"string"==typeof t&&(t in C||P())||w(t)||Array.isArray(t)&&t.every(e))}(n.ease)){let{onComplete:t,onUpdate:n,motionValue:a,element:l,...u}=this.options,c=function(e,t){let n=new t3({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0}),r={done:!1,value:e[0]},i=[],s=0;for(;!r.done&&s<2e4;)i.push((r=n.sample(s)).value),s+=10;return{times:void 0,keyframes:i,duration:s-10,ease:"linear"}}(e,u);1===(e=c.keyframes).length&&(e[1]=e[0]),r=c.duration,i=c.times,s=c.ease,o="keyframes"}let c=function(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:
1o="loop",ease:a="easeInOut",times:l}={}){let u={[t]:n};l&&(u.offset=l);let c=function e(t,n){if(t)return"function"==typeof t&&P()?S(t,n):w(t)?A(t):Array.isArray(t)?t.map(t=>e(t,n)||C.easeOut):C[t]}(a,i);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:s+1,direction:"reverse"===o?"alternate":"normal"})}(a.owner.current,l,e,{...this.options,duration:r,times:i,ease:s});return c.startTime=null!=u?u:this.calcStartTime(),this.pendingTimeline?(x(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{let{onComplete:n}=this.options;a.set(tP(e,this.options,t)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:r,times:i,type:o,ease:s,keyframes:e}}get duration(){let{resolved:e}=this;if(!e)return 0;let{duration:t}=e;return t/1e3}get time(){let{resolved:e}=this;if(!e)return 0;let{animation:t}=e;return(t.currentTime||0)/1e3}set time(e){let{resolved:t}=this;if(!t)return;let{animation:n}=t;n.currentTime=_(e)}get speed(){let{resolved:e}=this;if(!e)return 1;let{animation:t}=e;return t.playbackRate}set speed(e){let{resolved:t}=this;if(!t)return;let{animation:n}=t;n.playbackRate=e}get state(){let{resolved:e}=this;if(!e)return"idle";let{animation:t}=e;return t.playState}get startTime(){let{resolved:e}=this;if(!e)return null;let{animation:t}=e;return t.startTime}attachTimeline(e){if(this._resolved){let{resolved:t}=this;if(!t)return N;let{animation:n}=t;x(n,e)}else this.pendingTimeline=e;return N}play(){if(this.isStopped)return;let{resolved:e}=this;if(!e)return;let{animation:t}=e;"finished"===t.playState&&this.updateFinishedPromise(),t.play()}pause(){let{resolved:e}=this;if(!e)return;let{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:e}=this;if(!e)return;let{animation:t,keyframes:n,duration:r,type:i,ease:s,times:o}=e;if("idle"===t.playState||"finished"===t.playState)return;if(this.time){let{motionValue:e,onUpdate:t,onComplete:a,element:l,...u}=this.options,c=new t3({...u,keyframes:n,duration:r,type:i,ease:s,times:o,isGenerator:!0}),d=_(this.time);e.setWithVelocity(c.sample(d-10).value,c.sample(d).value,10)}let{onStop:a}=this.options;a&&a(),this.cancel()}complete(){let{resolved:e}=this;e&&e.animation.finish()}cancel(){let{resolved:e}=this;e&&e.animation.cancel()}static supports(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:s,type:o}=e;if(!t||!t.owner||!(t.owner.current instanceof HTMLElement))return!1;let{onUpdate:a,transformTemplate:l}=t.owner.getProps();return t4()&&n&&t5.has(n)&&!a&&!l&&!r&&"mirror"!==i&&0!==s&&"inertia"!==o}}let t7={type:"spring",stiffness:500,damping:25,restSpeed:10},ne={type:"keyframes",duration:.8},nt={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},nn=(e,t,n,r={},i,s)=>o=>{let a=g(r,e)||{},l=a.delay||r.delay||0,{elapsed:u=0}=r;u-=_(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:e=>{t.set(e),a.onUpdate&&a.onUpdate(e)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:s?void 0:i};!function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}(a)&&(c={...c,...((e,{keyframes:t})=>t.length>2?ne:U.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:t7:nt)(e,c)}),c.duration&&(c.duration=_(c.duration)),c.repeatDelay&&(c.repeatDelay=_(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let d=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(c.duration=0,0===c.delay&&(d=!0)),(eu.current||Y.skipAnimations)&&(d=!0,c.duration=0,c.delay=0),d&&!s&&void 0!==t.get()){let e=tP(c.keyframes,a);if(void 0!==e)return X.update(()=>{c.onUpdate(e),c.onComplete()}),new v([])}return!s&&t8.supports(c)?new t8(c):new t3(c)};function nr(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var s;let{transition:o=e.getDefaultTransition(),transitionEnd:a,...l}=t;r&&(o=r);let u=[],d=i&&e.animationState&&e.animationState.getState()[i];for(let t in l){let r=e.getValue(t,null!=(s=e.latestValues[t])?s:null),i=l[t];if(void 0===i||d&&function({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}(d,t))continue;let a={delay:n,...g(o||{},t)},c=!1;if(window.MotionHandoffAnimation){let n=e.props[el];if(n){let e=window.MotionHandoffAnimation(n,t,X);null!==e&&(a.startTime=e,c=!0)}}eo(e,t),r.start(nn(t,r,i,e.shouldReduceMotion&&H.has(t)?{type:!1}:a,e,c));let h=r.animation;h&&u.push(h)}return a&&Promise.all(u).then(()=>{X.update(()=>{a&&function(e,t){let{transitionEnd:n={},transition:r={},...i}=c(e,t)||{};for(let t in i={...i,...n}){let n=W(i[t]);e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ei(n))}}(e,a)})}),u}function ni(e,t,n={}){var r;let i=c(e,t,"exit"===n.type?null==(r=e.presenceContext)?void 0:r.custom:void 0),{transition:s=e.getDefaultTransition()||{}}=i||{};
1n.transitionOverride&&(s=n.transitionOverride);let o=i?()=>Promise.all(nr(e,i,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:i=0,staggerChildren:o,staggerDirection:a}=s;return function(e,t,n=0,r=0,i=1,s){let o=[],a=(e.variantChildren.size-1)*r,l=1===i?(e=0)=>e*r:(e=0)=>a-e*r;return Array.from(e.variantChildren).sort(ns).forEach((e,r)=>{e.notify("AnimationStart",t),o.push(ni(e,t,{...s,delay:n+l(r)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(o)}(e,t,i+r,o,a,n)}:()=>Promise.resolve(),{when:l}=s;if(!l)return Promise.all([o(),a(n.delay)]);{let[e,t]="beforeChildren"===l?[o,a]:[a,o];return e().then(()=>t())}}function ns(e,t){return e.sortNodePosition(t)}let no=h.length,na=[...d].reverse(),nl=d.length;function nu(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function nc(){return{animate:nu(!0),whileInView:nu(),whileHover:nu(),whileTap:nu(),whileDrag:nu(),whileFocus:nu(),exit:nu()}}class nd{constructor(e){this.isMounted=!1,this.node=e}update(){}}class nh extends nd{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>(function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t))r=Promise.all(t.map(t=>ni(e,t,n)));else if("string"==typeof t)r=ni(e,t,n);else{let i="function"==typeof t?c(e,t,n.custom):t;r=Promise.all(nr(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})})(e,t,n))),n=nc(),r=!0,l=t=>(n,r)=>{var i;let s=c(e,r,"exit"===t?null==(i=e.presenceContext)?void 0:i.custom:void 0);if(s){let{transition:e,transitionEnd:t,...r}=s;n={...n,...r,...t}}return n};function u(u){let{props:c}=e,d=function e(t){if(!t)return;if(!t.isControllingVariants){let n=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(n.initial=t.props.initial),n}let n={};for(let e=0;e<no;e++){let r=h[e],i=t.props[r];(a(i)||!1===i)&&(n[r]=i)}return n}(e.parent)||{},f=[],p=new Set,m={},v=1/0;for(let t=0;t<nl;t++){var g,y;let h=na[t],b=n[h],x=void 0!==c[h]?c[h]:d[h],w=a(x),E=h===u?b.isActive:null;!1===E&&(v=t);let P=x===d[h]&&x!==c[h]&&w;if(P&&r&&e.manuallyAnimateOnMount&&(P=!1),b.protectedKeys={...m},!b.isActive&&null===E||!x&&!b.prevProp||i(x)||"boolean"==typeof x)continue;let T=(g=b.prevProp,"string"==typeof(y=x)?y!==g:!!Array.isArray(y)&&!o(y,g)),S=T||h===u&&b.isActive&&!P&&w||t>v&&w,A=!1,C=Array.isArray(x)?x:[x],M=C.reduce(l(h),{});!1===E&&(M={});let{prevResolvedValues:F={}}=b,k={...F,...M},D=t=>{S=!0,p.has(t)&&(A=!0,p.delete(t)),b.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in k){let t=M[e],n=F[e];if(!m.hasOwnProperty(e))(s(t)&&s(n)?o(t,n):t===n)?void 0!==t&&p.has(e)?D(e):b.protectedKeys[e]=!0:null!=t?D(e):p.add(e)}b.prevProp=x,b.prevResolvedValues=M,b.isActive&&(m={...m,...M}),r&&e.blockInitialAnimation&&(S=!1);let R=!(P&&T)||A;S&&R&&f.push(...C.map(e=>({animation:e,options:{type:h}})))}if(p.size){let t={};p.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=null!=r?r:null}),f.push({animation:t})}let b=!!f.length;return r&&(!1===c.initial||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,b?t(f):Promise.resolve()}return{animateChanges:u,setActive:function(t,r){var i;if(n[t].isActive===r)return Promise.resolve();null==(i=e.variantChildren)||i.forEach(e=>{var n;return null==(n=e.animationState)?void 0:n.setActive(t,r)}),n[t].isActive=r;let s=u(t);for(let e in n)n[e].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=nc(),r=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();i(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),null==(e=this.unmountControls)||e.call(this)}}let nf=0;class np extends nd{constructor(){super(...arguments),this.id=nf++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;let r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then(()=>
1t(this.id))}mount(){let{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}function nm(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function nv(e){return{point:{x:e.pageX,y:e.pageY}}}function ng(e,t,n,r){return nm(e,t,e=>R(e)&&n(e,nv(e)),r)}let ny=(e,t)=>Math.abs(e-t);class nb{constructor(e,t,{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=nE(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){return Math.sqrt(ny(e.x,t.x)**2+ny(e.y,t.y)**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=z;this.history.push({...r,timestamp:i});let{onStart:s,onMove:o}=this.handlers;t||(s&&s(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=nx(t,this.transformPagePoint),X.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=nE("pointercancel"===e.type?this.lastMoveEventInfo:nx(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,s),r&&r(e,s)},!R(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.contextWindow=r||window;let s=nx(nv(e),this.transformPagePoint),{point:o}=s,{timestamp:a}=z;this.history=[{...o,timestamp:a}];let{onSessionStart:l}=t;l&&l(e,nE(s,this.history)),this.removeListeners=tL(ng(this.contextWindow,"pointermove",this.handlePointerMove),ng(this.contextWindow,"pointerup",this.handlePointerUp),ng(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),q(this.updatePoint)}}function nx(e,t){return t?{point:t(e.point)}:e}function nw(e,t){return{x:e.x-t.x,y:e.y-t.y}}function nE({point:e},t){return{point:e,delta:nw(e,nP(t)),offset:nw(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=nP(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>_(.1)));)n--;if(!r)return{x:0,y:0};let s=(i.timestamp-r.timestamp)/1e3;if(0===s)return{x:0,y:0};let o={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(t,.1)}}function nP(e){return e[e.length-1]}function nT(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function nS(e){return e.max-e.min}function nA(e,t,n,r=.5){e.origin=r,e.originPoint=tS(t.min,t.max,e.origin),e.scale=nS(n)/nS(t),e.translate=tS(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function nC(e,t,n,r){nA(e.x,t.x,n.x,r?r.originX:void 0),nA(e.y,t.y,n.y,r?r.originY:void 0)}function nM(e,t,n){e.min=n.min+t.min,e.max=e.min+nS(t)}function nF(e,t,n){e.min=t.min-n.min,e.max=e.min+nS(t)}function nk(e,t,n){nF(e.x,t.x,n.x),nF(e.y,t.y,n.y)}function nD(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function nR(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function nL(e,t,n){return{min:nI(e,t),max:nI(e,n)}}function nI(e,t){return"number"==typeof e?e:e[t]||0}let nj=()=>({translate:0,scale:1,origin:0,originPoint:0}),nO=()=>({x:nj(),y:nj()}),nV=()=>({min:0,max:0}),n_=()=>({x:nV(),y:nV()});function nN(e){return[e("x"),e("y")]}function nB({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function nU(e){return void 0===e||1===e}function nH({scale:e,scaleX:t,scaleY:n}){return!nU(e)||!nU(t)||!nU(n)}function nW(e){return nH(e)||nY(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function nY(e){var t,n;return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}function n$(e,t,n,r,i){return void 0!==i&&(e=r+i*(e-r)),r+n*(e-r)+t}function nK(e,t=0,n=1,r,i){e.min=n$(e.min,t,n,r,i),e.max=n$(e.max,t,n,r,i)}function nX(e,{x:t,y:n}){nK(e.x,t.translate,t.scale,t.originPoint),nK(e.y,n.translate,n.scale,n.originPoint)}function nq(e,t){e.min=e.min+t,e.max=e.max+t}function nz(e,t,n,r,i=.5){let s=tS(e.min,e.max,i);nK(e,t,n,s,r)}function nG(e,t){nz(e.x,t.x,t.scaleX,t.scale,t.originX),nz(e.y,t.y,t.scaleY,t.scale,t.originY)}function nZ(e,t){return nB(function(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}let nJ=({current:e})=>e?e.ownerDocument.defaultView:null,nQ=new WeakMap;
1class n0{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=n_(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let r=e=>{let{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(nv(e).point)},i=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(e){if("x"===e||"y"===e)if(M[e])return null;else return M[e]=!0,()=>{M[e]=!1};return M.x||M.y?null:(M.x=M.y=!0,()=>{M.x=M.y=!1})}(n),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),nN(e=>{let t=this.getAxisMotionValue(e).get()||0;if(eO.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=nS(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&X.postRender(()=>i(e,t)),eo(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},s=(e,t)=>{let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:s}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&null===this.currentDirection){this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(o),null!==this.currentDirection&&i&&i(this.currentDirection);return}this.updateAxis("x",t.point,o),this.updateAxis("y",t.point,o),this.visualElement.render(),s&&s(e,t)},o=(e,t)=>this.stop(e,t),a=()=>nN(e=>{var t;return"paused"===this.getAnimationState(e)&&(null==(t=this.getAxisMotionValue(e).animation)?void 0:t.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new nb(e,{onSessionStart:r,onStart:i,onMove:s,onSessionEnd:o,resumeAnimation:a},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:nJ(this.visualElement)})}stop(e,t){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:r}=t;this.startAnimation(r);let{onDragEnd:i}=this.getProps();i&&X.postRender(()=>i(e,t))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!n1(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),s=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(s=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?tS(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?tS(n,e,r.max):Math.min(e,n)),e}(s,this.constraints[e],this.elastic[e])),i.set(s)}resolveConstraints(){var e;let{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null==(e=this.visualElement.projection)?void 0:e.layout,i=this.constraints;t&&nT(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=function(e,{top:t,left:n,bottom:r,right:i}){return{x:nD(e.x,n,i),y:nD(e.y,t,r)}}(r.layoutBox,t):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:nL(e,"left","right"),y:nL(e,"top","bottom")}}(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&nN(e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(r.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!nT(t))return!1;let r=t.current;N(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let s=function(e,t,n){let r=nZ(e,n),{scroll:i}=t;return i&&(nq(r.x,i.offset.x),nq(r.y,i.offset.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),o=(e=i.layout.layoutBox,{x:nR(e.x,s.x),y:nR(e.y,s.y)});if(n){let e=n(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(o));this.hasMutatedConstraints=!!e,e&&(o=nB(e))}return o}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(nN(o=>
1{if(!n1(o,t,this.currentDirection))return;let l=a&&a[o]||{};s&&(l={min:0,max:0});let u={type:"inertia",velocity:n?e[o]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return eo(this.visualElement,e),n.start(nn(e,n,0,t,this.visualElement,!1))}stopAnimation(){nN(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){nN(e=>{var t;return null==(t=this.getAxisMotionValue(e).animation)?void 0:t.pause()})}getAnimationState(e){var t;return null==(t=this.getAxisMotionValue(e).animation)?void 0:t.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){nN(t=>{let{drag:n}=this.getProps();if(!n1(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:s}=r.layout.layoutBox[t];i.set(e[t]-tS(n,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!nT(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};nN(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){let n=t.get();r[e]=function(e,t){let n=.5,r=nS(e),i=nS(t);return i>r?n=T(t.min,t.max-r,e.min):r>i&&(n=T(e.min,e.max-i,t.min)),eE(0,1,n)}({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),nN(t=>{if(!n1(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:s}=this.constraints[t];n.set(tS(i,s,r[t]))})}addListeners(){if(!this.visualElement.current)return;nQ.set(this.visualElement,this);let e=ng(this.visualElement.current,"pointerdown",e=>{let{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),t=()=>{let{dragConstraints:e}=this.getProps();nT(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),X.read(t);let i=nm(window,"resize",()=>this.scalePositionWithinConstraints()),s=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(nN(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{i(),e(),r(),s&&s()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:s=.35,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:s,dragMomentum:o}}}function n1(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}class n2 extends nd{constructor(e){super(e),this.removeGroupControls=N,this.removeListeners=N,this.controls=new n0(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||N}unmount(){this.removeGroupControls(),this.removeListeners()}}let n9=e=>(t,n)=>{e&&X.postRender(()=>e(t,n))};class n3 extends nd{constructor(){super(...arguments),this.removePointerDownListener=N}onPointerDown(e){this.session=new nb(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:nJ(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:n9(e),onStart:n9(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&X.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=ng(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var n5,n4,n6=n(54568),n8=n(7620);let n7=(0,n8.createContext)(null),re=(0,n8.createContext)({}),rt=(0,n8.createContext)({}),rn={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function rr(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let ri={correct:(e,t)=>
1{if(!t.target)return e;if("string"==typeof e)if(!eV.test(e))return e;else e=parseFloat(e);let n=rr(e,t.target.x),r=rr(e,t.target.y);return`${n}% ${r}%`}},rs={},{schedule:ro,cancel:ra}=K(queueMicrotask,!1);class rl extends n8.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;Object.assign(rs,rc),i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),rn.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,s=n.projection;return s&&(s.isPresent=i,r||e.layoutDependency!==t||void 0===t?s.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?s.promote():s.relegate()||X.postRender(()=>{let e=s.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),ro.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function ru(e){let[t,n]=function(e=!0){let t=(0,n8.useContext)(n7);if(null===t)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,s=(0,n8.useId)();(0,n8.useEffect)(()=>{e&&i(s)},[e]);let o=(0,n8.useCallback)(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,o]:[!0]}(),r=(0,n8.useContext)(re);return(0,n6.jsx)(rl,{...e,layoutGroup:r,switchLayoutGroup:(0,n8.useContext)(rt),isPresent:t,safeToRemove:n})}let rc={borderRadius:{...ri,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ri,borderTopRightRadius:ri,borderBottomLeftRadius:ri,borderBottomRightRadius:ri,boxShadow:{correct:(e,{treeScale:t,projectionDelta:n})=>{let r=eZ.parse(e);if(r.length>5)return e;let i=eZ.createTransformer(e),s=+("number"!=typeof r[0]),o=n.x.scale*t.x,a=n.y.scale*t.y;r[0+s]/=o,r[1+s]/=a;let l=tS(o,a,.5);return"number"==typeof r[2+s]&&(r[2+s]/=l),"number"==typeof r[3+s]&&(r[3+s]/=l),i(r)}}},rd=(e,t)=>e.depth-t.depth;class rh{constructor(){this.children=[],this.isDirty=!1}add(e){Q(this.children,e),this.isDirty=!0}remove(e){ee(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(rd),this.isDirty=!1,this.children.forEach(e)}}function rf(e){let t=es(e)?e.get():e;return t&&"object"==typeof t&&t.mix&&t.toValue?t.toValue():t}let rp=["TopLeft","TopRight","BottomLeft","BottomRight"],rm=rp.length,rv=e=>"string"==typeof e?parseFloat(e):e,rg=e=>"number"==typeof e||eV.test(e);function ry(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let rb=rw(0,.5,eb),rx=rw(.5,.95,N);function rw(e,t,n){return r=>r<e?0:r>t?1:n(T(e,t,r))}function rE(e,t){e.min=t.min,e.max=t.max}function rP(e,t){rE(e.x,t.x),rE(e.y,t.y)}function rT(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function rS(e,t,n,r,i){return e-=t,e=r+1/n*(e-r),void 0!==i&&(e=r+1/i*(e-r)),e}function rA(e,t,[n,r,i],s,o){!function(e,t=0,n=1,r=.5,i,s=e,o=e){if(eO.test(t)&&(t=parseFloat(t),t=tS(o.min,o.max,t/100)-o.min),"number"!=typeof t)return;let a=tS(s.min,s.max,r);e===s&&(a-=t),e.min=rS(e.min,t,n,a,i),e.max=rS(e.max,t,n,a,i)}(e,t[n],t[r],t[i],t.scale,s,o)}let rC=["x","scaleX","originX"],rM=["y","scaleY","originY"];function rF(e,t,n,r){rA(e.x,t,rC,n?n.x:void 0,r?r.x:void 0),rA(e.y,t,rM,n?n.y:void 0,r?r.y:void 0)}function rk(e){return 0===e.translate&&1===e.scale}function rD(e){return rk(e.x)&&rk(e.y)}function rR(e,t){return e.min===t.min&&e.max===t.max}function rL(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function rI(e,t){return rL(e.x,t.x)&&rL(e.y,t.y)}function rj(e){return nS(e.x)/nS(e.y)}function rO(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class rV{constructor(){this.members=[]}add(e){Q(this.members,e),e.scheduleRender()}remove(e){if(ee(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t,n=this.members.findIndex(t=>e===t);if(0===n)return!1;for(let e=n;e>=0;e--){let n=this.members[e];if(!1!==n.isPresent){t=n;break}}return!!t&&(this.promote(t),!0)}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:r}=e.options;!1===r&&n.hide()}}
1exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let r_={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},rN="undefined"!=typeof window&&void 0!==window.MotionDebug,rB=["","X","Y","Z"],rU={visibility:"hidden"},rH=0;function rW(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function rY({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=null==t?void 0:t()){this.id=rH++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,rN&&(r_.totalNodes=r_.resolvedTargetDeltas=r_.recalculatedProjection=0),this.nodes.forEach(rX),this.nodes.forEach(r0),this.nodes.forEach(r1),this.nodes.forEach(rq),rN&&window.MotionDebug.record(r_)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new rh)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new et),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,n=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=t instanceof SVGElement&&"svg"!==t.tagName,this.instance=t;let{layoutId:r,layout:i,visualElement:s}=this.options;if(s&&!s.current&&s.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(i||r)&&(this.isLayoutDirty=!0),e){let n,r=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){let n=J.now(),r=({timestamp:t})=>{let i=t-n;i>=250&&(q(r),e(i-250))};return X.read(r,!0),()=>q(r)}(r,250),rn.hasAnimatedSinceResize&&(rn.hasAnimatedSinceResize=!1,this.nodes.forEach(rQ))})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&s&&(r||i)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let i=this.options.transition||s.getDefaultTransition()||r6,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!rI(this.targetLayout,r)||n,u=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,u);let t={...g(i,"layout"),onPlay:o,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||rQ(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,q(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEac
1h(r2),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:n}=t.options;if(!n)return;let r=n.props[el];if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:e,layoutId:n}=t.options;window.MotionCancelOptimisedAnimation(r,"transform",X,!(e||n))}let{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&e(i)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(rG);return}this.isUpdating||this.nodes.forEach(rZ),this.isUpdating=!1,this.nodes.forEach(rJ),this.nodes.forEach(r$),this.nodes.forEach(rK),this.clearAllSnapshots();let e=J.now();
1z.delta=eE(0,1e3/60,e-z.timestamp),z.timestamp=e,z.isProcessing=!0,G.update.process(z),G.preRender.process(z),G.render.process(z),z.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ro.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(rz),this.sharedNodes.forEach(r9)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,X.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){X.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=n_(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!rD(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,s=r!==this.prevTransformTemplateValue;e&&(t||nW(this.latestValues)||s)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let n=this.measurePageBox(),r=this.removeElementScroll(n);return e&&(r=this.removeTransform(r)),ie((t=r).x),ie(t.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){var e;let{visualElement:t}=this.options;if(!t)return n_();let n=t.measureViewportBox();if(!((null==(e=this.scroll)?void 0:e.wasRoot)||this.path.some(ir))){let{scroll:e}=this.root;e&&(nq(n.x,e.offset.x),nq(n.y,e.offset.y))}return n}removeElementScroll(e){var t;let n=n_();if(rP(n,e),null==(t=this.scroll)?void 0:t.wasRoot)return n;for(let t=0;t<this.path.length;t++){let r=this.path[t],{scroll:i,options:s}=r;r!==this.root&&i&&s.layoutScroll&&(i.wasRoot&&rP(n,e),nq(n.x,i.offset.x),nq(n.y,i.offset.y))}return n}applyTransform(e,t=!1){let n=n_();rP(n,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&nG(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),nW(r.latestValues)&&nG(n,r.latestValues)}return nW(this.latestValues)&&nG(n,this.latestValues),n}removeTransform(e){let t=n_();rP(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!n.instance||!nW(n.latestValues))continue;nH(n.latestValues)&&n.updateSnapshot();let r=n_();rP(r,n.measurePageBox()),rF(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return nW(this.latestValues)&&rF(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==z.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t,n,r,i;let s=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=s.isSharedProjectionDirty);let o=!!this.resumingFrom||this!==s;if(!(e||o&&this.isSharedProjectionDirty||this.isProjectionDirty||(null==(t=this.parent)?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:a,layoutId:l}=this.options;if(this.layout&&(a||l)){if(this.resolvedRelativeTargetAt=z.timestamp,!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=n_(),this.relativeTargetOrigin=n_(),nk(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),rP(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=n_(),this.targetWithTransforms=n_()
1),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),n=this.target,r=this.relativeTarget,i=this.relativeParent.target,nM(n.x,r.x,i.x),nM(n.y,r.y,i.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):rP(this.target,this.layout.layoutBox),nX(this.target,this.targetDelta)):rP(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let e=this.getClosestProjectingParent();e&&!!e.resumingFrom==!!this.resumingFrom&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=n_(),this.relativeTargetOrigin=n_(),nk(this.relativeTargetOrigin,this.target,e.target),rP(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}rN&&r_.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||nH(this.parent.latestValues)||nY(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;let t=this.getLead(),n=!!this.resumingFrom||this!==t,r=!0;if((this.isProjectionDirty||(null==(e=this.parent)?void 0:e.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===z.timestamp&&(r=!1),r)return;let{layout:i,layoutId:s}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(i||s))return;rP(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,a=this.treeScale.y;!function(e,t,n,r=!1){let i,s,o=n.length;if(o){t.x=t.y=1;for(let a=0;a<o;a++){s=(i=n[a]).projectionDelta;let{visualElement:o}=i.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&nG(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,nX(e,s)),r&&nW(i.latestValues)&&nG(e,i.latestValues))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,n),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=n_());let{target:l}=t;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(rT(this.prevProjectionDelta.x,this.projectionDelta.x),rT(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),nC(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===o&&this.treeScale.y===a&&rO(this.projectionDelta.x,this.prevProjectionDelta.x)&&rO(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),rN&&r_.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){var t;if(null==(t=this.options.visualElement)||t.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=nO(),this.projectionDelta=nO(),this.projectionDeltaWithTransform=nO()}setAnimationOrigin(e,t=!1){let n,r=this.snapshot,i=r?r.latestValues:{},s={...this.latestValues},o=nO();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let a=n_(),l=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),c=!u||u.members.length<=1,d=!!(l&&!c&&!0===this.options.crossfade&&!this.path.some(r4));this.animationProgress=0,this.mixTargetDelta=t=>{let r=t/1e3;if(r3(o.x,e.x,r),r3(o.y,e.y,r),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,h,f,p,m,v;nk(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),f=this.relativeTarget,p=this.relativeTargetOrigin,m=a,v=r,r5(f.x,p.x,m.x,v),r5(f.y,p.y,m.y,v),n&&(u=this.relativeTarget,h=n,rR(u.x,h.x)&&rR(u.y,h.y))&&(this.isProjectionDirty=!1),n||(n=n_()),rP(n,this.relativeTarget)}l&&(this.animationValues=s,function(e,t,n,r,i,s){i?(e.opacity=tS(0,void 0!==n.opacity?n.opacity:1,rb(r)),e.o
1pacityExit=tS(void 0!==t.opacity?t.opacity:1,0,rx(r))):s&&(e.opacity=tS(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let i=0;i<rm;i++){let s=`border${rp[i]}Radius`,o=ry(t,s),a=ry(n,s);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||rg(o)===rg(a)?(e[s]=Math.max(tS(rv(o),rv(a),r),0),(eO.test(a)||eO.test(o))&&(e[s]+="%")):e[s]=a)}(t.rotate||n.rotate)&&(e.rotate=tS(t.rotate||0,n.rotate||0,r))}(s,i,this.latestValues,r,d,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(q(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=X.update(()=>{rn.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){let r=es(0)?0:ei(e);return r.start(nn("",r,1e3,n)),r.animation}(0,0,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.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);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&it(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||n_();let t=nS(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=nS(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}rP(t,n),nG(t,i),nC(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new rV),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){var e;let{layoutId:t}=this.options;return t&&(null==(e=this.getStack())?void 0:e.lead)||this}getPrevLead(){var e;let{layoutId:t}=this.options;return t?null==(e=this.getStack())?void 0:e.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&rW("z",e,r,this.animationValues);for(let t=0;t<rB.length;t++)rW(`rotate${rB[t]}`,e,r,this.animationValues),rW(`skew${rB[t]}`,e,r,this.animationValues);for(let t in e.render(),r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}getProjectionStyles(e){var t,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return rU;let r={visibility:""},i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=rf(null==e?void 0:e.pointerEvents)||"",r.transform=i?i(this.latestValues,""):"none",r;let s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){let t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=rf(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!nW(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1),t}let o=s.animationValues||s.latestValues;this.applyTransformsToTarget(),r.transform=function(e,t,n){let r="",i=e.x.translate/t.x,s=e.y.translate/t.y,o=(null==n?void 0:n.z)||0;if((i||s||o)&&(r=`translate3d(${i}px, ${s}px, ${o}px) `),(1!==t.x||1!==t.y)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,rotateX:i,rotateY:s,skewX:o,skewY:a}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotateX(${i}deg) `),s&&(r+=`rotateY(${s}deg) `),o&&(r+=`skewX(${o}deg) `),a&&(r+=`skewY(${a}deg) `)}let a=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==a||1!==l)&&(r+=`scale(${a}, ${l}
1)`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,o),i&&(r.transform=i(o,r.transform));let{x:a,y:l}=this.projectionDelta;for(let e in r.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,s.animationValues?r.opacity=s===this?null!=(n=null!=(t=o.opacity)?t:this.latestValues.opacity)?n:1:this.preserveOpacity?this.latestValues.opacity:o.opacityExit:r.opacity=s===this?void 0!==o.opacity?o.opacity:"":void 0!==o.opacityExit?o.opacityExit:0,rs){if(void 0===o[e])continue;let{correct:t,applyTo:n}=rs[e],i="none"===r.transform?o[e]:t(o[e],s);if(n){let e=n.length;for(let t=0;t<e;t++)r[n[t]]=i}else r[e]=i}return this.options.layoutId&&(r.pointerEvents=s===this?rf(null==e?void 0:e.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>{var t;return null==(t=e.currentAnimation)?void 0:t.stop()}),this.root.nodes.forEach(rG),this.root.sharedNodes.clear()}}}function r$(e){e.updateLayout()}function rK(e){var t;let n=(null==(t=e.resumeFrom)?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){let{layoutBox:t,measuredBox:r}=e.layout,{animationType:i}=e.options,s=n.source!==e.layout.source;"size"===i?nN(e=>{let r=s?n.measuredBox[e]:n.layoutBox[e],i=nS(r);r.min=t[e].min,r.max=r.min+i}):it(i,n.layoutBox,t)&&nN(r=>{let i=s?n.measuredBox[r]:n.layoutBox[r],o=nS(t[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=nO();nC(o,t,n.layoutBox);let a=nO();s?nC(a,e.applyTransform(r,!0),n.measuredBox):nC(a,t,n.layoutBox);let l=!rD(o),u=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:s}=r;if(i&&s){let o=n_();nk(o,n.layoutBox,i.layoutBox);let a=n_();nk(a,t,s.layoutBox),rI(o,a)||(u=!0),r.options.layoutRoot&&(e.relativeTarget=a,e.relativeTargetOrigin=o,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function rX(e){rN&&r_.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function rq(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function rz(e){e.clearSnapshot()}function rG(e){e.clearMeasurements()}function rZ(e){e.isLayoutDirty=!1}function rJ(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function rQ(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function r0(e){e.resolveTargetDelta()}function r1(e){e.calcProjection()}function r2(e){e.resetSkewAndRotation()}function r9(e){e.removeLeadSnapshot()}function r3(e,t,n){e.translate=tS(t.translate,0,n),e.scale=tS(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function r5(e,t,n,r){e.min=tS(t.min,n.min,r),e.max=tS(t.max,n.max,r)}function r4(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let r6={duration:.45,ease:[.4,0,.1,1]},r8=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),r7=r8("applewebkit/")&&!r8("chrome/")?Math.round:N;function ie(e){e.min=r7(e.min),e.max=r7(e.max)}function it(e,t,n){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(rj(t)-rj(n)))}function ir(e){var t;return e!==e.root&&(null==(t=e.scroll)?void 0:t.wasRoot)}let ii=rY({attachResizeListener:(e,t)=>nm(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),is={current:void 0},io=rY({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!is.current){let e=new ii({});e.mount(window),e.setOptions({layoutScroll:!0}),is.current=e}return is.current},resetTransform:(e,t)=>
1{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function ia(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);let i=r["onHover"+n];i&&X.postRender(()=>i(t,nv(t)))}class il extends nd{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){let[r,i,s]=F(e,n),o=k(e=>{let{target:n}=e,r=t(e);if("function"!=typeof r||!n)return;let s=k(e=>{r(e),n.removeEventListener("pointerleave",s)});n.addEventListener("pointerleave",s,i)});return r.forEach(e=>{e.addEventListener("pointerenter",o,i)}),s}(e,e=>(ia(this.node,e,"Start"),e=>ia(this.node,e,"End"))))}unmount(){}}class iu extends nd{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=tL(nm(this.node.current,"focus",()=>this.onFocus()),nm(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function ic(e,t,n){let{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===n);let i=r["onTap"+("End"===n?"":n)];i&&X.postRender(()=>i(t,nv(t)))}class id extends nd{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){let[r,i,s]=F(e,n),o=e=>{let r=e.currentTarget;if(!V(e)||I.has(r))return;I.add(r);let s=t(e),o=(e,t)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),V(e)&&I.has(r)&&(I.delete(r),"function"==typeof s&&s(e,{success:t}))},a=e=>{o(e,n.useGlobalTarget||D(r,e.target))},l=e=>{o(e,!1)};window.addEventListener("pointerup",a,i),window.addEventListener("pointercancel",l,i)};return r.forEach(e=>{L.has(e.tagName)||-1!==e.tabIndex||null!==e.getAttribute("tabindex")||(e.tabIndex=0),(n.useGlobalTarget?window:e).addEventListener("pointerdown",o,i),e.addEventListener("focus",e=>((e,t)=>{let n=e.currentTarget;if(!n)return;let r=j(()=>{if(I.has(n))return;O(n,"down");let e=j(()=>{O(n,"up")});n.addEventListener("keyup",e,t),n.addEventListener("blur",()=>O(n,"cancel"),t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)})(e,i),i)}),s}(e,e=>(ic(this.node,e,"Start"),(e,{success:t})=>ic(this.node,e,t?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let ih=new WeakMap,ip=new WeakMap,im=e=>{let t=ih.get(e.target);t&&t(e)},iv=e=>{e.forEach(im)},ig={some:0,all:1};class iy extends nd{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:i}=e,s={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:ig[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),s=t?n:r;s&&s(e)};var a=this.node.current;let l=function({root:e,...t}){let n=e||document;ip.has(n)||ip.set(n,{});let r=ip.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(iv,{root:e,...t})),r[i]}(s);return ih.set(a,o),l.observe(a),()=>{ih.delete(a),l.unobserve(a)}}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}let ib=(0,n8.createContext)({strict:!1}),ix=(0,n8.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),iw=(0,n8.createContext)({});function iE(e){return i(e.animate)||h.some(t=>a(e[t]))}function iP(e){return!!(iE(e)||e.variants)}function iT(e){return Array.isArray(e)?e.join(" "):e}let iS="undefined"!=typeof window,iA={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},iC={};for(let e in iA)iC[e]={isEnabled:t=>iA[e].some(e=>!!t[e])};let iM=Symbol.for("motionComponentSymbol"),iF=iS?n8.useLayoutEffect:n8.useEffect,ik=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function iD(e){if("string"!=typeof e||e.includes("-"));else if(ik.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}let iR=e=>(t,n)=>{let r=(0,n8.useContext)(iw),s=(0,n8.useContext)(n7),o=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,s,o){let a={latestValues:function(e,t,n,r){let s={},o=r(e,{});for(let e in o)s[e]=rf(o[e]);let{initial:a,animate:l}=e,c=iE(e),d=iP(e);t&&d&&!c&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===l&&(l=t.animate));
1let h=!!n&&!1===n.initial,f=(h=h||!1===a)?l:a;if(f&&"boolean"!=typeof f&&!i(f)){let t=Array.isArray(f)?f:[f];for(let n=0;n<t.length;n++){let r=u(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=h?t.length-1:0;t=t[e]}null!==t&&(s[e]=t)}for(let t in e)s[t]=e[t]}}}return s}(r,s,o,e),renderState:t()};return n&&(a.onMount=e=>n({props:r,current:e,...a}),a.onUpdate=e=>n(e)),a})(e,t,r,s);return n?o():function(e){let t=(0,n8.useRef)(null);return null===t.current&&(t.current=e()),t.current}(o)},iL=(e,t)=>t&&"number"==typeof e?t.transform(e):e,iI={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ij=B.length;function iO(e,t,n){let{style:r,vars:i,transformOrigin:s}=e,o=!1,a=!1;for(let e in t){let n=t[e];if(U.has(e)){o=!0;continue}if(th(e)){i[e]=n;continue}{let t=iL(n,e9[e]);e.startsWith("origin")?(a=!0,s[e]=t):r[e]=t}}if(!t.transform&&(o||n?r.transform=function(e,t,n){let r="",i=!0;for(let s=0;s<ij;s++){let o=B[s],a=e[o];if(void 0===a)continue;let l=!0;if(!(l="number"==typeof a?a===+!!o.startsWith("scale"):0===parseFloat(a))||n){let e=iL(a,e9[o]);if(!l){i=!1;let t=iI[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}(t,e.transform,n):r.transform&&(r.transform="none")),a){let{originX:e="50%",originY:t="50%",originZ:n=0}=s;r.transformOrigin=`${e} ${t} ${n}`}}let iV={offset:"stroke-dashoffset",array:"stroke-dasharray"},i_={offset:"strokeDashoffset",array:"strokeDasharray"};function iN(e,t,n){return"string"==typeof e?e:eV.transform(t+n*e)}function iB(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:s,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u},c,d){if(iO(e,u,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:h,style:f,dimensions:p}=e;h.transform&&(p&&(f.transform=h.transform),delete h.transform),p&&(void 0!==i||void 0!==s||f.transform)&&(f.transformOrigin=function(e,t,n){let r=iN(t,e.x,e.width),i=iN(n,e.y,e.height);return`${r} ${i}`}(p,void 0!==i?i:.5,void 0!==s?s:.5)),void 0!==t&&(h.x=t),void 0!==n&&(h.y=n),void 0!==r&&(h.scale=r),void 0!==o&&function(e,t,n=1,r=0,i=!0){e.pathLength=1;let s=i?iV:i_;e[s.offset]=eV.transform(-r);let o=eV.transform(t),a=eV.transform(n);e[s.array]=`${o} ${a}`}(h,o,a,l,!1)}let iU=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),iH=()=>({...iU(),attrs:{}}),iW=e=>"string"==typeof e&&"svg"===e.toLowerCase();function iY(e,{style:t,vars:n},r,i){for(let s in Object.assign(e.style,t,i&&i.getProjectionStyles(r)),n)e.style.setProperty(s,n[s])}let i$=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function iK(e,t,n,r){for(let n in iY(e,t,void 0,r),t.attrs)e.setAttribute(i$.has(n)?n:ea(n),t.attrs[n])}function iX(e,{layout:t,layoutId:n}){return U.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!rs[e]||"opacity"===e)}function iq(e,t,n){var r;let{style:i}=e,s={};for(let o in i)(es(i[o])||t.style&&es(t.style[o])||iX(o,e)||(null==(r=null==n?void 0:n.getValue(o))?void 0:r.liveStyle)!==void 0)&&(s[o]=i[o]);return s}function iz(e,t,n){let r=iq(e,t,n);for(let n in e)(es(e[n])||es(t[n]))&&(r[-1!==B.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return r}let iG=["x","y","width","height","cx","cy","r"],iZ={useVisualState:iR({scrapeMotionValuesFromProps:iz,createRenderState:iH,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let s=!!e.drag;if(!s){for(let e in i)if(U.has(e)){s=!0;break}}if(!s)return;let o=!t;if(t)for(let n=0;n<iG.length;n++){let r=iG[n];e[r]!==t[r]&&(o=!0)}o&&X.read(()=>{!function(e,t){try{t.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(e){t.dimensions={x:0,y:0,width:0,height:0}}}(n,r),X.render(()=>{iB(r,i,iW(n.tagName),e.transformTemplate),iK(n,r)})})}})},iJ={useVisualState:iR({scrapeMotionValuesFromProps:iq,createRenderState:iU})};
1function iQ(e,t,n){for(let r in t)es(t[r])||iX(r,n)||(e[r]=t[r])}let i0=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function i1(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||i0.has(e)}let i2=e=>!i1(e);try{!function(e){e&&(i2=t=>t.startsWith("on")?!i1(t):e(t))}(require("@emotion/is-prop-valid").default)}catch(e){}let i9={current:null},i3={current:!1},i5=[...ty,eH,eZ],i4=new WeakMap,i6=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class i8{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:i,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=tu,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=J.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,X.render(this.render,!1,!0))};let{latestValues:a,renderState:l,onUpdate:u}=s;this.onUpdate=u,this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=o,this.blockInitialAnimation=!!i,this.isControllingVariants=iE(t),this.isVariantNode=iP(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:c,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];void 0!==a[e]&&es(t)&&t.set(a[e],!1)}}mount(e){this.current=e,i4.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((e,t)=>this.bindToMotionValue(t,e)),i3.current||function(){if(i3.current=!0,iS)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>i9.current=e.matches;e.addListener(t),t()}else i9.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||i9.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in i4.delete(this.current),this.projection&&this.projection.unmount(),q(this.notifyUpdate),q(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){let n;this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let r=U.has(e),i=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&X.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=t.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{i(),s(),n&&n(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in iC){let t=iC[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];
1t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):n_()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<i6.length;t++){let n=i6[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){for(let r in t){let i=t[r],s=n[r];if(es(i))e.addValue(r,i);else if(es(s))e.addValue(r,ei(i,{owner:e}));else if(s!==i)if(e.hasValue(r)){let t=e.getValue(r);!0===t.liveStyle?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,ei(void 0!==t?t:i,{owner:e}))}}for(let r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=ei(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){var n;let r=void 0===this.latestValues[e]&&this.current?null!=(n=this.getBaseTargetFromProps(this.props,e))?n:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];if(null!=r){if("string"==typeof r&&(tc(r)||ew(r)))r=parseFloat(r);else{let n;n=r,!i5.find(tg(n))&&eZ.test(t)&&(r=e4(e,t))}this.setBaseTarget(e,es(r)?r.get():r)}return es(r)?r.get():r}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;let n,{initial:r}=this.props;if("string"==typeof r||"object"==typeof r){let i=u(this.props,r,null==(t=this.presenceContext)?void 0:t.custom);i&&(n=i[e])}if(r&&void 0!==n)return n;let i=this.getBaseTargetFromProps(this.props,e);return void 0===i||es(i)?void 0!==this.initialValues[e]&&void 0===n?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new et),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class i7 extends i8{constructor(){super(...arguments),this.KeyframeResolver=tx}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;es(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}class se extends i7{constructor(){super(...arguments),this.type="html",this.renderInstance=iY}readValueFromInstance(e,t){if(U.has(t)){let e=e5(t);return e&&e.default||0}{let n=window.getComputedStyle(e),r=(th(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return nZ(e,t)}build(e,t,n){iO(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return iq(e,t,n)}}class st extends i7{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=n_}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(U.has(t)){let e=e5(t);return e&&e.default||0}return t=i$.has(t)?t:ea(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return iz(e,t,n)}
1build(e,t,n){iB(e,t,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,n,r){iK(e,t,n,r)}mount(e){this.isSVGTag=iW(e.tagName),super.mount(e)}}let sn=function(e){if("undefined"==typeof Proxy)return e;let t=new Map;return new Proxy((...t)=>e(...t),{get:(n,r)=>"create"===r?e:(t.has(r)||t.set(r,e(r)),t.get(r))})}((n5={animation:{Feature:nh},exit:{Feature:np},inView:{Feature:iy},tap:{Feature:id},focus:{Feature:iu},hover:{Feature:il},pan:{Feature:n3},drag:{Feature:n2,ProjectionNode:io,MeasureLayout:ru},layout:{ProjectionNode:io,MeasureLayout:ru}},n4=(e,t)=>iD(e)?new st(t):new se(t,{allowProjection:e!==n8.Fragment}),function(e,{forwardMotionProps:t}={forwardMotionProps:!1}){return function(e){var t,n;let{preloadedFeatures:r,createVisualElement:i,useRender:s,useVisualState:o,Component:l}=e;function u(e,t){var n;let r,u={...(0,n8.useContext)(ix),...e,layoutId:function(e){let{layoutId:t}=e,n=(0,n8.useContext)(re).id;return n&&void 0!==t?n+"-"+t:t}(e)},{isStatic:c}=u,d=function(e){let{initial:t,animate:n}=function(e,t){if(iE(e)){let{initial:t,animate:n}=e;return{initial:!1===t||a(t)?t:void 0,animate:a(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,n8.useContext)(iw));return(0,n8.useMemo)(()=>({initial:t,animate:n}),[iT(t),iT(n)])}(e),h=o(e,c);if(!c&&iS){(0,n8.useContext)(ib).strict;let e=function(e){let{drag:t,layout:n}=iC;if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==n?void 0:n.isEnabled(e))?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(u);r=e.MeasureLayout,d.visualElement=function(e,t,n,r,i){var s,o;let{visualElement:a}=(0,n8.useContext)(iw),l=(0,n8.useContext)(ib),u=(0,n8.useContext)(n7),c=(0,n8.useContext)(ix).reducedMotion,d=(0,n8.useRef)(null);r=r||l.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:a,props:n,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:c}));let h=d.current,f=(0,n8.useContext)(rt);h&&!h.projection&&i&&("html"===h.type||"svg"===h.type)&&function(e,t,n,r){let{layoutId:i,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!o||a&&nT(a),visualElement:e,animationType:"string"==typeof s?s:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}(d.current,n,i,f);let p=(0,n8.useRef)(!1);(0,n8.useInsertionEffect)(()=>{h&&p.current&&h.update(n,u)});let m=n[el],v=(0,n8.useRef)(!!m&&!(null==(s=window.MotionHandoffIsComplete)?void 0:s.call(window,m))&&(null==(o=window.MotionHasOptimisedAnimation)?void 0:o.call(window,m)));return iF(()=>{h&&(p.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),ro.render(h.render),v.current&&h.animationState&&h.animationState.animateChanges())}),(0,n8.useEffect)(()=>{h&&(!v.current&&h.animationState&&h.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var e;null==(e=window.MotionHandoffMarkAsComplete)||e.call(window,m)}),v.current=!1))}),h}(l,h,u,i,e.ProjectionNode)}return(0,n6.jsxs)(iw.Provider,{value:d,children:[r&&d.visualElement?(0,n6.jsx)(r,{visualElement:d.visualElement,...u}):null,s(l,e,(n=d.visualElement,(0,n8.useCallback)(e=>{e&&h.onMount&&h.onMount(e),n&&(e?n.mount(e):n.unmount()),t&&("function"==typeof t?t(e):nT(t)&&(t.current=e))},[n])),h,c,d.visualElement)]})}r&&function(e){for(let t in e)iC[t]={...iC[t],...e[t]}}(r),u.displayName="motion.".concat("string"==typeof l?l:"create(".concat(null!=(n=null!=(t=l.displayName)?t:l.name)?n:"",")"));let c=(0,n8.forwardRef)(u);return c[iM]=l,c}({...iD(e)?iZ:iJ,preloadedFeatures:n5,useRender:function(e=!1){return(t,n,r,{latestValues:i},s)=>{let o=(iD(t)?function(e,t,n,r){let i=(0,n8.useMemo)(()=>{let n=iH();return iB(n,t,iW(r),e.transformTemplate),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};iQ(t,e.style,e),i.style={...t,...i.style}}return i}:function(e,t){let n={},r=function(e,t){let n=e.style||{},r={};return iQ(r,n,e),Object.assign(r,function({transformTemplate:e},t){return(0,n8.useMemo)(()=>{let n=iU();return iO(n,t,e),Object.assign({},n.vars,n.style)},[t])}(e,t)),r}(e,t);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}
1`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n})(n,i,s,t),a=function(e,t,n){let r={};for(let i in e)("values"!==i||"object"!=typeof e.values)&&(i2(i)||!0===n&&i1(i)||!t&&!i1(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(n,"string"==typeof t,e),l=t!==n8.Fragment?{...a,...o,ref:r}:{},{children:u}=n,c=(0,n8.useMemo)(()=>es(u)?u.get():u,[u]);return(0,n8.createElement)(t,{...l,children:c})}}(t),createVisualElement:n4,Component:e})}))},71019:(e,t,n)=>{"use strict";n.d(t,{e:()=>function e(){let t=[],n={addEventListener:(e,t,r,i)=>(e.addEventListener(t,r,i),n.add(()=>e.removeEventListener(t,r,i))),requestAnimationFrame(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let i=requestAnimationFrame(...t);return n.add(()=>cancelAnimationFrame(i))},nextFrame(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.requestAnimationFrame(()=>n.requestAnimationFrame(...t))},setTimeout(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let i=setTimeout(...t);return n.add(()=>clearTimeout(i))},microTask(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];let s={current:!0};return(0,r._)(()=>{s.current&&t[0]()}),n.add(()=>{s.current=!1})},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add(()=>{Object.assign(e.style,{[t]:r})})},group(t){let n=e();return t(n),this.add(()=>n.dispose())},add:e=>(t.includes(e)||t.push(e),()=>{let n=t.indexOf(e);if(n>=0)for(let e of t.splice(n,1))e()}),dispose(){for(let e of t.splice(0))e()}};return n}});var r=n(50010)},80229:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(92068).A)("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]])},83987:(e,t,n)=>{"use strict";n.d(t,{P:()=>a,a:()=>o});var r=n(7620),i=n(35919);let s=Symbol();function o(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return Object.assign(e,{[s]:t})}function a(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let o=(0,r.useRef)(t);(0,r.useEffect)(()=>{o.current=t},[t]);let a=(0,i._)(e=>{for(let t of o.current)null!=t&&("function"==typeof t?t(e):t.current=e)});return t.every(e=>null==e||(null==e?void 0:e[s]))?void 0:a}},89109:(e,t,n)=>{"use strict";n.d(t,{s:()=>s});var r=n(7620),i=n(61443);let s=(e,t)=>{i._.isServer?(0,r.useEffect)(e,t):(0,r.useLayoutEffect)(e,t)}},98720:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let{html:t,height:n=null,width:s=null,children:o,dataNtpc:a=""}=e;return(0,i.useEffect)(()=>{a&&performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-".concat(a)}})},[a]),(0,r.jsxs)(r.Fragment,{children:[o,t?(0,r.jsx)("div",{style:{height:null!=n?"".concat(n,"px"):"auto",width:null!=s?"".concat(s,"px"):"auto"},"data-ntpc":a,dangerouslySetInnerHTML:{__html:t}}):null]})};let r=n(54568),i=n(7620)},98846:(e,t,n)=>{"use strict";n.d(t,{Y:()=>s});var r=n(7620),i=n(89109);function s(e){let t=(0,r.useRef)(e);return(0,i.s)(()=>{t.current=e},[e]),t}},99901:(e,t,n)=>{"use strict";function r(e,t){for(var n=arguments.length,i=Array(n>2?n-2:0),s=2;s<n;s++)i[s-2]=arguments[s];if(e in t){let n=t[e];return"function"==typeof n?n(...i):n}let o=Error('Tried to handle "'.concat(e,'" but there is no handler defined. Only defined handlers are: ').concat(Object.keys(t).map(e=>'"'.concat(e,'"')).join(", "),"."));throw Error.captureStackTrace&&Error.captureStackTrace(o,r),o}n.d(t,{Y:()=>r})}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.