1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[553],{11825:function(e,t,n){"use strict";n.d(t,{Ry:function(){return u}});var r=new WeakMap,o=new WeakMap,i={},a=0,s=function(e){return e&&(e.host||s(e.parentNode))},l=function(e,t,n,l){var u=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=s(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});i[n]||(i[n]=new WeakMap);var c=i[n],d=[],f=new Set,p=new Set(u),h=function(e){!e||f.has(e)||(f.add(e),h(e.parentNode))};u.forEach(h);var v=function(e){!e||p.has(e)||Array.prototype.forEach.call(e.children,function(e){if(f.has(e))v(e);else try{var t=e.getAttribute(l),i=null!==t&&"false"!==t,a=(r.get(e)||0)+1,s=(c.get(e)||0)+1;r.set(e,a),c.set(e,s),d.push(e),1===a&&i&&o.set(e,!0),1===s&&e.setAttribute(n,"true"),i||e.setAttribute(l,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return v(t),f.clear(),a++,function(){d.forEach(function(e){var t=r.get(e)-1,i=c.get(e)-1;r.set(e,t),c.set(e,i),t||(o.has(e)||e.removeAttribute(l),o.delete(e)),i||e.removeAttribute(n)}),--a||(r=new WeakMap,r=new WeakMap,o=new WeakMap,i={})}},u=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),l(r,o,n,"aria-hidden")):function(){return null}}},16319:function(e,t,n){"use strict";n.d(t,{Z:function(){return Z}});var r,o,i,a,s,l,u,c=function(){return(c=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function d(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}"function"==typeof SuppressedError&&SuppressedError;var f=n(7653),p="right-scroll-bar-position",h="width-before-scroll-bar";function v(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var m="undefined"!=typeof window?f.useLayoutEffect:f.useEffect,g=new WeakMap,y=(void 0===o&&(o={}),(void 0===i&&(i=function(e){return e}),a=[],s=!1,l={read:function(){if(s)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return a.length?a[a.length-1]:null},useMedium:function(e){var t=i(e,s);return a.push(t),function(){a=a.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(s=!0;a.length;){var t=a;a=[],t.forEach(e)}a={push:function(t){return e(t)},filter:function(){return a}}},assignMedium:function(e){s=!0;var t=[];if(a.length){var n=a;a=[],n.forEach(e),t=a}var r=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(r)};o(),a={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),a}}}}).options=c({async:!0,ssr:!1},o),l),b=function(){},w=f.forwardRef(function(e,t){var n,r,o,i,a=f.useRef(null),s=f.useState({onScrollCapture:b,onWheelCapture:b,onTouchMoveCapture:b}),l=s[0],u=s[1],p=e.forwardProps,h=e.children,w=e.className,x=e.removeScrollBar,E=e.enabled,T=e.shards,C=e.sideCar,P=e.noRelative,M=e.noIsolation,S=e.inert,R=e.allowPinchZoom,A=e.as,k=e.gapMode,L=d(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),D=(n=[a,t],r=function(e){return n.forEach(function(t){return v(t,e)})},(o=(0,f.useState)(function(){return{value:null,callback:r,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=r,i=o.facade,m(function(){var e=g.get(i);if(e){var t=new Set(e),r=new Set(n),o=i.current;t.forEach(function(e){r.has(e)||v(e,null)}),r.forEach(function(e){t.has(e)||v(e,o)})}g.set(i,n)},[n]),i),j=c(c({},L),l);return f.createElement(f.Fragment,null,E&&f.createElement(C,{sideCar:y,removeScrollBar:x,shards:T,noRelative:P,noIsolation:M,inert:S,setCallbacks:u,allowPinchZoom:!!R,lockRef:a,gapMode:k}),p?f.cloneElement(f.Children.only(h),c(c({},j),{ref:D})):f.createElement(void 0===A?"div":A,c({},j,{className:w,ref:D}),h))});w.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},w.classNames={fullWidth:h,zeroRight:p};var x=function(e){var t=e.sideCar,n=d(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return f.createElement(r,c({},n))};
1x.isSideCarExport=!0;var E=function(){var e=0,t=null;return{add:function(o){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=r||n.nc;return t&&e.setAttribute("nonce",t),e}())){var i,a;(i=t).styleSheet?i.styleSheet.cssText=o:i.appendChild(document.createTextNode(o)),a=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(a)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},T=function(){var e=E();return function(t,n){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},C=function(){var e=T();return function(t){return e(t.styles,t.dynamic),null}},P={left:0,top:0,right:0,gap:0},M=function(e){return parseInt(e||"",10)||0},S=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[M(n),M(r),M(o)]},R=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return P;var t=S(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},A=C(),k="data-scroll-locked",L=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body[").concat(k,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(p," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(h," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(p," .").concat(p," {\n right: 0 ").concat(r,";\n }\n \n .").concat(h," .").concat(h," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(k,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},D=function(){var e=parseInt(document.body.getAttribute(k)||"0",10);return isFinite(e)?e:0},j=function(){f.useEffect(function(){return document.body.setAttribute(k,(D()+1).toString()),function(){var e=D()-1;e<=0?document.body.removeAttribute(k):document.body.setAttribute(k,e.toString())}},[])},O=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;j();var i=f.useMemo(function(){return R(o)},[o]);return f.createElement(A,{styles:L(i,!t,o,n?"":"!important")})},V=!1;if("undefined"!=typeof window)try{var I=Object.defineProperty({},"passive",{get:function(){return V=!0,!0}});window.addEventListener("test",I,I),window.removeEventListener("test",I,I)}catch(e){V=!1}var N=!!V&&{passive:!1},F=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},W=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),_(e,r)){var o=B(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},_=function(e,t){return"v"===e?F(t,"overflowY"):F(t,"overflowX")},B=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},U=function(e,t,n,r,o){var i,a=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),s=a*r,l=n.target,u=t.contains(l),c=!1,d=s>0,f=0,p=0;do{if(!l)break;var h=B(e,l),v=h[0],m=h[1]-h[2]-a*v;(v||m)&&_(e,l)&&(f+=m,p+=v);var g=l.parentNode;l=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return d&&(o&&1>Math.abs(f)||!o&&s>f)?c=!0:!d&&(o&&1>Math.abs(p)||!o&&-s>p)&&(c=!0),c},H=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},K=function(e){return[e.deltaX,e.deltaY]},z=function(e){return e&&"current"in e?e.current:e},Y=0,$=[],X=(u=function(e){var t=f.useRef([]),n=f.useRef([0,0]),r=f.useRef(),o=f.useState(Y++)[0],i=f.useState(C)[0],a=f.useRef(e);f.useEffect(function(){a.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(function(e,t,n){if(n||2==arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}
1)([e.lockRef.current],(e.shards||[]).map(z),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=f.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var o,i=H(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-i[0],u="deltaY"in e?e.deltaY:s[1]-i[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=W(d,c);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=W(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(l||u)&&(r.current=o),!o)return!0;var p=r.current||o;return U(p,t,e,"h"===p?l:u,!0)},[]),l=f.useCallback(function(e){if($.length&&$[$.length-1]===i){var n="deltaY"in e?K(e):H(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(a.current.shards||[]).map(z).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?s(e,o[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),u=f.useCallback(function(e,n,r,o){var i={name:e,delta:n,target:r,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),c=f.useCallback(function(e){n.current=H(e),r.current=void 0},[]),d=f.useCallback(function(t){u(t.type,K(t),t.target,s(t,e.lockRef.current))},[]),p=f.useCallback(function(t){u(t.type,H(t),t.target,s(t,e.lockRef.current))},[]);f.useEffect(function(){return $.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",l,N),document.addEventListener("touchmove",l,N),document.addEventListener("touchstart",c,N),function(){$=$.filter(function(e){return e!==i}),document.removeEventListener("wheel",l,N),document.removeEventListener("touchmove",l,N),document.removeEventListener("touchstart",c,N)}},[]);var h=e.removeScrollBar,v=e.inert;return f.createElement(f.Fragment,null,v?f.createElement(i,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,h?f.createElement(O,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},y.useMedium(u),x),G=f.forwardRef(function(e,t){return f.createElement(w,c({},e,{ref:t,sideCar:X}))});G.classNames=w.classNames;var Z=G},68571:function(e){var t,n,r,o=e.exports={};function i(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var l=[],u=!1,c=-1;function d(){u&&r&&(u=!1,r.length?l=r.concat(l):c=-1,l.length&&f())}function f(){if(!u){var e=s(d);u=!0;for(var t=l.length;t;){for(r=l,l=[];++c<t;)r&&r[c].run();c=-1,t=l.length}r=null,u=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}o.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new p(e,t)),1!==l.length||u||s(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=h,o.addListener=h,o.once=h,o.off=h,o.removeListener=h,o.removeAllListeners=h,o.emit=h,o.prependListener=h,o.prependOnceListener=h,o.listeners=function(e){return[]},o.binding=function(e){throw Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw Error("process.chdir is not supported")},o.umask=function(){return 0}},2467:function(e,t,n){"use strict";function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}n.d(t,{M:function(){return r}})},91660:function(e,t,n){"use strict";n.d(t,{VY:function(){return eo},h4:function(){return er},ck:function(){return en},fC:function(){return et}});var r=n(7653),o=n(20379),i=n(52542),a=n(18497),s=n(2467),l=n(65192),u=n(76646),c=n(32316),d=n(72305),f=n(52608),p=n(27573),h="Collapsible",[v,m]=(0,o.b)(h),[g,y]=v(h),b=r.forwardRef((e,t)=>
1{let{__scopeCollapsible:n,open:o,defaultOpen:i,disabled:a,onOpenChange:s,...c}=e,[d,v]=(0,l.T)({prop:o,defaultProp:null!=i&&i,onChange:s,caller:h});return(0,p.jsx)(g,{scope:n,disabled:a,contentId:(0,f.M)(),open:d,onOpenToggle:r.useCallback(()=>v(e=>!e),[v]),children:(0,p.jsx)(u.WV.div,{"data-state":P(d),"data-disabled":a?"":void 0,...c,ref:t})})});b.displayName=h;var w="CollapsibleTrigger",x=r.forwardRef((e,t)=>{let{__scopeCollapsible:n,...r}=e,o=y(w,n);return(0,p.jsx)(u.WV.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":P(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:(0,s.M)(e.onClick,o.onOpenToggle)})});x.displayName=w;var E="CollapsibleContent",T=r.forwardRef((e,t)=>{let{forceMount:n,...r}=e,o=y(E,e.__scopeCollapsible);return(0,p.jsx)(d.z,{present:n||o.open,children:e=>{let{present:n}=e;return(0,p.jsx)(C,{...r,ref:t,present:n})}})});T.displayName=E;var C=r.forwardRef((e,t)=>{let{__scopeCollapsible:n,present:o,children:i,...s}=e,l=y(E,n),[d,f]=r.useState(o),h=r.useRef(null),v=(0,a.e)(t,h),m=r.useRef(0),g=m.current,b=r.useRef(0),w=b.current,x=l.open||d,T=r.useRef(x),C=r.useRef(void 0);return r.useEffect(()=>{let e=requestAnimationFrame(()=>T.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,c.b)(()=>{let e=h.current;if(e){C.current=C.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();m.current=t.height,b.current=t.width,T.current||(e.style.transitionDuration=C.current.transitionDuration,e.style.animationName=C.current.animationName),f(o)}},[l.open,o]),(0,p.jsx)(u.WV.div,{"data-state":P(l.open),"data-disabled":l.disabled?"":void 0,id:l.contentId,hidden:!x,...s,ref:v,style:{"--radix-collapsible-content-height":g?"".concat(g,"px"):void 0,"--radix-collapsible-content-width":w?"".concat(w,"px"):void 0,...e.style},children:x&&i})});function P(e){return e?"open":"closed"}var M=n(17113),S="Accordion",R=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[A,k,L]=(0,i.B)(S),[D,j]=(0,o.b)(S,[L,m]),O=m(),V=r.forwardRef((e,t)=>{let{type:n,...r}=e;return(0,p.jsx)(A.Provider,{scope:e.__scopeAccordion,children:"multiple"===n?(0,p.jsx)(B,{...r,ref:t}):(0,p.jsx)(_,{...r,ref:t})})});V.displayName=S;var[I,N]=D(S),[F,W]=D(S,{collapsible:!1}),_=r.forwardRef((e,t)=>{let{value:n,defaultValue:o,onValueChange:i=()=>{},collapsible:a=!1,...s}=e,[u,c]=(0,l.T)({prop:n,defaultProp:null!=o?o:"",onChange:i,caller:S});return(0,p.jsx)(I,{scope:e.__scopeAccordion,value:r.useMemo(()=>u?[u]:[],[u]),onItemOpen:c,onItemClose:r.useCallback(()=>a&&c(""),[a,c]),children:(0,p.jsx)(F,{scope:e.__scopeAccordion,collapsible:a,children:(0,p.jsx)(K,{...s,ref:t})})})}),B=r.forwardRef((e,t)=>{let{value:n,defaultValue:o,onValueChange:i=()=>{},...a}=e,[s,u]=(0,l.T)({prop:n,defaultProp:null!=o?o:[],onChange:i,caller:S}),c=r.useCallback(e=>u(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return[...t,e]}),[u]),d=r.useCallback(e=>u(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.filter(t=>t!==e)}),[u]);return(0,p.jsx)(I,{scope:e.__scopeAccordion,value:s,onItemOpen:c,onItemClose:d,children:(0,p.jsx)(F,{scope:e.__scopeAccordion,collapsible:!0,children:(0,p.jsx)(K,{...a,ref:t})})})}),[U,H]=D(S),K=r.forwardRef((e,t)=>{let{__scopeAccordion:n,disabled:o,dir:i,orientation:l="vertical",...c}=e,d=r.useRef(null),f=(0,a.e)(d,t),h=k(n),v="ltr"===(0,M.gm)(i),m=(0,s.M)(e.onKeyDown,e=>{var t;if(!R.includes(e.key))return;let n=e.target,r=h().filter(e=>{var t;return!(null===(t=e.ref.current)||void 0===t?void 0:t.disabled)}),o=r.findIndex(e=>e.ref.current===n),i=r.length;if(-1===o)return;e.preventDefault();let a=o,s=i-1,u=()=>{(a=o+1)>s&&(a=0)},c=()=>{(a=o-1)<0&&(a=s)};switch(e.key){case"Home":a=0;break;case"End":a=s;break;case"ArrowRight":"horizontal"===l&&(v?u():c());break;case"ArrowDown":"vertical"===l&&u();break;case"ArrowLeft":"horizontal"===l&&(v?c():u());break;case"ArrowUp":"vertical"===l&&c()}null===(t=r[a%i].ref.current)||void 0===t||t.focus()});return(0,p.jsx)(U,{scope:n,disabled:o,direction:i,orientation:l,children:(0,p.jsx)(A.Slot,{scope:n,children:(0,p.jsx)(u.WV.div,{...c,"data-orientation":l,ref:f,onKeyDown:o?void 0:m})})})}),z="AccordionItem",[Y,$]=D(z),X=r.forwardRef((e,t)=>
1{let{__scopeAccordion:n,value:r,...o}=e,i=H(z,n),a=N(z,n),s=O(n),l=(0,f.M)(),u=r&&a.value.includes(r)||!1,c=i.disabled||e.disabled;return(0,p.jsx)(Y,{scope:n,open:u,disabled:c,triggerId:l,children:(0,p.jsx)(b,{"data-orientation":i.orientation,"data-state":ee(u),...s,...o,ref:t,disabled:c,open:u,onOpenChange:e=>{e?a.onItemOpen(r):a.onItemClose(r)}})})});X.displayName=z;var G="AccordionHeader",Z=r.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,o=H(S,n),i=$(G,n);return(0,p.jsx)(u.WV.h3,{"data-orientation":o.orientation,"data-state":ee(i.open),"data-disabled":i.disabled?"":void 0,...r,ref:t})});Z.displayName=G;var q="AccordionTrigger";r.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,o=H(S,n),i=$(q,n),a=W(q,n),s=O(n);return(0,p.jsx)(A.ItemSlot,{scope:n,children:(0,p.jsx)(x,{"aria-disabled":i.open&&!a.collapsible||void 0,"data-orientation":o.orientation,id:i.triggerId,...s,...r,ref:t})})}).displayName=q;var J="AccordionContent",Q=r.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,o=H(S,n),i=$(J,n),a=O(n);return(0,p.jsx)(T,{role:"region","aria-labelledby":i.triggerId,"data-orientation":o.orientation,...a,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});function ee(e){return e?"open":"closed"}Q.displayName=J;var et=V,en=X,er=Z,eo=Q},52542:function(e,t,n){"use strict";n.d(t,{B:function(){return l}}),n(79269),n(35912),n(24004);var r=n(7653),o=n(20379),i=n(18497),a=n(92721),s=n(27573);function l(e){let t=e+"CollectionProvider",[n,l]=(0,o.b)(t),[u,c]=n(t,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:t,children:n}=e,o=r.useRef(null),i=r.useRef(new Map).current;return(0,s.jsx)(u,{scope:t,itemMap:i,collectionRef:o,children:n})};d.displayName=t;let f=e+"CollectionSlot",p=(0,a.Z8)(f),h=r.forwardRef((e,t)=>{let{scope:n,children:r}=e,o=c(f,n),a=(0,i.e)(t,o.collectionRef);return(0,s.jsx)(p,{ref:a,children:r})});h.displayName=f;let v=e+"CollectionItemSlot",m="data-radix-collection-item",g=(0,a.Z8)(v),y=r.forwardRef((e,t)=>{let{scope:n,children:o,...a}=e,l=r.useRef(null),u=(0,i.e)(t,l),d=c(v,n);return r.useEffect(()=>(d.itemMap.set(l,{ref:l,...a}),()=>void d.itemMap.delete(l))),(0,s.jsx)(g,{[m]:"",ref:u,children:o})});return y.displayName=v,[{Provider:d,Slot:h,ItemSlot:y},function(t){let n=c(e+"CollectionConsumer",t);return r.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(m,"]")));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},l]}},18497:function(e,t,n){"use strict";n.d(t,{F:function(){return i},e:function(){return a}});var r=n(7653);function o(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function i(...e){return t=>{let n=!1,r=e.map(e=>{let r=o(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():o(e[t],null)}}}}function a(...e){return r.useCallback(i(...e),e)}},20379:function(e,t,n){"use strict";n.d(t,{b:function(){return a},k:function(){return i}});var r=n(7653),o=n(27573);function i(e,t){let n=r.createContext(t),i=e=>{let{children:t,...i}=e,a=r.useMemo(()=>i,Object.values(i));return(0,o.jsx)(n.Provider,{value:a,children:t})};return i.displayName=e+"Provider",[i,function(o){let i=r.useContext(n);if(i)return i;if(void 0!==t)return t;throw Error(`\`${o}\` must be used within \`${e}\``)}]}function a(e,t=[]){let n=[],i=()=>{let t=n.map(e=>r.createContext(e));return function(n){let o=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return i.scopeName=e,[function(t,i){let a=r.createContext(i),s=n.length;n=[...n,i];let l=t=>{let{scope:n,children:i,...l}=t,u=n?.[e]?.[s]||a,c=r.useMemo(()=>l,Object.values(l));return(0,o.jsx)(u.Provider,{value:c,children:i})};return l.displayName=t+"Provider",[l,function(n,o){let l=o?.[e]?.[s]||a,u=r.useContext(l);if(u)return u;if(void 0!==i)return i;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}(i,...t)]}},11737:function(e,t,n){"use strict";n.d(t,{Dx:function(){return en},VY:function(){return et},aV:function(){return ee},dk:function(){return er},fC:function(){return q},h_:function(){return Q},xz:function(){return J}});var r=n(7653),o=n(2467),i=n(18497),a=n(20379),s=n(52608),l=n(65192),u=n(22089),c=n(30581),d=n(38826),f=n(72305),p=n(76646),h=n(48086),v=n(16319),m=n(11825),g=n(92721),y=n(27573),b="Dialog",[w,x]=(0,a.b)(b),[E,T]=w(b),C=e=>{let{__scopeDialog:t,children:n,open:o,defaultOpen:i,onOpenChange:a,modal:u=!0}=e,c=r.useRef(null),d=r.useRef(null),[f,p]=(0,l.T)({prop:o,defaultProp:null!=i&&i,onChange:a,caller:b});return(0,y.jsx)(E,{scope:t,triggerRef:c,contentRef:d,contentId:(0,s.M)(),titleId:(0,s.M)(),descriptionId:(0,s.M)(),open:f,onOpenChange:p,onOpenToggle:r.useCallback(()=>p(e=>!e),[p]),modal:u,children:n})};C.displayName=b;var P="DialogTrigger",M=r.forwardRef((e,t)=>
1{let{__scopeDialog:n,...r}=e,a=T(P,n),s=(0,i.e)(t,a.triggerRef);return(0,y.jsx)(p.WV.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":z(a.open),...r,ref:s,onClick:(0,o.M)(e.onClick,a.onOpenToggle)})});M.displayName=P;var S="DialogPortal",[R,A]=w(S,{forceMount:void 0}),k=e=>{let{__scopeDialog:t,forceMount:n,children:o,container:i}=e,a=T(S,t);return(0,y.jsx)(R,{scope:t,forceMount:n,children:r.Children.map(o,e=>(0,y.jsx)(f.z,{present:n||a.open,children:(0,y.jsx)(d.h,{asChild:!0,container:i,children:e})}))})};k.displayName=S;var L="DialogOverlay",D=r.forwardRef((e,t)=>{let n=A(L,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=T(L,e.__scopeDialog);return i.modal?(0,y.jsx)(f.z,{present:r||i.open,children:(0,y.jsx)(O,{...o,ref:t})}):null});D.displayName=L;var j=(0,g.Z8)("DialogOverlay.RemoveScroll"),O=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=T(L,n);return(0,y.jsx)(v.Z,{as:j,allowPinchZoom:!0,shards:[o.contentRef],children:(0,y.jsx)(p.WV.div,{"data-state":z(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),V="DialogContent",I=r.forwardRef((e,t)=>{let n=A(V,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=T(V,e.__scopeDialog);return(0,y.jsx)(f.z,{present:r||i.open,children:i.modal?(0,y.jsx)(N,{...o,ref:t}):(0,y.jsx)(F,{...o,ref:t})})});I.displayName=V;var N=r.forwardRef((e,t)=>{let n=T(V,e.__scopeDialog),a=r.useRef(null),s=(0,i.e)(t,n.contentRef,a);return r.useEffect(()=>{let e=a.current;if(e)return(0,m.Ry)(e)},[]),(0,y.jsx)(W,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.M)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,o.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:(0,o.M)(e.onFocusOutside,e=>e.preventDefault())})}),F=r.forwardRef((e,t)=>{let n=T(V,e.__scopeDialog),o=r.useRef(!1),i=r.useRef(!1);return(0,y.jsx)(W,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var r,a;null===(r=e.onCloseAutoFocus)||void 0===r||r.call(e,t),t.defaultPrevented||(o.current||null===(a=n.triggerRef.current)||void 0===a||a.focus(),t.preventDefault()),o.current=!1,i.current=!1},onInteractOutside:t=>{var r,a;null===(r=e.onInteractOutside)||void 0===r||r.call(e,t),t.defaultPrevented||(o.current=!0,"pointerdown"!==t.detail.originalEvent.type||(i.current=!0));let s=t.target;(null===(a=n.triggerRef.current)||void 0===a?void 0:a.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})}),W=r.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:s,...l}=e,d=T(V,n),f=r.useRef(null),p=(0,i.e)(t,f);return(0,h.EW)(),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(c.M,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:a,onUnmountAutoFocus:s,children:(0,y.jsx)(u.XB,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":z(d.open),...l,ref:p,onDismiss:()=>d.onOpenChange(!1)})}),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(G,{titleId:d.titleId}),(0,y.jsx)(Z,{contentRef:f,descriptionId:d.descriptionId})]})]})}),_="DialogTitle",B=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=T(_,n);return(0,y.jsx)(p.WV.h2,{id:o.titleId,...r,ref:t})});B.displayName=_;var U="DialogDescription",H=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=T(U,n);return(0,y.jsx)(p.WV.p,{id:o.descriptionId,...r,ref:t})});H.displayName=U;var K="DialogClose";function z(e){return e?"open":"closed"}r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=T(K,n);return(0,y.jsx)(p.WV.button,{type:"button",...r,ref:t,onClick:(0,o.M)(e.onClick,()=>i.onOpenChange(!1))})}).displayName=K;var Y="DialogTitleWarning",[$,X]=(0,a.k)(Y,{contentName:V,titleName:_,docsSlug:"dialog"}),G=e=>{let{titleId:t}=e,n=X(Y),o="`".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(o)},[o,t]),null},Z=e=>{let{contentRef:t,descriptionId:n}=e,o=X("DialogDescriptionWarning"),i="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(o.contentName,"}.");return r.useEffect(()=>{var e;let r=null===(e=t.current)||void 0===e?void 0:e.getAttribute("aria-describedby");n&&r&&!document.getElementById(n)&&console.warn(i)},[i,t,n]),null},q=C,J=M,Q=k,ee=D,et=I,en=B,er=H},17113:function(e,t,n){"use strict";n.d(t,{gm:function(){return i}});var r=n(7653);n(27573);var o=r.createContext(void 0);function i(e){let t=r.useContext(o);return e||t||"ltr"}},22089:function(e,t,n){"use strict";n.d(t,{XB:function(){return f}});var r,o=n(7653),i=n(2467),a=n(76646),s=n(18497),l=n(63465),u=n(27573),c="dismissableLayer.update",d=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),f=o.forwardRef((e,t)=>
1{var n,f;let{disableOutsidePointerEvents:v=!1,onEscapeKeyDown:m,onPointerDownOutside:g,onFocusOutside:y,onInteractOutside:b,onDismiss:w,...x}=e,E=o.useContext(d),[T,C]=o.useState(null),P=null!==(f=null==T?void 0:T.ownerDocument)&&void 0!==f?f:null===(n=globalThis)||void 0===n?void 0:n.document,[,M]=o.useState({}),S=(0,s.e)(t,e=>C(e)),R=Array.from(E.layers),[A]=[...E.layersWithOutsidePointerEventsDisabled].slice(-1),k=R.indexOf(A),L=T?R.indexOf(T):-1,D=E.layersWithOutsidePointerEventsDisabled.size>0,j=L>=k,O=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,l.W)(e),i=o.useRef(!1),a=o.useRef(()=>{});return o.useEffect(()=>{let e=e=>{if(e.target&&!i.current){let t=function(){h("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",a.current),a.current=t,n.addEventListener("click",a.current,{once:!0})):t()}else n.removeEventListener("click",a.current);i.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",a.current)}},[n,r]),{onPointerDownCapture:()=>i.current=!0}}(e=>{let t=e.target,n=[...E.branches].some(e=>e.contains(t));!j||n||(null==g||g(e),null==b||b(e),e.defaultPrevented||null==w||w())},P),V=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,l.W)(e),i=o.useRef(!1);return o.useEffect(()=>{let e=e=>{e.target&&!i.current&&h("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}(e=>{let t=e.target;[...E.branches].some(e=>e.contains(t))||(null==y||y(e),null==b||b(e),e.defaultPrevented||null==w||w())},P);return!function(e,t=globalThis?.document){let n=(0,l.W)(e);o.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{L!==E.layers.size-1||(null==m||m(e),!e.defaultPrevented&&w&&(e.preventDefault(),w()))},P),o.useEffect(()=>{if(T)return v&&(0===E.layersWithOutsidePointerEventsDisabled.size&&(r=P.body.style.pointerEvents,P.body.style.pointerEvents="none"),E.layersWithOutsidePointerEventsDisabled.add(T)),E.layers.add(T),p(),()=>{v&&1===E.layersWithOutsidePointerEventsDisabled.size&&(P.body.style.pointerEvents=r)}},[T,P,v,E]),o.useEffect(()=>()=>{T&&(E.layers.delete(T),E.layersWithOutsidePointerEventsDisabled.delete(T),p())},[T,E]),o.useEffect(()=>{let e=()=>M({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,u.jsx)(a.WV.div,{...x,ref:S,style:{pointerEvents:D?j?"auto":"none":void 0,...e.style},onFocusCapture:(0,i.M)(e.onFocusCapture,V.onFocusCapture),onBlurCapture:(0,i.M)(e.onBlurCapture,V.onBlurCapture),onPointerDownCapture:(0,i.M)(e.onPointerDownCapture,O.onPointerDownCapture)})});function p(){let e=new CustomEvent(c);document.dispatchEvent(e)}function h(e,t,n,r){let{discrete:o}=r,i=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),o?(0,a.jH)(i,s):i.dispatchEvent(s)}f.displayName="DismissableLayer",o.forwardRef((e,t)=>{let n=o.useContext(d),r=o.useRef(null),i=(0,s.e)(t,r);return o.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,u.jsx)(a.WV.div,{...e,ref:i})}).displayName="DismissableLayerBranch"},13906:function(e,t,n){"use strict";n.d(t,{Eh:function(){return ts},VY:function(){return tn},ZA:function(){return tr},ck:function(){return ti},__:function(){return to},Uv:function(){return tt},Z0:function(){return ta},Tr:function(){return tl},tu:function(){return tc},fF:function(){return tu},xz:function(){return te}});var r=n(7653),o=n(2467),i=n(18497),a=n(20379),s=n(65192),l=n(76646),u=n(52542),c=n(17113),d=n(22089),f=n(48086),p=n(30581),h=n(52608),v=n(76191),m=n(38826),g=n(72305),y=n(63465),b=n(27573),w="rovingFocusGroup.onEntryFocus",x={bubbles:!1,cancelable:!0},E="RovingFocusGroup",[T,C,P]=(0,u.B)(E),[M,S]=(0,a.b)(E,[P]),[R,A]=M(E),k=r.forwardRef((e,t)=>
1(0,b.jsx)(T.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,b.jsx)(T.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,b.jsx)(L,{...e,ref:t})})}));k.displayName=E;var L=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:a,loop:u=!1,dir:d,currentTabStopId:f,defaultCurrentTabStopId:p,onCurrentTabStopIdChange:h,onEntryFocus:v,preventScrollOnEntryFocus:m=!1,...g}=e,T=r.useRef(null),P=(0,i.e)(t,T),M=(0,c.gm)(d),[S,A]=(0,s.T)({prop:f,defaultProp:null!=p?p:null,onChange:h,caller:E}),[k,L]=r.useState(!1),D=(0,y.W)(v),j=C(n),O=r.useRef(!1),[I,N]=r.useState(0);return r.useEffect(()=>{let e=T.current;if(e)return e.addEventListener(w,D),()=>e.removeEventListener(w,D)},[D]),(0,b.jsx)(R,{scope:n,orientation:a,dir:M,loop:u,currentTabStopId:S,onItemFocus:r.useCallback(e=>A(e),[A]),onItemShiftTab:r.useCallback(()=>L(!0),[]),onFocusableItemAdd:r.useCallback(()=>N(e=>e+1),[]),onFocusableItemRemove:r.useCallback(()=>N(e=>e-1),[]),children:(0,b.jsx)(l.WV.div,{tabIndex:k||0===I?-1:0,"data-orientation":a,...g,ref:P,style:{outline:"none",...e.style},onMouseDown:(0,o.M)(e.onMouseDown,()=>{O.current=!0}),onFocus:(0,o.M)(e.onFocus,e=>{let t=!O.current;if(e.target===e.currentTarget&&t&&!k){let t=new CustomEvent(w,x);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=j().filter(e=>e.focusable);V([e.find(e=>e.active),e.find(e=>e.id===S),...e].filter(Boolean).map(e=>e.ref.current),m)}}O.current=!1}),onBlur:(0,o.M)(e.onBlur,()=>L(!1))})})}),D="RovingFocusGroupItem",j=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:i=!0,active:a=!1,tabStopId:s,children:u,...c}=e,d=(0,h.M)(),f=s||d,p=A(D,n),v=p.currentTabStopId===f,m=C(n),{onFocusableItemAdd:g,onFocusableItemRemove:y,currentTabStopId:w}=p;return r.useEffect(()=>{if(i)return g(),()=>y()},[i,g,y]),(0,b.jsx)(T.ItemSlot,{scope:n,id:f,focusable:i,active:a,children:(0,b.jsx)(l.WV.span,{tabIndex:v?0:-1,"data-orientation":p.orientation,...c,ref:t,onMouseDown:(0,o.M)(e.onMouseDown,e=>{i?p.onItemFocus(f):e.preventDefault()}),onFocus:(0,o.M)(e.onFocus,()=>p.onItemFocus(f)),onKeyDown:(0,o.M)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){p.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let o=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return O[o]}(e,p.orientation,p.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=m().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){var n,r;"prev"===t&&o.reverse();let i=o.indexOf(e.currentTarget);o=p.loop?(n=o,r=i+1,n.map((e,t)=>n[(r+t)%n.length])):o.slice(i+1)}setTimeout(()=>V(o))}}),children:"function"==typeof u?u({isCurrentTabStop:v,hasTabStop:null!=w}):u})})});j.displayName=D;var O={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function V(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}var I=n(92721),N=n(11825),F=n(16319),W=["Enter"," "],_=["ArrowUp","PageDown","End"],B=["ArrowDown","PageUp","Home",..._],U={ltr:[...W,"ArrowRight"],rtl:[...W,"ArrowLeft"]},H={ltr:["ArrowLeft"],rtl:["ArrowRight"]},K="Menu",[z,Y,$]=(0,u.B)(K),[X,G]=(0,a.b)(K,[$,v.D7,S]),Z=(0,v.D7)(),q=S(),[J,Q]=X(K),[ee,et]=X(K),en=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,o=Z(n);return(0,b.jsx)(v.ee,{...o,...r,ref:t})});en.displayName="MenuAnchor";var er="MenuPortal",[eo,ei]=X(er,{forceMount:void 0}),ea=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=Q(er,t);return(0,b.jsx)(eo,{scope:t,forceMount:n,children:(0,b.jsx)(g.z,{present:n||i.open,children:(0,b.jsx)(m.h,{asChild:!0,container:o,children:r})})})};ea.displayName=er;var es="MenuContent",[el,eu]=X(es),ec=r.forwardRef((e,t)=>{let n=ei(es,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=Q(es,e.__scopeMenu),a=et(es,e.__scopeMenu);return(0,b.jsx)(z.Provider,{scope:e.__scopeMenu,children:(0,b.jsx)(g.z,{present:r||i.open,children:(0,b.jsx)(z.Slot,{scope:e.__scopeMenu,children:a.modal?(0,b.jsx)(ed,{...o,ref:t}):(0,b.jsx)(ef,{...o,ref:t})})})})}),ed=r.forwardRef((e,t)=>
1{let n=Q(es,e.__scopeMenu),a=r.useRef(null),s=(0,i.e)(t,a);return r.useEffect(()=>{let e=a.current;if(e)return(0,N.Ry)(e)},[]),(0,b.jsx)(eh,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,o.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),ef=r.forwardRef((e,t)=>{let n=Q(es,e.__scopeMenu);return(0,b.jsx)(eh,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),ep=(0,I.Z8)("MenuContent.ScrollLock"),eh=r.forwardRef((e,t)=>{let{__scopeMenu:n,loop:a=!1,trapFocus:s,onOpenAutoFocus:l,onCloseAutoFocus:u,disableOutsidePointerEvents:c,onEntryFocus:h,onEscapeKeyDown:m,onPointerDownOutside:g,onFocusOutside:y,onInteractOutside:w,onDismiss:x,disableOutsideScroll:E,...T}=e,C=Q(es,n),P=et(es,n),M=Z(n),S=q(n),R=Y(n),[A,L]=r.useState(null),D=r.useRef(null),j=(0,i.e)(t,D,C.onContentChange),O=r.useRef(0),V=r.useRef(""),I=r.useRef(0),N=r.useRef(null),W=r.useRef("right"),U=r.useRef(0),H=E?F.Z:r.Fragment,K=e=>{var t,n;let r=V.current+e,o=R().filter(e=>!e.disabled),i=document.activeElement,a=null===(t=o.find(e=>e.ref.current===i))||void 0===t?void 0:t.textValue,s=function(e,t,n){var r;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=(r=Math.max(n?e.indexOf(n):-1,0),e.map((t,n)=>e[(r+n)%e.length]));1===o.length&&(i=i.filter(e=>e!==n));let a=i.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return a!==n?a:void 0}(o.map(e=>e.textValue),r,a),l=null===(n=o.find(e=>e.textValue===s))||void 0===n?void 0:n.ref.current;!function e(t){V.current=t,window.clearTimeout(O.current),""!==t&&(O.current=window.setTimeout(()=>e(""),1e3))}(r),l&&setTimeout(()=>l.focus())};r.useEffect(()=>()=>window.clearTimeout(O.current),[]),(0,f.EW)();let z=r.useCallback(e=>{var t,n,r;return W.current===(null===(t=N.current)||void 0===t?void 0:t.side)&&!!(r=null===(n=N.current)||void 0===n?void 0:n.area)&&function(e,t){let{x:n,y:r}=e,o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){let a=t[e],s=t[i],l=a.x,u=a.y,c=s.x,d=s.y;u>r!=d>r&&n<(c-l)*(r-u)/(d-u)+l&&(o=!o)}return o}({x:e.clientX,y:e.clientY},r)},[]);return(0,b.jsx)(el,{scope:n,searchRef:V,onItemEnter:r.useCallback(e=>{z(e)&&e.preventDefault()},[z]),onItemLeave:r.useCallback(e=>{var t;z(e)||(null===(t=D.current)||void 0===t||t.focus(),L(null))},[z]),onTriggerLeave:r.useCallback(e=>{z(e)&&e.preventDefault()},[z]),pointerGraceTimerRef:I,onPointerGraceIntentChange:r.useCallback(e=>{N.current=e},[]),children:(0,b.jsx)(H,{...E?{as:ep,allowPinchZoom:!0}:void 0,children:(0,b.jsx)(p.M,{asChild:!0,trapped:s,onMountAutoFocus:(0,o.M)(l,e=>{var t;e.preventDefault(),null===(t=D.current)||void 0===t||t.focus({preventScroll:!0})}),onUnmountAutoFocus:u,children:(0,b.jsx)(d.XB,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:m,onPointerDownOutside:g,onFocusOutside:y,onInteractOutside:w,onDismiss:x,children:(0,b.jsx)(k,{asChild:!0,...S,dir:P.dir,orientation:"vertical",loop:a,currentTabStopId:A,onCurrentTabStopIdChange:L,onEntryFocus:(0,o.M)(h,e=>{P.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,b.jsx)(v.VY,{role:"menu","aria-orientation":"vertical","data-state":eU(C.open),"data-radix-menu-content":"",dir:P.dir,...M,...T,ref:j,style:{outline:"none",...T.style},onKeyDown:(0,o.M)(T.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&K(e.key));let o=D.current;if(e.target!==o||!B.includes(e.key))return;e.preventDefault();let i=R().filter(e=>!e.disabled).map(e=>e.ref.current);_.includes(e.key)&&i.reverse(),function(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}(i)}),onBlur:(0,o.M)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(O.current),V.current="")}),onPointerMove:(0,o.M)(e.onPointerMove,ez(e=>{let t=e.target,n=U.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>U.current?"right":"left";W.current=t,U.current=e.clientX}}))})})})})})})});ec.displayName=es;var ev=r.forwardRef((e,t)=>
1{let{__scopeMenu:n,...r}=e;return(0,b.jsx)(l.WV.div,{role:"group",...r,ref:t})});ev.displayName="MenuGroup";var em=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,b.jsx)(l.WV.div,{...r,ref:t})});em.displayName="MenuLabel";var eg="MenuItem",ey="menu.itemSelect",eb=r.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:a,...s}=e,u=r.useRef(null),c=et(eg,e.__scopeMenu),d=eu(eg,e.__scopeMenu),f=(0,i.e)(t,u),p=r.useRef(!1);return(0,b.jsx)(ew,{...s,ref:f,disabled:n,onClick:(0,o.M)(e.onClick,()=>{let e=u.current;if(!n&&e){let t=new CustomEvent(ey,{bubbles:!0,cancelable:!0});e.addEventListener(ey,e=>null==a?void 0:a(e),{once:!0}),(0,l.jH)(e,t),t.defaultPrevented?p.current=!1:c.onClose()}}),onPointerDown:t=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),p.current=!0},onPointerUp:(0,o.M)(e.onPointerUp,e=>{var t;p.current||null===(t=e.currentTarget)||void 0===t||t.click()}),onKeyDown:(0,o.M)(e.onKeyDown,e=>{let t=""!==d.searchRef.current;!n&&(!t||" "!==e.key)&&W.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});eb.displayName=eg;var ew=r.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:a=!1,textValue:s,...u}=e,c=eu(eg,n),d=q(n),f=r.useRef(null),p=(0,i.e)(t,f),[h,v]=r.useState(!1),[m,g]=r.useState("");return r.useEffect(()=>{let e=f.current;if(e){var t;g((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}},[u.children]),(0,b.jsx)(z.ItemSlot,{scope:n,disabled:a,textValue:null!=s?s:m,children:(0,b.jsx)(j,{asChild:!0,...d,focusable:!a,children:(0,b.jsx)(l.WV.div,{role:"menuitem","data-highlighted":h?"":void 0,"aria-disabled":a||void 0,"data-disabled":a?"":void 0,...u,ref:p,onPointerMove:(0,o.M)(e.onPointerMove,ez(e=>{a?c.onItemLeave(e):(c.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,o.M)(e.onPointerLeave,ez(e=>c.onItemLeave(e))),onFocus:(0,o.M)(e.onFocus,()=>v(!0)),onBlur:(0,o.M)(e.onBlur,()=>v(!1))})})})}),ex=r.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,b.jsx)(eA,{scope:e.__scopeMenu,checked:n,children:(0,b.jsx)(eb,{role:"menuitemcheckbox","aria-checked":eH(n)?"mixed":n,...i,ref:t,"data-state":eK(n),onSelect:(0,o.M)(i.onSelect,()=>null==r?void 0:r(!!eH(n)||!n),{checkForDefaultPrevented:!1})})})});ex.displayName="MenuCheckboxItem";var eE="MenuRadioGroup",[eT,eC]=X(eE,{value:void 0,onValueChange:()=>{}}),eP=r.forwardRef((e,t)=>{let{value:n,onValueChange:r,...o}=e,i=(0,y.W)(r);return(0,b.jsx)(eT,{scope:e.__scopeMenu,value:n,onValueChange:i,children:(0,b.jsx)(ev,{...o,ref:t})})});eP.displayName=eE;var eM="MenuRadioItem",eS=r.forwardRef((e,t)=>{let{value:n,...r}=e,i=eC(eM,e.__scopeMenu),a=n===i.value;return(0,b.jsx)(eA,{scope:e.__scopeMenu,checked:a,children:(0,b.jsx)(eb,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":eK(a),onSelect:(0,o.M)(r.onSelect,()=>{var e;return null===(e=i.onValueChange)||void 0===e?void 0:e.call(i,n)},{checkForDefaultPrevented:!1})})})});eS.displayName=eM;var eR="MenuItemIndicator",[eA,ek]=X(eR,{checked:!1}),eL=r.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...o}=e,i=ek(eR,n);return(0,b.jsx)(g.z,{present:r||eH(i.checked)||!0===i.checked,children:(0,b.jsx)(l.WV.span,{...o,ref:t,"data-state":eK(i.checked)})})});eL.displayName=eR;var eD=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,b.jsx)(l.WV.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});eD.displayName="MenuSeparator";var ej=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,o=Z(n);return(0,b.jsx)(v.Eh,{...o,...r,ref:t})});ej.displayName="MenuArrow";var eO="MenuSub",[eV,eI]=X(eO),eN=e=>{let{__scopeMenu:t,children:n,open:o=!1,onOpenChange:i}=e,a=Q(eO,t),s=Z(t),[l,u]=r.useState(null),[c,d]=r.useState(null),f=(0,y.W)(i);return r.useEffect(()=>(!1===a.open&&f(!1),()=>f(!1)),[a.open,f]),(0,b.jsx)(v.fC,{...s,children:(0,b.jsx)(J,{scope:t,open:o,onOpenChange:f,content:c,onContentChange:d,children:(0,b.jsx)(eV,{scope:t,contentId:(0,h.M)(),triggerId:(0,h.M)(),trigger:l,onTriggerChange:u,children:n})})})};eN.displayName=eO;var eF="MenuSubTrigger",eW=r.forwardRef((e,t)=>{let n=Q(eF,e.__scopeMenu),a=et(eF,e.__scopeMenu),s=eI(eF,e.__scopeMenu),l=eu(eF,e.__scopeMenu),u=r.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:d}=l,f={__scopeMenu:e.__scopeMenu},p=r.useCallback(()=>{u.current&&window.clearTimeout(u.current),u.current=null},[]);return r.useEffect(()=>p,[p]),r.useEffect(()=>
1{let e=c.current;return()=>{window.clearTimeout(e),d(null)}},[c,d]),(0,b.jsx)(en,{asChild:!0,...f,children:(0,b.jsx)(ew,{id:s.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":s.contentId,"data-state":eU(n.open),...e,ref:(0,i.F)(t,s.onTriggerChange),onClick:t=>{var r;null===(r=e.onClick)||void 0===r||r.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:(0,o.M)(e.onPointerMove,ez(t=>{l.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||u.current||(l.onPointerGraceIntentChange(null),u.current=window.setTimeout(()=>{n.onOpenChange(!0),p()},100))})),onPointerLeave:(0,o.M)(e.onPointerLeave,ez(e=>{var t,r;p();let o=null===(t=n.content)||void 0===t?void 0:t.getBoundingClientRect();if(o){let t=null===(r=n.content)||void 0===r?void 0:r.dataset.side,i="right"===t,a=o[i?"left":"right"],s=o[i?"right":"left"];l.onPointerGraceIntentChange({area:[{x:e.clientX+(i?-5:5),y:e.clientY},{x:a,y:o.top},{x:s,y:o.top},{x:s,y:o.bottom},{x:a,y:o.bottom}],side:t}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>l.onPointerGraceIntentChange(null),300)}else{if(l.onTriggerLeave(e),e.defaultPrevented)return;l.onPointerGraceIntentChange(null)}})),onKeyDown:(0,o.M)(e.onKeyDown,t=>{let r=""!==l.searchRef.current;if(!e.disabled&&(!r||" "!==t.key)&&U[a.dir].includes(t.key)){var o;n.onOpenChange(!0),null===(o=n.content)||void 0===o||o.focus(),t.preventDefault()}})})})});eW.displayName=eF;var e_="MenuSubContent",eB=r.forwardRef((e,t)=>{let n=ei(es,e.__scopeMenu),{forceMount:a=n.forceMount,...s}=e,l=Q(es,e.__scopeMenu),u=et(es,e.__scopeMenu),c=eI(e_,e.__scopeMenu),d=r.useRef(null),f=(0,i.e)(t,d);return(0,b.jsx)(z.Provider,{scope:e.__scopeMenu,children:(0,b.jsx)(g.z,{present:a||l.open,children:(0,b.jsx)(z.Slot,{scope:e.__scopeMenu,children:(0,b.jsx)(eh,{id:c.contentId,"aria-labelledby":c.triggerId,...s,ref:f,align:"start",side:"rtl"===u.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;u.isUsingKeyboardRef.current&&(null===(t=d.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,o.M)(e.onFocusOutside,e=>{e.target!==c.trigger&&l.onOpenChange(!1)}),onEscapeKeyDown:(0,o.M)(e.onEscapeKeyDown,e=>{u.onClose(),e.preventDefault()}),onKeyDown:(0,o.M)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=H[u.dir].includes(e.key);if(t&&n){var r;l.onOpenChange(!1),null===(r=c.trigger)||void 0===r||r.focus(),e.preventDefault()}})})})})})});function eU(e){return e?"open":"closed"}function eH(e){return"indeterminate"===e}function eK(e){return eH(e)?"indeterminate":e?"checked":"unchecked"}function ez(e){return t=>"mouse"===t.pointerType?e(t):void 0}eB.displayName=e_;var eY="DropdownMenu",[e$,eX]=(0,a.b)(eY,[G]),eG=G(),[eZ,eq]=e$(eY),eJ="DropdownMenuTrigger",eQ=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...a}=e,s=eq(eJ,n),u=eG(n);return(0,b.jsx)(en,{asChild:!0,...u,children:(0,b.jsx)(l.WV.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...a,ref:(0,i.F)(t,s.triggerRef),onPointerDown:(0,o.M)(e.onPointerDown,e=>{r||0!==e.button||!1!==e.ctrlKey||(s.onOpenToggle(),s.open||e.preventDefault())}),onKeyDown:(0,o.M)(e.onKeyDown,e=>{!r&&(["Enter"," "].includes(e.key)&&s.onOpenToggle(),"ArrowDown"===e.key&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});eQ.displayName=eJ;var e0=e=>{let{__scopeDropdownMenu:t,...n}=e,r=eG(t);return(0,b.jsx)(ea,{...r,...n})};e0.displayName="DropdownMenuPortal";var e1="DropdownMenuContent",e2=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...i}=e,a=eq(e1,n),s=eG(n),l=r.useRef(!1);return(0,b.jsx)(ec,{id:a.contentId,"aria-labelledby":a.triggerId,...s,...i,ref:t,onCloseAutoFocus:(0,o.M)(e.onCloseAutoFocus,e=>{var t;l.current||null===(t=a.triggerRef.current)||void 0===t||t.focus(),l.current=!1,e.preventDefault()}),onInteractOutside:(0,o.M)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!a.modal||r)&&(l.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});e2.displayName=e1;var e5=r.forwardRef((e,t)=>
1{let{__scopeDropdownMenu:n,...r}=e,o=eG(n);return(0,b.jsx)(ev,{...o,...r,ref:t})});e5.displayName="DropdownMenuGroup";var e3=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eG(n);return(0,b.jsx)(em,{...o,...r,ref:t})});e3.displayName="DropdownMenuLabel";var e6=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eG(n);return(0,b.jsx)(eb,{...o,...r,ref:t})});e6.displayName="DropdownMenuItem",r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eG(n);return(0,b.jsx)(ex,{...o,...r,ref:t})}).displayName="DropdownMenuCheckboxItem",r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eG(n);return(0,b.jsx)(eP,{...o,...r,ref:t})}).displayName="DropdownMenuRadioGroup",r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eG(n);return(0,b.jsx)(eS,{...o,...r,ref:t})}).displayName="DropdownMenuRadioItem",r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eG(n);return(0,b.jsx)(eL,{...o,...r,ref:t})}).displayName="DropdownMenuItemIndicator";var e7=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eG(n);return(0,b.jsx)(eD,{...o,...r,ref:t})});e7.displayName="DropdownMenuSeparator";var e4=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eG(n);return(0,b.jsx)(ej,{...o,...r,ref:t})});e4.displayName="DropdownMenuArrow";var e9=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eG(n);return(0,b.jsx)(eW,{...o,...r,ref:t})});e9.displayName="DropdownMenuSubTrigger";var e8=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eG(n);return(0,b.jsx)(eB,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});e8.displayName="DropdownMenuSubContent";var te=eQ,tt=e0,tn=e2,tr=e5,to=e3,ti=e6,ta=e7,ts=e4,tl=e=>{let{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:i}=e,a=eG(t),[l,u]=(0,s.T)({prop:r,defaultProp:null!=i&&i,onChange:o,caller:"DropdownMenuSub"});return(0,b.jsx)(eN,{...a,open:l,onOpenChange:u,children:n})},tu=e9,tc=e8},48086:function(e,t,n){"use strict";n.d(t,{EW:function(){return i}});var r=n(7653),o=0;function i(){r.useEffect(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:a()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:a()),o++,()=>{1===o&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),o--}},[])}function a(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}},30581:function(e,t,n){"use strict";let r;n.d(t,{M:function(){return f}});var o=n(7653),i=n(18497),a=n(76646),s=n(63465),l=n(27573),u="focusScope.autoFocusOnMount",c="focusScope.autoFocusOnUnmount",d={bubbles:!1,cancelable:!0},f=o.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:f,onUnmountAutoFocus:g,...y}=e,[b,w]=o.useState(null),x=(0,s.W)(f),E=(0,s.W)(g),T=o.useRef(null),C=(0,i.e)(t,e=>w(e)),P=o.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;o.useEffect(()=>{if(r){let e=function(e){if(P.paused||!b)return;let t=e.target;b.contains(t)?T.current=t:v(T.current,{select:!0})},t=function(e){if(P.paused||!b)return;let t=e.relatedTarget;null===t||b.contains(t)||v(T.current,{select:!0})};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&v(b)});return b&&n.observe(b,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,b,P.paused]),o.useEffect(()=>{if(b){m.add(P);let e=document.activeElement;if(!b.contains(e)){let t=new CustomEvent(u,d);b.addEventListener(u,x),b.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of e)if(v(r,{select:t}),document.activeElement!==n)return}(p(b).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&v(b))}return()=>{b.removeEventListener(u,x),setTimeout(()=>{let t=new CustomEvent(c,d);b.addEventListener(c,E),b.dispatchEvent(t),t.defaultPrevented||v(null!=e?e:document.body,{select:!0}),b.removeEventListener(c,E),m.remove(P)},0)}}},[b,x,E,P]);let M=o.useCallback(e=>{if(!n&&!r||P.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[r,i]=function(e){let t=p(e);return[h(t,e),h(t.reverse(),e)]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&v(i,{select:!0})):(e.preventDefault(),n&&v(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,P.paused]);return(0,l.jsx)(a.WV.div,{tabIndex:-1,...y,ref:C,onKeyDown:M})});function p(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function h(e,t){for(let n of e)if(!function(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===n||e!==n);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function v(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}f.displayName="FocusScope";var m=(r=[],{add(e){let t=r[0];e!==t&&(null==t||t.pause()),(r=g(r,e)).unshift(e)},remove(e){var t;null===(t=(r=g(r,e))[0])||void 0===t||t.resume()}});function g(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}},52608:function(e,t,n){"use strict";n.d(t,{M:function(){return l}});var r,o=n(7653),i=n(32316),a=(r||(r=n.t(o,2)))[" useId ".trim().toString()]||(()=>void 0),s=0;function l(e){let[t,n]=o.useState(a());return(0,i.b)(()=>{e||n(e=>e??String(s++))},[e]),e||(t?`radix-${t}`:"")}},74740:function(e,t,n){"use strict";n.d(t,{Tr:function(){return ev},VY:function(){return ex},aV:function(){return em},ck:function(){return eg},fC:function(){return eh},l_:function(){return eE},rU:function(){return eb},xz:function(){return ey},z$:function(){return ew}});var r=n(7653),o=n(3458),i=n(20379),a=n(2467),s=n(76646),l=n(65192),u=n(18497),c=n(17113),d=n(72305),f=n(52608),p=n(52542),h=n(22089),v=n(77214),m=n(32316),g=n(63465),y=n(41937),b=n(27573),w="NavigationMenu",[x,E,T]=(0,p.B)(w),[C,P,M]=(0,p.B)(w),[S,R]=(0,i.b)(w,[T,M]),[A,k]=S(w),[L,D]=S(w),j=r.forwardRef((e,t)=>
1{let{__scopeNavigationMenu:n,value:o,onValueChange:i,defaultValue:a,delayDuration:d=200,skipDelayDuration:f=300,orientation:p="horizontal",dir:h,...v}=e,[m,g]=r.useState(null),y=(0,u.e)(t,e=>g(e)),x=(0,c.gm)(h),E=r.useRef(0),T=r.useRef(0),C=r.useRef(0),[P,M]=r.useState(!0),[S,R]=(0,l.T)({prop:o,onChange:e=>{let t=f>0;""!==e?(window.clearTimeout(C.current),t&&M(!1)):(window.clearTimeout(C.current),C.current=window.setTimeout(()=>M(!0),f)),null==i||i(e)},defaultProp:null!=a?a:"",caller:w}),A=r.useCallback(()=>{window.clearTimeout(T.current),T.current=window.setTimeout(()=>R(""),150)},[R]),k=r.useCallback(e=>{window.clearTimeout(T.current),R(e)},[R]),L=r.useCallback(e=>{S===e?window.clearTimeout(T.current):E.current=window.setTimeout(()=>{window.clearTimeout(T.current),R(e)},d)},[S,R,d]);return r.useEffect(()=>()=>{window.clearTimeout(E.current),window.clearTimeout(T.current),window.clearTimeout(C.current)},[]),(0,b.jsx)(I,{scope:n,isRootMenu:!0,value:S,dir:x,orientation:p,rootNavigationMenu:m,onTriggerEnter:e=>{window.clearTimeout(E.current),P?L(e):k(e)},onTriggerLeave:()=>{window.clearTimeout(E.current),A()},onContentEnter:()=>window.clearTimeout(T.current),onContentLeave:A,onItemSelect:e=>{R(t=>t===e?"":e)},onItemDismiss:()=>R(""),children:(0,b.jsx)(s.WV.nav,{"aria-label":"Main","data-orientation":p,dir:x,...v,ref:y})})});j.displayName=w;var O="NavigationMenuSub",V=r.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:i,orientation:a="horizontal",...u}=e,c=k(O,n),[d,f]=(0,l.T)({prop:r,onChange:o,defaultProp:null!=i?i:"",caller:O});return(0,b.jsx)(I,{scope:n,isRootMenu:!1,value:d,dir:c.dir,orientation:a,rootNavigationMenu:c.rootNavigationMenu,onTriggerEnter:e=>f(e),onItemSelect:e=>f(e),onItemDismiss:()=>f(""),children:(0,b.jsx)(s.WV.div,{"data-orientation":a,...u,ref:t})})});V.displayName=O;var I=e=>{let{scope:t,isRootMenu:n,rootNavigationMenu:o,dir:i,orientation:a,children:s,value:l,onItemSelect:u,onItemDismiss:c,onTriggerEnter:d,onTriggerLeave:p,onContentEnter:h,onContentLeave:m}=e,[y,w]=r.useState(null),[E,T]=r.useState(new Map),[C,P]=r.useState(null);return(0,b.jsx)(A,{scope:t,isRootMenu:n,rootNavigationMenu:o,value:l,previousValue:(0,v.D)(l),baseId:(0,f.M)(),dir:i,orientation:a,viewport:y,onViewportChange:w,indicatorTrack:C,onIndicatorTrackChange:P,onTriggerEnter:(0,g.W)(d),onTriggerLeave:(0,g.W)(p),onContentEnter:(0,g.W)(h),onContentLeave:(0,g.W)(m),onItemSelect:(0,g.W)(u),onItemDismiss:(0,g.W)(c),onViewportContentChange:r.useCallback((e,t)=>{T(n=>(n.set(e,t),new Map(n)))},[]),onViewportContentRemove:r.useCallback(e=>{T(t=>t.has(e)?(t.delete(e),new Map(t)):t)},[]),children:(0,b.jsx)(x.Provider,{scope:t,children:(0,b.jsx)(L,{scope:t,items:E,children:s})})})},N="NavigationMenuList",F=r.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,o=k(N,n),i=(0,b.jsx)(s.WV.ul,{"data-orientation":o.orientation,...r,ref:t});return(0,b.jsx)(s.WV.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange,children:(0,b.jsx)(x.Slot,{scope:n,children:o.isRootMenu?(0,b.jsx)(eo,{asChild:!0,children:i}):i})})});F.displayName=N;var W="NavigationMenuItem",[_,B]=S(W),U=r.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,value:o,...i}=e,a=(0,f.M)(),l=r.useRef(null),u=r.useRef(null),c=r.useRef(null),d=r.useRef(()=>{}),p=r.useRef(!1),h=r.useCallback(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"start";if(l.current){d.current();let t=es(l.current);t.length&&el("start"===e?t:t.reverse())}},[]),v=r.useCallback(()=>{if(l.current){let e=es(l.current);e.length&&(d.current=(e.forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}),()=>{e.forEach(e=>{let t=e.dataset.tabindex;e.setAttribute("tabindex",t)})}))}},[]);return(0,b.jsx)(_,{scope:n,value:o||a||"LEGACY_REACT_AUTO_VALUE",triggerRef:u,contentRef:l,focusProxyRef:c,wasEscapeCloseRef:p,onEntryKeyDown:h,onFocusProxyEnter:h,onRootContentClose:v,onContentFocusOutside:v,children:(0,b.jsx)(s.WV.li,{...i,ref:t})})});U.displayName=W;var H="NavigationMenuTrigger",K=r.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,disabled:o,...i}=e,l=k(H,e.__scopeNavigationMenu),c=B(H,e.__scopeNavigationMenu),d=r.useRef(null),f=(0,u.e)(d,c.triggerRef,t),p=ed(l.baseId,c.value),h=ef(l.baseId,c.value),v=r.useRef(!1),m=r.useRef(!1),g=c.value===l.value;return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(x.ItemSlot,{scope:n,value:c.value,children:(0,b.jsx)(ea,{asChild:!0,children:(0,b.jsx)(s.WV.button,{id:p,disabled:o,"data-disabled":o?"":void 0,"data-state":ec(g),"aria-expanded":g,"aria-controls":h,...i,ref:f,onPointerEnter:(0,a.M)(e.onPointerEnter,()=>{m.current=!1,c.wasEscapeCloseRef.current=!1}),onPointerMove:(0,a.M)(e.onPointerMove,ep(()=>{o||m.current||c.wasEscapeCloseRef.current||v.current||(l.onTriggerEnter(c.value),v.current=!0)})),onPointerLeave:(0,a.M)(e.onPointerLeave,ep(()=>{o||(l.onTriggerLeave(),v.current=!1)})),onClick:(0,a.M)(e.onClick,()=>{l.onItemSelect(c.value),m.current=g}),onKeyDown:(0,a.M)(e.onKeyDown,e=>{let t={horizontal:"ArrowDown",vertical:"rtl"===l.dir?"ArrowLeft":"ArrowRight"}[l.orientation];g&&e.key===t&&(c.onEntryKeyDown(),e.preventDefault())})})})}),g&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(y.fC,{"aria-hidden":!0,tabIndex:0,ref:c.focusProxyRef,onFocus:e=>{let t=c.contentRef.current,n=e.relatedTarget,r=n===d.current,o=null==t?void 0:t.contains(n);(r||!o)&&c.onFocusProxyEnter(r?"start":"end")}}),l.viewport&&(0,b.jsx)("span",{"aria-owns":h})]})]})});K.displayName=H;var z="navigationMenu.linkSelect",Y=r.forwardRef((e,t)=>
1{let{__scopeNavigationMenu:n,active:r,onSelect:o,...i}=e;return(0,b.jsx)(ea,{asChild:!0,children:(0,b.jsx)(s.WV.a,{"data-active":r?"":void 0,"aria-current":r?"page":void 0,...i,ref:t,onClick:(0,a.M)(e.onClick,e=>{let t=e.target,n=new CustomEvent(z,{bubbles:!0,cancelable:!0});if(t.addEventListener(z,e=>null==o?void 0:o(e),{once:!0}),(0,s.jH)(t,n),!n.defaultPrevented&&!e.metaKey){let e=new CustomEvent(Q,{bubbles:!0,cancelable:!0});(0,s.jH)(t,e)}},{checkForDefaultPrevented:!1})})})});Y.displayName="NavigationMenuLink";var $="NavigationMenuIndicator",X=r.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=k($,e.__scopeNavigationMenu),a=!!i.value;return i.indicatorTrack?o.createPortal((0,b.jsx)(d.z,{present:n||a,children:(0,b.jsx)(G,{...r,ref:t})}),i.indicatorTrack):null});X.displayName=$;var G=r.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,...o}=e,i=k($,n),a=E(n),[l,u]=r.useState(null),[c,d]=r.useState(null),f="horizontal"===i.orientation,p=!!i.value;r.useEffect(()=>{var e;let t=null===(e=a().find(e=>e.value===i.value))||void 0===e?void 0:e.ref.current;t&&u(t)},[a,i.value]);let h=()=>{l&&d({size:f?l.offsetWidth:l.offsetHeight,offset:f?l.offsetLeft:l.offsetTop})};return eu(l,h),eu(i.indicatorTrack,h),c?(0,b.jsx)(s.WV.div,{"aria-hidden":!0,"data-state":p?"visible":"hidden","data-orientation":i.orientation,...o,ref:t,style:{position:"absolute",...f?{left:0,width:c.size+"px",transform:"translateX(".concat(c.offset,"px)")}:{top:0,height:c.size+"px",transform:"translateY(".concat(c.offset,"px)")},...o.style}}):null}),Z="NavigationMenuContent",q=r.forwardRef((e,t)=>{let{forceMount:n,...r}=e,o=k(Z,e.__scopeNavigationMenu),i=B(Z,e.__scopeNavigationMenu),s=(0,u.e)(i.contentRef,t),l=i.value===o.value,c={value:i.value,triggerRef:i.triggerRef,focusProxyRef:i.focusProxyRef,wasEscapeCloseRef:i.wasEscapeCloseRef,onContentFocusOutside:i.onContentFocusOutside,onRootContentClose:i.onRootContentClose,...r};return o.viewport?(0,b.jsx)(J,{forceMount:n,...c,ref:s}):(0,b.jsx)(d.z,{present:n||l,children:(0,b.jsx)(ee,{"data-state":ec(l),...c,ref:s,onPointerEnter:(0,a.M)(e.onPointerEnter,o.onContentEnter),onPointerLeave:(0,a.M)(e.onPointerLeave,ep(o.onContentLeave)),style:{pointerEvents:!l&&o.isRootMenu?"none":void 0,...c.style}})})});q.displayName=Z;var J=r.forwardRef((e,t)=>{let{onViewportContentChange:n,onViewportContentRemove:r}=k(Z,e.__scopeNavigationMenu);return(0,m.b)(()=>{n(e.value,{ref:t,...e})},[e,t,n]),(0,m.b)(()=>()=>r(e.value),[e.value,r]),null}),Q="navigationMenu.rootContentDismiss",ee=r.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,value:o,triggerRef:i,focusProxyRef:s,wasEscapeCloseRef:l,onRootContentClose:c,onContentFocusOutside:d,...f}=e,p=k(Z,n),v=r.useRef(null),m=(0,u.e)(v,t),g=ed(p.baseId,o),y=ef(p.baseId,o),w=E(n),x=r.useRef(null),{onItemDismiss:T}=p;r.useEffect(()=>{let e=v.current;if(p.isRootMenu&&e){let t=()=>{var t;T(),c(),e.contains(document.activeElement)&&(null===(t=i.current)||void 0===t||t.focus())};return e.addEventListener(Q,t),()=>e.removeEventListener(Q,t)}},[p.isRootMenu,e.value,i,T,c]);let C=r.useMemo(()=>{let e=w().map(e=>e.value);"rtl"===p.dir&&e.reverse();let t=e.indexOf(p.value),n=e.indexOf(p.previousValue),r=o===p.value,i=n===e.indexOf(o);if(!r&&!i)return x.current;let a=(()=>{if(t!==n){if(r&&-1!==n)return t>n?"from-end":"from-start";if(i&&-1!==t)return t>n?"to-start":"to-end"}return null})();return x.current=a,a},[p.previousValue,p.value,p.dir,w,o]);return(0,b.jsx)(eo,{asChild:!0,children:(0,b.jsx)(h.XB,{id:y,"aria-labelledby":g,"data-motion":C,"data-orientation":p.orientation,...f,ref:m,disableOutsidePointerEvents:!1,onDismiss:()=>{var e;let t=new Event(Q,{bubbles:!0,cancelable:!0});null===(e=v.current)||void 0===e||e.dispatchEvent(t)},onFocusOutside:(0,a.M)(e.onFocusOutside,e=>{var t;d();let n=e.target;(null===(t=p.rootNavigationMenu)||void 0===t?void 0:t.contains(n))&&e.preventDefault()}),onPointerDownOutside:(0,a.M)(e.onPointerDownOutside,e=>{var t;let n=e.target,r=w().some(e=>{var t;return null===(t=e.ref.current)||void 0===t?void 0:t.contains(n)}),o=p.isRootMenu&&(null===(t=p.viewport)||void 0===t?void 0:t.contains(n));(r||o||!p.isRootMenu)&&e.preventDefault()}),onKeyDown:(0,a.M)(e.onKeyDown,e=>{let t=e.altKey||e.ctrlKey||e.metaKey;if("Tab"===e.key&&!t){let t=es(e.currentTarget),r=document.activeElement,o=t.findIndex(e=>e===r);if(el(e.shiftKey?t.slice(0,o).reverse():t.slice(o+1,t.length)))e.preventDefault();else{var n;null===(n=s.current)||void 0===n||n.focus()}}}),onEscapeKeyDown:(0,a.M)(e.onEscapeKeyDown,e=>{l.current=!0})})})}),et="NavigationMenuViewport",en=r.forwardRef((e,t)=>
1{let{forceMount:n,...r}=e,o=!!k(et,e.__scopeNavigationMenu).value;return(0,b.jsx)(d.z,{present:n||o,children:(0,b.jsx)(er,{...r,ref:t})})});en.displayName=et;var er=r.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,children:o,...i}=e,l=k(et,n),c=(0,u.e)(t,l.onViewportChange),f=D(Z,e.__scopeNavigationMenu),[p,h]=r.useState(null),[v,m]=r.useState(null),g=p?(null==p?void 0:p.width)+"px":void 0,y=p?(null==p?void 0:p.height)+"px":void 0,w=!!l.value,x=w?l.value:l.previousValue;return eu(v,()=>{v&&h({width:v.offsetWidth,height:v.offsetHeight})}),(0,b.jsx)(s.WV.div,{"data-state":ec(w),"data-orientation":l.orientation,...i,ref:c,style:{pointerEvents:!w&&l.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":g,"--radix-navigation-menu-viewport-height":y,...i.style},onPointerEnter:(0,a.M)(e.onPointerEnter,l.onContentEnter),onPointerLeave:(0,a.M)(e.onPointerLeave,ep(l.onContentLeave)),children:Array.from(f.items).map(e=>{let[t,{ref:n,forceMount:r,...o}]=e,i=x===t;return(0,b.jsx)(d.z,{present:r||i,children:(0,b.jsx)(ee,{...o,ref:(0,u.F)(n,e=>{i&&e&&m(e)})})},t)})})}),eo=r.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,o=k("FocusGroup",n);return(0,b.jsx)(C.Provider,{scope:n,children:(0,b.jsx)(C.Slot,{scope:n,children:(0,b.jsx)(s.WV.div,{dir:o.dir,...r,ref:t})})})}),ei=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],ea=r.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,o=P(n),i=k("FocusGroupItem",n);return(0,b.jsx)(C.ItemSlot,{scope:n,children:(0,b.jsx)(s.WV.button,{...r,ref:t,onKeyDown:(0,a.M)(e.onKeyDown,e=>{if(["Home","End",...ei].includes(e.key)){let t=o().map(e=>e.ref.current);if(["rtl"===i.dir?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(e.key)&&t.reverse(),ei.includes(e.key)){let n=t.indexOf(e.currentTarget);t=t.slice(n+1)}setTimeout(()=>el(t)),e.preventDefault()}})})})});function es(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function el(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}function eu(e,t){let n=(0,g.W)(t);(0,m.b)(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}function ec(e){return e?"open":"closed"}function ed(e,t){return"".concat(e,"-trigger-").concat(t)}function ef(e,t){return"".concat(e,"-content-").concat(t)}function ep(e){return t=>"mouse"===t.pointerType?e(t):void 0}var eh=j,ev=V,em=F,eg=U,ey=K,eb=Y,ew=X,ex=q,eE=en},76191:function(e,t,n){"use strict";n.d(t,{ee:function(){return e$},Eh:function(){return eG},VY:function(){return eX},fC:function(){return eY},D7:function(){return ek}});var r=n(7653);let o=["top","right","bottom","left"],i=Math.min,a=Math.max,s=Math.round,l=Math.floor,u=e=>({x:e,y:e}),c={left:"right",right:"left",bottom:"top",top:"bottom"},d={start:"end",end:"start"};function f(e,t){return"function"==typeof e?e(t):e}function p(e){return e.split("-")[0]}function h(e){return e.split("-")[1]}function v(e){return"x"===e?"y":"x"}function m(e){return"y"===e?"height":"width"}function g(e){return["top","bottom"].includes(p(e))?"y":"x"}function y(e){return e.replace(/start|end/g,e=>d[e])}function b(e){return e.replace(/left|right|bottom|top/g,e=>c[e])}function w(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function x(e){let{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function E(e,t,n){let r,{reference:o,floating:i}=e,a=g(t),s=v(g(t)),l=m(s),u=p(t),c="y"===a,d=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,y=o[l]/2-i[l]/2;switch(u){case"top":r={x:d,y:o.y-i.height};break;case"bottom":r={x:d,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:f};break;case"left":r={x:o.x-i.width,y:f};break;default:r={x:o.x,y:o.y}}switch(h(t)){case"start":r[s]-=y*(n&&c?-1:1);break;case"end":r[s]+=y*(n&&c?-1:1)}return r}let T=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}
1=n,s=i.filter(Boolean),l=await (null==a.isRTL?void 0:a.isRTL(t)),u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=E(u,r,l),f=r,p={},h=0;for(let n=0;n<s.length;n++){let{name:i,fn:v}=s[n],{x:m,y:g,data:y,reset:b}=await v({x:c,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:u,platform:a,elements:{reference:e,floating:t}});c=null!=m?m:c,d=null!=g?g:d,p={...p,[i]:{...p[i],...y}},b&&h<=50&&(h++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(u=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):b.rects),{x:c,y:d}=E(u,f,l)),n=-1)}return{x:c,y:d,placement:f,strategy:o,middlewareData:p}};async function C(e,t){var n;void 0===t&&(t={});let{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:p=!1,padding:h=0}=f(t,e),v=w(h),m=s[p?"floating"===d?"reference":"floating":d],g=x(await i.getClippingRect({element:null==(n=await (null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),y="floating"===d?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,b=await (null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),E=await (null==i.isElement?void 0:i.isElement(b))&&await (null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},T=x(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:b,strategy:l}):y);return{top:(g.top-T.top+v.top)/E.y,bottom:(T.bottom-g.bottom+v.bottom)/E.y,left:(g.left-T.left+v.left)/E.x,right:(T.right-g.right+v.right)/E.x}}function P(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function M(e){return o.some(t=>e[t]>=0)}async function S(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),a=p(n),s=h(n),l="y"===g(n),u=["left","top"].includes(a)?-1:1,c=i&&l?-1:1,d=f(t,e),{mainAxis:v,crossAxis:m,alignmentAxis:y}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof y&&(m="end"===s?-1*y:y),l?{x:m*c,y:v*u}:{x:v*u,y:m*c}}function R(e){return L(e)?(e.nodeName||"").toLowerCase():"#document"}function A(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function k(e){var t;return null==(t=(L(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function L(e){return e instanceof Node||e instanceof A(e).Node}function D(e){return e instanceof Element||e instanceof A(e).Element}function j(e){return e instanceof HTMLElement||e instanceof A(e).HTMLElement}function O(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof A(e).ShadowRoot)}function V(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=_(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function I(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function N(e){let t=F(),n=D(e)?_(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function F(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function W(e){return["html","body","#document"].includes(R(e))}function _(e){return A(e).getComputedStyle(e)}function B(e){return D(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function U(e){if("html"===R(e))return e;let t=e.assignedSlot||e.parentNode||O(e)&&e.host||k(e);return O(t)?t.host:t}function H(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=U(t);return W(n)?t.ownerDocument?t.ownerDocument.body:t.body:j(n)&&V(n)?n:e(n)}
1(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=A(o);if(i){let e=K(a);return t.concat(a,a.visualViewport||[],V(o)?o:[],e&&n?H(e):[])}return t.concat(o,H(o,[],n))}function K(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function z(e){let t=_(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=j(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,l=s(n)!==i||s(r)!==a;return l&&(n=i,r=a),{width:n,height:r,$:l}}function Y(e){return D(e)?e:e.contextElement}function $(e){let t=Y(e);if(!j(t))return u(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=z(t),a=(i?s(n.width):n.width)/r,l=(i?s(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}let X=u(0);function G(e){let t=A(e);return F()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:X}function Z(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),a=Y(e),s=u(1);t&&(r?D(r)&&(s=$(r)):s=$(e));let l=(void 0===(o=n)&&(o=!1),r&&(!o||r===A(a))&&o)?G(a):u(0),c=(i.left+l.x)/s.x,d=(i.top+l.y)/s.y,f=i.width/s.x,p=i.height/s.y;if(a){let e=A(a),t=r&&D(r)?A(r):r,n=e,o=K(n);for(;o&&r&&t!==n;){let e=$(o),t=o.getBoundingClientRect(),r=_(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,d*=e.y,f*=e.x,p*=e.y,c+=i,d+=a,o=K(n=A(o))}}return x({width:f,height:p,x:c,y:d})}function q(e){return Z(k(e)).left+B(e).scrollLeft}function J(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=A(e),r=k(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;let e=F();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,n);else if("document"===t)r=function(e){let t=k(e),n=B(e),r=e.ownerDocument.body,o=a(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=a(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-n.scrollLeft+q(e),l=-n.scrollTop;return"rtl"===_(r).direction&&(s+=a(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:l}}(k(e));else if(D(t))r=function(e,t){let n=Z(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=j(e)?$(e):u(1),a=e.clientWidth*i.x;return{width:a,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{let n=G(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return x(r)}function Q(e){return"static"===_(e).position}function ee(e,t){return j(e)&&"fixed"!==_(e).position?t?t(e):e.offsetParent:null}function et(e,t){let n=A(e);if(I(e))return n;if(!j(e)){let t=U(e);for(;t&&!W(t);){if(D(t)&&!Q(t))return t;t=U(t)}return n}let r=ee(e,t);for(;r&&["table","td","th"].includes(R(r))&&Q(r);)r=ee(r,t);return r&&W(r)&&Q(r)&&!N(r)?n:r||function(e){let t=U(e);for(;j(t)&&!W(t);){if(N(t))return t;if(I(t))break;t=U(t)}return null}(e)||n}let en=async function(e){let t=this.getOffsetParent||et,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=j(t),o=k(t),i="fixed"===n,a=Z(e,!0,i,t),s={scrollLeft:0,scrollTop:0},l=u(0);if(r||!r&&!i){if(("body"!==R(t)||V(o))&&(s=B(t)),r){let e=Z(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=q(o))}return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},er={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,a=k(r),s=!!t&&I(t.floating);if(r===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},c=u(1),d=u(0),f=j(r);if((f||!f&&!i)&&(("body"!==R(r)||V(a))&&(l=B(r)),j(r))){let e=Z(r);c=$(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x,y:n.y*c.y-l.scrollTop*c.y+d.y}},getDocumentElement:k,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,s=[..."clippingAncestors"===n?I(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=H(e,[],!1).filter(e=>D(e)&&"body"!==R(e)),o=null,i="fixed"===_(e).position,a=i?U(e):e;for(;D(a)&&!W(a);){let t=_(a),n=N(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&!!o&&["absolute","fixed"].includes(o.position)||V(a)&&!n&&function e(t,n){let r=U(t);return!(r===n||!D(r)||W(r))&&("fixed"===_(r).position||e(r,n))}(e,a))?r=r.filter(e=>e!==a):o=t,a=U(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=s[0],u=s.reduce((e,n)=>{let r=J(t,n,o);return e.top=a(r.top,e.top),e.right=i(r.right,e.right),e.bottom=i(r.bottom,e.bottom),e.left=a(r.left,e.left),e},J(t,l,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},getOffsetParent:et,getElementRects:en,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=z(e);return{width:t,height:n}},getScale:$,isElement:D,isRTL:function(e){return"rtl"===_(e).direction}},eo=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:o,rects:s,platform:l,elements:u,middlewareData:c}=t,{element:d,padding:p=0}=f(e,t)||{};if(null==d)return{};let y=w(p),b={x:n,y:r},x=v(g(o)),E=m(x),T=await l.getDimensions(d),C="y"===x,P=C?"clientHeight":"clientWidth",M=s.reference[E]+s.reference[x]-b[x]-s.floating[E],S=b[x]-s.reference[x],R=await (null==l.getOffsetParent?void 0:l.getOffsetParent(d)),A=R?R[P]:0;A&&await (null==l.isElement?void 0:l.isElement(R))||(A=u.floating[P]||s.floating[E]);let k=A/2-T[E]/2-1,L=i(y[C?"top":"left"],k),D=i(y[C?"bottom":"right"],k),j=A-T[E]-D,O=A/2-T[E]/2+(M/2-S/2),V=a(L,i(O,j)),I=!c.arrow&&null!=h(o)&&O!==V&&s.reference[E]/2-(O<L?L:D)-T[E]/2<0,N=I?O<L?O-L:O-j:0;return{[x]:b[x]+N,data:{[x]:V,centerOffset:O-V-N,...I&&{alignmentOffset:N}},reset:I}}}),ei=(e,t,n)=>{let r=new Map,o={platform:er,...n},i={...o.platform,_c:r};return T(e,t,{...o,platform:i})};var ea=n(3458),es="undefined"!=typeof document?r.useLayoutEffect:r.useEffect;function el(e,t){let n,r,o;
1if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!el(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!e.$$typeof)&&!el(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eu(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ec(e,t){let n=eu(e);return Math.round(t*n)/n}function ed(e){let t=r.useRef(e);return es(()=>{t.current=e}),t}let ef=e=>({name:"arrow",options:e,fn(t){let{element:n,padding:r}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?eo({element:n.current,padding:r}).fn(t):{}:n?eo({element:n,padding:r}).fn(t):{}}}),ep=(e,t)=>{var n;return{...(void 0===(n=e)&&(n=0),{name:"offset",options:n,async fn(e){var t,r;let{x:o,y:i,placement:a,middlewareData:s}=e,l=await S(e,n);return a===(null==(t=s.offset)?void 0:t.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}),options:[e,t]}},eh=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"shift",options:n,async fn(e){let{x:t,y:r,placement:o}=e,{mainAxis:s=!0,crossAxis:l=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=f(n,e),d={x:t,y:r},h=await C(e,c),m=g(p(o)),y=v(m),b=d[y],w=d[m];if(s){let e="y"===y?"top":"left",t="y"===y?"bottom":"right",n=b+h[e],r=b-h[t];b=a(n,i(b,r))}if(l){let e="y"===m?"top":"left",t="y"===m?"bottom":"right",n=w+h[e],r=w-h[t];w=a(n,i(w,r))}let x=u.fn({...e,[y]:b,[m]:w});return{...x,data:{x:x.x-t,y:x.y-r}}}}),options:[e,t]}},ev=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{options:n,fn(e){let{x:t,y:r,placement:o,rects:i,middlewareData:a}=e,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=f(n,e),c={x:t,y:r},d=g(o),h=v(d),m=c[h],y=c[d],b=f(s,e),w="number"==typeof b?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(l){let e="y"===h?"height":"width",t=i.reference[h]-i.floating[e]+w.mainAxis,n=i.reference[h]+i.reference[e]-w.mainAxis;m<t?m=t:m>n&&(m=n)}if(u){var x,E;let e="y"===h?"width":"height",t=["top","left"].includes(p(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(x=a.offset)?void 0:x[d])||0)+(t?0:w.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(E=a.offset)?void 0:E[d])||0)-(t?w.crossAxis:0);y<n?y=n:y>r&&(y=r)}return{[h]:m,[d]:y}}}),options:[e,t]}},em=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"flip",options:n,async fn(e){var t,r,o,i,a;let{placement:s,middlewareData:l,rects:u,initialPlacement:c,platform:d,elements:w}=e,{mainAxis:x=!0,crossAxis:E=!0,fallbackPlacements:T,fallbackStrategy:P="bestFit",fallbackAxisSideDirection:M="none",flipAlignment:S=!0,...R}=f(n,e);if(null!=(t=l.arrow)&&t.alignmentOffset)return{};let A=p(s),k=g(c),L=p(c)===c,D=await (null==d.isRTL?void 0:d.isRTL(w.floating)),j=T||(L||!S?[b(c)]:function(e){let t=b(e);return[y(e),t,y(t)]}(c)),O="none"!==M;!T&&O&&j.push(...function(e,t,n,r){let o=h(e),i=function(e,t,n){let r=["left","right"],o=["right","left"];switch(e){case"top":case"bottom":if(n)return t?o:r;return t?r:o;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(p(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(y)))),i}(c,S,M,D));let V=[c,...j],I=await C(e,R),N=[],F=(null==(r=l.flip)?void 0:r.overflows)||[];if(x&&N.push(I[A]),E){let e=function(e,t,n){void 0===n&&(n=!1);let r=h(e),o=v(g(e)),i=m(o),a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=b(a)),[a,b(a)]}(s,u,D);N.push(I[e[0]],I[e[1]])}if(F=[...F,{placement:s,overflows:N}],!N.every(e=>e<=0)){let e=((null==(o=l.flip)?void 0:o.index)||0)+1,t=V[e];if(t)return{data:{index:e,overflows:F},reset:{placement:t}};let n=null==(i=F.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(P){case"bestFit":{let e=null==(a=F.filter(e=>{if(O){let t=g(e.placement);return t===k||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>
1e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:a[0];e&&(n=e);break}case"initialPlacement":n=c}if(s!==n)return{reset:{placement:n}}}return{}}}),options:[e,t]}},eg=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"size",options:n,async fn(e){let t,r;let{placement:o,rects:s,platform:l,elements:u}=e,{apply:c=()=>{},...d}=f(n,e),v=await C(e,d),m=p(o),y=h(o),b="y"===g(o),{width:w,height:x}=s.floating;"top"===m||"bottom"===m?(t=m,r=y===(await (null==l.isRTL?void 0:l.isRTL(u.floating))?"start":"end")?"left":"right"):(r=m,t="end"===y?"top":"bottom");let E=x-v.top-v.bottom,T=w-v.left-v.right,P=i(x-v[t],E),M=i(w-v[r],T),S=!e.middlewareData.shift,R=P,A=M;if(b?A=y||S?i(M,T):T:R=y||S?i(P,E):E,S&&!y){let e=a(v.left,0),t=a(v.right,0),n=a(v.top,0),r=a(v.bottom,0);b?A=w-2*(0!==e||0!==t?e+t:a(v.left,v.right)):R=x-2*(0!==n||0!==r?n+r:a(v.top,v.bottom))}await c({...e,availableWidth:A,availableHeight:R});let k=await l.getDimensions(u.floating);return w!==k.width||x!==k.height?{reset:{rects:!0}}:{}}}),options:[e,t]}},ey=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"hide",options:n,async fn(e){let{rects:t}=e,{strategy:r="referenceHidden",...o}=f(n,e);switch(r){case"referenceHidden":{let n=P(await C(e,{...o,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:M(n)}}}case"escaped":{let n=P(await C(e,{...o,altBoundary:!0}),t.floating);return{data:{escapedOffsets:n,escaped:M(n)}}}default:return{}}}}),options:[e,t]}},eb=(e,t)=>({...ef(e),options:[e,t]});var ew=n(76646),ex=n(27573),eE=r.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...i}=e;return(0,ex.jsx)(ew.WV.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,ex.jsx)("polygon",{points:"0,0 30,0 15,10"})})});eE.displayName="Arrow";var eT=n(18497),eC=n(20379),eP=n(63465),eM=n(32316),eS=n(68288),eR="Popper",[eA,ek]=(0,eC.b)(eR),[eL,eD]=eA(eR),ej=e=>{let{__scopePopper:t,children:n}=e,[o,i]=r.useState(null);return(0,ex.jsx)(eL,{scope:t,anchor:o,onAnchorChange:i,children:n})};ej.displayName=eR;var eO="PopperAnchor",eV=r.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:o,...i}=e,a=eD(eO,n),s=r.useRef(null),l=(0,eT.e)(t,s);return r.useEffect(()=>{a.onAnchorChange((null==o?void 0:o.current)||s.current)}),o?null:(0,ex.jsx)(ew.WV.div,{...i,ref:l})});eV.displayName=eO;var eI="PopperContent",[eN,eF]=eA(eI),eW=r.forwardRef((e,t)=>{var n,o,s,u,c,d,f,p;let{__scopePopper:h,side:v="bottom",sideOffset:m=0,align:g="center",alignOffset:y=0,arrowPadding:b=0,avoidCollisions:w=!0,collisionBoundary:x=[],collisionPadding:E=0,sticky:T="partial",hideWhenDetached:C=!1,updatePositionStrategy:P="optimized",onPlaced:M,...S}=e,R=eD(eI,h),[A,L]=r.useState(null),D=(0,eT.e)(t,e=>L(e)),[j,O]=r.useState(null),V=(0,eS.t)(j),I=null!==(f=null==V?void 0:V.width)&&void 0!==f?f:0,N=null!==(p=null==V?void 0:V.height)&&void 0!==p?p:0,F="number"==typeof E?E:{top:0,right:0,bottom:0,left:0,...E},W=Array.isArray(x)?x:[x],_=W.length>0,B={padding:F,boundary:W.filter(eH),altBoundary:_},{refs:U,floatingStyles:K,placement:z,isPositioned:$,middlewareData:X}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:a,floating:s}={},transform:l=!0,whileElementsMounted:u,open:c}=e,[d,f]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=r.useState(o);el(p,o)||h(o);let[v,m]=r.useState(null),[g,y]=r.useState(null),b=r.useCallback(e=>{e!==T.current&&(T.current=e,m(e))},[]),w=r.useCallback(e=>{e!==C.current&&(C.current=e,y(e))},[]),x=a||v,E=s||g,T=r.useRef(null),C=r.useRef(null),P=r.useRef(d),M=null!=u,S=ed(u),R=ed(i),A=r.useCallback(()=>{if(!T.current||!C.current)return;let e={placement:t,strategy:n,middleware:p};R.current&&(e.platform=R.current),ei(T.current,C.current,e).then(e=>{let t={...e,isPositioned:!0};k.current&&!el(P.current,t)&&(P.current=t,ea.flushSync(()=>{f(t)}))})},[p,t,n,R]);es(()=>{!1===c&&P.current.isPositioned&&(P.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[c]);let k=r.useRef(!1);es(()=>(k.current=!0,()=>{k.current=!1}),[]),es(()=>
1{if(x&&(T.current=x),E&&(C.current=E),x&&E){if(S.current)return S.current(x,E,A);A()}},[x,E,A,S,M]);let L=r.useMemo(()=>({reference:T,floating:C,setReference:b,setFloating:w}),[b,w]),D=r.useMemo(()=>({reference:x,floating:E}),[x,E]),j=r.useMemo(()=>{let e={position:n,left:0,top:0};if(!D.floating)return e;let t=ec(D.floating,d.x),r=ec(D.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...eu(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,l,D.floating,d.x,d.y]);return r.useMemo(()=>({...d,update:A,refs:L,elements:D,floatingStyles:j}),[d,A,L,D,j])}({strategy:"fixed",placement:v+("center"!==g?"-"+g:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,t,n,r){let o;void 0===r&&(r={});let{ancestorScroll:s=!0,ancestorResize:u=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:d="function"==typeof IntersectionObserver,animationFrame:f=!1}=r,p=Y(e),h=s||u?[...p?H(p):[],...H(t)]:[];h.forEach(e=>{s&&e.addEventListener("scroll",n,{passive:!0}),u&&e.addEventListener("resize",n)});let v=p&&d?function(e,t){let n,r=null,o=k(e);function s(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function u(c,d){void 0===c&&(c=!1),void 0===d&&(d=1),s();let{left:f,top:p,width:h,height:v}=e.getBoundingClientRect();if(c||t(),!h||!v)return;let m=l(p),g=l(o.clientWidth-(f+h)),y={rootMargin:-m+"px "+-g+"px "+-l(o.clientHeight-(p+v))+"px "+-l(f)+"px",threshold:a(0,i(1,d))||1},b=!0;function w(e){let t=e[0].intersectionRatio;if(t!==d){if(!b)return u();t?u(!1,t):n=setTimeout(()=>{u(!1,1e-7)},1e3)}b=!1}try{r=new IntersectionObserver(w,{...y,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(w,y)}r.observe(e)}(!0),s}(p,n):null,m=-1,g=null;c&&(g=new ResizeObserver(e=>{let[r]=e;r&&r.target===p&&g&&(g.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var e;null==(e=g)||e.observe(t)})),n()}),p&&!f&&g.observe(p),g.observe(t));let y=f?Z(e):null;return f&&function t(){let r=Z(e);y&&(r.x!==y.x||r.y!==y.y||r.width!==y.width||r.height!==y.height)&&n(),y=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;h.forEach(e=>{s&&e.removeEventListener("scroll",n),u&&e.removeEventListener("resize",n)}),null==v||v(),null==(e=g)||e.disconnect(),g=null,f&&cancelAnimationFrame(o)}}(...t,{animationFrame:"always"===P})},elements:{reference:R.anchor},middleware:[ep({mainAxis:m+N,alignmentAxis:y}),w&&eh({mainAxis:!0,crossAxis:!1,limiter:"partial"===T?ev():void 0,...B}),w&&em({...B}),eg({...B,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:o}=e,{width:i,height:a}=n.reference,s=t.floating.style;s.setProperty("--radix-popper-available-width","".concat(r,"px")),s.setProperty("--radix-popper-available-height","".concat(o,"px")),s.setProperty("--radix-popper-anchor-width","".concat(i,"px")),s.setProperty("--radix-popper-anchor-height","".concat(a,"px"))}}),j&&eb({element:j,padding:b}),eK({arrowWidth:I,arrowHeight:N}),C&&ey({strategy:"referenceHidden",...B})]}),[G,q]=ez(z),J=(0,eP.W)(M);(0,eM.b)(()=>{$&&(null==J||J())},[$,J]);let Q=null===(n=X.arrow)||void 0===n?void 0:n.x,ee=null===(o=X.arrow)||void 0===o?void 0:o.y,et=(null===(s=X.arrow)||void 0===s?void 0:s.centerOffset)!==0,[en,er]=r.useState();return(0,eM.b)(()=>{A&&er(window.getComputedStyle(A).zIndex)},[A]),(0,ex.jsx)("div",{ref:U.setFloating,"data-radix-popper-content-wrapper":"",style:{...K,transform:$?K.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:en,"--radix-popper-transform-origin":[null===(u=X.transformOrigin)||void 0===u?void 0:u.x,null===(c=X.transformOrigin)||void 0===c?void 0:c.y].join(" "),...(null===(d=X.hide)||void 0===d?void 0:d.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,ex.jsx)(eN,{scope:h,placedSide:G,onArrowChange:O,arrowX:Q,arrowY:ee,shouldHideArrow:et,children:(0,ex.jsx)(ew.WV.div,{"data-side":G,"data-align":q,...S,ref:D,style:{...S.style,animation:$?void 0:"none"}})})})});eW.displayName=eI;var e_="PopperArrow",eB={top:"bottom",right:"left",bottom:"top",left:"right"},eU=r.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=eF(e_,n),i=eB[o.placedSide];return(0,ex.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,ex.jsx)(eE,{...r,ref:t,style:{...r.style,display:"block"}})})});function eH(e){return null!==e}eU.displayName=e_;var eK=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;let{placement:s,rects:l,middlewareData:u}=t,c=(null===(n=u.arrow)||void 0===n?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[p,h]=ez(s),v={start:"0%",center:"50%",end:"100%"}[h],m=(null!==(i=null===(r=u.arrow)||void 0===r?void 0:r.x)&&void 0!==i?i:0)+d/2,g=(null!==(a=null===(o=u.arrow)||void 0===o?void 0:o.y)&&void 0!==a?a:0)+f/2,y="",b="";return"bottom"===p?(y=c?v:"".concat(m,"px"),b="".concat(-f,"px")):"top"===p?(y=c?v:"".concat(m,"px"),b="".concat(l.floating.height+f,"px")):"right"===p?(y="".concat(-f,"px"),b=c?v:"".concat(g,"px")):"left"===p&&(y="".concat(l.floating.width+f,"px"),b=c?v:"".concat(g,"px")),{data:{x:y,y:b}}}});function ez(e){let[t,n="center"]=e.split("-");return[t,n]}var eY=ej,e$=eV,eX=eW,eG=eU},38826:function(e,t,n){"use strict";n.d(t,{f:function(){return u},h:function(){return l}});var r=n(7653),o=n(3458),i=n(76646),a=n(32316),s=n(27573),l=r.forwardRef((e,t)=>
1{var n,l;let{container:u,...c}=e,[d,f]=r.useState(!1);(0,a.b)(()=>f(!0),[]);let p=u||d&&(null===(l=globalThis)||void 0===l?void 0:null===(n=l.document)||void 0===n?void 0:n.body);return p?o.createPortal((0,s.jsx)(i.WV.div,{...c,ref:t}),p):null});l.displayName="Portal";var u=l},72305:function(e,t,n){"use strict";n.d(t,{z:function(){return a}});var r=n(7653),o=n(18497),i=n(32316),a=e=>{var t,n;let a,l;let{present:u,children:c}=e,d=function(e){var t,n;let[o,a]=r.useState(),l=r.useRef(null),u=r.useRef(e),c=r.useRef("none"),[d,f]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return r.useEffect(()=>{let e=s(l.current);c.current="mounted"===d?e:"none"},[d]),(0,i.b)(()=>{let t=l.current,n=u.current;if(n!==e){let r=c.current,o=s(t);e?f("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?f("UNMOUNT"):n&&r!==o?f("ANIMATION_OUT"):f("UNMOUNT"),u.current=e}},[e,f]),(0,i.b)(()=>{if(o){var e;let t;let n=null!==(e=o.ownerDocument.defaultView)&&void 0!==e?e:window,r=e=>{let r=s(l.current).includes(e.animationName);if(e.target===o&&r&&(f("ANIMATION_END"),!u.current)){let e=o.style.animationFillMode;o.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=e)})}},i=e=>{e.target===o&&(c.current=s(l.current))};return o.addEventListener("animationstart",i),o.addEventListener("animationcancel",r),o.addEventListener("animationend",r),()=>{n.clearTimeout(t),o.removeEventListener("animationstart",i),o.removeEventListener("animationcancel",r),o.removeEventListener("animationend",r)}}f("ANIMATION_END")},[o,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:r.useCallback(e=>{l.current=e?getComputedStyle(e):null,a(e)},[])}}(u),f="function"==typeof c?c({present:d.isPresent}):r.Children.only(c),p=(0,o.e)(d.ref,(a=null===(t=Object.getOwnPropertyDescriptor(f.props,"ref"))||void 0===t?void 0:t.get)&&"isReactWarning"in a&&a.isReactWarning?f.ref:(a=null===(n=Object.getOwnPropertyDescriptor(f,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in a&&a.isReactWarning?f.props.ref:f.props.ref||f.ref);return"function"==typeof c||d.isPresent?r.cloneElement(f,{ref:p}):null};function s(e){return(null==e?void 0:e.animationName)||"none"}a.displayName="Presence"},76646:function(e,t,n){"use strict";n.d(t,{WV:function(){return s},jH:function(){return l}});var r=n(7653),o=n(3458),i=n(92721),a=n(27573),s=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=(0,i.Z8)(`Primitive.${t}`),o=r.forwardRef((e,r)=>{let{asChild:o,...i}=e,s=o?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(s,{...i,ref:r})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function l(e,t){e&&o.flushSync(()=>e.dispatchEvent(t))}},85935:function(e,t,n){"use strict";n.d(t,{ZA:function(){return ex},ck:function(){return eT},__:function(){return eE},$G:function(){return eP},u_:function(){return eC},Z0:function(){return eM},xz:function(){return eb},l_:function(){return ew}});var r=n(7653),o=n(3458);function i(e,[t,n]){return Math.min(n,Math.max(t,e))}var a=n(2467),s=n(52542),l=n(18497),u=n(20379),c=(n(17113),n(22089)),d=n(48086),f=n(30581),p=n(52608),h=n(76191),v=(n(38826),n(76646)),m=n(92721),g=n(63465),y=(n(65192),n(32316)),b=n(77214),w=n(41937),x=n(11825),E=n(16319),T=n(27573),C=[" ","Enter","ArrowUp","ArrowDown"],P=[" ","Enter"],M="Select",[S,R,A]=(0,s.B)(M),[k,L]=(0,u.b)(M,[A,h.D7]),D=(0,h.D7)(),[j,O]=k(M),[V,I]=k(M),N="SelectTrigger",F=r.forwardRef((e,t)=>{let{__scopeSelect:n,disabled:o=!1,...i}=e,s=D(n),u=O(N,n),c=u.disabled||o,d=(0,l.e)(t,u.onTriggerChange),f=R(n),p=r.useRef("touch"),[m,g,y]=eg(e=>{let t=f().filter(e=>!e.disabled),n=t.find(e=>e.value===u.value),r=ey(t,e,n);void 0!==r&&u.onValueChange(r.value)}),b=e=>{c||(u.onOpenChange(!0),y()),e&&(u.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,T.jsx)(h.ee,{asChild:!0,...s,children:(0,T.jsx)(v.WV.button,{type:"button",role:"combobox","aria-controls":u.contentId,"aria-expanded":u.open,"aria-required":u.required,"aria-autocomplete":"none",dir:u.dir,"data-state":u.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":em(u.value)?"":void 0,...i,ref:d,onClick:(0,a.M)(i.onClick,e=>
1{e.currentTarget.focus(),"mouse"!==p.current&&b(e)}),onPointerDown:(0,a.M)(i.onPointerDown,e=>{p.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(b(e),e.preventDefault())}),onKeyDown:(0,a.M)(i.onKeyDown,e=>{let t=""!==m.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||g(e.key),(!t||" "!==e.key)&&C.includes(e.key)&&(b(),e.preventDefault())})})})});F.displayName=N;var W="SelectValue";r.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:o,children:i,placeholder:a="",...s}=e,u=O(W,n),{onValueNodeHasChildrenChange:c}=u,d=void 0!==i,f=(0,l.e)(t,u.onValueNodeChange);return(0,y.b)(()=>{c(d)},[c,d]),(0,T.jsx)(v.WV.span,{...s,ref:f,style:{pointerEvents:"none"},children:em(u.value)?(0,T.jsx)(T.Fragment,{children:a}):i})}).displayName=W,r.forwardRef((e,t)=>{let{__scopeSelect:n,children:r,...o}=e;return(0,T.jsx)(v.WV.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})}).displayName="SelectIcon";var _="SelectContent";r.forwardRef((e,t)=>{let n=O(_,e.__scopeSelect),[i,a]=r.useState();return((0,y.b)(()=>{a(new DocumentFragment)},[]),n.open)?(0,T.jsx)(K,{...e,ref:t}):i?o.createPortal((0,T.jsx)(B,{scope:e.__scopeSelect,children:(0,T.jsx)(S.Slot,{scope:e.__scopeSelect,children:(0,T.jsx)("div",{children:e.children})})}),i):null}).displayName=_;var[B,U]=k(_),H=(0,m.Z8)("SelectContent.RemoveScroll"),K=r.forwardRef((e,t)=>{let{__scopeSelect:n,position:o="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:s,onPointerDownOutside:u,side:p,sideOffset:h,align:v,alignOffset:m,arrowPadding:g,collisionBoundary:y,collisionPadding:b,sticky:w,hideWhenDetached:C,avoidCollisions:P,...M}=e,S=O(_,n),[A,k]=r.useState(null),[L,D]=r.useState(null),j=(0,l.e)(t,e=>k(e)),[V,I]=r.useState(null),[N,F]=r.useState(null),W=R(n),[U,K]=r.useState(!1),$=r.useRef(!1);r.useEffect(()=>{if(A)return(0,x.Ry)(A)},[A]),(0,d.EW)();let X=r.useCallback(e=>{let[t,...n]=W().map(e=>e.ref.current),[r]=n.slice(-1),o=document.activeElement;for(let n of e)if(n===o||(null==n||n.scrollIntoView({block:"nearest"}),n===t&&L&&(L.scrollTop=0),n===r&&L&&(L.scrollTop=L.scrollHeight),null==n||n.focus(),document.activeElement!==o))return},[W,L]),G=r.useCallback(()=>X([V,A]),[X,V,A]);r.useEffect(()=>{U&&G()},[U,G]);let{onOpenChange:Z,triggerPointerDownPosRef:q}=S;r.useEffect(()=>{if(A){let e={x:0,y:0},t=t=>{var n,r,o,i;e={x:Math.abs(Math.round(t.pageX)-(null!==(o=null===(n=q.current)||void 0===n?void 0:n.x)&&void 0!==o?o:0)),y:Math.abs(Math.round(t.pageY)-(null!==(i=null===(r=q.current)||void 0===r?void 0:r.y)&&void 0!==i?i:0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():A.contains(n.target)||Z(!1),document.removeEventListener("pointermove",t),q.current=null};return null!==q.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[A,Z,q]),r.useEffect(()=>{let e=()=>Z(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[Z]);let[J,Q]=eg(e=>{let t=W().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),r=ey(t,e,n);r&&setTimeout(()=>r.ref.current.focus())}),ee=r.useCallback((e,t,n)=>{let r=!$.current&&!n;(void 0!==S.value&&S.value===t||r)&&(I(e),r&&($.current=!0))},[S.value]),et=r.useCallback(()=>null==A?void 0:A.focus(),[A]),en=r.useCallback((e,t,n)=>{let r=!$.current&&!n;(void 0!==S.value&&S.value===t||r)&&F(e)},[S.value]),er="popper"===o?Y:z,eo=er===Y?{side:p,sideOffset:h,align:v,alignOffset:m,arrowPadding:g,collisionBoundary:y,collisionPadding:b,sticky:w,hideWhenDetached:C,avoidCollisions:P}:{};return(0,T.jsx)(B,{scope:n,content:A,viewport:L,onViewportChange:D,itemRefCallback:ee,selectedItem:V,onItemLeave:et,itemTextRefCallback:en,focusSelectedItem:G,selectedItemText:N,position:o,isPositioned:U,searchRef:J,children:(0,T.jsx)(E.Z,{as:H,allowPinchZoom:!0,children:(0,T.jsx)(f.M,{asChild:!0,trapped:S.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,a.M)(i,e=>{var t;null===(t=S.trigger)||void 0===t||t.focus({preventScroll:!0}),e.preventDefault()}),children:(0,T.jsx)(c.XB,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:u,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>S.onOpenChange(!1),children:(0,T.jsx)(er,{role:"listbox",id:S.contentId,"data-state":S.open?"open":"closed",dir:S.dir,onContextMenu:e=>e.preventDefault(),...M,...eo,onPlaced:()=>K(!0),ref:j,style:{display:"flex",flexDirection:"column",outline:"none",...M.style},onKeyDown:(0,a.M)(M.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;
1if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||Q(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=W().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>X(t)),e.preventDefault()}})})})})})})});K.displayName="SelectContentImpl";var z=r.forwardRef((e,t)=>{let{__scopeSelect:n,onPlaced:o,...a}=e,s=O(_,n),u=U(_,n),[c,d]=r.useState(null),[f,p]=r.useState(null),h=(0,l.e)(t,e=>p(e)),m=R(n),g=r.useRef(!1),b=r.useRef(!0),{viewport:w,selectedItem:x,selectedItemText:E,focusSelectedItem:C}=u,P=r.useCallback(()=>{if(s.trigger&&s.valueNode&&c&&f&&w&&x&&E){let e=s.trigger.getBoundingClientRect(),t=f.getBoundingClientRect(),n=s.valueNode.getBoundingClientRect(),r=E.getBoundingClientRect();if("rtl"!==s.dir){let o=r.left-t.left,a=n.left-o,s=e.left-a,l=e.width+s,u=Math.max(l,t.width),d=i(a,[10,Math.max(10,window.innerWidth-10-u)]);c.style.minWidth=l+"px",c.style.left=d+"px"}else{let o=t.right-r.right,a=window.innerWidth-n.right-o,s=window.innerWidth-e.right-a,l=e.width+s,u=Math.max(l,t.width),d=i(a,[10,Math.max(10,window.innerWidth-10-u)]);c.style.minWidth=l+"px",c.style.right=d+"px"}let a=m(),l=window.innerHeight-20,u=w.scrollHeight,d=window.getComputedStyle(f),p=parseInt(d.borderTopWidth,10),h=parseInt(d.paddingTop,10),v=parseInt(d.borderBottomWidth,10),y=p+h+u+parseInt(d.paddingBottom,10)+v,b=Math.min(5*x.offsetHeight,y),T=window.getComputedStyle(w),C=parseInt(T.paddingTop,10),P=parseInt(T.paddingBottom,10),M=e.top+e.height/2-10,S=x.offsetHeight/2,R=p+h+(x.offsetTop+S);if(R<=M){let e=a.length>0&&x===a[a.length-1].ref.current;c.style.bottom="0px";let t=f.clientHeight-w.offsetTop-w.offsetHeight;c.style.height=R+Math.max(l-M,S+(e?P:0)+t+v)+"px"}else{let e=a.length>0&&x===a[0].ref.current;c.style.top="0px";let t=Math.max(M,p+w.offsetTop+(e?C:0)+S);c.style.height=t+(y-R)+"px",w.scrollTop=R-M+w.offsetTop}c.style.margin="".concat(10,"px 0"),c.style.minHeight=b+"px",c.style.maxHeight=l+"px",null==o||o(),requestAnimationFrame(()=>g.current=!0)}},[m,s.trigger,s.valueNode,c,f,w,x,E,s.dir,o]);(0,y.b)(()=>P(),[P]);let[M,S]=r.useState();(0,y.b)(()=>{f&&S(window.getComputedStyle(f).zIndex)},[f]);let A=r.useCallback(e=>{e&&!0===b.current&&(P(),null==C||C(),b.current=!1)},[P,C]);return(0,T.jsx)($,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:g,onScrollButtonChange:A,children:(0,T.jsx)("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:M},children:(0,T.jsx)(v.WV.div,{...a,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});z.displayName="SelectItemAlignedPosition";var Y=r.forwardRef((e,t)=>{let{__scopeSelect:n,align:r="start",collisionPadding:o=10,...i}=e,a=D(n);return(0,T.jsx)(h.VY,{...a,...i,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Y.displayName="SelectPopperPosition";var[$,X]=k(_,{}),G="SelectViewport",Z=r.forwardRef((e,t)=>{let{__scopeSelect:n,nonce:o,...i}=e,s=U(G,n),u=X(G,n),c=(0,l.e)(t,s.onViewportChange),d=r.useRef(0);return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),(0,T.jsx)(S.Slot,{scope:n,children:(0,T.jsx)(v.WV.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:(0,a.M)(i.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=u;if((null==r?void 0:r.current)&&n){let e=Math.abs(d.current-t.scrollTop);if(e>0){let r=window.innerHeight-20,o=Math.max(parseFloat(n.style.minHeight),parseFloat(n.style.height));if(o<r){let i=o+e,a=Math.min(r,i),s=i-a;n.style.height=a+"px","0px"===n.style.bottom&&(t.scrollTop=s>0?s:0,n.style.justifyContent="flex-end")}}}d.current=t.scrollTop})})})]})});Z.displayName=G;var q="SelectGroup",[J,Q]=k(q),ee=r.forwardRef((e,t)=>
1{let{__scopeSelect:n,...r}=e,o=(0,p.M)();return(0,T.jsx)(J,{scope:n,id:o,children:(0,T.jsx)(v.WV.div,{role:"group","aria-labelledby":o,...r,ref:t})})});ee.displayName=q;var et="SelectLabel",en=r.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,o=Q(et,n);return(0,T.jsx)(v.WV.div,{id:o.id,...r,ref:t})});en.displayName=et;var er="SelectItem",[eo,ei]=k(er),ea=r.forwardRef((e,t)=>{let{__scopeSelect:n,value:o,disabled:i=!1,textValue:s,...u}=e,c=O(er,n),d=U(er,n),f=c.value===o,[h,m]=r.useState(null!=s?s:""),[g,y]=r.useState(!1),b=(0,l.e)(t,e=>{var t;return null===(t=d.itemRefCallback)||void 0===t?void 0:t.call(d,e,o,i)}),w=(0,p.M)(),x=r.useRef("touch"),E=()=>{i||(c.onValueChange(o),c.onOpenChange(!1))};if(""===o)throw Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,T.jsx)(eo,{scope:n,value:o,disabled:i,textId:w,isSelected:f,onItemTextChange:r.useCallback(e=>{m(t=>{var n;return t||(null!==(n=null==e?void 0:e.textContent)&&void 0!==n?n:"").trim()})},[]),children:(0,T.jsx)(S.ItemSlot,{scope:n,value:o,disabled:i,textValue:h,children:(0,T.jsx)(v.WV.div,{role:"option","aria-labelledby":w,"data-highlighted":g?"":void 0,"aria-selected":f&&g,"data-state":f?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...u,ref:b,onFocus:(0,a.M)(u.onFocus,()=>y(!0)),onBlur:(0,a.M)(u.onBlur,()=>y(!1)),onClick:(0,a.M)(u.onClick,()=>{"mouse"!==x.current&&E()}),onPointerUp:(0,a.M)(u.onPointerUp,()=>{"mouse"===x.current&&E()}),onPointerDown:(0,a.M)(u.onPointerDown,e=>{x.current=e.pointerType}),onPointerMove:(0,a.M)(u.onPointerMove,e=>{if(x.current=e.pointerType,i){var t;null===(t=d.onItemLeave)||void 0===t||t.call(d)}else"mouse"===x.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,a.M)(u.onPointerLeave,e=>{if(e.currentTarget===document.activeElement){var t;null===(t=d.onItemLeave)||void 0===t||t.call(d)}}),onKeyDown:(0,a.M)(u.onKeyDown,e=>{var t;(null===(t=d.searchRef)||void 0===t?void 0:t.current)!==""&&" "===e.key||(P.includes(e.key)&&E()," "===e.key&&e.preventDefault())})})})})});ea.displayName=er;var es="SelectItemText";r.forwardRef((e,t)=>{let{__scopeSelect:n,className:i,style:a,...s}=e,u=O(es,n),c=U(es,n),d=ei(es,n),f=I(es,n),[p,h]=r.useState(null),m=(0,l.e)(t,e=>h(e),d.onItemTextChange,e=>{var t;return null===(t=c.itemTextRefCallback)||void 0===t?void 0:t.call(c,e,d.value,d.disabled)}),g=null==p?void 0:p.textContent,b=r.useMemo(()=>(0,T.jsx)("option",{value:d.value,disabled:d.disabled,children:g},d.value),[d.disabled,d.value,g]),{onNativeOptionAdd:w,onNativeOptionRemove:x}=f;return(0,y.b)(()=>(w(b),()=>x(b)),[w,x,b]),(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(v.WV.span,{id:d.textId,...s,ref:m}),d.isSelected&&u.valueNode&&!u.valueNodeHasChildren?o.createPortal(s.children,u.valueNode):null]})}).displayName=es;var el="SelectItemIndicator";r.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return ei(el,n).isSelected?(0,T.jsx)(v.WV.span,{"aria-hidden":!0,...r,ref:t}):null}).displayName=el;var eu="SelectScrollUpButton",ec=r.forwardRef((e,t)=>{let n=U(eu,e.__scopeSelect),o=X(eu,e.__scopeSelect),[i,a]=r.useState(!1),s=(0,l.e)(t,o.onScrollButtonChange);return(0,y.b)(()=>{if(n.viewport&&n.isPositioned){let e=function(){a(t.scrollTop>0)},t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),i?(0,T.jsx)(ep,{...e,ref:s,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});ec.displayName=eu;var ed="SelectScrollDownButton",ef=r.forwardRef((e,t)=>{let n=U(ed,e.__scopeSelect),o=X(ed,e.__scopeSelect),[i,a]=r.useState(!1),s=(0,l.e)(t,o.onScrollButtonChange);return(0,y.b)(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;a(Math.ceil(t.scrollTop)<e)},t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),i?(0,T.jsx)(ep,{...e,ref:s,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});
1ef.displayName=ed;var ep=r.forwardRef((e,t)=>{let{__scopeSelect:n,onAutoScroll:o,...i}=e,s=U("SelectScrollButton",n),l=r.useRef(null),u=R(n),c=r.useCallback(()=>{null!==l.current&&(window.clearInterval(l.current),l.current=null)},[]);return r.useEffect(()=>()=>c(),[c]),(0,y.b)(()=>{var e;let t=u().find(e=>e.ref.current===document.activeElement);null==t||null===(e=t.ref.current)||void 0===e||e.scrollIntoView({block:"nearest"})},[u]),(0,T.jsx)(v.WV.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:(0,a.M)(i.onPointerDown,()=>{null===l.current&&(l.current=window.setInterval(o,50))}),onPointerMove:(0,a.M)(i.onPointerMove,()=>{var e;null===(e=s.onItemLeave)||void 0===e||e.call(s),null===l.current&&(l.current=window.setInterval(o,50))}),onPointerLeave:(0,a.M)(i.onPointerLeave,()=>{c()})})}),eh=r.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return(0,T.jsx)(v.WV.div,{"aria-hidden":!0,...r,ref:t})});eh.displayName="SelectSeparator";var ev="SelectArrow";function em(e){return""===e||void 0===e}function eg(e){let t=(0,g.W)(e),n=r.useRef(""),o=r.useRef(0),i=r.useCallback(e=>{let r=n.current+e;t(r),function e(t){n.current=t,window.clearTimeout(o.current),""!==t&&(o.current=window.setTimeout(()=>e(""),1e3))}(r)},[t]),a=r.useCallback(()=>{n.current="",window.clearTimeout(o.current)},[]);return r.useEffect(()=>()=>window.clearTimeout(o.current),[]),[n,i,a]}function ey(e,t,n){var r;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=(r=Math.max(n?e.indexOf(n):-1,0),e.map((t,n)=>e[(r+n)%e.length]));1===o.length&&(i=i.filter(e=>e!==n));let a=i.find(e=>e.textValue.toLowerCase().startsWith(o.toLowerCase()));return a!==n?a:void 0}r.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,o=D(n),i=O(ev,n),a=U(ev,n);return i.open&&"popper"===a.position?(0,T.jsx)(h.Eh,{...o,...r,ref:t}):null}).displayName=ev,r.forwardRef((e,t)=>{let{__scopeSelect:n,value:o,...i}=e,a=r.useRef(null),s=(0,l.e)(t,a),u=(0,b.D)(o);return r.useEffect(()=>{let e=a.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(u!==o&&t){let n=new Event("change",{bubbles:!0});t.call(e,o),e.dispatchEvent(n)}},[u,o]),(0,T.jsx)(v.WV.select,{...i,style:{...w.C2,...i.style},ref:s,defaultValue:o})}).displayName="SelectBubbleInput";var eb=F,ew=Z,ex=ee,eE=en,eT=ea,eC=ec,eP=ef,eM=eh},92721:function(e,t,n){"use strict";n.d(t,{Z8:function(){return a},sA:function(){return l}});var r=n(7653),o=n(18497),i=n(27573);function a(e){let t=function(e){let t=r.forwardRef((e,t)=>{let{children:n,...i}=e;if(r.isValidElement(n)){let e,a;let s=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref,l=function(e,t){let n={...t};for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(i,n.props);return n.type!==r.Fragment&&(l.ref=t?(0,o.F)(t,s):s),r.cloneElement(n,l)}return r.Children.count(n)>1?r.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=r.forwardRef((e,n)=>{let{children:o,...a}=e,s=r.Children.toArray(o),l=s.find(u);if(l){let e=l.props.children,o=s.map(t=>t!==l?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,i.jsx)(t,{...a,ref:n,children:r.isValidElement(e)?r.cloneElement(e,void 0,o):null})}return(0,i.jsx)(t,{...a,ref:n,children:o})});return n.displayName=`${e}.Slot`,n}var s=Symbol("radix.slottable");function l(e){let t=({children:e})=>(0,i.jsx)(i.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=s,t}function u(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===s}},24169:function(e,t,n){"use strict";n.d(t,{bU:function(){return T},fC:function(){return E}});var r=n(7653),o=n(2467),i=n(18497),a=n(20379),s=n(65192),l=n(77214),u=n(68288),c=n(76646),d=n(27573),f="Switch",[p,h]=(0,a.b)(f),[v,m]=p(f),g=r.forwardRef((e,t)=>
1{let{__scopeSwitch:n,name:a,checked:l,defaultChecked:u,required:p,disabled:h,value:m="on",onCheckedChange:g,form:y,...b}=e,[E,T]=r.useState(null),C=(0,i.e)(t,e=>T(e)),P=r.useRef(!1),M=!E||y||!!E.closest("form"),[S,R]=(0,s.T)({prop:l,defaultProp:null!=u&&u,onChange:g,caller:f});return(0,d.jsxs)(v,{scope:n,checked:S,disabled:h,children:[(0,d.jsx)(c.WV.button,{type:"button",role:"switch","aria-checked":S,"aria-required":p,"data-state":x(S),"data-disabled":h?"":void 0,disabled:h,value:m,...b,ref:C,onClick:(0,o.M)(e.onClick,e=>{R(e=>!e),M&&(P.current=e.isPropagationStopped(),P.current||e.stopPropagation())})}),M&&(0,d.jsx)(w,{control:E,bubbles:!P.current,name:a,value:m,checked:S,required:p,disabled:h,form:y,style:{transform:"translateX(-100%)"}})]})});g.displayName=f;var y="SwitchThumb",b=r.forwardRef((e,t)=>{let{__scopeSwitch:n,...r}=e,o=m(y,n);return(0,d.jsx)(c.WV.span,{"data-state":x(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t})});b.displayName=y;var w=r.forwardRef((e,t)=>{let{__scopeSwitch:n,control:o,checked:a,bubbles:s=!0,...c}=e,f=r.useRef(null),p=(0,i.e)(f,t),h=(0,l.D)(a),v=(0,u.t)(o);return r.useEffect(()=>{let e=f.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(h!==a&&t){let n=new Event("click",{bubbles:s});t.call(e,a),e.dispatchEvent(n)}},[h,a,s]),(0,d.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:a,...c,tabIndex:-1,ref:p,style:{...c.style,...v,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});function x(e){return e?"checked":"unchecked"}w.displayName="SwitchBubbleInput";var E=g,T=b},99819:function(e,t,n){"use strict";n.d(t,{VY:function(){return $},fC:function(){return K},h_:function(){return Y},xz:function(){return z},zt:function(){return H}});var r=n(7653),o=n(2467),i=n(18497),a=n(20379),s=n(22089),l=n(52608),u=n(76191),c=n(38826),d=n(72305),f=n(76646),p=n(92721),h=n(65192),v=n(41937),m=n(27573),[g,y]=(0,a.b)("Tooltip",[u.D7]),b=(0,u.D7)(),w="TooltipProvider",x="tooltip.open",[E,T]=g(w),C=e=>{let{__scopeTooltip:t,delayDuration:n=700,skipDelayDuration:o=300,disableHoverableContent:i=!1,children:a}=e,s=r.useRef(!0),l=r.useRef(!1),u=r.useRef(0);return r.useEffect(()=>{let e=u.current;return()=>window.clearTimeout(e)},[]),(0,m.jsx)(E,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:r.useCallback(()=>{window.clearTimeout(u.current),s.current=!1},[]),onClose:r.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>s.current=!0,o)},[o]),isPointerInTransitRef:l,onPointerInTransitChange:r.useCallback(e=>{l.current=e},[]),disableHoverableContent:i,children:a})};C.displayName=w;var P="Tooltip",[M,S]=g(P),R=e=>{let{__scopeTooltip:t,children:n,open:o,defaultOpen:i,onOpenChange:a,disableHoverableContent:s,delayDuration:c}=e,d=T(P,e.__scopeTooltip),f=b(t),[p,v]=r.useState(null),g=(0,l.M)(),y=r.useRef(0),w=null!=s?s:d.disableHoverableContent,E=null!=c?c:d.delayDuration,C=r.useRef(!1),[S,R]=(0,h.T)({prop:o,defaultProp:null!=i&&i,onChange:e=>{e?(d.onOpen(),document.dispatchEvent(new CustomEvent(x))):d.onClose(),null==a||a(e)},caller:P}),A=r.useMemo(()=>S?C.current?"delayed-open":"instant-open":"closed",[S]),k=r.useCallback(()=>{window.clearTimeout(y.current),y.current=0,C.current=!1,R(!0)},[R]),L=r.useCallback(()=>{window.clearTimeout(y.current),y.current=0,R(!1)},[R]),D=r.useCallback(()=>{window.clearTimeout(y.current),y.current=window.setTimeout(()=>{C.current=!0,R(!0),y.current=0},E)},[E,R]);return r.useEffect(()=>()=>{y.current&&(window.clearTimeout(y.current),y.current=0)},[]),(0,m.jsx)(u.fC,{...f,children:(0,m.jsx)(M,{scope:t,contentId:g,open:S,stateAttribute:A,trigger:p,onTriggerChange:v,onTriggerEnter:r.useCallback(()=>{d.isOpenDelayedRef.current?D():k()},[d.isOpenDelayedRef,D,k]),onTriggerLeave:r.useCallback(()=>{w?L():(window.clearTimeout(y.current),y.current=0)},[L,w]),onOpen:k,onClose:L,disableHoverableContent:w,children:n})})};R.displayName=P;var A="TooltipTrigger",k=r.forwardRef((e,t)=>{let{__scopeTooltip:n,...a}=e,s=S(A,n),l=T(A,n),c=b(n),d=r.useRef(null),p=(0,i.e)(t,d,s.onTriggerChange),h=r.useRef(!1),v=r.useRef(!1),g=r.useCallback(()=>h.current=!1,[]);return r.useEffect(()=>()=>document.removeEventListener("pointerup",g),[g]),(0,m.jsx)(u.ee,{asChild:!0,...c,children:(0,m.jsx)(f.WV.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...a,ref:p,onPointerMove:(0,o.M)(e.onPointerMove,e=>{"touch"===e.pointerType||v.current||l.isPointerInTransitRef.current||(s.onTriggerEnter(),v.current=!0)}),onPointerLeave:(0,o.M)(e.onPointerLeave,()=>{s.onTriggerLeave(),v.current=!1}),onPointerDown:(0,o.M)(e.onPointerDown,()=>{s.open&&s.onClose(),h.current=!0,document.addEventListener("pointerup",g,{once:!0})}),onFocus:(0,o.M)(e.onFocus,()=>{h.current||s.onOpen()}),onBlur:(0,o.M)(e.onBlur,s.onClose),onClick:(0,o.M)(e.onClick,s.onClose)})})});k.displayName=A;var L="TooltipPortal",[D,j]=g(L,{forceMount:void 0}),O=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,i=S(L,t);return(0,m.jsx)(D,{scope:t,forceMount:n,children:(0,m.jsx)(d.z,{present:n||i.open,children:(0,m.jsx)(c.h,{asChild:!0,container:o,children:r})})})};O.displayName=L;var V="TooltipContent",I=r.forwardRef((e,t)=>
1{let n=j(V,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,a=S(V,e.__scopeTooltip);return(0,m.jsx)(d.z,{present:r||a.open,children:a.disableHoverableContent?(0,m.jsx)(B,{side:o,...i,ref:t}):(0,m.jsx)(N,{side:o,...i,ref:t})})}),N=r.forwardRef((e,t)=>{let n=S(V,e.__scopeTooltip),o=T(V,e.__scopeTooltip),a=r.useRef(null),s=(0,i.e)(t,a),[l,u]=r.useState(null),{trigger:c,onClose:d}=n,f=a.current,{onPointerInTransitChange:p}=o,h=r.useCallback(()=>{u(null),p(!1)},[p]),v=r.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=function(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw Error("unreachable")}}(r,n.getBoundingClientRect());u(function(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0),function(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return(n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y)?t:t.concat(n)}(t)}([...function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,o),...function(e){let{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}(t.getBoundingClientRect())])),p(!0)},[p]);return r.useEffect(()=>()=>h(),[h]),r.useEffect(()=>{if(c&&f){let e=e=>v(e,f),t=e=>v(e,c);return c.addEventListener("pointerleave",e),f.addEventListener("pointerleave",t),()=>{c.removeEventListener("pointerleave",e),f.removeEventListener("pointerleave",t)}}},[c,f,v,h]),r.useEffect(()=>{if(l){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=(null==c?void 0:c.contains(t))||(null==f?void 0:f.contains(t)),o=!function(e,t){let{x:n,y:r}=e,o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){let a=t[e],s=t[i],l=a.x,u=a.y,c=s.x,d=s.y;u>r!=d>r&&n<(c-l)*(r-u)/(d-u)+l&&(o=!o)}return o}(n,l);r?h():o&&(h(),d())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[c,f,l,d,h]),(0,m.jsx)(B,{...e,ref:s})}),[F,W]=g(P,{isInside:!1}),_=(0,p.sA)("TooltipContent"),B=r.forwardRef((e,t)=>{let{__scopeTooltip:n,children:o,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:l,...c}=e,d=S(V,n),f=b(n),{onClose:p}=d;return r.useEffect(()=>(document.addEventListener(x,p),()=>document.removeEventListener(x,p)),[p]),r.useEffect(()=>{if(d.trigger){let e=e=>{let t=e.target;(null==t?void 0:t.contains(d.trigger))&&p()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[d.trigger,p]),(0,m.jsx)(s.XB,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:e=>e.preventDefault(),onDismiss:p,children:(0,m.jsxs)(u.VY,{"data-state":d.stateAttribute,...f,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,m.jsx)(_,{children:o}),(0,m.jsx)(F,{scope:n,isInside:!0,children:(0,m.jsx)(v.fC,{id:d.contentId,role:"tooltip",children:i||o})})]})})});I.displayName=V;var U="TooltipArrow";r.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,o=b(n);return W(U,n).isInside?null:(0,m.jsx)(u.Eh,{...o,...r,ref:t})}).displayName=U;var H=C,K=R,z=k,Y=O,$=I},63465:function(e,t,n){"use strict";n.d(t,{W:function(){return o}});var r=n(7653);function o(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}},65192:function(e,t,n){"use strict";n.d(t,{T:function(){return s}});var r,o=n(7653),i=n(32316),a=(r||(r=n.t(o,2)))[" useInsertionEffect ".trim().toString()]||i.b;function s({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[i,s,l]=function({defaultProp:e,onChange:t}){let[n,r]=o.useState(e),i=o.useRef(n),s=o.useRef(t);return a(()=>{s.current=t},[t]),o.useEffect(()=>{i.current!==n&&(s.current?.(n),i.current=n)},[n,i]),[n,r,s]}({defaultProp:t,onChange:n}),u=void 0!==e,c=u?e:i;{let t=o.useRef(void 0!==e);o.useEffect(()=>{let e=t.current;if(e!==u){let t=u?"controlled":"uncontrolled";console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=u},[u,r])}return[c,o.useCallback(t=>{if(u){let n="function"==typeof t?t(e):t;n!==e&&l.current?.(n)}else s(t)},[u,e,s,l])]}Symbol("RADIX:SYNC_STATE")},32316:function(e,t,n){"use strict";n.d(t,{b:function(){return o}});var r=n(7653),o=globalThis?.document?r.useLayoutEffect:()=>{}},77214:function(e,t,n){"use strict";n.d(t,{D:function(){return o}});var r=n(7653);function o(e){let t=r.useRef({value:e,previous:e});return r.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},68288:function(e,t,n){"use strict";n.d(t,{t:function(){return i}});var r=n(7653),o=n(32316);function i(e){let[t,n]=r.useState(void 0);return(0,o.b)(()=>
1{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,o;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,o=t.blockSize}else r=e.offsetWidth,o=e.offsetHeight;n({width:r,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}},41937:function(e,t,n){"use strict";n.d(t,{C2:function(){return a},fC:function(){return l}});var r=n(7653),o=n(76646),i=n(27573),a=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),s=r.forwardRef((e,t)=>(0,i.jsx)(o.WV.span,{...e,ref:t,style:{...a,...e.style}}));s.displayName="VisuallyHidden";var l=s},57908:function(e,t,n){"use strict";t.Z=function(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=function e(t){var n,r,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t){if(Array.isArray(t)){var i=t.length;for(n=0;n<i;n++)t[n]&&(r=e(t[n]))&&(o&&(o+=" "),o+=r)}else for(r in t)t[r]&&(o&&(o+=" "),o+=r)}return o}(e))&&(r&&(r+=" "),r+=t);return r}},99228:function(e,t,n){"use strict";n.d(t,{E:function(){return ir}});var r,o,i,a,s,l=n(7653);let u=(0,l.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),c=(0,l.createContext)({}),d=(0,l.createContext)(null),f="undefined"!=typeof document,p=f?l.useLayoutEffect:l.useEffect,h=(0,l.createContext)({strict:!1});function v(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function m(e){return"string"==typeof e||Array.isArray(e)}function g(e){return"object"==typeof e&&"function"==typeof e.start}let y=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function b(e){return g(e.animate)||y.some(t=>m(e[t]))}function w(e){return!!(b(e)||e.variants)}function x(e){return Array.isArray(e)?e.join(" "):e}let E=e=>({isEnabled:t=>e.some(e=>!!t[e])}),T={measureLayout:E(["layout","layoutId","drag"]),animation:E(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:E(["exit"]),drag:E(["drag","dragControls"]),focus:E(["whileFocus"]),hover:E(["whileHover","onHoverStart","onHoverEnd"]),tap:E(["whileTap","onTap","onTapStart","onTapCancel"]),pan:E(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:E(["whileInView","onViewportEnter","onViewportLeave"])};function C(e){let t=(0,l.useRef)(null);return null===t.current&&(t.current=e()),t.current}let P={hasAnimatedSinceResize:!0,hasEverUpdated:!1},M=1,S=(0,l.createContext)({});class R extends l.Component{getSnapshotBeforeUpdate(){let{visualElement:e,props:t}=this.props;return e&&e.setProps(t),null}componentDidUpdate(){}render(){return this.props.children}}let A=(0,l.createContext)({}),k=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function L(e){if("string"!=typeof e||e.includes("-"));else if(k.indexOf(e)>-1||/[A-Z]/.test(e))return!0;return!1}let D={},j=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","skew","skewX","skewY"],O=new Set(j);function V(e,{layout:t,layoutId:n}){return O.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!D[e]||"opacity"===e)}let I=e=>void 0!==e&&!!e.getVelocity,N={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},F=(e,t)=>j.indexOf(e)-j.indexOf(t);function W(e){return e.startsWith("--")}let _=(e,t)=>t&&"number"==typeof e?t.transform(e):e,B=(e,t)=>n=>Math.max(Math.min(n,t),e),U=e=>e%1?Number(e.toFixed(5)):e,H=/(-)?([\d]*\.?[\d])+/g,K=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,z=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Y(e){return"string"==typeof e}let $=e=>({test:t=>Y(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}
1),X=$("deg"),G=$("%"),Z=$("px"),q=$("vh"),J=$("vw"),Q=Object.assign(Object.assign({},G),{parse:e=>G.parse(e)/100,transform:e=>G.transform(100*e)}),ee={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},et=Object.assign(Object.assign({},ee),{transform:B(0,1)}),en=Object.assign(Object.assign({},ee),{default:1}),er={...ee,transform:Math.round},eo={borderWidth:Z,borderTopWidth:Z,borderRightWidth:Z,borderBottomWidth:Z,borderLeftWidth:Z,borderRadius:Z,radius:Z,borderTopLeftRadius:Z,borderTopRightRadius:Z,borderBottomRightRadius:Z,borderBottomLeftRadius:Z,width:Z,maxWidth:Z,height:Z,maxHeight:Z,size:Z,top:Z,right:Z,bottom:Z,left:Z,padding:Z,paddingTop:Z,paddingRight:Z,paddingBottom:Z,paddingLeft:Z,margin:Z,marginTop:Z,marginRight:Z,marginBottom:Z,marginLeft:Z,rotate:X,rotateX:X,rotateY:X,rotateZ:X,scale:en,scaleX:en,scaleY:en,scaleZ:en,skew:X,skewX:X,skewY:X,distance:Z,translateX:Z,translateY:Z,translateZ:Z,x:Z,y:Z,z:Z,perspective:Z,transformPerspective:Z,opacity:et,originX:Q,originY:Q,originZ:Z,zIndex:er,fillOpacity:et,strokeOpacity:et,numOctaves:er};function ei(e,t,n,r){let{style:o,vars:i,transform:a,transformKeys:s,transformOrigin:l}=e;s.length=0;let u=!1,c=!1,d=!0;for(let e in t){let n=t[e];if(W(e)){i[e]=n;continue}let r=eo[e],f=_(n,r);if(O.has(e)){if(u=!0,a[e]=f,s.push(e),!d)continue;n!==(r.default||0)&&(d=!1)}else e.startsWith("origin")?(c=!0,l[e]=f):o[e]=f}if(u||r?o.transform=function({transform:e,transformKeys:t},{enableHardwareAcceleration:n=!0,allowTransformNone:r=!0},o,i){let a="";for(let n of(t.sort(F),t))a+=`${N[n]||n}(${e[n]}) `;return n&&!e.z&&(a+="translateZ(0)"),a=a.trim(),i?a=i(e,o?"":a):r&&o&&(a="none"),a}(e,n,d,r):!t.transform&&o.transform&&(o.transform="none"),c){let{originX:e="50%",originY:t="50%",originZ:n=0}=l;o.transformOrigin=`${e} ${t} ${n}`}}let ea=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});
1function es(e,t,n){for(let r in t)I(t[r])||V(r,n)||(e[r]=t[r])}let el=new Set(["initial","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","onHoverStart","onHoverEnd","layoutScroll","whileInView","onViewportEnter","onViewportLeave","viewport","whileTap","onTap","onTapStart","onTapCancel","animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView","onPan","onPanStart","onPanSessionStart","onPanEnd"]);function eu(e){return el.has(e)}let ec=e=>!eu(e);try{(r=require("@emotion/is-prop-valid").default)&&(ec=e=>e.startsWith("on")?!eu(e):r(e))}catch(e){}function ed(e,t,n){return"string"==typeof e?e:Z.transform(t+n*e)}let ef={offset:"stroke-dashoffset",array:"stroke-dasharray"},ep={offset:"strokeDashoffset",array:"strokeDasharray"};function eh(e,{attrX:t,attrY:n,originX:r,originY:o,pathLength:i,pathSpacing:a=1,pathOffset:s=0,...l},u,c){ei(e,l,u,c),e.attrs=e.style,e.style={};let{attrs:d,style:f,dimensions:p}=e;d.transform&&(p&&(f.transform=d.transform),delete d.transform),p&&(void 0!==r||void 0!==o||f.transform)&&(f.transformOrigin=function(e,t,n){let r=ed(t,e.x,e.width),o=ed(n,e.y,e.height);return`${r} ${o}`}(p,void 0!==r?r:.5,void 0!==o?o:.5)),void 0!==t&&(d.x=t),void 0!==n&&(d.y=n),void 0!==i&&function(e,t,n=1,r=0,o=!0){e.pathLength=1;let i=o?ef:ep;e[i.offset]=Z.transform(-r);let a=Z.transform(t),s=Z.transform(n);e[i.array]=`${a} ${s}`}(d,i,a,s,!1)}let ev=()=>({...ea(),attrs:{}}),em=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function eg(e,{style:t,vars:n},r,o){for(let i in Object.assign(e.style,t,o&&o.getProjectionStyles(r)),n)e.style.setProperty(i,n[i])}let ey=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function eb(e,t,n,r){for(let n in eg(e,t,void 0,r),t.attrs)e.setAttribute(ey.has(n)?n:em(n),t.attrs[n])}function ew(e){let{style:t}=e,n={};for(let r in t)(I(t[r])||V(r,e))&&(n[r]=t[r]);return n}function ex(e){let t=ew(e);for(let n in e)I(e[n])&&(t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]);return t}function eE(e,t,n,r={},o={}){return"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,o)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,o)),t}let eT=e=>Array.isArray(e),eC=e=>!!(e&&"object"==typeof e&&e.mix&&e.toValue),eP=e=>eT(e)?e[e.length-1]||0:e;function eM(e){let t=I(e)?e.get():e;return eC(t)?t.toValue():t}let eS=e=>(t,n)=>{let r=(0,l.useContext)(c),o=(0,l.useContext)(d),i=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){let a={latestValues:function(e,t,n,r){let o={},i=r(e);for(let e in i)o[e]=eM(i[e]);let{initial:a,animate:s}=e,l=b(e),u=w(e);t&&u&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let c=!!n&&!1===n.initial,d=(c=c||!1===a)?s:a;return d&&"boolean"!=typeof d&&!g(d)&&(Array.isArray(d)?d:[d]).forEach(t=>{let n=eE(e,t);if(!n)return;let{transitionEnd:r,transition:i,...a}=n;for(let e in a){let t=a[e];if(Array.isArray(t)){let e=c?t.length-1:0;t=t[e]}null!==t&&(o[e]=t)}for(let e in r)o[e]=r[e]}),o}(r,o,i,e),renderState:t()};return n&&(a.mount=e=>n(r,e,a)),a})(e,t,r,o);return n?i():C(i)},eR={useVisualState:eS({scrapeMotionValuesFromProps:ex,createRenderState:ev,onMount:(e,t,{renderState:n,latestValues:r})=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}eh(n,r,{enableHardwareAcceleration:!1},e.transformTemplate),eb(t,n)}})},eA={useVisualState:eS({scrapeMotionValuesFromProps:ew,createRenderState:ea})};function ek(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function eL(e,t,n,r){(0,l.useEffect)(()=>{let o=e.current;if(n&&o)return ek(o,t,n,r)},[e,t,n,r])}function eD(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}(o=a||(a={})).Animate="animate",o.Hover="whileHover",o.Tap="whileTap",o.Drag="whileDrag",o.Focus="whileFocus",o.InView="whileInView",o.Exit="exit";let ej={pageX:0,pageY:0};function eO(e,t="page"){return{point:e.touches?function(e,t="page"){let n=e.touches[0]||e.changedTouches[0]||ej;return{x:n[t+"X"],y:n[t+"Y"]}}(e,t):function(e,t="page"){return{x:e[t+"X"],y:e[t+"Y"]}}(e,t)}}let eV=(e,t=!1)=>{let n=t=>e(t,eO(t));return t?e=>{let t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}:n},eI=()=>f&&null===window.onpointerdown,eN=()=>f&&null===window.ontouchstart,eF=()=>f&&null===window.onmousedown,eW={pointerdown:"mousedown",pointermove:"mou
1semove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},e_={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function eB(e){if(eI());else if(eN())return e_[e];else if(eF())return eW[e];return e}function eU(e,t,n,r){return ek(e,eB(t),eV(n,"pointerdown"===t),r)}function eH(e,t,n,r){return eL(e,eB(t),n&&eV(n,"pointerdown"===t),r)}function eK(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}let ez=eK("dragHorizontal"),eY=eK("dragVertical");function e$(e){let t=!1;if("y"===e)t=eY();else if("x"===e)t=ez();else{let e=ez(),n=eY();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function eX(){let e=e$(!0);return!e||(e(),!1)}function eG(e,t,n){return(r,o)=>{!(!eD(r)||eX())&&(e.animationState&&e.animationState.setActive(a.Hover,t),n&&n(r,o))}}let eZ=(e,t)=>!!t&&(e===t||eZ(e,t.parentElement));function eq(e){return(0,l.useEffect)(()=>()=>e(),[])}let eJ=(e,t)=>n=>t(e(n)),eQ=(...e)=>e.reduce(eJ);var e0=n(68571);let e1=(void 0===e0||e0.env,"production"),e2=new Set,e5=new WeakMap,e3=new WeakMap,e6=e=>{let t=e5.get(e.target);t&&t(e)},e7=e=>{e.forEach(e6)},e4={some:0,all:1},e9=e=>t=>(e(t),null),e8={inView:e9(function({visualElement:e,whileInView:t,onViewportEnter:n,onViewportLeave:r,viewport:o={}}){let i=(0,l.useRef)({hasEnteredView:!1,isInView:!1}),s=!!(t||n||r);o.once&&i.current.hasEnteredView&&(s=!1),("undefined"==typeof IntersectionObserver?function(e,t,n,{fallback:r=!0}){(0,l.useEffect)(()=>{if(e&&r){if("production"!==e1){var o;o="IntersectionObserver not available on this device. whileInView animations will trigger on mount.",e2.has(o)||(console.warn(o),e2.add(o))}requestAnimationFrame(()=>{t.hasEnteredView=!0;let{onViewportEnter:e}=n.getProps();e&&e(null),n.animationState&&n.animationState.setActive(a.InView,!0)})}},[e])}:function(e,t,n,{root:r,margin:o,amount:i="some",once:s}){(0,l.useEffect)(()=>{if(!e)return;let l={root:null==r?void 0:r.current,rootMargin:o,threshold:"number"==typeof i?i:e4[i]};return function(e,t,n){let r=function({root:e,...t}){let n=e||document;e3.has(n)||e3.set(n,{});let r=e3.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(e7,{root:e,...t})),r[o]}(t);return e5.set(e,n),r.observe(e),()=>{e5.delete(e),r.unobserve(e)}}(n.getInstance(),l,e=>{let{isIntersecting:r}=e;if(t.isInView===r||(t.isInView=r,s&&!r&&t.hasEnteredView))return;r&&(t.hasEnteredView=!0),n.animationState&&n.animationState.setActive(a.InView,r);let o=n.getProps(),i=r?o.onViewportEnter:o.onViewportLeave;i&&i(e)})},[e,r,o,i])})(s,i.current,e,o)}),tap:e9(function({onTap:e,onTapStart:t,onTapCancel:n,whileTap:r,visualElement:o}){let i=e||t||n||r,s=(0,l.useRef)(!1),u=(0,l.useRef)(null),c={passive:!(t||e||n||v)};function d(){u.current&&u.current(),u.current=null}function f(){return d(),s.current=!1,o.animationState&&o.animationState.setActive(a.Tap,!1),!eX()}function p(t,r){f()&&(eZ(o.getInstance(),t.target)?e&&e(t,r):n&&n(t,r))}function h(e,t){f()&&n&&n(e,t)}function v(e,n){d(),!s.current&&(s.current=!0,u.current=eQ(eU(window,"pointerup",p,c),eU(window,"pointercancel",h,c)),o.animationState&&o.animationState.setActive(a.Tap,!0),t&&t(e,n))}eH(o,"pointerdown",i?v:void 0,c),eq(d)}),focus:e9(function({whileFocus:e,visualElement:t}){let{animationState:n}=t;eL(t,"focus",e?()=>{n&&n.setActive(a.Focus,!0)}:void 0),eL(t,"blur",e?()=>{n&&n.setActive(a.Focus,!1)}:void 0)}),hover:e9(function({onHoverStart:e,onHoverEnd:t,whileHover:n,visualElement:r}){eH(r,"pointerenter",e||n?eG(r,!0,e):void 0,{passive:!e}),eH(r,"pointerleave",t||n?eG(r,!1,t):void 0,{passive:!t})})};function te(){let e=(0,l.useContext)(d);if(null===e)return[!0,null];let{isPresent:t,onExitComplete:n,register:r}=e,o=(0,l.useId)();return(0,l.useEffect)(()=>r(o),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}function tt(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 tn(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}var tr=function(){},to=function(){};let ti=(e,t,n)=>Math.min(Math.max(n,e),t);function ta(e,t){return e*Math.sqrt(1-t*t)}let ts=["duration","bounce"],tl=["stiffness","damping","mass"];function tu(e,t){return t.some(t=>void 0!==e[t])}function tc(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:o}=e,i=tn(e,["from","to","restSpeed","restDelta"]);let a={done:!1,value:t},{stiffness:s,damping:l,mass:u,velocity:c,duration:d,isResolvedFromDuration:f}=function(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!tu(e,tl)&&tu(e,ts)){let n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;tr(e<=1e4,"Spring duration must be 10 seconds or less");let a=1-t;a=ti(.05,1,a),e=ti(.01,10,e/1e3),a<1?(o=t=>{let r=t*a,o=r*e;return .001-(r-n)/ta(t,a)*Math.exp(-o)},i=t=>{let r=t*a*e,i=Math.pow(a,2)*Math.pow(t,2)*e,s=ta(Math.pow(t,2),a);return(r*n+n-i)*Math.exp(-r)*(-o(t)+.001>0?-1:1)/s}):(o=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),i=t=>e*e*(n-t)*Math.exp(-t*e));let s=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(o,i,5/e);if(e*=1e3,isNaN(s))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(s,2)*r;
1return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}(e);(t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1})).isResolvedFromDuration=!0}return t}(i),p=td,h=td;function v(){let e=c?-(c/1e3):0,r=n-t,i=l/(2*Math.sqrt(s*u)),a=Math.sqrt(s/u)/1e3;if(void 0===o&&(o=Math.min(Math.abs(n-t)/100,.4)),i<1){let t=ta(a,i);p=o=>n-Math.exp(-i*a*o)*((e+i*a*r)/t*Math.sin(t*o)+r*Math.cos(t*o)),h=n=>{let o=Math.exp(-i*a*n);return i*a*o*(Math.sin(t*n)*(e+i*a*r)/t+r*Math.cos(t*n))-o*(Math.cos(t*n)*(e+i*a*r)-t*r*Math.sin(t*n))}}else if(1===i)p=t=>n-Math.exp(-a*t)*(r+(e+a*r)*t);else{let t=a*Math.sqrt(i*i-1);p=o=>{let s=Math.exp(-i*a*o),l=Math.min(t*o,300);return n-s*((e+i*a*r)*Math.sinh(l)+t*r*Math.cosh(l))/t}}}return v(),{next:e=>{let t=p(e);if(f)a.done=e>=d;else{let i=1e3*h(e),s=Math.abs(n-t)<=o;a.done=Math.abs(i)<=r&&s}return a.value=a.done?n:t,a},flipTarget:()=>{c=-c,[t,n]=[n,t],v()}}}tc.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;let td=e=>0,tf=(e,t,n)=>{let r=t-e;return 0===r?1:(n-e)/r},tp=(e,t,n)=>-n*e+n*t+e,th=(e,t)=>n=>!!(Y(n)&&z.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),tv=(e,t,n)=>r=>{if(!Y(r))return r;let[o,i,a,s]=r.match(H);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},tm=B(0,255),tg=Object.assign(Object.assign({},ee),{transform:e=>Math.round(tm(e))}),ty={test:th("rgb","red"),parse:tv("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+tg.transform(e)+", "+tg.transform(t)+", "+tg.transform(n)+", "+U(et.transform(r))+")"},tb={test:th("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),o=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),o=e.substr(4,1),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:ty.transform},tw={test:th("hsl","hue"),parse:tv("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+G.transform(U(t))+", "+G.transform(U(n))+", "+U(et.transform(r))+")"};function tx(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 tE({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,i=0,a=0;if(t/=100){let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;o=tx(s,r,e+1/3),i=tx(s,r,e),a=tx(s,r,e-1/3)}else o=i=a=n;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*a),alpha:r}}let tT=(e,t,n)=>{let r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},tC=[tb,ty,tw],tP=e=>tC.find(t=>t.test(e)),tM=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,tS=(e,t)=>{let n=tP(e),r=tP(t);to(!!n,tM(e)),to(!!r,tM(t));let o=n.parse(e),i=r.parse(t);n===tw&&(o=tE(o),n=ty),r===tw&&(i=tE(i),r=ty);let a=Object.assign({},o);return e=>{for(let t in a)"alpha"!==t&&(a[t]=tT(o[t],i[t],e));return a.alpha=tp(o.alpha,i.alpha,e),n.transform(a)}},tR={test:e=>ty.test(e)||tb.test(e)||tw.test(e),parse:e=>ty.test(e)?ty.parse(e):tw.test(e)?tw.parse(e):tb.parse(e),transform:e=>Y(e)?e:e.hasOwnProperty("red")?ty.transform(e):tw.transform(e)},tA="${c}",tk="${n}";function tL(e){"number"==typeof e&&(e=`${e}`);let t=[],n=0,r=e.match(K);r&&(n=r.length,e=e.replace(K,tA),t.push(...r.map(tR.parse)));let o=e.match(H);return o&&(e=e.replace(H,tk),t.push(...o.map(ee.parse))),{values:t,numColors:n,tokenised:e}}function tD(e){return tL(e).values}function tj(e){let{values:t,numColors:n,tokenised:r}=tL(e),o=t.length;return e=>{let t=r;for(let r=0;r<o;r++)t=t.replace(r<n?tA:tk,r<n?tR.transform(e[r]):U(e[r]));return t}}let tO=e=>"number"==typeof e?0:e,tV={test:function(e){var t,n,r,o;return isNaN(e)&&Y(e)&&(null!==(n=null===(t=e.match(H))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(o=null===(r=e.match(K))||void 0===r?void 0:r.length)&&void 0!==o?o:0)>0},parse:tD,createTransformer:tj,getAnimatableNone:function(e){let t=tD(e);return tj(e)(t.map(tO))}},tI=e=>"number"==typeof e;function tN(e,t){return tI(e)?n=>tp(e,t,n):tR.test(e)?tS(e,t):tB(e,t)}let tF=(e,t)=>{let n=[...e],r=n.length,o=e.map((e,n)=>tN(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}},tW=(e,t)=>{let n=Object.assign(Object.assign({},e),t),r={};for(let o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=tN(e[o],t[o]));return e=>{for(let t in r)n[t]=r[t](e);return n}};function t_(e){let t=tV.parse(e),n=t.length,r=0,o=0,i=0;for(let e=0;e<n;e++)r||"number"==typeof t[e]?r++:void 0!==t[e].hue?i++:o++;return{parsed:t,numNumbers:r,numRGB:o,numHSL:i}}let tB=(e,t)=>{let n=tV.createTransformer(t),r=t_(e),o=t_(t);return r.numHSL===o.numHSL&&r.numRGB===o.numRGB&&r.numNumbers>=o.numNumbers?eQ(tF(r.parsed,o.parsed),n):(tr(!0,`Complex values '${e}' and '${t}
1' 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.`),n=>`${n>0?t:e}`)},tU=(e,t)=>n=>tp(e,t,n);function tH(e,t,{clamp:n=!0,ease:r,mixer:o}={}){let i=e.length;to(i===t.length,"Both input and output ranges must be the same length"),to(!r||!Array.isArray(r)||r.length===i-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[i-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());let a=function(e,t,n){var r;let o=[],i=n||("number"==typeof(r=e[0])?tU:"string"==typeof r?tR.test(r)?tS:tB:Array.isArray(r)?tF:"object"==typeof r?tW:void 0),a=e.length-1;for(let n=0;n<a;n++){let r=i(e[n],e[n+1]);t&&(r=eQ(Array.isArray(t)?t[n]:t,r)),o.push(r)}return o}(t,r,o),s=2===i?function([e,t],[n]){return r=>n(tf(e,t,r))}(e,a):function(e,t){let n=e.length,r=n-1;return o=>{let i=0,a=!1;if(o<=e[0]?a=!0:o>=e[r]&&(i=r-1,a=!0),!a){let t=1;for(;t<n&&!(e[t]>o)&&t!==r;t++);i=t-1}let s=tf(e[i],e[i+1],o);return t[i](s)}}(e,a);return n?t=>s(ti(e[0],e[i-1],t)):s}let tK=e=>t=>1-e(1-t),tz=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,tY=e=>t=>t*t*((e+1)*t-e),t$=4/11,tX=8/11,tG=e=>e,tZ=e=>Math.pow(e,2),tq=tK(tZ),tJ=tz(tZ),tQ=e=>1-Math.sin(Math.acos(e)),t0=tK(tQ),t1=tz(t0),t2=tY(1.525),t5=tK(t2),t3=tz(t2),t6=(e=>{let t=tY(e);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})(1.525),t7=4356/361,t4=35442/1805,t9=16061/1805,t8=e=>{if(1===e||0===e)return e;let t=e*e;return e<t$?7.5625*t:e<tX?9.075*t-9.9*e+3.4:e<.9?t7*t-t4*e+t9:10.8*e*e-20.52*e+10.72},ne=tK(t8);function nt({from:e=0,to:t=1,ease:n,offset:r,duration:o=300}){let i={done:!1,value:e},a=Array.isArray(t)?t:[e,t],s=(r&&r.length===a.length?r:function(e){let t=e.length;return e.map((e,n)=>0!==n?n/(t-1):0)}(a)).map(e=>e*o);function l(){return tH(s,a,{ease:Array.isArray(n)?n:a.map(()=>n||tJ).splice(0,a.length-1)})}let u=l();return{next:e=>(i.value=u(e),i.done=e>=o,i),flipTarget:()=>{a.reverse(),u=l()}}}let nn={keyframes:nt,spring:tc,decay:function({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:o=.5,modifyTarget:i}){let a={done:!1,value:t},s=n*e,l=t+s,u=void 0===i?l:i(l);return u!==l&&(s=u-t),{next:e=>{let t=-s*Math.exp(-e/r);return a.done=!(t>o||t<-o),a.value=a.done?u:u+t,a},flipTarget:()=>{}}}},nr=1/60*1e3,no="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),ni="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(no()),nr),na=!0,ns=!1,nl=!1,nu={delta:0,timestamp:0},nc=["read","update","preRender","render","postRender"],nd=nc.reduce((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,o=!1,i=!1,a=new WeakSet,s={schedule:(e,i=!1,s=!1)=>{let l=s&&o,u=l?t:n;return i&&a.add(e),-1===u.indexOf(e)&&(u.push(e),l&&o&&(r=t.length)),e},cancel:e=>{let t=n.indexOf(e);-1!==t&&n.splice(t,1),a.delete(e)},process:l=>{if(o){i=!0;return}if(o=!0,[t,n]=[n,t],n.length=0,r=t.length)for(let n=0;n<r;n++){let r=t[n];r(l),a.has(r)&&(s.schedule(r),e())}o=!1,i&&(i=!1,s.process(l))}};return s}(()=>ns=!0),e),{}),nf=nc.reduce((e,t)=>{let n=nd[t];return e[t]=(e,t=!1,r=!1)=>(ns||ng(),n.schedule(e,t,r)),e},{}),np=nc.reduce((e,t)=>(e[t]=nd[t].cancel,e),{}),nh=nc.reduce((e,t)=>(e[t]=()=>nd[t].process(nu),e),{}),nv=e=>nd[e].process(nu),nm=e=>{ns=!1,nu.delta=na?nr:Math.max(Math.min(e-nu.timestamp,40),1),nu.timestamp=e,nl=!0,nc.forEach(nv),nl=!1,ns&&(na=!1,ni(nm))},ng=()=>{ns=!0,na=!0,nl||ni(nm)},ny=()=>nu;function nb(e,t,n=0){return e-t-n}let nw=e=>{let t=({delta:t})=>e(t);return{start:()=>nf.update(t,!0),stop:()=>np.update(t)}};function nx(e){let t,n,r;var o,{from:i,autoplay:a=!0,driver:s=nw,elapsed:l=0,repeat:u=0,repeatType:c="loop",repeatDelay:d=0,onPlay:f,onStop:p,onComplete:h,onRepeat:v,onUpdate:m}=e,g=tn(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:y}=g,b=0,w=g.duration,x=!1,E=!0,T=function(e){if(Array.isArray(e.to))return nt;if(nn[e.type])return nn[e.type];let t=new Set(Object.keys(e));if(t.has("ease")||t.has("duration")&&!t.has("dampingRatio"));else if(t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta"))return tc;return nt}(g);(null===(o=T.needsInterpolation)||void 0===o?void 0:o.call(T,i,y))&&(r=tH([0,100],[i,y],{clamp:!1}),i=0,y=100);let C=T(Object.assign(Object.assign({},g),{from:i,to:y}));return a&&(null==f||f(),(t=s(function(e){if(E||(e=-e),l+=e,!x){let e=C.next(Math.max(0,l));n=e.value,r&&(n=r(n)),x=E?e.done:l<=0}if(null==m||m(n),x){if(0===b&&(null!=w||(w=l)),b<u){var o,i;o=l,i=w,(E?o>=i+d:o<=-d)&&(b++,"reverse"===c?l=function(e,t,n=0,r=!0){return r?nb(t+-e,t,n):t-(e-t)+n}(l,w,d,E=b%2==0):(l=nb(l,w,d),"mirror"===c&&C.flipTarget()),x=!1,v&&v())}else t.stop(),h&&h()}})).start()),{stop:()=>{null==p||p(),t.stop()}}}let nE=e=>1e3*e,nT=(e,t)=>1-3*t+3*e,nC=(e,t)=>3*t-6*e,nP=e=>3*e,nM=(e,t,n)=>((nT(t,n)*e+nC(t,n))*e+nP(t))*e,nS=(e,t,n)=>3*nT(t,n)*e*e+2*nC(t,n)*e+nP(t),nR={linear:tG,easeIn:tZ,easeInOut:tJ,easeOut:tq,circIn:tQ,circInOut:t1,circOut:t
10,backIn:t2,backInOut:t3,backOut:t5,anticipate:t6,bounceIn:ne,bounceInOut:e=>e<.5?.5*(1-t8(1-2*e)):.5*t8(2*e-1)+.5,bounceOut:t8},nA=e=>{if(Array.isArray(e)){to(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,n,r,o]=e;return function(e,t,n,r){if(e===t&&n===r)return tG;let o=new Float32Array(11);for(let t=0;t<11;++t)o[t]=nM(.1*t,e,n);return i=>0===i||1===i?i:nM(function(t){let r=0,i=1;for(;10!==i&&o[i]<=t;++i)r+=.1;let a=r+(t-o[--i])/(o[i+1]-o[i])*.1,s=nS(a,e,n);return s>=.001?function(e,t,n,r){for(let o=0;o<8;++o){let o=nS(t,n,r);if(0===o)break;let i=nM(t,n,r)-e;t-=i/o}return t}(t,a,e,n):0===s?a:function(e,t,n,r,o){let i,a;let s=0;do(i=nM(a=t+(n-t)/2,r,o)-e)>0?n=a:t=a;while(Math.abs(i)>1e-7&&++s<10);return a}(t,r,r+.1,e,n)}(i),t,r)}(t,n,r,o)}return"string"==typeof e?(to(void 0!==nR[e],`Invalid easing type '${e}'`),nR[e]):e},nk=e=>Array.isArray(e)&&"number"!=typeof e[0],nL=(e,t)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&tV.test(t)&&!t.startsWith("url(")),nD=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),nj=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),nO=()=>({type:"keyframes",ease:"linear",duration:.3}),nV=e=>({type:"keyframes",duration:.8,values:e}),nI={x:nD,y:nD,z:nD,rotate:nD,rotateX:nD,rotateY:nD,rotateZ:nD,scaleX:nj,scaleY:nj,scale:nj,opacity:nO,backgroundColor:nO,color:nO,default:nj},nN=(e,t)=>{let n;return n=eT(t)?nV:nI[e]||nI.default,{to:t,...n(t)}},nF=new Set(["brightness","contrast","saturate","opacity"]);function nW(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=n.match(H)||[];if(!r)return e;let o=n.replace(r,""),i=nF.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}let n_=/([a-z-]*)\(.*?\)/g,nB=Object.assign(Object.assign({},tV),{getAnimatableNone:e=>{let t=e.match(n_);return t?t.map(nW).join(" "):e}}),nU={...eo,color:tR,backgroundColor:tR,outlineColor:tR,fill:tR,stroke:tR,borderColor:tR,borderTopColor:tR,borderRightColor:tR,borderBottomColor:tR,borderLeftColor:tR,filter:nB,WebkitFilter:nB},nH=e=>nU[e];function nK(e,t){var n;let r=nH(e);return r!==nB&&(r=tV),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}let nz=!1;function nY(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function n$(e){return"number"==typeof e?0:nK("",e)}function nX(e,t){return e[t]||e.default||e}function nG(e,t,n,r={}){return t.start(o=>{var i,a;let s,l;let u=function(e,t,n,r,o){let i=nX(r,e)||{},a=void 0!==i.from?i.from:t.get(),s=nL(e,n);"none"===a&&s&&"string"==typeof n?a=nK(e,n):nY(a)&&"string"==typeof n?a=n$(n):!Array.isArray(n)&&nY(n)&&"string"==typeof a&&(n=n$(a));let l=nL(e,a);return tr(l===s,`You are trying to animate ${e} from "${a}" to "${n}". ${a} is not an animatable value - to enable this animation set ${a} to a value animatable to ${n} via the \`style\` property.`),l&&s&&!1!==i.type?function(){var r;let s={from:a,to:n,velocity:t.getVelocity(),onComplete:o,onUpdate:e=>t.set(e)};
1return"inertia"===i.type||"decay"===i.type?function({from:e=0,velocity:t=0,min:n,max:r,power:o=.8,timeConstant:i=750,bounceStiffness:a=500,bounceDamping:s=10,restDelta:l=1,modifyTarget:u,driver:c,onUpdate:d,onComplete:f,onStop:p}){let h;function v(e){return void 0!==n&&e<n||void 0!==r&&e>r}function m(e){return void 0===n?r:void 0===r?n:Math.abs(n-e)<Math.abs(r-e)?n:r}function g(e){null==h||h.stop(),h=nx(Object.assign(Object.assign({},e),{driver:c,onUpdate:t=>{var n;null==d||d(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:f,onStop:p}))}function y(e){g(Object.assign({type:"spring",stiffness:a,damping:s,restDelta:l},e))}if(v(e))y({from:e,velocity:t,to:m(e)});else{let r,a,s=o*t+e;void 0!==u&&(s=u(s));let c=m(s),d=c===n?-1:1;g({type:"decay",from:e,velocity:t,timeConstant:i,power:o,restDelta:l,modifyTarget:u,onUpdate:v(s)?e=>{var n,o;r=a,a=e,n=e-r,t=(o=ny().delta)?1e3/o*n:0,(1===d&&e>c||-1===d&&e<c)&&y({from:e,to:c,velocity:t})}:void 0})}return{stop:()=>null==h?void 0:h.stop()}}({...s,...i}):nx({...(r=i,Array.isArray(s.to)&&void 0===r.duration&&(r.duration=.8),Array.isArray(s.to)&&null===s.to[0]&&(s.to=[...s.to],s.to[0]=s.from),!function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:s,from:l,...u}){return!!Object.keys(u).length}(r)&&(r={...r,...nN(e,s.to)}),{...s,...function({ease:e,times:t,yoyo:n,flip:r,loop:o,...i}){let a={...i};return t&&(a.offset=t),i.duration&&(a.duration=nE(i.duration)),i.repeatDelay&&(a.repeatDelay=nE(i.repeatDelay)),e&&(a.ease=nk(e)?e.map(nA):nA(e)),"tween"===i.type&&(a.type="keyframes"),(n||o||r)&&(tr(!nz,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),nz=!0,n?a.repeatType="reverse":o?a.repeatType="loop":r&&(a.repeatType="mirror"),a.repeat=o||n||r||i.repeat),"spring"!==i.type&&(a.type="keyframes"),a}(r)}),onUpdate:e=>{s.onUpdate(e),i.onUpdate&&i.onUpdate(e)},onComplete:()=>{s.onComplete(),i.onComplete&&i.onComplete()}})}:function(){let e=eP(n);return t.set(e),o(),i.onUpdate&&i.onUpdate(e),i.onComplete&&i.onComplete(),{stop:()=>{}}}}(e,t,n,r,o),c=null!==(a=null!==(i=(nX(r,e)||{}).delay)&&void 0!==i?i:r.delay)&&void 0!==a?a:0,d=()=>l=u();return c?s=window.setTimeout(d,nE(c)):d(),()=>{clearTimeout(s),l&&l.stop()}})}let nZ=e=>/^\-?\d*\.?\d+$/.test(e),nq=e=>/^0[^.\s]+$/.test(e);function nJ(e,t){-1===e.indexOf(t)&&e.push(t)}function nQ(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}class n0{constructor(){this.subscriptions=[]}add(e){return nJ(this.subscriptions,e),()=>nQ(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 o=0;o<r;o++){let r=this.subscriptions[o];r&&r(e,t,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let n1=e=>!isNaN(parseFloat(e));class n2{constructor(e){this.version="7.2.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new n0,this.velocityUpdateSubscribers=new n0,this.renderSubscribers=new n0,this.canTrackVelocity=!1,this.updateAndNotify=(e,t=!0)=>{this.prev=this.current,this.current=e;let{delta:n,timestamp:r}=ny();this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,nf.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.updateSubscribers.notify(this.current),this.velocityUpdateSubscribers.getSize()&&this.velocityUpdateSubscribers.notify(this.getVelocity()),t&&this.renderSubscribers.notify(this.current)},this.scheduleVelocityCheck=()=>nf.postRender(this.velocityCheck),this.velocityCheck=({timestamp:e})=>{e!==this.lastUpdated&&(this.prev=this.current,this.velocityUpdateSubscribers.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=n1(this.current)}onChange(e){return this.updateSubscribers.add(e)}clearListeners(){this.updateSubscribers.clear()}onRenderRequest(e){return e(this.get()),this.renderSubscribers.add(e)}attach(e){this.passiveEffect=e}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){var e,t;return this.canTrackVelocity?(e=parseFloat(this.current)-parseFloat(this.prev),(t=this.timeDelta)?1e3/t*e:0):0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.stopAnimation=e(t)}).then(()=>this.clearAnimation())}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()}}function n5(e){return new n2(e)}let n3=e=>t=>t.test(e),n6=[ee,Z,G,X,J,q,{test:e=>"auto"===e,parse:e=>e}],n7=e=>n6.find(n3(e)),n4=[...n6,tR,tV],n9=e=>n4.find(n3(e));function n8(e,t,n){let r=e.getProps();return eE(r,t,void 0!==n?n:r.custom,function(e){let t={};return e.forEachValue((e,n)=>t[n]=e.get()),t}(e),function(e){let t={};return e.forEachValue((e,n)=>t[n]=e.getVelocity()),t}(e))}function re(e){return!!(I(e)&&e.add)}function rt(e,t,n={}){var r;let o=n8(e,t,n.custom),{transition:i=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);let a=o?()=>rn(e,o,n):()=>Promise.resolve(),s=(null===(r=e.variantChildren)||void 0===r?void 0:r.size)?(r=0)=>{let{delayChildren:o=0,staggerChildren:a,staggerDirection:s}=i;return function(e,t,n=0,r=0,o=1,i){let a=[],s=(e.variantChildren.size-1)*r,l=1===o?(e=0)=>e*r:(e=0)=>s-e*r;return Array.from(e.variantChildren).sort(rr).forEach((e,r)=>{a.push(rt(e,t,{...i,delay:n+l(r)}).then(()=>e.notifyAnimationComplete(t)))}),Promise.all(a)}(e,t,o+r,a,s,n)}:()=>Promise.resolve(),{when:l}=i;if(!l)return Promise.all([a(),s(n.delay)]);{let[e,t]="beforeChildren"===l?[a,s]:[s,a];return e().then(t)}}function rn(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var i;let{transition:a=e.getDefaultTransition(),transitionEnd:s,...l}=e.makeTargetAnimatable(t),u=e.getValue("willChange");r&&(a=r);let c=[],d=o&&(null===(i=e.animationState)||void 0===i?void 0:i.getState()[o]);for(let t in l){let r=e.getValue(t),o=l[t];if(!r||void 0===o||d&&function({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}(d,t))continue;let i={delay:n,...a};e.shouldReduceMotion&&O.has(t)&&(i={...i,type:!1,delay:0});let s=nG(t,r,o,i);re(u)&&(u.add(t),s=s.then(()=>u.remove(t))),c.push(s)}return Promise.all(c).then(()=>{s&&function(e,t){let n=n8(e,t),{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};for(let t in i={...i,...r}){let n=eP(i[t]);e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,n5(n))}}(e,s)})}function rr(e,t){return e.sortNodePosition(t)}let ro=[a.Animate,a.InView,a.Focus,a.Hover,a.Tap,a.Drag,a.Exit],ri=[...ro].reverse(),ra=ro.length;function rs(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let rl={animation:e9(({visualElement:e,animate:t})=>{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.notifyAnimationStart(t),Array.isArray(t))r=Promise.all(t.map(t=>rt(e,t,n)));else if("string"==typeof t)r=rt(e,t,n);else{let o="function"==typeof t?n8(e,t,n.custom):t;r=rn(e,o,n)}return r.then(()=>e.notifyAnimationComplete(t))})(e,t,n))),n={[a.Animate]:rs(!0),[a.InView]:rs(),[a.Hover]:rs(),[a.Tap]:rs(),[a.Drag]:rs(),[a.Focus]:rs(),[a.Exit]:rs()},r=!0,o=(t,n)=>{let r=n8(e,n);if(r){let{transition:e,transitionEnd:n,...o}=r;t={...t,...o,...n}}return t};function i(i,a){var s,l;let u=e.getProps(),c=e.getVariantContext(!0)||{},d=[],f=new Set,p={},h=1/0;for(let t=0;t<ra;t++){let v=ri[t],y=n[v],b=null!==(s=u[v])&&void 0!==s?s:c[v],w=m(b),x=v===a?y.isActive:null;!1===x&&(h=t);let E=b===c[v]&&b!==u[v]&&w;if(E&&r&&e.manuallyAnimateOnMount&&(E=!1),y.protectedKeys={...p},!y.isActive&&null===x||!b&&!y.prevProp||g(b)||"boolean"==typeof b)continue;let T=(l=y.prevProp,"string"==typeof b?b!==l:!!Array.isArray(b)&&!tt(b,l)),C=T||v===a&&y.isActive&&!E&&w||t>h&&w,P=Array.isArray(b)?b:[b],M=P.reduce(o,{});!1===x&&(M={});let{prevResolvedValues:S={}}=y,R={...S,...M},A=e=>{C=!0,f.delete(e),y.needsAnimating[e]=!0};for(let e in R){let t=M[e],n=S[e];p.hasOwnProperty(e)||(t!==n?eT(t)&&eT(n)?!tt(t,n)||T?A(e):y.protectedKeys[e]=!0:void 0!==t?A(e):f.add(e):void 0!==t&&f.has(e)?A(e):y.protectedKeys[e]=!0)}y.prevProp=b,y.prevResolvedValues=M,y.isActive&&(p={...p,...M}),r&&e.blockInitialAnimation&&(C=!1),C&&!E&&d.push(...P.map(e=>({animation:e,options:{type:v,...i}})))}
1if(f.size){let t={};f.forEach(n=>{let r=e.getBaseTarget(n);void 0!==r&&(t[n]=r)}),d.push({animation:t})}let v=!!d.length;return r&&!1===u.initial&&!e.manuallyAnimateOnMount&&(v=!1),r=!1,v?t(d):Promise.resolve()}return{animateChanges:i,setActive:function(t,r,o){var a;if(n[t].isActive===r)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach(e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)}),n[t].isActive=r;let s=i(o,t);for(let e in n)n[e].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:()=>n}}(e)),g(t)&&(0,l.useEffect)(()=>t.subscribe(e),[t])}),exit:e9(e=>{let{custom:t,visualElement:n}=e,[r,o]=te(),i=(0,l.useContext)(d);(0,l.useEffect)(()=>{n.isPresent=r;let e=n.animationState&&n.animationState.setActive(a.Exit,!r,{custom:i&&i.custom||t});e&&!r&&e.then(o)},[r])})},ru=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),rc=e=>ru(e)&&e.hasOwnProperty("z"),rd=(e,t)=>Math.abs(e-t);function rf(e,t){return tI(e)&&tI(t)?rd(e,t):ru(e)&&ru(t)?Math.sqrt(Math.pow(rd(e.x,t.x),2)+Math.pow(rd(e.y,t.y),2)+Math.pow(rc(e)&&rc(t)?rd(e.z,t.z):0,2)):void 0}class rp{constructor(e,t,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=rm(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=rf(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;let{point:r}=e,{timestamp:o}=ny();this.history.push({...r,timestamp:o});let{onStart:i,onMove:a}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{if(this.lastMoveEvent=e,this.lastMoveEventInfo=rh(t,this.transformPagePoint),eD(e)&&0===e.buttons){this.handlePointerUp(e,t);return}nf.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r}=this.handlers,o=rm(rh(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),r&&r(e,o)},e.touches&&e.touches.length>1)return;this.handlers=t,this.transformPagePoint=n;let r=rh(eO(e),this.transformPagePoint),{point:o}=r,{timestamp:i}=ny();this.history=[{...o,timestamp:i}];let{onSessionStart:a}=t;a&&a(e,rm(r,this.history)),this.removeListeners=eQ(eU(window,"pointermove",this.handlePointerMove),eU(window,"pointerup",this.handlePointerUp),eU(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),np.update(this.updatePoint)}}function rh(e,t){return t?{point:t(e.point)}:e}function rv(e,t){return{x:e.x-t.x,y:e.y-t.y}}function rm({point:e},t){return{point:e,delta:rv(e,rg(t)),offset:rv(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,o=rg(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>nE(.1)));)n--;if(!r)return{x:0,y:0};let i=(o.timestamp-r.timestamp)/1e3;if(0===i)return{x:0,y:0};let a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t,0)}}function rg(e){return e[e.length-1]}function ry(e){return e.max-e.min}function rb(e,t=0,n=.01){return rf(e,t)<n}function rw(e,t,n,r=.5){e.origin=r,e.originPoint=tp(t.min,t.max,e.origin),e.scale=ry(n)/ry(t),(rb(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=tp(n.min,n.max,e.origin)-e.originPoint,(rb(e.translate)||isNaN(e.translate))&&(e.translate=0)}function rx(e,t,n,r){rw(e.x,t.x,n.x,null==r?void 0:r.originX),rw(e.y,t.y,n.y,null==r?void 0:r.originY)}function rE(e,t,n){e.min=n.min+t.min,e.max=e.min+ry(t)}function rT(e,t,n){e.min=t.min-n.min,e.max=e.min+ry(t)}function rC(e,t,n){rT(e.x,t.x,n.x),rT(e.y,t.y,n.y)}function rP(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 rM(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 rS(e,t,n){return{min:rR(e,t),max:rR(e,n)}}function rR(e,t){var n;return"number"==typeof e?e:null!==(n=e[t])&&void 0!==n?n:0}let rA=()=>({translate:0,scale:1,origin:0,originPoint:0}),rk=()=>({x:rA(),y:rA()}),rL=()=>({min:0,max:0}),rD=()=>({x:rL(),y:rL()});function rj(e){return[e("x"),e("y")]}function rO({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function rV(e){return void 0===e||1===e}function rI({scale:e,scaleX:t,scaleY:n}){return!rV(e)||!rV(t)||!rV(n)}function rN(e){var t,n;
1return rI(e)||(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n||e.z||e.rotate||e.rotateX||e.rotateY}function rF(e,t,n,r,o){return void 0!==o&&(e=r+o*(e-r)),r+n*(e-r)+t}function rW(e,t=0,n=1,r,o){e.min=rF(e.min,t,n,r,o),e.max=rF(e.max,t,n,r,o)}function r_(e,{x:t,y:n}){rW(e.x,t.translate,t.scale,t.originPoint),rW(e.y,n.translate,n.scale,n.originPoint)}function rB(e,t){e.min=e.min+t,e.max=e.max+t}function rU(e,t,[n,r,o]){let i=void 0!==t[o]?t[o]:.5,a=tp(e.min,e.max,i);rW(e,t[n],t[r],a,t.scale)}let rH=["x","scaleX","originX"],rK=["y","scaleY","originY"];function rz(e,t){rU(e.x,t,rH),rU(e.y,t,rK)}function rY(e,t){return rO(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 r$=new WeakMap;class rX{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=rD(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){!1!==this.visualElement.isPresent&&(this.panSession=new rp(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(eO(e,"page").point)},onStart:(e,t)=>{var n;let{drag:r,dragPropagation:o,onDragStart:i}=this.getProps();(!r||o||(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=e$(r),this.openGlobalLock))&&(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),rj(e=>{var t,n;let r=this.getAxisMotionValue(e).get()||0;if(G.test(r)){let o=null===(n=null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout)||void 0===n?void 0:n.actual[e];if(o){let e=ry(o);r=parseFloat(r)/100*e}}this.originPoint[e]=r}),null==i||i(e,t),null===(n=this.visualElement.animationState)||void 0===n||n.setActive(a.Drag,!0))},onMove:(e,t)=>{let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:o,onDrag:i}=this.getProps();if(!n&&!this.openGlobalLock)return;let{offset:a}=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}(a),null!==this.currentDirection&&(null==o||o(this.currentDirection));return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.syncRender(),null==i||i(e,t)},onSessionEnd:(e,t)=>this.stop(e,t)},{transformPagePoint:this.visualElement.getTransformPagePoint()}))}stop(e,t){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:r}=t;this.startAnimation(r);let{onDragEnd:o}=this.getProps();null==o||o(e,t)}cancel(){var e,t;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(e=this.panSession)||void 0===e||e.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(a.Drag,!1)}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!rG(e,r,this.currentDirection))return;let o=this.getAxisMotionValue(e),i=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(i=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?tp(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?tp(n,e,r.max):Math.min(e,n)),e}(i,this.constraints[e],this.elastic[e])),o.set(i)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),{layout:n}=this.visualElement.projection||{},r=this.constraints;e&&v(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(e,{top:t,left:n,bottom:r,right:o}){return{x:rP(e.x,n,o),y:rP(e.y,t,r)}}(n.actual,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:rS(e,"left","right"),y:rS(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&rj(e=>{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}(n.actual[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!v(t))return!1;let r=t.current;to(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:o}=this.visualElement;if(!o||!o.layout)return!1;let i=function(e,t,n){let r=rY(e,n),{scroll:o}=t;return o&&(rB(r.x,o.x),rB(r.y,o.y)),r}(r,o.root,this.visualElement.getTransformPagePoint()),a={x:rM((e=o.layout.actual).x,i.x),y:rM(e.y,i.y)};if(n){let e=n(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=rO(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{};return Promise.all(rj(a=>{var l;if(!rG(a,t,this.currentDirection))return;let u=null!==(l=null==s?void 0:s[a])&&void 0!==l?l:{};i&&(u={min:0,max:0});let c={type:"inertia",velocity:n?e[a]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...o,...u};return this.startAxisValueAnimation(a,c)})).then(a)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return nG(e,n,0,t)}stopAnimation(){rj(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){var t,n;let r="_drag"+e.toUpperCase();return this.visualElement.getProps()[r]||this.visualElement.getValue(e,null!==(n=null===(t=this.visualElement.getProps().initial)||void 0===t?void 0:t[e])&&void 0!==n?n:0)}snapToCursor(e){rj(t=>{let{drag:n}=this.getProps();if(!rG(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,o=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:i}=r.layout.actual[t];o.set(e[t]-tp(n,i,.5))}})}scalePositionWithinConstraints(){var e;let{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!v(n)||!r||!this.constraints)return;this.stopAnimation();let o={x:0,y:0};rj(e=>{let t=this.getAxisMotionValue(e);if(t){let n=t.get();o[e]=function(e,t){let n=.5,r=ry(e),o=ry(t);return o>r?n=tf(t.min,t.max-r,e.min):r>o&&(n=tf(e.min,e.max-o,t.min)),ti(0,1,n)}({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.getInstance().style.transform=i?i({},""):"none",null===(e=r.root)||void 0===e||e.updateScroll(),r.updateLayout(),this.resolveConstraints(),rj(e=>{if(!rG(e,t,null))return;let n=this.getAxisMotionValue(e),{min:r,max:i}=this.constraints[e];n.set(tp(r,i,o[e]))})}addListeners(){var e;r$.set(this.visualElement,this);let t=eU(this.visualElement.getInstance(),"pointerdown",e=>{let{drag:t,dragListener:n=!0}
1=this.getProps();t&&n&&this.start(e)}),n=()=>{let{dragConstraints:e}=this.getProps();v(e)&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,o=r.addEventListener("measure",n);r&&!r.layout&&(null===(e=r.root)||void 0===e||e.updateScroll(),r.updateLayout()),n();let i=ek(window,"resize",()=>this.scalePositionWithinConstraints()),a=r.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(rj(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.syncRender())});return()=>{i(),t(),o(),null==a||a()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:i=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:a}}}function rG(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}let rZ={pan:e9(function({onPan:e,onPanStart:t,onPanEnd:n,onPanSessionStart:r,visualElement:o}){let i=(0,l.useRef)(null),{transformPagePoint:a}=(0,l.useContext)(u),s={onSessionStart:r,onStart:t,onMove:e,onEnd:(e,t)=>{i.current=null,n&&n(e,t)}};(0,l.useEffect)(()=>{null!==i.current&&i.current.updateHandlers(s)}),eH(o,"pointerdown",(e||t||n||r)&&function(e){i.current=new rp(e,s,{transformPagePoint:a})}),eq(()=>i.current&&i.current.end())}),drag:e9(function(e){let{dragControls:t,visualElement:n}=e,r=C(()=>new rX(n));(0,l.useEffect)(()=>t&&t.subscribe(r),[r,t]),(0,l.useEffect)(()=>r.addListeners(),[r])})},rq={current:null},rJ={current:!1},rQ=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"],r0=Object.keys(T),r1=r0.length,r2=({treeType:e="",build:t,getBaseTarget:n,makeTargetAnimatable:r,measureViewportBox:o,render:i,readValueFromInstance:a,removeValueFromRenderState:s,sortNodePosition:u,scrapeMotionValuesFromProps:c})=>({parent:d,props:p,presenceId:h,blockInitialAnimation:g,visualState:y,reducedMotionConfig:x},E={})=>{let C,P,M=!1,{latestValues:S,renderState:R}=y,A=function(){let e=rQ.map(()=>new n0),t={},n={clearAllListeners:()=>e.forEach(e=>e.clear()),updatePropListeners:e=>{rQ.forEach(r=>{var o;let i="on"+r,a=e[i];null===(o=t[r])||void 0===o||o.call(t),a&&(t[r]=n[i](a))})}};return e.forEach((e,t)=>{n["on"+rQ[t]]=t=>e.add(t),n["notify"+rQ[t]]=(...t)=>e.notify(...t)}),n}(),k=new Map,L=new Map,D={},j={...S};function O(){C&&M&&(V(),i(C,R,p.style,H.projection))}function V(){t(H,R,S,E,p)}function N(){A.notifyUpdate(S)}function F(e,t){let n=t.onChange(t=>{S[e]=t,p.onUpdate&&nf.update(N,!1,!0)}),r=t.onRenderRequest(H.scheduleRender);L.set(e,()=>{n(),r()})}let{willChange:W,..._}=c(p);for(let e in _){let t=_[e];void 0!==S[e]&&I(t)&&(t.set(S[e],!1),re(W)&&W.add(e))}let B=b(p),U=w(p),H={treeType:e,current:null,depth:d?d.depth+1:0,parent:d,children:new Set,presenceId:h,shouldReduceMotion:null,variantChildren:U?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:!!(null==d?void 0:d.isMounted()),blockInitialAnimation:g,isMounted:()=>!!C,mount(e){M=!0,C=H.current=e,H.projection&&H.projection.mount(e),U&&d&&!B&&(P=null==d?void 0:d.addVariantChild(H)),k.forEach((e,t)=>F(t,e)),rJ.current||function(){if(rJ.current=!0,f){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>rq.current=e.matches;e.addListener(t),t()}else rq.current=!1}}(),H.shouldReduceMotion="never"!==x&&("always"===x||rq.current),null==d||d.children.add(H),H.setProps(p)},unmount(){var e;null===(e=H.projection)||void 0===e||e.unmount(),np.update(N),np.render(O),L.forEach(e=>e()),null==P||P(),null==d||d.children.delete(H),A.clearAllListeners(),C=void 0,M=!1},loadFeatures(e,t,n,r,o,i){let a=[];"production"!==e1&&n&&t&&to(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(let t=0;t<r1;t++){let n=r0[t],{isEnabled:r,Component:o}=T[n];r(p)&&o&&a.push((0,l.createElement)(o,{key:n,...e,visualElement:H}))}if(!H.projection&&o){H.projection=new o(r,H.getLatestValues(),d&&d.projection);let{layoutId:t,layout:n,drag:a,dragConstraints:s,layoutScroll:l}=e;H.projection.setOptions({layoutId:t,layout:n,alwaysMeasureLayout:!!a||s&&v(s),visualElement:H,scheduleRender:()=>H.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:i,layoutScroll:l})}return a},addVariantChild(e){var t;let n=H.getClosestVariantNode();if(n)return null===(t=n.variantChildren)||void 0===t||t.add(e),()=>n.variantChildren.delete(e)}
1,sortNodePosition:t=>u&&e===t.treeType?u(H.getInstance(),t.getInstance()):0,getClosestVariantNode:()=>U?H:null==d?void 0:d.getClosestVariantNode(),getLayoutId:()=>p.layoutId,getInstance:()=>C,getStaticValue:e=>S[e],setStaticValue:(e,t)=>S[e]=t,getLatestValues:()=>S,setVisibility(e){H.isVisible!==e&&(H.isVisible=e,H.scheduleRender())},makeTargetAnimatable:(e,t=!0)=>r(H,e,p,t),measureViewportBox:()=>o(C,p),addValue(e,t){H.hasValue(e)&&H.removeValue(e),k.set(e,t),S[e]=t.get(),F(e,t)},removeValue(e){var t;k.delete(e),null===(t=L.get(e))||void 0===t||t(),L.delete(e),delete S[e],s(e,R)},hasValue:e=>k.has(e),getValue(e,t){let n=k.get(e);return void 0===n&&void 0!==t&&(n=n5(t),H.addValue(e,n)),n},forEachValue:e=>k.forEach(e),readValue:e=>void 0!==S[e]?S[e]:a(C,e,E),setBaseTarget(e,t){j[e]=t},getBaseTarget(e){if(n){let t=n(p,e);if(void 0!==t&&!I(t))return t}return j[e]},...A,build:()=>(V(),R),scheduleRender(){nf.render(O,!1,!0)},syncRender:O,setProps(e){(e.transformTemplate||p.transformTemplate)&&H.scheduleRender(),p=e,A.updatePropListeners(e),D=function(e,t,n){let{willChange:r}=t;for(let o in t){let i=t[o],a=n[o];if(I(i))e.addValue(o,i),re(r)&&r.add(o);else if(I(a))e.addValue(o,n5(i)),re(r)&&r.remove(o);else if(a!==i){if(e.hasValue(o)){let t=e.getValue(o);t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(o);e.addValue(o,n5(void 0!==t?t:i))}}}for(let r in n)void 0===t[r]&&e.removeValue(r);return t}(H,c(p),D)},getProps:()=>p,getVariant:e=>{var t;return null===(t=p.variants)||void 0===t?void 0:t[e]},getDefaultTransition:()=>p.transition,getTransformPagePoint:()=>p.transformPagePoint,getVariantContext(e=!1){if(e)return null==d?void 0:d.getVariantContext();if(!B){let e=(null==d?void 0:d.getVariantContext())||{};return void 0!==p.initial&&(e.initial=p.initial),e}let t={};for(let e=0;e<r3;e++){let n=r5[e],r=p[n];(m(r)||!1===r)&&(t[n]=r)}return t}};return H},r5=["initial",...ro],r3=r5.length;function r6(e){return"string"==typeof e&&e.startsWith("var(--")}let r7=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function r4(e,t,n=1){to(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[r,o]=function(e){let t=r7.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]}(e);if(!r)return;let i=window.getComputedStyle(t).getPropertyValue(r);return i?i.trim():r6(o)?r4(o,t,n+1):o}let r9=new Set(["width","height","top","left","right","bottom","x","y"]),r8=e=>r9.has(e),oe=e=>Object.keys(e).some(r8),ot=(e,t)=>
1{e.set(t,!1),e.set(t)},on=e=>e===ee||e===Z;(i=s||(s={})).width="width",i.height="height",i.left="left",i.right="right",i.top="top",i.bottom="bottom";let or=(e,t)=>parseFloat(e.split(", ")[t]),oo=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;let o=r.match(/^matrix3d\((.+)\)$/);if(o)return or(o[1],t);{let t=r.match(/^matrix\((.+)\)$/);return t?or(t[1],e):0}},oi=new Set(["x","y","z"]),oa=j.filter(e=>!oi.has(e)),os={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:oo(4,13),y:oo(5,14)},ol=(e,t,n)=>{let r=t.measureViewportBox(),o=getComputedStyle(t.getInstance()),{display:i}=o,a={};"none"===i&&t.setStaticValue("display",e.display||"block"),n.forEach(e=>{a[e]=os[e](r,o)}),t.syncRender();let s=t.measureViewportBox();return n.forEach(n=>{ot(t.getValue(n),a[n]),e[n]=os[n](s,o)}),e},ou=(e,t,n={},r={})=>{t={...t},r={...r};let o=Object.keys(t).filter(r8),i=[],a=!1,s=[];if(o.forEach(o=>{let l;let u=e.getValue(o);if(!e.hasValue(o))return;let c=n[o],d=n7(c),f=t[o];if(eT(f)){let e=f.length,t=null===f[0]?1:0;d=n7(c=f[t]);for(let n=t;n<e;n++)l?to(n7(f[n])===l,"All keyframes must be of the same type"):to((l=n7(f[n]))===d||on(d)&&on(l),"Keyframes must be of the same dimension as the current value")}else l=n7(f);if(d!==l){if(on(d)&&on(l)){let e=u.get();"string"==typeof e&&u.set(parseFloat(e)),"string"==typeof f?t[o]=parseFloat(f):Array.isArray(f)&&l===Z&&(t[o]=f.map(parseFloat))}else(null==d?void 0:d.transform)&&(null==l?void 0:l.transform)&&(0===c||0===f)?0===c?u.set(l.transform(c)):t[o]=d.transform(f):(a||(i=function(e){let t=[];
1return oa.forEach(n=>{let r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.syncRender(),t}(e),a=!0),s.push(o),r[o]=void 0!==r[o]?r[o]:t[o],ot(u,f))}}),!s.length)return{target:t,transitionEnd:r};{let n=s.indexOf("height")>=0?window.pageYOffset:null,o=ol(t,e,s);return i.length&&i.forEach(([t,n])=>{e.getValue(t).set(n)}),e.syncRender(),f&&null!==n&&window.scrollTo({top:n}),{target:o,transitionEnd:r}}},oc=(e,t,n,r)=>{var o,i;let a=function(e,{...t},n){let r=e.getInstance();if(!(r instanceof Element))return{target:t,transitionEnd:n};for(let o in n&&(n={...n}),e.forEachValue(e=>{let t=e.get();if(!r6(t))return;let n=r4(t,r);n&&e.set(n)}),t){let e=t[o];if(!r6(e))continue;let i=r4(e,r);i&&(t[o]=i,n&&void 0===n[o]&&(n[o]=e))}return{target:t,transitionEnd:n}}(e,t,r);return t=a.target,r=a.transitionEnd,o=t,i=r,oe(o)?ou(e,o,n,i):{target:o,transitionEnd:i}},od={treeType:"dom",readValueFromInstance(e,t){if(O.has(t)){let e=nH(t);return e&&e.default||0}{let n=window.getComputedStyle(e),r=(W(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof r?r.trim():r}},sortNodePosition:(e,t)=>2&e.compareDocumentPosition(t)?1:-1,getBaseTarget(e,t){var n;return null===(n=e.style)||void 0===n?void 0:n[t]},measureViewportBox:(e,{transformPagePoint:t})=>rY(e,t),resetTransform(e,t,n){let{transformTemplate:r}=n;t.style.transform=r?r({},""):"none",e.scheduleRender()},restoreTransform(e,t){e.style.transform=t.style.transform},removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]},makeTargetAnimatable(e,{transition:t,transitionEnd:n,...r},{transformValues:o},i=!0){let a=function(e,t,n){var r;let o={};for(let i in e){let e=function(e,t){if(t)return(t[e]||t.default||t).from}(i,t);o[i]=void 0!==e?e:null===(r=n.getValue(i))||void 0===r?void 0:r.get()}return o}(r,t||{},e);if(o&&(n&&(n=o(n)),r&&(r=o(r)),a&&(a=o(a))),i){!function(e,t,n){var r,o;let i=Object.keys(t).filter(t=>!e.hasValue(t)),a=i.length;if(a)for(let s=0;s<a;s++){let a=i[s],l=t[a],u=null;Array.isArray(l)&&(u=l[0]),null===u&&(u=null!==(o=null!==(r=n[a])&&void 0!==r?r:e.readValue(a))&&void 0!==o?o:t[a]),null!=u&&("string"==typeof u&&(nZ(u)||nq(u))?u=parseFloat(u):!n9(u)&&tV.test(l)&&(u=nK(a,l)),e.addValue(a,n5(u)),void 0===n[a]&&(n[a]=u),e.setBaseTarget(a,u))}}(e,r,a);let t=oc(e,r,a,n);n=t.transitionEnd,r=t.target}return{transition:t,transitionEnd:n,...r}},scrapeMotionValuesFromProps:ew,build(e,t,n,r,o){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden"),ei(t,n,r,o.transformTemplate)},render:eg},of=r2(od),op=r2({...od,getBaseTarget:(e,t)=>e[t],readValueFromInstance(e,t){var n;return O.has(t)?(null===(n=nH(t))||void 0===n?void 0:n.default)||0:(t=ey.has(t)?t:em(t),e.getAttribute(t))},scrapeMotionValuesFromProps:ex,build(e,t,n,r,o){eh(t,n,r,o.transformTemplate)},render:eb}),oh=(e,t)=>L(e)?op(t,{enableHardwareAcceleration:!1}):of(t,{enableHardwareAcceleration:!0});function ov(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let om={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!Z.test(e))return e;e=parseFloat(e)}let n=ov(e,t.target.x),r=ov(e,t.target.y);return`${n}% ${r}%`}},og="_$css",oy={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,o=e.includes("var("),i=[];o&&(e=e.replace(r7,e=>(i.push(e),og)));let a=tV.parse(e);if(a.length>5)return r;let s=tV.createTransformer(e),l="number"!=typeof a[0]?1:0,u=n.x.scale*t.x,c=n.y.scale*t.y;a[0+l]/=u,a[1+l]/=c;let d=tp(u,c,.5);"number"==typeof a[2+l]&&(a[2+l]/=d),"number"==typeof a[3+l]&&(a[3+l]/=d);let f=s(a);if(o){let e=0;f=f.replace(og,()=>{let t=i[e];return e++,t})}return f}};class ob extends l.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=e;Object.assign(D,ow),o&&(t.group&&t.group.add(o),n&&n.register&&r&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),P.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:o}=this.props,i=n.projection;return i&&(i.isPresent=o,r||e.layoutDependency!==t||void 0===t?i.willUpdate():this.safeToRemove(),e.isPresent===o||(o?i.promote():i.relegate()||nf.postRender(()=>{var e;(null===(e=i.getStack())||void 0===e?void 0:e.members.length)||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),(null==t?void 0:t.group)&&t.group.remove(r),(null==n?void 0:n.deregister)&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;null==e||e()}render(){return null}}let ow={borderRadius:{...om,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:om,borderTopRightRadius:om,borderBottomLeftRadius:om,borderBottomRightRadius:om,boxShadow:oy},ox=["TopLeft","TopRight","BottomLeft","BottomRight"],oE=ox.length,oT=e=>"string"==typeof e?parseFloat(e):e,oC=e=>"number"==typeof e||Z.test(e);function oP(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}let oM=oR(0,.5,t0),oS=oR(.5,.95,tG);
1function oR(e,t,n){return r=>r<e?0:r>t?1:n(tf(e,t,r))}function oA(e,t){e.min=t.min,e.max=t.max}function ok(e,t){oA(e.x,t.x),oA(e.y,t.y)}function oL(e,t,n,r,o){return e-=t,e=r+1/n*(e-r),void 0!==o&&(e=r+1/o*(e-r)),e}function oD(e,t,[n,r,o],i,a){!function(e,t=0,n=1,r=.5,o,i=e,a=e){if(G.test(t)&&(t=parseFloat(t),t=tp(a.min,a.max,t/100)-a.min),"number"!=typeof t)return;let s=tp(i.min,i.max,r);e===i&&(s-=t),e.min=oL(e.min,t,n,s,o),e.max=oL(e.max,t,n,s,o)}(e,t[n],t[r],t[o],t.scale,i,a)}let oj=["x","scaleX","originX"],oO=["y","scaleY","originY"];function oV(e,t,n,r){oD(e.x,t,oj,null==n?void 0:n.x,null==r?void 0:r.x),oD(e.y,t,oO,null==n?void 0:n.y,null==r?void 0:r.y)}function oI(e){return 0===e.translate&&1===e.scale}function oN(e){return oI(e.x)&&oI(e.y)}function oF(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}class oW{constructor(){this.members=[]}add(e){nJ(this.members,e),e.scheduleRender()}remove(e){if(nQ(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;let 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){var n;let r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues,e.snapshot.isShared=!0),(null===(n=e.root)||void 0===n?void 0:n.isUpdating)&&(e.isLayoutDirty=!0);let{crossfade:o}=e.options;!1===o&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{var t,n,r,o,i;null===(n=(t=e.options).onExitComplete)||void 0===n||n.call(t),null===(i=null===(r=e.resumingFrom)||void 0===r?void 0:(o=r.options).onExitComplete)||void 0===i||i.call(o)})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}
1function o_(e,t,n){let r=e.x.translate/t.x,o=e.y.translate/t.y,i=`translate3d(${r}px, ${o}px, 0) `;if(i+=`scale(${1/t.x}, ${1/t.y}) `,n){let{rotate:e,rotateX:t,rotateY:r}=n;e&&(i+=`rotate(${e}deg) `),t&&(i+=`rotateX(${t}deg) `),r&&(i+=`rotateY(${r}deg) `)}let a=e.x.scale*t.x,s=e.y.scale*t.y;return"translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)"==(i+=`scale(${a}, ${s})`)?"none":i}let oB=(e,t)=>e.depth-t.depth;class oU{constructor(){this.children=[],this.isDirty=!1}add(e){nJ(this.children,e),this.isDirty=!0}remove(e){nQ(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(oB),this.isDirty=!1,this.children.forEach(e)}}let oH=["","X","Y","Z"];function oK({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(e,n={},r=null==t?void 0:t()){this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.nodes.forEach(oq),this.nodes.forEach(oJ)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=e,this.latestValues=n,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new oU)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new n0),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);null==n||n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}registerPotentialNode(e,t){this.potentialNodes.set(e,t)}mount(t,n=!1){var r;if(this.instance)return;this.isSVG=t instanceof SVGElement&&"svg"!==t.tagName,this.instance=t;let{layoutId:o,layout:i,visualElement:a}=this.options;if(a&&!a.getInstance()&&a.mount(t),this.root.nodes.add(this),null===(r=this.parent)||void 0===r||r.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),n&&(i||o)&&(this.isLayoutDirty=!0),e){let n;let r=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,clearTimeout(n),n=window.setTimeout(r,250),P.hasAnimatedSinceResize&&(P.hasAnimatedSinceResize=!1,this.nodes.forEach(oZ))})}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&a&&(o||i)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{var o,i,s,l,u;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let c=null!==(i=null!==(o=this.options.transition)&&void 0!==o?o:a.getDefaultTransition())&&void 0!==i?i:o3,{onLayoutAnimationStart:d,onLayoutAnimationComplete:f}=a.getProps(),p=!this.targetLayout||!oF(this.targetLayout,r)||n,h=!t&&n;if((null===(s=this.resumeFrom)||void 0===s?void 0:s.instance)||h||t&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,h);let t={...nX(c,"layout"),onPlay:d,onComplete:f};a.shouldReduceMotion&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||0!==this.animationProgress||this.finishAnimation(),this.isLead()&&(null===(u=(l=this.options).onExitComplete)||void 0===u||u.call(l));this.targetLayout=r})}unmount(){var e,t;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(e=this.getStack())||void 0===e||e.remove(this),null===(t=this.parent)||void 0===t||t.children.delete(this),this.instance=void 0,np.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){var e;return this.isAnimationBlocked||(null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimationBlocked())||!1}startUpdate(){var e;this.isUpdateBlocked()||(this.isUpdating=!0,null===(e=this.nodes)||void 0===e||e.forEach(oQ))}willUpdate(e=!0){var t,n,r;if(this.root.isUpdateBlocked()){null===(n=(t=this.options).onExitComplete)||void 0===n||n.call(t);return}
1if(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()}let{layoutId:o,layout:i}=this.options;if(void 0===o&&!i)return;let a=null===(r=this.options.visualElement)||void 0===r?void 0:r.getProps().transformTemplate;this.prevTransformTemplateValue=null==a?void 0:a(this.latestValues,""),this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}didUpdate(){if(this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(oX);return}this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(o6),this.potentialNodes.clear()),this.nodes.forEach(oG),this.nodes.forEach(oz),this.nodes.forEach(oY),this.clearAllSnapshots(),nh.update(),nh.preRender(),nh.render())}clearAllSnapshots(){this.nodes.forEach(o$),this.sharedNodes.forEach(o0)}scheduleUpdateProjection(){nf.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){nf.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){if(this.snapshot||!this.instance)return;let e=this.measure(),t=this.removeTransform(this.removeElementScroll(e));o4(t),this.snapshot={measured:e,layout:t,latestValues:{}}}updateLayout(){var e;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 t=this.measure();o4(t);let n=this.layout;this.layout={measured:t,actual:this.removeElementScroll(t)},this.layoutCorrected=rD(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),null===(e=this.options.visualElement)||void 0===e||e.notifyLayoutMeasure(this.layout.actual,null==n?void 0:n.actual)}updateScroll(){this.options.layoutScroll&&this.instance&&(this.isScrollRoot=r(this.instance),this.scroll=n(this.instance))}resetTransform(){var e;if(!o)return;let t=this.isLayoutDirty||this.shouldResetTransform,n=this.projectionDelta&&!oN(this.projectionDelta),r=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate,i=null==r?void 0:r(this.latestValues,""),a=i!==this.prevTransformTemplateValue;t&&(n||rN(this.latestValues)||a)&&(o(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}measure(){let{visualElement:e}=this.options;if(!e)return rD();let t=e.measureViewportBox(),{scroll:n}=this.root;return n&&(rB(t.x,n.x),rB(t.y,n.y)),t}removeElementScroll(e){let t=rD();ok(t,e);for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:o,options:i,isScrollRoot:a}=r;if(r!==this.root&&o&&i.layoutScroll){if(a){ok(t,e);let{scroll:n}=this.root;n&&(rB(t.x,-n.x),rB(t.y,-n.y))}rB(t.x,o.x),rB(t.y,o.y)}}return t}applyTransform(e,t=!1){let n=rD();ok(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&&rz(n,{x:-r.scroll.x,y:-r.scroll.y}),rN(r.latestValues)&&rz(n,r.latestValues)}return rN(this.latestValues)&&rz(n,this.latestValues),n}removeTransform(e){var t;let n=rD();ok(n,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];if(!r.instance||!rN(r.latestValues))continue;rI(r.latestValues)&&r.updateSnapshot();let o=rD();ok(o,r.measure()),oV(n,r.latestValues,null===(t=r.snapshot)||void 0===t?void 0:t.layout,o)}return rN(this.latestValues)&&oV(n,this.latestValues),n}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection()}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}resolveTargetDelta(){var e,t,n,r;let{layout:o,layoutId:i}=this.options;this.layout&&(o||i)&&(!this.targetDelta&&!this.relativeTarget&&(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget=rD(),this.relativeTargetOrigin=rD(),rC(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),ok(this.relativeTarget,this.relativeTargetOrigin))),(this.relativeTarget||this.targetDelta)&&((this.target||(this.target=rD(),this.targetWithTransforms=rD()),this.relativeTarget&&this.relativeTargetOrigin&&(null===(e=this.relativeParent)||void 0===e?void 0:e.target))?(t=this.target,n=this.relativeTarget,r=this.relativeParent.target,rE(t.x,n.x,r.x),rE(t.y,n.y,r.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.actual):ok(this.target,this.layout.actual),r_(this.target,this.targetDelta)):ok(this.target,this.layout.actual),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&!!this.relativeParent.resumingFrom==!!this.resumingFrom&&!this.relativeParent.options.layoutScroll&&this.relativeParent.target&&(this.relativeTarget=rD(),this.relativeTargetOrigin=rD(),rC(this.relativeTargetOrigin,this.target,this.relativeParent.target),ok(this.relativeTarget,this.relativeTargetOrigin)))))}getClosestProjectingParent(){if(!(!this.parent||rN(this.parent.latestValues)))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()}calcProjection(){var e;let{layout:t,layoutId:n}=this.options;if(this.isTreeAnimating=!!((null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(t||n))return;let r=this.getLead();ok(this.layoutCorrected,this.layout.actual),function(e,t,n,r=!1){var o,i;let a,s;let l=n.length;if(l){t.x=t.y=1;for(let u=0;u<l;u++)s=(a=n[u]).projectionDelta,(null===(i=null===(o=a.instance)||void 0===o?void 0:o.style)||void 0===i?void 0:i.display)!=="contents"&&(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&rz(e,{x:-a.scroll.x,y:-a.scroll.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,r_(e,s)),r&&rN(a.latestValues)&&rz(e,a.latestValues))}}(this.layoutCorrected,this.treeScale,this.path,!!this.resumingFrom||this!==r);let{target:o}=r;if(!o)return;this.projectionDelta||(this.projectionDelta=rk(),this.projectionDeltaWithTransform=rk());let i=this.treeScale.x,a=this.treeScale.y,s=this.projectionTransform;rx(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.projectionTransform=o_(this.projectionDelta,this.treeScale),(this.projectionTransform!==s||this.treeScale.x!==i||this.treeScale.y!==a)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){var t,n,r;null===(n=(t=this.options).scheduleRender)||void 0===n||n.call(t),e&&(null===(r=this.getStack())||void 0===r||r.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(e,t=!1){var n;let r=this.snapshot,o=(null==r?void 0:r.latestValues)||{},i={...this.latestValues},a=rk();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!t;let s=rD(),l=null==r?void 0:r.isShared,u=1>=((null===(n=this.getStack())||void 0===n?void 0:n.members.length)||0),c=!!(l&&!u&&!0===this.options.crossfade&&!this.path.some(o5));this.animationProgress=0,this.mixTargetDelta=t=>{var n,r,d;let f=t/1e3;o1(a.x,e.x,f),o1(a.y,e.y,f),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&(null===(n=this.relativeParent)||void 0===n?void 0:n.layout)&&(rC(s,this.layout.actual,this.relativeParent.layout.actual),r=this.relativeTarget,d=this.relativeTargetOrigin,o2(r.x,d.x,s.x,f),o2(r.y,d.y,s.y,f)),l&&(this.animationValues=i,function(e,t,n,r,o,i){var a,s,l,u;o?(e.opacity=tp(0,null!==(a=n.opacity)&&void 0!==a?a:1,oM(r)),e.opacityExit=tp(null!==(s=t.opacity)&&void 0!==s?s:1,0,oS(r))):i&&(e.opacity=tp(null!==(l=t.opacity)&&void 0!==l?l:1,null!==(u=n.op
1acity)&&void 0!==u?u:1,r));for(let o=0;o<oE;o++){let i=`border${ox[o]}Radius`,a=oP(t,i),s=oP(n,i);(void 0!==a||void 0!==s)&&(a||(a=0),s||(s=0),0===a||0===s||oC(a)===oC(s)?(e[i]=Math.max(tp(oT(a),oT(s),r),0),(G.test(s)||G.test(a))&&(e[i]+="%")):e[i]=s)}(t.rotate||n.rotate)&&(e.rotate=tp(t.rotate||0,n.rotate||0,r))}(i,o,this.latestValues,f,c,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=f},this.mixTargetDelta(0)}startAnimation(e){var t,n;this.notifyListeners("animationStart"),null===(t=this.currentAnimation)||void 0===t||t.stop(),this.resumingFrom&&(null===(n=this.resumingFrom.currentAnimation)||void 0===n||n.stop()),this.pendingAnimation&&(np.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=nf.update(()=>{P.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n={}){let r=I(0)?0:n5(0);return nG("",r,1e3,n),{stop:()=>r.stop(),isAnimating:()=>r.isAnimating()}}(0,0,{...e,onUpdate:t=>{var n;this.mixTargetDelta(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:()=>{var t;null===(t=e.onComplete)||void 0===t||t.call(e),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){var e;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(e=this.getStack())||void 0===e||e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){var e;this.currentAnimation&&(null===(e=this.mixTargetDelta)||void 0===e||e.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let{targetWithTransforms:e,target:t,layout:n,latestValues:r}=this.getLead();e&&t&&n&&(ok(e,t),rz(e,r),rx(this.projectionDeltaWithTransform,this.layoutCorrected,e,r))}registerSharedNode(e,t){var n,r,o;this.sharedNodes.has(e)||this.sharedNodes.set(e,new oW),this.sharedNodes.get(e).add(t),t.promote({transition:null===(n=t.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(o=null===(r=t.options.initialPromotionConfig)||void 0===r?void 0:r.shouldPreserveFollowOpacity)||void 0===o?void 0:o.call(r,t)})}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?void 0:e.lead)||this}getPrevLead(){var e;let{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?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)}resetRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,n={};for(let r=0;r<oH.length;r++){let o="rotate"+oH[r];e.getStaticValue(o)&&(t=!0,n[o]=e.getStaticValue(o),e.setStaticValue(o,0))}if(t){for(let t in null==e||e.syncRender(),n)e.setStaticValue(t,n[t]);e.scheduleRender()}}getProjectionStyles(e={}){var t,n,r;let o={};if(!this.instance||this.isSVG)return o;if(!this.isVisible)return{visibility:"hidden"};o.visibility="";let i=null===(t=this.options.visualElement)||void 0===t?void 0:t.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,o.opacity="",o.pointerEvents=eM(e.pointerEvents)||"",o.transform=i?i(this.latestValues,""):"none",o;let a=this.getLead();if(!this.projectionDelta||!this.layout||!a.target){let t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=eM(e.pointerEvents)||""),this.hasProjected&&!rN(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1),t}let s=a.animationValues||a.latestValues;this.applyTransformsToTarget(),o.transform=o_(this.projectionDeltaWithTransform,this.treeScale,s),i&&(o.transform=i(s,o.transform));let{x:l,y:u}=this.projectionDelta;for(let e in o.transformOrigin=`${100*l.origin}% ${100*u.origin}% 0`,a.animationValues?o.opacity=a===this?null!==(r=null!==(n=s.opacity)&&void 0!==n?n:this.latestValues.opacity)&&void 0!==r?r:1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:o.opacity=a===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0,D){if(void 0===s[e])continue;let{correct:t,applyTo:n}=D[e],r=t(s[e],a);if(n){let e=n.length;for(let t=0;t<e;t++)o[n[t]]=r}else o[e]=r}return this.options.layoutId&&(o.pointerEvents=a===this?eM(e.pointerEvents)||"":"none"),o}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}
1resetTree(){this.root.nodes.forEach(e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(oX),this.root.sharedNodes.clear()}}}function oz(e){e.updateLayout()}function oY(e){var t,n,r;let o=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&o&&e.hasListeners("didUpdate")){let{actual:t,measured:n}=e.layout;"size"===e.options.animationType?rj(e=>{let n=o.isShared?o.measured[e]:o.layout[e],r=ry(n);n.min=t[e].min,n.max=n.min+r}):"position"===e.options.animationType&&rj(e=>{let n=o.isShared?o.measured[e]:o.layout[e],r=ry(t[e]);n.max=n.min+r});let r=rk();rx(r,t,o.layout);let i=rk();o.isShared?rx(i,e.applyTransform(n,!0),o.measured):rx(i,t,o.layout);let a=!oN(r),s=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){let{snapshot:n,layout:r}=e.relativeParent;if(n&&r){let e=rD();rC(e,o.layout,n.layout);let i=rD();rC(i,t,r.actual),oF(e,i)||(s=!0)}}e.notifyListeners("didUpdate",{layout:t,snapshot:o,delta:i,layoutDelta:r,hasLayoutChanged:a,hasRelativeTargetChanged:s})}else e.isLead()&&(null===(r=(n=e.options).onExitComplete)||void 0===r||r.call(n));e.options.transition=void 0}function o$(e){e.clearSnapshot()}function oX(e){e.clearMeasurements()}function oG(e){let{visualElement:t}=e.options;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function oZ(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function oq(e){e.resolveTargetDelta()}function oJ(e){e.calcProjection()}function oQ(e){e.resetRotation()}function o0(e){e.removeLeadSnapshot()}function o1(e,t,n){e.translate=tp(t.translate,0,n),e.scale=tp(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function o2(e,t,n,r){e.min=tp(t.min,n.min,r),e.max=tp(t.max,n.max,r)}function o5(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let o3={duration:.45,ease:[.4,0,.1,1]};function o6(e,t){let n=e.root;for(let t=e.path.length-1;t>=0;t--)if(e.path[t].instance){n=e.path[t];break}
1let r=(n&&n!==e.root?n.instance:document).querySelector(`[data-projection-id="${t}"]`);r&&e.mount(r,!0)}function o7(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function o4(e){o7(e.x),o7(e.y)}let o9=oK({attachResizeListener:(e,t)=>ek(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),o8={current:void 0},ie=oK({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!o8.current){let e=new o9(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),o8.current=e}return o8.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position}),it={...rl,...e8,...rZ,measureLayout:function(e){let[t,n]=te(),r=(0,l.useContext)(S);return l.createElement(ob,{...e,layoutGroup:r,switchLayoutGroup:(0,l.useContext)(A),isPresent:t,safeToRemove:n})}},ir=function(e){function t(t,n={}){return function({preloadedFeatures:e,createVisualElement:t,projectionNodeConstructor:n,useRender:r,useVisualState:o,Component:i}){return e&&function(e){for(let t in e)"projectionNodeConstructor"===t?T.projectionNodeConstructor=e[t]:T[t].Component=e[t]}(e),(0,l.forwardRef)(function(a,s){var g;let y={...(0,l.useContext)(u),...a,layoutId:function({layoutId:e}){let t=(0,l.useContext)(S).id;return t&&void 0!==e?t+"-"+e:e}(a)},{isStatic:w}=y,E=null,k=function(e){let{initial:t,animate:n}=function(e,t){if(b(e)){let{initial:t,animate:n}=e;return{initial:!1===t||m(t)?t:void 0,animate:m(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,l.useContext)(c));return(0,l.useMemo)(()=>({initial:t,animate:n}),[x(t),x(n)])}(a),L=w?void 0:C(()=>{if(P.hasEverUpdated)return M++}),D=o(a,w);if(!w&&f){k.visualElement=function(e,t,n,r){let o=(0,l.useContext)(c).visualElement,i=(0,l.useContext)(h),a=(0,l.useContext)(d),s=(0,l.useContext)(u).reducedMotion,f=(0,l.useRef)(void 0);r=r||i.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceId:a?a.id:void 0,blockInitialAnimation:!!a&&!1===a.initial,reducedMotionConfig:s}));let v=f.current;return p(()=>{v&&v.syncRender()}),(0,l.useEffect)(()=>{v&&v.animationState&&v.animationState.animateChanges()}),p(()=>()=>v&&v.notifyUnmount(),[]),v}(i,D,y,t);let r=(0,l.useContext)(h).strict,o=(0,l.useContext)(A);k.visualElement&&(E=k.visualElement.loadFeatures(a,r,e,L,n||T.projectionNodeConstructor,o))}return l.createElement(R,{visualElement:k.visualElement,props:y},E,l.createElement(c.Provider,{value:k},r(i,a,L,(g=k.visualElement,(0,l.useCallback)(e=>{e&&D.mount&&D.mount(e),g&&(e?g.mount(e):g.unmount()),s&&("function"==typeof s?s(e):v(s)&&(s.current=e))},[g])),D,w,k.visualElement)))})}(e(t,n))}if("undefined"==typeof Proxy)return t;let n=new Map;return new Proxy(t,{get:(e,r)=>(n.has(r)||n.set(r,t(r)),n.get(r))})}((e,t)=>(function(e,{forwardMotionProps:t=!1},n,r,o){return{...L(e)?eR:eA,preloadedFeatures:n,useRender:function(e=!1){return(t,n,r,o,{latestValues:i},a)=>{let s=(L(t)?function(e,t){let n=(0,l.useMemo)(()=>{let n=ev();return eh(n,t,{enableHardwareAcceleration:!1},e.transformTemplate),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};es(t,e.style,e),n.style={...t,...n.style}}return n}:function(e,t,n){let r={},o=function(e,t,n){let r=e.style||{},o={};return es(o,r,e),Object.assign(o,function({transformTemplate:e},t,n){return(0,l.useMemo)(()=>{let r=ea();return ei(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}(e,t,n)),e.transformValues?e.transformValues(o):o}
1(e,t,n);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),r.style=o,r})(n,i,a),u={...function(e,t,n){let r={};for(let o in e)(ec(o)||!0===n&&eu(o)||!t&&!eu(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(n,"string"==typeof t,e),...s,ref:o};return r&&(u["data-projection-id"]=r),(0,l.createElement)(t,u)}}(t),createVisualElement:r,projectionNodeConstructor:o,Component:e}})(e,t,it,oh,ie))},86566:function(e,t,n){"use strict";function r(e,t,n){if(!t.has(e))throw TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}n.d(t,{J:function(){return r}})},79269:function(e,t,n){"use strict";n.d(t,{_:function(){return o}});var r=n(86566);function o(e,t){var n=(0,r.J)(e,t,"get");return n.get?n.get.call(e):n.value}},35912:function(e,t,n){"use strict";function r(e,t,n){!function(e,t){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}n.d(t,{_:function(){return r}})},24004:function(e,t,n){"use strict";n.d(t,{_:function(){return o}});var r=n(86566);function o(e,t,n){var o=(0,r.J)(e,t,"set");return!function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw TypeError("attempted to set read only private field");t.value=n}}(e,o,n),n}},98758:function(e,t,n){"use strict";let r;n.d(t,{z:function(){return eN}});var o,i=n(7653);function a(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}"undefined"!=typeof window&&window.document&&window.document.createElement;let s=new Map;var l=n(57908);function u(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let e in r){let n=t[e],o=r[e];"function"==typeof n&&"function"==typeof o&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&90>=e.charCodeAt(2)?t[e]=a(n,o):("className"===e||"UNSAFE_className"===e)&&"string"==typeof n&&"string"==typeof o?t[e]=(0,l.Z)(n,o):"id"===e&&n&&o?t.id=function(e,t){if(e===t)return e;let n=s.get(e);if(n)return n(t),t;let r=s.get(t);return r?(r(e),e):t}(n,o):t[e]=void 0!==o?o:n}}return t}n(3458);let c=Symbol("default"),d=new Set(["id"]),f=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),p=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),h=/^(data-.*)$/;function v(e,t={}){let{labelable:n,isLink:r,propNames:o}=t,i={};for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(d.has(t)||n&&f.has(t)||r&&p.has(t)||(null==o?void 0:o.has(t))||h.test(t))&&(i[t]=e[t]);return i}let m=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},g=e=>e&&"window"in e&&e.window===e?e:m(e).defaultView||window,y=new Map,b=new Set;function w(){if("undefined"==typeof window)return;function e(e){return"propertyName"in e}let t=n=>{if(!e(n)||!n.target)return;let r=y.get(n.target);if(r&&(r.delete(n.propertyName),0===r.size&&(n.target.removeEventListener("transitioncancel",t),y.delete(n.target)),0===y.size)){for(let e of b)e();b.clear()}};document.body.addEventListener("transitionrun",n=>{if(!e(n)||!n.target)return;let r=y.get(n.target);r||(r=new Set,y.set(n.target,r),n.target.addEventListener("transitioncancel",t,{once:!0})),r.add(n.propertyName)}),document.body.addEventListener("transitionend",t)}function x(e){requestAnimationFrame(()=>{0===y.size?e():b.add(e)})}function E(e){if(function(){if(null==T){T=!1;try{document.createElement("div").focus({get preventScroll(){return T=!0,!0}})}catch(e){}}return T}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}(e);e.focus(),function(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}(t)}}"undefined"!=typeof document&&("loading"!==document.readyState?w():document.addEventListener("DOMContentLoaded",w));let T=null;function C(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands.some(t=>e.test(t.brand)))||e.test(window.navigator.userAgent))}function P(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function M(e){let t=null;return()=>(null==t&&(t=e()),t)}let S=M(function(){return P(/^Mac/i)}),R=M(function(){return P(/^iPhone/i)}),A=M(function(){return P(/^iPad/i)||S()&&navigator.maxTouchPoints>1}),k=M(function(){return R()||A()});M(function(){return S()||k()});
1let L=M(function(){return C(/AppleWebKit/i)&&!D()}),D=M(function(){return C(/Chrome/i)}),j=M(function(){return C(/Android/i)}),O=M(function(){return C(/Firefox/i)});function V(e){return 0===e.mozInputSource&&!!e.isTrusted||(j()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}let I=null,N=new Set,F=new Map,W=!1,_=!1,B={Tab:!0,Escape:!0};function U(e,t){for(let n of N)n(e,t)}function H(e){W=!0,e.metaKey||!S()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key||(I="keyboard",U("keyboard",e))}function K(e){I="pointer",("mousedown"===e.type||"pointerdown"===e.type)&&(W=!0,U("pointer",e))}function z(e){V(e)&&(W=!0,I="virtual")}function Y(e){e.target!==window&&e.target!==document&&(W||_||(I="virtual",U("virtual",e)),W=!1,_=!1)}function $(){W=!1,_=!0}function X(e){if("undefined"==typeof window||F.get(g(e)))return;let t=g(e),n=m(e),r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){W=!0,r.apply(this,arguments)},n.addEventListener("keydown",H,!0),n.addEventListener("keyup",H,!0),n.addEventListener("click",z,!0),t.addEventListener("focus",Y,!0),t.addEventListener("blur",$,!1),"undefined"!=typeof PointerEvent?(n.addEventListener("pointerdown",K,!0),n.addEventListener("pointermove",K,!0),n.addEventListener("pointerup",K,!0)):(n.addEventListener("mousedown",K,!0),n.addEventListener("mousemove",K,!0),n.addEventListener("mouseup",K,!0)),t.addEventListener("beforeunload",()=>{G(e)},{once:!0}),F.set(t,{focus:r})}let G=(e,t)=>{let n=g(e),r=m(e);t&&r.removeEventListener("DOMContentLoaded",t),F.has(n)&&(n.HTMLElement.prototype.focus=F.get(n).focus,r.removeEventListener("keydown",H,!0),r.removeEventListener("keyup",H,!0),r.removeEventListener("click",z,!0),n.removeEventListener("focus",Y,!0),n.removeEventListener("blur",$,!1),"undefined"!=typeof PointerEvent?(r.removeEventListener("pointerdown",K,!0),r.removeEventListener("pointermove",K,!0),r.removeEventListener("pointerup",K,!0)):(r.removeEventListener("mousedown",K,!0),r.removeEventListener("mousemove",K,!0),r.removeEventListener("mouseup",K,!0)),F.delete(n))};function Z(){return"pointer"!==I}"undefined"!=typeof document&&function(e){let t;let n=m(void 0);"loading"!==n.readyState?X(void 0):(t=()=>{X(void 0)},n.addEventListener("DOMContentLoaded",t)),()=>G(e,t)}();let q=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),J="undefined"!=typeof document?i.useLayoutEffect:()=>{};function Q(e,t){J(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function ee(e){let t=(0,i.useRef)(null);return J(()=>{t.current=e},[e]),(0,i.useCallback)((...e)=>{let n=t.current;return null==n?void 0:n(...e)},[])}class et{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 en(e){let t=(0,i.useRef)({isFocused:!1,observer:null});J(()=>{let e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]);let n=ee(t=>{null==e||e(t)});return(0,i.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 et("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)||void 0===e||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])}function er(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e,a=(0,i.useCallback)(e=>{if(e.target===e.currentTarget)return r&&r(e),o&&o(!1),!0},[r,o]),s=en(a),l=(0,i.useCallback)(e=>{let t=m(e.target);e.target===e.currentTarget&&t.activeElement===e.target&&(n&&n(e),o&&o(!0),s(e))},[o,n,s]);return{focusProps:{onFocus:!t&&(n||o||r)?l:void 0,onBlur:!t&&(r||o)?a:void 0}}}function eo(e){if(!e)return;let t=!0;return n=>{e({...n,preventDefault(){n.preventDefault()},isDefaultPrevented:()=>n.isDefaultPrevented(),stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}}),t&&n.stopPropagation()}}let ei=i.createContext(null),ea="default",es="",el=new WeakMap;function eu(e){if(k()){if("default"===ea){let t=m(e);es=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}ea="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(el.set(e,e.style.userSelect),e.style.userSelect="none")}function ec(e){if(k())"disabled"===ea&&(ea="restoring",setTimeout(()=>{x(()=>
1{if("restoring"===ea){let t=m(e);"none"===t.documentElement.style.webkitUserSelect&&(t.documentElement.style.webkitUserSelect=es||""),es="",ea="default"}})},300));else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&el.has(e)){let t=el.get(e);"none"===e.style.userSelect&&(e.style.userSelect=t),""===e.getAttribute("style")&&e.removeAttribute("style"),el.delete(e)}}let ed=i.createContext({register:()=>{}});ed.displayName="PressResponderContext";var ef=n(79269),ep=n(35912),eh=n(24004);function ev(e,t,n=!0){var r,o;let{metaKey:i,ctrlKey:a,altKey:s,shiftKey:l}=t;O()&&(null===(o=window.event)||void 0===o?void 0:null===(r=o.type)||void 0===r?void 0:r.startsWith("key"))&&"_blank"===e.target&&(S()?i=!0:a=!0);let u=L()&&S()&&!A()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:a,altKey:s,shiftKey:l}):new MouseEvent("click",{metaKey:i,ctrlKey:a,altKey:s,shiftKey:l,bubbles:!0,cancelable:!0});ev.isOpening=n,E(e),e.dispatchEvent(u),ev.isOpening=!1}ev.isOpening=!1;var em=new WeakMap;class eg{continuePropagation(){(0,eh._)(this,em,!1)}get shouldStopPropagation(){return(0,ef._)(this,em)}constructor(e,t,n,r){var o;(0,ep._)(this,em,{writable:!0,value:void 0}),(0,eh._)(this,em,!0);let i=null!==(o=null==r?void 0:r.target)&&void 0!==o?o:n.currentTarget,a=null==i?void 0:i.getBoundingClientRect(),s,l=0,u,c=null;null!=n.clientX&&null!=n.clientY&&(u=n.clientX,c=n.clientY),a&&(null!=u&&null!=c?(s=u-a.left,l=c-a.top):(s=a.width/2,l=a.height/2)),this.type=e,this.pointerType=t,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=s,this.y=l}}let ey=Symbol("linkClicked");function eb(e){return"A"===e.tagName&&e.hasAttribute("href")}function ew(e,t){let{key:n,code:r}=e,o=t.getAttribute("role");return("Enter"===n||" "===n||"Spacebar"===n||"Space"===r)&&!(t instanceof g(t).HTMLInputElement&&!eR(t,n)||t instanceof g(t).HTMLTextAreaElement||t.isContentEditable)&&!(("link"===o||!o&&eb(t))&&"Enter"!==n)}function ex(e,t){let n=e.changedTouches;for(let e=0;e<n.length;e++){let r=n[e];if(r.identifier===t)return r}return null}function eE(e,t){let n=0,r=0;return t.targetTouches&&1===t.targetTouches.length&&(n=t.targetTouches[0].clientX,r=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function eT(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function eC(e,t){let n,r,o=t.getBoundingClientRect(),i=(n=0,r=0,void 0!==e.width?n=e.width/2:void 0!==e.radiusX&&(n=e.radiusX),void 0!==e.height?r=e.height/2:void 0!==e.radiusY&&(r=e.radiusY),{top:e.clientY-r,right:e.clientX+n,bottom:e.clientY+r,left:e.clientX-n});return!(o.left>i.right)&&!(i.left>o.right)&&!(o.top>i.bottom)&&!(i.top>o.bottom)}function eP(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function eM(e,t){return e instanceof HTMLInputElement?!eR(e,t):e instanceof HTMLButtonElement?"submit"!==e.type&&"reset"!==e.type:!eb(e)}let eS=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function eR(e,t){return"checkbox"===e.type||"radio"===e.type?" "===t:eS.has(e.type)}let eA=!1,ek=0;function eL(){eA=!0,setTimeout(()=>{eA=!1},50)}function eD(e){"touch"===e.pointerType&&eL()}function ej(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",eD):document.addEventListener("touchend",eL),ek++,()=>{--ek>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",eD):document.removeEventListener("touchend",eL))}}if("undefined"!=typeof HTMLTemplateElement){let e=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}let eO=(0,i.createContext)(!1);"undefined"!=typeof DocumentFragment&&new DocumentFragment;let eV=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),eI=(0,i.createContext)({}),eN=(o=function(e,t){[e,t]=function(e,t,n){let{ref:r,...o}=function(e,t){let n=(0,i.useContext)(e);if(null===t)return null;if(n&&"object"==typeof n&&"slots"in n&&n.slots){let e=new Intl.ListFormat().format(Object.keys(n.slots).map(e=>`"${e}"`));if(!t&&!n.slots[c])throw Error(`A slot prop is required. Valid slot names are ${e}.`);let r=t||c;if(!n.slots[r])throw Error(`Invalid slot "${t}". Valid slot names are ${e}.`);return n.slots[r]}return n}(n,e.slot)||{},a=function(e){let t=(0,i.useRef)(null);return(0,i.useMemo)(()=>({get current(){return t.current},set current(value){t.current=value,"function"==typeof e?e(value):e&&(e.current=value)}}),[e])}((0,i.useMemo)(()=>(function(...e){return 1===e.length&&e[0]?e[0]:t=>{for(let n of e)"function"==typeof n?n(t):null!=n&&(n.current=t)}})(t,r),[t,r])),s=u(o,e);return"style"in o&&o.style&&"style"in e&&e.style&&("function"==typeof o.style||"function"==typeof e.style?s.style=t=>{let n="function"==typeof o.style?o.style(t):o.style,r={...t.defaultStyle,...n},i="function"==typeof e.style?e.style({...t,defaultStyle:r}):e.style;return{...r,...i}}:s.style={...o.style,...e.style}),[s,a]}(e,t,eI);let n=e,{buttonProps:r,isPressed:o}=function(e,t){let n,{elementType:r="button",isDisabled:o,onPress:s,onPressStart:l,onPressEnd:c,onPressUp:d,onPressChange:f,preventFocusOnPress:p,allowFocusWhenDisabled:h,onClick:y,href:b,target:w,rel:T,type:C="button"}=e;n="button"===r?{type:C,disabled:o}:{role:"button",tabIndex:o?void 0:0,href:"a"===r&&o?void 0:b,target:"a"===r?w:void 0,type:"input"===r?C:void 0,disabled:"input"===r?o:void 0,"aria-disabled":o&&"input"!==r?o:void 0,rel:"a"===r?T:void 0};let{pressProps:P,isPressed:M}=function(e){let t,n,r,o,{onPress:s,onPressChange:l,onPressStart:c,onPressEnd:d,onPressUp:f,isDisabled:p,isPressed:h,preventFocusOnPress:v,shouldCancelOnPointerExit:y,allowTextSelectionOnPress:b,ref:w,...x}=function(e){let t=(0,i.useContext)(ed);if(t){let{register:n,...r}=t;e=u(r,e),n()}return Q(t,e.ref),e}(e),[T,C]=(0,i.useState)(!1),P=(0,i.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:M,removeAllGlobalListeners:R}=(t=(0,i.useRef)(new Map),n=(0,i.useCallback)((e,n,r,o)=>{let i=(null==o?void 0:o.once)?(...e)=>{t.current.delete(r),r(...e)}:r;t.current.set(r,{type:n,eventTarget:e,fn:i,options:o}),e.addEventListener(n,r,o)},[]),r=(0,i.useCallback)((e,n,r,o)=>{var i;let a=(null===(i=t.current.get(r))||void 0===i?void 0:i.fn)||r;e.removeEventListener(n,a,o),t.current.delete(r)},[]),o=(0,i.useCallback)(()=>{t.current.forEach((e,t)=>{r(e.eventTarget,e.type,t,e.options)})},[r]),(0,i.useEffect)(()=>o,[o]),{addGlobalListener:n,removeGlobalListener:r,removeAllGlobalListeners:o}),A=ee((e,t)=>{let n=P.current;if(p||n.didFirePressStart)return!1;let r=!0;
1if(n.isTriggeringEvent=!0,c){let n=new eg("pressstart",t,e);c(n),r=n.shouldStopPropagation}return l&&l(!0),n.isTriggeringEvent=!1,n.didFirePressStart=!0,C(!0),r}),k=ee((e,t,n=!0)=>{let r=P.current;if(!r.didFirePressStart)return!1;r.ignoreClickAfterPress=!0,r.didFirePressStart=!1,r.isTriggeringEvent=!0;let o=!0;if(d){let n=new eg("pressend",t,e);d(n),o=n.shouldStopPropagation}if(l&&l(!1),C(!1),s&&n&&!p){let n=new eg("press",t,e);s(n),o&&(o=n.shouldStopPropagation)}return r.isTriggeringEvent=!1,o}),L=ee((e,t)=>{let n=P.current;if(p)return!1;if(f){n.isTriggeringEvent=!0;let r=new eg("pressup",t,e);return f(r),n.isTriggeringEvent=!1,r.shouldStopPropagation}return!0}),D=ee(e=>{let t=P.current;t.isPressed&&t.target&&(t.isOverTarget&&null!=t.pointerType&&k(eT(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,R(),b||ec(t.target))}),O=ee(e=>{y&&D(e)}),I=(0,i.useMemo)(()=>{let e=P.current,t={onKeyDown(t){if(ew(t.nativeEvent,t.currentTarget)&&t.currentTarget.contains(t.target)){var r;eM(t.target,t.key)&&t.preventDefault();let o=!0;if(!e.isPressed&&!t.repeat){e.target=t.currentTarget,e.isPressed=!0,o=A(t,"keyboard");let r=t.currentTarget;M(m(t.currentTarget),"keyup",a(t=>{ew(t,r)&&!t.repeat&&r.contains(t.target)&&e.target&&L(eT(e.target,t),"keyboard")},n),!0)}o&&t.stopPropagation(),t.metaKey&&S()&&(null===(r=e.metaKeyEvents)||void 0===r||r.set(t.key,t.nativeEvent))}else"Meta"===t.key&&(e.metaKeyEvents=new Map)},onClick(t){if((!t||t.currentTarget.contains(t.target))&&t&&0===t.button&&!e.isTriggeringEvent&&!ev.isOpening){let n=!0;if(p&&t.preventDefault(),!e.ignoreClickAfterPress&&!e.ignoreEmulatedMouseEvents&&!e.isPressed&&("virtual"===e.pointerType||V(t.nativeEvent))){p||v||E(t.currentTarget);let e=A(t,"virtual"),r=L(t,"virtual"),o=k(t,"virtual");n=e&&r&&o}e.ignoreEmulatedMouseEvents=!1,e.ignoreClickAfterPress=!1,n&&t.stopPropagation()}}},n=t=>{var n,r,o;if(e.isPressed&&e.target&&ew(t,e.target)){eM(t.target,t.key)&&t.preventDefault();let n=t.target;k(eT(e.target,t),"keyboard",e.target.contains(n)),R(),"Enter"!==t.key&&eb(e.target)&&e.target.contains(n)&&!t[ey]&&(t[ey]=!0,ev(e.target,t,!1)),e.isPressed=!1,null===(r=e.metaKeyEvents)||void 0===r||r.delete(t.key)}else if("Meta"===t.key&&(null===(n=e.metaKeyEvents)||void 0===n?void 0:n.size)){let t=e.metaKeyEvents;for(let n of(e.metaKeyEvents=void 0,t.values()))null===(o=e.target)||void 0===o||o.dispatchEvent(new KeyboardEvent("keyup",n))}};if("undefined"!=typeof PointerEvent){t.onPointerDown=t=>{var i;if(0!==t.button||!t.currentTarget.contains(t.target))return;if(i=t.nativeEvent,!j()&&0===i.width&&0===i.height||1===i.width&&1===i.height&&0===i.pressure&&0===i.detail&&"mouse"===i.pointerType){e.pointerType="virtual";return}eP(t.currentTarget)&&t.preventDefault(),e.pointerType=t.pointerType;let a=!0;e.isPressed||(e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=t.pointerId,e.target=t.currentTarget,p||v||E(t.currentTarget),b||eu(e.target),a=A(t,e.pointerType),M(m(t.currentTarget),"pointermove",n,!1),M(m(t.currentTarget),"pointerup",r,!1),M(m(t.currentTarget),"pointercancel",o,!1)),a&&t.stopPropagation()},t.onMouseDown=e=>{e.currentTarget.contains(e.target)&&0===e.button&&(eP(e.currentTarget)&&e.preventDefault(),e.stopPropagation())},t.onPointerUp=t=>{t.currentTarget.contains(t.target)&&"virtual"!==e.pointerType&&0===t.button&&eC(t,t.currentTarget)&&L(t,e.pointerType||t.pointerType)};let n=t=>{t.pointerId===e.activePointerId&&(e.target&&eC(t,e.target)?e.isOverTarget||null==e.pointerType||(e.isOverTarget=!0,A(eT(e.target,t),e.pointerType)):e.target&&e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,k(eT(e.target,t),e.pointerType,!1),O(t)))},r=t=>{t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&e.target&&(eC(t,e.target)&&null!=e.pointerType?k(eT(e.target,t),e.pointerType):e.isOverTarget&&null!=e.pointerType&&k(eT(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,R(),b||ec(e.target))},o=e=>{D(e)};t.onDragStart=e=>{e.currentTarget.contains(e.target)&&D(e)}}else{t.onMouseDown=t=>{if(0===t.button&&t.currentTarget.contains(t.target)){if(eP(t.currentTarget)&&t.preventDefault(),e.ignoreEmulatedMouseEvents){t.stopPropagation();return}e.isPressed=!0,e.isOverTarget=!0,e.target=t.currentTarget,e.pointerType=V(t.nativeEvent)?"virtual":"mouse",p||v||E(t.currentTarget),A(t,e.pointerType)&&t.stopPropagation(),M(m(t.currentTarget),"mouseup",n,!1)}},t.onMouseEnter=t=>{if(!t.currentTarget.contains(t.target))return;let n=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&null!=e.pointerType&&(e.isOverTarget=!0,n=A(t,e.pointerType)),n&&t.stopPropagation()},t.onMouseLeave=t=>{if(!t.currentTarget.contains(t.target))return;let n=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&null!=e.pointerType&&(e.isOverTarget=!1,n=k(t,e.pointerType,!1),O(t)),n&&t.stopPropagation()},t.onMouseUp=t=>{t.currentTarget.contains(t.target)&&!e.ignoreEmulatedMouseEvents&&0===t.button&&L(t,e.pointerType||"mouse")};let n=t=>{if(0===t.button){if(e.isPressed=!1,R(),e.ignoreEmulatedMouseEvents){e.ignoreEmulatedMouseEvents=!1;return}e.target&&eC(t,e.target)&&null!=e.pointerType?k(eT(e.target,t),e.pointerType):e.target&&e.isOverTarget&&null!=e.pointerType&&k(eT(e.target,t),e.pointerType,!1),e.isOverTarget=!1}};t.onTouchStart=t=>{if(!t.currentTarget.contains(t.target))return;let n=function(e){let{targetTouches:t}=e;return t.length>0?t[0]:null}(t.nativeEvent);n&&(e.activePointerId=n.identifier,e.ignoreEmulatedMouseEvents=!0,e.isOverTarget=!0,e.isPressed=!0,e.target=t.currentTarget,e.pointerType="touch",p||v||E(t.currentTarget),b||eu(e.target),A(eE(e.target,t),e.pointerType)&&t.stopPropagation(),M(g(t.currentTarget),"scroll",r,!0))},t.onTouchMove=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed){t.stopPropagation();return}let n=ex(t.nativeEvent,e.activePointerId),r=!0;n&&eC(n,t.currentTarget)?e.isOverTarget||null==e.pointerType||(e.isOverTarget=!0,r=A(eE(e.target,t),e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,r=k(eE(e.target,t),e.pointerType,!1),O(eE(e.target,t))),r&&t.stopPropagation()},t.onTouchEnd=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed){t.stopPropagation();return}let n=ex(t.nativeEvent,e.activePointerId),r=!0;n&&eC(n,t.currentTarget)&&null!=e.pointerType?(L(eE(e.target,t),e.pointerType),r=k(eE(e.target,t),e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(r=k(eE(e.target,t),e.pointerType,!1)),r&&t.stopPropagation(),e.isPressed=!1,e.activePointerId=null,e.isOverTarget=!1,e.ignoreEmulatedMouseEvents=!0,e.target&&!b&&ec(e.target),R()},t.onTouchCancel=t=>{t.currentTarget.contains(t.target)&&(t.stopPropagation(),e.isPressed&&D(eE(e.target,t)))};let r=t=>{e.isPressed&&t.target.contains(e.target)&&D({currentTarget:e.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};t.onDragStart=e=>{e.currentTarget.contains(e.target)&&D(e)}}return t},[M,p,v,R,b,D,O,k,A,L]);return(0,i.useEffect)(()=>()=>{var e;b||ec(null!==(e=P.current.target)&&void 0!==e?e:void 0)},[b]),{isPressed:h||T,pressProps:u(x,I)}}({onPressStart:l,onPressEnd:c,onPressChange:f,onPress:s,onPressUp:d,isDisabled:o,preventFocusOnPress:p,ref:t}),{focusableProps:R}=function(e,t){let{focusProps:n}=er(e),{keyboardProps:r}={keyboardProps:e.isDisabled?{}:{onKeyDown:eo(e.onKeyDown),onKeyUp:eo(e.onKeyUp)}},o=u(n,r),a=function(e){let t=(0,i.useContext)(ei)||{};Q(t,e);let{ref:n,...r}=t;return r}(t),s=e.isDisabled?{}:a,l=(0,i.useRef)(e.autoFocus);return(0,i.useEffect)(()=>{l.current&&t.current&&function(e){let t=m(e);if("virtual"===I){let n=t.activeElement;x(()=>{t.activeElement===n&&e.isConnected&&E(e)})}else E(e)}(t.current),l.current=!1},[t]),{focusableProps:u({...o,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},s)}}(e,t);h&&(R.tabIndex=o?-1:R.tabIndex);let A=u(R,P,v(e,{labelable:!0}));return{isPressed:M,buttonProps:u(n,A,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:e=>{y&&(y(e),console.warn("onClick is deprecated, please use onPress"))}})}}(e,t),{focusProps:s,isFocused:l,isFocusVisible:d}=function(e={}){var t,n,r;let{autoFocus:o=!1,isTextInput:a,within:s}=e,l=(0,i.useRef)({isFocused:!1,isFocusVisible:o||Z()}),[u,c]=(0,i.useState)(!1),[d,f]=(0,i.useState)(()=>l.current.isFocused&&l.current.isFocusVisible),p=(0,i.useCallback)(()=>f(l.current.isFocused&&l.current.isFocusVisible),[]),h=(0,i.useCallback)(e=>{l.current.isFocused=e,c(e),p()},[p]);t=e=>{l.current.isFocusVisible=e,p()},n=[],r={isTextInput:a},X(),(0,i.useEffect)(()=>
1{let e=(e,n)=>{(function(e,t,n){var r;let o="undefined"!=typeof window?g(null==n?void 0:n.target).HTMLInputElement:HTMLInputElement,i="undefined"!=typeof window?g(null==n?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,a="undefined"!=typeof window?g(null==n?void 0:n.target).HTMLElement:HTMLElement,s="undefined"!=typeof window?g(null==n?void 0:n.target).KeyboardEvent:KeyboardEvent;return!((e=e||(null==n?void 0:n.target)instanceof o&&!q.has(null==n?void 0:null===(r=n.target)||void 0===r?void 0:r.type)||(null==n?void 0:n.target)instanceof i||(null==n?void 0:n.target)instanceof a&&(null==n?void 0:n.target.isContentEditable))&&"keyboard"===t&&n instanceof s&&!B[n.key])})(!!(null==r?void 0:r.isTextInput),e,n)&&t(Z())};return N.add(e),()=>{N.delete(e)}},n);let{focusProps:v}=er({isDisabled:s,onFocusChange:h}),{focusWithinProps:m}=function(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,a=(0,i.useRef)({isFocusWithin:!1}),s=(0,i.useCallback)(e=>{a.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(a.current.isFocusWithin=!1,n&&n(e),o&&o(!1))},[n,o,a]),l=en(s),u=(0,i.useCallback)(e=>{a.current.isFocusWithin||document.activeElement!==e.target||(r&&r(e),o&&o(!0),a.current.isFocusWithin=!0,l(e))},[r,o,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:u,onBlur:s}}}({isDisabled:!s,onFocusWithinChange:h});return{isFocused:u,isFocusVisible:d,focusProps:s?m:v}}(e),{hoverProps:f,isHovered:p}=function(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[a,s]=(0,i.useState)(!1),l=(0,i.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,i.useEffect)(ej,[]);let{hoverProps:u,triggerHoverEnd:c}=(0,i.useMemo)(()=>{let e=(e,r)=>{if(l.pointerType=r,o||"touch"===r||l.isHovered||!e.currentTarget.contains(e.target))return;l.isHovered=!0;let i=e.currentTarget;l.target=i,t&&t({type:"hoverstart",target:i,pointerType:r}),n&&n(!0),s(!0)},i=(e,t)=>{if(l.pointerType="",l.target=null,"touch"===t||!l.isHovered)return;l.isHovered=!1;let o=e.currentTarget;r&&r({type:"hoverend",target:o,pointerType:t}),n&&n(!1),s(!1)},a={};return"undefined"!=typeof PointerEvent?(a.onPointerEnter=t=>{eA&&"mouse"===t.pointerType||e(t,t.pointerType)},a.onPointerLeave=e=>{!o&&e.currentTarget.contains(e.target)&&i(e,e.pointerType)}):(a.onTouchStart=()=>{l.ignoreEmulatedMouseEvents=!0},a.onMouseEnter=t=>{l.ignoreEmulatedMouseEvents||eA||e(t,"mouse"),l.ignoreEmulatedMouseEvents=!1},a.onMouseLeave=e=>{!o&&e.currentTarget.contains(e.target)&&i(e,"mouse")}),{hoverProps:a,triggerHoverEnd:i}},[t,n,r,o,l]);return(0,i.useEffect)(()=>{o&&c({currentTarget:l.target},l.pointerType)},[o]),{hoverProps:u,isHovered:a}}(e),h=function(e){let{className:t,style:n,children:r,defaultClassName:o,defaultChildren:a,defaultStyle:s,values:l}=e;return(0,i.useMemo)(()=>{let e,i,u;return e="function"==typeof t?t({...l,defaultClassName:o}):t,i="function"==typeof n?n({...l,defaultStyle:s||{}}):n,u="function"==typeof r?r({...l,defaultChildren:a}):null==r?a:r,{className:null!=e?e:o,style:i||s?{...s,...i}:void 0,children:null!=u?u:a,"data-rac":""}},[t,n,r,o,a,s,l])}({...e,values:{isHovered:p,isPressed:o,isFocused:l,isFocusVisible:d,isDisabled:e.isDisabled||!1},defaultClassName:"react-aria-Button"});return i.createElement("button",{...v(e,{propNames:eV}),...u(r,s,f),...h,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-pressed":n.isPressed||o||void 0,"data-hovered":p||void 0,"data-focused":l||void 0,"data-focus-visible":d||void 0})},(r=(e,t)=>(0,i.useContext)(eO)?null:o(e,t)).displayName=o.displayName||o.name,(0,i.forwardRef)(r))},54154:function(e,t,n){"use strict";n.d(t,{Am:function(){return a}}),n(7653),n(3458),Array(12).fill(0);var r=1,o=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...o}=e,i="number"==typeof(null==e?void 0:e.id)||(null==(t=e.id)?void 0:t.length)>0?e.id:r++,a=this.toasts.find(e=>e.id===i),s=void 0===e.dismissible||e.dismissible;return a?this.toasts=this.toasts.map(t=>
1t.id===i?(this.publish({...t,...e,id:i,title:n}),{...t,...e,id:i,dismissible:s,title:n}):t):this.addToast({title:n,...o,dismissible:s,id:i}),i},this.dismiss=e=>(e||this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{let n;if(!t)return;void 0!==t.loading&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:"function"!=typeof t.description?t.description:void 0}));let r=e instanceof Promise?e:e(),o=void 0!==n;return r.then(async e=>{if(i(e)&&!e.ok){o=!1;let r="function"==typeof t.error?await t.error("HTTP error! status: ".concat(e.status)):t.error,i="function"==typeof t.description?await t.description("HTTP error! status: ".concat(e.status)):t.description;this.create({id:n,type:"error",message:r,description:i})}else if(void 0!==t.success){o=!1;let r="function"==typeof t.success?await t.success(e):t.success,i="function"==typeof t.description?await t.description(e):t.description;this.create({id:n,type:"success",message:r,description:i})}}).catch(async e=>{if(void 0!==t.error){o=!1;let r="function"==typeof t.error?await t.error(e):t.error,i="function"==typeof t.description?await t.description(e):t.description;this.create({id:n,type:"error",message:r,description:i})}}).finally(()=>{var e;o&&(this.dismiss(n),n=void 0),null==(e=t.finally)||e.call(t)}),n},this.custom=(e,t)=>{let n=(null==t?void 0:t.id)||r++;return this.create({jsx:e(n),id:n,...t}),n},this.subscribers=[],this.toasts=[]}},i=e=>e&&"object"==typeof e&&"ok"in e&&"boolean"==typeof e.ok&&"status"in e&&"number"==typeof e.status,a=Object.assign((e,t)=>{let n=(null==t?void 0:t.id)||r++;return o.addToast({title:e,...t,id:n}),n},{success:o.success,info:o.info,warning:o.warning,error:o.error,custom:o.custom,message:o.message,promise:o.promise,dismiss:o.dismiss,loading:o.loading},{getHistory:()=>o.toasts});!function(e){let{insertAt:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||"undefined"==typeof document)return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===t&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}(':where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999}:where([data-sonner-toaster][data-x-position="right"]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position="left"]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:max(var(--offset),env(safe-area-inset-bottom))}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
1left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--gray1);color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:0;right:0;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
1:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}\n')},49921:function(e,t,n){"use strict";var r=n(7653);"undefined"==typeof window?r.useEffect:r.useLayoutEffect}}]);
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.