@sledge-app/react-instant-search 1.0.19 → 1.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/sledge-react-instant-search.cjs +1 -1
- package/dist/sledge-react-instant-search.cjs.map +1 -1
- package/dist/sledge-react-instant-search.js +455 -309
- package/dist/sledge-react-instant-search.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/{vendor-9c93dcff.cjs → vendor-db1ee31a.cjs} +2 -2
- package/dist/vendor-db1ee31a.cjs.map +1 -0
- package/dist/{vendor-efe38901.js → vendor-eadacf73.js} +1719 -11
- package/dist/vendor-eadacf73.js.map +1 -0
- package/package.json +2 -1
- package/dist/vendor-9c93dcff.cjs.map +0 -1
- package/dist/vendor-efe38901.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("react"),t=require("react-dom");function n(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const n in e)if("default"!==n){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}return t.default=e,Object.freeze(t)}const r=n(e),o=n(t);function i(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var s,a={exports:{}},l={};var c,u={};"production"===process.env.NODE_ENV?a.exports=function(){if(s)return l;s=1;var t=e,n=Symbol.for("react.element"),r=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,r){var s,l={},c=null,u=null;for(s in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)o.call(t,s)&&!a.hasOwnProperty(s)&&(l[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps)void 0===l[s]&&(l[s]=t[s]);return{$$typeof:n,type:e,key:c,ref:u,props:l,_owner:i.current}}return l.Fragment=r,l.jsx=c,l.jsxs=c,l}():a.exports=(c||(c=1,"production"!==process.env.NODE_ENV&&function(){var t=e,n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),v=Symbol.iterator,g="@@iterator",y=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];!function(e,t,n){var r=y.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(t+="%s",n=n.concat([r]));var o=n.map((function(e){return String(e)}));o.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,o)}("error",e,n)}var w,x=!1,E=!1,S=!1,P=!1,C=!1;function T(e){return e.displayName||"Context"}function R(e){if(null==e)return null;if("number"==typeof e.tag&&b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case o:return"Fragment";case r:return"Portal";case s:return"Profiler";case i:return"StrictMode";case d:return"Suspense";case f:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case l:return T(e)+".Consumer";case a:return T(e._context)+".Provider";case c:return function(e,t,n){var r=e.displayName;if(r)return r;var o=t.displayName||t.name||"";return""!==o?n+"("+o+")":n}(e,e.render,"ForwardRef");case p:var t=e.displayName||null;return null!==t?t:R(e.type)||"Memo";case h:var n=e,u=n._payload,m=n._init;try{return R(m(u))}catch(v){return null}}return null}w=Symbol.for("react.module.reference");var A,D,O,k,L,M,_,I=Object.assign,$=0;function V(){}V.__reactDisabledLog=!0;var N,F=y.ReactCurrentDispatcher;function j(e,t,n){if(void 0===N)try{throw Error()}catch(o){var r=o.stack.trim().match(/\n( *(at )?)/);N=r&&r[1]||""}return"\n"+N+e}var B,W=!1,U="function"==typeof WeakMap?WeakMap:Map;function H(e,t){if(!e||W)return"";var n,r=B.get(e);if(void 0!==r)return r;W=!0;var o,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=F.current,F.current=null,function(){if(0===$){A=console.log,D=console.info,O=console.warn,k=console.error,L=console.group,M=console.groupCollapsed,_=console.groupEnd;var e={configurable:!0,enumerable:!0,value:V,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}$++}();try{if(t){var s=function(){throw Error()};if(Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(s,[])}catch(h){n=h}Reflect.construct(e,[],s)}else{try{s.call()}catch(h){n=h}e.call(s.prototype)}}else{try{throw Error()}catch(h){n=h}e()}}catch(m){if(m&&n&&"string"==typeof m.stack){for(var a=m.stack.split("\n"),l=n.stack.split("\n"),c=a.length-1,u=l.length-1;c>=1&&u>=0&&a[c]!==l[u];)u--;for(;c>=1&&u>=0;c--,u--)if(a[c]!==l[u]){if(1!==c||1!==u)do{if(c--,--u<0||a[c]!==l[u]){var d="\n"+a[c].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),"function"==typeof e&&B.set(e,d),d}}while(c>=1&&u>=0);break}}}finally{W=!1,F.current=o,function(){if(0==--$){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:I({},e,{value:A}),info:I({},e,{value:D}),warn:I({},e,{value:O}),error:I({},e,{value:k}),group:I({},e,{value:L}),groupCollapsed:I({},e,{value:M}),groupEnd:I({},e,{value:_})})}$<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var f=e?e.displayName||e.name:"",p=f?j(f):"";return"function"==typeof e&&B.set(e,p),p}function z(e,t,n){if(null==e)return"";if("function"==typeof e)return H(e,!(!(r=e.prototype)||!r.isReactComponent));var r;if("string"==typeof e)return j(e);switch(e){case d:return j("Suspense");case f:return j("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case c:return H(e.render,!1);case p:return z(e.type,t,n);case h:var o=e,i=o._payload,s=o._init;try{return z(s(i),t,n)}catch(a){}}return""}B=new U;var Y=Object.prototype.hasOwnProperty,X={},K=y.ReactDebugCurrentFrame;function q(e){if(e){var t=e._owner,n=z(e.type,e._source,t?t.type:null);K.setExtraStackFrame(n)}else K.setExtraStackFrame(null)}var G=Array.isArray;function Z(e){return G(e)}function J(e){return""+e}function Q(e){if(function(e){try{return J(e),!1}catch(t){return!0}}(e))return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),J(e)}var ee,te,ne,re=y.ReactCurrentOwner,oe={key:!0,ref:!0,__self:!0,__source:!0};ne={};var ie=function(e,t,r,o,i,s,a){var l={$$typeof:n,type:e,key:t,ref:r,props:a,_owner:s,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function se(e,t,n,r,o){var i,s={},a=null,l=null;for(i in void 0!==n&&(Q(n),a=""+n),function(e){if(Y.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(t)&&(Q(t.key),a=""+t.key),function(e){if(Y.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}(t)&&(l=t.ref,function(e,t){if("string"==typeof e.ref&&re.current&&t&&re.current.stateNode!==t){var n=R(re.current.type);ne[n]||(b('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',R(re.current.type),e.ref),ne[n]=!0)}}(t,o)),t)Y.call(t,i)&&!oe.hasOwnProperty(i)&&(s[i]=t[i]);if(e&&e.defaultProps){var c=e.defaultProps;for(i in c)void 0===s[i]&&(s[i]=c[i])}if(a||l){var u="function"==typeof e?e.displayName||e.name||"Unknown":e;a&&function(e,t){var n=function(){ee||(ee=!0,b("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}(s,u),l&&function(e,t){var n=function(){te||(te=!0,b("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}(s,u)}return ie(e,a,l,o,r,re.current,s)}var ae,le=y.ReactCurrentOwner,ce=y.ReactDebugCurrentFrame;function ue(e){if(e){var t=e._owner,n=z(e.type,e._source,t?t.type:null);ce.setExtraStackFrame(n)}else ce.setExtraStackFrame(null)}function de(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}function fe(){if(le.current){var e=R(le.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}ae=!1;var pe={};function he(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=fe();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}(t);if(!pe[n]){pe[n]=!0;var r="";e&&e._owner&&e._owner!==le.current&&(r=" It was passed a child from "+R(e._owner.type)+"."),ue(e),b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,r),ue(null)}}}function me(e,t){if("object"==typeof e)if(Z(e))for(var n=0;n<e.length;n++){var r=e[n];de(r)&&he(r,t)}else if(de(e))e._store&&(e._store.validated=!0);else if(e){var o=function(e){if(null===e||"object"!=typeof e)return null;var t=v&&e[v]||e[g];return"function"==typeof t?t:null}(e);if("function"==typeof o&&o!==e.entries)for(var i,s=o.call(e);!(i=s.next()).done;)de(i.value)&&he(i.value,t)}}function ve(e){var t,n=e.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)t=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==c&&n.$$typeof!==p)return;t=n.propTypes}if(t){var r=R(n);!function(e,t,n,r,o){var i=Function.call.bind(Y);for(var s in e)if(i(e,s)){var a=void 0;try{if("function"!=typeof e[s]){var l=Error((r||"React class")+": "+n+" type `"+s+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[s]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}a=e[s](t,s,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(c){a=c}!a||a instanceof Error||(q(o),b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",n,s,typeof a),q(null)),a instanceof Error&&!(a.message in X)&&(X[a.message]=!0,q(o),b("Failed %s type: %s",n,a.message),q(null))}}(t,e.props,"prop",r,e)}else void 0===n.PropTypes||ae||(ae=!0,b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",R(n)||"Unknown"));"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ge(e,t,r,u,v,g){var y=function(e){return"string"==typeof e||"function"==typeof e||!!(e===o||e===s||C||e===i||e===d||e===f||P||e===m||x||E||S)||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===a||e.$$typeof===l||e.$$typeof===c||e.$$typeof===w||void 0!==e.getModuleId)}(e);if(!y){var T="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(T+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var A,D=function(e){return void 0!==e?"\n\nCheck your code at "+e.fileName.replace(/^.*[\\\/]/,"")+":"+e.lineNumber+".":""}(v);T+=D||fe(),null===e?A="null":Z(e)?A="array":void 0!==e&&e.$$typeof===n?(A="<"+(R(e.type)||"Unknown")+" />",T=" Did you accidentally export a JSX literal instead of a component?"):A=typeof e,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",A,T)}var O=se(e,t,r,v,g);if(null==O)return O;if(y){var k=t.children;if(void 0!==k)if(u)if(Z(k)){for(var L=0;L<k.length;L++)me(k[L],e);Object.freeze&&Object.freeze(k)}else b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else me(k,e)}return e===o?function(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var r=t[n];if("children"!==r&&"key"!==r){ue(e),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),ue(null);break}}null!==e.ref&&(ue(e),b("Invalid attribute `ref` supplied to `React.Fragment`."),ue(null))}(O):ve(O),O}var ye=function(e,t,n){return ge(e,t,n,!1)},be=function(e,t,n){return ge(e,t,n,!0)};u.Fragment=o,u.jsx=ye,u.jsxs=be}()),u);var d=a.exports,f={},p=t;if("production"===process.env.NODE_ENV)f.createRoot=p.createRoot,f.hydrateRoot=p.hydrateRoot;else{var h=p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;f.createRoot=function(e,t){h.usingClientEntryPoint=!0;try{return p.createRoot(e,t)}finally{h.usingClientEntryPoint=!1}},f.hydrateRoot=function(e,t,n){h.usingClientEntryPoint=!0;try{return p.hydrateRoot(e,t,n)}finally{h.usingClientEntryPoint=!1}}}function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m.apply(this,arguments)}function v(t,n=[]){let r=[];const o=()=>{const n=r.map((t=>e.createContext(t)));return function(r){const o=(null==r?void 0:r[t])||n;return e.useMemo((()=>({[`__scope${t}`]:{...r,[t]:o}})),[r,o])}};return o.scopeName=t,[function(n,o){const i=e.createContext(o),s=r.length;function a(n){const{scope:r,children:o,...a}=n,l=(null==r?void 0:r[t][s])||i,c=e.useMemo((()=>a),Object.values(a));return e.createElement(l.Provider,{value:c},o)}return r=[...r,o],a.displayName=n+"Provider",[a,function(r,a){const l=(null==a?void 0:a[t][s])||i,c=e.useContext(l);if(c)return c;if(void 0!==o)return o;throw new Error(`\`${r}\` must be used within \`${n}\``)}]},g(o,...n)]}function g(...t){const n=t[0];if(1===t.length)return n;const r=()=>{const r=t.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(t){const o=r.reduce(((e,{useScope:n,scopeName:r})=>({...e,...n(t)[`__scope${r}`]})),{});return e.useMemo((()=>({[`__scope${n.scopeName}`]:o})),[o])}};return r.scopeName=n.scopeName,r}function y(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function b(...t){return e.useCallback(y(...t),t)}function w(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}const x=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?e.useLayoutEffect:()=>{},E=r["useId".toString()]||(()=>{});let S=0;function P(e){const[t,n]=r.useState(E());return x((()=>{e||n((e=>null!=e?e:String(S++)))}),[e]),e||(t?`radix-${t}`:"")}function C(t){const n=e.useRef(t);return e.useEffect((()=>{n.current=t})),e.useMemo((()=>(...e)=>{var t;return null===(t=n.current)||void 0===t?void 0:t.call(n,...e)}),[])}function T({prop:t,defaultProp:n,onChange:r=(()=>{})}){const[o,i]=function({defaultProp:t,onChange:n}){const r=e.useState(t),[o]=r,i=e.useRef(o),s=C(n);return e.useEffect((()=>{i.current!==o&&(s(o),i.current=o)}),[o,i,s]),r}({defaultProp:n,onChange:r}),s=void 0!==t,a=s?t:o,l=C(r);return[a,e.useCallback((e=>{if(s){const n="function"==typeof e?e(t):e;n!==t&&l(n)}else i(e)}),[s,t,i,l])]}const R=e.forwardRef(((t,n)=>{const{children:r,...o}=t,i=e.Children.toArray(r),s=i.find(O);if(s){const t=s.props.children,r=i.map((n=>n===s?e.Children.count(t)>1?e.Children.only(null):e.isValidElement(t)?t.props.children:null:n));return e.createElement(A,m({},o,{ref:n}),e.isValidElement(t)?e.cloneElement(t,void 0,r):null)}return e.createElement(A,m({},o,{ref:n}),r)}));R.displayName="Slot";const A=e.forwardRef(((t,n)=>{const{children:r,...o}=t;return e.isValidElement(r)?e.cloneElement(r,{...k(o,r.props),ref:y(n,r.ref)}):e.Children.count(r)>1?e.Children.only(null):null}));A.displayName="SlotClone";const D=({children:t})=>e.createElement(e.Fragment,null,t);function O(t){return e.isValidElement(t)&&t.type===D}function k(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const L=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((t,n)=>{const r=e.forwardRef(((t,r)=>{const{asChild:o,...i}=t,s=o?R:n;return e.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),e.createElement(s,m({},i,{ref:r}))}));return r.displayName=`Primitive.${n}`,{...t,[n]:r}}),{});const M="dismissableLayer.update",_="dismissableLayer.pointerDownOutside",I="dismissableLayer.focusOutside";let $;const V=e.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),N=e.forwardRef(((t,n)=>{var r;const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:a,onInteractOutside:l,onDismiss:c,...u}=t,d=e.useContext(V),[f,p]=e.useState(null),h=null!==(r=null==f?void 0:f.ownerDocument)&&void 0!==r?r:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,v]=e.useState({}),g=b(n,(e=>p(e))),y=Array.from(d.layers),[x]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),E=y.indexOf(x),S=f?y.indexOf(f):-1,P=d.layersWithOutsidePointerEventsDisabled.size>0,T=S>=E,R=function(t,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=C(t),o=e.useRef(!1),i=e.useRef((()=>{}));return e.useEffect((()=>{const e=e=>{if(e.target&&!o.current){let t=function(){j(_,r,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",i.current),i.current=t,n.addEventListener("click",i.current,{once:!0})):t()}o.current=!1},t=window.setTimeout((()=>{n.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",i.current)}}),[n,r]),{onPointerDownCapture:()=>o.current=!0}}((e=>{const t=e.target,n=[...d.branches].some((e=>e.contains(t)));T&&!n&&(null==s||s(e),null==l||l(e),e.defaultPrevented||null==c||c())}),h),A=function(t,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=C(t),o=e.useRef(!1);return e.useEffect((()=>{const e=e=>{if(e.target&&!o.current){j(I,r,{originalEvent:e},{discrete:!1})}};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)}),[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}((e=>{const t=e.target;[...d.branches].some((e=>e.contains(t)))||(null==a||a(e),null==l||l(e),e.defaultPrevented||null==c||c())}),h);return function(t,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=C(t);e.useEffect((()=>{const e=e=>{"Escape"===e.key&&r(e)};return n.addEventListener("keydown",e),()=>n.removeEventListener("keydown",e)}),[r,n])}((e=>{S===d.layers.size-1&&(null==i||i(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))}),h),e.useEffect((()=>{if(f)return o&&(0===d.layersWithOutsidePointerEventsDisabled.size&&($=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),F(),()=>{o&&1===d.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=$)}}),[f,h,o,d]),e.useEffect((()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),F())}),[f,d]),e.useEffect((()=>{const e=()=>v({});return document.addEventListener(M,e),()=>document.removeEventListener(M,e)}),[]),e.createElement(L.div,m({},u,{ref:g,style:{pointerEvents:P?T?"auto":"none":void 0,...t.style},onFocusCapture:w(t.onFocusCapture,A.onFocusCapture),onBlurCapture:w(t.onBlurCapture,A.onBlurCapture),onPointerDownCapture:w(t.onPointerDownCapture,R.onPointerDownCapture)}))}));function F(){const e=new CustomEvent(M);document.dispatchEvent(e)}function j(e,n,r,{discrete:o}){const i=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});n&&i.addEventListener(e,n,{once:!0}),o?function(e,n){e&&t.flushSync((()=>e.dispatchEvent(n)))}(i,s):i.dispatchEvent(s)}const B="focusScope.autoFocusOnMount",W="focusScope.autoFocusOnUnmount",U={bubbles:!1,cancelable:!0},H=e.forwardRef(((t,n)=>{const{loop:r=!1,trapped:o=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...a}=t,[l,c]=e.useState(null),u=C(i),d=C(s),f=e.useRef(null),p=b(n,(e=>c(e))),h=e.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;e.useEffect((()=>{if(o){let e=function(e){if(h.paused||!l)return;const t=e.target;l.contains(t)?f.current=t:K(f.current,{select:!0})},t=function(e){!h.paused&&l&&(l.contains(e.relatedTarget)||K(f.current,{select:!0}))};return document.addEventListener("focusin",e),document.addEventListener("focusout",t),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t)}}}),[o,l,h.paused]),e.useEffect((()=>{if(l){q.add(h);const t=document.activeElement;if(!l.contains(t)){const n=new CustomEvent(B,U);l.addEventListener(B,u),l.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(K(r,{select:t}),document.activeElement!==n)return}((e=z(l),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&K(l))}return()=>{l.removeEventListener(B,u),setTimeout((()=>{const e=new CustomEvent(W,U);l.addEventListener(W,d),l.dispatchEvent(e),e.defaultPrevented||K(null!=t?t:document.body,{select:!0}),l.removeEventListener(W,d),q.remove(h)}),0)}}var e}),[l,u,d,h]);const v=e.useCallback((e=>{if(!r&&!o)return;if(h.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){const t=e.currentTarget,[o,i]=function(e){const t=z(e),n=Y(t,e),r=Y(t.reverse(),e);return[n,r]}(t);o&&i?e.shiftKey||n!==i?e.shiftKey&&n===o&&(e.preventDefault(),r&&K(i,{select:!0})):(e.preventDefault(),r&&K(o,{select:!0})):n===t&&e.preventDefault()}}),[r,o,h.paused]);return e.createElement(L.div,m({tabIndex:-1},a,{ref:p,onKeyDown:v}))}));function z(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const 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 Y(e,t){for(const n of e)if(!X(n,{upTo:t}))return n}function X(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function K(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}const q=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=G(e,t),e.unshift(t)},remove(t){var n;e=G(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function G(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}const Z=e.forwardRef(((n,r)=>{var o;const{container:i=(null===globalThis||void 0===globalThis||null===(o=globalThis.document)||void 0===o?void 0:o.body),...s}=n;return i?t.createPortal(e.createElement(L.div,m({},s,{ref:r})),i):null}));const J=n=>{const{present:r,children:o}=n,i=function(n){const[r,o]=e.useState(),i=e.useRef({}),s=e.useRef(n),a=e.useRef("none"),l=n?"mounted":"unmounted",[c,u]=function(t,n){return e.useReducer(((e,t)=>{const r=n[e][t];return null!=r?r:e}),t)}(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return e.useEffect((()=>{const e=Q(i.current);a.current="mounted"===c?e:"none"}),[c]),x((()=>{const e=i.current,t=s.current;if(t!==n){const r=a.current,o=Q(e);if(n)u("MOUNT");else if("none"===o||"none"===(null==e?void 0:e.display))u("UNMOUNT");else{u(t&&r!==o?"ANIMATION_OUT":"UNMOUNT")}s.current=n}}),[n,u]),x((()=>{if(r){const e=e=>{const n=Q(i.current).includes(e.animationName);e.target===r&&n&&t.flushSync((()=>u("ANIMATION_END")))},n=e=>{e.target===r&&(a.current=Q(i.current))};return r.addEventListener("animationstart",n),r.addEventListener("animationcancel",e),r.addEventListener("animationend",e),()=>{r.removeEventListener("animationstart",n),r.removeEventListener("animationcancel",e),r.removeEventListener("animationend",e)}}u("ANIMATION_END")}),[r,u]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:e.useCallback((e=>{e&&(i.current=getComputedStyle(e)),o(e)}),[])}}(r),s="function"==typeof o?o({present:i.isPresent}):e.Children.only(o),a=b(i.ref,s.ref);return"function"==typeof o||i.isPresent?e.cloneElement(s,{ref:a}):null};function Q(e){return(null==e?void 0:e.animationName)||"none"}J.displayName="Presence";let ee=0;function te(){e.useEffect((()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:ne()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:ne()),ee++,()=>{1===ee&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),ee--}}),[])}function ne(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var re=function(){return re=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},re.apply(this,arguments)};function oe(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}"function"==typeof SuppressedError&&SuppressedError;var ie="right-scroll-bar-position",se="width-before-scroll-bar";function ae(t,n){return r=n||null,o=function(e){return t.forEach((function(t){return function(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}(t,e)}))},(i=e.useState((function(){return{value:r,callback:o,facade:{get current(){return i.value},set current(e){var t=i.value;t!==e&&(i.value=e,i.callback(e,t))}}}}))[0]).callback=o,i.facade;var r,o,i}function le(e){return e}var ce=function(e){var t=e.sideCar,n=oe(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return r.createElement(o,re({},n))};ce.isSideCarExport=!0;var ue=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=le);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},s=function(){return Promise.resolve().then(i)};s(),n={push:function(e){t.push(e),s()},filter:function(e){return t=t.filter(e),n}}}}}(null);return t.options=re({async:!0,ssr:!1},e),t}(),de=function(){},fe=r.forwardRef((function(e,t){var n=r.useRef(null),o=r.useState({onScrollCapture:de,onWheelCapture:de,onTouchMoveCapture:de}),i=o[0],s=o[1],a=e.forwardProps,l=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,h=e.noIsolation,m=e.inert,v=e.allowPinchZoom,g=e.as,y=void 0===g?"div":g,b=oe(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),w=p,x=ae([n,t]),E=re(re({},b),i);return r.createElement(r.Fragment,null,d&&r.createElement(w,{sideCar:ue,removeScrollBar:u,shards:f,noIsolation:h,inert:m,setCallbacks:s,allowPinchZoom:!!v,lockRef:n}),a?r.cloneElement(r.Children.only(l),re(re({},E),{ref:x})):r.createElement(y,re({},E,{className:c,ref:x}),l))}));fe.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},fe.classNames={fullWidth:se,zeroRight:ie};function pe(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var he=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=pe())&&(o=n,(r=t).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){!--e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},me=function(){var e,t=(e=he(),function(t,n){r.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&n])});return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},ve={left:0,top:0,right:0,gap:0},ge=function(e){return parseInt(e||"",10)||0},ye=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return ve;var t=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[ge(n),ge(r),ge(o)]}(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])}},be=me(),we=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,a=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(a,"px ").concat(r,";\n }\n body {\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(s,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(a,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(ie," {\n right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(se," {\n margin-right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(ie," .").concat(ie," {\n right: 0 ").concat(r,";\n }\n \n .").concat(se," .").concat(se," {\n margin-right: 0 ").concat(r,";\n }\n \n body {\n ").concat("--removed-body-scroll-bar-size",": ").concat(a,"px;\n }\n")},xe=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,i=void 0===o?"margin":o,s=r.useMemo((function(){return ye(i)}),[i]);return r.createElement(be,{styles:we(s,!t,i,n?"":"!important")})},Ee=!1;if("undefined"!=typeof window)try{var Se=Object.defineProperty({},"passive",{get:function(){return Ee=!0,!0}});window.addEventListener("test",Se,Se),window.removeEventListener("test",Se,Se)}catch(yg){Ee=!1}var Pe=!!Ee&&{passive:!1},Ce=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},Te=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),Re(e,n)){var r=Ae(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},Re=function(e,t){return"v"===e?function(e){return Ce(e,"overflowY")}(t):function(e){return Ce(e,"overflowX")}(t)},Ae=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},De=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Oe=function(e){return[e.deltaX,e.deltaY]},ke=function(e){return e&&"current"in e?e.current:e},Le=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Me=0,_e=[];const Ie=($e=function(e){var t=r.useRef([]),n=r.useRef([0,0]),o=r.useRef(),i=r.useState(Me++)[0],s=r.useState((function(){return me()}))[0],a=r.useRef(e);r.useEffect((function(){a.current=e}),[e]),r.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));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))}([e.lockRef.current],(e.shards||[]).map(ke),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(i))})),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(i))}))}}}),[e.inert,e.lockRef.current,e.shards]);var l=r.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!a.current.allowPinchZoom;var r,i=De(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-i[0],c="deltaY"in e?e.deltaY:s[1]-i[1],u=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var f=Te(d,u);if(!f)return!0;if(f?r=d:(r="v"===d?"h":"v",f=Te(d,u)),!f)return!1;if(!o.current&&"changedTouches"in e&&(l||c)&&(o.current=r),!r)return!0;var p=o.current||r;return function(e,t,n,r,o){var i=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),s=i*r,a=n.target,l=t.contains(a),c=!1,u=s>0,d=0,f=0;do{var p=Ae(e,a),h=p[0],m=p[1]-p[2]-i*h;(h||m)&&Re(e,a)&&(d+=m,f+=h),a=a.parentNode}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(u&&(o&&0===d||!o&&s>d)||!u&&(o&&0===f||!o&&-s>f))&&(c=!0),c}(p,t,e,"h"===p?l:c,!0)}),[]),c=r.useCallback((function(e){var n=e;if(_e.length&&_e[_e.length-1]===s){var r="deltaY"in n?Oe(n):De(n),o=t.current.filter((function(e){return e.name===n.type&&e.target===n.target&&(t=e.delta,o=r,t[0]===o[0]&&t[1]===o[1]);var t,o}))[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var i=(a.current.shards||[]).map(ke).filter(Boolean).filter((function(e){return e.contains(n.target)}));(i.length>0?l(n,i[0]):!a.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),u=r.useCallback((function(e,n,r,o){var i={name:e,delta:n,target:r,should:o};t.current.push(i),setTimeout((function(){t.current=t.current.filter((function(e){return e!==i}))}),1)}),[]),d=r.useCallback((function(e){n.current=De(e),o.current=void 0}),[]),f=r.useCallback((function(t){u(t.type,Oe(t),t.target,l(t,e.lockRef.current))}),[]),p=r.useCallback((function(t){u(t.type,De(t),t.target,l(t,e.lockRef.current))}),[]);r.useEffect((function(){return _e.push(s),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",c,Pe),document.addEventListener("touchmove",c,Pe),document.addEventListener("touchstart",d,Pe),function(){_e=_e.filter((function(e){return e!==s})),document.removeEventListener("wheel",c,Pe),document.removeEventListener("touchmove",c,Pe),document.removeEventListener("touchstart",d,Pe)}}),[]);var h=e.removeScrollBar,m=e.inert;return r.createElement(r.Fragment,null,m?r.createElement(s,{styles:Le(i)}):null,h?r.createElement(xe,{gapMode:"margin"}):null)},ue.useMedium($e),ce);var $e,Ve=r.forwardRef((function(e,t){return r.createElement(fe,re({},e,{ref:t,sideCar:Ie}))}));Ve.classNames=fe.classNames;const Ne=Ve;var Fe=new WeakMap,je=new WeakMap,Be={},We=0,Ue=function(e){return e&&(e.host||Ue(e.parentNode))},He=function(e,t,n,r){var o=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=Ue(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);Be[n]||(Be[n]=new WeakMap);var i=Be[n],s=[],a=new Set,l=new Set(o),c=function(e){e&&!a.has(e)&&(a.add(e),c(e.parentNode))};o.forEach(c);var u=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(a.has(e))u(e);else{var t=e.getAttribute(r),o=null!==t&&"false"!==t,l=(Fe.get(e)||0)+1,c=(i.get(e)||0)+1;Fe.set(e,l),i.set(e,c),s.push(e),1===l&&o&&je.set(e,!0),1===c&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}}))};return u(t),a.clear(),We++,function(){s.forEach((function(e){var t=Fe.get(e)-1,o=i.get(e)-1;Fe.set(e,t),i.set(e,o),t||(je.has(e)||e.removeAttribute(r),je.delete(e)),o||e.removeAttribute(n)})),--We||(Fe=new WeakMap,Fe=new WeakMap,je=new WeakMap,Be={})}},ze=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),He(r,o,n,"aria-hidden")):function(){return null}};const Ye="Dialog",[Xe,Ke]=v(Ye),[qe,Ge]=Xe(Ye),Ze="DialogPortal",[Je,Qe]=Xe(Ze,{forceMount:void 0}),et="DialogOverlay",tt=e.forwardRef(((t,n)=>{const r=Qe(et,t.__scopeDialog),{forceMount:o=r.forceMount,...i}=t,s=Ge(et,t.__scopeDialog);return s.modal?e.createElement(J,{present:o||s.open},e.createElement(nt,m({},i,{ref:n}))):null})),nt=e.forwardRef(((t,n)=>{const{__scopeDialog:r,...o}=t,i=Ge(et,r);return e.createElement(Ne,{as:R,allowPinchZoom:!0,shards:[i.contentRef]},e.createElement(L.div,m({"data-state":lt(i.open)},o,{ref:n,style:{pointerEvents:"auto",...o.style}})))})),rt="DialogContent",ot=e.forwardRef(((t,n)=>{const r=Qe(rt,t.__scopeDialog),{forceMount:o=r.forceMount,...i}=t,s=Ge(rt,t.__scopeDialog);return e.createElement(J,{present:o||s.open},s.modal?e.createElement(it,m({},i,{ref:n})):e.createElement(st,m({},i,{ref:n})))})),it=e.forwardRef(((t,n)=>{const r=Ge(rt,t.__scopeDialog),o=e.useRef(null),i=b(n,r.contentRef,o);return e.useEffect((()=>{const e=o.current;if(e)return ze(e)}),[]),e.createElement(at,m({},t,{ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:w(t.onCloseAutoFocus,(e=>{var t;e.preventDefault(),null===(t=r.triggerRef.current)||void 0===t||t.focus()})),onPointerDownOutside:w(t.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:w(t.onFocusOutside,(e=>e.preventDefault()))}))})),st=e.forwardRef(((t,n)=>{const r=Ge(rt,t.__scopeDialog),o=e.useRef(!1);return e.createElement(at,m({},t,{ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{var n,i;(null===(n=t.onCloseAutoFocus)||void 0===n||n.call(t,e),e.defaultPrevented)||(o.current||null===(i=r.triggerRef.current)||void 0===i||i.focus(),e.preventDefault());o.current=!1},onInteractOutside:e=>{var n,i;null===(n=t.onInteractOutside)||void 0===n||n.call(t,e),e.defaultPrevented||(o.current=!0);const s=e.target;(null===(i=r.triggerRef.current)||void 0===i?void 0:i.contains(s))&&e.preventDefault()}}))})),at=e.forwardRef(((t,n)=>{const{__scopeDialog:r,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:s,...a}=t,l=Ge(rt,r),c=b(n,e.useRef(null));return te(),e.createElement(e.Fragment,null,e.createElement(H,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:s},e.createElement(N,m({role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":lt(l.open)},a,{ref:c,onDismiss:()=>l.onOpenChange(!1)}))),!1)}));function lt(e){return e?"open":"closed"}const ct=t=>{const{__scopeDialog:n,children:r,open:o,defaultOpen:i,onOpenChange:s,modal:a=!0}=t,l=e.useRef(null),c=e.useRef(null),[u=!1,d]=T({prop:o,defaultProp:i,onChange:s});return e.createElement(qe,{scope:n,triggerRef:l,contentRef:c,contentId:P(),titleId:P(),descriptionId:P(),open:u,onOpenChange:d,onOpenToggle:e.useCallback((()=>d((e=>!e))),[d]),modal:a},r)},ut=t=>{const{__scopeDialog:n,forceMount:r,children:o,container:i}=t,s=Ge(Ze,n);return e.createElement(Je,{scope:n,forceMount:r},e.Children.map(o,(t=>e.createElement(J,{present:r||s.open},e.createElement(Z,{asChild:!0,container:i},t)))))},dt=tt,ft=ot;function pt(e){return e.split("-")[0]}function ht(e){return e.split("-")[1]}function mt(e){return["top","bottom"].includes(pt(e))?"x":"y"}function vt(e){return"y"===e?"height":"width"}function gt(e,t,n){let{reference:r,floating:o}=e;const i=r.x+r.width/2-o.width/2,s=r.y+r.height/2-o.height/2,a=mt(t),l=vt(a),c=r[l]/2-o[l]/2,u="x"===a;let d;switch(pt(t)){case"top":d={x:i,y:r.y-o.height};break;case"bottom":d={x:i,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:s};break;case"left":d={x:r.x-o.width,y:s};break;default:d={x:r.x,y:r.y}}switch(ht(t)){case"start":d[a]-=c*(n&&u?-1:1);break;case"end":d[a]+=c*(n&&u?-1:1)}return d}function yt(e){return"number"!=typeof e?(t=e,{top:0,right:0,bottom:0,left:0,...t}):{top:e,right:e,bottom:e,left:e};var t}function bt(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function wt(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=t,h=yt(p),m=a[f?"floating"===d?"reference":"floating":d],v=bt(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(a.floating)),boundary:c,rootBoundary:u,strategy:l})),g=bt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===d?{...s.floating,x:r,y:o}:s.reference,offsetParent:await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),strategy:l}):s[d]);return{top:v.top-g.top+h.top,bottom:g.bottom-v.bottom+h.bottom,left:v.left-g.left+h.left,right:g.right-v.right+h.right}}const xt=Math.min,Et=Math.max;function St(e,t,n){return Et(e,xt(t,n))}const Pt=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:r=0}=null!=e?e:{},{x:o,y:i,placement:s,rects:a,platform:l}=t;if(null==n)return{};const c=yt(r),u={x:o,y:i},d=mt(s),f=ht(s),p=vt(d),h=await l.getDimensions(n),m="y"===d?"top":"left",v="y"===d?"bottom":"right",g=a.reference[p]+a.reference[d]-u[d]-a.floating[p],y=u[d]-a.reference[d],b=await(null==l.getOffsetParent?void 0:l.getOffsetParent(n));let w=b?"y"===d?b.clientHeight||0:b.clientWidth||0:0;0===w&&(w=a.floating[p]);const x=g/2-y/2,E=c[m],S=w-h[p]-c[v],P=w/2-h[p]/2+x,C=St(E,P,S),T=("start"===f?c[m]:c[v])>0&&P!==C&&a.reference[p]<=a.floating[p];return{[d]:u[d]-(T?P<E?E-P:S-P:0),data:{[d]:C,centerOffset:P-C}}}}),Ct={left:"right",right:"left",bottom:"top",top:"bottom"};function Tt(e){return e.replace(/left|right|bottom|top/g,(e=>Ct[e]))}const Rt={start:"end",end:"start"};function At(e){return e.replace(/start|end/g,(e=>Rt[e]))}const Dt=["top","right","bottom","left"];Dt.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);const Ot=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:o,rects:i,initialPlacement:s,platform:a,elements:l}=t,{mainAxis:c=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f="bestFit",flipAlignment:p=!0,...h}=e,m=pt(r),v=[s,...d||(m!==s&&p?function(e){const t=Tt(e);return[At(e),t,At(t)]}(s):[Tt(s)])],g=await wt(t,h),y=[];let b=(null==(n=o.flip)?void 0:n.overflows)||[];if(c&&y.push(g[m]),u){const{main:e,cross:t}=function(e,t,n){void 0===n&&(n=!1);const r=ht(e),o=mt(e),i=vt(o);let s="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Tt(s)),{main:s,cross:Tt(s)}}(r,i,await(null==a.isRTL?void 0:a.isRTL(l.floating)));y.push(g[e],g[t])}if(b=[...b,{placement:r,overflows:y}],!y.every((e=>e<=0))){var w,x;const e=(null!=(w=null==(x=o.flip)?void 0:x.index)?w:0)+1,t=v[e];if(t)return{data:{index:e,overflows:b},reset:{placement:t}};let n="bottom";switch(f){case"bestFit":{var E;const e=null==(E=b.map((e=>[e,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:E[0].placement;e&&(n=e);break}case"initialPlacement":n=s}if(r!==n)return{reset:{placement:n}}}return{}}}};function kt(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Lt(e){return Dt.some((t=>e[t]>=0))}const Mt=function(e){let{strategy:t="referenceHidden",...n}=void 0===e?{}:e;return{name:"hide",async fn(e){const{rects:r}=e;switch(t){case"referenceHidden":{const t=kt(await wt(e,{...n,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:Lt(t)}}}case"escaped":{const t=kt(await wt(e,{...n,altBoundary:!0}),r.floating);return{data:{escapedOffsets:t,escaped:Lt(t)}}}default:return{}}}}};function _t(e){return"x"===e?"y":"x"}const It=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=e,c={x:n,y:r},u=await wt(t,l),d=mt(pt(o)),f=_t(d);let p=c[d],h=c[f];if(i){const e="y"===d?"bottom":"right";p=St(p+u["y"===d?"top":"left"],p,p-u[e])}if(s){const e="y"===f?"bottom":"right";h=St(h+u["y"===f?"top":"left"],h,h-u[e])}const m=a.fn({...t,[d]:p,[f]:h});return{...m,data:{x:m.x-n,y:m.y-r}}}}};function $t(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function Vt(e){if(null==e)return window;if(!$t(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function Nt(e){return Vt(e).getComputedStyle(e)}function Ft(e){return $t(e)?"":e?(e.nodeName||"").toLowerCase():""}function jt(){const e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function Bt(e){return e instanceof Vt(e).HTMLElement}function Wt(e){return e instanceof Vt(e).Element}function Ut(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Vt(e).ShadowRoot||e instanceof ShadowRoot)}function Ht(e){const{overflow:t,overflowX:n,overflowY:r}=Nt(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function zt(e){return["table","td","th"].includes(Ft(e))}function Yt(e){const t=/firefox/i.test(jt()),n=Nt(e);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter}function Xt(){return!/^((?!chrome|android).)*safari/i.test(jt())}const Kt=Math.min,qt=Math.max,Gt=Math.round;function Zt(e,t,n){var r,o,i,s;void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect();let l=1,c=1;t&&Bt(e)&&(l=e.offsetWidth>0&&Gt(a.width)/e.offsetWidth||1,c=e.offsetHeight>0&&Gt(a.height)/e.offsetHeight||1);const u=Wt(e)?Vt(e):window,d=!Xt()&&n,f=(a.left+(d&&null!=(r=null==(o=u.visualViewport)?void 0:o.offsetLeft)?r:0))/l,p=(a.top+(d&&null!=(i=null==(s=u.visualViewport)?void 0:s.offsetTop)?i:0))/c,h=a.width/l,m=a.height/c;return{width:h,height:m,top:p,right:f+h,bottom:p+m,left:f,x:f,y:p}}function Jt(e){return(t=e,(t instanceof Vt(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function Qt(e){return Wt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function en(e){return Zt(Jt(e)).left+Qt(e).scrollLeft}function tn(e,t,n){const r=Bt(t),o=Jt(t),i=Zt(e,r&&function(e){const t=Zt(e);return Gt(t.width)!==e.offsetWidth||Gt(t.height)!==e.offsetHeight}(t),"fixed"===n);let s={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(r||!r&&"fixed"!==n)if(("body"!==Ft(t)||Ht(o))&&(s=Qt(t)),Bt(t)){const e=Zt(t,!0);a.x=e.x+t.clientLeft,a.y=e.y+t.clientTop}else o&&(a.x=en(o));return{x:i.left+s.scrollLeft-a.x,y:i.top+s.scrollTop-a.y,width:i.width,height:i.height}}function nn(e){return"html"===Ft(e)?e:e.assignedSlot||e.parentNode||(Ut(e)?e.host:null)||Jt(e)}function rn(e){return Bt(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function on(e){const t=Vt(e);let n=rn(e);for(;n&&zt(n)&&"static"===getComputedStyle(n).position;)n=rn(n);return n&&("html"===Ft(n)||"body"===Ft(n)&&"static"===getComputedStyle(n).position&&!Yt(n))?t:n||function(e){let t=nn(e);for(Ut(t)&&(t=t.host);Bt(t)&&!["html","body"].includes(Ft(t));){if(Yt(t))return t;t=t.parentNode}return null}(e)||t}function sn(e){if(Bt(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=Zt(e);return{width:t.width,height:t.height}}function an(e){const t=nn(e);return["html","body","#document"].includes(Ft(t))?e.ownerDocument.body:Bt(t)&&Ht(t)?t:an(t)}function ln(e,t){var n;void 0===t&&(t=[]);const r=an(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Vt(r),s=o?[i].concat(i.visualViewport||[],Ht(r)?r:[]):r,a=t.concat(s);return o?a:a.concat(ln(s))}function cn(e,t,n){return"viewport"===t?bt(function(e,t){const n=Vt(e),r=Jt(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const e=Xt();(e||!e&&"fixed"===t)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a,y:l}}(e,n)):Wt(t)?function(e,t){const n=Zt(e,!1,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft;return{top:r,left:o,x:o,y:r,right:o+e.clientWidth,bottom:r+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,n):bt(function(e){var t;const n=Jt(e),r=Qt(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=qt(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=qt(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0);let a=-r.scrollLeft+en(e);const l=-r.scrollTop;return"rtl"===Nt(o||n).direction&&(a+=qt(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}(Jt(e)))}function un(e){const t=ln(e),n=["absolute","fixed"].includes(Nt(e).position)&&Bt(e)?on(e):e;return Wt(n)?t.filter((e=>Wt(e)&&function(e,t){const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Ut(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==Ft(e))):[]}const dn={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?un(t):[].concat(n),r],s=i[0],a=i.reduce(((e,n)=>{const r=cn(t,n,o);return e.top=qt(r.top,e.top),e.right=Kt(r.right,e.right),e.bottom=Kt(r.bottom,e.bottom),e.left=qt(r.left,e.left),e}),cn(t,s,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=Bt(n),i=Jt(n);if(n===i)return t;let s={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if((o||!o&&"fixed"!==r)&&(("body"!==Ft(n)||Ht(i))&&(s=Qt(n)),Bt(n))){const e=Zt(n,!0);a.x=e.x+n.clientLeft,a.y=e.y+n.clientTop}return{...t,x:t.x-s.scrollLeft+a.x,y:t.y-s.scrollTop+a.y}},isElement:Wt,getDimensions:sn,getOffsetParent:on,getDocumentElement:Jt,getElementRects:e=>{let{reference:t,floating:n,strategy:r}=e;return{reference:tn(t,on(n),r),floating:{...sn(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===Nt(e).direction};function fn(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=!0,animationFrame:a=!1}=r,l=o&&!a,c=i&&!a,u=l||c?[...Wt(e)?ln(e):[],...ln(t)]:[];u.forEach((e=>{l&&e.addEventListener("scroll",n,{passive:!0}),c&&e.addEventListener("resize",n)}));let d,f=null;if(s){let r=!0;f=new ResizeObserver((()=>{r||n(),r=!1})),Wt(e)&&!a&&f.observe(e),f.observe(t)}let p=a?Zt(e):null;return a&&function t(){const r=Zt(e);!p||r.x===p.x&&r.y===p.y&&r.width===p.width&&r.height===p.height||n(),p=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{l&&e.removeEventListener("scroll",n),c&&e.removeEventListener("resize",n)})),null==(e=f)||e.disconnect(),f=null,a&&cancelAnimationFrame(d)}}const pn=(e,t,n)=>(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=await(null==s.isRTL?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:u}=gt(l,r,a),d=r,f={},p=0;for(let h=0;h<i.length;h++){const{name:n,fn:m}=i[h],{x:v,y:g,data:y,reset:b}=await m({x:c,y:u,initialPlacement:r,placement:d,strategy:o,middlewareData:f,rects:l,platform:s,elements:{reference:e,floating:t}});c=null!=v?v:c,u=null!=g?g:u,f={...f,[n]:{...f[n],...y}},b&&p<=50&&(p++,"object"==typeof b&&(b.placement&&(d=b.placement),b.rects&&(l=!0===b.rects?await s.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:c,y:u}=gt(l,d,a))),h=-1)}return{x:c,y:u,placement:d,strategy:o,middlewareData:f}})(e,t,{platform:dn,...n});var hn="undefined"!=typeof document?e.useLayoutEffect:e.useEffect;function mn(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;0!=r--;)if(!mn(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!mn(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function vn(e){let{middleware:t,placement:n="bottom",strategy:i="absolute",whileElementsMounted:s}=void 0===e?{}:e;const a=r.useRef(null),l=r.useRef(null),c=function(e){const t=r.useRef(e);return hn((()=>{t.current=e})),t}(s),u=r.useRef(null),[d,f]=r.useState({x:null,y:null,strategy:i,placement:n,middlewareData:{}}),[p,h]=r.useState(t);mn(null==p?void 0:p.map((e=>{let{options:t}=e;return t})),null==t?void 0:t.map((e=>{let{options:t}=e;return t})))||h(t);const m=r.useCallback((()=>{a.current&&l.current&&pn(a.current,l.current,{middleware:p,placement:n,strategy:i}).then((e=>{v.current&&o.flushSync((()=>{f(e)}))}))}),[p,n,i]);hn((()=>{v.current&&m()}),[m]);const v=r.useRef(!1);hn((()=>(v.current=!0,()=>{v.current=!1})),[]);const g=r.useCallback((()=>{if("function"==typeof u.current&&(u.current(),u.current=null),a.current&&l.current)if(c.current){const e=c.current(a.current,l.current,m);u.current=e}else m()}),[m,c]),y=r.useCallback((e=>{a.current=e,g()}),[g]),b=r.useCallback((e=>{l.current=e,g()}),[g]),w=r.useMemo((()=>({reference:a,floating:l})),[]);return r.useMemo((()=>({...d,update:m,refs:w,reference:y,floating:b})),[d,m,w,y,b])}const gn=e=>{const{element:t,padding:n}=e;return{name:"arrow",options:e,fn(e){return r=t,Object.prototype.hasOwnProperty.call(r,"current")?null!=t.current?Pt({element:t.current,padding:n}).fn(e):{}:t?Pt({element:t,padding:n}).fn(e):{};var r}}},yn=e.forwardRef(((t,n)=>{const{children:r,width:o=10,height:i=5,...s}=t;return e.createElement(L.svg,m({},s,{ref:n,width:o,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),t.asChild?r:e.createElement("polygon",{points:"0,0 30,0 15,10"}))}));function bn(t){const[n,r]=e.useState(void 0);return x((()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const e=new ResizeObserver((e=>{if(!Array.isArray(e))return;if(!e.length)return;const n=e[0];let o,i;if("borderBoxSize"in n){const e=n.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=t.offsetWidth,i=t.offsetHeight;r({width:o,height:i})}));return e.observe(t,{box:"border-box"}),()=>e.unobserve(t)}r(void 0)}),[t]),n}const wn="Popper",[xn,En]=v(wn),[Sn,Pn]=xn(wn),Cn=e.forwardRef(((t,n)=>{const{__scopePopper:r,virtualRef:o,...i}=t,s=Pn("PopperAnchor",r),a=e.useRef(null),l=b(n,a);return e.useEffect((()=>{s.onAnchorChange((null==o?void 0:o.current)||a.current)})),o?null:e.createElement(L.div,m({},i,{ref:l}))})),Tn="PopperContent",[Rn,An]=xn(Tn),[Dn,On]=xn(Tn,{hasParent:!1,positionUpdateFns:new Set}),kn=e.forwardRef(((t,n)=>{var r,o,i,s,a,l,c,u;const{__scopePopper:d,side:f="bottom",sideOffset:p=0,align:h="center",alignOffset:m=0,arrowPadding:v=0,collisionBoundary:g=[],collisionPadding:y=0,sticky:w="partial",hideWhenDetached:E=!1,avoidCollisions:S=!0,onPlaced:P,...T}=t,R=Pn(Tn,d),[A,D]=e.useState(null),O=b(n,(e=>D(e))),[k,M]=e.useState(null),_=bn(k),I=null!==(r=null==_?void 0:_.width)&&void 0!==r?r:0,$=null!==(o=null==_?void 0:_.height)&&void 0!==o?o:0,V=f+("center"!==h?"-"+h:""),N="number"==typeof y?y:{top:0,right:0,bottom:0,left:0,...y},F=Array.isArray(g)?g:[g],j=F.length>0,B={padding:N,boundary:F.filter(_n),altBoundary:j},{reference:W,floating:U,strategy:H,x:z,y:Y,placement:X,middlewareData:K,update:q}=vn({strategy:"fixed",placement:V,whileElementsMounted:fn,middleware:[In(),(J={mainAxis:p+$,alignmentAxis:m},void 0===J&&(J=0),{name:"offset",options:J,async fn(e){const{x:t,y:n}=e,r=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),s=pt(n),a=ht(n),l="x"===mt(n),c=["left","top"].includes(s)?-1:1,u=i&&l?-1:1,d="function"==typeof t?t(e):t;let{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&"number"==typeof h&&(p="end"===a?-1*h:h),l?{x:p*u,y:f*c}:{x:f*c,y:p*u}}(e,J);return{x:t+r.x,y:n+r.y,data:r}}}),S?It({mainAxis:!0,crossAxis:!1,limiter:"partial"===w?(void 0===Z&&(Z={}),{options:Z,fn(e){const{x:t,y:n,placement:r,rects:o,middlewareData:i}=e,{offset:s=0,mainAxis:a=!0,crossAxis:l=!0}=Z,c={x:t,y:n},u=mt(r),d=_t(u);let f=c[u],p=c[d];const h="function"==typeof s?s({...o,placement:r}):s,m="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(a){const e="y"===u?"height":"width",t=o.reference[u]-o.floating[e]+m.mainAxis,n=o.reference[u]+o.reference[e]-m.mainAxis;f<t?f=t:f>n&&(f=n)}if(l){var v,g,y,b;const e="y"===u?"width":"height",t=["top","left"].includes(pt(r)),n=o.reference[d]-o.floating[e]+(t&&null!=(v=null==(g=i.offset)?void 0:g[d])?v:0)+(t?0:m.crossAxis),s=o.reference[d]+o.reference[e]+(t?0:null!=(y=null==(b=i.offset)?void 0:b[d])?y:0)-(t?m.crossAxis:0);p<n?p=n:p>s&&(p=s)}return{[u]:f,[d]:p}}}):void 0,...B}):void 0,k?gn({element:k,padding:v}):void 0,S?Ot({...B}):void 0,(G={...B,apply:({elements:e,availableWidth:t,availableHeight:n})=>{e.floating.style.setProperty("--radix-popper-available-width",`${t}px`),e.floating.style.setProperty("--radix-popper-available-height",`${n}px`)}},void 0===G&&(G={}),{name:"size",options:G,async fn(e){const{placement:t,rects:n,platform:r,elements:o}=e,{apply:i,...s}=G,a=await wt(e,s),l=pt(t),c=ht(t);let u,d;"top"===l||"bottom"===l?(u=l,d=c===(await(null==r.isRTL?void 0:r.isRTL(o.floating))?"start":"end")?"left":"right"):(d=l,u="end"===c?"top":"bottom");const f=Et(a.left,0),p=Et(a.right,0),h=Et(a.top,0),m=Et(a.bottom,0),v={availableHeight:n.floating.height-(["left","right"].includes(t)?2*(0!==h||0!==m?h+m:Et(a.top,a.bottom)):a[u]),availableWidth:n.floating.width-(["top","bottom"].includes(t)?2*(0!==f||0!==p?f+p:Et(a.left,a.right)):a[d])},g=await r.getDimensions(o.floating);null==i||i({...e,...v});const y=await r.getDimensions(o.floating);return g.width!==y.width||g.height!==y.height?{reset:{rects:!0}}:{}}}),$n({arrowWidth:I,arrowHeight:$}),E?Mt({strategy:"referenceHidden"}):void 0].filter(Mn)});var G,Z,J;x((()=>{W(R.anchor)}),[W,R.anchor]);const Q=null!==z&&null!==Y,[ee,te]=Vn(X),ne=C(P);x((()=>{Q&&(null==ne||ne())}),[Q,ne]);const re=null===(i=K.arrow)||void 0===i?void 0:i.x,oe=null===(s=K.arrow)||void 0===s?void 0:s.y,ie=0!==(null===(a=K.arrow)||void 0===a?void 0:a.centerOffset),[se,ae]=e.useState();x((()=>{A&&ae(window.getComputedStyle(A).zIndex)}),[A]);const{hasParent:le,positionUpdateFns:ce}=On(Tn,d),ue=!le;e.useLayoutEffect((()=>{if(!ue)return ce.add(q),()=>{ce.delete(q)}}),[ue,ce,q]),x((()=>{ue&&Q&&Array.from(ce).reverse().forEach((e=>requestAnimationFrame(e)))}),[ue,Q,ce]);const de={"data-side":ee,"data-align":te,...T,ref:O,style:{...T.style,animation:Q?void 0:"none",opacity:null!==(l=K.hide)&&void 0!==l&&l.referenceHidden?0:void 0}};return e.createElement("div",{ref:U,"data-radix-popper-content-wrapper":"",style:{position:H,left:0,top:0,transform:Q?`translate3d(${Math.round(z)}px, ${Math.round(Y)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:se,"--radix-popper-transform-origin":[null===(c=K.transformOrigin)||void 0===c?void 0:c.x,null===(u=K.transformOrigin)||void 0===u?void 0:u.y].join(" ")},dir:t.dir},e.createElement(Rn,{scope:d,placedSide:ee,onArrowChange:M,arrowX:re,arrowY:oe,shouldHideArrow:ie},ue?e.createElement(Dn,{scope:d,hasParent:!0,positionUpdateFns:ce},e.createElement(L.div,de)):e.createElement(L.div,de)))})),Ln={top:"bottom",right:"left",bottom:"top",left:"right"};function Mn(e){return void 0!==e}function _n(e){return null!==e}const In=()=>({name:"anchorCssProperties",fn(e){const{rects:t,elements:n}=e,{width:r,height:o}=t.reference;return n.floating.style.setProperty("--radix-popper-anchor-width",`${r}px`),n.floating.style.setProperty("--radix-popper-anchor-height",`${o}px`),{}}}),$n=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,s;const{placement:a,rects:l,middlewareData:c}=t,u=0!==(null===(n=c.arrow)||void 0===n?void 0:n.centerOffset),d=u?0:e.arrowWidth,f=u?0:e.arrowHeight,[p,h]=Vn(a),m={start:"0%",center:"50%",end:"100%"}[h],v=(null!==(r=null===(o=c.arrow)||void 0===o?void 0:o.x)&&void 0!==r?r:0)+d/2,g=(null!==(i=null===(s=c.arrow)||void 0===s?void 0:s.y)&&void 0!==i?i:0)+f/2;let y="",b="";return"bottom"===p?(y=u?m:`${v}px`,b=-f+"px"):"top"===p?(y=u?m:`${v}px`,b=`${l.floating.height+f}px`):"right"===p?(y=-f+"px",b=u?m:`${g}px`):"left"===p&&(y=`${l.floating.width+f}px`,b=u?m:`${g}px`),{data:{x:y,y:b}}}});function Vn(e){const[t,n="center"]=e.split("-");return[t,n]}const Nn=t=>{const{__scopePopper:n,children:r}=t,[o,i]=e.useState(null);return e.createElement(Sn,{scope:n,anchor:o,onAnchorChange:i},r)},Fn=Cn,jn=kn,Bn=e.forwardRef((function(t,n){const{__scopePopper:r,...o}=t,i=An("PopperArrow",r),s=Ln[i.placedSide];return e.createElement("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0}},e.createElement(yn,m({},o,{ref:n,style:{...o.style,display:"block"}})))})),Wn="Popover",[Un,Hn]=v(Wn,[En]),zn=En(),[Yn,Xn]=Un(Wn),Kn=e.forwardRef(((t,n)=>{const{__scopePopover:r,...o}=t,i=Xn("PopoverTrigger",r),s=zn(r),a=b(n,i.triggerRef),l=e.createElement(L.button,m({type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":rr(i.open)},o,{ref:a,onClick:w(t.onClick,i.onOpenToggle)}));return i.hasCustomAnchor?l:e.createElement(Fn,m({asChild:!0},s),l)})),qn="PopoverPortal",[Gn,Zn]=Un(qn,{forceMount:void 0}),Jn="PopoverContent",Qn=e.forwardRef(((t,n)=>{const r=Zn(Jn,t.__scopePopover),{forceMount:o=r.forceMount,...i}=t,s=Xn(Jn,t.__scopePopover);return e.createElement(J,{present:o||s.open},s.modal?e.createElement(er,m({},i,{ref:n})):e.createElement(tr,m({},i,{ref:n})))})),er=e.forwardRef(((t,n)=>{const r=Xn(Jn,t.__scopePopover),o=e.useRef(null),i=b(n,o),s=e.useRef(!1);return e.useEffect((()=>{const e=o.current;if(e)return ze(e)}),[]),e.createElement(Ne,{as:R,allowPinchZoom:!0},e.createElement(nr,m({},t,{ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:w(t.onCloseAutoFocus,(e=>{var t;e.preventDefault(),s.current||null===(t=r.triggerRef.current)||void 0===t||t.focus()})),onPointerDownOutside:w(t.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;s.current=r}),{checkForDefaultPrevented:!1}),onFocusOutside:w(t.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1})})))})),tr=e.forwardRef(((t,n)=>{const r=Xn(Jn,t.__scopePopover),o=e.useRef(!1);return e.createElement(nr,m({},t,{ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{var n,i;(null===(n=t.onCloseAutoFocus)||void 0===n||n.call(t,e),e.defaultPrevented)||(o.current||null===(i=r.triggerRef.current)||void 0===i||i.focus(),e.preventDefault());o.current=!1},onInteractOutside:e=>{var n,i;null===(n=t.onInteractOutside)||void 0===n||n.call(t,e),e.defaultPrevented||(o.current=!0);const s=e.target;(null===(i=r.triggerRef.current)||void 0===i?void 0:i.contains(s))&&e.preventDefault()}}))})),nr=e.forwardRef(((t,n)=>{const{__scopePopover:r,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:u,onInteractOutside:d,...f}=t,p=Xn(Jn,r),h=zn(r);return te(),e.createElement(H,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:s},e.createElement(N,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:d,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:u,onDismiss:()=>p.onOpenChange(!1)},e.createElement(jn,m({"data-state":rr(p.open),role:"dialog",id:p.contentId},h,f,{ref:n,style:{...f.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}}))))}));function rr(e){return e?"open":"closed"}const or=t=>{const{__scopePopover:n,children:r,open:o,defaultOpen:i,onOpenChange:s,modal:a=!1}=t,l=zn(n),c=e.useRef(null),[u,d]=e.useState(!1),[f=!1,p]=T({prop:o,defaultProp:i,onChange:s});return e.createElement(Nn,l,e.createElement(Yn,{scope:n,contentId:P(),triggerRef:c,open:f,onOpenChange:p,onOpenToggle:e.useCallback((()=>p((e=>!e))),[p]),hasCustomAnchor:u,onCustomAnchorAdd:e.useCallback((()=>d(!0)),[]),onCustomAnchorRemove:e.useCallback((()=>d(!1)),[]),modal:a},r))},ir=Kn,sr=t=>{const{__scopePopover:n,forceMount:r,children:o,container:i}=t,s=Xn(qn,n);return e.createElement(Gn,{scope:n,forceMount:r},e.createElement(J,{present:r||s.open},e.createElement(Z,{asChild:!0,container:i},o)))},ar=Qn,lr=e.forwardRef(((t,n)=>{const{__scopePopover:r,...o}=t,i=Xn("PopoverClose",r);return e.createElement(L.button,m({type:"button"},o,{ref:n,onClick:w(t.onClick,(()=>i.onOpenChange(!1)))}))})),cr=e.forwardRef(((t,n)=>{const{__scopePopover:r,...o}=t,i=zn(r);return e.createElement(Bn,m({},i,o,{ref:n}))})),ur="Progress",dr=100,[fr,pr]=v(ur),[hr,mr]=fr(ur),vr=e.forwardRef(((t,n)=>{const{__scopeProgress:r,value:o,max:i,getValueLabel:s=gr,...a}=t,l=wr(i)?i:dr,c=xr(o,l)?o:null,u=br(c)?s(c,l):void 0;return e.createElement(hr,{scope:r,value:c,max:l},e.createElement(L.div,m({"aria-valuemax":l,"aria-valuemin":0,"aria-valuenow":br(c)?c:void 0,"aria-valuetext":u,role:"progressbar","data-state":yr(c,l),"data-value":null!=c?c:void 0,"data-max":l},a,{ref:n})))}));vr.propTypes={max(e,t,n){const r=e[t],o=String(r);return r&&!wr(r)?new Error(function(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`100\`.`}(o,n)):null},value(e,t,n){const r=e[t],o=String(r),i=wr(e.max)?e.max:dr;return null==r||xr(r,i)?null:new Error(function(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:\n - a positive number\n - less than the value passed to \`max\` (or 100 if no \`max\` prop is set)\n - \`null\` if the progress is indeterminate.\n\nDefaulting to \`null\`.`}(o,n))}};function gr(e,t){return`${Math.round(e/t*100)}%`}function yr(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function br(e){return"number"==typeof e}function wr(e){return br(e)&&!isNaN(e)&&e>0}function xr(e,t){return br(e)&&!isNaN(e)&&e<=t&&e>=0}const Er=vr,Sr=e.forwardRef(((t,n)=>{var r;const{__scopeProgress:o,...i}=t,s=mr("ProgressIndicator",o);return e.createElement(L.div,m({"data-state":yr(s.value,s.max),"data-value":null!==(r=s.value)&&void 0!==r?r:void 0,"data-max":s.max},i,{ref:n}))}));function Pr(t){const n=e.useRef({value:t,previous:t});return e.useMemo((()=>(n.current.value!==t&&(n.current.previous=n.current.value,n.current.value=t),n.current.previous)),[t])}const Cr="Checkbox",[Tr,Rr]=v(Cr),[Ar,Dr]=Tr(Cr),Or=e.forwardRef(((t,n)=>{const{__scopeCheckbox:r,name:o,checked:i,defaultChecked:s,required:a,disabled:l,value:c="on",onCheckedChange:u,...d}=t,[f,p]=e.useState(null),h=b(n,(e=>p(e))),v=e.useRef(!1),g=!f||Boolean(f.closest("form")),[y=!1,x]=T({prop:i,defaultProp:s,onChange:u}),E=e.useRef(y);return e.useEffect((()=>{const e=null==f?void 0:f.form;if(e){const t=()=>x(E.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}}),[f,x]),e.createElement(Ar,{scope:r,state:y,disabled:l},e.createElement(L.button,m({type:"button",role:"checkbox","aria-checked":Lr(y)?"mixed":y,"aria-required":a,"data-state":Mr(y),"data-disabled":l?"":void 0,disabled:l,value:c},d,{ref:h,onKeyDown:w(t.onKeyDown,(e=>{"Enter"===e.key&&e.preventDefault()})),onClick:w(t.onClick,(e=>{x((e=>!!Lr(e)||!e)),g&&(v.current=e.isPropagationStopped(),v.current||e.stopPropagation())}))})),g&&e.createElement(kr,{control:f,bubbles:!v.current,name:o,value:c,checked:y,required:a,disabled:l,style:{transform:"translateX(-100%)"}}))})),kr=t=>{const{control:n,checked:r,bubbles:o=!0,...i}=t,s=e.useRef(null),a=Pr(r),l=bn(n);return e.useEffect((()=>{const e=s.current,t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,"checked").set;if(a!==r&&n){const t=new Event("click",{bubbles:o});e.indeterminate=Lr(r),n.call(e,!Lr(r)&&r),e.dispatchEvent(t)}}),[a,r,o]),e.createElement("input",m({type:"checkbox","aria-hidden":!0,defaultChecked:!Lr(r)&&r},i,{tabIndex:-1,ref:s,style:{...t.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function Lr(e){return"indeterminate"===e}function Mr(e){return Lr(e)?"indeterminate":e?"checked":"unchecked"}const _r=Or,Ir=e.forwardRef(((t,n)=>{const{__scopeCheckbox:r,forceMount:o,...i}=t,s=Dr("CheckboxIndicator",r);return e.createElement(J,{present:o||Lr(s.state)||!0===s.state},e.createElement(L.span,m({"data-state":Mr(s.state),"data-disabled":s.disabled?"":void 0},i,{ref:n,style:{pointerEvents:"none",...t.style}})))}));function $r(e,[t,n]){return Math.min(n,Math.max(t,e))}const Vr=e.createContext(void 0);function Nr(t){const n=e.useContext(Vr);return t||n||"ltr"}const Fr=["PageUp","PageDown"],jr=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Br={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},Wr="Slider",[Ur,Hr,zr]=function(t){const n=t+"CollectionProvider",[r,o]=v(n),[i,s]=r(n,{collectionRef:{current:null},itemMap:new Map}),a=t+"CollectionSlot",l=t+"CollectionItemSlot",c="data-radix-collection-item";return[{Provider:t=>{const{scope:n,children:r}=t,o=e.useRef(null),s=e.useRef(new Map).current;return e.createElement(i,{scope:n,itemMap:s,collectionRef:o},r)},Slot:e.forwardRef(((t,n)=>{const{scope:r,children:o}=t,i=b(n,s(a,r).collectionRef);return e.createElement(R,{ref:i},o)})),ItemSlot:e.forwardRef(((t,n)=>{const{scope:r,children:o,...i}=t,a=e.useRef(null),u=b(n,a),d=s(l,r);return e.useEffect((()=>(d.itemMap.set(a,{ref:a,...i}),()=>{d.itemMap.delete(a)}))),e.createElement(R,{[c]:"",ref:u},o)}))},function(n){const r=s(t+"CollectionConsumer",n);return e.useCallback((()=>{const e=r.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${c}]`));return Array.from(r.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)))}),[r.collectionRef,r.itemMap])},o]}(Wr),[Yr,Xr]=v(Wr,[zr]),[Kr,qr]=Yr(Wr),Gr=e.forwardRef(((t,n)=>{const{name:r,min:o=0,max:i=100,step:s=1,orientation:a="horizontal",disabled:l=!1,minStepsBetweenThumbs:c=0,defaultValue:u=[o],value:d,onValueChange:f=(()=>{}),onValueCommit:p=(()=>{}),inverted:h=!1,...v}=t,[g,y]=e.useState(null),x=b(n,(e=>y(e))),E=e.useRef(new Set),S=e.useRef(0),P="horizontal"===a,C=!g||Boolean(g.closest("form")),R=P?Qr:eo,[A=[],D]=T({prop:d,defaultProp:u,onChange:e=>{var t;null===(t=[...E.current][S.current])||void 0===t||t.focus(),f(e)}}),O=e.useRef(A);function k(e,t,{commit:n}={commit:!1}){const r=function(e){return(String(e).split(".")[1]||"").length}(s),a=function(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}(Math.round((e-o)/s)*s+o,r),l=$r(a,[o,i]);D(((e=[])=>{const r=function(e=[],t,n){const r=[...e];return r[n]=t,r.sort(((e,t)=>e-t))}(e,l,t);if(function(e,t){if(t>0){const n=function(e){return e.slice(0,-1).map(((t,n)=>e[n+1]-t))}(e);return Math.min(...n)>=t}return!0}(r,c*s)){S.current=r.indexOf(l);const t=String(r)!==String(e);return t&&n&&p(r),t?r:e}return e}))}return e.createElement(Kr,{scope:t.__scopeSlider,disabled:l,min:o,max:i,valueIndexToChangeRef:S,thumbs:E.current,values:A,orientation:a},e.createElement(Ur.Provider,{scope:t.__scopeSlider},e.createElement(Ur.Slot,{scope:t.__scopeSlider},e.createElement(R,m({"aria-disabled":l,"data-disabled":l?"":void 0},v,{ref:x,onPointerDown:w(v.onPointerDown,(()=>{l||(O.current=A)})),min:o,max:i,inverted:h,onSlideStart:l?void 0:function(e){const t=function(e,t){if(1===e.length)return 0;const n=e.map((e=>Math.abs(e-t))),r=Math.min(...n);return n.indexOf(r)}(A,e);k(e,t)},onSlideMove:l?void 0:function(e){k(e,S.current)},onSlideEnd:l?void 0:function(){const e=O.current[S.current];A[S.current]!==e&&p(A)},onHomeKeyDown:()=>!l&&k(o,0,{commit:!0}),onEndKeyDown:()=>!l&&k(i,A.length-1,{commit:!0}),onStepKeyDown:({event:e,direction:t})=>{if(!l){const n=Fr.includes(e.key)||e.shiftKey&&jr.includes(e.key)?10:1,r=S.current;k(A[r]+s*n*t,r,{commit:!0})}}})))),C&&A.map(((t,n)=>e.createElement(lo,{key:n,name:r?r+(A.length>1?"[]":""):void 0,value:t}))))})),[Zr,Jr]=Yr(Wr,{startEdge:"left",endEdge:"right",size:"width",direction:1}),Qr=e.forwardRef(((t,n)=>{const{min:r,max:o,dir:i,inverted:s,onSlideStart:a,onSlideMove:l,onSlideEnd:c,onStepKeyDown:u,...d}=t,[f,p]=e.useState(null),h=b(n,(e=>p(e))),v=e.useRef(),g=Nr(i),y="ltr"===g,w=y&&!s||!y&&s;function x(e){const t=v.current||f.getBoundingClientRect(),n=uo([0,t.width],w?[r,o]:[o,r]);return v.current=t,n(e-t.left)}return e.createElement(Zr,{scope:t.__scopeSlider,startEdge:w?"left":"right",endEdge:w?"right":"left",direction:w?1:-1,size:"width"},e.createElement(to,m({dir:g,"data-orientation":"horizontal"},d,{ref:h,style:{...d.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:e=>{const t=x(e.clientX);null==a||a(t)},onSlideMove:e=>{const t=x(e.clientX);null==l||l(t)},onSlideEnd:()=>{v.current=void 0,null==c||c()},onStepKeyDown:e=>{const t=Br[w?"from-left":"from-right"].includes(e.key);null==u||u({event:e,direction:t?-1:1})}})))})),eo=e.forwardRef(((t,n)=>{const{min:r,max:o,inverted:i,onSlideStart:s,onSlideMove:a,onSlideEnd:l,onStepKeyDown:c,...u}=t,d=e.useRef(null),f=b(n,d),p=e.useRef(),h=!i;function v(e){const t=p.current||d.current.getBoundingClientRect(),n=uo([0,t.height],h?[o,r]:[r,o]);return p.current=t,n(e-t.top)}return e.createElement(Zr,{scope:t.__scopeSlider,startEdge:h?"bottom":"top",endEdge:h?"top":"bottom",size:"height",direction:h?1:-1},e.createElement(to,m({"data-orientation":"vertical"},u,{ref:f,style:{...u.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:e=>{const t=v(e.clientY);null==s||s(t)},onSlideMove:e=>{const t=v(e.clientY);null==a||a(t)},onSlideEnd:()=>{p.current=void 0,null==l||l()},onStepKeyDown:e=>{const t=Br[h?"from-bottom":"from-top"].includes(e.key);null==c||c({event:e,direction:t?-1:1})}})))})),to=e.forwardRef(((t,n)=>{const{__scopeSlider:r,onSlideStart:o,onSlideMove:i,onSlideEnd:s,onHomeKeyDown:a,onEndKeyDown:l,onStepKeyDown:c,...u}=t,d=qr(Wr,r);return e.createElement(L.span,m({},u,{ref:n,onKeyDown:w(t.onKeyDown,(e=>{"Home"===e.key?(a(e),e.preventDefault()):"End"===e.key?(l(e),e.preventDefault()):Fr.concat(jr).includes(e.key)&&(c(e),e.preventDefault())})),onPointerDown:w(t.onPointerDown,(e=>{const t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),d.thumbs.has(t)?t.focus():o(e)})),onPointerMove:w(t.onPointerMove,(e=>{e.target.hasPointerCapture(e.pointerId)&&i(e)})),onPointerUp:w(t.onPointerUp,(e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),s(e))}))}))})),no=e.forwardRef(((t,n)=>{const{__scopeSlider:r,...o}=t,i=qr("SliderTrack",r);return e.createElement(L.span,m({"data-disabled":i.disabled?"":void 0,"data-orientation":i.orientation},o,{ref:n}))})),ro="SliderRange",oo=e.forwardRef(((t,n)=>{const{__scopeSlider:r,...o}=t,i=qr(ro,r),s=Jr(ro,r),a=b(n,e.useRef(null)),l=i.values.length,c=i.values.map((e=>co(e,i.min,i.max))),u=l>1?Math.min(...c):0,d=100-Math.max(...c);return e.createElement(L.span,m({"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0},o,{ref:a,style:{...t.style,[s.startEdge]:u+"%",[s.endEdge]:d+"%"}}))})),io="SliderThumb",so=e.forwardRef(((t,n)=>{const r=Hr(t.__scopeSlider),[o,i]=e.useState(null),s=b(n,(e=>i(e))),a=e.useMemo((()=>o?r().findIndex((e=>e.ref.current===o)):-1),[r,o]);return e.createElement(ao,m({},t,{ref:s,index:a}))})),ao=e.forwardRef(((t,n)=>{const{__scopeSlider:r,index:o,...i}=t,s=qr(io,r),a=Jr(io,r),[l,c]=e.useState(null),u=b(n,(e=>c(e))),d=bn(l),f=s.values[o],p=void 0===f?0:co(f,s.min,s.max),h=function(e,t){return t>2?`Value ${e+1} of ${t}`:2===t?["Minimum","Maximum"][e]:void 0}(o,s.values.length),v=null==d?void 0:d[a.size],g=v?function(e,t,n){const r=e/2,o=uo([0,50],[0,r]);return(r-o(t)*n)*n}(v,p,a.direction):0;return e.useEffect((()=>{if(l)return s.thumbs.add(l),()=>{s.thumbs.delete(l)}}),[l,s.thumbs]),e.createElement("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[a.startEdge]:`calc(${p}% + ${g}px)`}},e.createElement(Ur.ItemSlot,{scope:t.__scopeSlider},e.createElement(L.span,m({role:"slider","aria-label":t["aria-label"]||h,"aria-valuemin":s.min,"aria-valuenow":f,"aria-valuemax":s.max,"aria-orientation":s.orientation,"data-orientation":s.orientation,"data-disabled":s.disabled?"":void 0,tabIndex:s.disabled?void 0:0},i,{ref:u,style:void 0===f?{display:"none"}:t.style,onFocus:w(t.onFocus,(()=>{s.valueIndexToChangeRef.current=o}))}))))})),lo=t=>{const{value:n,...r}=t,o=e.useRef(null),i=Pr(n);return e.useEffect((()=>{const e=o.current,t=window.HTMLInputElement.prototype,r=Object.getOwnPropertyDescriptor(t,"value").set;if(i!==n&&r){const t=new Event("input",{bubbles:!0});r.call(e,n),e.dispatchEvent(t)}}),[i,n]),e.createElement("input",m({style:{display:"none"}},r,{ref:o,defaultValue:n}))};function co(e,t,n){return 100/(n-t)*(e-t)}function uo(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}const fo=Gr,po=no,ho=oo,mo=so;function vo(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function go(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function yo(...t){return e.useCallback(go(...t),t)}function bo(t,n=[]){let r=[];const o=()=>{const n=r.map((t=>e.createContext(t)));return function(r){const o=(null==r?void 0:r[t])||n;return e.useMemo((()=>({[`__scope${t}`]:{...r,[t]:o}})),[r,o])}};return o.scopeName=t,[function(n,o){const i=e.createContext(o),s=r.length;function a(n){const{scope:r,children:o,...a}=n,l=(null==r?void 0:r[t][s])||i,c=e.useMemo((()=>a),Object.values(a));return e.createElement(l.Provider,{value:c},o)}return r=[...r,o],a.displayName=n+"Provider",[a,function(r,a){const l=(null==a?void 0:a[t][s])||i,c=e.useContext(l);if(c)return c;if(void 0!==o)return o;throw new Error(`\`${r}\` must be used within \`${n}\``)}]},wo(o,...n)]}function wo(...t){const n=t[0];if(1===t.length)return n;const r=()=>{const r=t.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(t){const o=r.reduce(((e,{useScope:n,scopeName:r})=>({...e,...n(t)[`__scope${r}`]})),{});return e.useMemo((()=>({[`__scope${n.scopeName}`]:o})),[o])}};return r.scopeName=n.scopeName,r}const xo=e.forwardRef(((t,n)=>{const{children:r,...o}=t,i=e.Children.toArray(r),s=i.find(Po);if(s){const t=s.props.children,r=i.map((n=>n===s?e.Children.count(t)>1?e.Children.only(null):e.isValidElement(t)?t.props.children:null:n));return e.createElement(Eo,m({},o,{ref:n}),e.isValidElement(t)?e.cloneElement(t,void 0,r):null)}return e.createElement(Eo,m({},o,{ref:n}),r)}));xo.displayName="Slot";const Eo=e.forwardRef(((t,n)=>{const{children:r,...o}=t;return e.isValidElement(r)?e.cloneElement(r,{...Co(o,r.props),ref:n?go(n,r.ref):r.ref}):e.Children.count(r)>1?e.Children.only(null):null}));Eo.displayName="SlotClone";const So=({children:t})=>e.createElement(e.Fragment,null,t);function Po(t){return e.isValidElement(t)&&t.type===So}function Co(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const To=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((t,n)=>{const r=e.forwardRef(((t,r)=>{const{asChild:o,...i}=t,s=o?xo:n;return e.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),e.createElement(s,m({},i,{ref:r}))}));return r.displayName=`Primitive.${n}`,{...t,[n]:r}}),{});function Ro(t){const n=t+"CollectionProvider",[r,o]=bo(n),[i,s]=r(n,{collectionRef:{current:null},itemMap:new Map}),a=t+"CollectionSlot",l=t+"CollectionItemSlot",c="data-radix-collection-item";return[{Provider:t=>{const{scope:n,children:r}=t,o=e.useRef(null),s=e.useRef(new Map).current;return e.createElement(i,{scope:n,itemMap:s,collectionRef:o},r)},Slot:e.forwardRef(((t,n)=>{const{scope:r,children:o}=t,i=yo(n,s(a,r).collectionRef);return e.createElement(xo,{ref:i},o)})),ItemSlot:e.forwardRef(((t,n)=>{const{scope:r,children:o,...i}=t,a=e.useRef(null),u=yo(n,a),d=s(l,r);return e.useEffect((()=>(d.itemMap.set(a,{ref:a,...i}),()=>{d.itemMap.delete(a)}))),e.createElement(xo,{[c]:"",ref:u},o)}))},function(n){const r=s(t+"CollectionConsumer",n);return e.useCallback((()=>{const e=r.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${c}]`));return Array.from(r.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)))}),[r.collectionRef,r.itemMap])},o]}const Ao=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?e.useLayoutEffect:()=>{},Do=r["useId".toString()]||(()=>{});let Oo=0;function ko(e){const[t,n]=r.useState(Do());return Ao((()=>{e||n((e=>null!=e?e:String(Oo++)))}),[e]),e||(t?`radix-${t}`:"")}function Lo(t){const n=e.useRef(t);return e.useEffect((()=>{n.current=t})),e.useMemo((()=>(...e)=>{var t;return null===(t=n.current)||void 0===t?void 0:t.call(n,...e)}),[])}function Mo({prop:t,defaultProp:n,onChange:r=(()=>{})}){const[o,i]=function({defaultProp:t,onChange:n}){const r=e.useState(t),[o]=r,i=e.useRef(o),s=Lo(n);return e.useEffect((()=>{i.current!==o&&(s(o),i.current=o)}),[o,i,s]),r}({defaultProp:n,onChange:r}),s=void 0!==t,a=s?t:o,l=Lo(r);return[a,e.useCallback((e=>{if(s){const n="function"==typeof e?e(t):e;n!==t&&l(n)}else i(e)}),[s,t,i,l])]}const _o=e.createContext(void 0);function Io(t){const n=e.useContext(_o);return t||n||"ltr"}const $o="rovingFocusGroup.onEntryFocus",Vo={bubbles:!1,cancelable:!0},No="RovingFocusGroup",[Fo,jo,Bo]=Ro(No),[Wo,Uo]=bo(No,[Bo]),[Ho,zo]=Wo(No),Yo=e.forwardRef(((t,n)=>e.createElement(Fo.Provider,{scope:t.__scopeRovingFocusGroup},e.createElement(Fo.Slot,{scope:t.__scopeRovingFocusGroup},e.createElement(Xo,m({},t,{ref:n})))))),Xo=e.forwardRef(((t,n)=>{const{__scopeRovingFocusGroup:r,orientation:o,loop:i=!1,dir:s,currentTabStopId:a,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:c,onEntryFocus:u,...d}=t,f=e.useRef(null),p=yo(n,f),h=Io(s),[v=null,g]=Mo({prop:a,defaultProp:l,onChange:c}),[y,b]=e.useState(!1),w=Lo(u),x=jo(r),E=e.useRef(!1),[S,P]=e.useState(0);return e.useEffect((()=>{const e=f.current;if(e)return e.addEventListener($o,w),()=>e.removeEventListener($o,w)}),[w]),e.createElement(Ho,{scope:r,orientation:o,dir:h,loop:i,currentTabStopId:v,onItemFocus:e.useCallback((e=>g(e)),[g]),onItemShiftTab:e.useCallback((()=>b(!0)),[]),onFocusableItemAdd:e.useCallback((()=>P((e=>e+1))),[]),onFocusableItemRemove:e.useCallback((()=>P((e=>e-1))),[])},e.createElement(To.div,m({tabIndex:y||0===S?-1:0,"data-orientation":o},d,{ref:p,style:{outline:"none",...t.style},onMouseDown:vo(t.onMouseDown,(()=>{E.current=!0})),onFocus:vo(t.onFocus,(e=>{const t=!E.current;if(e.target===e.currentTarget&&t&&!y){const t=new CustomEvent($o,Vo);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=x().filter((e=>e.focusable));Go([e.find((e=>e.active)),e.find((e=>e.id===v)),...e].filter(Boolean).map((e=>e.ref.current)))}}E.current=!1})),onBlur:vo(t.onBlur,(()=>b(!1)))})))})),Ko=e.forwardRef(((t,n)=>{const{__scopeRovingFocusGroup:r,focusable:o=!0,active:i=!1,tabStopId:s,...a}=t,l=ko(),c=s||l,u=zo("RovingFocusGroupItem",r),d=u.currentTabStopId===c,f=jo(r),{onFocusableItemAdd:p,onFocusableItemRemove:h}=u;return e.useEffect((()=>{if(o)return p(),()=>h()}),[o,p,h]),e.createElement(Fo.ItemSlot,{scope:r,id:c,focusable:o,active:i},e.createElement(To.span,m({tabIndex:d?0:-1,"data-orientation":u.orientation},a,{ref:n,onMouseDown:vo(t.onMouseDown,(e=>{o?u.onItemFocus(c):e.preventDefault()})),onFocus:vo(t.onFocus,(()=>u.onItemFocus(c))),onKeyDown:vo(t.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void u.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:qo[r]}(e,u.orientation,u.dir);if(void 0!==t){e.preventDefault();let o=f().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)o.reverse();else if("prev"===t||"next"===t){"prev"===t&&o.reverse();const i=o.indexOf(e.currentTarget);o=u.loop?(r=i+1,(n=o).map(((e,t)=>n[(r+t)%n.length]))):o.slice(i+1)}setTimeout((()=>Go(o)))}var n,r}))})))})),qo={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Go(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}const Zo=Yo,Jo=Ko;function Qo(t){const[n,r]=e.useState(void 0);return Ao((()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const e=new ResizeObserver((e=>{if(!Array.isArray(e))return;if(!e.length)return;const n=e[0];let o,i;if("borderBoxSize"in n){const e=n.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=t.offsetWidth,i=t.offsetHeight;r({width:o,height:i})}));return e.observe(t,{box:"border-box"}),()=>e.unobserve(t)}r(void 0)}),[t]),n}function ei(t){const n=e.useRef({value:t,previous:t});return e.useMemo((()=>(n.current.value!==t&&(n.current.previous=n.current.value,n.current.value=t),n.current.previous)),[t])}const ti=n=>{const{present:r,children:o}=n,i=function(n){const[r,o]=e.useState(),i=e.useRef({}),s=e.useRef(n),a=e.useRef("none"),l=n?"mounted":"unmounted",[c,u]=function(t,n){return e.useReducer(((e,t)=>{const r=n[e][t];return null!=r?r:e}),t)}(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return e.useEffect((()=>{const e=ni(i.current);a.current="mounted"===c?e:"none"}),[c]),Ao((()=>{const e=i.current,t=s.current;if(t!==n){const r=a.current,o=ni(e);if(n)u("MOUNT");else if("none"===o||"none"===(null==e?void 0:e.display))u("UNMOUNT");else{u(t&&r!==o?"ANIMATION_OUT":"UNMOUNT")}s.current=n}}),[n,u]),Ao((()=>{if(r){const e=e=>{const n=ni(i.current).includes(e.animationName);e.target===r&&n&&t.flushSync((()=>u("ANIMATION_END")))},n=e=>{e.target===r&&(a.current=ni(i.current))};return r.addEventListener("animationstart",n),r.addEventListener("animationcancel",e),r.addEventListener("animationend",e),()=>{r.removeEventListener("animationstart",n),r.removeEventListener("animationcancel",e),r.removeEventListener("animationend",e)}}u("ANIMATION_END")}),[r,u]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:e.useCallback((e=>{e&&(i.current=getComputedStyle(e)),o(e)}),[])}}(r),s="function"==typeof o?o({present:i.isPresent}):e.Children.only(o),a=yo(i.ref,s.ref);return"function"==typeof o||i.isPresent?e.cloneElement(s,{ref:a}):null};function ni(e){return(null==e?void 0:e.animationName)||"none"}ti.displayName="Presence";const ri="Radio",[oi,ii]=bo(ri),[si,ai]=oi(ri),li=e.forwardRef(((t,n)=>{const{__scopeRadio:r,name:o,checked:i=!1,required:s,disabled:a,value:l="on",onCheck:c,...u}=t,[d,f]=e.useState(null),p=yo(n,(e=>f(e))),h=e.useRef(!1),v=!d||Boolean(d.closest("form"));return e.createElement(si,{scope:r,checked:i,disabled:a},e.createElement(To.button,m({type:"button",role:"radio","aria-checked":i,"data-state":di(i),"data-disabled":a?"":void 0,disabled:a,value:l},u,{ref:p,onClick:vo(t.onClick,(e=>{i||null==c||c(),v&&(h.current=e.isPropagationStopped(),h.current||e.stopPropagation())}))})),v&&e.createElement(ui,{control:d,bubbles:!h.current,name:o,value:l,checked:i,required:s,disabled:a,style:{transform:"translateX(-100%)"}}))})),ci=e.forwardRef(((t,n)=>{const{__scopeRadio:r,forceMount:o,...i}=t,s=ai("RadioIndicator",r);return e.createElement(ti,{present:o||s.checked},e.createElement(To.span,m({"data-state":di(s.checked),"data-disabled":s.disabled?"":void 0},i,{ref:n})))})),ui=t=>{const{control:n,checked:r,bubbles:o=!0,...i}=t,s=e.useRef(null),a=ei(r),l=Qo(n);return e.useEffect((()=>{const e=s.current,t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,"checked").set;if(a!==r&&n){const t=new Event("click",{bubbles:o});n.call(e,r),e.dispatchEvent(t)}}),[a,r,o]),e.createElement("input",m({type:"radio","aria-hidden":!0,defaultChecked:r},i,{tabIndex:-1,ref:s,style:{...t.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function di(e){return e?"checked":"unchecked"}const fi=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],pi="RadioGroup",[hi,mi]=bo(pi,[Uo,ii]),vi=Uo(),gi=ii(),[yi,bi]=hi(pi),wi=e.forwardRef(((t,n)=>{const{__scopeRadioGroup:r,name:o,defaultValue:i,value:s,required:a=!1,disabled:l=!1,orientation:c,dir:u,loop:d=!0,onValueChange:f,...p}=t,h=vi(r),v=Io(u),[g,y]=Mo({prop:s,defaultProp:i,onChange:f});return e.createElement(yi,{scope:r,name:o,required:a,disabled:l,value:g,onValueChange:y},e.createElement(Zo,m({asChild:!0},h,{orientation:c,dir:v,loop:d}),e.createElement(To.div,m({role:"radiogroup","aria-required":a,"aria-orientation":c,"data-disabled":l?"":void 0,dir:v},p,{ref:n}))))})),xi=e.forwardRef(((t,n)=>{const{__scopeRadioGroup:r,disabled:o,...i}=t,s=bi("RadioGroupItem",r),a=s.disabled||o,l=vi(r),c=gi(r),u=e.useRef(null),d=yo(n,u),f=s.value===i.value,p=e.useRef(!1);return e.useEffect((()=>{const e=e=>{fi.includes(e.key)&&(p.current=!0)},t=()=>p.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}}),[]),e.createElement(Jo,m({asChild:!0},l,{focusable:!a,active:f}),e.createElement(li,m({disabled:a,required:s.required,checked:f},c,i,{name:s.name,ref:d,onCheck:()=>s.onValueChange(i.value),onKeyDown:vo((e=>{"Enter"===e.key&&e.preventDefault()})),onFocus:vo(i.onFocus,(()=>{var e;p.current&&(null===(e=u.current)||void 0===e||e.click())}))})))})),Ei=e.forwardRef(((t,n)=>{const{__scopeRadioGroup:r,...o}=t,i=gi(r);return e.createElement(ci,m({},i,o,{ref:n}))}));function Si(e,[t,n]){return Math.min(n,Math.max(t,e))}const Pi="dismissableLayer.update",Ci="dismissableLayer.pointerDownOutside",Ti="dismissableLayer.focusOutside";let Ri;const Ai=e.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Di=e.forwardRef(((t,n)=>{var r;const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:a,onInteractOutside:l,onDismiss:c,...u}=t,d=e.useContext(Ai),[f,p]=e.useState(null),h=null!==(r=null==f?void 0:f.ownerDocument)&&void 0!==r?r:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,v]=e.useState({}),g=yo(n,(e=>p(e))),y=Array.from(d.layers),[b]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),w=y.indexOf(b),x=f?y.indexOf(f):-1,E=d.layersWithOutsidePointerEventsDisabled.size>0,S=x>=w,P=function(t,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=Lo(t),o=e.useRef(!1),i=e.useRef((()=>{}));return e.useEffect((()=>{const e=e=>{if(e.target&&!o.current){let t=function(){ki(Ci,r,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",i.current),i.current=t,n.addEventListener("click",i.current,{once:!0})):t()}o.current=!1},t=window.setTimeout((()=>{n.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",i.current)}}),[n,r]),{onPointerDownCapture:()=>o.current=!0}}((e=>{const t=e.target,n=[...d.branches].some((e=>e.contains(t)));S&&!n&&(null==s||s(e),null==l||l(e),e.defaultPrevented||null==c||c())}),h),C=function(t,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=Lo(t),o=e.useRef(!1);return e.useEffect((()=>{const e=e=>{if(e.target&&!o.current){ki(Ti,r,{originalEvent:e},{discrete:!1})}};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)}),[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}((e=>{const t=e.target;[...d.branches].some((e=>e.contains(t)))||(null==a||a(e),null==l||l(e),e.defaultPrevented||null==c||c())}),h);return function(t,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=Lo(t);e.useEffect((()=>{const e=e=>{"Escape"===e.key&&r(e)};return n.addEventListener("keydown",e),()=>n.removeEventListener("keydown",e)}),[r,n])}((e=>{x===d.layers.size-1&&(null==i||i(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))}),h),e.useEffect((()=>{if(f)return o&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(Ri=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),Oi(),()=>{o&&1===d.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=Ri)}}),[f,h,o,d]),e.useEffect((()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),Oi())}),[f,d]),e.useEffect((()=>{const e=()=>v({});return document.addEventListener(Pi,e),()=>document.removeEventListener(Pi,e)}),[]),e.createElement(To.div,m({},u,{ref:g,style:{pointerEvents:E?S?"auto":"none":void 0,...t.style},onFocusCapture:vo(t.onFocusCapture,C.onFocusCapture),onBlurCapture:vo(t.onBlurCapture,C.onBlurCapture),onPointerDownCapture:vo(t.onPointerDownCapture,P.onPointerDownCapture)}))}));function Oi(){const e=new CustomEvent(Pi);document.dispatchEvent(e)}function ki(e,n,r,{discrete:o}){const i=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});n&&i.addEventListener(e,n,{once:!0}),o?function(e,n){e&&t.flushSync((()=>e.dispatchEvent(n)))}(i,s):i.dispatchEvent(s)}let Li=0;function Mi(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const _i="focusScope.autoFocusOnMount",Ii="focusScope.autoFocusOnUnmount",$i={bubbles:!1,cancelable:!0},Vi=e.forwardRef(((t,n)=>{const{loop:r=!1,trapped:o=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...a}=t,[l,c]=e.useState(null),u=Lo(i),d=Lo(s),f=e.useRef(null),p=yo(n,(e=>c(e))),h=e.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;e.useEffect((()=>{if(o){let e=function(e){if(h.paused||!l)return;const t=e.target;l.contains(t)?f.current=t:Bi(f.current,{select:!0})},t=function(e){if(h.paused||!l)return;const t=e.relatedTarget;null!==t&&(l.contains(t)||Bi(f.current,{select:!0}))},n=function(e){const t=document.activeElement;for(const n of e)n.removedNodes.length>0&&(null!=l&&l.contains(t)||Bi(l))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return l&&r.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}}),[o,l,h.paused]),e.useEffect((()=>{if(l){Wi.add(h);const t=document.activeElement;if(!l.contains(t)){const n=new CustomEvent(_i,$i);l.addEventListener(_i,u),l.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Bi(r,{select:t}),document.activeElement!==n)return}((e=Ni(l),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&Bi(l))}return()=>{l.removeEventListener(_i,u),setTimeout((()=>{const e=new CustomEvent(Ii,$i);l.addEventListener(Ii,d),l.dispatchEvent(e),e.defaultPrevented||Bi(null!=t?t:document.body,{select:!0}),l.removeEventListener(Ii,d),Wi.remove(h)}),0)}}var e}),[l,u,d,h]);const v=e.useCallback((e=>{if(!r&&!o)return;if(h.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){const t=e.currentTarget,[o,i]=function(e){const t=Ni(e),n=Fi(t,e),r=Fi(t.reverse(),e);return[n,r]}(t);o&&i?e.shiftKey||n!==i?e.shiftKey&&n===o&&(e.preventDefault(),r&&Bi(i,{select:!0})):(e.preventDefault(),r&&Bi(o,{select:!0})):n===t&&e.preventDefault()}}),[r,o,h.paused]);return e.createElement(To.div,m({tabIndex:-1},a,{ref:p,onKeyDown:v}))}));function Ni(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const 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 Fi(e,t){for(const n of e)if(!ji(n,{upTo:t}))return n}function ji(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function Bi(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}const Wi=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=Ui(e,t),e.unshift(t)},remove(t){var n;e=Ui(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function Ui(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}function Hi(e){return e.split("-")[1]}function zi(e){return"y"===e?"height":"width"}function Yi(e){return e.split("-")[0]}function Xi(e){return["top","bottom"].includes(Yi(e))?"x":"y"}function Ki(e,t,n){let{reference:r,floating:o}=e;const i=r.x+r.width/2-o.width/2,s=r.y+r.height/2-o.height/2,a=Xi(t),l=zi(a),c=r[l]/2-o[l]/2,u="x"===a;let d;switch(Yi(t)){case"top":d={x:i,y:r.y-o.height};break;case"bottom":d={x:i,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:s};break;case"left":d={x:r.x-o.width,y:s};break;default:d={x:r.x,y:r.y}}switch(Hi(t)){case"start":d[a]-=c*(n&&u?-1:1);break;case"end":d[a]+=c*(n&&u?-1:1)}return d}function qi(e,t){return"function"==typeof e?e(t):e}function Gi(e){return"number"!=typeof e?(t=e,{top:0,right:0,bottom:0,left:0,...t}):{top:e,right:e,bottom:e,left:e};var t}function Zi(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function Ji(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=qi(t,e),h=Gi(p),m=a[f?"floating"===d?"reference":"floating":d],v=Zi(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(a.floating)),boundary:c,rootBoundary:u,strategy:l})),g="floating"===d?{...s.floating,x:r,y:o}:s.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),b=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},w=Zi(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:g,offsetParent:y,strategy:l}):g);return{top:(v.top-w.top+h.top)/b.y,bottom:(w.bottom-v.bottom+h.bottom)/b.y,left:(v.left-w.left+h.left)/b.x,right:(w.right-v.right+h.right)/b.x}}const Qi=Math.min,es=Math.max;function ts(e,t,n){return es(e,Qi(t,n))}const ns=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a}=t,{element:l,padding:c=0}=qi(e,t)||{};if(null==l)return{};const u=Gi(c),d={x:n,y:r},f=Xi(o),p=zi(f),h=await s.getDimensions(l),m="y"===f,v=m?"top":"left",g=m?"bottom":"right",y=m?"clientHeight":"clientWidth",b=i.reference[p]+i.reference[f]-d[f]-i.floating[p],w=d[f]-i.reference[f],x=await(null==s.getOffsetParent?void 0:s.getOffsetParent(l));let E=x?x[y]:0;E&&await(null==s.isElement?void 0:s.isElement(x))||(E=a.floating[y]||i.floating[p]);const S=b/2-w/2,P=E/2-h[p]/2-1,C=Qi(u[v],P),T=Qi(u[g],P),R=C,A=E-h[p]-T,D=E/2-h[p]/2+S,O=ts(R,D,A),k=null!=Hi(o)&&D!=O&&i.reference[p]/2-(D<R?C:T)-h[p]/2<0?D<R?R-D:A-D:0;return{[f]:d[f]-k,data:{[f]:O,centerOffset:D-O+k}}}}),rs=["top","right","bottom","left"];rs.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);const os={left:"right",right:"left",bottom:"top",top:"bottom"};function is(e){return e.replace(/left|right|bottom|top/g,(e=>os[e]))}const ss={start:"end",end:"start"};function as(e){return e.replace(/start|end/g,(e=>ss[e]))}const ls=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:o,rects:i,initialPlacement:s,platform:a,elements:l}=t,{mainAxis:c=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:h=!0,...m}=qi(e,t),v=Yi(r),g=Yi(s)===s,y=await(null==a.isRTL?void 0:a.isRTL(l.floating)),b=d||(g||!h?[is(s)]:function(e){const t=is(e);return[as(e),t,as(t)]}(s));d||"none"===p||b.push(...function(e,t,n,r){const o=Hi(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return[]}}(Yi(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(as)))),i}(s,h,p,y));const w=[s,...b],x=await Ji(t,m),E=[];let S=(null==(n=o.flip)?void 0:n.overflows)||[];if(c&&E.push(x[v]),u){const{main:e,cross:t}=function(e,t,n){void 0===n&&(n=!1);const r=Hi(e),o=Xi(e),i=zi(o);let s="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=is(s)),{main:s,cross:is(s)}}(r,i,y);E.push(x[e],x[t])}if(S=[...S,{placement:r,overflows:E}],!E.every((e=>e<=0))){var P,C;const e=((null==(P=o.flip)?void 0:P.index)||0)+1,t=w[e];if(t)return{data:{index:e,overflows:S},reset:{placement:t}};let n=null==(C=S.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:C.placement;if(!n)switch(f){case"bestFit":{var T;const e=null==(T=S.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:T[0];e&&(n=e);break}case"initialPlacement":n=s}if(r!==n)return{reset:{placement:n}}}return{}}}};function cs(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function us(e){return rs.some((t=>e[t]>=0))}const ds=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=qi(e,t);switch(r){case"referenceHidden":{const e=cs(await Ji(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:us(e)}}}case"escaped":{const e=cs(await Ji(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:us(e)}}}default:return{}}}}};function fs(e){return"x"===e?"y":"x"}const ps=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=qi(e,t),c={x:n,y:r},u=await Ji(t,l),d=Xi(Yi(o)),f=fs(d);let p=c[d],h=c[f];if(i){const e="y"===d?"bottom":"right";p=ts(p+u["y"===d?"top":"left"],p,p-u[e])}if(s){const e="y"===f?"bottom":"right";h=ts(h+u["y"===f?"top":"left"],h,h-u[e])}const m=a.fn({...t,[d]:p,[f]:h});return{...m,data:{x:m.x-n,y:m.y-r}}}}},hs=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:s=(()=>{}),...a}=qi(e,t),l=await Ji(t,a),c=Yi(n),u=Hi(n),d="x"===Xi(n),{width:f,height:p}=r.floating;let h,m;"top"===c||"bottom"===c?(h=c,m=u===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(m=c,h="end"===u?"top":"bottom");const v=p-l[h],g=f-l[m],y=!t.middlewareData.shift;let b=v,w=g;if(d){const e=f-l.left-l.right;w=u||y?Qi(g,e):e}else{const e=p-l.top-l.bottom;b=u||y?Qi(v,e):e}if(y&&!u){const e=es(l.left,0),t=es(l.right,0),n=es(l.top,0),r=es(l.bottom,0);d?w=f-2*(0!==e||0!==t?e+t:es(l.left,l.right)):b=p-2*(0!==n||0!==r?n+r:es(l.top,l.bottom))}await s({...t,availableWidth:w,availableHeight:b});const x=await o.getDimensions(i.floating);return f!==x.width||p!==x.height?{reset:{rects:!0}}:{}}}};function ms(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function vs(e){return ms(e).getComputedStyle(e)}function gs(e){return e instanceof ms(e).Node}function ys(e){return gs(e)?(e.nodeName||"").toLowerCase():"#document"}function bs(e){return e instanceof HTMLElement||e instanceof ms(e).HTMLElement}function ws(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ms(e).ShadowRoot||e instanceof ShadowRoot)}function xs(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=vs(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Es(e){return["table","td","th"].includes(ys(e))}function Ss(e){const t=Ps(),n=vs(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 Ps(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Cs(e){return["html","body","#document"].includes(ys(e))}const Ts=Math.min,Rs=Math.max,As=Math.round,Ds=Math.floor,Os=e=>({x:e,y:e});function ks(e){const t=vs(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=bs(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=As(n)!==i||As(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function Ls(e){return e instanceof Element||e instanceof ms(e).Element}function Ms(e){return Ls(e)?e:e.contextElement}function _s(e){const t=Ms(e);if(!bs(t))return Os(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=ks(t);let s=(i?As(n.width):n.width)/r,a=(i?As(n.height):n.height)/o;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const Is=Os(0);function $s(e){const t=ms(e);return Ps()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Is}function Vs(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Ms(e);let s=Os(1);t&&(r?Ls(r)&&(s=_s(r)):s=_s(e));const a=(l=i,void 0===(c=n)&&(c=!1),!(u=r)||c&&u!==ms(l)||!c?Os(0):$s(i));var l,c,u;let d=(o.left+a.x)/s.x,f=(o.top+a.y)/s.y,p=o.width/s.x,h=o.height/s.y;if(i){const e=ms(i),t=r&&Ls(r)?ms(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=_s(n),t=n.getBoundingClientRect(),r=getComputedStyle(n),o=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;d*=e.x,f*=e.y,p*=e.x,h*=e.y,d+=o,f+=i,n=ms(n).frameElement}}return Zi({width:p,height:h,x:d,y:f})}function Ns(e){return Ls(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Fs(e){var t;return null==(t=(gs(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function js(e){return Vs(Fs(e)).left+Ns(e).scrollLeft}function Bs(e){if("html"===ys(e))return e;const t=e.assignedSlot||e.parentNode||ws(e)&&e.host||Fs(e);return ws(t)?t.host:t}function Ws(e){const t=Bs(e);return Cs(t)?e.ownerDocument?e.ownerDocument.body:e.body:bs(t)&&xs(t)?t:Ws(t)}function Us(e,t){var n;void 0===t&&(t=[]);const r=Ws(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=ms(r);return o?t.concat(i,i.visualViewport||[],xs(r)?r:[]):t.concat(r,Us(r))}function Hs(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=ms(e),r=Fs(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const e=Ps();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a,y:l}}(e,n);else if("document"===t)r=function(e){const t=Fs(e),n=Ns(e),r=e.ownerDocument.body,o=Rs(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Rs(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+js(e);const a=-n.scrollTop;return"rtl"===vs(r).direction&&(s+=Rs(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}(Fs(e));else if(Ls(t))r=function(e,t){const n=Vs(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=bs(e)?_s(e):Os(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=$s(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return Zi(r)}function zs(e,t){const n=Bs(e);return!(n===t||!Ls(n)||Cs(n))&&("fixed"===vs(n).position||zs(n,t))}function Ys(e,t,n){const r=bs(t),o=Fs(t),i="fixed"===n,s=Vs(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Os(0);if(r||!r&&!i)if(("body"!==ys(t)||xs(o))&&(a=Ns(t)),bs(t)){const e=Vs(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=js(o));return{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function Xs(e,t){return bs(e)&&"fixed"!==vs(e).position?t?t(e):e.offsetParent:null}function Ks(e,t){const n=ms(e);if(!bs(e))return n;let r=Xs(e,t);for(;r&&Es(r)&&"static"===vs(r).position;)r=Xs(r,t);return r&&("html"===ys(r)||"body"===ys(r)&&"static"===vs(r).position&&!Ss(r))?n:r||function(e){let t=Bs(e);for(;bs(t)&&!Cs(t);){if(Ss(t))return t;t=Bs(t)}return null}(e)||n}const qs={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=bs(n),i=Fs(n);if(n===i)return t;let s={scrollLeft:0,scrollTop:0},a=Os(1);const l=Os(0);if((o||!o&&"fixed"!==r)&&(("body"!==ys(n)||xs(i))&&(s=Ns(n)),bs(n))){const e=Vs(n);a=_s(n),l.x=e.x+n.clientLeft,l.y=e.y+n.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-s.scrollLeft*a.x+l.x,y:t.y*a.y-s.scrollTop*a.y+l.y}},getDocumentElement:Fs,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let r=Us(e).filter((e=>Ls(e)&&"body"!==ys(e))),o=null;const i="fixed"===vs(e).position;let s=i?Bs(e):e;for(;Ls(s)&&!Cs(s);){const t=vs(s),n=Ss(s);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||xs(s)&&!n&&zs(e,s))?r=r.filter((e=>e!==s)):o=t,s=Bs(s)}return t.set(e,r),r}(t,this._c):[].concat(n),r],s=i[0],a=i.reduce(((e,n)=>{const r=Hs(t,n,o);return e.top=Rs(r.top,e.top),e.right=Ts(r.right,e.right),e.bottom=Ts(r.bottom,e.bottom),e.left=Rs(r.left,e.left),e}),Hs(t,s,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:Ks,getElementRects:async function(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||Ks,i=this.getDimensions;return{reference:Ys(t,await o(n),r),floating:{x:0,y:0,...await i(n)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){return ks(e)},getScale:_s,isElement:Ls,isRTL:function(e){return"rtl"===getComputedStyle(e).direction}};function Gs(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=Ms(e),u=o||i?[...c?Us(c):[],...Us(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=c&&a?function(e,t){let n,r=null;const o=Fs(e);function i(){clearTimeout(n),r&&r.disconnect(),r=null}return function s(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),i();const{left:c,top:u,width:d,height:f}=e.getBoundingClientRect();if(a||t(),!d||!f)return;const p={rootMargin:-Ds(u)+"px "+-Ds(o.clientWidth-(c+d))+"px "+-Ds(o.clientHeight-(u+f))+"px "+-Ds(c)+"px",threshold:Rs(0,Ts(1,l))||1};let h=!0;function m(e){const t=e[0].intersectionRatio;if(t!==l){if(!h)return s();t?s(!1,t):n=setTimeout((()=>{s(!1,1e-7)}),100)}h=!1}try{r=new IntersectionObserver(m,{...p,root:o.ownerDocument})}catch(v){r=new IntersectionObserver(m,p)}r.observe(e)}(!0),i}(c,n):null;let f,p=-1,h=null;s&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{h&&h.observe(t)}))),n()})),c&&!l&&h.observe(c),h.observe(t));let m=l?Vs(e):null;return l&&function t(){const r=Vs(e);!m||r.x===m.x&&r.y===m.y&&r.width===m.width&&r.height===m.height||n(),m=r,f=requestAnimationFrame(t)}(),n(),()=>{u.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),d&&d(),h&&h.disconnect(),h=null,l&&cancelAnimationFrame(f)}}const Zs=(e,t,n)=>{const r=new Map,o={platform:qs,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(null==s.isRTL?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Ki(c,r,l),f=r,p={},h=0;for(let m=0;m<a.length;m++){const{name:n,fn:i}=a[m],{x:v,y:g,data:y,reset:b}=await i({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:c,platform:s,elements:{reference:e,floating:t}});u=null!=v?v:u,d=null!=g?g:d,p={...p,[n]:{...p[n],...y}},b&&h<=50&&(h++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(c=!0===b.rects?await s.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:u,y:d}=Ki(c,f,l))),m=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})},Js=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?ns({element:n.current,padding:r}).fn(t):{}:n?ns({element:n,padding:r}).fn(t):{};var o}});var Qs="undefined"!=typeof document?e.useLayoutEffect:e.useEffect;function ea(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;0!=r--;)if(!ea(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!ea(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function ta(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function na(e,t){const n=ta(e);return Math.round(t*n)/n}function ra(e){const t=r.useRef(e);return Qs((()=>{t.current=e})),t}const oa=e.forwardRef(((t,n)=>{const{children:r,width:o=10,height:i=5,...s}=t;return e.createElement(To.svg,m({},s,{ref:n,width:o,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),t.asChild?r:e.createElement("polygon",{points:"0,0 30,0 15,10"}))})),ia="Popper",[sa,aa]=bo(ia),[la,ca]=sa(ia),ua=e.forwardRef(((t,n)=>{const{__scopePopper:r,virtualRef:o,...i}=t,s=ca("PopperAnchor",r),a=e.useRef(null),l=yo(n,a);return e.useEffect((()=>{s.onAnchorChange((null==o?void 0:o.current)||a.current)})),o?null:e.createElement(To.div,m({},i,{ref:l}))})),da="PopperContent",[fa,pa]=sa(da),ha=e.forwardRef(((t,n)=>{var i,s,a,l,c,u,d,f;const{__scopePopper:p,side:h="bottom",sideOffset:v=0,align:g="center",alignOffset:y=0,arrowPadding:b=0,collisionBoundary:w=[],collisionPadding:x=0,sticky:E="partial",hideWhenDetached:S=!1,avoidCollisions:P=!0,onPlaced:C,...T}=t,R=ca(da,p),[A,D]=e.useState(null),O=yo(n,(e=>D(e))),[k,L]=e.useState(null),M=Qo(k),_=null!==(i=null==M?void 0:M.width)&&void 0!==i?i:0,I=null!==(s=null==M?void 0:M.height)&&void 0!==s?s:0,$=h+("center"!==g?"-"+g:""),V="number"==typeof x?x:{top:0,right:0,bottom:0,left:0,...x},N=Array.isArray(w)?w:[w],F=N.length>0,j={padding:V,boundary:N.filter(va),altBoundary:F},{refs:B,floatingStyles:W,placement:U,isPositioned:H,middlewareData:z}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:s,elements:{reference:a,floating:l}={},transform:c=!0,whileElementsMounted:u,open:d}=e,[f,p]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=r.useState(i);ea(h,i)||m(i);const[v,g]=r.useState(null),[y,b]=r.useState(null),w=r.useCallback((e=>{e!=P.current&&(P.current=e,g(e))}),[g]),x=r.useCallback((e=>{e!==C.current&&(C.current=e,b(e))}),[b]),E=a||v,S=l||y,P=r.useRef(null),C=r.useRef(null),T=r.useRef(f),R=ra(u),A=ra(s),D=r.useCallback((()=>{if(!P.current||!C.current)return;const e={placement:t,strategy:n,middleware:h};A.current&&(e.platform=A.current),Zs(P.current,C.current,e).then((e=>{const t={...e,isPositioned:!0};O.current&&!ea(T.current,t)&&(T.current=t,o.flushSync((()=>{p(t)})))}))}),[h,t,n,A]);Qs((()=>{!1===d&&T.current.isPositioned&&(T.current.isPositioned=!1,p((e=>({...e,isPositioned:!1}))))}),[d]);const O=r.useRef(!1);Qs((()=>(O.current=!0,()=>{O.current=!1})),[]),Qs((()=>{if(E&&(P.current=E),S&&(C.current=S),E&&S){if(R.current)return R.current(E,S,D);D()}}),[E,S,D,R]);const k=r.useMemo((()=>({reference:P,floating:C,setReference:w,setFloating:x})),[w,x]),L=r.useMemo((()=>({reference:E,floating:S})),[E,S]),M=r.useMemo((()=>{const e={position:n,left:0,top:0};if(!L.floating)return e;const t=na(L.floating,f.x),r=na(L.floating,f.y);return c?{...e,transform:"translate("+t+"px, "+r+"px)",...ta(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,c,L.floating,f.x,f.y]);return r.useMemo((()=>({...f,update:D,refs:k,elements:L,floatingStyles:M})),[f,D,k,L,M])}({strategy:"fixed",placement:$,whileElementsMounted:Gs,elements:{reference:R.anchor},middleware:[(X={mainAxis:v+I,alignmentAxis:y},void 0===X&&(X=0),{name:"offset",options:X,async fn(e){const{x:t,y:n}=e,r=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),s=Yi(n),a=Hi(n),l="x"===Xi(n),c=["left","top"].includes(s)?-1:1,u=i&&l?-1:1,d=qi(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&"number"==typeof h&&(p="end"===a?-1*h:h),l?{x:p*u,y:f*c}:{x:f*c,y:p*u}}(e,X);return{x:t+r.x,y:n+r.y,data:r}}}),P&&ps({mainAxis:!0,crossAxis:!1,limiter:"partial"===E?(void 0===Y&&(Y={}),{options:Y,fn(e){const{x:t,y:n,placement:r,rects:o,middlewareData:i}=e,{offset:s=0,mainAxis:a=!0,crossAxis:l=!0}=qi(Y,e),c={x:t,y:n},u=Xi(r),d=fs(u);let f=c[u],p=c[d];const h=qi(s,e),m="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(a){const e="y"===u?"height":"width",t=o.reference[u]-o.floating[e]+m.mainAxis,n=o.reference[u]+o.reference[e]-m.mainAxis;f<t?f=t:f>n&&(f=n)}if(l){var v,g;const e="y"===u?"width":"height",t=["top","left"].includes(Yi(r)),n=o.reference[d]-o.floating[e]+(t&&(null==(v=i.offset)?void 0:v[d])||0)+(t?0:m.crossAxis),s=o.reference[d]+o.reference[e]+(t?0:(null==(g=i.offset)?void 0:g[d])||0)-(t?m.crossAxis:0);p<n?p=n:p>s&&(p=s)}return{[u]:f,[d]:p}}}):void 0,...j}),P&&ls({...j}),hs({...j,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:i}=t.reference,s=e.floating.style;s.setProperty("--radix-popper-available-width",`${n}px`),s.setProperty("--radix-popper-available-height",`${r}px`),s.setProperty("--radix-popper-anchor-width",`${o}px`),s.setProperty("--radix-popper-anchor-height",`${i}px`)}}),k&&Js({element:k,padding:b}),ga({arrowWidth:_,arrowHeight:I}),S&&ds({strategy:"referenceHidden"})]});var Y,X;const[K,q]=ya(U),G=Lo(C);Ao((()=>{H&&(null==G||G())}),[H,G]);const Z=null===(a=z.arrow)||void 0===a?void 0:a.x,J=null===(l=z.arrow)||void 0===l?void 0:l.y,Q=0!==(null===(c=z.arrow)||void 0===c?void 0:c.centerOffset),[ee,te]=e.useState();return Ao((()=>{A&&te(window.getComputedStyle(A).zIndex)}),[A]),e.createElement("div",{ref:B.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:H?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ee,"--radix-popper-transform-origin":[null===(u=z.transformOrigin)||void 0===u?void 0:u.x,null===(d=z.transformOrigin)||void 0===d?void 0:d.y].join(" ")},dir:t.dir},e.createElement(fa,{scope:p,placedSide:K,onArrowChange:L,arrowX:Z,arrowY:J,shouldHideArrow:Q},e.createElement(To.div,m({"data-side":K,"data-align":q},T,{ref:O,style:{...T.style,animation:H?void 0:"none",opacity:null!==(f=z.hide)&&void 0!==f&&f.referenceHidden?0:void 0}}))))})),ma={top:"bottom",right:"left",bottom:"top",left:"right"};function va(e){return null!==e}const ga=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,s;const{placement:a,rects:l,middlewareData:c}=t,u=0!==(null===(n=c.arrow)||void 0===n?void 0:n.centerOffset),d=u?0:e.arrowWidth,f=u?0:e.arrowHeight,[p,h]=ya(a),m={start:"0%",center:"50%",end:"100%"}[h],v=(null!==(r=null===(o=c.arrow)||void 0===o?void 0:o.x)&&void 0!==r?r:0)+d/2,g=(null!==(i=null===(s=c.arrow)||void 0===s?void 0:s.y)&&void 0!==i?i:0)+f/2;let y="",b="";return"bottom"===p?(y=u?m:`${v}px`,b=-f+"px"):"top"===p?(y=u?m:`${v}px`,b=`${l.floating.height+f}px`):"right"===p?(y=-f+"px",b=u?m:`${g}px`):"left"===p&&(y=`${l.floating.width+f}px`,b=u?m:`${g}px`),{data:{x:y,y:b}}}});function ya(e){const[t,n="center"]=e.split("-");return[t,n]}const ba=t=>{const{__scopePopper:n,children:r}=t,[o,i]=e.useState(null);return e.createElement(la,{scope:n,anchor:o,onAnchorChange:i},r)},wa=ua,xa=ha,Ea=e.forwardRef((function(t,n){const{__scopePopper:r,...o}=t,i=pa("PopperArrow",r),s=ma[i.placedSide];return e.createElement("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0}},e.createElement(oa,m({},o,{ref:n,style:{...o.style,display:"block"}})))})),Sa=e.forwardRef(((n,r)=>{var o;const{container:i=(null===globalThis||void 0===globalThis||null===(o=globalThis.document)||void 0===o?void 0:o.body),...s}=n;return i?t.createPortal(e.createElement(To.div,m({},s,{ref:r})),i):null})),Pa=e.forwardRef(((t,n)=>e.createElement(To.span,m({},t,{ref:n,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...t.style}})))),Ca=Pa,Ta=[" ","Enter","ArrowUp","ArrowDown"],Ra=[" ","Enter"],Aa="Select",[Da,Oa,ka]=Ro(Aa),[La,Ma]=bo(Aa,[ka,aa]),_a=aa(),[Ia,$a]=La(Aa),[Va,Na]=La(Aa),Fa=e.forwardRef(((t,n)=>{const{__scopeSelect:r,disabled:o=!1,...i}=t,s=_a(r),a=$a("SelectTrigger",r),l=a.disabled||o,c=yo(n,a.onTriggerChange),u=Oa(r),[d,f,p]=pl((e=>{const t=u().filter((e=>!e.disabled)),n=t.find((e=>e.value===a.value)),r=hl(t,e,n);void 0!==r&&a.onValueChange(r.value)})),h=()=>{l||(a.onOpenChange(!0),p())};return e.createElement(wa,m({asChild:!0},s),e.createElement(To.button,m({type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":void 0===a.value?"":void 0},i,{ref:c,onClick:vo(i.onClick,(e=>{e.currentTarget.focus()})),onPointerDown:vo(i.onPointerDown,(e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&(h(),a.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)},e.preventDefault())})),onKeyDown:vo(i.onKeyDown,(e=>{const t=""!==d.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||f(e.key),t&&" "===e.key||Ta.includes(e.key)&&(h(),e.preventDefault())}))})))})),ja=e.forwardRef(((t,n)=>{const{__scopeSelect:r,className:o,style:i,children:s,placeholder:a,...l}=t,c=$a("SelectValue",r),{onValueNodeHasChildrenChange:u}=c,d=void 0!==s,f=yo(n,c.onValueNodeChange);return Ao((()=>{u(d)}),[u,d]),e.createElement(To.span,m({},l,{ref:f,style:{pointerEvents:"none"}}),void 0===c.value&&void 0!==a?a:s)})),Ba=e.forwardRef(((t,n)=>{const{__scopeSelect:r,children:o,...i}=t;return e.createElement(To.span,m({"aria-hidden":!0},i,{ref:n}),o||"▼")})),Wa="SelectContent",Ua=e.forwardRef(((n,r)=>{const o=$a(Wa,n.__scopeSelect),[i,s]=e.useState();if(Ao((()=>{s(new DocumentFragment)}),[]),!o.open){const r=i;return r?t.createPortal(e.createElement(za,{scope:n.__scopeSelect},e.createElement(Da.Slot,{scope:n.__scopeSelect},e.createElement("div",null,n.children))),r):null}return e.createElement(Xa,m({},n,{ref:r}))})),Ha=10,[za,Ya]=La(Wa),Xa=e.forwardRef(((t,n)=>{const{__scopeSelect:r,position:o="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:s,onPointerDownOutside:a,side:l,sideOffset:c,align:u,alignOffset:d,arrowPadding:f,collisionBoundary:p,collisionPadding:h,sticky:v,hideWhenDetached:g,avoidCollisions:y,...b}=t,w=$a(Wa,r),[x,E]=e.useState(null),[S,P]=e.useState(null),C=yo(n,(e=>E(e))),[T,R]=e.useState(null),[A,D]=e.useState(null),O=Oa(r),[k,L]=e.useState(!1),M=e.useRef(!1);e.useEffect((()=>{if(x)return ze(x)}),[x]),e.useEffect((()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:Mi()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:Mi()),Li++,()=>{1===Li&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),Li--}}),[]);const _=e.useCallback((e=>{const[t,...n]=O().map((e=>e.ref.current)),[r]=n.slice(-1),o=document.activeElement;for(const i of e){if(i===o)return;if(null==i||i.scrollIntoView({block:"nearest"}),i===t&&S&&(S.scrollTop=0),i===r&&S&&(S.scrollTop=S.scrollHeight),null==i||i.focus(),document.activeElement!==o)return}}),[O,S]),I=e.useCallback((()=>_([T,x])),[_,T,x]);e.useEffect((()=>{k&&I()}),[k,I]);const{onOpenChange:$,triggerPointerDownPosRef:V}=w;e.useEffect((()=>{if(x){let e={x:0,y:0};const t=t=>{var n,r,o,i;e={x:Math.abs(Math.round(t.pageX)-(null!==(n=null===(r=V.current)||void 0===r?void 0:r.x)&&void 0!==n?n:0)),y:Math.abs(Math.round(t.pageY)-(null!==(o=null===(i=V.current)||void 0===i?void 0:i.y)&&void 0!==o?o:0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():x.contains(n.target)||$(!1),document.removeEventListener("pointermove",t),V.current=null};return null!==V.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}}),[x,$,V]),e.useEffect((()=>{const e=()=>$(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}}),[$]);const[N,F]=pl((e=>{const t=O().filter((e=>!e.disabled)),n=t.find((e=>e.ref.current===document.activeElement)),r=hl(t,e,n);r&&setTimeout((()=>r.ref.current.focus()))})),j=e.useCallback(((e,t,n)=>{const r=!M.current&&!n;(void 0!==w.value&&w.value===t||r)&&(R(e),r&&(M.current=!0))}),[w.value]),B=e.useCallback((()=>null==x?void 0:x.focus()),[x]),W=e.useCallback(((e,t,n)=>{const r=!M.current&&!n;(void 0!==w.value&&w.value===t||r)&&D(e)}),[w.value]),U="popper"===o?qa:Ka,H=U===qa?{side:l,sideOffset:c,align:u,alignOffset:d,arrowPadding:f,collisionBoundary:p,collisionPadding:h,sticky:v,hideWhenDetached:g,avoidCollisions:y}:{};return e.createElement(za,{scope:r,content:x,viewport:S,onViewportChange:P,itemRefCallback:j,selectedItem:T,onItemLeave:B,itemTextRefCallback:W,focusSelectedItem:I,selectedItemText:A,position:o,isPositioned:k,searchRef:N},e.createElement(Ne,{as:xo,allowPinchZoom:!0},e.createElement(Vi,{asChild:!0,trapped:w.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:vo(i,(e=>{var t;null===(t=w.trigger)||void 0===t||t.focus({preventScroll:!0}),e.preventDefault()}))},e.createElement(Di,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>w.onOpenChange(!1)},e.createElement(U,m({role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:e=>e.preventDefault()},b,H,{onPlaced:()=>L(!0),ref:C,style:{display:"flex",flexDirection:"column",outline:"none",...b.style},onKeyDown:vo(b.onKeyDown,(e=>{const t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||F(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=O().filter((e=>!e.disabled)).map((e=>e.ref.current));if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){const n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout((()=>_(t))),e.preventDefault()}}))}))))))})),Ka=e.forwardRef(((t,n)=>{const{__scopeSelect:r,onPlaced:o,...i}=t,s=$a(Wa,r),a=Ya(Wa,r),[l,c]=e.useState(null),[u,d]=e.useState(null),f=yo(n,(e=>d(e))),p=Oa(r),h=e.useRef(!1),v=e.useRef(!0),{viewport:g,selectedItem:y,selectedItemText:b,focusSelectedItem:w}=a,x=e.useCallback((()=>{if(s.trigger&&s.valueNode&&l&&u&&g&&y&&b){const e=s.trigger.getBoundingClientRect(),t=u.getBoundingClientRect(),n=s.valueNode.getBoundingClientRect(),r=b.getBoundingClientRect();if("rtl"!==s.dir){const o=r.left-t.left,i=n.left-o,s=e.left-i,a=e.width+s,c=Math.max(a,t.width),u=window.innerWidth-Ha,d=Si(i,[Ha,u-c]);l.style.minWidth=a+"px",l.style.left=d+"px"}else{const o=t.right-r.right,i=window.innerWidth-n.right-o,s=window.innerWidth-e.right-i,a=e.width+s,c=Math.max(a,t.width),u=window.innerWidth-Ha,d=Si(i,[Ha,u-c]);l.style.minWidth=a+"px",l.style.right=d+"px"}const i=p(),a=window.innerHeight-2*Ha,c=g.scrollHeight,d=window.getComputedStyle(u),f=parseInt(d.borderTopWidth,10),m=parseInt(d.paddingTop,10),v=parseInt(d.borderBottomWidth,10),w=f+m+c+parseInt(d.paddingBottom,10)+v,x=Math.min(5*y.offsetHeight,w),E=window.getComputedStyle(g),S=parseInt(E.paddingTop,10),P=parseInt(E.paddingBottom,10),C=e.top+e.height/2-Ha,T=a-C,R=y.offsetHeight/2,A=f+m+(y.offsetTop+R),D=w-A;if(A<=C){const e=y===i[i.length-1].ref.current;l.style.bottom="0px";const t=u.clientHeight-g.offsetTop-g.offsetHeight,n=A+Math.max(T,R+(e?P:0)+t+v);l.style.height=n+"px"}else{const e=y===i[0].ref.current;l.style.top="0px";const t=Math.max(C,f+g.offsetTop+(e?S:0)+R)+D;l.style.height=t+"px",g.scrollTop=A-C+g.offsetTop}l.style.margin=`${Ha}px 0`,l.style.minHeight=x+"px",l.style.maxHeight=a+"px",null==o||o(),requestAnimationFrame((()=>h.current=!0))}}),[p,s.trigger,s.valueNode,l,u,g,y,b,s.dir,o]);Ao((()=>x()),[x]);const[E,S]=e.useState();Ao((()=>{u&&S(window.getComputedStyle(u).zIndex)}),[u]);const P=e.useCallback((e=>{e&&!0===v.current&&(x(),null==w||w(),v.current=!1)}),[x,w]);return e.createElement(Ga,{scope:r,contentWrapper:l,shouldExpandOnScrollRef:h,onScrollButtonChange:P},e.createElement("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:E}},e.createElement(To.div,m({},i,{ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}}))))})),qa=e.forwardRef(((t,n)=>{const{__scopeSelect:r,align:o="start",collisionPadding:i=Ha,...s}=t,a=_a(r);return e.createElement(xa,m({},a,s,{ref:n,align:o,collisionPadding:i,style:{boxSizing:"border-box",...s.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)"}}))})),[Ga,Za]=La(Wa,{}),Ja="SelectViewport",Qa=e.forwardRef(((t,n)=>{const{__scopeSelect:r,...o}=t,i=Ya(Ja,r),s=Za(Ja,r),a=yo(n,i.onViewportChange),l=e.useRef(0);return e.createElement(e.Fragment,null,e.createElement("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}"}}),e.createElement(Da.Slot,{scope:r},e.createElement(To.div,m({"data-radix-select-viewport":"",role:"presentation"},o,{ref:a,style:{position:"relative",flex:1,overflow:"auto",...o.style},onScroll:vo(o.onScroll,(e=>{const t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=s;if(null!=r&&r.current&&n){const e=Math.abs(l.current-t.scrollTop);if(e>0){const r=window.innerHeight-2*Ha,o=parseFloat(n.style.minHeight),i=parseFloat(n.style.height),s=Math.max(o,i);if(s<r){const o=s+e,i=Math.min(r,o),a=o-i;n.style.height=i+"px","0px"===n.style.bottom&&(t.scrollTop=a>0?a:0,n.style.justifyContent="flex-end")}}}l.current=t.scrollTop}))}))))}));La("SelectGroup");const el="SelectItem",[tl,nl]=La(el),rl=e.forwardRef(((t,n)=>{const{__scopeSelect:r,value:o,disabled:i=!1,textValue:s,...a}=t,l=$a(el,r),c=Ya(el,r),u=l.value===o,[d,f]=e.useState(null!=s?s:""),[p,h]=e.useState(!1),v=yo(n,(e=>{var t;return null===(t=c.itemRefCallback)||void 0===t?void 0:t.call(c,e,o,i)})),g=ko(),y=()=>{i||(l.onValueChange(o),l.onOpenChange(!1))};return e.createElement(tl,{scope:r,value:o,disabled:i,textId:g,isSelected:u,onItemTextChange:e.useCallback((e=>{f((t=>{var n;return t||(null!==(n=null==e?void 0:e.textContent)&&void 0!==n?n:"").trim()}))}),[])},e.createElement(Da.ItemSlot,{scope:r,value:o,disabled:i,textValue:d},e.createElement(To.div,m({role:"option","aria-labelledby":g,"data-highlighted":p?"":void 0,"aria-selected":u&&p,"data-state":u?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1},a,{ref:v,onFocus:vo(a.onFocus,(()=>h(!0))),onBlur:vo(a.onBlur,(()=>h(!1))),onPointerUp:vo(a.onPointerUp,y),onPointerMove:vo(a.onPointerMove,(e=>{var t;i?null===(t=c.onItemLeave)||void 0===t||t.call(c):e.currentTarget.focus({preventScroll:!0})})),onPointerLeave:vo(a.onPointerLeave,(e=>{var t;e.currentTarget===document.activeElement&&(null===(t=c.onItemLeave)||void 0===t||t.call(c))})),onKeyDown:vo(a.onKeyDown,(e=>{var t;""!==(null===(t=c.searchRef)||void 0===t?void 0:t.current)&&" "===e.key||(Ra.includes(e.key)&&y()," "===e.key&&e.preventDefault())}))}))))})),ol="SelectItemText",il=e.forwardRef(((n,r)=>{const{__scopeSelect:o,className:i,style:s,...a}=n,l=$a(ol,o),c=Ya(ol,o),u=nl(ol,o),d=Na(ol,o),[f,p]=e.useState(null),h=yo(r,(e=>p(e)),u.onItemTextChange,(e=>{var t;return null===(t=c.itemTextRefCallback)||void 0===t?void 0:t.call(c,e,u.value,u.disabled)})),v=null==f?void 0:f.textContent,g=e.useMemo((()=>e.createElement("option",{key:u.value,value:u.value,disabled:u.disabled},v)),[u.disabled,u.value,v]),{onNativeOptionAdd:y,onNativeOptionRemove:b}=d;return Ao((()=>(y(g),()=>b(g))),[y,b,g]),e.createElement(e.Fragment,null,e.createElement(To.span,m({id:u.textId},a,{ref:h})),u.isSelected&&l.valueNode&&!l.valueNodeHasChildren?t.createPortal(a.children,l.valueNode):null)})),sl=e.forwardRef(((t,n)=>{const{__scopeSelect:r,...o}=t;return nl("SelectItemIndicator",r).isSelected?e.createElement(To.span,m({"aria-hidden":!0},o,{ref:n})):null})),al="SelectScrollUpButton",ll=e.forwardRef(((t,n)=>{const r=Ya(al,t.__scopeSelect),o=Za(al,t.__scopeSelect),[i,s]=e.useState(!1),a=yo(n,o.onScrollButtonChange);return Ao((()=>{if(r.viewport&&r.isPositioned){let e=function(){const e=t.scrollTop>0;s(e)};const t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}}),[r.viewport,r.isPositioned]),i?e.createElement(dl,m({},t,{ref:a,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}})):null})),cl="SelectScrollDownButton",ul=e.forwardRef(((t,n)=>{const r=Ya(cl,t.__scopeSelect),o=Za(cl,t.__scopeSelect),[i,s]=e.useState(!1),a=yo(n,o.onScrollButtonChange);return Ao((()=>{if(r.viewport&&r.isPositioned){let e=function(){const e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;s(n)};const t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}}),[r.viewport,r.isPositioned]),i?e.createElement(dl,m({},t,{ref:a,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}})):null})),dl=e.forwardRef(((t,n)=>{const{__scopeSelect:r,onAutoScroll:o,...i}=t,s=Ya("SelectScrollButton",r),a=e.useRef(null),l=Oa(r),c=e.useCallback((()=>{null!==a.current&&(window.clearInterval(a.current),a.current=null)}),[]);return e.useEffect((()=>()=>c()),[c]),Ao((()=>{var e;const t=l().find((e=>e.ref.current===document.activeElement));null==t||null===(e=t.ref.current)||void 0===e||e.scrollIntoView({block:"nearest"})}),[l]),e.createElement(To.div,m({"aria-hidden":!0},i,{ref:n,style:{flexShrink:0,...i.style},onPointerDown:vo(i.onPointerDown,(()=>{null===a.current&&(a.current=window.setInterval(o,50))})),onPointerMove:vo(i.onPointerMove,(()=>{var e;null===(e=s.onItemLeave)||void 0===e||e.call(s),null===a.current&&(a.current=window.setInterval(o,50))})),onPointerLeave:vo(i.onPointerLeave,(()=>{c()}))}))})),fl=e.forwardRef(((t,n)=>{const{value:r,...o}=t,i=e.useRef(null),s=yo(n,i),a=ei(r);return e.useEffect((()=>{const e=i.current,t=window.HTMLSelectElement.prototype,n=Object.getOwnPropertyDescriptor(t,"value").set;if(a!==r&&n){const t=new Event("change",{bubbles:!0});n.call(e,r),e.dispatchEvent(t)}}),[a,r]),e.createElement(Pa,{asChild:!0},e.createElement("select",m({},o,{ref:s,defaultValue:r})))}));function pl(t){const n=Lo(t),r=e.useRef(""),o=e.useRef(0),i=e.useCallback((e=>{const t=r.current+e;n(t),function e(t){r.current=t,window.clearTimeout(o.current),""!==t&&(o.current=window.setTimeout((()=>e("")),1e3))}(t)}),[n]),s=e.useCallback((()=>{r.current="",window.clearTimeout(o.current)}),[]);return e.useEffect((()=>()=>window.clearTimeout(o.current)),[]),[r,i,s]}function hl(e,t,n){const r=t.length>1&&Array.from(t).every((e=>e===t[0]))?t[0]:t,o=n?e.indexOf(n):-1;let i=(s=e,a=Math.max(o,0),s.map(((e,t)=>s[(a+t)%s.length])));var s,a;1===r.length&&(i=i.filter((e=>e!==n)));const l=i.find((e=>e.textValue.toLowerCase().startsWith(r.toLowerCase())));return l!==n?l:void 0}fl.displayName="BubbleSelect";const ml=t=>{const{__scopeSelect:n,children:r,open:o,defaultOpen:i,onOpenChange:s,value:a,defaultValue:l,onValueChange:c,dir:u,name:d,autoComplete:f,disabled:p,required:h}=t,m=_a(n),[v,g]=e.useState(null),[y,b]=e.useState(null),[w,x]=e.useState(!1),E=Io(u),[S=!1,P]=Mo({prop:o,defaultProp:i,onChange:s}),[C,T]=Mo({prop:a,defaultProp:l,onChange:c}),R=e.useRef(null),A=!v||Boolean(v.closest("form")),[D,O]=e.useState(new Set),k=Array.from(D).map((e=>e.props.value)).join(";");return e.createElement(ba,m,e.createElement(Ia,{required:h,scope:n,trigger:v,onTriggerChange:g,valueNode:y,onValueNodeChange:b,valueNodeHasChildren:w,onValueNodeHasChildrenChange:x,contentId:ko(),value:C,onValueChange:T,open:S,onOpenChange:P,dir:E,triggerPointerDownPosRef:R,disabled:p},e.createElement(Da.Provider,{scope:n},e.createElement(Va,{scope:t.__scopeSelect,onNativeOptionAdd:e.useCallback((e=>{O((t=>new Set(t).add(e)))}),[]),onNativeOptionRemove:e.useCallback((e=>{O((t=>{const n=new Set(t);return n.delete(e),n}))}),[])},r)),A?e.createElement(fl,{key:k,"aria-hidden":!0,required:h,tabIndex:-1,name:d,autoComplete:f,value:C,onChange:e=>T(e.target.value),disabled:p},void 0===C?e.createElement("option",{value:""}):null,Array.from(D)):null))},vl=Fa,gl=ja,yl=Ba,bl=t=>e.createElement(Sa,m({asChild:!0},t)),wl=Ua,xl=Qa,El=rl,Sl=il,Pl=sl,Cl=ll,Tl=ul,Rl=e.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Al=e.createContext({}),Dl=e.createContext(null),Ol="undefined"!=typeof document,kl=Ol?e.useLayoutEffect:e.useEffect,Ll=e.createContext({strict:!1});function Ml(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function _l(e){return"string"==typeof e||Array.isArray(e)}function Il(e){return"object"==typeof e&&"function"==typeof e.start}const $l=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Vl=["initial",...$l];function Nl(e){return Il(e.animate)||Vl.some((t=>_l(e[t])))}function Fl(e){return Boolean(Nl(e)||e.variants)}function jl(t){const{initial:n,animate:r}=function(e,t){if(Nl(e)){const{initial:t,animate:n}=e;return{initial:!1===t||_l(t)?t:void 0,animate:_l(n)?n:void 0}}return!1!==e.inherit?t:{}}(t,e.useContext(Al));return e.useMemo((()=>({initial:n,animate:r})),[Bl(n),Bl(r)])}function Bl(e){return Array.isArray(e)?e.join(" "):e}const Wl={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Ul={};for(const wg in Wl)Ul[wg]={isEnabled:e=>Wl[wg].some((t=>!!e[t]))};function Hl(t){const n=e.useRef(null);return null===n.current&&(n.current=t()),n.current}const zl={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let Yl=1;const Xl=e.createContext({}),Kl=e.createContext({}),ql=Symbol.for("motionComponentSymbol");function Gl({preloadedFeatures:t,createVisualElement:n,useRender:o,useVisualState:i,Component:s}){t&&function(e){for(const t in e)Ul[t]={...Ul[t],...e[t]}}(t);const a=e.forwardRef((function(a,l){let c;const u={...e.useContext(Rl),...a,layoutId:Zl(a)},{isStatic:d}=u,f=jl(a),p=d?void 0:Hl((()=>{if(zl.hasEverUpdated)return Yl++})),h=i(a,d);if(!d&&Ol){f.visualElement=function(t,n,r,o){const{visualElement:i}=e.useContext(Al),s=e.useContext(Ll),a=e.useContext(Dl),l=e.useContext(Rl).reducedMotion,c=e.useRef();o=o||s.renderer,!c.current&&o&&(c.current=o(t,{visualState:n,parent:i,props:r,presenceContext:a,blockInitialAnimation:!!a&&!1===a.initial,reducedMotionConfig:l}));const u=c.current;return e.useInsertionEffect((()=>{u&&u.update(r,a)})),kl((()=>{u&&u.render()})),e.useEffect((()=>{u&&u.updateFeatures()})),(window.HandoffAppearAnimations?kl:e.useEffect)((()=>{u&&u.animationState&&u.animationState.animateChanges()})),u}(s,h,u,n);const r=e.useContext(Kl),o=e.useContext(Ll).strict;f.visualElement&&(c=f.visualElement.loadFeatures(u,o,t,p,r))}return r.createElement(Al.Provider,{value:f},c&&f.visualElement?r.createElement(c,{visualElement:f.visualElement,...u}):null,o(s,a,p,function(t,n,r){return e.useCallback((e=>{e&&t.mount&&t.mount(e),n&&(e?n.mount(e):n.unmount()),r&&("function"==typeof r?r(e):Ml(r)&&(r.current=e))}),[n])}(h,f.visualElement,l),h,d,f.visualElement))}));return a[ql]=s,a}function Zl({layoutId:t}){const n=e.useContext(Xl).id;return n&&void 0!==t?n+"-"+t:t}function Jl(e){function t(t,n={}){return Gl(e(t,n))}if("undefined"==typeof Proxy)return t;const n=new Map;return new Proxy(t,{get:(e,r)=>(n.has(r)||n.set(r,t(r)),n.get(r))})}const Ql=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function ec(e){return"string"==typeof e&&!e.includes("-")&&!!(Ql.indexOf(e)>-1||/[A-Z]/.test(e))}const tc={};const nc=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],rc=new Set(nc);function oc(e,{layout:t,layoutId:n}){return rc.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!tc[e]||"opacity"===e)}const ic=e=>Boolean(e&&e.getVelocity),sc={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ac=nc.length;const lc=e=>t=>"string"==typeof t&&t.startsWith(e),cc=lc("--"),uc=lc("var(--"),dc=(e,t)=>t&&"number"==typeof e?t.transform(e):e,fc=(e,t,n)=>Math.min(Math.max(n,e),t),pc={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},hc={...pc,transform:e=>fc(0,1,e)},mc={...pc,default:1},vc=e=>Math.round(1e5*e)/1e5,gc=/(-)?([\d]*\.?[\d])+/g,yc=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,bc=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function wc(e){return"string"==typeof e}const xc=e=>({test:t=>wc(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),Ec=xc("deg"),Sc=xc("%"),Pc=xc("px"),Cc=xc("vh"),Tc=xc("vw"),Rc={...Sc,parse:e=>Sc.parse(e)/100,transform:e=>Sc.transform(100*e)},Ac={...pc,transform:Math.round},Dc={borderWidth:Pc,borderTopWidth:Pc,borderRightWidth:Pc,borderBottomWidth:Pc,borderLeftWidth:Pc,borderRadius:Pc,radius:Pc,borderTopLeftRadius:Pc,borderTopRightRadius:Pc,borderBottomRightRadius:Pc,borderBottomLeftRadius:Pc,width:Pc,maxWidth:Pc,height:Pc,maxHeight:Pc,size:Pc,top:Pc,right:Pc,bottom:Pc,left:Pc,padding:Pc,paddingTop:Pc,paddingRight:Pc,paddingBottom:Pc,paddingLeft:Pc,margin:Pc,marginTop:Pc,marginRight:Pc,marginBottom:Pc,marginLeft:Pc,rotate:Ec,rotateX:Ec,rotateY:Ec,rotateZ:Ec,scale:mc,scaleX:mc,scaleY:mc,scaleZ:mc,skew:Ec,skewX:Ec,skewY:Ec,distance:Pc,translateX:Pc,translateY:Pc,translateZ:Pc,x:Pc,y:Pc,z:Pc,perspective:Pc,transformPerspective:Pc,opacity:hc,originX:Rc,originY:Rc,originZ:Pc,zIndex:Ac,fillOpacity:hc,strokeOpacity:hc,numOctaves:Ac};function Oc(e,t,n,r){const{style:o,vars:i,transform:s,transformOrigin:a}=e;let l=!1,c=!1,u=!0;for(const d in t){const e=t[d];if(cc(d)){i[d]=e;continue}const n=Dc[d],r=dc(e,n);if(rc.has(d)){if(l=!0,s[d]=r,!u)continue;e!==(n.default||0)&&(u=!1)}else d.startsWith("origin")?(c=!0,a[d]=r):o[d]=r}if(t.transform||(l||r?o.transform=function(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let s=0;s<ac;s++){const t=nc[s];void 0!==e[t]&&(i+=`${sc[t]||t}(${e[t]}) `)}return t&&!e.z&&(i+="translateZ(0)"),i=i.trim(),o?i=o(e,r?"":i):n&&r&&(i="none"),i}(e.transform,n,u,r):o.transform&&(o.transform="none")),c){const{originX:e="50%",originY:t="50%",originZ:n=0}=a;o.transformOrigin=`${e} ${t} ${n}`}}const kc=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Lc(e,t,n){for(const r in t)ic(t[r])||oc(r,n)||(e[r]=t[r])}function Mc(t,n,r){const o={};return Lc(o,t.style||{},t),Object.assign(o,function({transformTemplate:t},n,r){return e.useMemo((()=>{const e=kc();return Oc(e,n,{enableHardwareAcceleration:!r},t),Object.assign({},e.vars,e.style)}),[n])}(t,n,r)),t.transformValues?t.transformValues(o):o}function _c(e,t,n){const r={},o=Mc(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")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=o,r}const Ic=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function $c(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||Ic.has(e)}let Vc=e=>!$c(e);try{(Nc=require("@emotion/is-prop-valid").default)&&(Vc=e=>e.startsWith("on")?!$c(e):Nc(e))}catch(bg){}var Nc;function Fc(e,t,n){return"string"==typeof e?e:Pc.transform(t+n*e)}const jc={offset:"stroke-dashoffset",array:"stroke-dasharray"},Bc={offset:"strokeDashoffset",array:"strokeDasharray"};function Wc(e,{attrX:t,attrY:n,originX:r,originY:o,pathLength:i,pathSpacing:s=1,pathOffset:a=0,...l},c,u,d){if(Oc(e,l,c,d),u)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:f,style:p,dimensions:h}=e;f.transform&&(h&&(p.transform=f.transform),delete f.transform),h&&(void 0!==r||void 0!==o||p.transform)&&(p.transformOrigin=function(e,t,n){return`${Fc(t,e.x,e.width)} ${Fc(n,e.y,e.height)}`}(h,void 0!==r?r:.5,void 0!==o?o:.5)),void 0!==t&&(f.x=t),void 0!==n&&(f.y=n),void 0!==i&&function(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?jc:Bc;e[i.offset]=Pc.transform(-r);const s=Pc.transform(t),a=Pc.transform(n);e[i.array]=`${s} ${a}`}(f,i,s,a,!1)}const Uc=()=>({...kc(),attrs:{}}),Hc=e=>"string"==typeof e&&"svg"===e.toLowerCase();function zc(t,n,r,o){const i=e.useMemo((()=>{const e=Uc();return Wc(e,n,{enableHardwareAcceleration:!1},Hc(o),t.transformTemplate),{...e.attrs,style:{...e.style}}}),[n]);if(t.style){const e={};Lc(e,t.style,t),i.style={...e,...i.style}}return i}function Yc(t=!1){return(n,r,o,i,{latestValues:s},a)=>{const l=(ec(n)?zc:_c)(r,s,a,n),c=function(e,t,n){const r={};for(const o in e)"values"===o&&"object"==typeof e.values||(Vc(o)||!0===n&&$c(o)||!t&&!$c(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(r,"string"==typeof n,t),u={...c,...l,ref:i},{children:d}=r,f=e.useMemo((()=>ic(d)?d.get():d),[d]);return o&&(u["data-projection-id"]=o),e.createElement(n,{...u,children:f})}}const Xc=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function Kc(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const qc=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Gc(e,t,n,r){Kc(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(qc.has(o)?o:Xc(o),t.attrs[o])}function Zc(e,t){const{style:n}=e,r={};for(const o in n)(ic(n[o])||t.style&&ic(t.style[o])||oc(o,e))&&(r[o]=n[o]);return r}function Jc(e,t){const n=Zc(e,t);for(const r in e)if(ic(e[r])||ic(t[r])){n["x"===r||"y"===r?"attr"+r.toUpperCase():r]=e[r]}return n}function Qc(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}const eu=e=>Array.isArray(e),tu=e=>Boolean(e&&"object"==typeof e&&e.mix&&e.toValue),nu=e=>eu(e)?e[e.length-1]||0:e;function ru(e){const t=ic(e)?e.get():e;return tu(t)?t.toValue():t}const ou=t=>(n,r)=>{const o=e.useContext(Al),i=e.useContext(Dl),s=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const s={latestValues:iu(r,o,i,e),renderState:t()};return n&&(s.mount=e=>n(r,e,s)),s}(t,n,o,i);return r?s():Hl(s)};function iu(e,t,n,r){const o={},i=r(e,{});for(const f in i)o[f]=ru(i[f]);let{initial:s,animate:a}=e;const l=Nl(e),c=Fl(e);t&&c&&!l&&!1!==e.inherit&&(void 0===s&&(s=t.initial),void 0===a&&(a=t.animate));let u=!!n&&!1===n.initial;u=u||!1===s;const d=u?a:s;if(d&&"boolean"!=typeof d&&!Il(d)){(Array.isArray(d)?d:[d]).forEach((t=>{const n=Qc(e,t);if(!n)return;const{transitionEnd:r,transition:i,...s}=n;for(const e in s){let t=s[e];if(Array.isArray(t)){t=t[u?t.length-1:0]}null!==t&&(o[e]=t)}for(const e in r)o[e]=r[e]}))}return o}const su={useVisualState:ou({scrapeMotionValuesFromProps:Jc,createRenderState:Uc,onMount:(e,t,{renderState:n,latestValues:r})=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(o){n.dimensions={x:0,y:0,width:0,height:0}}Wc(n,r,{enableHardwareAcceleration:!1},Hc(t.tagName),e.transformTemplate),Gc(t,n)}})},au={useVisualState:ou({scrapeMotionValuesFromProps:Zc,createRenderState:kc})};function lu(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const cu=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function uu(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const du=e=>t=>cu(t)&&e(t,uu(t));function fu(e,t,n,r){return lu(e,t,du(n),r)}const pu=(e,t)=>n=>t(e(n)),hu=(...e)=>e.reduce(pu);function mu(e){let t=null;return()=>{const n=()=>{t=null};return null===t&&(t=e,n)}}const vu=mu("dragHorizontal"),gu=mu("dragVertical");function yu(e){let t=!1;if("y"===e)t=gu();else if("x"===e)t=vu();else{const e=vu(),n=gu();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function bu(){const e=yu(!0);return!e||(e(),!1)}class wu{constructor(e){this.isMounted=!1,this.node=e}update(){}}const xu={delta:0,timestamp:0,isProcessing:!1};let Eu=!0,Su=!1;const Pu=["read","update","preRender","render","postRender"],Cu=Pu.reduce(((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,o=!1,i=!1;const s=new WeakSet,a={schedule:(e,i=!1,a=!1)=>{const l=a&&o,c=l?t:n;return i&&s.add(e),-1===c.indexOf(e)&&(c.push(e),l&&o&&(r=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),s.delete(e)},process:l=>{if(o)i=!0;else{if(o=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let n=0;n<r;n++){const r=t[n];r(l),s.has(r)&&(a.schedule(r),e())}o=!1,i&&(i=!1,a.process(l))}}};return a}((()=>Su=!0)),e)),{}),Tu=Pu.reduce(((e,t)=>{const n=Cu[t];return e[t]=(e,t=!1,r=!1)=>(Su||ku(),n.schedule(e,t,r)),e}),{}),Ru=Pu.reduce(((e,t)=>(e[t]=Cu[t].cancel,e)),{}),Au=Pu.reduce(((e,t)=>(e[t]=()=>Cu[t].process(xu),e)),{}),Du=e=>Cu[e].process(xu),Ou=e=>{Su=!1,xu.delta=Eu?1e3/60:Math.max(Math.min(e-xu.timestamp,40),1),xu.timestamp=e,xu.isProcessing=!0,Pu.forEach(Du),xu.isProcessing=!1,Su&&(Eu=!1,requestAnimationFrame(Ou))},ku=()=>{Su=!0,Eu=!0,xu.isProcessing||requestAnimationFrame(Ou)};function Lu(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End");return fu(e.current,n,((n,o)=>{if("touch"===n.type||bu())return;const i=e.getProps();e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",t),i[r]&&Tu.update((()=>i[r](n,o)))}),{passive:!e.getProps()[r]})}const Mu=(e,t)=>!!t&&(e===t||Mu(e,t.parentElement)),_u=e=>e;function Iu(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,uu(n))}const $u=new WeakMap,Vu=new WeakMap,Nu=e=>{const t=$u.get(e.target);t&&t(e)},Fu=e=>{e.forEach(Nu)};function ju(e,t,n){const r=function({root:e,...t}){const n=e||document;Vu.has(n)||Vu.set(n,{});const r=Vu.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(Fu,{root:e,...t})),r[o]}(t);return $u.set(e,n),r.observe(e),()=>{$u.delete(e),r.unobserve(e)}}const Bu={some:0,all:1};const Wu={inView:{Feature:class extends wu{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:o}=e,i={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:Bu[r]};return ju(this.node.current,i,(e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,o&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),i=t?n:r;i&&i(e)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends wu{constructor(){super(...arguments),this.removeStartListeners=_u,this.removeEndListeners=_u,this.removeAccessibleListeners=_u,this.startPointerPress=(e,t)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),r=fu(window,"pointerup",((e,t)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:r}=this.node.getProps();Tu.update((()=>{Mu(this.node.current,e.target)?n&&n(e,t):r&&r(e,t)}))}),{passive:!(n.onTap||n.onPointerUp)}),o=fu(window,"pointercancel",((e,t)=>this.cancelPress(e,t)),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=hu(r,o),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=lu(this.node.current,"keydown",(e=>{if("Enter"!==e.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=lu(this.node.current,"keyup",(e=>{"Enter"===e.key&&this.checkPressEnd()&&Iu("up",((e,t)=>{const{onTap:n}=this.node.getProps();n&&Tu.update((()=>n(e,t)))}))})),Iu("down",((e,t)=>{this.startPress(e,t)}))})),t=lu(this.node.current,"blur",(()=>{this.isPressing&&Iu("cancel",((e,t)=>this.cancelPress(e,t)))}));this.removeAccessibleListeners=hu(e,t)}}startPress(e,t){this.isPressing=!0;const{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&Tu.update((()=>n(e,t)))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!bu()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&Tu.update((()=>n(e,t)))}mount(){const e=this.node.getProps(),t=fu(this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=lu(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=hu(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends wu{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=hu(lu(this.node.current,"focus",(()=>this.onFocus())),lu(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends wu{mount(){this.unmount=hu(Lu(this.node,!0),Lu(this.node,!1))}unmount(){}}}};function Uu(e,t){if(!Array.isArray(t))return!1;const 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 Hu(e,t,n){const r=e.getProps();return Qc(r,t,void 0!==n?n:r.custom,function(e){const t={};return e.values.forEach(((e,n)=>t[n]=e.get())),t}(e),function(e){const t={};return e.values.forEach(((e,n)=>t[n]=e.getVelocity())),t}(e))}const zu="data-"+Xc("framerAppearId");let Yu=_u,Xu=_u;"production"!==process.env.NODE_ENV&&(Yu=(e,t)=>{e||"undefined"==typeof console||console.warn(t)},Xu=(e,t)=>{if(!e)throw new Error(t)});const Ku=e=>1e3*e,qu=e=>e/1e3,Gu=!1,Zu=e=>Array.isArray(e)&&"number"==typeof e[0];function Ju(e){return Boolean(!e||"string"==typeof e&&ed[e]||Zu(e)||Array.isArray(e)&&e.every(Ju))}const Qu=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,ed={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Qu([0,.65,.55,1]),circOut:Qu([.55,0,1,.45]),backIn:Qu([.31,.01,.66,-.59]),backOut:Qu([.33,1.53,.69,.99])};function td(e){if(e)return Zu(e)?Qu(e):Array.isArray(e)?e.map(td):ed[e]}const nd={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},rd={},od={};for(const wg in nd)od[wg]=()=>(void 0===rd[wg]&&(rd[wg]=nd[wg]()),rd[wg]);const id=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,sd=1e-7,ad=12;function ld(e,t,n,r){if(e===t&&n===r)return _u;const o=t=>function(e,t,n,r,o){let i,s,a=0;do{s=t+(n-t)/2,i=id(s,r,o)-e,i>0?n=s:t=s}while(Math.abs(i)>sd&&++a<ad);return s}(t,0,1,e,n);return e=>0===e||1===e?e:id(o(e),t,r)}const cd=ld(.42,0,1,1),ud=ld(0,0,.58,1),dd=ld(.42,0,.58,1),fd=e=>Array.isArray(e)&&"number"!=typeof e[0],pd=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,hd=e=>t=>1-e(1-t),md=e=>1-Math.sin(Math.acos(e)),vd=hd(md),gd=pd(vd),yd=ld(.33,1.53,.69,.99),bd=hd(yd),wd=pd(bd),xd={linear:_u,easeIn:cd,easeInOut:dd,easeOut:ud,circIn:md,circInOut:gd,circOut:vd,backIn:bd,backInOut:wd,backOut:yd,anticipate:e=>(e*=2)<1?.5*bd(e):.5*(2-Math.pow(2,-10*(e-1)))},Ed=e=>{if(Array.isArray(e)){Xu(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,o]=e;return ld(t,n,r,o)}return"string"==typeof e?(Xu(void 0!==xd[e],`Invalid easing type '${e}'`),xd[e]):e},Sd=(e,t)=>n=>Boolean(wc(n)&&bc.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Pd=(e,t,n)=>r=>{if(!wc(r))return r;const[o,i,s,a]=r.match(gc);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},Cd={...pc,transform:e=>Math.round((e=>fc(0,255,e))(e))},Td={test:Sd("rgb","red"),parse:Pd("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Cd.transform(e)+", "+Cd.transform(t)+", "+Cd.transform(n)+", "+vc(hc.transform(r))+")"};const Rd={test:Sd("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),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:Td.transform},Ad={test:Sd("hsl","hue"),parse:Pd("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Sc.transform(vc(t))+", "+Sc.transform(vc(n))+", "+vc(hc.transform(r))+")"},Dd={test:e=>Td.test(e)||Rd.test(e)||Ad.test(e),parse:e=>Td.test(e)?Td.parse(e):Ad.test(e)?Ad.parse(e):Rd.parse(e),transform:e=>wc(e)?e:e.hasOwnProperty("red")?Td.transform(e):Ad.transform(e)},Od=(e,t,n)=>-n*e+n*t+e;function kd(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}const Ld=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},Md=[Rd,Td,Ad];function _d(e){const t=(n=e,Md.find((e=>e.test(n))));var n;Xu(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`);let r=t.parse(e);return t===Ad&&(r=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,i=0,s=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,a=2*n-r;o=kd(a,r,e+1/3),i=kd(a,r,e),s=kd(a,r,e-1/3)}else o=i=s=n;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*s),alpha:r}}(r)),r}const Id=(e,t)=>{const n=_d(e),r=_d(t),o={...n};return e=>(o.red=Ld(n.red,r.red,e),o.green=Ld(n.green,r.green,e),o.blue=Ld(n.blue,r.blue,e),o.alpha=Od(n.alpha,r.alpha,e),Td.transform(o))},$d="${c}",Vd="${n}";function Nd(e){"number"==typeof e&&(e=`${e}`);const t=[];let n=0,r=0;const o=e.match(yc);o&&(n=o.length,e=e.replace(yc,$d),t.push(...o.map(Dd.parse)));const i=e.match(gc);return i&&(r=i.length,e=e.replace(gc,Vd),t.push(...i.map(pc.parse))),{values:t,numColors:n,numNumbers:r,tokenised:e}}function Fd(e){return Nd(e).values}function jd(e){const{values:t,numColors:n,tokenised:r}=Nd(e),o=t.length;return e=>{let t=r;for(let r=0;r<o;r++)t=t.replace(r<n?$d:Vd,r<n?Dd.transform(e[r]):vc(e[r]));return t}}const Bd=e=>"number"==typeof e?0:e;const Wd={test:function(e){var t,n;return isNaN(e)&&wc(e)&&((null===(t=e.match(gc))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(yc))||void 0===n?void 0:n.length)||0)>0},parse:Fd,createTransformer:jd,getAnimatableNone:function(e){const t=Fd(e);return jd(e)(t.map(Bd))}};function Ud(e,t){return"number"==typeof e?n=>Od(e,t,n):Dd.test(e)?Id(e,t):Yd(e,t)}const Hd=(e,t)=>{const n=[...e],r=n.length,o=e.map(((e,n)=>Ud(e,t[n])));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}},zd=(e,t)=>{const n={...e,...t},r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=Ud(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}},Yd=(e,t)=>{const n=Wd.createTransformer(t),r=Nd(e),o=Nd(t);return r.numColors===o.numColors&&r.numNumbers>=o.numNumbers?hu(Hd(r.values,o.values),n):(Yu(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),n=>`${n>0?t:e}`)},Xd=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},Kd=(e,t)=>n=>Od(e,t,n);function qd(e,t,n){const r=[],o=n||("number"==typeof(i=e[0])?Kd:"string"==typeof i?Dd.test(i)?Id:Yd:Array.isArray(i)?Hd:"object"==typeof i?zd:Kd);var i;const s=e.length-1;for(let a=0;a<s;a++){let n=o(e[a],e[a+1]);if(t){const e=Array.isArray(t)?t[a]||_u:t;n=hu(e,n)}r.push(n)}return r}function Gd(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(Xu(i===t.length,"Both input and output ranges must be the same length"),1===i)return()=>t[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=qd(t,r,o),a=s.length,l=t=>{let n=0;if(a>1)for(;n<e.length-2&&!(t<e[n+1]);n++);const r=Xd(e[n],e[n+1],t);return s[n](r)};return n?t=>l(fc(e[0],e[i-1],t)):l}function Zd(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Xd(0,t,r);e.push(Od(n,1,o))}}(t,e.length-1),t}function Jd({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=fd(r)?r.map(Ed):Ed(r),i={done:!1,value:t[0]},s=function(e,t){return e.map((e=>e*t))}(n&&n.length===t.length?n:Zd(t),e),a=Gd(s,t,{ease:Array.isArray(o)?o:(l=t,c=o,l.map((()=>c||dd)).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(i.value=a(t),i.done=t>=e,i)}}function Qd(e,t){return t?e*(1e3/t):0}const ef=5;function tf(e,t,n){const r=Math.max(t-ef,0);return Qd(n-e(r),t-r)}const nf=.001,rf=.01,of=10,sf=.05,af=1;function lf({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;Yu(e<=Ku(of),"Spring duration must be 10 seconds or less");let s=1-t;s=fc(sf,af,s),e=fc(rf,of,qu(e)),s<1?(o=t=>{const r=t*s,o=r*e,i=r-n,a=uf(t,s),l=Math.exp(-o);return nf-i/a*l},i=t=>{const r=t*s*e,i=r*n+n,a=Math.pow(s,2)*Math.pow(t,2)*e,l=Math.exp(-r),c=uf(Math.pow(t,2),s);return(-o(t)+nf>0?-1:1)*((i-a)*l)/c}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-nf,i=t=>Math.exp(-t*e)*(e*e*(n-t)));const a=function(e,t,n){let r=n;for(let o=1;o<cf;o++)r-=e(r)/t(r);return r}(o,i,5/e);if(e=Ku(e),isNaN(a))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(a,2)*r;return{stiffness:t,damping:2*s*Math.sqrt(r*t),duration:e}}}const cf=12;function uf(e,t){return e*Math.sqrt(1-t*t)}const df=["duration","bounce"],ff=["stiffness","damping","mass"];function pf(e,t){return t.some((t=>void 0!==e[t]))}function hf({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],s={done:!1,value:o},{stiffness:a,damping:l,mass:c,velocity:u,duration:d,isResolvedFromDuration:f}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!pf(e,ff)&&pf(e,df)){const n=lf(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}(r),p=u?-qu(u):0,h=l/(2*Math.sqrt(a*c)),m=i-o,v=qu(Math.sqrt(a/c)),g=Math.abs(m)<5;let y;if(n||(n=g?.01:2),t||(t=g?.005:.5),h<1){const e=uf(v,h);y=t=>{const n=Math.exp(-h*v*t);return i-n*((p+h*v*m)/e*Math.sin(e*t)+m*Math.cos(e*t))}}else if(1===h)y=e=>i-Math.exp(-v*e)*(m+(p+v*m)*e);else{const e=v*Math.sqrt(h*h-1);y=t=>{const n=Math.exp(-h*v*t),r=Math.min(e*t,300);return i-n*((p+h*v*m)*Math.sinh(r)+e*m*Math.cosh(r))/e}}return{calculatedDuration:f&&d||null,next:e=>{const r=y(e);if(f)s.done=e>=d;else{let o=p;0!==e&&(o=h<1?tf(y,e,r):0);const a=Math.abs(o)<=n,l=Math.abs(i-r)<=t;s.done=a&&l}return s.value=s.done?i:r,s}}}function mf({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],f={done:!1,value:d},p=e=>void 0===a?l:void 0===l||Math.abs(a-e)<Math.abs(l-e)?a:l;let h=n*t;const m=d+h,v=void 0===s?m:s(m);v!==m&&(h=v-d);const g=e=>-h*Math.exp(-e/r),y=e=>v+g(e),b=e=>{const t=g(e),n=y(e);f.done=Math.abs(t)<=c,f.value=f.done?v:n};let w,x;const E=e=>{var t;(t=f.value,void 0!==a&&t<a||void 0!==l&&t>l)&&(w=e,x=hf({keyframes:[f.value,p(f.value)],velocity:tf(y,e,f.value),damping:o,stiffness:i,restDelta:c,restSpeed:u}))};return E(0),{calculatedDuration:null,next:e=>{let t=!1;return x||void 0!==w||(t=!0,b(e),E(e)),void 0!==w&&e>w?x.next(e-w):(!t&&b(e),f)}}}const vf=e=>{const t=({timestamp:t})=>e(t);return{start:()=>Tu.update(t,!0),stop:()=>Ru.update(t),now:()=>xu.isProcessing?xu.timestamp:performance.now()}},gf={decay:mf,inertia:mf,tween:Jd,keyframes:Jd,spring:hf},yf=2e4;function bf(e){let t=0;let n=e.next(t);for(;!n.done&&t<yf;)t+=50,n=e.next(t);return t>=yf?1/0:t}function wf({autoplay:e=!0,delay:t=0,driver:n=vf,keyframes:r,type:o="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:a="loop",onPlay:l,onStop:c,onComplete:u,onUpdate:d,...f}){let p,h,m=1,v=!1;const g=()=>{p&&p(),h=new Promise((e=>{p=e}))};let y;g();const b=gf[o]||Jd;let w;b!==Jd&&"number"!=typeof r[0]&&(w=Gd([0,100],r,{clamp:!1}),r=[0,100]);const x=b({...f,keyframes:r});let E;"mirror"===a&&(E=b({...f,keyframes:[...r].reverse(),velocity:-(f.velocity||0)}));let S="idle",P=null,C=null,T=null;null===x.calculatedDuration&&i&&(x.calculatedDuration=bf(x));const{calculatedDuration:R}=x;let A=1/0,D=1/0;null!==R&&(A=R+s,D=A*(i+1)-s);let O=0;const k=e=>{if(null===C)return;m>0&&(C=Math.min(C,e)),O=null!==P?P:(e-C)*m;const n=O-t,o=n<0;O=Math.max(n,0),"finished"===S&&null===P&&(O=D);let l=O,c=x;if(i){const e=O/A;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,i+1);const r=Boolean(t%2);r&&("reverse"===a?(n=1-n,s&&(n-=s/A)):"mirror"===a&&(c=E));let o=fc(0,1,n);O>D&&(o="reverse"===a&&r?1:0),l=o*A}const u=o?{done:!1,value:r[0]}:c.next(l);w&&(u.value=w(u.value));let{done:f}=u;o||null===R||(f=O>=D);const p=null===P&&("finished"===S||"running"===S&&f||m<0&&O<=0);return d&&d(u.value),p&&_(),u},L=()=>{y&&y.stop(),y=void 0},M=()=>{S="idle",L(),g(),C=T=null},_=()=>{S="finished",u&&u(),L(),g()},I=()=>{if(v)return;y||(y=n(k));const e=y.now();l&&l(),S="running",null!==P?C=e-P:C||(C=e),T=C,P=null,y.start()};e&&I();const $={then:(e,t)=>h.then(e,t),get time(){return qu(O)},set time(e){e=Ku(e),O=e,null===P&&y&&0!==m?C=y.now()-e/m:P=e},get duration(){const e=null===x.calculatedDuration?bf(x):x.calculatedDuration;return qu(e)},get speed(){return m},set speed(e){e!==m&&y&&(m=e,$.time=qu(O))},get state(){return S},play:I,pause:()=>{S="paused",P=O},stop:()=>{v=!0,"idle"!==S&&(S="idle",c&&c(),M())},cancel:()=>{null!==T&&k(T),M()},complete:()=>{S="finished"},sample:e=>(C=0,k(e))};return $}const xf=new Set(["opacity","clipPath","filter","transform","backgroundColor"]);function Ef(e,t,{onUpdate:n,onComplete:r,...o}){if(!(od.waapi()&&xf.has(t)&&!o.repeatDelay&&"mirror"!==o.repeatType&&0!==o.damping&&"inertia"!==o.type))return!1;let i,s,a=!1;const l=()=>{s=new Promise((e=>{i=e}))};l();let{keyframes:c,duration:u=300,ease:d}=o;if(((e,t)=>"spring"===t.type||"backgroundColor"===e||!Ju(t.ease))(t,o)){const e=wf({...o,repeat:0,delay:0});let t={done:!1,value:c[0]};const n=[];let r=0;for(;!t.done&&r<2e4;)t=e.sample(r),n.push(t.value),r+=10;c=n,u=r-10,d="linear"}const f=function(e,t,n,{delay:r=0,duration:o,repeat:i=0,repeatType:s="loop",ease:a,times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=td(a);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:r,duration:o,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:"reverse"===s?"alternate":"normal"})}(e.owner.current,t,c,{...o,duration:u,ease:d}),p=()=>{Tu.update((()=>f.cancel())),i(),l()};return f.onfinish=()=>{e.set(function(e,{repeat:t,repeatType:n="loop"}){return e[t&&"loop"!==n&&t%2==1?0:e.length-1]}(c,o)),r&&r(),p()},{then:(e,t)=>s.then(e,t),get time(){return qu(f.currentTime||0)},set time(e){f.currentTime=Ku(e)},get speed(){return f.playbackRate},set speed(e){f.playbackRate=e},get duration(){return qu(u)},play:()=>{a||f.play()},pause:()=>f.pause(),stop:()=>{if(a=!0,"idle"===f.playState)return;const{currentTime:t}=f;if(t){const n=wf({...o,autoplay:!1});e.setWithVelocity(n.sample(t-10).value,n.sample(t).value,10)}p()},complete:()=>f.finish(),cancel:p}}const Sf={type:"spring",stiffness:500,damping:25,restSpeed:10},Pf={type:"keyframes",duration:.8},Cf={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Tf=(e,{keyframes:t})=>t.length>2?Pf:rc.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:Sf:Cf,Rf=(e,t)=>"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!Wd.test(t)||t.startsWith("url("))),Af=new Set(["brightness","contrast","saturate","opacity"]);function Df(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(gc)||[];if(!r)return e;const o=n.replace(r,"");let i=Af.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const Of=/([a-z-]*)\(.*?\)/g,kf={...Wd,getAnimatableNone:e=>{const t=e.match(Of);return t?t.map(Df).join(" "):e}},Lf={...Dc,color:Dd,backgroundColor:Dd,outlineColor:Dd,fill:Dd,stroke:Dd,borderColor:Dd,borderTopColor:Dd,borderRightColor:Dd,borderBottomColor:Dd,borderLeftColor:Dd,filter:kf,WebkitFilter:kf},Mf=e=>Lf[e];function _f(e,t){let n=Mf(e);return n!==kf&&(n=Wd),n.getAnimatableNone?n.getAnimatableNone(t):void 0}function If(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function $f(e){return"number"==typeof e?0:_f("",e)}function Vf(e,t){return e[t]||e.default||e}const Nf=(e,t,n,r={})=>o=>{const i=Vf(r,e)||{},s=i.delay||r.delay||0;let{elapsed:a=0}=r;a-=Ku(s);const l=function(e,t,n,r){const o=Rf(t,n);let i=void 0!==r.from?r.from:e.get();if("none"===i&&o&&"string"==typeof n?i=_f(t,n):If(i)&&"string"==typeof n?i=$f(n):!Array.isArray(n)&&If(n)&&"string"==typeof i&&(n=$f(i)),Array.isArray(n)){for(let e=0;e<n.length;e++)null===n[e]&&(n[e]=0===e?i:n[e-1]);return n}return[i,n]}(t,e,n,i),c=l[0],u=l[l.length-1],d=Rf(e,c),f=Rf(e,u);Yu(d===f,`You are trying to animate ${e} from "${c}" to "${u}". ${c} is not an animatable value - to enable this animation set ${c} to a value animatable to ${u} via the \`style\` property.`);let p={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...i,delay:-a,onUpdate:e=>{t.set(e),i.onUpdate&&i.onUpdate(e)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}(i)||(p={...p,...Tf(e,p)}),p.duration&&(p.duration=Ku(p.duration)),p.repeatDelay&&(p.repeatDelay=Ku(p.repeatDelay)),!d||!f||Gu||!1===i.type)return function({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const o=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:_u,pause:_u,stop:_u,then:e=>(e(),Promise.resolve()),cancel:_u,complete:_u});return t?wf({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}(p);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const n=Ef(t,e,p);if(n)return n}return wf(p)};function Ff(e){return Boolean(ic(e)&&e.add)}const jf=e=>/^0[^.\s]+$/.test(e);function Bf(e,t){-1===e.indexOf(t)&&e.push(t)}function Wf(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Uf{constructor(){this.subscriptions=[]}add(e){return Bf(this.subscriptions,e),()=>Wf(this.subscriptions,e)}notify(e,t,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let o=0;o<r;o++){const r=this.subscriptions[o];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Hf=new Set;function zf(e,t,n){e||Hf.has(t)||(console.warn(t),n&&console.warn(n),Hf.add(t))}class Yf{constructor(e,t={}){var n;this.version="10.10.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(e,t=!0)=>{this.prev=this.current,this.current=e;const{delta:n,timestamp:r}=xu;this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,Tu.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Tu.postRender(this.velocityCheck),this.velocityCheck=({timestamp:e})=>{e!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n))),this.owner=t.owner}onChange(e){return"production"!==process.env.NODE_ENV&&zf(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new Uf);const n=this.events[e].add(t);return"change"===e?()=>{n(),Tu.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=e,this.timeDelta=n}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Qd(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise((t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Xf(e,t){return new Yf(e,t)}const Kf=e=>t=>t.test(e),qf=[pc,Pc,Sc,Ec,Tc,Cc,{test:e=>"auto"===e,parse:e=>e}],Gf=e=>qf.find(Kf(e)),Zf=[...qf,Dd,Wd],Jf=e=>Zf.find(Kf(e));function Qf(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Xf(n))}function ep(e,t){if(!t)return;return(t[e]||t.default||t).from}function tp({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function np(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:s,...a}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");r&&(i=r);const c=[],u=o&&e.animationState&&e.animationState.getState()[o];for(const d in a){const t=e.getValue(d),r=a[d];if(!t||void 0===r||u&&tp(u,d))continue;const o={delay:n,elapsed:0,...i};if(window.HandoffAppearAnimations&&!t.hasAnimated){const n=e.getProps()[zu];n&&(o.elapsed=window.HandoffAppearAnimations(n,d,t,Tu))}t.start(Nf(d,t,r,e.shouldReduceMotion&&rc.has(d)?{type:!1}:o));const s=t.animation;Ff(l)&&(l.add(d),s.then((()=>l.remove(d)))),c.push(s)}return s&&Promise.all(c).then((()=>{s&&function(e,t){const n=Hu(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const s in i)Qf(e,s,nu(i[s]))}(e,s)})),c}function rp(e,t,n={}){const r=Hu(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(np(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(r=0)=>{const{delayChildren:i=0,staggerChildren:s,staggerDirection:a}=o;return function(e,t,n=0,r=0,o=1,i){const s=[],a=(e.variantChildren.size-1)*r,l=1===o?(e=0)=>e*r:(e=0)=>a-e*r;return Array.from(e.variantChildren).sort(op).forEach(((e,r)=>{e.notify("AnimationStart",t),s.push(rp(e,t,{...i,delay:n+l(r)}).then((()=>e.notify("AnimationComplete",t))))})),Promise.all(s)}(e,t,i+r,s,a,n)}:()=>Promise.resolve(),{when:a}=o;if(a){const[e,t]="beforeChildren"===a?[i,s]:[s,i];return e().then((()=>t()))}return Promise.all([i(),s(n.delay)])}function op(e,t){return e.sortNodePosition(t)}const ip=[...$l].reverse(),sp=$l.length;function ap(e){return t=>Promise.all(t.map((({animation:t,options:n})=>function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t)){const o=t.map((t=>rp(e,t,n)));r=Promise.all(o)}else if("string"==typeof t)r=rp(e,t,n);else{const o="function"==typeof t?Hu(e,t,n.custom):t;r=Promise.all(np(e,o,n))}return r.then((()=>e.notify("AnimationComplete",t)))}(e,t,n))))}function lp(e){let t=ap(e);const n={animate:up(!0),whileInView:up(),whileHover:up(),whileTap:up(),whileDrag:up(),whileFocus:up(),exit:up()};let r=!0;const o=(t,n)=>{const r=Hu(e,n);if(r){const{transition:e,transitionEnd:n,...o}=r;t={...t,...o,...n}}return t};function i(i,s){const a=e.getProps(),l=e.getVariantContext(!0)||{},c=[],u=new Set;let d={},f=1/0;for(let t=0;t<sp;t++){const p=ip[t],h=n[p],m=void 0!==a[p]?a[p]:l[p],v=_l(m),g=p===s?h.isActive:null;!1===g&&(f=t);let y=m===l[p]&&m!==a[p]&&v;if(y&&r&&e.manuallyAnimateOnMount&&(y=!1),h.protectedKeys={...d},!h.isActive&&null===g||!m&&!h.prevProp||Il(m)||"boolean"==typeof m)continue;const b=cp(h.prevProp,m);let w=b||p===s&&h.isActive&&!y&&v||t>f&&v;const x=Array.isArray(m)?m:[m];let E=x.reduce(o,{});!1===g&&(E={});const{prevResolvedValues:S={}}=h,P={...S,...E},C=e=>{w=!0,u.delete(e),h.needsAnimating[e]=!0};for(const e in P){const t=E[e],n=S[e];d.hasOwnProperty(e)||(t!==n?eu(t)&&eu(n)?!Uu(t,n)||b?C(e):h.protectedKeys[e]=!0:void 0!==t?C(e):u.add(e):void 0!==t&&u.has(e)?C(e):h.protectedKeys[e]=!0)}h.prevProp=m,h.prevResolvedValues=E,h.isActive&&(d={...d,...E}),r&&e.blockInitialAnimation&&(w=!1),w&&!y&&c.push(...x.map((e=>({animation:e,options:{type:p,...i}}))))}if(u.size){const t={};u.forEach((n=>{const r=e.getBaseTarget(n);void 0!==r&&(t[n]=r)})),c.push({animation:t})}let p=Boolean(c.length);return r&&!1===a.initial&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,p?t(c):Promise.resolve()}return{animateChanges:i,setActive:function(t,r,o){var s;if(n[t].isActive===r)return Promise.resolve();null===(s=e.variantChildren)||void 0===s||s.forEach((e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)})),n[t].isActive=r;const a=i(o,t);for(const e in n)n[e].protectedKeys={};return a},setAnimateFunction:function(n){t=n(e)},getState:()=>n}}function cp(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!Uu(t,e)}function up(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let dp=0;const fp={animation:{Feature:class extends wu{constructor(e){super(e),e.animationState||(e.animationState=lp(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),Il(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends wu{constructor(){super(...arguments),this.id=dp++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t,custom:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;const o=this.node.animationState.setActive("exit",!e,{custom:null!=n?n:this.node.getProps().custom});t&&!e&&o.then((()=>t(this.id)))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}},pp=(e,t)=>Math.abs(e-t);class hp{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;const e=gp(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=pp(e.x,t.x),r=pp(e.y,t.y);return Math.sqrt(n**2+r**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;const{point:r}=e,{timestamp:o}=xu;this.history.push({...r,timestamp:o});const{onStart:i,onMove:s}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),s&&s(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=mp(t,this.transformPagePoint),Tu.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{if(this.end(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const{onEnd:n,onSessionEnd:r}=this.handlers,o=gp("pointercancel"===e.type?this.lastMoveEventInfo:mp(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),r&&r(e,o)},!cu(e))return;this.handlers=t,this.transformPagePoint=n;const r=mp(uu(e),this.transformPagePoint),{point:o}=r,{timestamp:i}=xu;this.history=[{...o,timestamp:i}];const{onSessionStart:s}=t;s&&s(e,gp(r,this.history)),this.removeListeners=hu(fu(window,"pointermove",this.handlePointerMove),fu(window,"pointerup",this.handlePointerUp),fu(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Ru.update(this.updatePoint)}}function mp(e,t){return t?{point:t(e.point)}:e}function vp(e,t){return{x:e.x-t.x,y:e.y-t.y}}function gp({point:e},t){return{point:e,delta:vp(e,bp(t)),offset:vp(e,yp(t)),velocity:wp(t,.1)}}function yp(e){return e[0]}function bp(e){return e[e.length-1]}function wp(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=bp(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Ku(t)));)n--;if(!r)return{x:0,y:0};const i=qu(o.timestamp-r.timestamp);if(0===i)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function xp(e){return e.max-e.min}function Ep(e,t=0,n=.01){return Math.abs(e-t)<=n}function Sp(e,t,n,r=.5){e.origin=r,e.originPoint=Od(t.min,t.max,e.origin),e.scale=xp(n)/xp(t),(Ep(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Od(n.min,n.max,e.origin)-e.originPoint,(Ep(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Pp(e,t,n,r){Sp(e.x,t.x,n.x,r?r.originX:void 0),Sp(e.y,t.y,n.y,r?r.originY:void 0)}function Cp(e,t,n){e.min=n.min+t.min,e.max=e.min+xp(t)}function Tp(e,t,n){e.min=t.min-n.min,e.max=e.min+xp(t)}function Rp(e,t,n){Tp(e.x,t.x,n.x),Tp(e.y,t.y,n.y)}function Ap(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 Dp(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}}const Op=.35;function kp(e,t,n){return{min:Lp(e,t),max:Lp(e,n)}}function Lp(e,t){return"number"==typeof e?e:e[t]||0}const Mp=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),_p=()=>({x:{min:0,max:0},y:{min:0,max:0}});function Ip(e){return[e("x"),e("y")]}function $p({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Vp(e){return void 0===e||1===e}function Np({scale:e,scaleX:t,scaleY:n}){return!Vp(e)||!Vp(t)||!Vp(n)}function Fp(e){return Np(e)||jp(e)||e.z||e.rotate||e.rotateX||e.rotateY}function jp(e){return Bp(e.x)||Bp(e.y)}function Bp(e){return e&&"0%"!==e}function Wp(e,t,n){return n+t*(e-n)}function Up(e,t,n,r,o){return void 0!==o&&(e=Wp(e,o,r)),Wp(e,n,r)+t}function Hp(e,t=0,n=1,r,o){e.min=Up(e.min,t,n,r,o),e.max=Up(e.max,t,n,r,o)}function zp(e,{x:t,y:n}){Hp(e.x,t.translate,t.scale,t.originPoint),Hp(e.y,n.translate,n.scale,n.originPoint)}function Yp(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function Xp(e,t){e.min=e.min+t,e.max=e.max+t}function Kp(e,t,[n,r,o]){const i=void 0!==t[o]?t[o]:.5,s=Od(e.min,e.max,i);Hp(e,t[n],t[r],s,t.scale)}const qp=["x","scaleX","originX"],Gp=["y","scaleY","originY"];function Zp(e,t){Kp(e.x,t,qp),Kp(e.y,t,Gp)}function Jp(e,t){return $p(function(e,t){if(!t)return e;const 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))}const Qp=new WeakMap;class eh{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=_p(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;this.panSession=new hp(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(uu(e,"page").point)},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:o}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=yu(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ip((e=>{let t=this.getAxisMotionValue(e).get()||0;if(Sc.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];if(r){t=xp(r)*(parseFloat(t)/100)}}}this.originPoint[e]=t})),o&&Tu.update((()=>o(e,t)));const{animationState:i}=this.visualElement;i&&i.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:o,onDrag:i}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:s}=t;if(r&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let n=null;Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x");return n}(s),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",t.point,s),this.updateAxis("y",t.point,s),this.visualElement.render(),i&&i(e,t)},onSessionEnd:(e,t)=>this.stop(e,t)},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(e,t){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:r}=t;this.startAnimation(r);const{onDragEnd:o}=this.getProps();o&&Tu.update((()=>o(e,t)))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){const{drag:r}=this.getProps();if(!n||!th(e,r,this.currentDirection))return;const o=this.getAxisMotionValue(e);let 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?Od(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?Od(n,e,r.max):Math.min(e,n)),e}(i,this.constraints[e],this.elastic[e])),o.set(i)}resolveConstraints(){const{dragConstraints:e,dragElastic:t}=this.getProps(),{layout:n}=this.visualElement.projection||{},r=this.constraints;e&&Ml(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!n)&&function(e,{top:t,left:n,bottom:r,right:o}){return{x:Ap(e.x,n,o),y:Ap(e.y,t,r)}}(n.layoutBox,e),this.elastic=function(e=Op){return!1===e?e=0:!0===e&&(e=Op),{x:kp(e,"left","right"),y:kp(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&Ip((e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(n.layoutBox[e],this.constraints[e]))}))}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Ml(e))return!1;const n=e.current;Xu(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const o=function(e,t,n){const r=Jp(e,n),{scroll:o}=t;return o&&(Xp(r.x,o.offset.x),Xp(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:Dp(e.x,t.x),y:Dp(e.y,t.y)}}(r.layout.layoutBox,o);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(i));this.hasMutatedConstraints=!!e,e&&(i=$p(e))}return i}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{},l=Ip((s=>{if(!th(s,t,this.currentDirection))return;let l=a&&a[s]||{};i&&(l={min:0,max:0});const c=r?200:1e6,u=r?40:1e7,d={type:"inertia",velocity:n?e[s]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(s,d)}));return Promise.all(l).then(s)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return n.start(Nf(e,n,0,t))}stopAnimation(){Ip((e=>this.getAxisMotionValue(e).stop()))}getAxisMotionValue(e){const t="_drag"+e.toUpperCase(),n=this.visualElement.getProps(),r=n[t];return r||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){Ip((t=>{const{drag:n}=this.getProps();if(!th(t,n,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(t);if(r&&r.layout){const{min:n,max:i}=r.layout.layoutBox[t];o.set(e[t]-Od(n,i,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Ml(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};Ip((e=>{const t=this.getAxisMotionValue(e);if(t){const n=t.get();r[e]=function(e,t){let n=.5;const r=xp(e),o=xp(t);return o>r?n=Xd(t.min,t.max-r,e.min):r>o&&(n=Xd(e.min,e.max-o,t.min)),fc(0,1,n)}({min:n,max:n},this.constraints[e])}}));const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Ip((t=>{if(!th(t,e,null))return;const n=this.getAxisMotionValue(t),{min:o,max:i}=this.constraints[t];n.set(Od(o,i,r[t]))}))}addListeners(){if(!this.visualElement.current)return;Qp.set(this.visualElement,this);const e=fu(this.visualElement.current,"pointerdown",(e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)})),t=()=>{const{dragConstraints:e}=this.getProps();Ml(e)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),t();const o=lu(window,"resize",(()=>this.scalePositionWithinConstraints())),i=n.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Ip((t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))})),this.visualElement.render())}));return()=>{o(),e(),r(),i&&i()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:i=Op,dragMomentum:s=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:s}}}function th(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const nh=e=>(t,n)=>{e&&Tu.update((()=>e(t,n)))};function rh(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const oh={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!Pc.test(e))return e;e=parseFloat(e)}return`${rh(e,t.target.x)}% ${rh(e,t.target.y)}%`}},ih=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;const sh=4;function ah(e,t,n=1){Xu(n<=sh,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,o]=function(e){const t=ih.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);return i?i.trim():uc(o)?ah(o,t,n+1):o}const lh="_$css",ch={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=e.includes("var("),i=[];o&&(e=e.replace(ih,(e=>(i.push(e),lh))));const s=Wd.parse(e);if(s.length>5)return r;const a=Wd.createTransformer(e),l="number"!=typeof s[0]?1:0,c=n.x.scale*t.x,u=n.y.scale*t.y;s[0+l]/=c,s[1+l]/=u;const d=Od(c,u,.5);"number"==typeof s[2+l]&&(s[2+l]/=d),"number"==typeof s[3+l]&&(s[3+l]/=d);let f=a(s);if(o){let e=0;f=f.replace(lh,(()=>{const t=i[e];return e++,t}))}return f}};class uh extends e.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=e;var i;i=fh,Object.assign(tc,i),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()})),zl.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{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()||Tu.postRender((()=>{const e=i.getStack();e&&e.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function dh(t){const[n,r]=function(){const t=e.useContext(Dl);if(null===t)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,i=e.useId();return e.useEffect((()=>o(i)),[]),!n&&r?[!1,()=>r&&r(i)]:[!0]}(),o=e.useContext(Xl);return e.createElement(uh,{...t,layoutGroup:o,switchLayoutGroup:e.useContext(Kl),isPresent:n,safeToRemove:r})}const fh={borderRadius:{...oh,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:oh,borderTopRightRadius:oh,borderBottomLeftRadius:oh,borderBottomRightRadius:oh,boxShadow:ch},ph=["TopLeft","TopRight","BottomLeft","BottomRight"],hh=ph.length,mh=e=>"string"==typeof e?parseFloat(e):e,vh=e=>"number"==typeof e||Pc.test(e);function gh(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const yh=wh(0,.5,vd),bh=wh(.5,.95,_u);function wh(e,t,n){return r=>r<e?0:r>t?1:n(Xd(e,t,r))}function xh(e,t){e.min=t.min,e.max=t.max}function Eh(e,t){xh(e.x,t.x),xh(e.y,t.y)}function Sh(e,t,n,r,o){return e=Wp(e-=t,1/n,r),void 0!==o&&(e=Wp(e,1/o,r)),e}function Ph(e,t,[n,r,o],i,s){!function(e,t=0,n=1,r=.5,o,i=e,s=e){Sc.test(t)&&(t=parseFloat(t),t=Od(s.min,s.max,t/100)-s.min);if("number"!=typeof t)return;let a=Od(i.min,i.max,r);e===i&&(a-=t),e.min=Sh(e.min,t,n,a,o),e.max=Sh(e.max,t,n,a,o)}(e,t[n],t[r],t[o],t.scale,i,s)}const Ch=["x","scaleX","originX"],Th=["y","scaleY","originY"];function Rh(e,t,n,r){Ph(e.x,t,Ch,n?n.x:void 0,r?r.x:void 0),Ph(e.y,t,Th,n?n.y:void 0,r?r.y:void 0)}function Ah(e){return 0===e.translate&&1===e.scale}function Dh(e){return Ah(e.x)&&Ah(e.y)}function Oh(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}function kh(e){return xp(e.x)/xp(e.y)}class Lh{constructor(){this.members=[]}add(e){Bf(this.members,e),e.scheduleRender()}remove(e){if(Wf(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex((t=>e===t));if(0===t)return!1;let n;for(let r=t;r>=0;r--){const e=this.members[r];if(!1!==e.isPresent){n=e;break}}return!!n&&(this.promote(n),!0)}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:r}=e.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach((e=>{const{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((e=>{e.instance&&e.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Mh(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(r=`translate3d(${o}px, ${i}px, 0) `),1===t.x&&1===t.y||(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:e,rotateX:t,rotateY:o}=n;e&&(r+=`rotate(${e}deg) `),t&&(r+=`rotateX(${t}deg) `),o&&(r+=`rotateY(${o}deg) `)}const s=e.x.scale*t.x,a=e.y.scale*t.y;return 1===s&&1===a||(r+=`scale(${s}, ${a})`),r||"none"}const _h=(e,t)=>e.depth-t.depth;class Ih{constructor(){this.children=[],this.isDirty=!1}add(e){Bf(this.children,e),this.isDirty=!0}remove(e){Wf(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(_h),this.isDirty=!1,this.children.forEach(e)}}const $h=["","X","Y","Z"];let Vh=0;const Nh={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Fh({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(e,n={},r=(null==t?void 0:t())){this.id=Vh++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{var e;Nh.totalNodes=Nh.resolvedTargetDeltas=Nh.recalculatedProjection=0,this.nodes.forEach(Wh),this.nodes.forEach(Kh),this.nodes.forEach(qh),this.nodes.forEach(Uh),e=Nh,window.MotionDebug&&window.MotionDebug.record(e)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.elementId=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 t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new Ih)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Uf),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}registerPotentialNode(e,t){this.potentialNodes.set(e,t)}mount(t,n=!1){if(this.instance)return;var r;this.isSVG=(r=t)instanceof SVGElement&&"svg"!==r.tagName,this.instance=t;const{layoutId:o,layout:i,visualElement:s}=this.options;if(s&&!s.current&&s.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.elementId&&this.root.potentialNodes.delete(this.elementId),n&&(i||o)&&(this.isLayoutDirty=!0),e){let n;const r=()=>this.root.updateBlockedByResize=!1;e(t,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){const n=performance.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(Ru.read(r),e(i-t))};return Tu.read(r,!0),()=>Ru.read(r)}(r,250),zl.hasAnimatedSinceResize&&(zl.hasAnimatedSinceResize=!1,this.nodes.forEach(Xh))}))}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&s&&(o||i)&&this.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const o=this.options.transition||s.getDefaultTransition()||tm,{onLayoutAnimationStart:i,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!Oh(this.targetLayout,r)||n,c=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,c);const t={...Vf(o,"layout"),onPlay:i,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||0!==this.animationProgress||Xh(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Ru.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Gh),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let o=0;o<this.path.length;o++){const e=this.path[o];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}const{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;const r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}didUpdate(){if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(zh);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(nm),this.potentialNodes.clear()),this.nodes.forEach(Yh),this.nodes.forEach(jh),this.nodes.forEach(Bh),this.clearAllSnapshots(),Au.update(),Au.preRender(),Au.render())}clearAllSnapshots(){this.nodes.forEach(Hh),this.sharedNodes.forEach(Zh)}scheduleUpdateProjection(){Tu.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){Tu.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let n=0;n<this.path.length;n++){this.path[n].updateScroll()}const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=_p(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&(this.scroll={animationId:this.root.animationId,phase:e,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!o)return;const e=this.isLayoutDirty||this.shouldResetTransform,t=this.projectionDelta&&!Dh(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;e&&(t||Fp(this.latestValues)||i)&&(o(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let n=this.removeElementScroll(t);var r;return e&&(n=this.removeTransform(n)),rm((r=n).x),rm(r.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:e}=this.options;if(!e)return _p();const t=e.measureViewportBox(),{scroll:n}=this.root;return n&&(Xp(t.x,n.offset.x),Xp(t.y,n.offset.y)),t}removeElementScroll(e){const t=_p();Eh(t,e);for(let n=0;n<this.path.length;n++){const r=this.path[n],{scroll:o,options:i}=r;if(r!==this.root&&o&&i.layoutScroll){if(o.isRoot){Eh(t,e);const{scroll:n}=this.root;n&&(Xp(t.x,-n.offset.x),Xp(t.y,-n.offset.y))}Xp(t.x,o.offset.x),Xp(t.y,o.offset.y)}}return t}applyTransform(e,t=!1){const n=_p();Eh(n,e);for(let r=0;r<this.path.length;r++){const e=this.path[r];!t&&e.options.layoutScroll&&e.scroll&&e!==e.root&&Zp(n,{x:-e.scroll.offset.x,y:-e.scroll.offset.y}),Fp(e.latestValues)&&Zp(n,e.latestValues)}return Fp(this.latestValues)&&Zp(n,this.latestValues),n}removeTransform(e){const t=_p();Eh(t,e);for(let n=0;n<this.path.length;n++){const e=this.path[n];if(!e.instance)continue;if(!Fp(e.latestValues))continue;Np(e.latestValues)&&e.updateSnapshot();const r=_p();Eh(r,e.measurePageBox()),Rh(t,e.latestValues,e.snapshot?e.snapshot.layoutBox:void 0,r)}return Fp(this.latestValues)&&Rh(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}resolveTargetDelta(e=!1){var t;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const r=Boolean(this.resumingFrom)||this!==n;if(!(e||r&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;const{layout:o,layoutId:i}=this.options;if(this.layout&&(o||i)){if(this.resolvedRelativeTargetAt=xu.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout?(this.relativeParent=e,this.relativeTarget=_p(),this.relativeTargetOrigin=_p(),Rp(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),Eh(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var s,a,l;if(this.target||(this.target=_p(),this.targetWithTransforms=_p()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.relativeParent.resolvedRelativeTargetAt!==xu.timestamp&&this.relativeParent.resolveTargetDelta(!0),s=this.target,a=this.relativeTarget,l=this.relativeParent.target,Cp(s.x,a.x,l.x),Cp(s.y,a.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Eh(this.target,this.layout.layoutBox),zp(this.target,this.targetDelta)):Eh(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target?(this.relativeParent=e,this.relativeTarget=_p(),this.relativeTargetOrigin=_p(),Rp(this.relativeTargetOrigin,this.target,e.target),Eh(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Nh.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!Np(this.parent.latestValues)&&!jp(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;const t=this.getLead(),n=Boolean(this.resumingFrom)||this!==t;let r=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===xu.timestamp&&(r=!1),r)return;const{layout:o,layoutId:i}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!o&&!i)return;Eh(this.layoutCorrected,this.layout.layoutBox),function(e,t,n,r=!1){const o=n.length;if(!o)return;let i,s;t.x=t.y=1;for(let a=0;a<o;a++){i=n[a],s=i.projectionDelta;const o=i.instance;o&&o.style&&"contents"===o.style.display||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Zp(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,zp(e,s)),r&&Fp(i.latestValues)&&Zp(e,i.latestValues))}t.x=Yp(t.x),t.y=Yp(t.y)}(this.layoutCorrected,this.treeScale,this.path,n);const{target:s}=t;if(!s)return;this.projectionDelta||(this.projectionDelta=Mp(),this.projectionDeltaWithTransform=Mp());const a=this.treeScale.x,l=this.treeScale.y,c=this.projectionTransform;Pp(this.projectionDelta,this.layoutCorrected,s,this.latestValues),this.projectionTransform=Mh(this.projectionDelta,this.treeScale),this.projectionTransform===c&&this.treeScale.x===a&&this.treeScale.y===l||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",s)),Nh.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(e,t=!1){const n=this.snapshot,r=n?n.latestValues:{},o={...this.latestValues},i=Mp();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const s=_p(),a=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,u=Boolean(a&&!c&&!0===this.options.crossfade&&!this.path.some(em));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;var l,f,p,h;Jh(i.x,e.x,n),Jh(i.y,e.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Rp(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox),l=this.relativeTarget,f=this.relativeTargetOrigin,p=s,h=n,Qh(l.x,f.x,p.x,h),Qh(l.y,f.y,p.y,h),d&&Oh(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||(d=_p()),Eh(d,this.relativeTarget)),a&&(this.animationValues=o,function(e,t,n,r,o,i){o?(e.opacity=Od(0,void 0!==n.opacity?n.opacity:1,yh(r)),e.opacityExit=Od(void 0!==t.opacity?t.opacity:1,0,bh(r))):i&&(e.opacity=Od(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let s=0;s<hh;s++){const o=`border${ph[s]}Radius`;let i=gh(t,o),a=gh(n,o);void 0===i&&void 0===a||(i||(i=0),a||(a=0),0===i||0===a||vh(i)===vh(a)?(e[o]=Math.max(Od(mh(i),mh(a),r),0),(Sc.test(a)||Sc.test(i))&&(e[o]+="%")):e[o]=a)}(t.rotate||n.rotate)&&(e.rotate=Od(t.rotate||0,n.rotate||0,r))}(o,r,this.latestValues,n,u,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Ru.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Tu.update((()=>{zl.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const r=ic(e)?e:Xf(e);return r.start(Nf("",r,t,n)),r.animation}(0,1e3,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:r,latestValues:o}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&om(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||_p();const t=xp(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=xp(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}Eh(t,n),Zp(t,o),Pp(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Lh);this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){const r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(t=!0),!t)return;const r={};for(let o=0;o<$h.length;o++){const t="rotate"+$h[o];n[t]&&(r[t]=n[t],e.setStaticValue(t,0))}e.render();for(const o in r)e.setStaticValue(o,r[o]);e.scheduleRender()}getProjectionStyles(e={}){var t,n;const r={};if(!this.instance||this.isSVG)return r;if(!this.isVisible)return{visibility:"hidden"};r.visibility="";const o=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=ru(e.pointerEvents)||"",r.transform=o?o(this.latestValues,""):"none",r;const i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=ru(e.pointerEvents)||""),this.hasProjected&&!Fp(this.latestValues)&&(t.transform=o?o({},""):"none",this.hasProjected=!1),t}const s=i.animationValues||i.latestValues;this.applyTransformsToTarget(),r.transform=Mh(this.projectionDeltaWithTransform,this.treeScale,s),o&&(r.transform=o(s,r.transform));const{x:a,y:l}=this.projectionDelta;r.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,i.animationValues?r.opacity=i===this?null!==(n=null!==(t=s.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:r.opacity=i===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0;for(const c in tc){if(void 0===s[c])continue;const{correct:e,applyTo:t}=tc[c],n="none"===r.transform?s[c]:e(s[c],i);if(t){const e=t.length;for(let o=0;o<e;o++)r[t[o]]=n}else r[c]=n}return this.options.layoutId&&(r.pointerEvents=i===this?ru(e.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(zh),this.root.sharedNodes.clear()}}}function jh(e){e.updateLayout()}function Bh(e){var t;const n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:r}=e.layout,{animationType:o}=e.options,i=n.source!==e.layout.source;"size"===o?Ip((e=>{const r=i?n.measuredBox[e]:n.layoutBox[e],o=xp(r);r.min=t[e].min,r.max=r.min+o})):om(o,n.layoutBox,t)&&Ip((r=>{const o=i?n.measuredBox[r]:n.layoutBox[r],s=xp(t[r]);o.max=o.min+s,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+s)}));const s=Mp();Pp(s,t,n.layoutBox);const a=Mp();i?Pp(a,e.applyTransform(r,!0),n.measuredBox):Pp(a,t,n.layoutBox);const l=!Dh(s);let c=!1;if(!e.resumeFrom){const r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:o,layout:i}=r;if(o&&i){const s=_p();Rp(s,n.layoutBox,o.layoutBox);const a=_p();Rp(a,t,i.layoutBox),Oh(s,a)||(c=!0),r.options.layoutRoot&&(e.relativeTarget=a,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function Wh(e){Nh.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Uh(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Hh(e){e.clearSnapshot()}function zh(e){e.clearMeasurements()}function Yh(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Xh(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function Kh(e){e.resolveTargetDelta()}function qh(e){e.calcProjection()}function Gh(e){e.resetRotation()}function Zh(e){e.removeLeadSnapshot()}function Jh(e,t,n){e.translate=Od(t.translate,0,n),e.scale=Od(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Qh(e,t,n,r){e.min=Od(t.min,n.min,r),e.max=Od(t.max,n.max,r)}function em(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const tm={duration:.45,ease:[.4,0,.1,1]};function nm(e,t){let n=e.root;for(let o=e.path.length-1;o>=0;o--)if(Boolean(e.path[o].instance)){n=e.path[o];break}const r=(n&&n!==e.root?n.instance:document).querySelector(`[data-projection-id="${t}"]`);r&&e.mount(r,!0)}function rm(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function om(e,t,n){return"position"===e||"preserve-aspect"===e&&!Ep(kh(t),kh(n),.2)}const im=Fh({attachResizeListener:(e,t)=>lu(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),sm={current:void 0},am=Fh({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!sm.current){const e=new im(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),sm.current=e}return sm.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),lm={pan:{Feature:class extends wu{constructor(){super(...arguments),this.removePointerDownListener=_u}onPointerDown(e){this.session=new hp(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:nh(e),onStart:nh(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&Tu.update((()=>r(e,t)))}}}mount(){this.removePointerDownListener=fu(this.node.current,"pointerdown",(e=>this.onPointerDown(e)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends wu{constructor(e){super(e),this.removeGroupControls=_u,this.removeListeners=_u,this.controls=new eh(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||_u}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:am,MeasureLayout:dh}},cm=new Set(["width","height","top","left","right","bottom","x","y"]),um=e=>cm.has(e),dm=e=>e===pc||e===Pc,fm=(e,t)=>parseFloat(e.split(", ")[t]),pm=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return fm(o[1],t);{const t=r.match(/^matrix\((.+)\)$/);return t?fm(t[1],e):0}},hm=new Set(["x","y","z"]),mm=nc.filter((e=>!hm.has(e)));const vm={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:pm(4,13),y:pm(5,14)},gm=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(um);let i=[],s=!1;const a=[];if(o.forEach((o=>{const l=e.getValue(o);if(!e.hasValue(o))return;let c=n[o],u=Gf(c);const d=t[o];let f;if(eu(d)){const e=d.length,t=null===d[0]?1:0;c=d[t],u=Gf(c);for(let n=t;n<e;n++)f?Xu(Gf(d[n])===f,"All keyframes must be of the same type"):(f=Gf(d[n]),Xu(f===u||dm(u)&&dm(f),"Keyframes must be of the same dimension as the current value"))}else f=Gf(d);if(u!==f)if(dm(u)&&dm(f)){const e=l.get();"string"==typeof e&&l.set(parseFloat(e)),"string"==typeof d?t[o]=parseFloat(d):Array.isArray(d)&&f===Pc&&(t[o]=d.map(parseFloat))}else(null==u?void 0:u.transform)&&(null==f?void 0:f.transform)&&(0===c||0===d)?0===c?l.set(f.transform(c)):t[o]=u.transform(d):(s||(i=function(e){const t=[];return mm.forEach((n=>{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t.length&&e.render(),t}(e),s=!0),a.push(o),r[o]=void 0!==r[o]?r[o]:t[o],l.jump(d))})),a.length){const n=a.indexOf("height")>=0?window.pageYOffset:null,o=((e,t,n)=>{const r=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:s}=i,a={};"none"===s&&t.setStaticValue("display",e.display||"block"),n.forEach((e=>{a[e]=vm[e](r,i)})),t.render();const l=t.measureViewportBox();return n.forEach((n=>{const r=t.getValue(n);r&&r.jump(a[n]),e[n]=vm[n](l,i)})),e})(t,e,a);return i.length&&i.forEach((([t,n])=>{e.getValue(t).set(n)})),e.render(),Ol&&null!==n&&window.scrollTo({top:n}),{target:o,transitionEnd:r}}return{target:t,transitionEnd:r}};function ym(e,t,n,r){return(e=>Object.keys(e).some(um))(t)?gm(e,t,n,r):{target:t,transitionEnd:r}}const bm=(e,t,n,r)=>{const o=function(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach((e=>{const t=e.get();if(!uc(t))return;const n=ah(t,r);n&&e.set(n)}));for(const o in t){const e=t[o];if(!uc(e))continue;const i=ah(e,r);i&&(t[o]=i,n||(n={}),void 0===n[o]&&(n[o]=e))}return{target:t,transitionEnd:n}}(e,t,r);return ym(e,t=o.target,n,r=o.transitionEnd)},wm={current:null},xm={current:!1};const Em=new WeakMap,Sm=Object.keys(Ul),Pm=Sm.length,Cm=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Tm=Vl.length;class Rm{constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,visualState:o},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Tu.render(this.render,!1,!0);const{latestValues:s,renderState:a}=o;this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=a,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=i,this.isControllingVariants=Nl(t),this.isVariantNode=Fl(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:l,...c}=this.scrapeMotionValuesFromProps(t,{});for(const u in c){const e=c[u];void 0!==s[u]&&ic(e)&&(e.set(s[u],!1),Ff(l)&&l.add(u))}}scrapeMotionValuesFromProps(e,t){return{}}mount(e){this.current=e,Em.set(e,this),this.projection&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((e,t)=>this.bindToMotionValue(t,e))),xm.current||function(){if(xm.current=!0,Ol)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>wm.current=e.matches;e.addListener(t),t()}else wm.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||wm.current),"production"!==process.env.NODE_ENV&&zf(!0!==this.shouldReduceMotion,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Em.delete(this.current),this.projection&&this.projection.unmount(),Ru.update(this.notifyUpdate),Ru.render(this.render),this.valueSubscriptions.forEach((e=>e())),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,t){const n=rc.has(e),r=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&Tu.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)})),o=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,(()=>{r(),o()}))}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...t},n,r,o,i){let s,a;if("production"!==process.env.NODE_ENV&&r&&n){const e="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?Yu(!1,e):Xu(!1,e)}for(let l=0;l<Pm;l++){const e=Sm[l],{isEnabled:n,Feature:r,ProjectionNode:o,MeasureLayout:i}=Ul[e];o&&(s=o),n(t)&&(!this.features[e]&&r&&(this.features[e]=new r(this)),i&&(a=i))}if(!this.projection&&s){this.projection=new s(o,this.latestValues,this.parent&&this.parent.projection);const{layoutId:e,layout:n,drag:r,dragConstraints:a,layoutScroll:l,layoutRoot:c}=t;this.projection.setOptions({layoutId:e,layout:n,alwaysMeasureLayout:Boolean(r)||a&&Ml(a),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:i,layoutScroll:l,layoutRoot:c})}return a}updateFeatures(){for(const e in this.features){const t=this.features[e];t.isMounted?t.update(this.props,this.prevProps):(t.mount(),t.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):_p()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e,t=!0){return this.makeTargetAnimatableFromInstance(e,this.props,t)}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let n=0;n<Cm.length;n++){const t=Cm[n];this.propEventSubscriptions[t]&&(this.propEventSubscriptions[t](),delete this.propEventSubscriptions[t]);const r=e["on"+t];r&&(this.propEventSubscriptions[t]=this.on(t,r))}this.prevMotionValues=function(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],s=n[o];if(ic(i))e.addValue(o,i),Ff(r)&&r.add(o),"development"===process.env.NODE_ENV&&zf("10.10.0"===i.version,`Attempting to mix Framer Motion versions ${i.version} with 10.10.0 may not work as expected.`);else if(ic(s))e.addValue(o,Xf(i,{owner:e})),Ff(r)&&r.remove(o);else if(s!==i)if(e.hasValue(o)){const t=e.getValue(o);!t.hasAnimated&&t.set(i)}else{const t=e.getStaticValue(o);e.addValue(o,Xf(void 0!==t?t:i,{owner:e}))}}for(const o in n)void 0===t[o]&&e.removeValue(o);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}const t={};for(let n=0;n<Tm;n++){const e=Vl[n],r=this.props[e];(_l(r)||!1===r)&&(t[e]=r)}return t}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){t!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,t)),this.values.set(e,t),this.latestValues[e]=t.get()}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=Xf(t,{owner:this}),this.addValue(e,n)),n}readValue(e){return void 0===this.latestValues[e]&&this.current?this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:n}=this.props,r="string"==typeof n||"object"==typeof n?null===(t=Qc(this.props,n))||void 0===t?void 0:t[e]:void 0;if(n&&void 0!==r)return r;const o=this.getBaseTargetFromProps(this.props,e);return void 0===o||ic(o)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:o}on(e,t){return this.events[e]||(this.events[e]=new Uf),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class Am extends Rm{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:t,...n},{transformValues:r},o){let i=function(e,t,n){const r={};for(const o in e){const e=ep(o,t);if(void 0!==e)r[o]=e;else{const e=n.getValue(o);e&&(r[o]=e.get())}}return r}(n,e||{},this);if(r&&(t&&(t=r(t)),n&&(n=r(n)),i&&(i=r(i))),o){!function(e,t,n){var r,o;const i=Object.keys(t).filter((t=>!e.hasValue(t))),s=i.length;if(s)for(let a=0;a<s;a++){const s=i[a],l=t[s];let c=null;Array.isArray(l)&&(c=l[0]),null===c&&(c=null!==(o=null!==(r=n[s])&&void 0!==r?r:e.readValue(s))&&void 0!==o?o:t[s]),null!=c&&("string"==typeof c&&(/^\-?\d*\.?\d+$/.test(c)||jf(c))?c=parseFloat(c):!Jf(c)&&Wd.test(l)&&(c=_f(s,l)),e.addValue(s,Xf(c,{owner:e})),void 0===n[s]&&(n[s]=c),null!==c&&e.setBaseTarget(s,c))}}(this,n,i);const e=bm(this,n,i,t);t=e.transitionEnd,n=e.target}return{transition:e,transitionEnd:t,...n}}}class Dm extends Am{readValueFromInstance(e,t){if(rc.has(t)){const e=Mf(t);return e&&e.default||0}{const r=(n=e,window.getComputedStyle(n)),o=(cc(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return Jp(e,t)}build(e,t,n,r){Oc(e,t,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,t){return Zc(e,t)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;ic(e)&&(this.childSubscription=e.on("change",(e=>{this.current&&(this.current.textContent=`${e}`)})))}renderInstance(e,t,n,r){Kc(e,t,n,r)}}class Om extends Am{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(rc.has(t)){const e=Mf(t);return e&&e.default||0}return t=qc.has(t)?t:Xc(t),e.getAttribute(t)}measureInstanceViewportBox(){return _p()}scrapeMotionValuesFromProps(e,t){return Jc(e,t)}build(e,t,n,r){Wc(e,t,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,t,n,r){Gc(e,t,0,r)}mount(e){this.isSVGTag=Hc(e.tagName),super.mount(e)}}const km=(e,t)=>ec(e)?new Om(t,{enableHardwareAcceleration:!1}):new Dm(t,{enableHardwareAcceleration:!0}),Lm={...fp,...Wu,...lm,...{layout:{ProjectionNode:am,MeasureLayout:dh}}},Mm=Jl(((e,t)=>function(e,{forwardMotionProps:t=!1},n,r){return{...ec(e)?su:au,preloadedFeatures:n,useRender:Yc(t),createVisualElement:r,Component:e}}(e,t,Lm,km)));var _m,Im={exports:{}},$m={exports:{}},Vm={};var Nm,Fm,jm,Bm,Wm,Um,Hm,zm,Ym,Xm,Km,qm,Gm,Zm,Jm={};function Qm(){return Fm||(Fm=1,"production"===process.env.NODE_ENV?$m.exports=function(){if(_m)return Vm;_m=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:switch(e=e.type){case l:case c:case r:case i:case o:case d:return e;default:switch(e=e&&e.$$typeof){case a:case u:case h:case p:case s:return e;default:return f}}case n:return f}}}function w(e){return b(e)===c}return Vm.AsyncMode=l,Vm.ConcurrentMode=c,Vm.ContextConsumer=a,Vm.ContextProvider=s,Vm.Element=t,Vm.ForwardRef=u,Vm.Fragment=r,Vm.Lazy=h,Vm.Memo=p,Vm.Portal=n,Vm.Profiler=i,Vm.StrictMode=o,Vm.Suspense=d,Vm.isAsyncMode=function(e){return w(e)||b(e)===l},Vm.isConcurrentMode=w,Vm.isContextConsumer=function(e){return b(e)===a},Vm.isContextProvider=function(e){return b(e)===s},Vm.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Vm.isForwardRef=function(e){return b(e)===u},Vm.isFragment=function(e){return b(e)===r},Vm.isLazy=function(e){return b(e)===h},Vm.isMemo=function(e){return b(e)===p},Vm.isPortal=function(e){return b(e)===n},Vm.isProfiler=function(e){return b(e)===i},Vm.isStrictMode=function(e){return b(e)===o},Vm.isSuspense=function(e){return b(e)===d},Vm.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===d||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===s||e.$$typeof===a||e.$$typeof===u||e.$$typeof===v||e.$$typeof===g||e.$$typeof===y||e.$$typeof===m)},Vm.typeOf=b,Vm}():$m.exports=(Nm||(Nm=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:var m=e.type;switch(m){case l:case c:case r:case i:case o:case d:return m;default:var v=m&&m.$$typeof;switch(v){case a:case u:case h:case p:case s:return v;default:return f}}case n:return f}}}var w=l,x=c,E=a,S=s,P=t,C=u,T=r,R=h,A=p,D=n,O=i,k=o,L=d,M=!1;function _(e){return b(e)===c}Jm.AsyncMode=w,Jm.ConcurrentMode=x,Jm.ContextConsumer=E,Jm.ContextProvider=S,Jm.Element=P,Jm.ForwardRef=C,Jm.Fragment=T,Jm.Lazy=R,Jm.Memo=A,Jm.Portal=D,Jm.Profiler=O,Jm.StrictMode=k,Jm.Suspense=L,Jm.isAsyncMode=function(e){return M||(M=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),_(e)||b(e)===l},Jm.isConcurrentMode=_,Jm.isContextConsumer=function(e){return b(e)===a},Jm.isContextProvider=function(e){return b(e)===s},Jm.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Jm.isForwardRef=function(e){return b(e)===u},Jm.isFragment=function(e){return b(e)===r},Jm.isLazy=function(e){return b(e)===h},Jm.isMemo=function(e){return b(e)===p},Jm.isPortal=function(e){return b(e)===n},Jm.isProfiler=function(e){return b(e)===i},Jm.isStrictMode=function(e){return b(e)===o},Jm.isSuspense=function(e){return b(e)===d},Jm.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===d||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===s||e.$$typeof===a||e.$$typeof===u||e.$$typeof===v||e.$$typeof===g||e.$$typeof===y||e.$$typeof===m)},Jm.typeOf=b}()),Jm)),$m.exports}function ev(){if(Bm)return jm;Bm=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return jm=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(yg){return!1}}()?Object.assign:function(r,o){for(var i,s,a=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(r),l=1;l<arguments.length;l++){for(var c in i=Object(arguments[l]))t.call(i,c)&&(a[c]=i[c]);if(e){s=e(i);for(var u=0;u<s.length;u++)n.call(i,s[u])&&(a[s[u]]=i[s[u]])}}return a},jm}function tv(){if(Um)return Wm;Um=1;return Wm="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function nv(){return zm?Hm:(zm=1,Hm=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var rv=Qm();Im.exports=function(){if(qm)return Km;qm=1;var e=Qm(),t=ev(),n=tv(),r=nv(),o=function(){if(Xm)return Ym;Xm=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=tv(),n={},r=nv();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(n){}}}function o(o,i,s,a,l){if("production"!==process.env.NODE_ENV)for(var c in o)if(r(o,c)){var u;try{if("function"!=typeof o[c]){var d=Error((a||"React class")+": "+s+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}u=o[c](i,c,a,s,null,t)}catch(p){u=p}if(!u||u instanceof Error||e((a||"React class")+": type specification of "+s+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in n)){n[u.message]=!0;var f=l?l():"";e("Failed "+s+" type: "+u.message+(null!=f?f:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},Ym=o}(),i=function(){};function s(){return null}return"production"!==process.env.NODE_ENV&&(i=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(n){}}),Km=function(a,l){var c="function"==typeof Symbol&&Symbol.iterator,u="@@iterator",d="<<anonymous>>",f={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:m(s),arrayOf:function(e){return m((function(t,r,o,i,s){if("function"!=typeof e)return new h("Property `"+s+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var a=t[r];if(!Array.isArray(a))return new h("Invalid "+i+" `"+s+"` of type `"+b(a)+"` supplied to `"+o+"`, expected an array.");for(var l=0;l<a.length;l++){var c=e(a,l,o,i,s+"["+l+"]",n);if(c instanceof Error)return c}return null}))},element:m((function(e,t,n,r,o){var i=e[t];return a(i)?null:new h("Invalid "+r+" `"+o+"` of type `"+b(i)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:m((function(t,n,r,o,i){var s=t[n];return e.isValidElementType(s)?null:new h("Invalid "+o+" `"+i+"` of type `"+b(s)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(e){return m((function(t,n,r,o,i){if(!(t[n]instanceof e)){var s=e.name||d;return new h("Invalid "+o+" `"+i+"` of type `"+((a=t[n]).constructor&&a.constructor.name?a.constructor.name:d)+"` supplied to `"+r+"`, expected instance of `"+s+"`.")}var a;return null}))},node:m((function(e,t,n,r,o){return y(e[t])?null:new h("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return m((function(t,o,i,s,a){if("function"!=typeof e)return new h("Property `"+a+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var l=t[o],c=b(l);if("object"!==c)return new h("Invalid "+s+" `"+a+"` of type `"+c+"` supplied to `"+i+"`, expected an object.");for(var u in l)if(r(l,u)){var d=e(l,u,i,s,a+"."+u,n);if(d instanceof Error)return d}return null}))},oneOf:function(e){return Array.isArray(e)?m((function(t,n,r,o,i){for(var s=t[n],a=0;a<e.length;a++)if(p(s,e[a]))return null;var l=JSON.stringify(e,(function(e,t){return"symbol"===w(t)?String(t):t}));return new h("Invalid "+o+" `"+i+"` of value `"+String(s)+"` supplied to `"+r+"`, expected one of "+l+".")})):("production"!==process.env.NODE_ENV&&i(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),s)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var t=0;t<e.length;t++){var o=e[t];if("function"!=typeof o)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+x(o)+" at index "+t+"."),s}return m((function(t,o,i,s,a){for(var l=[],c=0;c<e.length;c++){var u=(0,e[c])(t,o,i,s,a,n);if(null==u)return null;u.data&&r(u.data,"expectedType")&&l.push(u.data.expectedType)}return new h("Invalid "+s+" `"+a+"` supplied to `"+i+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(e){return m((function(t,r,o,i,s){var a=t[r],l=b(a);if("object"!==l)return new h("Invalid "+i+" `"+s+"` of type `"+l+"` supplied to `"+o+"`, expected `object`.");for(var c in e){var u=e[c];if("function"!=typeof u)return g(o,i,s,c,w(u));var d=u(a,c,o,i,s+"."+c,n);if(d)return d}return null}))},exact:function(e){return m((function(o,i,s,a,l){var c=o[i],u=b(c);if("object"!==u)return new h("Invalid "+a+" `"+l+"` of type `"+u+"` supplied to `"+s+"`, expected `object`.");var d=t({},o[i],e);for(var f in d){var p=e[f];if(r(e,f)&&"function"!=typeof p)return g(s,a,l,f,w(p));if(!p)return new h("Invalid "+a+" `"+l+"` key `"+f+"` supplied to `"+s+"`.\nBad object: "+JSON.stringify(o[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var m=p(c,f,s,a,l+"."+f,n);if(m)return m}return null}))}};function p(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function h(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function m(e){if("production"!==process.env.NODE_ENV)var t={},r=0;function o(o,s,a,c,u,f,p){if(c=c||d,f=f||a,p!==n){if(l){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var v=c+":"+a;!t[v]&&r<3&&(i("You are manually calling a React.PropTypes validation function for the `"+f+"` prop on `"+c+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[v]=!0,r++)}}return null==s[a]?o?null===s[a]?new h("The "+u+" `"+f+"` is marked as required in `"+c+"`, but its value is `null`."):new h("The "+u+" `"+f+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(s,a,c,u,f)}var s=o.bind(null,!1);return s.isRequired=o.bind(null,!0),s}function v(e){return m((function(t,n,r,o,i,s){var a=t[n];return b(a)!==e?new h("Invalid "+o+" `"+i+"` of type `"+w(a)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function g(e,t,n,r,o){return new h((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function y(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(y);if(null===e||a(e))return!0;var t=function(e){var t=e&&(c&&e[c]||e[u]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!y(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!y(o[1]))return!1}return!0;default:return!1}}function b(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function w(e){if(null==e)return""+e;var t=b(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function x(e){var t=w(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return h.prototype=Error.prototype,f.checkPropTypes=o,f.resetWarningCache=o.resetWarningCache,f.PropTypes=f,f},Km}()(rv.isElement,!0)}else Im.exports=function(){if(Zm)return Gm;Zm=1;var e=tv();function t(){}function n(){}return n.resetWarningCache=t,Gm=function(){function r(t,n,r,o,i,s){if(s!==e){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function o(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i}}()();const ov=i(Im.exports);function iv(){return iv=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iv.apply(this,arguments)}function sv(e,t){return(sv=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var av=function(t){var n,r;function o(){return t.apply(this,arguments)||this}r=t,(n=o).prototype=Object.create(r.prototype),n.prototype.constructor=n,sv(n,r);var i=o.prototype;return i.getColumns=function(){var t=this.props,n=t.children,r=t.columnsCount,o=Array.from({length:r},(function(){return[]}));return e.Children.forEach(n,(function(t,n){t&&e.isValidElement(t)&&o[n%r].push(t)})),o},i.renderColumns=function(){var t=this.props.gutter;return this.getColumns().map((function(n,r){return e.createElement("div",{key:r,style:{display:"flex",flexDirection:"column",justifyContent:"flex-start",alignContent:"stretch",flex:1,width:0,gap:t}},n.map((function(e){return e})))}))},i.render=function(){var t=this.props,n=t.gutter,r=t.className,o=t.style;return e.createElement("div",{style:iv({display:"flex",flexDirection:"row",justifyContent:"center",alignContent:"stretch",boxSizing:"border-box",width:"100%",gap:n},o),className:r},this.renderColumns())},o}(e.Component);av.propTypes="production"!==process.env.NODE_ENV?{children:ov.oneOfType([ov.arrayOf(ov.node),ov.node]).isRequired,columnsCount:ov.number,gutter:ov.string,className:ov.string,style:ov.object}:{},av.defaultProps={columnsCount:3,gutter:"0",className:null,style:{}};var lv="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,cv=function(){var t=function(){var t=e.useState(!1),n=t[0],r=t[1];return lv((function(){r(!0)}),[]),n}(),n=e.useState(0),r=n[0],o=n[1],i=e.useCallback((function(){t&&o(window.innerWidth)}),[t]);return lv((function(){if(t)return window.addEventListener("resize",i),i(),function(){return window.removeEventListener("resize",i)}}),[t,i]),r},uv=function(t){var n=t.columnsCountBreakPoints,r=void 0===n?{350:1,750:2,900:3}:n,o=t.children,i=t.className,s=void 0===i?null:i,a=t.style,l=void 0===a?null:a,c=cv(),u=e.useMemo((function(){var e=Object.keys(r).sort((function(e,t){return e-t})),t=e.length>0?r[e[0]]:1;return e.forEach((function(e){e<c&&(t=r[e])})),t}),[c,r]);return e.createElement("div",{className:s,style:l},e.Children.map(o,(function(t,n){return e.cloneElement(t,{key:n,columnsCount:u})})))};uv.propTypes="production"!==process.env.NODE_ENV?{children:ov.oneOfType([ov.arrayOf(ov.node),ov.node]).isRequired,columnsCountBreakPoints:ov.object,className:ov.string,style:ov.object}:{};const[dv,fv]=bo("Tooltip",[aa]),pv=aa(),hv=700,mv="tooltip.open",[vv,gv]=dv("TooltipProvider"),yv="Tooltip",[bv,wv]=dv(yv),xv="TooltipTrigger",Ev=e.forwardRef(((t,n)=>{const{__scopeTooltip:r,...o}=t,i=wv(xv,r),s=gv(xv,r),a=pv(r),l=yo(n,e.useRef(null),i.onTriggerChange),c=e.useRef(!1),u=e.useRef(!1),d=e.useCallback((()=>c.current=!1),[]);return e.useEffect((()=>()=>document.removeEventListener("pointerup",d)),[d]),e.createElement(wa,m({asChild:!0},a),e.createElement(To.button,m({"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute},o,{ref:l,onPointerMove:vo(t.onPointerMove,(e=>{"touch"!==e.pointerType&&(u.current||s.isPointerInTransitRef.current||(i.onTriggerEnter(),u.current=!0))})),onPointerLeave:vo(t.onPointerLeave,(()=>{i.onTriggerLeave(),u.current=!1})),onPointerDown:vo(t.onPointerDown,(()=>{c.current=!0,document.addEventListener("pointerup",d,{once:!0})})),onFocus:vo(t.onFocus,(()=>{c.current||i.onOpen()})),onBlur:vo(t.onBlur,i.onClose),onClick:vo(t.onClick,i.onClose)})))})),Sv="TooltipPortal",[Pv,Cv]=dv(Sv,{forceMount:void 0}),Tv="TooltipContent",Rv=e.forwardRef(((t,n)=>{const r=Cv(Tv,t.__scopeTooltip),{forceMount:o=r.forceMount,side:i="top",...s}=t,a=wv(Tv,t.__scopeTooltip);return e.createElement(ti,{present:o||a.open},a.disableHoverableContent?e.createElement(kv,m({side:i},s,{ref:n})):e.createElement(Av,m({side:i},s,{ref:n})))})),Av=e.forwardRef(((t,n)=>{const r=wv(Tv,t.__scopeTooltip),o=gv(Tv,t.__scopeTooltip),i=e.useRef(null),s=yo(n,i),[a,l]=e.useState(null),{trigger:c,onClose:u}=r,d=i.current,{onPointerInTransitChange:f}=o,p=e.useCallback((()=>{l(null),f(!1)}),[f]),h=e.useCallback(((e,t)=>{const n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=function(e,t,n=5){const 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,function(e,t){const 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 new Error("unreachable")}}(r,n.getBoundingClientRect())),i=function(e){const 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();const t=[];for(let r=0;r<e.length;r++){const n=e[r];for(;t.length>=2;){const e=t[t.length-1],r=t[t.length-2];if(!((e.x-r.x)*(n.y-r.y)>=(e.y-r.y)*(n.x-r.x)))break;t.pop()}t.push(n)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const t=e[r];for(;n.length>=2;){const e=n[n.length-1],r=n[n.length-2];if(!((e.x-r.x)*(t.y-r.y)>=(e.y-r.y)*(t.x-r.x)))break;n.pop()}n.push(t)}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)}([...o,...function(e){const{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())]);l(i),f(!0)}),[f]);return e.useEffect((()=>()=>p()),[p]),e.useEffect((()=>{if(c&&d){const e=e=>h(e,d),t=e=>h(e,c);return c.addEventListener("pointerleave",e),d.addEventListener("pointerleave",t),()=>{c.removeEventListener("pointerleave",e),d.removeEventListener("pointerleave",t)}}}),[c,d,h,p]),e.useEffect((()=>{if(a){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},r=(null==c?void 0:c.contains(t))||(null==d?void 0:d.contains(t)),o=!function(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const e=t[i].x,a=t[i].y,l=t[s].x,c=t[s].y;a>r!=c>r&&n<(l-e)*(r-a)/(c-a)+e&&(o=!o)}return o}(n,a);r?p():o&&(p(),u())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}}),[c,d,a,u,p]),e.createElement(kv,m({},t,{ref:s}))})),[Dv,Ov]=dv(yv,{isInside:!1}),kv=e.forwardRef(((t,n)=>{const{__scopeTooltip:r,children:o,"aria-label":i,onEscapeKeyDown:s,onPointerDownOutside:a,...l}=t,c=wv(Tv,r),u=pv(r),{onClose:d}=c;return e.useEffect((()=>(document.addEventListener(mv,d),()=>document.removeEventListener(mv,d))),[d]),e.useEffect((()=>{if(c.trigger){const e=e=>{const t=e.target;null!=t&&t.contains(c.trigger)&&d()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}}),[c.trigger,d]),e.createElement(Di,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:d},e.createElement(xa,m({"data-state":c.stateAttribute},u,l,{ref:n,style:{...l.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)"}}),e.createElement(So,null,o),e.createElement(Dv,{scope:r,isInside:!0},e.createElement(Ca,{id:c.contentId,role:"tooltip"},i||o))))}));const Lv=t=>{const{__scopeTooltip:n,delayDuration:r=hv,skipDelayDuration:o=300,disableHoverableContent:i=!1,children:s}=t,[a,l]=e.useState(!0),c=e.useRef(!1),u=e.useRef(0);return e.useEffect((()=>{const e=u.current;return()=>window.clearTimeout(e)}),[]),e.createElement(vv,{scope:n,isOpenDelayed:a,delayDuration:r,onOpen:e.useCallback((()=>{window.clearTimeout(u.current),l(!1)}),[]),onClose:e.useCallback((()=>{window.clearTimeout(u.current),u.current=window.setTimeout((()=>l(!0)),o)}),[o]),isPointerInTransitRef:c,onPointerInTransitChange:e.useCallback((e=>{c.current=e}),[]),disableHoverableContent:i},s)},Mv=t=>{const{__scopeTooltip:n,children:r,open:o,defaultOpen:i=!1,onOpenChange:s,disableHoverableContent:a,delayDuration:l}=t,c=gv(yv,t.__scopeTooltip),u=pv(n),[d,f]=e.useState(null),p=ko(),h=e.useRef(0),m=null!=a?a:c.disableHoverableContent,v=null!=l?l:c.delayDuration,g=e.useRef(!1),[y=!1,b]=Mo({prop:o,defaultProp:i,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(mv))):c.onClose(),null==s||s(e)}}),w=e.useMemo((()=>y?g.current?"delayed-open":"instant-open":"closed"),[y]),x=e.useCallback((()=>{window.clearTimeout(h.current),g.current=!1,b(!0)}),[b]),E=e.useCallback((()=>{window.clearTimeout(h.current),b(!1)}),[b]),S=e.useCallback((()=>{window.clearTimeout(h.current),h.current=window.setTimeout((()=>{g.current=!0,b(!0)}),v)}),[v,b]);return e.useEffect((()=>()=>window.clearTimeout(h.current)),[]),e.createElement(ba,u,e.createElement(bv,{scope:n,contentId:p,open:y,stateAttribute:w,trigger:d,onTriggerChange:f,onTriggerEnter:e.useCallback((()=>{c.isOpenDelayed?S():x()}),[c.isOpenDelayed,S,x]),onTriggerLeave:e.useCallback((()=>{m?E():window.clearTimeout(h.current)}),[E,m]),onOpen:x,onClose:E,disableHoverableContent:m},r))},_v=Ev,Iv=t=>{const{__scopeTooltip:n,forceMount:r,children:o,container:i}=t,s=wv(Sv,n);return e.createElement(Pv,{scope:n,forceMount:r},e.createElement(ti,{present:r||s.open},e.createElement(Sa,{asChild:!0,container:i},o)))},$v=Rv,Vv=e.forwardRef(((t,n)=>{const{__scopeTooltip:r,...o}=t,i=pv(r);return Ov("TooltipArrow",r).isInside?null:e.createElement(Ea,m({},i,o,{ref:n}))}));const Nv="ScrollArea",[Fv,jv]=v(Nv),[Bv,Wv]=Fv(Nv),Uv=e.forwardRef(((t,n)=>{const{__scopeScrollArea:r,type:o="hover",dir:i,scrollHideDelay:s=600,...a}=t,[l,c]=e.useState(null),[u,d]=e.useState(null),[f,p]=e.useState(null),[h,v]=e.useState(null),[g,y]=e.useState(null),[w,x]=e.useState(0),[E,S]=e.useState(0),[P,C]=e.useState(!1),[T,R]=e.useState(!1),A=b(n,(e=>c(e))),D=Nr(i);return e.createElement(Bv,{scope:r,type:o,dir:D,scrollHideDelay:s,scrollArea:l,viewport:u,onViewportChange:d,content:f,onContentChange:p,scrollbarX:h,onScrollbarXChange:v,scrollbarXEnabled:P,onScrollbarXEnabledChange:C,scrollbarY:g,onScrollbarYChange:y,scrollbarYEnabled:T,onScrollbarYEnabledChange:R,onCornerWidthChange:x,onCornerHeightChange:S},e.createElement(L.div,m({dir:D},a,{ref:A,style:{position:"relative","--radix-scroll-area-corner-width":w+"px","--radix-scroll-area-corner-height":E+"px",...t.style}})))})),Hv=e.forwardRef(((t,n)=>{const{__scopeScrollArea:r,children:o,...i}=t,s=Wv("ScrollAreaViewport",r),a=b(n,e.useRef(null),s.onViewportChange);return e.createElement(e.Fragment,null,e.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"}}),e.createElement(L.div,m({"data-radix-scroll-area-viewport":""},i,{ref:a,style:{overflowX:s.scrollbarXEnabled?"scroll":"hidden",overflowY:s.scrollbarYEnabled?"scroll":"hidden",...t.style}}),e.createElement("div",{ref:s.onContentChange,style:{minWidth:"100%",display:"table"}},o)))})),zv="ScrollAreaScrollbar",Yv=e.forwardRef(((t,n)=>{const{forceMount:r,...o}=t,i=Wv(zv,t.__scopeScrollArea),{onScrollbarXEnabledChange:s,onScrollbarYEnabledChange:a}=i,l="horizontal"===t.orientation;return e.useEffect((()=>(l?s(!0):a(!0),()=>{l?s(!1):a(!1)})),[l,s,a]),"hover"===i.type?e.createElement(Xv,m({},o,{ref:n,forceMount:r})):"scroll"===i.type?e.createElement(Kv,m({},o,{ref:n,forceMount:r})):"auto"===i.type?e.createElement(qv,m({},o,{ref:n,forceMount:r})):"always"===i.type?e.createElement(Gv,m({},o,{ref:n})):null})),Xv=e.forwardRef(((t,n)=>{const{forceMount:r,...o}=t,i=Wv(zv,t.__scopeScrollArea),[s,a]=e.useState(!1);return e.useEffect((()=>{const e=i.scrollArea;let t=0;if(e){const n=()=>{window.clearTimeout(t),a(!0)},r=()=>{t=window.setTimeout((()=>a(!1)),i.scrollHideDelay)};return e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",r),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",r)}}}),[i.scrollArea,i.scrollHideDelay]),e.createElement(J,{present:r||s},e.createElement(qv,m({"data-state":s?"visible":"hidden"},o,{ref:n})))})),Kv=e.forwardRef(((t,n)=>{const{forceMount:r,...o}=t,i=Wv(zv,t.__scopeScrollArea),s="horizontal"===t.orientation,a=fg((()=>c("SCROLL_END")),100),[l,c]=(u="hidden",d={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},e.useReducer(((e,t)=>{const n=d[e][t];return null!=n?n:e}),u));var u,d;return e.useEffect((()=>{if("idle"===l){const e=window.setTimeout((()=>c("HIDE")),i.scrollHideDelay);return()=>window.clearTimeout(e)}}),[l,i.scrollHideDelay,c]),e.useEffect((()=>{const e=i.viewport,t=s?"scrollLeft":"scrollTop";if(e){let n=e[t];const r=()=>{const r=e[t];n!==r&&(c("SCROLL"),a()),n=r};return e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)}}),[i.viewport,s,c,a]),e.createElement(J,{present:r||"hidden"!==l},e.createElement(Gv,m({"data-state":"hidden"===l?"hidden":"visible"},o,{ref:n,onPointerEnter:w(t.onPointerEnter,(()=>c("POINTER_ENTER"))),onPointerLeave:w(t.onPointerLeave,(()=>c("POINTER_LEAVE")))})))})),qv=e.forwardRef(((t,n)=>{const r=Wv(zv,t.__scopeScrollArea),{forceMount:o,...i}=t,[s,a]=e.useState(!1),l="horizontal"===t.orientation,c=fg((()=>{if(r.viewport){const e=r.viewport.offsetWidth<r.viewport.scrollWidth,t=r.viewport.offsetHeight<r.viewport.scrollHeight;a(l?e:t)}}),10);return pg(r.viewport,c),pg(r.content,c),e.createElement(J,{present:o||s},e.createElement(Gv,m({"data-state":s?"visible":"hidden"},i,{ref:n})))})),Gv=e.forwardRef(((t,n)=>{const{orientation:r="vertical",...o}=t,i=Wv(zv,t.__scopeScrollArea),s=e.useRef(null),a=e.useRef(0),[l,c]=e.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=sg(l.viewport,l.content),d={...o,sizes:l,onSizesChange:c,hasThumb:Boolean(u>0&&u<1),onThumbChange:e=>s.current=e,onThumbPointerUp:()=>a.current=0,onThumbPointerDown:e=>a.current=e};function f(e,t){return function(e,t,n,r="ltr"){const o=ag(n),i=o/2,s=t||i,a=o-s,l=n.scrollbar.paddingStart+s,c=n.scrollbar.size-n.scrollbar.paddingEnd-a,u=n.content-n.viewport,d="ltr"===r?[0,u]:[-1*u,0];return cg([l,c],d)(e)}(e,a.current,l,t)}return"horizontal"===r?e.createElement(Zv,m({},d,{ref:n,onThumbPositionChange:()=>{if(i.viewport&&s.current){const e=lg(i.viewport.scrollLeft,l,i.dir);s.current.style.transform=`translate3d(${e}px, 0, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollLeft=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollLeft=f(e,i.dir))}})):"vertical"===r?e.createElement(Jv,m({},d,{ref:n,onThumbPositionChange:()=>{if(i.viewport&&s.current){const e=lg(i.viewport.scrollTop,l);s.current.style.transform=`translate3d(0, ${e}px, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollTop=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollTop=f(e))}})):null})),Zv=e.forwardRef(((t,n)=>{const{sizes:r,onSizesChange:o,...i}=t,s=Wv(zv,t.__scopeScrollArea),[a,l]=e.useState(),c=e.useRef(null),u=b(n,c,s.onScrollbarXChange);return e.useEffect((()=>{c.current&&l(getComputedStyle(c.current))}),[c]),e.createElement(tg,m({"data-orientation":"horizontal"},i,{ref:u,sizes:r,style:{bottom:0,left:"rtl"===s.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===s.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":ag(r)+"px",...t.style},onThumbPointerDown:e=>t.onThumbPointerDown(e.x),onDragScroll:e=>t.onDragScroll(e.x),onWheelScroll:(e,n)=>{if(s.viewport){const r=s.viewport.scrollLeft+e.deltaX;t.onWheelScroll(r),ug(r,n)&&e.preventDefault()}},onResize:()=>{c.current&&s.viewport&&a&&o({content:s.viewport.scrollWidth,viewport:s.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:ig(a.paddingLeft),paddingEnd:ig(a.paddingRight)}})}}))})),Jv=e.forwardRef(((t,n)=>{const{sizes:r,onSizesChange:o,...i}=t,s=Wv(zv,t.__scopeScrollArea),[a,l]=e.useState(),c=e.useRef(null),u=b(n,c,s.onScrollbarYChange);return e.useEffect((()=>{c.current&&l(getComputedStyle(c.current))}),[c]),e.createElement(tg,m({"data-orientation":"vertical"},i,{ref:u,sizes:r,style:{top:0,right:"ltr"===s.dir?0:void 0,left:"rtl"===s.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":ag(r)+"px",...t.style},onThumbPointerDown:e=>t.onThumbPointerDown(e.y),onDragScroll:e=>t.onDragScroll(e.y),onWheelScroll:(e,n)=>{if(s.viewport){const r=s.viewport.scrollTop+e.deltaY;t.onWheelScroll(r),ug(r,n)&&e.preventDefault()}},onResize:()=>{c.current&&s.viewport&&a&&o({content:s.viewport.scrollHeight,viewport:s.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:ig(a.paddingTop),paddingEnd:ig(a.paddingBottom)}})}}))})),[Qv,eg]=Fv(zv),tg=e.forwardRef(((t,n)=>{const{__scopeScrollArea:r,sizes:o,hasThumb:i,onThumbChange:s,onThumbPointerUp:a,onThumbPointerDown:l,onThumbPositionChange:c,onDragScroll:u,onWheelScroll:d,onResize:f,...p}=t,h=Wv(zv,r),[v,g]=e.useState(null),y=b(n,(e=>g(e))),x=e.useRef(null),E=e.useRef(""),S=h.viewport,P=o.content-o.viewport,T=C(d),R=C(c),A=fg(f,10);function D(e){if(x.current){const t=e.clientX-x.current.left,n=e.clientY-x.current.top;u({x:t,y:n})}}return e.useEffect((()=>{const e=e=>{const t=e.target;(null==v?void 0:v.contains(t))&&T(e,P)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})}),[S,v,P,T]),e.useEffect(R,[o,R]),pg(v,A),pg(h.content,A),e.createElement(Qv,{scope:r,scrollbar:v,hasThumb:i,onThumbChange:C(s),onThumbPointerUp:C(a),onThumbPositionChange:R,onThumbPointerDown:C(l)},e.createElement(L.div,m({},p,{ref:y,style:{position:"absolute",...p.style},onPointerDown:w(t.onPointerDown,(e=>{if(0===e.button){e.target.setPointerCapture(e.pointerId),x.current=v.getBoundingClientRect(),E.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",D(e)}})),onPointerMove:w(t.onPointerMove,D),onPointerUp:w(t.onPointerUp,(e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=E.current,x.current=null}))})))})),ng="ScrollAreaThumb",rg=e.forwardRef(((t,n)=>{const{forceMount:r,...o}=t,i=eg(ng,t.__scopeScrollArea);return e.createElement(J,{present:r||i.hasThumb},e.createElement(og,m({ref:n},o)))})),og=e.forwardRef(((t,n)=>{const{__scopeScrollArea:r,style:o,...i}=t,s=Wv(ng,r),a=eg(ng,r),{onThumbPositionChange:l}=a,c=b(n,(e=>a.onThumbChange(e))),u=e.useRef(),d=fg((()=>{u.current&&(u.current(),u.current=void 0)}),100);return e.useEffect((()=>{const e=s.viewport;if(e){const t=()=>{if(d(),!u.current){const t=dg(e,l);u.current=t,l()}};return l(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}}),[s.viewport,d,l]),e.createElement(L.div,m({"data-state":a.hasThumb?"visible":"hidden"},i,{ref:c,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...o},onPointerDownCapture:w(t.onPointerDownCapture,(e=>{const t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;a.onThumbPointerDown({x:n,y:r})})),onPointerUp:w(t.onPointerUp,a.onThumbPointerUp)}))}));function ig(e){return e?parseInt(e,10):0}function sg(e,t){const n=e/t;return isNaN(n)?0:n}function ag(e){const t=sg(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function lg(e,t,n="ltr"){const r=ag(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=t.scrollbar.size-o,s=t.content-t.viewport,a=i-r,l=$r(e,"ltr"===n?[0,s]:[-1*s,0]);return cg([0,s],[0,a])(l)}function cg(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function ug(e,t){return e>0&&e<t}const dg=(e,t=(()=>{}))=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function o(){const i={left:e.scrollLeft,top:e.scrollTop},s=n.left!==i.left,a=n.top!==i.top;(s||a)&&t(),n=i,r=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(r)};function fg(t,n){const r=C(t),o=e.useRef(0);return e.useEffect((()=>()=>window.clearTimeout(o.current)),[]),e.useCallback((()=>{window.clearTimeout(o.current),o.current=window.setTimeout(r,n)}),[r,n])}function pg(e,t){const n=C(t);x((()=>{let t=0;if(e){const r=new ResizeObserver((()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)}));return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}}),[e,n])}const hg=Uv,mg=Hv,vg=Yv,gg=rg;exports.$57acba87d6e25586$export$6521433ed15a34db=gg,exports.$57acba87d6e25586$export$9a4e88b92edfce6b=vg,exports.$57acba87d6e25586$export$be92b6f5f03c0fe9=hg,exports.$57acba87d6e25586$export$d5c6c08dc2d3ca7=mg,exports.$5d3850c4d0b4e6c7$export$602eac185826482c=ut,exports.$5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2=ft,exports.$5d3850c4d0b4e6c7$export$be92b6f5f03c0fe9=ct,exports.$5d3850c4d0b4e6c7$export$c6fdb837b070b4ff=dt,exports.$67824d98245208a0$export$adb584737d712b70=Sr,exports.$67824d98245208a0$export$be92b6f5f03c0fe9=Er,exports.$a093c7e1ec25a057$export$21b07c8f274aebd5=Vv,exports.$a093c7e1ec25a057$export$2881499e37b75b9a=Lv,exports.$a093c7e1ec25a057$export$41fb9f06171c75f4=_v,exports.$a093c7e1ec25a057$export$602eac185826482c=Iv,exports.$a093c7e1ec25a057$export$7c6e2c02157bb7d2=$v,exports.$a093c7e1ec25a057$export$be92b6f5f03c0fe9=Mv,exports.$cb5cc270b50c6fcd$export$21b07c8f274aebd5=cr,exports.$cb5cc270b50c6fcd$export$41fb9f06171c75f4=ir,exports.$cb5cc270b50c6fcd$export$602eac185826482c=sr,exports.$cb5cc270b50c6fcd$export$7c6e2c02157bb7d2=ar,exports.$cb5cc270b50c6fcd$export$be92b6f5f03c0fe9=or,exports.$cb5cc270b50c6fcd$export$f39c2d165cd861fe=lr,exports.$cc7e05a45900e73f$export$2f60d3ec9ad468f2=Cl,exports.$cc7e05a45900e73f$export$41fb9f06171c75f4=vl,exports.$cc7e05a45900e73f$export$4c8d1a57a761ef94=gl,exports.$cc7e05a45900e73f$export$602eac185826482c=bl,exports.$cc7e05a45900e73f$export$6d08773d2e66f8f2=El,exports.$cc7e05a45900e73f$export$7c6e2c02157bb7d2=wl,exports.$cc7e05a45900e73f$export$be92b6f5f03c0fe9=ml,exports.$cc7e05a45900e73f$export$bf1aedc3039c8d63=Tl,exports.$cc7e05a45900e73f$export$c3468e2714d175fa=Pl,exports.$cc7e05a45900e73f$export$d5c6c08dc2d3ca7=xl,exports.$cc7e05a45900e73f$export$d6e5bf9c43ea9319=Sl,exports.$cc7e05a45900e73f$export$f04a61298a47a40f=yl,exports.$e698a72e93240346$export$adb584737d712b70=Ir,exports.$e698a72e93240346$export$be92b6f5f03c0fe9=_r,exports.$f99a8c78507165f7$export$6d08773d2e66f8f2=xi,exports.$f99a8c78507165f7$export$adb584737d712b70=Ei,exports.$f99a8c78507165f7$export$be92b6f5f03c0fe9=wi,exports.$faa2e61a3361514f$export$13921ac0cc260818=po,exports.$faa2e61a3361514f$export$6521433ed15a34db=mo,exports.$faa2e61a3361514f$export$9a58ef0d7ad3278c=ho,exports.$faa2e61a3361514f$export$be92b6f5f03c0fe9=fo,exports.Masonry=av,exports.MasonryResponsive=uv,exports.client=f,exports.jsxRuntimeExports=d,exports.motion=Mm;
|
|
2
|
-
//# sourceMappingURL=vendor-
|
|
1
|
+
"use strict";const e=require("react"),t=require("react-dom");function n(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const n in e)if("default"!==n){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}return t.default=e,Object.freeze(t)}const r=n(e),o=n(t);function i(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var s,a={exports:{}},c={};var l,u={};"production"===process.env.NODE_ENV?a.exports=function(){if(s)return c;s=1;var t=e,n=Symbol.for("react.element"),r=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,r){var s,c={},l=null,u=null;for(s in void 0!==r&&(l=""+r),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(u=t.ref),t)o.call(t,s)&&!a.hasOwnProperty(s)&&(c[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps)void 0===c[s]&&(c[s]=t[s]);return{$$typeof:n,type:e,key:l,ref:u,props:c,_owner:i.current}}return c.Fragment=r,c.jsx=l,c.jsxs=l,c}():a.exports=(l||(l=1,"production"!==process.env.NODE_ENV&&function(){var t=e,n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),c=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),v=Symbol.iterator,g="@@iterator",y=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];!function(e,t,n){var r=y.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(t+="%s",n=n.concat([r]));var o=n.map((function(e){return String(e)}));o.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,o)}("error",e,n)}var w,x=!1,E=!1,S=!1,P=!1,C=!1;function T(e){return e.displayName||"Context"}function R(e){if(null==e)return null;if("number"==typeof e.tag&&b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case o:return"Fragment";case r:return"Portal";case s:return"Profiler";case i:return"StrictMode";case d:return"Suspense";case f:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case c:return T(e)+".Consumer";case a:return T(e._context)+".Provider";case l:return function(e,t,n){var r=e.displayName;if(r)return r;var o=t.displayName||t.name||"";return""!==o?n+"("+o+")":n}(e,e.render,"ForwardRef");case p:var t=e.displayName||null;return null!==t?t:R(e.type)||"Memo";case h:var n=e,u=n._payload,m=n._init;try{return R(m(u))}catch(v){return null}}return null}w=Symbol.for("react.module.reference");var A,D,O,k,L,M,_,I=Object.assign,V=0;function $(){}$.__reactDisabledLog=!0;var N,F=y.ReactCurrentDispatcher;function j(e,t,n){if(void 0===N)try{throw Error()}catch(o){var r=o.stack.trim().match(/\n( *(at )?)/);N=r&&r[1]||""}return"\n"+N+e}var B,W=!1,H="function"==typeof WeakMap?WeakMap:Map;function U(e,t){if(!e||W)return"";var n,r=B.get(e);if(void 0!==r)return r;W=!0;var o,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=F.current,F.current=null,function(){if(0===V){A=console.log,D=console.info,O=console.warn,k=console.error,L=console.group,M=console.groupCollapsed,_=console.groupEnd;var e={configurable:!0,enumerable:!0,value:$,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}V++}();try{if(t){var s=function(){throw Error()};if(Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(s,[])}catch(h){n=h}Reflect.construct(e,[],s)}else{try{s.call()}catch(h){n=h}e.call(s.prototype)}}else{try{throw Error()}catch(h){n=h}e()}}catch(m){if(m&&n&&"string"==typeof m.stack){for(var a=m.stack.split("\n"),c=n.stack.split("\n"),l=a.length-1,u=c.length-1;l>=1&&u>=0&&a[l]!==c[u];)u--;for(;l>=1&&u>=0;l--,u--)if(a[l]!==c[u]){if(1!==l||1!==u)do{if(l--,--u<0||a[l]!==c[u]){var d="\n"+a[l].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),"function"==typeof e&&B.set(e,d),d}}while(l>=1&&u>=0);break}}}finally{W=!1,F.current=o,function(){if(0==--V){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:I({},e,{value:A}),info:I({},e,{value:D}),warn:I({},e,{value:O}),error:I({},e,{value:k}),group:I({},e,{value:L}),groupCollapsed:I({},e,{value:M}),groupEnd:I({},e,{value:_})})}V<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var f=e?e.displayName||e.name:"",p=f?j(f):"";return"function"==typeof e&&B.set(e,p),p}function z(e,t,n){if(null==e)return"";if("function"==typeof e)return U(e,!(!(r=e.prototype)||!r.isReactComponent));var r;if("string"==typeof e)return j(e);switch(e){case d:return j("Suspense");case f:return j("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case l:return U(e.render,!1);case p:return z(e.type,t,n);case h:var o=e,i=o._payload,s=o._init;try{return z(s(i),t,n)}catch(a){}}return""}B=new H;var Y=Object.prototype.hasOwnProperty,X={},q=y.ReactDebugCurrentFrame;function K(e){if(e){var t=e._owner,n=z(e.type,e._source,t?t.type:null);q.setExtraStackFrame(n)}else q.setExtraStackFrame(null)}var G=Array.isArray;function Z(e){return G(e)}function J(e){return""+e}function Q(e){if(function(e){try{return J(e),!1}catch(t){return!0}}(e))return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),J(e)}var ee,te,ne,re=y.ReactCurrentOwner,oe={key:!0,ref:!0,__self:!0,__source:!0};ne={};var ie=function(e,t,r,o,i,s,a){var c={$$typeof:n,type:e,key:t,ref:r,props:a,_owner:s,_store:{}};return Object.defineProperty(c._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(c,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(c,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(c.props),Object.freeze(c)),c};function se(e,t,n,r,o){var i,s={},a=null,c=null;for(i in void 0!==n&&(Q(n),a=""+n),function(e){if(Y.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(t)&&(Q(t.key),a=""+t.key),function(e){if(Y.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}(t)&&(c=t.ref,function(e,t){if("string"==typeof e.ref&&re.current&&t&&re.current.stateNode!==t){var n=R(re.current.type);ne[n]||(b('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',R(re.current.type),e.ref),ne[n]=!0)}}(t,o)),t)Y.call(t,i)&&!oe.hasOwnProperty(i)&&(s[i]=t[i]);if(e&&e.defaultProps){var l=e.defaultProps;for(i in l)void 0===s[i]&&(s[i]=l[i])}if(a||c){var u="function"==typeof e?e.displayName||e.name||"Unknown":e;a&&function(e,t){var n=function(){ee||(ee=!0,b("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}(s,u),c&&function(e,t){var n=function(){te||(te=!0,b("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}(s,u)}return ie(e,a,c,o,r,re.current,s)}var ae,ce=y.ReactCurrentOwner,le=y.ReactDebugCurrentFrame;function ue(e){if(e){var t=e._owner,n=z(e.type,e._source,t?t.type:null);le.setExtraStackFrame(n)}else le.setExtraStackFrame(null)}function de(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}function fe(){if(ce.current){var e=R(ce.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}ae=!1;var pe={};function he(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=fe();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}(t);if(!pe[n]){pe[n]=!0;var r="";e&&e._owner&&e._owner!==ce.current&&(r=" It was passed a child from "+R(e._owner.type)+"."),ue(e),b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,r),ue(null)}}}function me(e,t){if("object"==typeof e)if(Z(e))for(var n=0;n<e.length;n++){var r=e[n];de(r)&&he(r,t)}else if(de(e))e._store&&(e._store.validated=!0);else if(e){var o=function(e){if(null===e||"object"!=typeof e)return null;var t=v&&e[v]||e[g];return"function"==typeof t?t:null}(e);if("function"==typeof o&&o!==e.entries)for(var i,s=o.call(e);!(i=s.next()).done;)de(i.value)&&he(i.value,t)}}function ve(e){var t,n=e.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)t=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==l&&n.$$typeof!==p)return;t=n.propTypes}if(t){var r=R(n);!function(e,t,n,r,o){var i=Function.call.bind(Y);for(var s in e)if(i(e,s)){var a=void 0;try{if("function"!=typeof e[s]){var c=Error((r||"React class")+": "+n+" type `"+s+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[s]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw c.name="Invariant Violation",c}a=e[s](t,s,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(l){a=l}!a||a instanceof Error||(K(o),b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",n,s,typeof a),K(null)),a instanceof Error&&!(a.message in X)&&(X[a.message]=!0,K(o),b("Failed %s type: %s",n,a.message),K(null))}}(t,e.props,"prop",r,e)}else void 0===n.PropTypes||ae||(ae=!0,b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",R(n)||"Unknown"));"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ge(e,t,r,u,v,g){var y=function(e){return"string"==typeof e||"function"==typeof e||!!(e===o||e===s||C||e===i||e===d||e===f||P||e===m||x||E||S)||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===a||e.$$typeof===c||e.$$typeof===l||e.$$typeof===w||void 0!==e.getModuleId)}(e);if(!y){var T="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(T+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var A,D=function(e){return void 0!==e?"\n\nCheck your code at "+e.fileName.replace(/^.*[\\\/]/,"")+":"+e.lineNumber+".":""}(v);T+=D||fe(),null===e?A="null":Z(e)?A="array":void 0!==e&&e.$$typeof===n?(A="<"+(R(e.type)||"Unknown")+" />",T=" Did you accidentally export a JSX literal instead of a component?"):A=typeof e,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",A,T)}var O=se(e,t,r,v,g);if(null==O)return O;if(y){var k=t.children;if(void 0!==k)if(u)if(Z(k)){for(var L=0;L<k.length;L++)me(k[L],e);Object.freeze&&Object.freeze(k)}else b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else me(k,e)}return e===o?function(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var r=t[n];if("children"!==r&&"key"!==r){ue(e),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),ue(null);break}}null!==e.ref&&(ue(e),b("Invalid attribute `ref` supplied to `React.Fragment`."),ue(null))}(O):ve(O),O}var ye=function(e,t,n){return ge(e,t,n,!1)},be=function(e,t,n){return ge(e,t,n,!0)};u.Fragment=o,u.jsx=ye,u.jsxs=be}()),u);var d=a.exports,f={},p=t;if("production"===process.env.NODE_ENV)f.createRoot=p.createRoot,f.hydrateRoot=p.hydrateRoot;else{var h=p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;f.createRoot=function(e,t){h.usingClientEntryPoint=!0;try{return p.createRoot(e,t)}finally{h.usingClientEntryPoint=!1}},f.hydrateRoot=function(e,t,n){h.usingClientEntryPoint=!0;try{return p.hydrateRoot(e,t,n)}finally{h.usingClientEntryPoint=!1}}}function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m.apply(this,arguments)}function v(t,n=[]){let r=[];const o=()=>{const n=r.map((t=>e.createContext(t)));return function(r){const o=(null==r?void 0:r[t])||n;return e.useMemo((()=>({[`__scope${t}`]:{...r,[t]:o}})),[r,o])}};return o.scopeName=t,[function(n,o){const i=e.createContext(o),s=r.length;function a(n){const{scope:r,children:o,...a}=n,c=(null==r?void 0:r[t][s])||i,l=e.useMemo((()=>a),Object.values(a));return e.createElement(c.Provider,{value:l},o)}return r=[...r,o],a.displayName=n+"Provider",[a,function(r,a){const c=(null==a?void 0:a[t][s])||i,l=e.useContext(c);if(l)return l;if(void 0!==o)return o;throw new Error(`\`${r}\` must be used within \`${n}\``)}]},g(o,...n)]}function g(...t){const n=t[0];if(1===t.length)return n;const r=()=>{const r=t.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(t){const o=r.reduce(((e,{useScope:n,scopeName:r})=>({...e,...n(t)[`__scope${r}`]})),{});return e.useMemo((()=>({[`__scope${n.scopeName}`]:o})),[o])}};return r.scopeName=n.scopeName,r}function y(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function b(...t){return e.useCallback(y(...t),t)}function w(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}const x=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?e.useLayoutEffect:()=>{},E=r["useId".toString()]||(()=>{});let S=0;function P(e){const[t,n]=r.useState(E());return x((()=>{e||n((e=>null!=e?e:String(S++)))}),[e]),e||(t?`radix-${t}`:"")}function C(t){const n=e.useRef(t);return e.useEffect((()=>{n.current=t})),e.useMemo((()=>(...e)=>{var t;return null===(t=n.current)||void 0===t?void 0:t.call(n,...e)}),[])}function T({prop:t,defaultProp:n,onChange:r=(()=>{})}){const[o,i]=function({defaultProp:t,onChange:n}){const r=e.useState(t),[o]=r,i=e.useRef(o),s=C(n);return e.useEffect((()=>{i.current!==o&&(s(o),i.current=o)}),[o,i,s]),r}({defaultProp:n,onChange:r}),s=void 0!==t,a=s?t:o,c=C(r);return[a,e.useCallback((e=>{if(s){const n="function"==typeof e?e(t):e;n!==t&&c(n)}else i(e)}),[s,t,i,c])]}const R=e.forwardRef(((t,n)=>{const{children:r,...o}=t,i=e.Children.toArray(r),s=i.find(O);if(s){const t=s.props.children,r=i.map((n=>n===s?e.Children.count(t)>1?e.Children.only(null):e.isValidElement(t)?t.props.children:null:n));return e.createElement(A,m({},o,{ref:n}),e.isValidElement(t)?e.cloneElement(t,void 0,r):null)}return e.createElement(A,m({},o,{ref:n}),r)}));R.displayName="Slot";const A=e.forwardRef(((t,n)=>{const{children:r,...o}=t;return e.isValidElement(r)?e.cloneElement(r,{...k(o,r.props),ref:y(n,r.ref)}):e.Children.count(r)>1?e.Children.only(null):null}));A.displayName="SlotClone";const D=({children:t})=>e.createElement(e.Fragment,null,t);function O(t){return e.isValidElement(t)&&t.type===D}function k(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const L=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((t,n)=>{const r=e.forwardRef(((t,r)=>{const{asChild:o,...i}=t,s=o?R:n;return e.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),e.createElement(s,m({},i,{ref:r}))}));return r.displayName=`Primitive.${n}`,{...t,[n]:r}}),{});const M="dismissableLayer.update",_="dismissableLayer.pointerDownOutside",I="dismissableLayer.focusOutside";let V;const $=e.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),N=e.forwardRef(((t,n)=>{var r;const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:a,onInteractOutside:c,onDismiss:l,...u}=t,d=e.useContext($),[f,p]=e.useState(null),h=null!==(r=null==f?void 0:f.ownerDocument)&&void 0!==r?r:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,v]=e.useState({}),g=b(n,(e=>p(e))),y=Array.from(d.layers),[x]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),E=y.indexOf(x),S=f?y.indexOf(f):-1,P=d.layersWithOutsidePointerEventsDisabled.size>0,T=S>=E,R=function(t,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=C(t),o=e.useRef(!1),i=e.useRef((()=>{}));return e.useEffect((()=>{const e=e=>{if(e.target&&!o.current){let t=function(){j(_,r,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",i.current),i.current=t,n.addEventListener("click",i.current,{once:!0})):t()}o.current=!1},t=window.setTimeout((()=>{n.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",i.current)}}),[n,r]),{onPointerDownCapture:()=>o.current=!0}}((e=>{const t=e.target,n=[...d.branches].some((e=>e.contains(t)));T&&!n&&(null==s||s(e),null==c||c(e),e.defaultPrevented||null==l||l())}),h),A=function(t,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=C(t),o=e.useRef(!1);return e.useEffect((()=>{const e=e=>{if(e.target&&!o.current){j(I,r,{originalEvent:e},{discrete:!1})}};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)}),[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}((e=>{const t=e.target;[...d.branches].some((e=>e.contains(t)))||(null==a||a(e),null==c||c(e),e.defaultPrevented||null==l||l())}),h);return function(t,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=C(t);e.useEffect((()=>{const e=e=>{"Escape"===e.key&&r(e)};return n.addEventListener("keydown",e),()=>n.removeEventListener("keydown",e)}),[r,n])}((e=>{S===d.layers.size-1&&(null==i||i(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))}),h),e.useEffect((()=>{if(f)return o&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(V=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),F(),()=>{o&&1===d.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=V)}}),[f,h,o,d]),e.useEffect((()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),F())}),[f,d]),e.useEffect((()=>{const e=()=>v({});return document.addEventListener(M,e),()=>document.removeEventListener(M,e)}),[]),e.createElement(L.div,m({},u,{ref:g,style:{pointerEvents:P?T?"auto":"none":void 0,...t.style},onFocusCapture:w(t.onFocusCapture,A.onFocusCapture),onBlurCapture:w(t.onBlurCapture,A.onBlurCapture),onPointerDownCapture:w(t.onPointerDownCapture,R.onPointerDownCapture)}))}));function F(){const e=new CustomEvent(M);document.dispatchEvent(e)}function j(e,n,r,{discrete:o}){const i=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});n&&i.addEventListener(e,n,{once:!0}),o?function(e,n){e&&t.flushSync((()=>e.dispatchEvent(n)))}(i,s):i.dispatchEvent(s)}const B="focusScope.autoFocusOnMount",W="focusScope.autoFocusOnUnmount",H={bubbles:!1,cancelable:!0},U=e.forwardRef(((t,n)=>{const{loop:r=!1,trapped:o=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...a}=t,[c,l]=e.useState(null),u=C(i),d=C(s),f=e.useRef(null),p=b(n,(e=>l(e))),h=e.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;e.useEffect((()=>{if(o){let e=function(e){if(h.paused||!c)return;const t=e.target;c.contains(t)?f.current=t:q(f.current,{select:!0})},t=function(e){!h.paused&&c&&(c.contains(e.relatedTarget)||q(f.current,{select:!0}))};return document.addEventListener("focusin",e),document.addEventListener("focusout",t),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t)}}}),[o,c,h.paused]),e.useEffect((()=>{if(c){K.add(h);const t=document.activeElement;if(!c.contains(t)){const n=new CustomEvent(B,H);c.addEventListener(B,u),c.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(q(r,{select:t}),document.activeElement!==n)return}((e=z(c),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&q(c))}return()=>{c.removeEventListener(B,u),setTimeout((()=>{const e=new CustomEvent(W,H);c.addEventListener(W,d),c.dispatchEvent(e),e.defaultPrevented||q(null!=t?t:document.body,{select:!0}),c.removeEventListener(W,d),K.remove(h)}),0)}}var e}),[c,u,d,h]);const v=e.useCallback((e=>{if(!r&&!o)return;if(h.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){const t=e.currentTarget,[o,i]=function(e){const t=z(e),n=Y(t,e),r=Y(t.reverse(),e);return[n,r]}(t);o&&i?e.shiftKey||n!==i?e.shiftKey&&n===o&&(e.preventDefault(),r&&q(i,{select:!0})):(e.preventDefault(),r&&q(o,{select:!0})):n===t&&e.preventDefault()}}),[r,o,h.paused]);return e.createElement(L.div,m({tabIndex:-1},a,{ref:p,onKeyDown:v}))}));function z(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const 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 Y(e,t){for(const n of e)if(!X(n,{upTo:t}))return n}function X(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function q(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}const K=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=G(e,t),e.unshift(t)},remove(t){var n;e=G(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function G(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}const Z=e.forwardRef(((n,r)=>{var o;const{container:i=(null===globalThis||void 0===globalThis||null===(o=globalThis.document)||void 0===o?void 0:o.body),...s}=n;return i?t.createPortal(e.createElement(L.div,m({},s,{ref:r})),i):null}));const J=n=>{const{present:r,children:o}=n,i=function(n){const[r,o]=e.useState(),i=e.useRef({}),s=e.useRef(n),a=e.useRef("none"),c=n?"mounted":"unmounted",[l,u]=function(t,n){return e.useReducer(((e,t)=>{const r=n[e][t];return null!=r?r:e}),t)}(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return e.useEffect((()=>{const e=Q(i.current);a.current="mounted"===l?e:"none"}),[l]),x((()=>{const e=i.current,t=s.current;if(t!==n){const r=a.current,o=Q(e);if(n)u("MOUNT");else if("none"===o||"none"===(null==e?void 0:e.display))u("UNMOUNT");else{u(t&&r!==o?"ANIMATION_OUT":"UNMOUNT")}s.current=n}}),[n,u]),x((()=>{if(r){const e=e=>{const n=Q(i.current).includes(e.animationName);e.target===r&&n&&t.flushSync((()=>u("ANIMATION_END")))},n=e=>{e.target===r&&(a.current=Q(i.current))};return r.addEventListener("animationstart",n),r.addEventListener("animationcancel",e),r.addEventListener("animationend",e),()=>{r.removeEventListener("animationstart",n),r.removeEventListener("animationcancel",e),r.removeEventListener("animationend",e)}}u("ANIMATION_END")}),[r,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:e.useCallback((e=>{e&&(i.current=getComputedStyle(e)),o(e)}),[])}}(r),s="function"==typeof o?o({present:i.isPresent}):e.Children.only(o),a=b(i.ref,s.ref);return"function"==typeof o||i.isPresent?e.cloneElement(s,{ref:a}):null};function Q(e){return(null==e?void 0:e.animationName)||"none"}J.displayName="Presence";let ee=0;function te(){e.useEffect((()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:ne()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:ne()),ee++,()=>{1===ee&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),ee--}}),[])}function ne(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var re=function(){return re=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},re.apply(this,arguments)};function oe(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}"function"==typeof SuppressedError&&SuppressedError;var ie="right-scroll-bar-position",se="width-before-scroll-bar";function ae(t,n){return r=n||null,o=function(e){return t.forEach((function(t){return function(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}(t,e)}))},(i=e.useState((function(){return{value:r,callback:o,facade:{get current(){return i.value},set current(e){var t=i.value;t!==e&&(i.value=e,i.callback(e,t))}}}}))[0]).callback=o,i.facade;var r,o,i}function ce(e){return e}var le=function(e){var t=e.sideCar,n=oe(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return r.createElement(o,re({},n))};le.isSideCarExport=!0;var ue=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=ce);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},s=function(){return Promise.resolve().then(i)};s(),n={push:function(e){t.push(e),s()},filter:function(e){return t=t.filter(e),n}}}}}(null);return t.options=re({async:!0,ssr:!1},e),t}(),de=function(){},fe=r.forwardRef((function(e,t){var n=r.useRef(null),o=r.useState({onScrollCapture:de,onWheelCapture:de,onTouchMoveCapture:de}),i=o[0],s=o[1],a=e.forwardProps,c=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,h=e.noIsolation,m=e.inert,v=e.allowPinchZoom,g=e.as,y=void 0===g?"div":g,b=oe(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),w=p,x=ae([n,t]),E=re(re({},b),i);return r.createElement(r.Fragment,null,d&&r.createElement(w,{sideCar:ue,removeScrollBar:u,shards:f,noIsolation:h,inert:m,setCallbacks:s,allowPinchZoom:!!v,lockRef:n}),a?r.cloneElement(r.Children.only(c),re(re({},E),{ref:x})):r.createElement(y,re({},E,{className:l,ref:x}),c))}));fe.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},fe.classNames={fullWidth:se,zeroRight:ie};function pe(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var he=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=pe())&&(o=n,(r=t).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){!--e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},me=function(){var e,t=(e=he(),function(t,n){r.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&n])});return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},ve={left:0,top:0,right:0,gap:0},ge=function(e){return parseInt(e||"",10)||0},ye=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return ve;var t=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[ge(n),ge(r),ge(o)]}(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])}},be=me(),we=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,a=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(a,"px ").concat(r,";\n }\n body {\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(s,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(a,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(ie," {\n right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(se," {\n margin-right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(ie," .").concat(ie," {\n right: 0 ").concat(r,";\n }\n \n .").concat(se," .").concat(se," {\n margin-right: 0 ").concat(r,";\n }\n \n body {\n ").concat("--removed-body-scroll-bar-size",": ").concat(a,"px;\n }\n")},xe=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,i=void 0===o?"margin":o,s=r.useMemo((function(){return ye(i)}),[i]);return r.createElement(be,{styles:we(s,!t,i,n?"":"!important")})},Ee=!1;if("undefined"!=typeof window)try{var Se=Object.defineProperty({},"passive",{get:function(){return Ee=!0,!0}});window.addEventListener("test",Se,Se),window.removeEventListener("test",Se,Se)}catch(ny){Ee=!1}var Pe=!!Ee&&{passive:!1},Ce=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},Te=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),Re(e,n)){var r=Ae(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},Re=function(e,t){return"v"===e?function(e){return Ce(e,"overflowY")}(t):function(e){return Ce(e,"overflowX")}(t)},Ae=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},De=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Oe=function(e){return[e.deltaX,e.deltaY]},ke=function(e){return e&&"current"in e?e.current:e},Le=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Me=0,_e=[];const Ie=(Ve=function(e){var t=r.useRef([]),n=r.useRef([0,0]),o=r.useRef(),i=r.useState(Me++)[0],s=r.useState((function(){return me()}))[0],a=r.useRef(e);r.useEffect((function(){a.current=e}),[e]),r.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));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))}([e.lockRef.current],(e.shards||[]).map(ke),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(i))})),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(i))}))}}}),[e.inert,e.lockRef.current,e.shards]);var c=r.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!a.current.allowPinchZoom;var r,i=De(e),s=n.current,c="deltaX"in e?e.deltaX:s[0]-i[0],l="deltaY"in e?e.deltaY:s[1]-i[1],u=e.target,d=Math.abs(c)>Math.abs(l)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var f=Te(d,u);if(!f)return!0;if(f?r=d:(r="v"===d?"h":"v",f=Te(d,u)),!f)return!1;if(!o.current&&"changedTouches"in e&&(c||l)&&(o.current=r),!r)return!0;var p=o.current||r;return function(e,t,n,r,o){var i=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),s=i*r,a=n.target,c=t.contains(a),l=!1,u=s>0,d=0,f=0;do{var p=Ae(e,a),h=p[0],m=p[1]-p[2]-i*h;(h||m)&&Re(e,a)&&(d+=m,f+=h),a=a.parentNode}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));return(u&&(o&&0===d||!o&&s>d)||!u&&(o&&0===f||!o&&-s>f))&&(l=!0),l}(p,t,e,"h"===p?c:l,!0)}),[]),l=r.useCallback((function(e){var n=e;if(_e.length&&_e[_e.length-1]===s){var r="deltaY"in n?Oe(n):De(n),o=t.current.filter((function(e){return e.name===n.type&&e.target===n.target&&(t=e.delta,o=r,t[0]===o[0]&&t[1]===o[1]);var t,o}))[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var i=(a.current.shards||[]).map(ke).filter(Boolean).filter((function(e){return e.contains(n.target)}));(i.length>0?c(n,i[0]):!a.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),u=r.useCallback((function(e,n,r,o){var i={name:e,delta:n,target:r,should:o};t.current.push(i),setTimeout((function(){t.current=t.current.filter((function(e){return e!==i}))}),1)}),[]),d=r.useCallback((function(e){n.current=De(e),o.current=void 0}),[]),f=r.useCallback((function(t){u(t.type,Oe(t),t.target,c(t,e.lockRef.current))}),[]),p=r.useCallback((function(t){u(t.type,De(t),t.target,c(t,e.lockRef.current))}),[]);r.useEffect((function(){return _e.push(s),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",l,Pe),document.addEventListener("touchmove",l,Pe),document.addEventListener("touchstart",d,Pe),function(){_e=_e.filter((function(e){return e!==s})),document.removeEventListener("wheel",l,Pe),document.removeEventListener("touchmove",l,Pe),document.removeEventListener("touchstart",d,Pe)}}),[]);var h=e.removeScrollBar,m=e.inert;return r.createElement(r.Fragment,null,m?r.createElement(s,{styles:Le(i)}):null,h?r.createElement(xe,{gapMode:"margin"}):null)},ue.useMedium(Ve),le);var Ve,$e=r.forwardRef((function(e,t){return r.createElement(fe,re({},e,{ref:t,sideCar:Ie}))}));$e.classNames=fe.classNames;const Ne=$e;var Fe=new WeakMap,je=new WeakMap,Be={},We=0,He=function(e){return e&&(e.host||He(e.parentNode))},Ue=function(e,t,n,r){var o=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=He(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);Be[n]||(Be[n]=new WeakMap);var i=Be[n],s=[],a=new Set,c=new Set(o),l=function(e){e&&!a.has(e)&&(a.add(e),l(e.parentNode))};o.forEach(l);var u=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(a.has(e))u(e);else{var t=e.getAttribute(r),o=null!==t&&"false"!==t,c=(Fe.get(e)||0)+1,l=(i.get(e)||0)+1;Fe.set(e,c),i.set(e,l),s.push(e),1===c&&o&&je.set(e,!0),1===l&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}}))};return u(t),a.clear(),We++,function(){s.forEach((function(e){var t=Fe.get(e)-1,o=i.get(e)-1;Fe.set(e,t),i.set(e,o),t||(je.has(e)||e.removeAttribute(r),je.delete(e)),o||e.removeAttribute(n)})),--We||(Fe=new WeakMap,Fe=new WeakMap,je=new WeakMap,Be={})}},ze=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),Ue(r,o,n,"aria-hidden")):function(){return null}};const Ye="Dialog",[Xe,qe]=v(Ye),[Ke,Ge]=Xe(Ye),Ze="DialogPortal",[Je,Qe]=Xe(Ze,{forceMount:void 0}),et="DialogOverlay",tt=e.forwardRef(((t,n)=>{const r=Qe(et,t.__scopeDialog),{forceMount:o=r.forceMount,...i}=t,s=Ge(et,t.__scopeDialog);return s.modal?e.createElement(J,{present:o||s.open},e.createElement(nt,m({},i,{ref:n}))):null})),nt=e.forwardRef(((t,n)=>{const{__scopeDialog:r,...o}=t,i=Ge(et,r);return e.createElement(Ne,{as:R,allowPinchZoom:!0,shards:[i.contentRef]},e.createElement(L.div,m({"data-state":ct(i.open)},o,{ref:n,style:{pointerEvents:"auto",...o.style}})))})),rt="DialogContent",ot=e.forwardRef(((t,n)=>{const r=Qe(rt,t.__scopeDialog),{forceMount:o=r.forceMount,...i}=t,s=Ge(rt,t.__scopeDialog);return e.createElement(J,{present:o||s.open},s.modal?e.createElement(it,m({},i,{ref:n})):e.createElement(st,m({},i,{ref:n})))})),it=e.forwardRef(((t,n)=>{const r=Ge(rt,t.__scopeDialog),o=e.useRef(null),i=b(n,r.contentRef,o);return e.useEffect((()=>{const e=o.current;if(e)return ze(e)}),[]),e.createElement(at,m({},t,{ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:w(t.onCloseAutoFocus,(e=>{var t;e.preventDefault(),null===(t=r.triggerRef.current)||void 0===t||t.focus()})),onPointerDownOutside:w(t.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:w(t.onFocusOutside,(e=>e.preventDefault()))}))})),st=e.forwardRef(((t,n)=>{const r=Ge(rt,t.__scopeDialog),o=e.useRef(!1);return e.createElement(at,m({},t,{ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{var n,i;(null===(n=t.onCloseAutoFocus)||void 0===n||n.call(t,e),e.defaultPrevented)||(o.current||null===(i=r.triggerRef.current)||void 0===i||i.focus(),e.preventDefault());o.current=!1},onInteractOutside:e=>{var n,i;null===(n=t.onInteractOutside)||void 0===n||n.call(t,e),e.defaultPrevented||(o.current=!0);const s=e.target;(null===(i=r.triggerRef.current)||void 0===i?void 0:i.contains(s))&&e.preventDefault()}}))})),at=e.forwardRef(((t,n)=>{const{__scopeDialog:r,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:s,...a}=t,c=Ge(rt,r),l=b(n,e.useRef(null));return te(),e.createElement(e.Fragment,null,e.createElement(U,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:s},e.createElement(N,m({role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":ct(c.open)},a,{ref:l,onDismiss:()=>c.onOpenChange(!1)}))),!1)}));function ct(e){return e?"open":"closed"}const lt=t=>{const{__scopeDialog:n,children:r,open:o,defaultOpen:i,onOpenChange:s,modal:a=!0}=t,c=e.useRef(null),l=e.useRef(null),[u=!1,d]=T({prop:o,defaultProp:i,onChange:s});return e.createElement(Ke,{scope:n,triggerRef:c,contentRef:l,contentId:P(),titleId:P(),descriptionId:P(),open:u,onOpenChange:d,onOpenToggle:e.useCallback((()=>d((e=>!e))),[d]),modal:a},r)},ut=t=>{const{__scopeDialog:n,forceMount:r,children:o,container:i}=t,s=Ge(Ze,n);return e.createElement(Je,{scope:n,forceMount:r},e.Children.map(o,(t=>e.createElement(J,{present:r||s.open},e.createElement(Z,{asChild:!0,container:i},t)))))},dt=tt,ft=ot;function pt(e){return e.split("-")[0]}function ht(e){return e.split("-")[1]}function mt(e){return["top","bottom"].includes(pt(e))?"x":"y"}function vt(e){return"y"===e?"height":"width"}function gt(e,t,n){let{reference:r,floating:o}=e;const i=r.x+r.width/2-o.width/2,s=r.y+r.height/2-o.height/2,a=mt(t),c=vt(a),l=r[c]/2-o[c]/2,u="x"===a;let d;switch(pt(t)){case"top":d={x:i,y:r.y-o.height};break;case"bottom":d={x:i,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:s};break;case"left":d={x:r.x-o.width,y:s};break;default:d={x:r.x,y:r.y}}switch(ht(t)){case"start":d[a]-=l*(n&&u?-1:1);break;case"end":d[a]+=l*(n&&u?-1:1)}return d}function yt(e){return"number"!=typeof e?(t=e,{top:0,right:0,bottom:0,left:0,...t}):{top:e,right:e,bottom:e,left:e};var t}function bt(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function wt(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=t,h=yt(p),m=a[f?"floating"===d?"reference":"floating":d],v=bt(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(a.floating)),boundary:l,rootBoundary:u,strategy:c})),g=bt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===d?{...s.floating,x:r,y:o}:s.reference,offsetParent:await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),strategy:c}):s[d]);return{top:v.top-g.top+h.top,bottom:g.bottom-v.bottom+h.bottom,left:v.left-g.left+h.left,right:g.right-v.right+h.right}}const xt=Math.min,Et=Math.max;function St(e,t,n){return Et(e,xt(t,n))}const Pt=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:r=0}=null!=e?e:{},{x:o,y:i,placement:s,rects:a,platform:c}=t;if(null==n)return{};const l=yt(r),u={x:o,y:i},d=mt(s),f=ht(s),p=vt(d),h=await c.getDimensions(n),m="y"===d?"top":"left",v="y"===d?"bottom":"right",g=a.reference[p]+a.reference[d]-u[d]-a.floating[p],y=u[d]-a.reference[d],b=await(null==c.getOffsetParent?void 0:c.getOffsetParent(n));let w=b?"y"===d?b.clientHeight||0:b.clientWidth||0:0;0===w&&(w=a.floating[p]);const x=g/2-y/2,E=l[m],S=w-h[p]-l[v],P=w/2-h[p]/2+x,C=St(E,P,S),T=("start"===f?l[m]:l[v])>0&&P!==C&&a.reference[p]<=a.floating[p];return{[d]:u[d]-(T?P<E?E-P:S-P:0),data:{[d]:C,centerOffset:P-C}}}}),Ct={left:"right",right:"left",bottom:"top",top:"bottom"};function Tt(e){return e.replace(/left|right|bottom|top/g,(e=>Ct[e]))}const Rt={start:"end",end:"start"};function At(e){return e.replace(/start|end/g,(e=>Rt[e]))}const Dt=["top","right","bottom","left"];Dt.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);const Ot=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:o,rects:i,initialPlacement:s,platform:a,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f="bestFit",flipAlignment:p=!0,...h}=e,m=pt(r),v=[s,...d||(m!==s&&p?function(e){const t=Tt(e);return[At(e),t,At(t)]}(s):[Tt(s)])],g=await wt(t,h),y=[];let b=(null==(n=o.flip)?void 0:n.overflows)||[];if(l&&y.push(g[m]),u){const{main:e,cross:t}=function(e,t,n){void 0===n&&(n=!1);const r=ht(e),o=mt(e),i=vt(o);let s="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Tt(s)),{main:s,cross:Tt(s)}}(r,i,await(null==a.isRTL?void 0:a.isRTL(c.floating)));y.push(g[e],g[t])}if(b=[...b,{placement:r,overflows:y}],!y.every((e=>e<=0))){var w,x;const e=(null!=(w=null==(x=o.flip)?void 0:x.index)?w:0)+1,t=v[e];if(t)return{data:{index:e,overflows:b},reset:{placement:t}};let n="bottom";switch(f){case"bestFit":{var E;const e=null==(E=b.map((e=>[e,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:E[0].placement;e&&(n=e);break}case"initialPlacement":n=s}if(r!==n)return{reset:{placement:n}}}return{}}}};function kt(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Lt(e){return Dt.some((t=>e[t]>=0))}const Mt=function(e){let{strategy:t="referenceHidden",...n}=void 0===e?{}:e;return{name:"hide",async fn(e){const{rects:r}=e;switch(t){case"referenceHidden":{const t=kt(await wt(e,{...n,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:Lt(t)}}}case"escaped":{const t=kt(await wt(e,{...n,altBoundary:!0}),r.floating);return{data:{escapedOffsets:t,escaped:Lt(t)}}}default:return{}}}}};function _t(e){return"x"===e?"y":"x"}const It=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=e,l={x:n,y:r},u=await wt(t,c),d=mt(pt(o)),f=_t(d);let p=l[d],h=l[f];if(i){const e="y"===d?"bottom":"right";p=St(p+u["y"===d?"top":"left"],p,p-u[e])}if(s){const e="y"===f?"bottom":"right";h=St(h+u["y"===f?"top":"left"],h,h-u[e])}const m=a.fn({...t,[d]:p,[f]:h});return{...m,data:{x:m.x-n,y:m.y-r}}}}};function Vt(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function $t(e){if(null==e)return window;if(!Vt(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function Nt(e){return $t(e).getComputedStyle(e)}function Ft(e){return Vt(e)?"":e?(e.nodeName||"").toLowerCase():""}function jt(){const e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function Bt(e){return e instanceof $t(e).HTMLElement}function Wt(e){return e instanceof $t(e).Element}function Ht(e){return"undefined"!=typeof ShadowRoot&&(e instanceof $t(e).ShadowRoot||e instanceof ShadowRoot)}function Ut(e){const{overflow:t,overflowX:n,overflowY:r}=Nt(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function zt(e){return["table","td","th"].includes(Ft(e))}function Yt(e){const t=/firefox/i.test(jt()),n=Nt(e);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter}function Xt(){return!/^((?!chrome|android).)*safari/i.test(jt())}const qt=Math.min,Kt=Math.max,Gt=Math.round;function Zt(e,t,n){var r,o,i,s;void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect();let c=1,l=1;t&&Bt(e)&&(c=e.offsetWidth>0&&Gt(a.width)/e.offsetWidth||1,l=e.offsetHeight>0&&Gt(a.height)/e.offsetHeight||1);const u=Wt(e)?$t(e):window,d=!Xt()&&n,f=(a.left+(d&&null!=(r=null==(o=u.visualViewport)?void 0:o.offsetLeft)?r:0))/c,p=(a.top+(d&&null!=(i=null==(s=u.visualViewport)?void 0:s.offsetTop)?i:0))/l,h=a.width/c,m=a.height/l;return{width:h,height:m,top:p,right:f+h,bottom:p+m,left:f,x:f,y:p}}function Jt(e){return(t=e,(t instanceof $t(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function Qt(e){return Wt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function en(e){return Zt(Jt(e)).left+Qt(e).scrollLeft}function tn(e,t,n){const r=Bt(t),o=Jt(t),i=Zt(e,r&&function(e){const t=Zt(e);return Gt(t.width)!==e.offsetWidth||Gt(t.height)!==e.offsetHeight}(t),"fixed"===n);let s={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(r||!r&&"fixed"!==n)if(("body"!==Ft(t)||Ut(o))&&(s=Qt(t)),Bt(t)){const e=Zt(t,!0);a.x=e.x+t.clientLeft,a.y=e.y+t.clientTop}else o&&(a.x=en(o));return{x:i.left+s.scrollLeft-a.x,y:i.top+s.scrollTop-a.y,width:i.width,height:i.height}}function nn(e){return"html"===Ft(e)?e:e.assignedSlot||e.parentNode||(Ht(e)?e.host:null)||Jt(e)}function rn(e){return Bt(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function on(e){const t=$t(e);let n=rn(e);for(;n&&zt(n)&&"static"===getComputedStyle(n).position;)n=rn(n);return n&&("html"===Ft(n)||"body"===Ft(n)&&"static"===getComputedStyle(n).position&&!Yt(n))?t:n||function(e){let t=nn(e);for(Ht(t)&&(t=t.host);Bt(t)&&!["html","body"].includes(Ft(t));){if(Yt(t))return t;t=t.parentNode}return null}(e)||t}function sn(e){if(Bt(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=Zt(e);return{width:t.width,height:t.height}}function an(e){const t=nn(e);return["html","body","#document"].includes(Ft(t))?e.ownerDocument.body:Bt(t)&&Ut(t)?t:an(t)}function cn(e,t){var n;void 0===t&&(t=[]);const r=an(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=$t(r),s=o?[i].concat(i.visualViewport||[],Ut(r)?r:[]):r,a=t.concat(s);return o?a:a.concat(cn(s))}function ln(e,t,n){return"viewport"===t?bt(function(e,t){const n=$t(e),r=Jt(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,c=0;if(o){i=o.width,s=o.height;const e=Xt();(e||!e&&"fixed"===t)&&(a=o.offsetLeft,c=o.offsetTop)}return{width:i,height:s,x:a,y:c}}(e,n)):Wt(t)?function(e,t){const n=Zt(e,!1,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft;return{top:r,left:o,x:o,y:r,right:o+e.clientWidth,bottom:r+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,n):bt(function(e){var t;const n=Jt(e),r=Qt(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=Kt(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Kt(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0);let a=-r.scrollLeft+en(e);const c=-r.scrollTop;return"rtl"===Nt(o||n).direction&&(a+=Kt(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:c}}(Jt(e)))}function un(e){const t=cn(e),n=["absolute","fixed"].includes(Nt(e).position)&&Bt(e)?on(e):e;return Wt(n)?t.filter((e=>Wt(e)&&function(e,t){const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Ht(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==Ft(e))):[]}const dn={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?un(t):[].concat(n),r],s=i[0],a=i.reduce(((e,n)=>{const r=ln(t,n,o);return e.top=Kt(r.top,e.top),e.right=qt(r.right,e.right),e.bottom=qt(r.bottom,e.bottom),e.left=Kt(r.left,e.left),e}),ln(t,s,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=Bt(n),i=Jt(n);if(n===i)return t;let s={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if((o||!o&&"fixed"!==r)&&(("body"!==Ft(n)||Ut(i))&&(s=Qt(n)),Bt(n))){const e=Zt(n,!0);a.x=e.x+n.clientLeft,a.y=e.y+n.clientTop}return{...t,x:t.x-s.scrollLeft+a.x,y:t.y-s.scrollTop+a.y}},isElement:Wt,getDimensions:sn,getOffsetParent:on,getDocumentElement:Jt,getElementRects:e=>{let{reference:t,floating:n,strategy:r}=e;return{reference:tn(t,on(n),r),floating:{...sn(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===Nt(e).direction};function fn(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=!0,animationFrame:a=!1}=r,c=o&&!a,l=i&&!a,u=c||l?[...Wt(e)?cn(e):[],...cn(t)]:[];u.forEach((e=>{c&&e.addEventListener("scroll",n,{passive:!0}),l&&e.addEventListener("resize",n)}));let d,f=null;if(s){let r=!0;f=new ResizeObserver((()=>{r||n(),r=!1})),Wt(e)&&!a&&f.observe(e),f.observe(t)}let p=a?Zt(e):null;return a&&function t(){const r=Zt(e);!p||r.x===p.x&&r.y===p.y&&r.width===p.width&&r.height===p.height||n(),p=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{c&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)})),null==(e=f)||e.disconnect(),f=null,a&&cancelAnimationFrame(d)}}const pn=(e,t,n)=>(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=await(null==s.isRTL?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:l,y:u}=gt(c,r,a),d=r,f={},p=0;for(let h=0;h<i.length;h++){const{name:n,fn:m}=i[h],{x:v,y:g,data:y,reset:b}=await m({x:l,y:u,initialPlacement:r,placement:d,strategy:o,middlewareData:f,rects:c,platform:s,elements:{reference:e,floating:t}});l=null!=v?v:l,u=null!=g?g:u,f={...f,[n]:{...f[n],...y}},b&&p<=50&&(p++,"object"==typeof b&&(b.placement&&(d=b.placement),b.rects&&(c=!0===b.rects?await s.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:l,y:u}=gt(c,d,a))),h=-1)}return{x:l,y:u,placement:d,strategy:o,middlewareData:f}})(e,t,{platform:dn,...n});var hn="undefined"!=typeof document?e.useLayoutEffect:e.useEffect;function mn(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;0!=r--;)if(!mn(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!mn(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function vn(e){let{middleware:t,placement:n="bottom",strategy:i="absolute",whileElementsMounted:s}=void 0===e?{}:e;const a=r.useRef(null),c=r.useRef(null),l=function(e){const t=r.useRef(e);return hn((()=>{t.current=e})),t}(s),u=r.useRef(null),[d,f]=r.useState({x:null,y:null,strategy:i,placement:n,middlewareData:{}}),[p,h]=r.useState(t);mn(null==p?void 0:p.map((e=>{let{options:t}=e;return t})),null==t?void 0:t.map((e=>{let{options:t}=e;return t})))||h(t);const m=r.useCallback((()=>{a.current&&c.current&&pn(a.current,c.current,{middleware:p,placement:n,strategy:i}).then((e=>{v.current&&o.flushSync((()=>{f(e)}))}))}),[p,n,i]);hn((()=>{v.current&&m()}),[m]);const v=r.useRef(!1);hn((()=>(v.current=!0,()=>{v.current=!1})),[]);const g=r.useCallback((()=>{if("function"==typeof u.current&&(u.current(),u.current=null),a.current&&c.current)if(l.current){const e=l.current(a.current,c.current,m);u.current=e}else m()}),[m,l]),y=r.useCallback((e=>{a.current=e,g()}),[g]),b=r.useCallback((e=>{c.current=e,g()}),[g]),w=r.useMemo((()=>({reference:a,floating:c})),[]);return r.useMemo((()=>({...d,update:m,refs:w,reference:y,floating:b})),[d,m,w,y,b])}const gn=e=>{const{element:t,padding:n}=e;return{name:"arrow",options:e,fn(e){return r=t,Object.prototype.hasOwnProperty.call(r,"current")?null!=t.current?Pt({element:t.current,padding:n}).fn(e):{}:t?Pt({element:t,padding:n}).fn(e):{};var r}}},yn=e.forwardRef(((t,n)=>{const{children:r,width:o=10,height:i=5,...s}=t;return e.createElement(L.svg,m({},s,{ref:n,width:o,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),t.asChild?r:e.createElement("polygon",{points:"0,0 30,0 15,10"}))}));function bn(t){const[n,r]=e.useState(void 0);return x((()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const e=new ResizeObserver((e=>{if(!Array.isArray(e))return;if(!e.length)return;const n=e[0];let o,i;if("borderBoxSize"in n){const e=n.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=t.offsetWidth,i=t.offsetHeight;r({width:o,height:i})}));return e.observe(t,{box:"border-box"}),()=>e.unobserve(t)}r(void 0)}),[t]),n}const wn="Popper",[xn,En]=v(wn),[Sn,Pn]=xn(wn),Cn=e.forwardRef(((t,n)=>{const{__scopePopper:r,virtualRef:o,...i}=t,s=Pn("PopperAnchor",r),a=e.useRef(null),c=b(n,a);return e.useEffect((()=>{s.onAnchorChange((null==o?void 0:o.current)||a.current)})),o?null:e.createElement(L.div,m({},i,{ref:c}))})),Tn="PopperContent",[Rn,An]=xn(Tn),[Dn,On]=xn(Tn,{hasParent:!1,positionUpdateFns:new Set}),kn=e.forwardRef(((t,n)=>{var r,o,i,s,a,c,l,u;const{__scopePopper:d,side:f="bottom",sideOffset:p=0,align:h="center",alignOffset:m=0,arrowPadding:v=0,collisionBoundary:g=[],collisionPadding:y=0,sticky:w="partial",hideWhenDetached:E=!1,avoidCollisions:S=!0,onPlaced:P,...T}=t,R=Pn(Tn,d),[A,D]=e.useState(null),O=b(n,(e=>D(e))),[k,M]=e.useState(null),_=bn(k),I=null!==(r=null==_?void 0:_.width)&&void 0!==r?r:0,V=null!==(o=null==_?void 0:_.height)&&void 0!==o?o:0,$=f+("center"!==h?"-"+h:""),N="number"==typeof y?y:{top:0,right:0,bottom:0,left:0,...y},F=Array.isArray(g)?g:[g],j=F.length>0,B={padding:N,boundary:F.filter(_n),altBoundary:j},{reference:W,floating:H,strategy:U,x:z,y:Y,placement:X,middlewareData:q,update:K}=vn({strategy:"fixed",placement:$,whileElementsMounted:fn,middleware:[In(),(J={mainAxis:p+V,alignmentAxis:m},void 0===J&&(J=0),{name:"offset",options:J,async fn(e){const{x:t,y:n}=e,r=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),s=pt(n),a=ht(n),c="x"===mt(n),l=["left","top"].includes(s)?-1:1,u=i&&c?-1:1,d="function"==typeof t?t(e):t;let{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&"number"==typeof h&&(p="end"===a?-1*h:h),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}(e,J);return{x:t+r.x,y:n+r.y,data:r}}}),S?It({mainAxis:!0,crossAxis:!1,limiter:"partial"===w?(void 0===Z&&(Z={}),{options:Z,fn(e){const{x:t,y:n,placement:r,rects:o,middlewareData:i}=e,{offset:s=0,mainAxis:a=!0,crossAxis:c=!0}=Z,l={x:t,y:n},u=mt(r),d=_t(u);let f=l[u],p=l[d];const h="function"==typeof s?s({...o,placement:r}):s,m="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(a){const e="y"===u?"height":"width",t=o.reference[u]-o.floating[e]+m.mainAxis,n=o.reference[u]+o.reference[e]-m.mainAxis;f<t?f=t:f>n&&(f=n)}if(c){var v,g,y,b;const e="y"===u?"width":"height",t=["top","left"].includes(pt(r)),n=o.reference[d]-o.floating[e]+(t&&null!=(v=null==(g=i.offset)?void 0:g[d])?v:0)+(t?0:m.crossAxis),s=o.reference[d]+o.reference[e]+(t?0:null!=(y=null==(b=i.offset)?void 0:b[d])?y:0)-(t?m.crossAxis:0);p<n?p=n:p>s&&(p=s)}return{[u]:f,[d]:p}}}):void 0,...B}):void 0,k?gn({element:k,padding:v}):void 0,S?Ot({...B}):void 0,(G={...B,apply:({elements:e,availableWidth:t,availableHeight:n})=>{e.floating.style.setProperty("--radix-popper-available-width",`${t}px`),e.floating.style.setProperty("--radix-popper-available-height",`${n}px`)}},void 0===G&&(G={}),{name:"size",options:G,async fn(e){const{placement:t,rects:n,platform:r,elements:o}=e,{apply:i,...s}=G,a=await wt(e,s),c=pt(t),l=ht(t);let u,d;"top"===c||"bottom"===c?(u=c,d=l===(await(null==r.isRTL?void 0:r.isRTL(o.floating))?"start":"end")?"left":"right"):(d=c,u="end"===l?"top":"bottom");const f=Et(a.left,0),p=Et(a.right,0),h=Et(a.top,0),m=Et(a.bottom,0),v={availableHeight:n.floating.height-(["left","right"].includes(t)?2*(0!==h||0!==m?h+m:Et(a.top,a.bottom)):a[u]),availableWidth:n.floating.width-(["top","bottom"].includes(t)?2*(0!==f||0!==p?f+p:Et(a.left,a.right)):a[d])},g=await r.getDimensions(o.floating);null==i||i({...e,...v});const y=await r.getDimensions(o.floating);return g.width!==y.width||g.height!==y.height?{reset:{rects:!0}}:{}}}),Vn({arrowWidth:I,arrowHeight:V}),E?Mt({strategy:"referenceHidden"}):void 0].filter(Mn)});var G,Z,J;x((()=>{W(R.anchor)}),[W,R.anchor]);const Q=null!==z&&null!==Y,[ee,te]=$n(X),ne=C(P);x((()=>{Q&&(null==ne||ne())}),[Q,ne]);const re=null===(i=q.arrow)||void 0===i?void 0:i.x,oe=null===(s=q.arrow)||void 0===s?void 0:s.y,ie=0!==(null===(a=q.arrow)||void 0===a?void 0:a.centerOffset),[se,ae]=e.useState();x((()=>{A&&ae(window.getComputedStyle(A).zIndex)}),[A]);const{hasParent:ce,positionUpdateFns:le}=On(Tn,d),ue=!ce;e.useLayoutEffect((()=>{if(!ue)return le.add(K),()=>{le.delete(K)}}),[ue,le,K]),x((()=>{ue&&Q&&Array.from(le).reverse().forEach((e=>requestAnimationFrame(e)))}),[ue,Q,le]);const de={"data-side":ee,"data-align":te,...T,ref:O,style:{...T.style,animation:Q?void 0:"none",opacity:null!==(c=q.hide)&&void 0!==c&&c.referenceHidden?0:void 0}};return e.createElement("div",{ref:H,"data-radix-popper-content-wrapper":"",style:{position:U,left:0,top:0,transform:Q?`translate3d(${Math.round(z)}px, ${Math.round(Y)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:se,"--radix-popper-transform-origin":[null===(l=q.transformOrigin)||void 0===l?void 0:l.x,null===(u=q.transformOrigin)||void 0===u?void 0:u.y].join(" ")},dir:t.dir},e.createElement(Rn,{scope:d,placedSide:ee,onArrowChange:M,arrowX:re,arrowY:oe,shouldHideArrow:ie},ue?e.createElement(Dn,{scope:d,hasParent:!0,positionUpdateFns:le},e.createElement(L.div,de)):e.createElement(L.div,de)))})),Ln={top:"bottom",right:"left",bottom:"top",left:"right"};function Mn(e){return void 0!==e}function _n(e){return null!==e}const In=()=>({name:"anchorCssProperties",fn(e){const{rects:t,elements:n}=e,{width:r,height:o}=t.reference;return n.floating.style.setProperty("--radix-popper-anchor-width",`${r}px`),n.floating.style.setProperty("--radix-popper-anchor-height",`${o}px`),{}}}),Vn=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,s;const{placement:a,rects:c,middlewareData:l}=t,u=0!==(null===(n=l.arrow)||void 0===n?void 0:n.centerOffset),d=u?0:e.arrowWidth,f=u?0:e.arrowHeight,[p,h]=$n(a),m={start:"0%",center:"50%",end:"100%"}[h],v=(null!==(r=null===(o=l.arrow)||void 0===o?void 0:o.x)&&void 0!==r?r:0)+d/2,g=(null!==(i=null===(s=l.arrow)||void 0===s?void 0:s.y)&&void 0!==i?i:0)+f/2;let y="",b="";return"bottom"===p?(y=u?m:`${v}px`,b=-f+"px"):"top"===p?(y=u?m:`${v}px`,b=`${c.floating.height+f}px`):"right"===p?(y=-f+"px",b=u?m:`${g}px`):"left"===p&&(y=`${c.floating.width+f}px`,b=u?m:`${g}px`),{data:{x:y,y:b}}}});function $n(e){const[t,n="center"]=e.split("-");return[t,n]}const Nn=t=>{const{__scopePopper:n,children:r}=t,[o,i]=e.useState(null);return e.createElement(Sn,{scope:n,anchor:o,onAnchorChange:i},r)},Fn=Cn,jn=kn,Bn=e.forwardRef((function(t,n){const{__scopePopper:r,...o}=t,i=An("PopperArrow",r),s=Ln[i.placedSide];return e.createElement("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0}},e.createElement(yn,m({},o,{ref:n,style:{...o.style,display:"block"}})))})),Wn="Popover",[Hn,Un]=v(Wn,[En]),zn=En(),[Yn,Xn]=Hn(Wn),qn=e.forwardRef(((t,n)=>{const{__scopePopover:r,...o}=t,i=Xn("PopoverTrigger",r),s=zn(r),a=b(n,i.triggerRef),c=e.createElement(L.button,m({type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":rr(i.open)},o,{ref:a,onClick:w(t.onClick,i.onOpenToggle)}));return i.hasCustomAnchor?c:e.createElement(Fn,m({asChild:!0},s),c)})),Kn="PopoverPortal",[Gn,Zn]=Hn(Kn,{forceMount:void 0}),Jn="PopoverContent",Qn=e.forwardRef(((t,n)=>{const r=Zn(Jn,t.__scopePopover),{forceMount:o=r.forceMount,...i}=t,s=Xn(Jn,t.__scopePopover);return e.createElement(J,{present:o||s.open},s.modal?e.createElement(er,m({},i,{ref:n})):e.createElement(tr,m({},i,{ref:n})))})),er=e.forwardRef(((t,n)=>{const r=Xn(Jn,t.__scopePopover),o=e.useRef(null),i=b(n,o),s=e.useRef(!1);return e.useEffect((()=>{const e=o.current;if(e)return ze(e)}),[]),e.createElement(Ne,{as:R,allowPinchZoom:!0},e.createElement(nr,m({},t,{ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:w(t.onCloseAutoFocus,(e=>{var t;e.preventDefault(),s.current||null===(t=r.triggerRef.current)||void 0===t||t.focus()})),onPointerDownOutside:w(t.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;s.current=r}),{checkForDefaultPrevented:!1}),onFocusOutside:w(t.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1})})))})),tr=e.forwardRef(((t,n)=>{const r=Xn(Jn,t.__scopePopover),o=e.useRef(!1);return e.createElement(nr,m({},t,{ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{var n,i;(null===(n=t.onCloseAutoFocus)||void 0===n||n.call(t,e),e.defaultPrevented)||(o.current||null===(i=r.triggerRef.current)||void 0===i||i.focus(),e.preventDefault());o.current=!1},onInteractOutside:e=>{var n,i;null===(n=t.onInteractOutside)||void 0===n||n.call(t,e),e.defaultPrevented||(o.current=!0);const s=e.target;(null===(i=r.triggerRef.current)||void 0===i?void 0:i.contains(s))&&e.preventDefault()}}))})),nr=e.forwardRef(((t,n)=>{const{__scopePopover:r,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEscapeKeyDown:c,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:d,...f}=t,p=Xn(Jn,r),h=zn(r);return te(),e.createElement(U,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:s},e.createElement(N,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:d,onEscapeKeyDown:c,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>p.onOpenChange(!1)},e.createElement(jn,m({"data-state":rr(p.open),role:"dialog",id:p.contentId},h,f,{ref:n,style:{...f.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}}))))}));function rr(e){return e?"open":"closed"}const or=t=>{const{__scopePopover:n,children:r,open:o,defaultOpen:i,onOpenChange:s,modal:a=!1}=t,c=zn(n),l=e.useRef(null),[u,d]=e.useState(!1),[f=!1,p]=T({prop:o,defaultProp:i,onChange:s});return e.createElement(Nn,c,e.createElement(Yn,{scope:n,contentId:P(),triggerRef:l,open:f,onOpenChange:p,onOpenToggle:e.useCallback((()=>p((e=>!e))),[p]),hasCustomAnchor:u,onCustomAnchorAdd:e.useCallback((()=>d(!0)),[]),onCustomAnchorRemove:e.useCallback((()=>d(!1)),[]),modal:a},r))},ir=qn,sr=t=>{const{__scopePopover:n,forceMount:r,children:o,container:i}=t,s=Xn(Kn,n);return e.createElement(Gn,{scope:n,forceMount:r},e.createElement(J,{present:r||s.open},e.createElement(Z,{asChild:!0,container:i},o)))},ar=Qn,cr=e.forwardRef(((t,n)=>{const{__scopePopover:r,...o}=t,i=Xn("PopoverClose",r);return e.createElement(L.button,m({type:"button"},o,{ref:n,onClick:w(t.onClick,(()=>i.onOpenChange(!1)))}))})),lr=e.forwardRef(((t,n)=>{const{__scopePopover:r,...o}=t,i=zn(r);return e.createElement(Bn,m({},i,o,{ref:n}))})),ur="Progress",dr=100,[fr,pr]=v(ur),[hr,mr]=fr(ur),vr=e.forwardRef(((t,n)=>{const{__scopeProgress:r,value:o,max:i,getValueLabel:s=gr,...a}=t,c=wr(i)?i:dr,l=xr(o,c)?o:null,u=br(l)?s(l,c):void 0;return e.createElement(hr,{scope:r,value:l,max:c},e.createElement(L.div,m({"aria-valuemax":c,"aria-valuemin":0,"aria-valuenow":br(l)?l:void 0,"aria-valuetext":u,role:"progressbar","data-state":yr(l,c),"data-value":null!=l?l:void 0,"data-max":c},a,{ref:n})))}));vr.propTypes={max(e,t,n){const r=e[t],o=String(r);return r&&!wr(r)?new Error(function(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`100\`.`}(o,n)):null},value(e,t,n){const r=e[t],o=String(r),i=wr(e.max)?e.max:dr;return null==r||xr(r,i)?null:new Error(function(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:\n - a positive number\n - less than the value passed to \`max\` (or 100 if no \`max\` prop is set)\n - \`null\` if the progress is indeterminate.\n\nDefaulting to \`null\`.`}(o,n))}};function gr(e,t){return`${Math.round(e/t*100)}%`}function yr(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function br(e){return"number"==typeof e}function wr(e){return br(e)&&!isNaN(e)&&e>0}function xr(e,t){return br(e)&&!isNaN(e)&&e<=t&&e>=0}const Er=vr,Sr=e.forwardRef(((t,n)=>{var r;const{__scopeProgress:o,...i}=t,s=mr("ProgressIndicator",o);return e.createElement(L.div,m({"data-state":yr(s.value,s.max),"data-value":null!==(r=s.value)&&void 0!==r?r:void 0,"data-max":s.max},i,{ref:n}))}));function Pr(t){const n=e.useRef({value:t,previous:t});return e.useMemo((()=>(n.current.value!==t&&(n.current.previous=n.current.value,n.current.value=t),n.current.previous)),[t])}const Cr="Checkbox",[Tr,Rr]=v(Cr),[Ar,Dr]=Tr(Cr),Or=e.forwardRef(((t,n)=>{const{__scopeCheckbox:r,name:o,checked:i,defaultChecked:s,required:a,disabled:c,value:l="on",onCheckedChange:u,...d}=t,[f,p]=e.useState(null),h=b(n,(e=>p(e))),v=e.useRef(!1),g=!f||Boolean(f.closest("form")),[y=!1,x]=T({prop:i,defaultProp:s,onChange:u}),E=e.useRef(y);return e.useEffect((()=>{const e=null==f?void 0:f.form;if(e){const t=()=>x(E.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}}),[f,x]),e.createElement(Ar,{scope:r,state:y,disabled:c},e.createElement(L.button,m({type:"button",role:"checkbox","aria-checked":Lr(y)?"mixed":y,"aria-required":a,"data-state":Mr(y),"data-disabled":c?"":void 0,disabled:c,value:l},d,{ref:h,onKeyDown:w(t.onKeyDown,(e=>{"Enter"===e.key&&e.preventDefault()})),onClick:w(t.onClick,(e=>{x((e=>!!Lr(e)||!e)),g&&(v.current=e.isPropagationStopped(),v.current||e.stopPropagation())}))})),g&&e.createElement(kr,{control:f,bubbles:!v.current,name:o,value:l,checked:y,required:a,disabled:c,style:{transform:"translateX(-100%)"}}))})),kr=t=>{const{control:n,checked:r,bubbles:o=!0,...i}=t,s=e.useRef(null),a=Pr(r),c=bn(n);return e.useEffect((()=>{const e=s.current,t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,"checked").set;if(a!==r&&n){const t=new Event("click",{bubbles:o});e.indeterminate=Lr(r),n.call(e,!Lr(r)&&r),e.dispatchEvent(t)}}),[a,r,o]),e.createElement("input",m({type:"checkbox","aria-hidden":!0,defaultChecked:!Lr(r)&&r},i,{tabIndex:-1,ref:s,style:{...t.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function Lr(e){return"indeterminate"===e}function Mr(e){return Lr(e)?"indeterminate":e?"checked":"unchecked"}const _r=Or,Ir=e.forwardRef(((t,n)=>{const{__scopeCheckbox:r,forceMount:o,...i}=t,s=Dr("CheckboxIndicator",r);return e.createElement(J,{present:o||Lr(s.state)||!0===s.state},e.createElement(L.span,m({"data-state":Mr(s.state),"data-disabled":s.disabled?"":void 0},i,{ref:n,style:{pointerEvents:"none",...t.style}})))}));function Vr(e,[t,n]){return Math.min(n,Math.max(t,e))}const $r=e.createContext(void 0);function Nr(t){const n=e.useContext($r);return t||n||"ltr"}const Fr=["PageUp","PageDown"],jr=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Br={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},Wr="Slider",[Hr,Ur,zr]=function(t){const n=t+"CollectionProvider",[r,o]=v(n),[i,s]=r(n,{collectionRef:{current:null},itemMap:new Map}),a=t+"CollectionSlot",c=t+"CollectionItemSlot",l="data-radix-collection-item";return[{Provider:t=>{const{scope:n,children:r}=t,o=e.useRef(null),s=e.useRef(new Map).current;return e.createElement(i,{scope:n,itemMap:s,collectionRef:o},r)},Slot:e.forwardRef(((t,n)=>{const{scope:r,children:o}=t,i=b(n,s(a,r).collectionRef);return e.createElement(R,{ref:i},o)})),ItemSlot:e.forwardRef(((t,n)=>{const{scope:r,children:o,...i}=t,a=e.useRef(null),u=b(n,a),d=s(c,r);return e.useEffect((()=>(d.itemMap.set(a,{ref:a,...i}),()=>{d.itemMap.delete(a)}))),e.createElement(R,{[l]:"",ref:u},o)}))},function(n){const r=s(t+"CollectionConsumer",n);return e.useCallback((()=>{const e=r.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${l}]`));return Array.from(r.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)))}),[r.collectionRef,r.itemMap])},o]}(Wr),[Yr,Xr]=v(Wr,[zr]),[qr,Kr]=Yr(Wr),Gr=e.forwardRef(((t,n)=>{const{name:r,min:o=0,max:i=100,step:s=1,orientation:a="horizontal",disabled:c=!1,minStepsBetweenThumbs:l=0,defaultValue:u=[o],value:d,onValueChange:f=(()=>{}),onValueCommit:p=(()=>{}),inverted:h=!1,...v}=t,[g,y]=e.useState(null),x=b(n,(e=>y(e))),E=e.useRef(new Set),S=e.useRef(0),P="horizontal"===a,C=!g||Boolean(g.closest("form")),R=P?Qr:eo,[A=[],D]=T({prop:d,defaultProp:u,onChange:e=>{var t;null===(t=[...E.current][S.current])||void 0===t||t.focus(),f(e)}}),O=e.useRef(A);function k(e,t,{commit:n}={commit:!1}){const r=function(e){return(String(e).split(".")[1]||"").length}(s),a=function(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}(Math.round((e-o)/s)*s+o,r),c=Vr(a,[o,i]);D(((e=[])=>{const r=function(e=[],t,n){const r=[...e];return r[n]=t,r.sort(((e,t)=>e-t))}(e,c,t);if(function(e,t){if(t>0){const n=function(e){return e.slice(0,-1).map(((t,n)=>e[n+1]-t))}(e);return Math.min(...n)>=t}return!0}(r,l*s)){S.current=r.indexOf(c);const t=String(r)!==String(e);return t&&n&&p(r),t?r:e}return e}))}return e.createElement(qr,{scope:t.__scopeSlider,disabled:c,min:o,max:i,valueIndexToChangeRef:S,thumbs:E.current,values:A,orientation:a},e.createElement(Hr.Provider,{scope:t.__scopeSlider},e.createElement(Hr.Slot,{scope:t.__scopeSlider},e.createElement(R,m({"aria-disabled":c,"data-disabled":c?"":void 0},v,{ref:x,onPointerDown:w(v.onPointerDown,(()=>{c||(O.current=A)})),min:o,max:i,inverted:h,onSlideStart:c?void 0:function(e){const t=function(e,t){if(1===e.length)return 0;const n=e.map((e=>Math.abs(e-t))),r=Math.min(...n);return n.indexOf(r)}(A,e);k(e,t)},onSlideMove:c?void 0:function(e){k(e,S.current)},onSlideEnd:c?void 0:function(){const e=O.current[S.current];A[S.current]!==e&&p(A)},onHomeKeyDown:()=>!c&&k(o,0,{commit:!0}),onEndKeyDown:()=>!c&&k(i,A.length-1,{commit:!0}),onStepKeyDown:({event:e,direction:t})=>{if(!c){const n=Fr.includes(e.key)||e.shiftKey&&jr.includes(e.key)?10:1,r=S.current;k(A[r]+s*n*t,r,{commit:!0})}}})))),C&&A.map(((t,n)=>e.createElement(co,{key:n,name:r?r+(A.length>1?"[]":""):void 0,value:t}))))})),[Zr,Jr]=Yr(Wr,{startEdge:"left",endEdge:"right",size:"width",direction:1}),Qr=e.forwardRef(((t,n)=>{const{min:r,max:o,dir:i,inverted:s,onSlideStart:a,onSlideMove:c,onSlideEnd:l,onStepKeyDown:u,...d}=t,[f,p]=e.useState(null),h=b(n,(e=>p(e))),v=e.useRef(),g=Nr(i),y="ltr"===g,w=y&&!s||!y&&s;function x(e){const t=v.current||f.getBoundingClientRect(),n=uo([0,t.width],w?[r,o]:[o,r]);return v.current=t,n(e-t.left)}return e.createElement(Zr,{scope:t.__scopeSlider,startEdge:w?"left":"right",endEdge:w?"right":"left",direction:w?1:-1,size:"width"},e.createElement(to,m({dir:g,"data-orientation":"horizontal"},d,{ref:h,style:{...d.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:e=>{const t=x(e.clientX);null==a||a(t)},onSlideMove:e=>{const t=x(e.clientX);null==c||c(t)},onSlideEnd:()=>{v.current=void 0,null==l||l()},onStepKeyDown:e=>{const t=Br[w?"from-left":"from-right"].includes(e.key);null==u||u({event:e,direction:t?-1:1})}})))})),eo=e.forwardRef(((t,n)=>{const{min:r,max:o,inverted:i,onSlideStart:s,onSlideMove:a,onSlideEnd:c,onStepKeyDown:l,...u}=t,d=e.useRef(null),f=b(n,d),p=e.useRef(),h=!i;function v(e){const t=p.current||d.current.getBoundingClientRect(),n=uo([0,t.height],h?[o,r]:[r,o]);return p.current=t,n(e-t.top)}return e.createElement(Zr,{scope:t.__scopeSlider,startEdge:h?"bottom":"top",endEdge:h?"top":"bottom",size:"height",direction:h?1:-1},e.createElement(to,m({"data-orientation":"vertical"},u,{ref:f,style:{...u.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:e=>{const t=v(e.clientY);null==s||s(t)},onSlideMove:e=>{const t=v(e.clientY);null==a||a(t)},onSlideEnd:()=>{p.current=void 0,null==c||c()},onStepKeyDown:e=>{const t=Br[h?"from-bottom":"from-top"].includes(e.key);null==l||l({event:e,direction:t?-1:1})}})))})),to=e.forwardRef(((t,n)=>{const{__scopeSlider:r,onSlideStart:o,onSlideMove:i,onSlideEnd:s,onHomeKeyDown:a,onEndKeyDown:c,onStepKeyDown:l,...u}=t,d=Kr(Wr,r);return e.createElement(L.span,m({},u,{ref:n,onKeyDown:w(t.onKeyDown,(e=>{"Home"===e.key?(a(e),e.preventDefault()):"End"===e.key?(c(e),e.preventDefault()):Fr.concat(jr).includes(e.key)&&(l(e),e.preventDefault())})),onPointerDown:w(t.onPointerDown,(e=>{const t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),d.thumbs.has(t)?t.focus():o(e)})),onPointerMove:w(t.onPointerMove,(e=>{e.target.hasPointerCapture(e.pointerId)&&i(e)})),onPointerUp:w(t.onPointerUp,(e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),s(e))}))}))})),no=e.forwardRef(((t,n)=>{const{__scopeSlider:r,...o}=t,i=Kr("SliderTrack",r);return e.createElement(L.span,m({"data-disabled":i.disabled?"":void 0,"data-orientation":i.orientation},o,{ref:n}))})),ro="SliderRange",oo=e.forwardRef(((t,n)=>{const{__scopeSlider:r,...o}=t,i=Kr(ro,r),s=Jr(ro,r),a=b(n,e.useRef(null)),c=i.values.length,l=i.values.map((e=>lo(e,i.min,i.max))),u=c>1?Math.min(...l):0,d=100-Math.max(...l);return e.createElement(L.span,m({"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0},o,{ref:a,style:{...t.style,[s.startEdge]:u+"%",[s.endEdge]:d+"%"}}))})),io="SliderThumb",so=e.forwardRef(((t,n)=>{const r=Ur(t.__scopeSlider),[o,i]=e.useState(null),s=b(n,(e=>i(e))),a=e.useMemo((()=>o?r().findIndex((e=>e.ref.current===o)):-1),[r,o]);return e.createElement(ao,m({},t,{ref:s,index:a}))})),ao=e.forwardRef(((t,n)=>{const{__scopeSlider:r,index:o,...i}=t,s=Kr(io,r),a=Jr(io,r),[c,l]=e.useState(null),u=b(n,(e=>l(e))),d=bn(c),f=s.values[o],p=void 0===f?0:lo(f,s.min,s.max),h=function(e,t){return t>2?`Value ${e+1} of ${t}`:2===t?["Minimum","Maximum"][e]:void 0}(o,s.values.length),v=null==d?void 0:d[a.size],g=v?function(e,t,n){const r=e/2,o=uo([0,50],[0,r]);return(r-o(t)*n)*n}(v,p,a.direction):0;return e.useEffect((()=>{if(c)return s.thumbs.add(c),()=>{s.thumbs.delete(c)}}),[c,s.thumbs]),e.createElement("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[a.startEdge]:`calc(${p}% + ${g}px)`}},e.createElement(Hr.ItemSlot,{scope:t.__scopeSlider},e.createElement(L.span,m({role:"slider","aria-label":t["aria-label"]||h,"aria-valuemin":s.min,"aria-valuenow":f,"aria-valuemax":s.max,"aria-orientation":s.orientation,"data-orientation":s.orientation,"data-disabled":s.disabled?"":void 0,tabIndex:s.disabled?void 0:0},i,{ref:u,style:void 0===f?{display:"none"}:t.style,onFocus:w(t.onFocus,(()=>{s.valueIndexToChangeRef.current=o}))}))))})),co=t=>{const{value:n,...r}=t,o=e.useRef(null),i=Pr(n);return e.useEffect((()=>{const e=o.current,t=window.HTMLInputElement.prototype,r=Object.getOwnPropertyDescriptor(t,"value").set;if(i!==n&&r){const t=new Event("input",{bubbles:!0});r.call(e,n),e.dispatchEvent(t)}}),[i,n]),e.createElement("input",m({style:{display:"none"}},r,{ref:o,defaultValue:n}))};function lo(e,t,n){return 100/(n-t)*(e-t)}function uo(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}const fo=Gr,po=no,ho=oo,mo=so;function vo(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function go(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function yo(...t){return e.useCallback(go(...t),t)}function bo(t,n=[]){let r=[];const o=()=>{const n=r.map((t=>e.createContext(t)));return function(r){const o=(null==r?void 0:r[t])||n;return e.useMemo((()=>({[`__scope${t}`]:{...r,[t]:o}})),[r,o])}};return o.scopeName=t,[function(n,o){const i=e.createContext(o),s=r.length;function a(n){const{scope:r,children:o,...a}=n,c=(null==r?void 0:r[t][s])||i,l=e.useMemo((()=>a),Object.values(a));return e.createElement(c.Provider,{value:l},o)}return r=[...r,o],a.displayName=n+"Provider",[a,function(r,a){const c=(null==a?void 0:a[t][s])||i,l=e.useContext(c);if(l)return l;if(void 0!==o)return o;throw new Error(`\`${r}\` must be used within \`${n}\``)}]},wo(o,...n)]}function wo(...t){const n=t[0];if(1===t.length)return n;const r=()=>{const r=t.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(t){const o=r.reduce(((e,{useScope:n,scopeName:r})=>({...e,...n(t)[`__scope${r}`]})),{});return e.useMemo((()=>({[`__scope${n.scopeName}`]:o})),[o])}};return r.scopeName=n.scopeName,r}const xo=e.forwardRef(((t,n)=>{const{children:r,...o}=t,i=e.Children.toArray(r),s=i.find(Po);if(s){const t=s.props.children,r=i.map((n=>n===s?e.Children.count(t)>1?e.Children.only(null):e.isValidElement(t)?t.props.children:null:n));return e.createElement(Eo,m({},o,{ref:n}),e.isValidElement(t)?e.cloneElement(t,void 0,r):null)}return e.createElement(Eo,m({},o,{ref:n}),r)}));xo.displayName="Slot";const Eo=e.forwardRef(((t,n)=>{const{children:r,...o}=t;return e.isValidElement(r)?e.cloneElement(r,{...Co(o,r.props),ref:n?go(n,r.ref):r.ref}):e.Children.count(r)>1?e.Children.only(null):null}));Eo.displayName="SlotClone";const So=({children:t})=>e.createElement(e.Fragment,null,t);function Po(t){return e.isValidElement(t)&&t.type===So}function Co(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const To=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((t,n)=>{const r=e.forwardRef(((t,r)=>{const{asChild:o,...i}=t,s=o?xo:n;return e.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),e.createElement(s,m({},i,{ref:r}))}));return r.displayName=`Primitive.${n}`,{...t,[n]:r}}),{});function Ro(t){const n=t+"CollectionProvider",[r,o]=bo(n),[i,s]=r(n,{collectionRef:{current:null},itemMap:new Map}),a=t+"CollectionSlot",c=t+"CollectionItemSlot",l="data-radix-collection-item";return[{Provider:t=>{const{scope:n,children:r}=t,o=e.useRef(null),s=e.useRef(new Map).current;return e.createElement(i,{scope:n,itemMap:s,collectionRef:o},r)},Slot:e.forwardRef(((t,n)=>{const{scope:r,children:o}=t,i=yo(n,s(a,r).collectionRef);return e.createElement(xo,{ref:i},o)})),ItemSlot:e.forwardRef(((t,n)=>{const{scope:r,children:o,...i}=t,a=e.useRef(null),u=yo(n,a),d=s(c,r);return e.useEffect((()=>(d.itemMap.set(a,{ref:a,...i}),()=>{d.itemMap.delete(a)}))),e.createElement(xo,{[l]:"",ref:u},o)}))},function(n){const r=s(t+"CollectionConsumer",n);return e.useCallback((()=>{const e=r.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${l}]`));return Array.from(r.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)))}),[r.collectionRef,r.itemMap])},o]}const Ao=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?e.useLayoutEffect:()=>{},Do=r["useId".toString()]||(()=>{});let Oo=0;function ko(e){const[t,n]=r.useState(Do());return Ao((()=>{e||n((e=>null!=e?e:String(Oo++)))}),[e]),e||(t?`radix-${t}`:"")}function Lo(t){const n=e.useRef(t);return e.useEffect((()=>{n.current=t})),e.useMemo((()=>(...e)=>{var t;return null===(t=n.current)||void 0===t?void 0:t.call(n,...e)}),[])}function Mo({prop:t,defaultProp:n,onChange:r=(()=>{})}){const[o,i]=function({defaultProp:t,onChange:n}){const r=e.useState(t),[o]=r,i=e.useRef(o),s=Lo(n);return e.useEffect((()=>{i.current!==o&&(s(o),i.current=o)}),[o,i,s]),r}({defaultProp:n,onChange:r}),s=void 0!==t,a=s?t:o,c=Lo(r);return[a,e.useCallback((e=>{if(s){const n="function"==typeof e?e(t):e;n!==t&&c(n)}else i(e)}),[s,t,i,c])]}const _o=e.createContext(void 0);function Io(t){const n=e.useContext(_o);return t||n||"ltr"}const Vo="rovingFocusGroup.onEntryFocus",$o={bubbles:!1,cancelable:!0},No="RovingFocusGroup",[Fo,jo,Bo]=Ro(No),[Wo,Ho]=bo(No,[Bo]),[Uo,zo]=Wo(No),Yo=e.forwardRef(((t,n)=>e.createElement(Fo.Provider,{scope:t.__scopeRovingFocusGroup},e.createElement(Fo.Slot,{scope:t.__scopeRovingFocusGroup},e.createElement(Xo,m({},t,{ref:n})))))),Xo=e.forwardRef(((t,n)=>{const{__scopeRovingFocusGroup:r,orientation:o,loop:i=!1,dir:s,currentTabStopId:a,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:l,onEntryFocus:u,...d}=t,f=e.useRef(null),p=yo(n,f),h=Io(s),[v=null,g]=Mo({prop:a,defaultProp:c,onChange:l}),[y,b]=e.useState(!1),w=Lo(u),x=jo(r),E=e.useRef(!1),[S,P]=e.useState(0);return e.useEffect((()=>{const e=f.current;if(e)return e.addEventListener(Vo,w),()=>e.removeEventListener(Vo,w)}),[w]),e.createElement(Uo,{scope:r,orientation:o,dir:h,loop:i,currentTabStopId:v,onItemFocus:e.useCallback((e=>g(e)),[g]),onItemShiftTab:e.useCallback((()=>b(!0)),[]),onFocusableItemAdd:e.useCallback((()=>P((e=>e+1))),[]),onFocusableItemRemove:e.useCallback((()=>P((e=>e-1))),[])},e.createElement(To.div,m({tabIndex:y||0===S?-1:0,"data-orientation":o},d,{ref:p,style:{outline:"none",...t.style},onMouseDown:vo(t.onMouseDown,(()=>{E.current=!0})),onFocus:vo(t.onFocus,(e=>{const t=!E.current;if(e.target===e.currentTarget&&t&&!y){const t=new CustomEvent(Vo,$o);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=x().filter((e=>e.focusable));Go([e.find((e=>e.active)),e.find((e=>e.id===v)),...e].filter(Boolean).map((e=>e.ref.current)))}}E.current=!1})),onBlur:vo(t.onBlur,(()=>b(!1)))})))})),qo=e.forwardRef(((t,n)=>{const{__scopeRovingFocusGroup:r,focusable:o=!0,active:i=!1,tabStopId:s,...a}=t,c=ko(),l=s||c,u=zo("RovingFocusGroupItem",r),d=u.currentTabStopId===l,f=jo(r),{onFocusableItemAdd:p,onFocusableItemRemove:h}=u;return e.useEffect((()=>{if(o)return p(),()=>h()}),[o,p,h]),e.createElement(Fo.ItemSlot,{scope:r,id:l,focusable:o,active:i},e.createElement(To.span,m({tabIndex:d?0:-1,"data-orientation":u.orientation},a,{ref:n,onMouseDown:vo(t.onMouseDown,(e=>{o?u.onItemFocus(l):e.preventDefault()})),onFocus:vo(t.onFocus,(()=>u.onItemFocus(l))),onKeyDown:vo(t.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void u.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:Ko[r]}(e,u.orientation,u.dir);if(void 0!==t){e.preventDefault();let o=f().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)o.reverse();else if("prev"===t||"next"===t){"prev"===t&&o.reverse();const i=o.indexOf(e.currentTarget);o=u.loop?(r=i+1,(n=o).map(((e,t)=>n[(r+t)%n.length]))):o.slice(i+1)}setTimeout((()=>Go(o)))}var n,r}))})))})),Ko={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Go(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}const Zo=Yo,Jo=qo;function Qo(t){const[n,r]=e.useState(void 0);return Ao((()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const e=new ResizeObserver((e=>{if(!Array.isArray(e))return;if(!e.length)return;const n=e[0];let o,i;if("borderBoxSize"in n){const e=n.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=t.offsetWidth,i=t.offsetHeight;r({width:o,height:i})}));return e.observe(t,{box:"border-box"}),()=>e.unobserve(t)}r(void 0)}),[t]),n}function ei(t){const n=e.useRef({value:t,previous:t});return e.useMemo((()=>(n.current.value!==t&&(n.current.previous=n.current.value,n.current.value=t),n.current.previous)),[t])}const ti=n=>{const{present:r,children:o}=n,i=function(n){const[r,o]=e.useState(),i=e.useRef({}),s=e.useRef(n),a=e.useRef("none"),c=n?"mounted":"unmounted",[l,u]=function(t,n){return e.useReducer(((e,t)=>{const r=n[e][t];return null!=r?r:e}),t)}(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return e.useEffect((()=>{const e=ni(i.current);a.current="mounted"===l?e:"none"}),[l]),Ao((()=>{const e=i.current,t=s.current;if(t!==n){const r=a.current,o=ni(e);if(n)u("MOUNT");else if("none"===o||"none"===(null==e?void 0:e.display))u("UNMOUNT");else{u(t&&r!==o?"ANIMATION_OUT":"UNMOUNT")}s.current=n}}),[n,u]),Ao((()=>{if(r){const e=e=>{const n=ni(i.current).includes(e.animationName);e.target===r&&n&&t.flushSync((()=>u("ANIMATION_END")))},n=e=>{e.target===r&&(a.current=ni(i.current))};return r.addEventListener("animationstart",n),r.addEventListener("animationcancel",e),r.addEventListener("animationend",e),()=>{r.removeEventListener("animationstart",n),r.removeEventListener("animationcancel",e),r.removeEventListener("animationend",e)}}u("ANIMATION_END")}),[r,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:e.useCallback((e=>{e&&(i.current=getComputedStyle(e)),o(e)}),[])}}(r),s="function"==typeof o?o({present:i.isPresent}):e.Children.only(o),a=yo(i.ref,s.ref);return"function"==typeof o||i.isPresent?e.cloneElement(s,{ref:a}):null};function ni(e){return(null==e?void 0:e.animationName)||"none"}ti.displayName="Presence";const ri="Radio",[oi,ii]=bo(ri),[si,ai]=oi(ri),ci=e.forwardRef(((t,n)=>{const{__scopeRadio:r,name:o,checked:i=!1,required:s,disabled:a,value:c="on",onCheck:l,...u}=t,[d,f]=e.useState(null),p=yo(n,(e=>f(e))),h=e.useRef(!1),v=!d||Boolean(d.closest("form"));return e.createElement(si,{scope:r,checked:i,disabled:a},e.createElement(To.button,m({type:"button",role:"radio","aria-checked":i,"data-state":di(i),"data-disabled":a?"":void 0,disabled:a,value:c},u,{ref:p,onClick:vo(t.onClick,(e=>{i||null==l||l(),v&&(h.current=e.isPropagationStopped(),h.current||e.stopPropagation())}))})),v&&e.createElement(ui,{control:d,bubbles:!h.current,name:o,value:c,checked:i,required:s,disabled:a,style:{transform:"translateX(-100%)"}}))})),li=e.forwardRef(((t,n)=>{const{__scopeRadio:r,forceMount:o,...i}=t,s=ai("RadioIndicator",r);return e.createElement(ti,{present:o||s.checked},e.createElement(To.span,m({"data-state":di(s.checked),"data-disabled":s.disabled?"":void 0},i,{ref:n})))})),ui=t=>{const{control:n,checked:r,bubbles:o=!0,...i}=t,s=e.useRef(null),a=ei(r),c=Qo(n);return e.useEffect((()=>{const e=s.current,t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,"checked").set;if(a!==r&&n){const t=new Event("click",{bubbles:o});n.call(e,r),e.dispatchEvent(t)}}),[a,r,o]),e.createElement("input",m({type:"radio","aria-hidden":!0,defaultChecked:r},i,{tabIndex:-1,ref:s,style:{...t.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function di(e){return e?"checked":"unchecked"}const fi=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],pi="RadioGroup",[hi,mi]=bo(pi,[Ho,ii]),vi=Ho(),gi=ii(),[yi,bi]=hi(pi),wi=e.forwardRef(((t,n)=>{const{__scopeRadioGroup:r,name:o,defaultValue:i,value:s,required:a=!1,disabled:c=!1,orientation:l,dir:u,loop:d=!0,onValueChange:f,...p}=t,h=vi(r),v=Io(u),[g,y]=Mo({prop:s,defaultProp:i,onChange:f});return e.createElement(yi,{scope:r,name:o,required:a,disabled:c,value:g,onValueChange:y},e.createElement(Zo,m({asChild:!0},h,{orientation:l,dir:v,loop:d}),e.createElement(To.div,m({role:"radiogroup","aria-required":a,"aria-orientation":l,"data-disabled":c?"":void 0,dir:v},p,{ref:n}))))})),xi=e.forwardRef(((t,n)=>{const{__scopeRadioGroup:r,disabled:o,...i}=t,s=bi("RadioGroupItem",r),a=s.disabled||o,c=vi(r),l=gi(r),u=e.useRef(null),d=yo(n,u),f=s.value===i.value,p=e.useRef(!1);return e.useEffect((()=>{const e=e=>{fi.includes(e.key)&&(p.current=!0)},t=()=>p.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}}),[]),e.createElement(Jo,m({asChild:!0},c,{focusable:!a,active:f}),e.createElement(ci,m({disabled:a,required:s.required,checked:f},l,i,{name:s.name,ref:d,onCheck:()=>s.onValueChange(i.value),onKeyDown:vo((e=>{"Enter"===e.key&&e.preventDefault()})),onFocus:vo(i.onFocus,(()=>{var e;p.current&&(null===(e=u.current)||void 0===e||e.click())}))})))})),Ei=e.forwardRef(((t,n)=>{const{__scopeRadioGroup:r,...o}=t,i=gi(r);return e.createElement(li,m({},i,o,{ref:n}))}));function Si(e,[t,n]){return Math.min(n,Math.max(t,e))}const Pi="dismissableLayer.update",Ci="dismissableLayer.pointerDownOutside",Ti="dismissableLayer.focusOutside";let Ri;const Ai=e.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Di=e.forwardRef(((t,n)=>{var r;const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:a,onInteractOutside:c,onDismiss:l,...u}=t,d=e.useContext(Ai),[f,p]=e.useState(null),h=null!==(r=null==f?void 0:f.ownerDocument)&&void 0!==r?r:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,v]=e.useState({}),g=yo(n,(e=>p(e))),y=Array.from(d.layers),[b]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),w=y.indexOf(b),x=f?y.indexOf(f):-1,E=d.layersWithOutsidePointerEventsDisabled.size>0,S=x>=w,P=function(t,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=Lo(t),o=e.useRef(!1),i=e.useRef((()=>{}));return e.useEffect((()=>{const e=e=>{if(e.target&&!o.current){let t=function(){ki(Ci,r,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",i.current),i.current=t,n.addEventListener("click",i.current,{once:!0})):t()}o.current=!1},t=window.setTimeout((()=>{n.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",i.current)}}),[n,r]),{onPointerDownCapture:()=>o.current=!0}}((e=>{const t=e.target,n=[...d.branches].some((e=>e.contains(t)));S&&!n&&(null==s||s(e),null==c||c(e),e.defaultPrevented||null==l||l())}),h),C=function(t,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=Lo(t),o=e.useRef(!1);return e.useEffect((()=>{const e=e=>{if(e.target&&!o.current){ki(Ti,r,{originalEvent:e},{discrete:!1})}};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)}),[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}((e=>{const t=e.target;[...d.branches].some((e=>e.contains(t)))||(null==a||a(e),null==c||c(e),e.defaultPrevented||null==l||l())}),h);return function(t,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=Lo(t);e.useEffect((()=>{const e=e=>{"Escape"===e.key&&r(e)};return n.addEventListener("keydown",e),()=>n.removeEventListener("keydown",e)}),[r,n])}((e=>{x===d.layers.size-1&&(null==i||i(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))}),h),e.useEffect((()=>{if(f)return o&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(Ri=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),Oi(),()=>{o&&1===d.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=Ri)}}),[f,h,o,d]),e.useEffect((()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),Oi())}),[f,d]),e.useEffect((()=>{const e=()=>v({});return document.addEventListener(Pi,e),()=>document.removeEventListener(Pi,e)}),[]),e.createElement(To.div,m({},u,{ref:g,style:{pointerEvents:E?S?"auto":"none":void 0,...t.style},onFocusCapture:vo(t.onFocusCapture,C.onFocusCapture),onBlurCapture:vo(t.onBlurCapture,C.onBlurCapture),onPointerDownCapture:vo(t.onPointerDownCapture,P.onPointerDownCapture)}))}));function Oi(){const e=new CustomEvent(Pi);document.dispatchEvent(e)}function ki(e,n,r,{discrete:o}){const i=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});n&&i.addEventListener(e,n,{once:!0}),o?function(e,n){e&&t.flushSync((()=>e.dispatchEvent(n)))}(i,s):i.dispatchEvent(s)}let Li=0;function Mi(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const _i="focusScope.autoFocusOnMount",Ii="focusScope.autoFocusOnUnmount",Vi={bubbles:!1,cancelable:!0},$i=e.forwardRef(((t,n)=>{const{loop:r=!1,trapped:o=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...a}=t,[c,l]=e.useState(null),u=Lo(i),d=Lo(s),f=e.useRef(null),p=yo(n,(e=>l(e))),h=e.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;e.useEffect((()=>{if(o){let e=function(e){if(h.paused||!c)return;const t=e.target;c.contains(t)?f.current=t:Bi(f.current,{select:!0})},t=function(e){if(h.paused||!c)return;const t=e.relatedTarget;null!==t&&(c.contains(t)||Bi(f.current,{select:!0}))},n=function(e){const t=document.activeElement;for(const n of e)n.removedNodes.length>0&&(null!=c&&c.contains(t)||Bi(c))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return c&&r.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}}),[o,c,h.paused]),e.useEffect((()=>{if(c){Wi.add(h);const t=document.activeElement;if(!c.contains(t)){const n=new CustomEvent(_i,Vi);c.addEventListener(_i,u),c.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Bi(r,{select:t}),document.activeElement!==n)return}((e=Ni(c),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&Bi(c))}return()=>{c.removeEventListener(_i,u),setTimeout((()=>{const e=new CustomEvent(Ii,Vi);c.addEventListener(Ii,d),c.dispatchEvent(e),e.defaultPrevented||Bi(null!=t?t:document.body,{select:!0}),c.removeEventListener(Ii,d),Wi.remove(h)}),0)}}var e}),[c,u,d,h]);const v=e.useCallback((e=>{if(!r&&!o)return;if(h.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){const t=e.currentTarget,[o,i]=function(e){const t=Ni(e),n=Fi(t,e),r=Fi(t.reverse(),e);return[n,r]}(t);o&&i?e.shiftKey||n!==i?e.shiftKey&&n===o&&(e.preventDefault(),r&&Bi(i,{select:!0})):(e.preventDefault(),r&&Bi(o,{select:!0})):n===t&&e.preventDefault()}}),[r,o,h.paused]);return e.createElement(To.div,m({tabIndex:-1},a,{ref:p,onKeyDown:v}))}));function Ni(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const 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 Fi(e,t){for(const n of e)if(!ji(n,{upTo:t}))return n}function ji(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function Bi(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}const Wi=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=Hi(e,t),e.unshift(t)},remove(t){var n;e=Hi(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function Hi(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}function Ui(e){return e.split("-")[1]}function zi(e){return"y"===e?"height":"width"}function Yi(e){return e.split("-")[0]}function Xi(e){return["top","bottom"].includes(Yi(e))?"x":"y"}function qi(e,t,n){let{reference:r,floating:o}=e;const i=r.x+r.width/2-o.width/2,s=r.y+r.height/2-o.height/2,a=Xi(t),c=zi(a),l=r[c]/2-o[c]/2,u="x"===a;let d;switch(Yi(t)){case"top":d={x:i,y:r.y-o.height};break;case"bottom":d={x:i,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:s};break;case"left":d={x:r.x-o.width,y:s};break;default:d={x:r.x,y:r.y}}switch(Ui(t)){case"start":d[a]-=l*(n&&u?-1:1);break;case"end":d[a]+=l*(n&&u?-1:1)}return d}function Ki(e,t){return"function"==typeof e?e(t):e}function Gi(e){return"number"!=typeof e?(t=e,{top:0,right:0,bottom:0,left:0,...t}):{top:e,right:e,bottom:e,left:e};var t}function Zi(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function Ji(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=Ki(t,e),h=Gi(p),m=a[f?"floating"===d?"reference":"floating":d],v=Zi(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(a.floating)),boundary:l,rootBoundary:u,strategy:c})),g="floating"===d?{...s.floating,x:r,y:o}:s.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),b=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},w=Zi(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:g,offsetParent:y,strategy:c}):g);return{top:(v.top-w.top+h.top)/b.y,bottom:(w.bottom-v.bottom+h.bottom)/b.y,left:(v.left-w.left+h.left)/b.x,right:(w.right-v.right+h.right)/b.x}}const Qi=Math.min,es=Math.max;function ts(e,t,n){return es(e,Qi(t,n))}const ns=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a}=t,{element:c,padding:l=0}=Ki(e,t)||{};if(null==c)return{};const u=Gi(l),d={x:n,y:r},f=Xi(o),p=zi(f),h=await s.getDimensions(c),m="y"===f,v=m?"top":"left",g=m?"bottom":"right",y=m?"clientHeight":"clientWidth",b=i.reference[p]+i.reference[f]-d[f]-i.floating[p],w=d[f]-i.reference[f],x=await(null==s.getOffsetParent?void 0:s.getOffsetParent(c));let E=x?x[y]:0;E&&await(null==s.isElement?void 0:s.isElement(x))||(E=a.floating[y]||i.floating[p]);const S=b/2-w/2,P=E/2-h[p]/2-1,C=Qi(u[v],P),T=Qi(u[g],P),R=C,A=E-h[p]-T,D=E/2-h[p]/2+S,O=ts(R,D,A),k=null!=Ui(o)&&D!=O&&i.reference[p]/2-(D<R?C:T)-h[p]/2<0?D<R?R-D:A-D:0;return{[f]:d[f]-k,data:{[f]:O,centerOffset:D-O+k}}}}),rs=["top","right","bottom","left"];rs.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);const os={left:"right",right:"left",bottom:"top",top:"bottom"};function is(e){return e.replace(/left|right|bottom|top/g,(e=>os[e]))}const ss={start:"end",end:"start"};function as(e){return e.replace(/start|end/g,(e=>ss[e]))}const cs=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:o,rects:i,initialPlacement:s,platform:a,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:h=!0,...m}=Ki(e,t),v=Yi(r),g=Yi(s)===s,y=await(null==a.isRTL?void 0:a.isRTL(c.floating)),b=d||(g||!h?[is(s)]:function(e){const t=is(e);return[as(e),t,as(t)]}(s));d||"none"===p||b.push(...function(e,t,n,r){const o=Ui(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return[]}}(Yi(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(as)))),i}(s,h,p,y));const w=[s,...b],x=await Ji(t,m),E=[];let S=(null==(n=o.flip)?void 0:n.overflows)||[];if(l&&E.push(x[v]),u){const{main:e,cross:t}=function(e,t,n){void 0===n&&(n=!1);const r=Ui(e),o=Xi(e),i=zi(o);let s="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=is(s)),{main:s,cross:is(s)}}(r,i,y);E.push(x[e],x[t])}if(S=[...S,{placement:r,overflows:E}],!E.every((e=>e<=0))){var P,C;const e=((null==(P=o.flip)?void 0:P.index)||0)+1,t=w[e];if(t)return{data:{index:e,overflows:S},reset:{placement:t}};let n=null==(C=S.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:C.placement;if(!n)switch(f){case"bestFit":{var T;const e=null==(T=S.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:T[0];e&&(n=e);break}case"initialPlacement":n=s}if(r!==n)return{reset:{placement:n}}}return{}}}};function ls(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function us(e){return rs.some((t=>e[t]>=0))}const ds=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Ki(e,t);switch(r){case"referenceHidden":{const e=ls(await Ji(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:us(e)}}}case"escaped":{const e=ls(await Ji(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:us(e)}}}default:return{}}}}};function fs(e){return"x"===e?"y":"x"}const ps=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=Ki(e,t),l={x:n,y:r},u=await Ji(t,c),d=Xi(Yi(o)),f=fs(d);let p=l[d],h=l[f];if(i){const e="y"===d?"bottom":"right";p=ts(p+u["y"===d?"top":"left"],p,p-u[e])}if(s){const e="y"===f?"bottom":"right";h=ts(h+u["y"===f?"top":"left"],h,h-u[e])}const m=a.fn({...t,[d]:p,[f]:h});return{...m,data:{x:m.x-n,y:m.y-r}}}}},hs=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:s=(()=>{}),...a}=Ki(e,t),c=await Ji(t,a),l=Yi(n),u=Ui(n),d="x"===Xi(n),{width:f,height:p}=r.floating;let h,m;"top"===l||"bottom"===l?(h=l,m=u===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(m=l,h="end"===u?"top":"bottom");const v=p-c[h],g=f-c[m],y=!t.middlewareData.shift;let b=v,w=g;if(d){const e=f-c.left-c.right;w=u||y?Qi(g,e):e}else{const e=p-c.top-c.bottom;b=u||y?Qi(v,e):e}if(y&&!u){const e=es(c.left,0),t=es(c.right,0),n=es(c.top,0),r=es(c.bottom,0);d?w=f-2*(0!==e||0!==t?e+t:es(c.left,c.right)):b=p-2*(0!==n||0!==r?n+r:es(c.top,c.bottom))}await s({...t,availableWidth:w,availableHeight:b});const x=await o.getDimensions(i.floating);return f!==x.width||p!==x.height?{reset:{rects:!0}}:{}}}};function ms(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function vs(e){return ms(e).getComputedStyle(e)}function gs(e){return e instanceof ms(e).Node}function ys(e){return gs(e)?(e.nodeName||"").toLowerCase():"#document"}function bs(e){return e instanceof HTMLElement||e instanceof ms(e).HTMLElement}function ws(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ms(e).ShadowRoot||e instanceof ShadowRoot)}function xs(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=vs(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Es(e){return["table","td","th"].includes(ys(e))}function Ss(e){const t=Ps(),n=vs(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 Ps(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Cs(e){return["html","body","#document"].includes(ys(e))}const Ts=Math.min,Rs=Math.max,As=Math.round,Ds=Math.floor,Os=e=>({x:e,y:e});function ks(e){const t=vs(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=bs(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=As(n)!==i||As(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function Ls(e){return e instanceof Element||e instanceof ms(e).Element}function Ms(e){return Ls(e)?e:e.contextElement}function _s(e){const t=Ms(e);if(!bs(t))return Os(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=ks(t);let s=(i?As(n.width):n.width)/r,a=(i?As(n.height):n.height)/o;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const Is=Os(0);function Vs(e){const t=ms(e);return Ps()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Is}function $s(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Ms(e);let s=Os(1);t&&(r?Ls(r)&&(s=_s(r)):s=_s(e));const a=(c=i,void 0===(l=n)&&(l=!1),!(u=r)||l&&u!==ms(c)||!l?Os(0):Vs(i));var c,l,u;let d=(o.left+a.x)/s.x,f=(o.top+a.y)/s.y,p=o.width/s.x,h=o.height/s.y;if(i){const e=ms(i),t=r&&Ls(r)?ms(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=_s(n),t=n.getBoundingClientRect(),r=getComputedStyle(n),o=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;d*=e.x,f*=e.y,p*=e.x,h*=e.y,d+=o,f+=i,n=ms(n).frameElement}}return Zi({width:p,height:h,x:d,y:f})}function Ns(e){return Ls(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Fs(e){var t;return null==(t=(gs(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function js(e){return $s(Fs(e)).left+Ns(e).scrollLeft}function Bs(e){if("html"===ys(e))return e;const t=e.assignedSlot||e.parentNode||ws(e)&&e.host||Fs(e);return ws(t)?t.host:t}function Ws(e){const t=Bs(e);return Cs(t)?e.ownerDocument?e.ownerDocument.body:e.body:bs(t)&&xs(t)?t:Ws(t)}function Hs(e,t){var n;void 0===t&&(t=[]);const r=Ws(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=ms(r);return o?t.concat(i,i.visualViewport||[],xs(r)?r:[]):t.concat(r,Hs(r))}function Us(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=ms(e),r=Fs(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,c=0;if(o){i=o.width,s=o.height;const e=Ps();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,c=o.offsetTop)}return{width:i,height:s,x:a,y:c}}(e,n);else if("document"===t)r=function(e){const t=Fs(e),n=Ns(e),r=e.ownerDocument.body,o=Rs(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Rs(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+js(e);const a=-n.scrollTop;return"rtl"===vs(r).direction&&(s+=Rs(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}(Fs(e));else if(Ls(t))r=function(e,t){const n=$s(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=bs(e)?_s(e):Os(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=Vs(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return Zi(r)}function zs(e,t){const n=Bs(e);return!(n===t||!Ls(n)||Cs(n))&&("fixed"===vs(n).position||zs(n,t))}function Ys(e,t,n){const r=bs(t),o=Fs(t),i="fixed"===n,s=$s(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=Os(0);if(r||!r&&!i)if(("body"!==ys(t)||xs(o))&&(a=Ns(t)),bs(t)){const e=$s(t,!0,i,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else o&&(c.x=js(o));return{x:s.left+a.scrollLeft-c.x,y:s.top+a.scrollTop-c.y,width:s.width,height:s.height}}function Xs(e,t){return bs(e)&&"fixed"!==vs(e).position?t?t(e):e.offsetParent:null}function qs(e,t){const n=ms(e);if(!bs(e))return n;let r=Xs(e,t);for(;r&&Es(r)&&"static"===vs(r).position;)r=Xs(r,t);return r&&("html"===ys(r)||"body"===ys(r)&&"static"===vs(r).position&&!Ss(r))?n:r||function(e){let t=Bs(e);for(;bs(t)&&!Cs(t);){if(Ss(t))return t;t=Bs(t)}return null}(e)||n}const Ks={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=bs(n),i=Fs(n);if(n===i)return t;let s={scrollLeft:0,scrollTop:0},a=Os(1);const c=Os(0);if((o||!o&&"fixed"!==r)&&(("body"!==ys(n)||xs(i))&&(s=Ns(n)),bs(n))){const e=$s(n);a=_s(n),c.x=e.x+n.clientLeft,c.y=e.y+n.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-s.scrollLeft*a.x+c.x,y:t.y*a.y-s.scrollTop*a.y+c.y}},getDocumentElement:Fs,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let r=Hs(e).filter((e=>Ls(e)&&"body"!==ys(e))),o=null;const i="fixed"===vs(e).position;let s=i?Bs(e):e;for(;Ls(s)&&!Cs(s);){const t=vs(s),n=Ss(s);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||xs(s)&&!n&&zs(e,s))?r=r.filter((e=>e!==s)):o=t,s=Bs(s)}return t.set(e,r),r}(t,this._c):[].concat(n),r],s=i[0],a=i.reduce(((e,n)=>{const r=Us(t,n,o);return e.top=Rs(r.top,e.top),e.right=Ts(r.right,e.right),e.bottom=Ts(r.bottom,e.bottom),e.left=Rs(r.left,e.left),e}),Us(t,s,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:qs,getElementRects:async function(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||qs,i=this.getDimensions;return{reference:Ys(t,await o(n),r),floating:{x:0,y:0,...await i(n)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){return ks(e)},getScale:_s,isElement:Ls,isRTL:function(e){return"rtl"===getComputedStyle(e).direction}};function Gs(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,l=Ms(e),u=o||i?[...l?Hs(l):[],...Hs(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=l&&a?function(e,t){let n,r=null;const o=Fs(e);function i(){clearTimeout(n),r&&r.disconnect(),r=null}return function s(a,c){void 0===a&&(a=!1),void 0===c&&(c=1),i();const{left:l,top:u,width:d,height:f}=e.getBoundingClientRect();if(a||t(),!d||!f)return;const p={rootMargin:-Ds(u)+"px "+-Ds(o.clientWidth-(l+d))+"px "+-Ds(o.clientHeight-(u+f))+"px "+-Ds(l)+"px",threshold:Rs(0,Ts(1,c))||1};let h=!0;function m(e){const t=e[0].intersectionRatio;if(t!==c){if(!h)return s();t?s(!1,t):n=setTimeout((()=>{s(!1,1e-7)}),100)}h=!1}try{r=new IntersectionObserver(m,{...p,root:o.ownerDocument})}catch(v){r=new IntersectionObserver(m,p)}r.observe(e)}(!0),i}(l,n):null;let f,p=-1,h=null;s&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===l&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{h&&h.observe(t)}))),n()})),l&&!c&&h.observe(l),h.observe(t));let m=c?$s(e):null;return c&&function t(){const r=$s(e);!m||r.x===m.x&&r.y===m.y&&r.width===m.width&&r.height===m.height||n(),m=r,f=requestAnimationFrame(t)}(),n(),()=>{u.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),d&&d(),h&&h.disconnect(),h=null,c&&cancelAnimationFrame(f)}}const Zs=(e,t,n)=>{const r=new Map,o={platform:Ks,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),c=await(null==s.isRTL?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=qi(l,r,c),f=r,p={},h=0;for(let m=0;m<a.length;m++){const{name:n,fn:i}=a[m],{x:v,y:g,data:y,reset:b}=await i({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:l,platform:s,elements:{reference:e,floating:t}});u=null!=v?v:u,d=null!=g?g:d,p={...p,[n]:{...p[n],...y}},b&&h<=50&&(h++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(l=!0===b.rects?await s.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:u,y:d}=qi(l,f,c))),m=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})},Js=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?ns({element:n.current,padding:r}).fn(t):{}:n?ns({element:n,padding:r}).fn(t):{};var o}});var Qs="undefined"!=typeof document?e.useLayoutEffect:e.useEffect;function ea(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;0!=r--;)if(!ea(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!ea(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function ta(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function na(e,t){const n=ta(e);return Math.round(t*n)/n}function ra(e){const t=r.useRef(e);return Qs((()=>{t.current=e})),t}const oa=e.forwardRef(((t,n)=>{const{children:r,width:o=10,height:i=5,...s}=t;return e.createElement(To.svg,m({},s,{ref:n,width:o,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),t.asChild?r:e.createElement("polygon",{points:"0,0 30,0 15,10"}))})),ia="Popper",[sa,aa]=bo(ia),[ca,la]=sa(ia),ua=e.forwardRef(((t,n)=>{const{__scopePopper:r,virtualRef:o,...i}=t,s=la("PopperAnchor",r),a=e.useRef(null),c=yo(n,a);return e.useEffect((()=>{s.onAnchorChange((null==o?void 0:o.current)||a.current)})),o?null:e.createElement(To.div,m({},i,{ref:c}))})),da="PopperContent",[fa,pa]=sa(da),ha=e.forwardRef(((t,n)=>{var i,s,a,c,l,u,d,f;const{__scopePopper:p,side:h="bottom",sideOffset:v=0,align:g="center",alignOffset:y=0,arrowPadding:b=0,collisionBoundary:w=[],collisionPadding:x=0,sticky:E="partial",hideWhenDetached:S=!1,avoidCollisions:P=!0,onPlaced:C,...T}=t,R=la(da,p),[A,D]=e.useState(null),O=yo(n,(e=>D(e))),[k,L]=e.useState(null),M=Qo(k),_=null!==(i=null==M?void 0:M.width)&&void 0!==i?i:0,I=null!==(s=null==M?void 0:M.height)&&void 0!==s?s:0,V=h+("center"!==g?"-"+g:""),$="number"==typeof x?x:{top:0,right:0,bottom:0,left:0,...x},N=Array.isArray(w)?w:[w],F=N.length>0,j={padding:$,boundary:N.filter(va),altBoundary:F},{refs:B,floatingStyles:W,placement:H,isPositioned:U,middlewareData:z}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:s,elements:{reference:a,floating:c}={},transform:l=!0,whileElementsMounted:u,open:d}=e,[f,p]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=r.useState(i);ea(h,i)||m(i);const[v,g]=r.useState(null),[y,b]=r.useState(null),w=r.useCallback((e=>{e!=P.current&&(P.current=e,g(e))}),[g]),x=r.useCallback((e=>{e!==C.current&&(C.current=e,b(e))}),[b]),E=a||v,S=c||y,P=r.useRef(null),C=r.useRef(null),T=r.useRef(f),R=ra(u),A=ra(s),D=r.useCallback((()=>{if(!P.current||!C.current)return;const e={placement:t,strategy:n,middleware:h};A.current&&(e.platform=A.current),Zs(P.current,C.current,e).then((e=>{const t={...e,isPositioned:!0};O.current&&!ea(T.current,t)&&(T.current=t,o.flushSync((()=>{p(t)})))}))}),[h,t,n,A]);Qs((()=>{!1===d&&T.current.isPositioned&&(T.current.isPositioned=!1,p((e=>({...e,isPositioned:!1}))))}),[d]);const O=r.useRef(!1);Qs((()=>(O.current=!0,()=>{O.current=!1})),[]),Qs((()=>{if(E&&(P.current=E),S&&(C.current=S),E&&S){if(R.current)return R.current(E,S,D);D()}}),[E,S,D,R]);const k=r.useMemo((()=>({reference:P,floating:C,setReference:w,setFloating:x})),[w,x]),L=r.useMemo((()=>({reference:E,floating:S})),[E,S]),M=r.useMemo((()=>{const e={position:n,left:0,top:0};if(!L.floating)return e;const t=na(L.floating,f.x),r=na(L.floating,f.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...ta(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,l,L.floating,f.x,f.y]);return r.useMemo((()=>({...f,update:D,refs:k,elements:L,floatingStyles:M})),[f,D,k,L,M])}({strategy:"fixed",placement:V,whileElementsMounted:Gs,elements:{reference:R.anchor},middleware:[(X={mainAxis:v+I,alignmentAxis:y},void 0===X&&(X=0),{name:"offset",options:X,async fn(e){const{x:t,y:n}=e,r=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),s=Yi(n),a=Ui(n),c="x"===Xi(n),l=["left","top"].includes(s)?-1:1,u=i&&c?-1:1,d=Ki(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&"number"==typeof h&&(p="end"===a?-1*h:h),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}(e,X);return{x:t+r.x,y:n+r.y,data:r}}}),P&&ps({mainAxis:!0,crossAxis:!1,limiter:"partial"===E?(void 0===Y&&(Y={}),{options:Y,fn(e){const{x:t,y:n,placement:r,rects:o,middlewareData:i}=e,{offset:s=0,mainAxis:a=!0,crossAxis:c=!0}=Ki(Y,e),l={x:t,y:n},u=Xi(r),d=fs(u);let f=l[u],p=l[d];const h=Ki(s,e),m="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(a){const e="y"===u?"height":"width",t=o.reference[u]-o.floating[e]+m.mainAxis,n=o.reference[u]+o.reference[e]-m.mainAxis;f<t?f=t:f>n&&(f=n)}if(c){var v,g;const e="y"===u?"width":"height",t=["top","left"].includes(Yi(r)),n=o.reference[d]-o.floating[e]+(t&&(null==(v=i.offset)?void 0:v[d])||0)+(t?0:m.crossAxis),s=o.reference[d]+o.reference[e]+(t?0:(null==(g=i.offset)?void 0:g[d])||0)-(t?m.crossAxis:0);p<n?p=n:p>s&&(p=s)}return{[u]:f,[d]:p}}}):void 0,...j}),P&&cs({...j}),hs({...j,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:i}=t.reference,s=e.floating.style;s.setProperty("--radix-popper-available-width",`${n}px`),s.setProperty("--radix-popper-available-height",`${r}px`),s.setProperty("--radix-popper-anchor-width",`${o}px`),s.setProperty("--radix-popper-anchor-height",`${i}px`)}}),k&&Js({element:k,padding:b}),ga({arrowWidth:_,arrowHeight:I}),S&&ds({strategy:"referenceHidden"})]});var Y,X;const[q,K]=ya(H),G=Lo(C);Ao((()=>{U&&(null==G||G())}),[U,G]);const Z=null===(a=z.arrow)||void 0===a?void 0:a.x,J=null===(c=z.arrow)||void 0===c?void 0:c.y,Q=0!==(null===(l=z.arrow)||void 0===l?void 0:l.centerOffset),[ee,te]=e.useState();return Ao((()=>{A&&te(window.getComputedStyle(A).zIndex)}),[A]),e.createElement("div",{ref:B.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:U?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ee,"--radix-popper-transform-origin":[null===(u=z.transformOrigin)||void 0===u?void 0:u.x,null===(d=z.transformOrigin)||void 0===d?void 0:d.y].join(" ")},dir:t.dir},e.createElement(fa,{scope:p,placedSide:q,onArrowChange:L,arrowX:Z,arrowY:J,shouldHideArrow:Q},e.createElement(To.div,m({"data-side":q,"data-align":K},T,{ref:O,style:{...T.style,animation:U?void 0:"none",opacity:null!==(f=z.hide)&&void 0!==f&&f.referenceHidden?0:void 0}}))))})),ma={top:"bottom",right:"left",bottom:"top",left:"right"};function va(e){return null!==e}const ga=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,s;const{placement:a,rects:c,middlewareData:l}=t,u=0!==(null===(n=l.arrow)||void 0===n?void 0:n.centerOffset),d=u?0:e.arrowWidth,f=u?0:e.arrowHeight,[p,h]=ya(a),m={start:"0%",center:"50%",end:"100%"}[h],v=(null!==(r=null===(o=l.arrow)||void 0===o?void 0:o.x)&&void 0!==r?r:0)+d/2,g=(null!==(i=null===(s=l.arrow)||void 0===s?void 0:s.y)&&void 0!==i?i:0)+f/2;let y="",b="";return"bottom"===p?(y=u?m:`${v}px`,b=-f+"px"):"top"===p?(y=u?m:`${v}px`,b=`${c.floating.height+f}px`):"right"===p?(y=-f+"px",b=u?m:`${g}px`):"left"===p&&(y=`${c.floating.width+f}px`,b=u?m:`${g}px`),{data:{x:y,y:b}}}});function ya(e){const[t,n="center"]=e.split("-");return[t,n]}const ba=t=>{const{__scopePopper:n,children:r}=t,[o,i]=e.useState(null);return e.createElement(ca,{scope:n,anchor:o,onAnchorChange:i},r)},wa=ua,xa=ha,Ea=e.forwardRef((function(t,n){const{__scopePopper:r,...o}=t,i=pa("PopperArrow",r),s=ma[i.placedSide];return e.createElement("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0}},e.createElement(oa,m({},o,{ref:n,style:{...o.style,display:"block"}})))})),Sa=e.forwardRef(((n,r)=>{var o;const{container:i=(null===globalThis||void 0===globalThis||null===(o=globalThis.document)||void 0===o?void 0:o.body),...s}=n;return i?t.createPortal(e.createElement(To.div,m({},s,{ref:r})),i):null})),Pa=e.forwardRef(((t,n)=>e.createElement(To.span,m({},t,{ref:n,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...t.style}})))),Ca=Pa,Ta=[" ","Enter","ArrowUp","ArrowDown"],Ra=[" ","Enter"],Aa="Select",[Da,Oa,ka]=Ro(Aa),[La,Ma]=bo(Aa,[ka,aa]),_a=aa(),[Ia,Va]=La(Aa),[$a,Na]=La(Aa),Fa=e.forwardRef(((t,n)=>{const{__scopeSelect:r,disabled:o=!1,...i}=t,s=_a(r),a=Va("SelectTrigger",r),c=a.disabled||o,l=yo(n,a.onTriggerChange),u=Oa(r),[d,f,p]=pc((e=>{const t=u().filter((e=>!e.disabled)),n=t.find((e=>e.value===a.value)),r=hc(t,e,n);void 0!==r&&a.onValueChange(r.value)})),h=()=>{c||(a.onOpenChange(!0),p())};return e.createElement(wa,m({asChild:!0},s),e.createElement(To.button,m({type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":void 0===a.value?"":void 0},i,{ref:l,onClick:vo(i.onClick,(e=>{e.currentTarget.focus()})),onPointerDown:vo(i.onPointerDown,(e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&(h(),a.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)},e.preventDefault())})),onKeyDown:vo(i.onKeyDown,(e=>{const t=""!==d.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||f(e.key),t&&" "===e.key||Ta.includes(e.key)&&(h(),e.preventDefault())}))})))})),ja=e.forwardRef(((t,n)=>{const{__scopeSelect:r,className:o,style:i,children:s,placeholder:a,...c}=t,l=Va("SelectValue",r),{onValueNodeHasChildrenChange:u}=l,d=void 0!==s,f=yo(n,l.onValueNodeChange);return Ao((()=>{u(d)}),[u,d]),e.createElement(To.span,m({},c,{ref:f,style:{pointerEvents:"none"}}),void 0===l.value&&void 0!==a?a:s)})),Ba=e.forwardRef(((t,n)=>{const{__scopeSelect:r,children:o,...i}=t;return e.createElement(To.span,m({"aria-hidden":!0},i,{ref:n}),o||"▼")})),Wa="SelectContent",Ha=e.forwardRef(((n,r)=>{const o=Va(Wa,n.__scopeSelect),[i,s]=e.useState();if(Ao((()=>{s(new DocumentFragment)}),[]),!o.open){const r=i;return r?t.createPortal(e.createElement(za,{scope:n.__scopeSelect},e.createElement(Da.Slot,{scope:n.__scopeSelect},e.createElement("div",null,n.children))),r):null}return e.createElement(Xa,m({},n,{ref:r}))})),Ua=10,[za,Ya]=La(Wa),Xa=e.forwardRef(((t,n)=>{const{__scopeSelect:r,position:o="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:s,onPointerDownOutside:a,side:c,sideOffset:l,align:u,alignOffset:d,arrowPadding:f,collisionBoundary:p,collisionPadding:h,sticky:v,hideWhenDetached:g,avoidCollisions:y,...b}=t,w=Va(Wa,r),[x,E]=e.useState(null),[S,P]=e.useState(null),C=yo(n,(e=>E(e))),[T,R]=e.useState(null),[A,D]=e.useState(null),O=Oa(r),[k,L]=e.useState(!1),M=e.useRef(!1);e.useEffect((()=>{if(x)return ze(x)}),[x]),e.useEffect((()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:Mi()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:Mi()),Li++,()=>{1===Li&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),Li--}}),[]);const _=e.useCallback((e=>{const[t,...n]=O().map((e=>e.ref.current)),[r]=n.slice(-1),o=document.activeElement;for(const i of e){if(i===o)return;if(null==i||i.scrollIntoView({block:"nearest"}),i===t&&S&&(S.scrollTop=0),i===r&&S&&(S.scrollTop=S.scrollHeight),null==i||i.focus(),document.activeElement!==o)return}}),[O,S]),I=e.useCallback((()=>_([T,x])),[_,T,x]);e.useEffect((()=>{k&&I()}),[k,I]);const{onOpenChange:V,triggerPointerDownPosRef:$}=w;e.useEffect((()=>{if(x){let e={x:0,y:0};const t=t=>{var n,r,o,i;e={x:Math.abs(Math.round(t.pageX)-(null!==(n=null===(r=$.current)||void 0===r?void 0:r.x)&&void 0!==n?n:0)),y:Math.abs(Math.round(t.pageY)-(null!==(o=null===(i=$.current)||void 0===i?void 0:i.y)&&void 0!==o?o:0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():x.contains(n.target)||V(!1),document.removeEventListener("pointermove",t),$.current=null};return null!==$.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}}),[x,V,$]),e.useEffect((()=>{const e=()=>V(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}}),[V]);const[N,F]=pc((e=>{const t=O().filter((e=>!e.disabled)),n=t.find((e=>e.ref.current===document.activeElement)),r=hc(t,e,n);r&&setTimeout((()=>r.ref.current.focus()))})),j=e.useCallback(((e,t,n)=>{const r=!M.current&&!n;(void 0!==w.value&&w.value===t||r)&&(R(e),r&&(M.current=!0))}),[w.value]),B=e.useCallback((()=>null==x?void 0:x.focus()),[x]),W=e.useCallback(((e,t,n)=>{const r=!M.current&&!n;(void 0!==w.value&&w.value===t||r)&&D(e)}),[w.value]),H="popper"===o?Ka:qa,U=H===Ka?{side:c,sideOffset:l,align:u,alignOffset:d,arrowPadding:f,collisionBoundary:p,collisionPadding:h,sticky:v,hideWhenDetached:g,avoidCollisions:y}:{};return e.createElement(za,{scope:r,content:x,viewport:S,onViewportChange:P,itemRefCallback:j,selectedItem:T,onItemLeave:B,itemTextRefCallback:W,focusSelectedItem:I,selectedItemText:A,position:o,isPositioned:k,searchRef:N},e.createElement(Ne,{as:xo,allowPinchZoom:!0},e.createElement($i,{asChild:!0,trapped:w.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:vo(i,(e=>{var t;null===(t=w.trigger)||void 0===t||t.focus({preventScroll:!0}),e.preventDefault()}))},e.createElement(Di,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>w.onOpenChange(!1)},e.createElement(H,m({role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:e=>e.preventDefault()},b,U,{onPlaced:()=>L(!0),ref:C,style:{display:"flex",flexDirection:"column",outline:"none",...b.style},onKeyDown:vo(b.onKeyDown,(e=>{const t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||F(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=O().filter((e=>!e.disabled)).map((e=>e.ref.current));if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){const n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout((()=>_(t))),e.preventDefault()}}))}))))))})),qa=e.forwardRef(((t,n)=>{const{__scopeSelect:r,onPlaced:o,...i}=t,s=Va(Wa,r),a=Ya(Wa,r),[c,l]=e.useState(null),[u,d]=e.useState(null),f=yo(n,(e=>d(e))),p=Oa(r),h=e.useRef(!1),v=e.useRef(!0),{viewport:g,selectedItem:y,selectedItemText:b,focusSelectedItem:w}=a,x=e.useCallback((()=>{if(s.trigger&&s.valueNode&&c&&u&&g&&y&&b){const e=s.trigger.getBoundingClientRect(),t=u.getBoundingClientRect(),n=s.valueNode.getBoundingClientRect(),r=b.getBoundingClientRect();if("rtl"!==s.dir){const o=r.left-t.left,i=n.left-o,s=e.left-i,a=e.width+s,l=Math.max(a,t.width),u=window.innerWidth-Ua,d=Si(i,[Ua,u-l]);c.style.minWidth=a+"px",c.style.left=d+"px"}else{const o=t.right-r.right,i=window.innerWidth-n.right-o,s=window.innerWidth-e.right-i,a=e.width+s,l=Math.max(a,t.width),u=window.innerWidth-Ua,d=Si(i,[Ua,u-l]);c.style.minWidth=a+"px",c.style.right=d+"px"}const i=p(),a=window.innerHeight-2*Ua,l=g.scrollHeight,d=window.getComputedStyle(u),f=parseInt(d.borderTopWidth,10),m=parseInt(d.paddingTop,10),v=parseInt(d.borderBottomWidth,10),w=f+m+l+parseInt(d.paddingBottom,10)+v,x=Math.min(5*y.offsetHeight,w),E=window.getComputedStyle(g),S=parseInt(E.paddingTop,10),P=parseInt(E.paddingBottom,10),C=e.top+e.height/2-Ua,T=a-C,R=y.offsetHeight/2,A=f+m+(y.offsetTop+R),D=w-A;if(A<=C){const e=y===i[i.length-1].ref.current;c.style.bottom="0px";const t=u.clientHeight-g.offsetTop-g.offsetHeight,n=A+Math.max(T,R+(e?P:0)+t+v);c.style.height=n+"px"}else{const e=y===i[0].ref.current;c.style.top="0px";const t=Math.max(C,f+g.offsetTop+(e?S:0)+R)+D;c.style.height=t+"px",g.scrollTop=A-C+g.offsetTop}c.style.margin=`${Ua}px 0`,c.style.minHeight=x+"px",c.style.maxHeight=a+"px",null==o||o(),requestAnimationFrame((()=>h.current=!0))}}),[p,s.trigger,s.valueNode,c,u,g,y,b,s.dir,o]);Ao((()=>x()),[x]);const[E,S]=e.useState();Ao((()=>{u&&S(window.getComputedStyle(u).zIndex)}),[u]);const P=e.useCallback((e=>{e&&!0===v.current&&(x(),null==w||w(),v.current=!1)}),[x,w]);return e.createElement(Ga,{scope:r,contentWrapper:c,shouldExpandOnScrollRef:h,onScrollButtonChange:P},e.createElement("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:E}},e.createElement(To.div,m({},i,{ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}}))))})),Ka=e.forwardRef(((t,n)=>{const{__scopeSelect:r,align:o="start",collisionPadding:i=Ua,...s}=t,a=_a(r);return e.createElement(xa,m({},a,s,{ref:n,align:o,collisionPadding:i,style:{boxSizing:"border-box",...s.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)"}}))})),[Ga,Za]=La(Wa,{}),Ja="SelectViewport",Qa=e.forwardRef(((t,n)=>{const{__scopeSelect:r,...o}=t,i=Ya(Ja,r),s=Za(Ja,r),a=yo(n,i.onViewportChange),c=e.useRef(0);return e.createElement(e.Fragment,null,e.createElement("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}"}}),e.createElement(Da.Slot,{scope:r},e.createElement(To.div,m({"data-radix-select-viewport":"",role:"presentation"},o,{ref:a,style:{position:"relative",flex:1,overflow:"auto",...o.style},onScroll:vo(o.onScroll,(e=>{const t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=s;if(null!=r&&r.current&&n){const e=Math.abs(c.current-t.scrollTop);if(e>0){const r=window.innerHeight-2*Ua,o=parseFloat(n.style.minHeight),i=parseFloat(n.style.height),s=Math.max(o,i);if(s<r){const o=s+e,i=Math.min(r,o),a=o-i;n.style.height=i+"px","0px"===n.style.bottom&&(t.scrollTop=a>0?a:0,n.style.justifyContent="flex-end")}}}c.current=t.scrollTop}))}))))}));La("SelectGroup");const ec="SelectItem",[tc,nc]=La(ec),rc=e.forwardRef(((t,n)=>{const{__scopeSelect:r,value:o,disabled:i=!1,textValue:s,...a}=t,c=Va(ec,r),l=Ya(ec,r),u=c.value===o,[d,f]=e.useState(null!=s?s:""),[p,h]=e.useState(!1),v=yo(n,(e=>{var t;return null===(t=l.itemRefCallback)||void 0===t?void 0:t.call(l,e,o,i)})),g=ko(),y=()=>{i||(c.onValueChange(o),c.onOpenChange(!1))};return e.createElement(tc,{scope:r,value:o,disabled:i,textId:g,isSelected:u,onItemTextChange:e.useCallback((e=>{f((t=>{var n;return t||(null!==(n=null==e?void 0:e.textContent)&&void 0!==n?n:"").trim()}))}),[])},e.createElement(Da.ItemSlot,{scope:r,value:o,disabled:i,textValue:d},e.createElement(To.div,m({role:"option","aria-labelledby":g,"data-highlighted":p?"":void 0,"aria-selected":u&&p,"data-state":u?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1},a,{ref:v,onFocus:vo(a.onFocus,(()=>h(!0))),onBlur:vo(a.onBlur,(()=>h(!1))),onPointerUp:vo(a.onPointerUp,y),onPointerMove:vo(a.onPointerMove,(e=>{var t;i?null===(t=l.onItemLeave)||void 0===t||t.call(l):e.currentTarget.focus({preventScroll:!0})})),onPointerLeave:vo(a.onPointerLeave,(e=>{var t;e.currentTarget===document.activeElement&&(null===(t=l.onItemLeave)||void 0===t||t.call(l))})),onKeyDown:vo(a.onKeyDown,(e=>{var t;""!==(null===(t=l.searchRef)||void 0===t?void 0:t.current)&&" "===e.key||(Ra.includes(e.key)&&y()," "===e.key&&e.preventDefault())}))}))))})),oc="SelectItemText",ic=e.forwardRef(((n,r)=>{const{__scopeSelect:o,className:i,style:s,...a}=n,c=Va(oc,o),l=Ya(oc,o),u=nc(oc,o),d=Na(oc,o),[f,p]=e.useState(null),h=yo(r,(e=>p(e)),u.onItemTextChange,(e=>{var t;return null===(t=l.itemTextRefCallback)||void 0===t?void 0:t.call(l,e,u.value,u.disabled)})),v=null==f?void 0:f.textContent,g=e.useMemo((()=>e.createElement("option",{key:u.value,value:u.value,disabled:u.disabled},v)),[u.disabled,u.value,v]),{onNativeOptionAdd:y,onNativeOptionRemove:b}=d;return Ao((()=>(y(g),()=>b(g))),[y,b,g]),e.createElement(e.Fragment,null,e.createElement(To.span,m({id:u.textId},a,{ref:h})),u.isSelected&&c.valueNode&&!c.valueNodeHasChildren?t.createPortal(a.children,c.valueNode):null)})),sc=e.forwardRef(((t,n)=>{const{__scopeSelect:r,...o}=t;return nc("SelectItemIndicator",r).isSelected?e.createElement(To.span,m({"aria-hidden":!0},o,{ref:n})):null})),ac="SelectScrollUpButton",cc=e.forwardRef(((t,n)=>{const r=Ya(ac,t.__scopeSelect),o=Za(ac,t.__scopeSelect),[i,s]=e.useState(!1),a=yo(n,o.onScrollButtonChange);return Ao((()=>{if(r.viewport&&r.isPositioned){let e=function(){const e=t.scrollTop>0;s(e)};const t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}}),[r.viewport,r.isPositioned]),i?e.createElement(dc,m({},t,{ref:a,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}})):null})),lc="SelectScrollDownButton",uc=e.forwardRef(((t,n)=>{const r=Ya(lc,t.__scopeSelect),o=Za(lc,t.__scopeSelect),[i,s]=e.useState(!1),a=yo(n,o.onScrollButtonChange);return Ao((()=>{if(r.viewport&&r.isPositioned){let e=function(){const e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;s(n)};const t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}}),[r.viewport,r.isPositioned]),i?e.createElement(dc,m({},t,{ref:a,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}})):null})),dc=e.forwardRef(((t,n)=>{const{__scopeSelect:r,onAutoScroll:o,...i}=t,s=Ya("SelectScrollButton",r),a=e.useRef(null),c=Oa(r),l=e.useCallback((()=>{null!==a.current&&(window.clearInterval(a.current),a.current=null)}),[]);return e.useEffect((()=>()=>l()),[l]),Ao((()=>{var e;const t=c().find((e=>e.ref.current===document.activeElement));null==t||null===(e=t.ref.current)||void 0===e||e.scrollIntoView({block:"nearest"})}),[c]),e.createElement(To.div,m({"aria-hidden":!0},i,{ref:n,style:{flexShrink:0,...i.style},onPointerDown:vo(i.onPointerDown,(()=>{null===a.current&&(a.current=window.setInterval(o,50))})),onPointerMove:vo(i.onPointerMove,(()=>{var e;null===(e=s.onItemLeave)||void 0===e||e.call(s),null===a.current&&(a.current=window.setInterval(o,50))})),onPointerLeave:vo(i.onPointerLeave,(()=>{l()}))}))})),fc=e.forwardRef(((t,n)=>{const{value:r,...o}=t,i=e.useRef(null),s=yo(n,i),a=ei(r);return e.useEffect((()=>{const e=i.current,t=window.HTMLSelectElement.prototype,n=Object.getOwnPropertyDescriptor(t,"value").set;if(a!==r&&n){const t=new Event("change",{bubbles:!0});n.call(e,r),e.dispatchEvent(t)}}),[a,r]),e.createElement(Pa,{asChild:!0},e.createElement("select",m({},o,{ref:s,defaultValue:r})))}));function pc(t){const n=Lo(t),r=e.useRef(""),o=e.useRef(0),i=e.useCallback((e=>{const t=r.current+e;n(t),function e(t){r.current=t,window.clearTimeout(o.current),""!==t&&(o.current=window.setTimeout((()=>e("")),1e3))}(t)}),[n]),s=e.useCallback((()=>{r.current="",window.clearTimeout(o.current)}),[]);return e.useEffect((()=>()=>window.clearTimeout(o.current)),[]),[r,i,s]}function hc(e,t,n){const r=t.length>1&&Array.from(t).every((e=>e===t[0]))?t[0]:t,o=n?e.indexOf(n):-1;let i=(s=e,a=Math.max(o,0),s.map(((e,t)=>s[(a+t)%s.length])));var s,a;1===r.length&&(i=i.filter((e=>e!==n)));const c=i.find((e=>e.textValue.toLowerCase().startsWith(r.toLowerCase())));return c!==n?c:void 0}fc.displayName="BubbleSelect";const mc=t=>{const{__scopeSelect:n,children:r,open:o,defaultOpen:i,onOpenChange:s,value:a,defaultValue:c,onValueChange:l,dir:u,name:d,autoComplete:f,disabled:p,required:h}=t,m=_a(n),[v,g]=e.useState(null),[y,b]=e.useState(null),[w,x]=e.useState(!1),E=Io(u),[S=!1,P]=Mo({prop:o,defaultProp:i,onChange:s}),[C,T]=Mo({prop:a,defaultProp:c,onChange:l}),R=e.useRef(null),A=!v||Boolean(v.closest("form")),[D,O]=e.useState(new Set),k=Array.from(D).map((e=>e.props.value)).join(";");return e.createElement(ba,m,e.createElement(Ia,{required:h,scope:n,trigger:v,onTriggerChange:g,valueNode:y,onValueNodeChange:b,valueNodeHasChildren:w,onValueNodeHasChildrenChange:x,contentId:ko(),value:C,onValueChange:T,open:S,onOpenChange:P,dir:E,triggerPointerDownPosRef:R,disabled:p},e.createElement(Da.Provider,{scope:n},e.createElement($a,{scope:t.__scopeSelect,onNativeOptionAdd:e.useCallback((e=>{O((t=>new Set(t).add(e)))}),[]),onNativeOptionRemove:e.useCallback((e=>{O((t=>{const n=new Set(t);return n.delete(e),n}))}),[])},r)),A?e.createElement(fc,{key:k,"aria-hidden":!0,required:h,tabIndex:-1,name:d,autoComplete:f,value:C,onChange:e=>T(e.target.value),disabled:p},void 0===C?e.createElement("option",{value:""}):null,Array.from(D)):null))},vc=Fa,gc=ja,yc=Ba,bc=t=>e.createElement(Sa,m({asChild:!0},t)),wc=Ha,xc=Qa,Ec=rc,Sc=ic,Pc=sc,Cc=cc,Tc=uc,Rc=e.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Ac=e.createContext({}),Dc=e.createContext(null),Oc="undefined"!=typeof document,kc=Oc?e.useLayoutEffect:e.useEffect,Lc=e.createContext({strict:!1});function Mc(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function _c(e){return"string"==typeof e||Array.isArray(e)}function Ic(e){return"object"==typeof e&&"function"==typeof e.start}const Vc=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],$c=["initial",...Vc];function Nc(e){return Ic(e.animate)||$c.some((t=>_c(e[t])))}function Fc(e){return Boolean(Nc(e)||e.variants)}function jc(t){const{initial:n,animate:r}=function(e,t){if(Nc(e)){const{initial:t,animate:n}=e;return{initial:!1===t||_c(t)?t:void 0,animate:_c(n)?n:void 0}}return!1!==e.inherit?t:{}}(t,e.useContext(Ac));return e.useMemo((()=>({initial:n,animate:r})),[Bc(n),Bc(r)])}function Bc(e){return Array.isArray(e)?e.join(" "):e}const Wc={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Hc={};for(const oy in Wc)Hc[oy]={isEnabled:e=>Wc[oy].some((t=>!!e[t]))};function Uc(t){const n=e.useRef(null);return null===n.current&&(n.current=t()),n.current}const zc={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let Yc=1;const Xc=e.createContext({}),qc=e.createContext({}),Kc=Symbol.for("motionComponentSymbol");function Gc({preloadedFeatures:t,createVisualElement:n,useRender:o,useVisualState:i,Component:s}){t&&function(e){for(const t in e)Hc[t]={...Hc[t],...e[t]}}(t);const a=e.forwardRef((function(a,c){let l;const u={...e.useContext(Rc),...a,layoutId:Zc(a)},{isStatic:d}=u,f=jc(a),p=d?void 0:Uc((()=>{if(zc.hasEverUpdated)return Yc++})),h=i(a,d);if(!d&&Oc){f.visualElement=function(t,n,r,o){const{visualElement:i}=e.useContext(Ac),s=e.useContext(Lc),a=e.useContext(Dc),c=e.useContext(Rc).reducedMotion,l=e.useRef();o=o||s.renderer,!l.current&&o&&(l.current=o(t,{visualState:n,parent:i,props:r,presenceContext:a,blockInitialAnimation:!!a&&!1===a.initial,reducedMotionConfig:c}));const u=l.current;return e.useInsertionEffect((()=>{u&&u.update(r,a)})),kc((()=>{u&&u.render()})),e.useEffect((()=>{u&&u.updateFeatures()})),(window.HandoffAppearAnimations?kc:e.useEffect)((()=>{u&&u.animationState&&u.animationState.animateChanges()})),u}(s,h,u,n);const r=e.useContext(qc),o=e.useContext(Lc).strict;f.visualElement&&(l=f.visualElement.loadFeatures(u,o,t,p,r))}return r.createElement(Ac.Provider,{value:f},l&&f.visualElement?r.createElement(l,{visualElement:f.visualElement,...u}):null,o(s,a,p,function(t,n,r){return e.useCallback((e=>{e&&t.mount&&t.mount(e),n&&(e?n.mount(e):n.unmount()),r&&("function"==typeof r?r(e):Mc(r)&&(r.current=e))}),[n])}(h,f.visualElement,c),h,d,f.visualElement))}));return a[Kc]=s,a}function Zc({layoutId:t}){const n=e.useContext(Xc).id;return n&&void 0!==t?n+"-"+t:t}function Jc(e){function t(t,n={}){return Gc(e(t,n))}if("undefined"==typeof Proxy)return t;const n=new Map;return new Proxy(t,{get:(e,r)=>(n.has(r)||n.set(r,t(r)),n.get(r))})}const Qc=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function el(e){return"string"==typeof e&&!e.includes("-")&&!!(Qc.indexOf(e)>-1||/[A-Z]/.test(e))}const tl={};const nl=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],rl=new Set(nl);function ol(e,{layout:t,layoutId:n}){return rl.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!tl[e]||"opacity"===e)}const il=e=>Boolean(e&&e.getVelocity),sl={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},al=nl.length;const cl=e=>t=>"string"==typeof t&&t.startsWith(e),ll=cl("--"),ul=cl("var(--"),dl=(e,t)=>t&&"number"==typeof e?t.transform(e):e,fl=(e,t,n)=>Math.min(Math.max(n,e),t),pl={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},hl={...pl,transform:e=>fl(0,1,e)},ml={...pl,default:1},vl=e=>Math.round(1e5*e)/1e5,gl=/(-)?([\d]*\.?[\d])+/g,yl=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,bl=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function wl(e){return"string"==typeof e}const xl=e=>({test:t=>wl(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),El=xl("deg"),Sl=xl("%"),Pl=xl("px"),Cl=xl("vh"),Tl=xl("vw"),Rl={...Sl,parse:e=>Sl.parse(e)/100,transform:e=>Sl.transform(100*e)},Al={...pl,transform:Math.round},Dl={borderWidth:Pl,borderTopWidth:Pl,borderRightWidth:Pl,borderBottomWidth:Pl,borderLeftWidth:Pl,borderRadius:Pl,radius:Pl,borderTopLeftRadius:Pl,borderTopRightRadius:Pl,borderBottomRightRadius:Pl,borderBottomLeftRadius:Pl,width:Pl,maxWidth:Pl,height:Pl,maxHeight:Pl,size:Pl,top:Pl,right:Pl,bottom:Pl,left:Pl,padding:Pl,paddingTop:Pl,paddingRight:Pl,paddingBottom:Pl,paddingLeft:Pl,margin:Pl,marginTop:Pl,marginRight:Pl,marginBottom:Pl,marginLeft:Pl,rotate:El,rotateX:El,rotateY:El,rotateZ:El,scale:ml,scaleX:ml,scaleY:ml,scaleZ:ml,skew:El,skewX:El,skewY:El,distance:Pl,translateX:Pl,translateY:Pl,translateZ:Pl,x:Pl,y:Pl,z:Pl,perspective:Pl,transformPerspective:Pl,opacity:hl,originX:Rl,originY:Rl,originZ:Pl,zIndex:Al,fillOpacity:hl,strokeOpacity:hl,numOctaves:Al};function Ol(e,t,n,r){const{style:o,vars:i,transform:s,transformOrigin:a}=e;let c=!1,l=!1,u=!0;for(const d in t){const e=t[d];if(ll(d)){i[d]=e;continue}const n=Dl[d],r=dl(e,n);if(rl.has(d)){if(c=!0,s[d]=r,!u)continue;e!==(n.default||0)&&(u=!1)}else d.startsWith("origin")?(l=!0,a[d]=r):o[d]=r}if(t.transform||(c||r?o.transform=function(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let s=0;s<al;s++){const t=nl[s];void 0!==e[t]&&(i+=`${sl[t]||t}(${e[t]}) `)}return t&&!e.z&&(i+="translateZ(0)"),i=i.trim(),o?i=o(e,r?"":i):n&&r&&(i="none"),i}(e.transform,n,u,r):o.transform&&(o.transform="none")),l){const{originX:e="50%",originY:t="50%",originZ:n=0}=a;o.transformOrigin=`${e} ${t} ${n}`}}const kl=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Ll(e,t,n){for(const r in t)il(t[r])||ol(r,n)||(e[r]=t[r])}function Ml(t,n,r){const o={};return Ll(o,t.style||{},t),Object.assign(o,function({transformTemplate:t},n,r){return e.useMemo((()=>{const e=kl();return Ol(e,n,{enableHardwareAcceleration:!r},t),Object.assign({},e.vars,e.style)}),[n])}(t,n,r)),t.transformValues?t.transformValues(o):o}function _l(e,t,n){const r={},o=Ml(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")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=o,r}const Il=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function Vl(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||Il.has(e)}let $l=e=>!Vl(e);try{(Nl=require("@emotion/is-prop-valid").default)&&($l=e=>e.startsWith("on")?!Vl(e):Nl(e))}catch(ry){}var Nl;function Fl(e,t,n){return"string"==typeof e?e:Pl.transform(t+n*e)}const jl={offset:"stroke-dashoffset",array:"stroke-dasharray"},Bl={offset:"strokeDashoffset",array:"strokeDasharray"};function Wl(e,{attrX:t,attrY:n,originX:r,originY:o,pathLength:i,pathSpacing:s=1,pathOffset:a=0,...c},l,u,d){if(Ol(e,c,l,d),u)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:f,style:p,dimensions:h}=e;f.transform&&(h&&(p.transform=f.transform),delete f.transform),h&&(void 0!==r||void 0!==o||p.transform)&&(p.transformOrigin=function(e,t,n){return`${Fl(t,e.x,e.width)} ${Fl(n,e.y,e.height)}`}(h,void 0!==r?r:.5,void 0!==o?o:.5)),void 0!==t&&(f.x=t),void 0!==n&&(f.y=n),void 0!==i&&function(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?jl:Bl;e[i.offset]=Pl.transform(-r);const s=Pl.transform(t),a=Pl.transform(n);e[i.array]=`${s} ${a}`}(f,i,s,a,!1)}const Hl=()=>({...kl(),attrs:{}}),Ul=e=>"string"==typeof e&&"svg"===e.toLowerCase();function zl(t,n,r,o){const i=e.useMemo((()=>{const e=Hl();return Wl(e,n,{enableHardwareAcceleration:!1},Ul(o),t.transformTemplate),{...e.attrs,style:{...e.style}}}),[n]);if(t.style){const e={};Ll(e,t.style,t),i.style={...e,...i.style}}return i}function Yl(t=!1){return(n,r,o,i,{latestValues:s},a)=>{const c=(el(n)?zl:_l)(r,s,a,n),l=function(e,t,n){const r={};for(const o in e)"values"===o&&"object"==typeof e.values||($l(o)||!0===n&&Vl(o)||!t&&!Vl(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(r,"string"==typeof n,t),u={...l,...c,ref:i},{children:d}=r,f=e.useMemo((()=>il(d)?d.get():d),[d]);return o&&(u["data-projection-id"]=o),e.createElement(n,{...u,children:f})}}const Xl=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function ql(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const Kl=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Gl(e,t,n,r){ql(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Kl.has(o)?o:Xl(o),t.attrs[o])}function Zl(e,t){const{style:n}=e,r={};for(const o in n)(il(n[o])||t.style&&il(t.style[o])||ol(o,e))&&(r[o]=n[o]);return r}function Jl(e,t){const n=Zl(e,t);for(const r in e)if(il(e[r])||il(t[r])){n["x"===r||"y"===r?"attr"+r.toUpperCase():r]=e[r]}return n}function Ql(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}const eu=e=>Array.isArray(e),tu=e=>Boolean(e&&"object"==typeof e&&e.mix&&e.toValue),nu=e=>eu(e)?e[e.length-1]||0:e;function ru(e){const t=il(e)?e.get():e;return tu(t)?t.toValue():t}const ou=t=>(n,r)=>{const o=e.useContext(Ac),i=e.useContext(Dc),s=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const s={latestValues:iu(r,o,i,e),renderState:t()};return n&&(s.mount=e=>n(r,e,s)),s}(t,n,o,i);return r?s():Uc(s)};function iu(e,t,n,r){const o={},i=r(e,{});for(const f in i)o[f]=ru(i[f]);let{initial:s,animate:a}=e;const c=Nc(e),l=Fc(e);t&&l&&!c&&!1!==e.inherit&&(void 0===s&&(s=t.initial),void 0===a&&(a=t.animate));let u=!!n&&!1===n.initial;u=u||!1===s;const d=u?a:s;if(d&&"boolean"!=typeof d&&!Ic(d)){(Array.isArray(d)?d:[d]).forEach((t=>{const n=Ql(e,t);if(!n)return;const{transitionEnd:r,transition:i,...s}=n;for(const e in s){let t=s[e];if(Array.isArray(t)){t=t[u?t.length-1:0]}null!==t&&(o[e]=t)}for(const e in r)o[e]=r[e]}))}return o}const su={useVisualState:ou({scrapeMotionValuesFromProps:Jl,createRenderState:Hl,onMount:(e,t,{renderState:n,latestValues:r})=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(o){n.dimensions={x:0,y:0,width:0,height:0}}Wl(n,r,{enableHardwareAcceleration:!1},Ul(t.tagName),e.transformTemplate),Gl(t,n)}})},au={useVisualState:ou({scrapeMotionValuesFromProps:Zl,createRenderState:kl})};function cu(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const lu=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function uu(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const du=e=>t=>lu(t)&&e(t,uu(t));function fu(e,t,n,r){return cu(e,t,du(n),r)}const pu=(e,t)=>n=>t(e(n)),hu=(...e)=>e.reduce(pu);function mu(e){let t=null;return()=>{const n=()=>{t=null};return null===t&&(t=e,n)}}const vu=mu("dragHorizontal"),gu=mu("dragVertical");function yu(e){let t=!1;if("y"===e)t=gu();else if("x"===e)t=vu();else{const e=vu(),n=gu();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function bu(){const e=yu(!0);return!e||(e(),!1)}class wu{constructor(e){this.isMounted=!1,this.node=e}update(){}}const xu={delta:0,timestamp:0,isProcessing:!1};let Eu=!0,Su=!1;const Pu=["read","update","preRender","render","postRender"],Cu=Pu.reduce(((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,o=!1,i=!1;const s=new WeakSet,a={schedule:(e,i=!1,a=!1)=>{const c=a&&o,l=c?t:n;return i&&s.add(e),-1===l.indexOf(e)&&(l.push(e),c&&o&&(r=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),s.delete(e)},process:c=>{if(o)i=!0;else{if(o=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let n=0;n<r;n++){const r=t[n];r(c),s.has(r)&&(a.schedule(r),e())}o=!1,i&&(i=!1,a.process(c))}}};return a}((()=>Su=!0)),e)),{}),Tu=Pu.reduce(((e,t)=>{const n=Cu[t];return e[t]=(e,t=!1,r=!1)=>(Su||ku(),n.schedule(e,t,r)),e}),{}),Ru=Pu.reduce(((e,t)=>(e[t]=Cu[t].cancel,e)),{}),Au=Pu.reduce(((e,t)=>(e[t]=()=>Cu[t].process(xu),e)),{}),Du=e=>Cu[e].process(xu),Ou=e=>{Su=!1,xu.delta=Eu?1e3/60:Math.max(Math.min(e-xu.timestamp,40),1),xu.timestamp=e,xu.isProcessing=!0,Pu.forEach(Du),xu.isProcessing=!1,Su&&(Eu=!1,requestAnimationFrame(Ou))},ku=()=>{Su=!0,Eu=!0,xu.isProcessing||requestAnimationFrame(Ou)};function Lu(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End");return fu(e.current,n,((n,o)=>{if("touch"===n.type||bu())return;const i=e.getProps();e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",t),i[r]&&Tu.update((()=>i[r](n,o)))}),{passive:!e.getProps()[r]})}const Mu=(e,t)=>!!t&&(e===t||Mu(e,t.parentElement)),_u=e=>e;function Iu(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,uu(n))}const Vu=new WeakMap,$u=new WeakMap,Nu=e=>{const t=Vu.get(e.target);t&&t(e)},Fu=e=>{e.forEach(Nu)};function ju(e,t,n){const r=function({root:e,...t}){const n=e||document;$u.has(n)||$u.set(n,{});const r=$u.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(Fu,{root:e,...t})),r[o]}(t);return Vu.set(e,n),r.observe(e),()=>{Vu.delete(e),r.unobserve(e)}}const Bu={some:0,all:1};const Wu={inView:{Feature:class extends wu{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:o}=e,i={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:Bu[r]};return ju(this.node.current,i,(e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,o&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),i=t?n:r;i&&i(e)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends wu{constructor(){super(...arguments),this.removeStartListeners=_u,this.removeEndListeners=_u,this.removeAccessibleListeners=_u,this.startPointerPress=(e,t)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),r=fu(window,"pointerup",((e,t)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:r}=this.node.getProps();Tu.update((()=>{Mu(this.node.current,e.target)?n&&n(e,t):r&&r(e,t)}))}),{passive:!(n.onTap||n.onPointerUp)}),o=fu(window,"pointercancel",((e,t)=>this.cancelPress(e,t)),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=hu(r,o),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=cu(this.node.current,"keydown",(e=>{if("Enter"!==e.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=cu(this.node.current,"keyup",(e=>{"Enter"===e.key&&this.checkPressEnd()&&Iu("up",((e,t)=>{const{onTap:n}=this.node.getProps();n&&Tu.update((()=>n(e,t)))}))})),Iu("down",((e,t)=>{this.startPress(e,t)}))})),t=cu(this.node.current,"blur",(()=>{this.isPressing&&Iu("cancel",((e,t)=>this.cancelPress(e,t)))}));this.removeAccessibleListeners=hu(e,t)}}startPress(e,t){this.isPressing=!0;const{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&Tu.update((()=>n(e,t)))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!bu()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&Tu.update((()=>n(e,t)))}mount(){const e=this.node.getProps(),t=fu(this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=cu(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=hu(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends wu{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=hu(cu(this.node.current,"focus",(()=>this.onFocus())),cu(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends wu{mount(){this.unmount=hu(Lu(this.node,!0),Lu(this.node,!1))}unmount(){}}}};function Hu(e,t){if(!Array.isArray(t))return!1;const 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 Uu(e,t,n){const r=e.getProps();return Ql(r,t,void 0!==n?n:r.custom,function(e){const t={};return e.values.forEach(((e,n)=>t[n]=e.get())),t}(e),function(e){const t={};return e.values.forEach(((e,n)=>t[n]=e.getVelocity())),t}(e))}const zu="data-"+Xl("framerAppearId");let Yu=_u,Xu=_u;"production"!==process.env.NODE_ENV&&(Yu=(e,t)=>{e||"undefined"==typeof console||console.warn(t)},Xu=(e,t)=>{if(!e)throw new Error(t)});const qu=e=>1e3*e,Ku=e=>e/1e3,Gu=!1,Zu=e=>Array.isArray(e)&&"number"==typeof e[0];function Ju(e){return Boolean(!e||"string"==typeof e&&ed[e]||Zu(e)||Array.isArray(e)&&e.every(Ju))}const Qu=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,ed={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Qu([0,.65,.55,1]),circOut:Qu([.55,0,1,.45]),backIn:Qu([.31,.01,.66,-.59]),backOut:Qu([.33,1.53,.69,.99])};function td(e){if(e)return Zu(e)?Qu(e):Array.isArray(e)?e.map(td):ed[e]}const nd={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},rd={},od={};for(const oy in nd)od[oy]=()=>(void 0===rd[oy]&&(rd[oy]=nd[oy]()),rd[oy]);const id=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,sd=1e-7,ad=12;function cd(e,t,n,r){if(e===t&&n===r)return _u;const o=t=>function(e,t,n,r,o){let i,s,a=0;do{s=t+(n-t)/2,i=id(s,r,o)-e,i>0?n=s:t=s}while(Math.abs(i)>sd&&++a<ad);return s}(t,0,1,e,n);return e=>0===e||1===e?e:id(o(e),t,r)}const ld=cd(.42,0,1,1),ud=cd(0,0,.58,1),dd=cd(.42,0,.58,1),fd=e=>Array.isArray(e)&&"number"!=typeof e[0],pd=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,hd=e=>t=>1-e(1-t),md=e=>1-Math.sin(Math.acos(e)),vd=hd(md),gd=pd(vd),yd=cd(.33,1.53,.69,.99),bd=hd(yd),wd=pd(bd),xd={linear:_u,easeIn:ld,easeInOut:dd,easeOut:ud,circIn:md,circInOut:gd,circOut:vd,backIn:bd,backInOut:wd,backOut:yd,anticipate:e=>(e*=2)<1?.5*bd(e):.5*(2-Math.pow(2,-10*(e-1)))},Ed=e=>{if(Array.isArray(e)){Xu(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,o]=e;return cd(t,n,r,o)}return"string"==typeof e?(Xu(void 0!==xd[e],`Invalid easing type '${e}'`),xd[e]):e},Sd=(e,t)=>n=>Boolean(wl(n)&&bl.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Pd=(e,t,n)=>r=>{if(!wl(r))return r;const[o,i,s,a]=r.match(gl);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},Cd={...pl,transform:e=>Math.round((e=>fl(0,255,e))(e))},Td={test:Sd("rgb","red"),parse:Pd("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Cd.transform(e)+", "+Cd.transform(t)+", "+Cd.transform(n)+", "+vl(hl.transform(r))+")"};const Rd={test:Sd("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),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:Td.transform},Ad={test:Sd("hsl","hue"),parse:Pd("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Sl.transform(vl(t))+", "+Sl.transform(vl(n))+", "+vl(hl.transform(r))+")"},Dd={test:e=>Td.test(e)||Rd.test(e)||Ad.test(e),parse:e=>Td.test(e)?Td.parse(e):Ad.test(e)?Ad.parse(e):Rd.parse(e),transform:e=>wl(e)?e:e.hasOwnProperty("red")?Td.transform(e):Ad.transform(e)},Od=(e,t,n)=>-n*e+n*t+e;function kd(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}const Ld=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},Md=[Rd,Td,Ad];function _d(e){const t=(n=e,Md.find((e=>e.test(n))));var n;Xu(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`);let r=t.parse(e);return t===Ad&&(r=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,i=0,s=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,a=2*n-r;o=kd(a,r,e+1/3),i=kd(a,r,e),s=kd(a,r,e-1/3)}else o=i=s=n;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*s),alpha:r}}(r)),r}const Id=(e,t)=>{const n=_d(e),r=_d(t),o={...n};return e=>(o.red=Ld(n.red,r.red,e),o.green=Ld(n.green,r.green,e),o.blue=Ld(n.blue,r.blue,e),o.alpha=Od(n.alpha,r.alpha,e),Td.transform(o))},Vd="${c}",$d="${n}";function Nd(e){"number"==typeof e&&(e=`${e}`);const t=[];let n=0,r=0;const o=e.match(yl);o&&(n=o.length,e=e.replace(yl,Vd),t.push(...o.map(Dd.parse)));const i=e.match(gl);return i&&(r=i.length,e=e.replace(gl,$d),t.push(...i.map(pl.parse))),{values:t,numColors:n,numNumbers:r,tokenised:e}}function Fd(e){return Nd(e).values}function jd(e){const{values:t,numColors:n,tokenised:r}=Nd(e),o=t.length;return e=>{let t=r;for(let r=0;r<o;r++)t=t.replace(r<n?Vd:$d,r<n?Dd.transform(e[r]):vl(e[r]));return t}}const Bd=e=>"number"==typeof e?0:e;const Wd={test:function(e){var t,n;return isNaN(e)&&wl(e)&&((null===(t=e.match(gl))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(yl))||void 0===n?void 0:n.length)||0)>0},parse:Fd,createTransformer:jd,getAnimatableNone:function(e){const t=Fd(e);return jd(e)(t.map(Bd))}};function Hd(e,t){return"number"==typeof e?n=>Od(e,t,n):Dd.test(e)?Id(e,t):Yd(e,t)}const Ud=(e,t)=>{const n=[...e],r=n.length,o=e.map(((e,n)=>Hd(e,t[n])));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}},zd=(e,t)=>{const n={...e,...t},r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=Hd(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}},Yd=(e,t)=>{const n=Wd.createTransformer(t),r=Nd(e),o=Nd(t);return r.numColors===o.numColors&&r.numNumbers>=o.numNumbers?hu(Ud(r.values,o.values),n):(Yu(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),n=>`${n>0?t:e}`)},Xd=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},qd=(e,t)=>n=>Od(e,t,n);function Kd(e,t,n){const r=[],o=n||("number"==typeof(i=e[0])?qd:"string"==typeof i?Dd.test(i)?Id:Yd:Array.isArray(i)?Ud:"object"==typeof i?zd:qd);var i;const s=e.length-1;for(let a=0;a<s;a++){let n=o(e[a],e[a+1]);if(t){const e=Array.isArray(t)?t[a]||_u:t;n=hu(e,n)}r.push(n)}return r}function Gd(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(Xu(i===t.length,"Both input and output ranges must be the same length"),1===i)return()=>t[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=Kd(t,r,o),a=s.length,c=t=>{let n=0;if(a>1)for(;n<e.length-2&&!(t<e[n+1]);n++);const r=Xd(e[n],e[n+1],t);return s[n](r)};return n?t=>c(fl(e[0],e[i-1],t)):c}function Zd(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Xd(0,t,r);e.push(Od(n,1,o))}}(t,e.length-1),t}function Jd({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=fd(r)?r.map(Ed):Ed(r),i={done:!1,value:t[0]},s=function(e,t){return e.map((e=>e*t))}(n&&n.length===t.length?n:Zd(t),e),a=Gd(s,t,{ease:Array.isArray(o)?o:(c=t,l=o,c.map((()=>l||dd)).splice(0,c.length-1))});var c,l;return{calculatedDuration:e,next:t=>(i.value=a(t),i.done=t>=e,i)}}function Qd(e,t){return t?e*(1e3/t):0}const ef=5;function tf(e,t,n){const r=Math.max(t-ef,0);return Qd(n-e(r),t-r)}const nf=.001,rf=.01,of=10,sf=.05,af=1;function cf({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;Yu(e<=qu(of),"Spring duration must be 10 seconds or less");let s=1-t;s=fl(sf,af,s),e=fl(rf,of,Ku(e)),s<1?(o=t=>{const r=t*s,o=r*e,i=r-n,a=uf(t,s),c=Math.exp(-o);return nf-i/a*c},i=t=>{const r=t*s*e,i=r*n+n,a=Math.pow(s,2)*Math.pow(t,2)*e,c=Math.exp(-r),l=uf(Math.pow(t,2),s);return(-o(t)+nf>0?-1:1)*((i-a)*c)/l}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-nf,i=t=>Math.exp(-t*e)*(e*e*(n-t)));const a=function(e,t,n){let r=n;for(let o=1;o<lf;o++)r-=e(r)/t(r);return r}(o,i,5/e);if(e=qu(e),isNaN(a))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(a,2)*r;return{stiffness:t,damping:2*s*Math.sqrt(r*t),duration:e}}}const lf=12;function uf(e,t){return e*Math.sqrt(1-t*t)}const df=["duration","bounce"],ff=["stiffness","damping","mass"];function pf(e,t){return t.some((t=>void 0!==e[t]))}function hf({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],s={done:!1,value:o},{stiffness:a,damping:c,mass:l,velocity:u,duration:d,isResolvedFromDuration:f}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!pf(e,ff)&&pf(e,df)){const n=cf(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}(r),p=u?-Ku(u):0,h=c/(2*Math.sqrt(a*l)),m=i-o,v=Ku(Math.sqrt(a/l)),g=Math.abs(m)<5;let y;if(n||(n=g?.01:2),t||(t=g?.005:.5),h<1){const e=uf(v,h);y=t=>{const n=Math.exp(-h*v*t);return i-n*((p+h*v*m)/e*Math.sin(e*t)+m*Math.cos(e*t))}}else if(1===h)y=e=>i-Math.exp(-v*e)*(m+(p+v*m)*e);else{const e=v*Math.sqrt(h*h-1);y=t=>{const n=Math.exp(-h*v*t),r=Math.min(e*t,300);return i-n*((p+h*v*m)*Math.sinh(r)+e*m*Math.cosh(r))/e}}return{calculatedDuration:f&&d||null,next:e=>{const r=y(e);if(f)s.done=e>=d;else{let o=p;0!==e&&(o=h<1?tf(y,e,r):0);const a=Math.abs(o)<=n,c=Math.abs(i-r)<=t;s.done=a&&c}return s.value=s.done?i:r,s}}}function mf({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:c,restDelta:l=.5,restSpeed:u}){const d=e[0],f={done:!1,value:d},p=e=>void 0===a?c:void 0===c||Math.abs(a-e)<Math.abs(c-e)?a:c;let h=n*t;const m=d+h,v=void 0===s?m:s(m);v!==m&&(h=v-d);const g=e=>-h*Math.exp(-e/r),y=e=>v+g(e),b=e=>{const t=g(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?v:n};let w,x;const E=e=>{var t;(t=f.value,void 0!==a&&t<a||void 0!==c&&t>c)&&(w=e,x=hf({keyframes:[f.value,p(f.value)],velocity:tf(y,e,f.value),damping:o,stiffness:i,restDelta:l,restSpeed:u}))};return E(0),{calculatedDuration:null,next:e=>{let t=!1;return x||void 0!==w||(t=!0,b(e),E(e)),void 0!==w&&e>w?x.next(e-w):(!t&&b(e),f)}}}const vf=e=>{const t=({timestamp:t})=>e(t);return{start:()=>Tu.update(t,!0),stop:()=>Ru.update(t),now:()=>xu.isProcessing?xu.timestamp:performance.now()}},gf={decay:mf,inertia:mf,tween:Jd,keyframes:Jd,spring:hf},yf=2e4;function bf(e){let t=0;let n=e.next(t);for(;!n.done&&t<yf;)t+=50,n=e.next(t);return t>=yf?1/0:t}function wf({autoplay:e=!0,delay:t=0,driver:n=vf,keyframes:r,type:o="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:a="loop",onPlay:c,onStop:l,onComplete:u,onUpdate:d,...f}){let p,h,m=1,v=!1;const g=()=>{p&&p(),h=new Promise((e=>{p=e}))};let y;g();const b=gf[o]||Jd;let w;b!==Jd&&"number"!=typeof r[0]&&(w=Gd([0,100],r,{clamp:!1}),r=[0,100]);const x=b({...f,keyframes:r});let E;"mirror"===a&&(E=b({...f,keyframes:[...r].reverse(),velocity:-(f.velocity||0)}));let S="idle",P=null,C=null,T=null;null===x.calculatedDuration&&i&&(x.calculatedDuration=bf(x));const{calculatedDuration:R}=x;let A=1/0,D=1/0;null!==R&&(A=R+s,D=A*(i+1)-s);let O=0;const k=e=>{if(null===C)return;m>0&&(C=Math.min(C,e)),O=null!==P?P:(e-C)*m;const n=O-t,o=n<0;O=Math.max(n,0),"finished"===S&&null===P&&(O=D);let c=O,l=x;if(i){const e=O/A;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,i+1);const r=Boolean(t%2);r&&("reverse"===a?(n=1-n,s&&(n-=s/A)):"mirror"===a&&(l=E));let o=fl(0,1,n);O>D&&(o="reverse"===a&&r?1:0),c=o*A}const u=o?{done:!1,value:r[0]}:l.next(c);w&&(u.value=w(u.value));let{done:f}=u;o||null===R||(f=O>=D);const p=null===P&&("finished"===S||"running"===S&&f||m<0&&O<=0);return d&&d(u.value),p&&_(),u},L=()=>{y&&y.stop(),y=void 0},M=()=>{S="idle",L(),g(),C=T=null},_=()=>{S="finished",u&&u(),L(),g()},I=()=>{if(v)return;y||(y=n(k));const e=y.now();c&&c(),S="running",null!==P?C=e-P:C||(C=e),T=C,P=null,y.start()};e&&I();const V={then:(e,t)=>h.then(e,t),get time(){return Ku(O)},set time(e){e=qu(e),O=e,null===P&&y&&0!==m?C=y.now()-e/m:P=e},get duration(){const e=null===x.calculatedDuration?bf(x):x.calculatedDuration;return Ku(e)},get speed(){return m},set speed(e){e!==m&&y&&(m=e,V.time=Ku(O))},get state(){return S},play:I,pause:()=>{S="paused",P=O},stop:()=>{v=!0,"idle"!==S&&(S="idle",l&&l(),M())},cancel:()=>{null!==T&&k(T),M()},complete:()=>{S="finished"},sample:e=>(C=0,k(e))};return V}const xf=new Set(["opacity","clipPath","filter","transform","backgroundColor"]);function Ef(e,t,{onUpdate:n,onComplete:r,...o}){if(!(od.waapi()&&xf.has(t)&&!o.repeatDelay&&"mirror"!==o.repeatType&&0!==o.damping&&"inertia"!==o.type))return!1;let i,s,a=!1;const c=()=>{s=new Promise((e=>{i=e}))};c();let{keyframes:l,duration:u=300,ease:d}=o;if(((e,t)=>"spring"===t.type||"backgroundColor"===e||!Ju(t.ease))(t,o)){const e=wf({...o,repeat:0,delay:0});let t={done:!1,value:l[0]};const n=[];let r=0;for(;!t.done&&r<2e4;)t=e.sample(r),n.push(t.value),r+=10;l=n,u=r-10,d="linear"}const f=function(e,t,n,{delay:r=0,duration:o,repeat:i=0,repeatType:s="loop",ease:a,times:c}={}){const l={[t]:n};c&&(l.offset=c);const u=td(a);return Array.isArray(u)&&(l.easing=u),e.animate(l,{delay:r,duration:o,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:"reverse"===s?"alternate":"normal"})}(e.owner.current,t,l,{...o,duration:u,ease:d}),p=()=>{Tu.update((()=>f.cancel())),i(),c()};return f.onfinish=()=>{e.set(function(e,{repeat:t,repeatType:n="loop"}){return e[t&&"loop"!==n&&t%2==1?0:e.length-1]}(l,o)),r&&r(),p()},{then:(e,t)=>s.then(e,t),get time(){return Ku(f.currentTime||0)},set time(e){f.currentTime=qu(e)},get speed(){return f.playbackRate},set speed(e){f.playbackRate=e},get duration(){return Ku(u)},play:()=>{a||f.play()},pause:()=>f.pause(),stop:()=>{if(a=!0,"idle"===f.playState)return;const{currentTime:t}=f;if(t){const n=wf({...o,autoplay:!1});e.setWithVelocity(n.sample(t-10).value,n.sample(t).value,10)}p()},complete:()=>f.finish(),cancel:p}}const Sf={type:"spring",stiffness:500,damping:25,restSpeed:10},Pf={type:"keyframes",duration:.8},Cf={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Tf=(e,{keyframes:t})=>t.length>2?Pf:rl.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:Sf:Cf,Rf=(e,t)=>"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!Wd.test(t)||t.startsWith("url("))),Af=new Set(["brightness","contrast","saturate","opacity"]);function Df(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(gl)||[];if(!r)return e;const o=n.replace(r,"");let i=Af.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const Of=/([a-z-]*)\(.*?\)/g,kf={...Wd,getAnimatableNone:e=>{const t=e.match(Of);return t?t.map(Df).join(" "):e}},Lf={...Dl,color:Dd,backgroundColor:Dd,outlineColor:Dd,fill:Dd,stroke:Dd,borderColor:Dd,borderTopColor:Dd,borderRightColor:Dd,borderBottomColor:Dd,borderLeftColor:Dd,filter:kf,WebkitFilter:kf},Mf=e=>Lf[e];function _f(e,t){let n=Mf(e);return n!==kf&&(n=Wd),n.getAnimatableNone?n.getAnimatableNone(t):void 0}function If(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function Vf(e){return"number"==typeof e?0:_f("",e)}function $f(e,t){return e[t]||e.default||e}const Nf=(e,t,n,r={})=>o=>{const i=$f(r,e)||{},s=i.delay||r.delay||0;let{elapsed:a=0}=r;a-=qu(s);const c=function(e,t,n,r){const o=Rf(t,n);let i=void 0!==r.from?r.from:e.get();if("none"===i&&o&&"string"==typeof n?i=_f(t,n):If(i)&&"string"==typeof n?i=Vf(n):!Array.isArray(n)&&If(n)&&"string"==typeof i&&(n=Vf(i)),Array.isArray(n)){for(let e=0;e<n.length;e++)null===n[e]&&(n[e]=0===e?i:n[e-1]);return n}return[i,n]}(t,e,n,i),l=c[0],u=c[c.length-1],d=Rf(e,l),f=Rf(e,u);Yu(d===f,`You are trying to animate ${e} from "${l}" to "${u}". ${l} is not an animatable value - to enable this animation set ${l} to a value animatable to ${u} via the \`style\` property.`);let p={keyframes:c,velocity:t.getVelocity(),ease:"easeOut",...i,delay:-a,onUpdate:e=>{t.set(e),i.onUpdate&&i.onUpdate(e)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:c,elapsed:l,...u}){return!!Object.keys(u).length}(i)||(p={...p,...Tf(e,p)}),p.duration&&(p.duration=qu(p.duration)),p.repeatDelay&&(p.repeatDelay=qu(p.repeatDelay)),!d||!f||Gu||!1===i.type)return function({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const o=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:_u,pause:_u,stop:_u,then:e=>(e(),Promise.resolve()),cancel:_u,complete:_u});return t?wf({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}(p);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const n=Ef(t,e,p);if(n)return n}return wf(p)};function Ff(e){return Boolean(il(e)&&e.add)}const jf=e=>/^0[^.\s]+$/.test(e);function Bf(e,t){-1===e.indexOf(t)&&e.push(t)}function Wf(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Hf{constructor(){this.subscriptions=[]}add(e){return Bf(this.subscriptions,e),()=>Wf(this.subscriptions,e)}notify(e,t,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let o=0;o<r;o++){const r=this.subscriptions[o];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Uf=new Set;function zf(e,t,n){e||Uf.has(t)||(console.warn(t),n&&console.warn(n),Uf.add(t))}class Yf{constructor(e,t={}){var n;this.version="10.10.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(e,t=!0)=>{this.prev=this.current,this.current=e;const{delta:n,timestamp:r}=xu;this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,Tu.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Tu.postRender(this.velocityCheck),this.velocityCheck=({timestamp:e})=>{e!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n))),this.owner=t.owner}onChange(e){return"production"!==process.env.NODE_ENV&&zf(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new Hf);const n=this.events[e].add(t);return"change"===e?()=>{n(),Tu.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=e,this.timeDelta=n}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Qd(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise((t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Xf(e,t){return new Yf(e,t)}const qf=e=>t=>t.test(e),Kf=[pl,Pl,Sl,El,Tl,Cl,{test:e=>"auto"===e,parse:e=>e}],Gf=e=>Kf.find(qf(e)),Zf=[...Kf,Dd,Wd],Jf=e=>Zf.find(qf(e));function Qf(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Xf(n))}function ep(e,t){if(!t)return;return(t[e]||t.default||t).from}function tp({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function np(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:s,...a}=e.makeTargetAnimatable(t);const c=e.getValue("willChange");r&&(i=r);const l=[],u=o&&e.animationState&&e.animationState.getState()[o];for(const d in a){const t=e.getValue(d),r=a[d];if(!t||void 0===r||u&&tp(u,d))continue;const o={delay:n,elapsed:0,...i};if(window.HandoffAppearAnimations&&!t.hasAnimated){const n=e.getProps()[zu];n&&(o.elapsed=window.HandoffAppearAnimations(n,d,t,Tu))}t.start(Nf(d,t,r,e.shouldReduceMotion&&rl.has(d)?{type:!1}:o));const s=t.animation;Ff(c)&&(c.add(d),s.then((()=>c.remove(d)))),l.push(s)}return s&&Promise.all(l).then((()=>{s&&function(e,t){const n=Uu(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const s in i)Qf(e,s,nu(i[s]))}(e,s)})),l}function rp(e,t,n={}){const r=Uu(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(np(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(r=0)=>{const{delayChildren:i=0,staggerChildren:s,staggerDirection:a}=o;return function(e,t,n=0,r=0,o=1,i){const s=[],a=(e.variantChildren.size-1)*r,c=1===o?(e=0)=>e*r:(e=0)=>a-e*r;return Array.from(e.variantChildren).sort(op).forEach(((e,r)=>{e.notify("AnimationStart",t),s.push(rp(e,t,{...i,delay:n+c(r)}).then((()=>e.notify("AnimationComplete",t))))})),Promise.all(s)}(e,t,i+r,s,a,n)}:()=>Promise.resolve(),{when:a}=o;if(a){const[e,t]="beforeChildren"===a?[i,s]:[s,i];return e().then((()=>t()))}return Promise.all([i(),s(n.delay)])}function op(e,t){return e.sortNodePosition(t)}const ip=[...Vc].reverse(),sp=Vc.length;function ap(e){return t=>Promise.all(t.map((({animation:t,options:n})=>function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t)){const o=t.map((t=>rp(e,t,n)));r=Promise.all(o)}else if("string"==typeof t)r=rp(e,t,n);else{const o="function"==typeof t?Uu(e,t,n.custom):t;r=Promise.all(np(e,o,n))}return r.then((()=>e.notify("AnimationComplete",t)))}(e,t,n))))}function cp(e){let t=ap(e);const n={animate:up(!0),whileInView:up(),whileHover:up(),whileTap:up(),whileDrag:up(),whileFocus:up(),exit:up()};let r=!0;const o=(t,n)=>{const r=Uu(e,n);if(r){const{transition:e,transitionEnd:n,...o}=r;t={...t,...o,...n}}return t};function i(i,s){const a=e.getProps(),c=e.getVariantContext(!0)||{},l=[],u=new Set;let d={},f=1/0;for(let t=0;t<sp;t++){const p=ip[t],h=n[p],m=void 0!==a[p]?a[p]:c[p],v=_c(m),g=p===s?h.isActive:null;!1===g&&(f=t);let y=m===c[p]&&m!==a[p]&&v;if(y&&r&&e.manuallyAnimateOnMount&&(y=!1),h.protectedKeys={...d},!h.isActive&&null===g||!m&&!h.prevProp||Ic(m)||"boolean"==typeof m)continue;const b=lp(h.prevProp,m);let w=b||p===s&&h.isActive&&!y&&v||t>f&&v;const x=Array.isArray(m)?m:[m];let E=x.reduce(o,{});!1===g&&(E={});const{prevResolvedValues:S={}}=h,P={...S,...E},C=e=>{w=!0,u.delete(e),h.needsAnimating[e]=!0};for(const e in P){const t=E[e],n=S[e];d.hasOwnProperty(e)||(t!==n?eu(t)&&eu(n)?!Hu(t,n)||b?C(e):h.protectedKeys[e]=!0:void 0!==t?C(e):u.add(e):void 0!==t&&u.has(e)?C(e):h.protectedKeys[e]=!0)}h.prevProp=m,h.prevResolvedValues=E,h.isActive&&(d={...d,...E}),r&&e.blockInitialAnimation&&(w=!1),w&&!y&&l.push(...x.map((e=>({animation:e,options:{type:p,...i}}))))}if(u.size){const t={};u.forEach((n=>{const r=e.getBaseTarget(n);void 0!==r&&(t[n]=r)})),l.push({animation:t})}let p=Boolean(l.length);return r&&!1===a.initial&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,p?t(l):Promise.resolve()}return{animateChanges:i,setActive:function(t,r,o){var s;if(n[t].isActive===r)return Promise.resolve();null===(s=e.variantChildren)||void 0===s||s.forEach((e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)})),n[t].isActive=r;const a=i(o,t);for(const e in n)n[e].protectedKeys={};return a},setAnimateFunction:function(n){t=n(e)},getState:()=>n}}function lp(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!Hu(t,e)}function up(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let dp=0;const fp={animation:{Feature:class extends wu{constructor(e){super(e),e.animationState||(e.animationState=cp(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),Ic(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends wu{constructor(){super(...arguments),this.id=dp++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t,custom:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;const o=this.node.animationState.setActive("exit",!e,{custom:null!=n?n:this.node.getProps().custom});t&&!e&&o.then((()=>t(this.id)))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}},pp=(e,t)=>Math.abs(e-t);class hp{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;const e=gp(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=pp(e.x,t.x),r=pp(e.y,t.y);return Math.sqrt(n**2+r**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;const{point:r}=e,{timestamp:o}=xu;this.history.push({...r,timestamp:o});const{onStart:i,onMove:s}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),s&&s(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=mp(t,this.transformPagePoint),Tu.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{if(this.end(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const{onEnd:n,onSessionEnd:r}=this.handlers,o=gp("pointercancel"===e.type?this.lastMoveEventInfo:mp(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),r&&r(e,o)},!lu(e))return;this.handlers=t,this.transformPagePoint=n;const r=mp(uu(e),this.transformPagePoint),{point:o}=r,{timestamp:i}=xu;this.history=[{...o,timestamp:i}];const{onSessionStart:s}=t;s&&s(e,gp(r,this.history)),this.removeListeners=hu(fu(window,"pointermove",this.handlePointerMove),fu(window,"pointerup",this.handlePointerUp),fu(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Ru.update(this.updatePoint)}}function mp(e,t){return t?{point:t(e.point)}:e}function vp(e,t){return{x:e.x-t.x,y:e.y-t.y}}function gp({point:e},t){return{point:e,delta:vp(e,bp(t)),offset:vp(e,yp(t)),velocity:wp(t,.1)}}function yp(e){return e[0]}function bp(e){return e[e.length-1]}function wp(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=bp(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>qu(t)));)n--;if(!r)return{x:0,y:0};const i=Ku(o.timestamp-r.timestamp);if(0===i)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function xp(e){return e.max-e.min}function Ep(e,t=0,n=.01){return Math.abs(e-t)<=n}function Sp(e,t,n,r=.5){e.origin=r,e.originPoint=Od(t.min,t.max,e.origin),e.scale=xp(n)/xp(t),(Ep(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Od(n.min,n.max,e.origin)-e.originPoint,(Ep(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Pp(e,t,n,r){Sp(e.x,t.x,n.x,r?r.originX:void 0),Sp(e.y,t.y,n.y,r?r.originY:void 0)}function Cp(e,t,n){e.min=n.min+t.min,e.max=e.min+xp(t)}function Tp(e,t,n){e.min=t.min-n.min,e.max=e.min+xp(t)}function Rp(e,t,n){Tp(e.x,t.x,n.x),Tp(e.y,t.y,n.y)}function Ap(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 Dp(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}}const Op=.35;function kp(e,t,n){return{min:Lp(e,t),max:Lp(e,n)}}function Lp(e,t){return"number"==typeof e?e:e[t]||0}const Mp=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),_p=()=>({x:{min:0,max:0},y:{min:0,max:0}});function Ip(e){return[e("x"),e("y")]}function Vp({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function $p(e){return void 0===e||1===e}function Np({scale:e,scaleX:t,scaleY:n}){return!$p(e)||!$p(t)||!$p(n)}function Fp(e){return Np(e)||jp(e)||e.z||e.rotate||e.rotateX||e.rotateY}function jp(e){return Bp(e.x)||Bp(e.y)}function Bp(e){return e&&"0%"!==e}function Wp(e,t,n){return n+t*(e-n)}function Hp(e,t,n,r,o){return void 0!==o&&(e=Wp(e,o,r)),Wp(e,n,r)+t}function Up(e,t=0,n=1,r,o){e.min=Hp(e.min,t,n,r,o),e.max=Hp(e.max,t,n,r,o)}function zp(e,{x:t,y:n}){Up(e.x,t.translate,t.scale,t.originPoint),Up(e.y,n.translate,n.scale,n.originPoint)}function Yp(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function Xp(e,t){e.min=e.min+t,e.max=e.max+t}function qp(e,t,[n,r,o]){const i=void 0!==t[o]?t[o]:.5,s=Od(e.min,e.max,i);Up(e,t[n],t[r],s,t.scale)}const Kp=["x","scaleX","originX"],Gp=["y","scaleY","originY"];function Zp(e,t){qp(e.x,t,Kp),qp(e.y,t,Gp)}function Jp(e,t){return Vp(function(e,t){if(!t)return e;const 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))}const Qp=new WeakMap;class eh{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=_p(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;this.panSession=new hp(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(uu(e,"page").point)},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:o}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=yu(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ip((e=>{let t=this.getAxisMotionValue(e).get()||0;if(Sl.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];if(r){t=xp(r)*(parseFloat(t)/100)}}}this.originPoint[e]=t})),o&&Tu.update((()=>o(e,t)));const{animationState:i}=this.visualElement;i&&i.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:o,onDrag:i}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:s}=t;if(r&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let n=null;Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x");return n}(s),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",t.point,s),this.updateAxis("y",t.point,s),this.visualElement.render(),i&&i(e,t)},onSessionEnd:(e,t)=>this.stop(e,t)},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(e,t){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:r}=t;this.startAnimation(r);const{onDragEnd:o}=this.getProps();o&&Tu.update((()=>o(e,t)))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){const{drag:r}=this.getProps();if(!n||!th(e,r,this.currentDirection))return;const o=this.getAxisMotionValue(e);let 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?Od(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?Od(n,e,r.max):Math.min(e,n)),e}(i,this.constraints[e],this.elastic[e])),o.set(i)}resolveConstraints(){const{dragConstraints:e,dragElastic:t}=this.getProps(),{layout:n}=this.visualElement.projection||{},r=this.constraints;e&&Mc(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!n)&&function(e,{top:t,left:n,bottom:r,right:o}){return{x:Ap(e.x,n,o),y:Ap(e.y,t,r)}}(n.layoutBox,e),this.elastic=function(e=Op){return!1===e?e=0:!0===e&&(e=Op),{x:kp(e,"left","right"),y:kp(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&Ip((e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(n.layoutBox[e],this.constraints[e]))}))}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Mc(e))return!1;const n=e.current;Xu(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const o=function(e,t,n){const r=Jp(e,n),{scroll:o}=t;return o&&(Xp(r.x,o.offset.x),Xp(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:Dp(e.x,t.x),y:Dp(e.y,t.y)}}(r.layout.layoutBox,o);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(i));this.hasMutatedConstraints=!!e,e&&(i=Vp(e))}return i}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{},c=Ip((s=>{if(!th(s,t,this.currentDirection))return;let c=a&&a[s]||{};i&&(c={min:0,max:0});const l=r?200:1e6,u=r?40:1e7,d={type:"inertia",velocity:n?e[s]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...o,...c};return this.startAxisValueAnimation(s,d)}));return Promise.all(c).then(s)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return n.start(Nf(e,n,0,t))}stopAnimation(){Ip((e=>this.getAxisMotionValue(e).stop()))}getAxisMotionValue(e){const t="_drag"+e.toUpperCase(),n=this.visualElement.getProps(),r=n[t];return r||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){Ip((t=>{const{drag:n}=this.getProps();if(!th(t,n,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(t);if(r&&r.layout){const{min:n,max:i}=r.layout.layoutBox[t];o.set(e[t]-Od(n,i,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Mc(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};Ip((e=>{const t=this.getAxisMotionValue(e);if(t){const n=t.get();r[e]=function(e,t){let n=.5;const r=xp(e),o=xp(t);return o>r?n=Xd(t.min,t.max-r,e.min):r>o&&(n=Xd(e.min,e.max-o,t.min)),fl(0,1,n)}({min:n,max:n},this.constraints[e])}}));const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Ip((t=>{if(!th(t,e,null))return;const n=this.getAxisMotionValue(t),{min:o,max:i}=this.constraints[t];n.set(Od(o,i,r[t]))}))}addListeners(){if(!this.visualElement.current)return;Qp.set(this.visualElement,this);const e=fu(this.visualElement.current,"pointerdown",(e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)})),t=()=>{const{dragConstraints:e}=this.getProps();Mc(e)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),t();const o=cu(window,"resize",(()=>this.scalePositionWithinConstraints())),i=n.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Ip((t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))})),this.visualElement.render())}));return()=>{o(),e(),r(),i&&i()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:i=Op,dragMomentum:s=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:s}}}function th(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const nh=e=>(t,n)=>{e&&Tu.update((()=>e(t,n)))};function rh(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const oh={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!Pl.test(e))return e;e=parseFloat(e)}return`${rh(e,t.target.x)}% ${rh(e,t.target.y)}%`}},ih=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;const sh=4;function ah(e,t,n=1){Xu(n<=sh,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,o]=function(e){const t=ih.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);return i?i.trim():ul(o)?ah(o,t,n+1):o}const ch="_$css",lh={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=e.includes("var("),i=[];o&&(e=e.replace(ih,(e=>(i.push(e),ch))));const s=Wd.parse(e);if(s.length>5)return r;const a=Wd.createTransformer(e),c="number"!=typeof s[0]?1:0,l=n.x.scale*t.x,u=n.y.scale*t.y;s[0+c]/=l,s[1+c]/=u;const d=Od(l,u,.5);"number"==typeof s[2+c]&&(s[2+c]/=d),"number"==typeof s[3+c]&&(s[3+c]/=d);let f=a(s);if(o){let e=0;f=f.replace(ch,(()=>{const t=i[e];return e++,t}))}return f}};class uh extends e.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=e;var i;i=fh,Object.assign(tl,i),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()})),zc.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{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()||Tu.postRender((()=>{const e=i.getStack();e&&e.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function dh(t){const[n,r]=function(){const t=e.useContext(Dc);if(null===t)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,i=e.useId();return e.useEffect((()=>o(i)),[]),!n&&r?[!1,()=>r&&r(i)]:[!0]}(),o=e.useContext(Xc);return e.createElement(uh,{...t,layoutGroup:o,switchLayoutGroup:e.useContext(qc),isPresent:n,safeToRemove:r})}const fh={borderRadius:{...oh,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:oh,borderTopRightRadius:oh,borderBottomLeftRadius:oh,borderBottomRightRadius:oh,boxShadow:lh},ph=["TopLeft","TopRight","BottomLeft","BottomRight"],hh=ph.length,mh=e=>"string"==typeof e?parseFloat(e):e,vh=e=>"number"==typeof e||Pl.test(e);function gh(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const yh=wh(0,.5,vd),bh=wh(.5,.95,_u);function wh(e,t,n){return r=>r<e?0:r>t?1:n(Xd(e,t,r))}function xh(e,t){e.min=t.min,e.max=t.max}function Eh(e,t){xh(e.x,t.x),xh(e.y,t.y)}function Sh(e,t,n,r,o){return e=Wp(e-=t,1/n,r),void 0!==o&&(e=Wp(e,1/o,r)),e}function Ph(e,t,[n,r,o],i,s){!function(e,t=0,n=1,r=.5,o,i=e,s=e){Sl.test(t)&&(t=parseFloat(t),t=Od(s.min,s.max,t/100)-s.min);if("number"!=typeof t)return;let a=Od(i.min,i.max,r);e===i&&(a-=t),e.min=Sh(e.min,t,n,a,o),e.max=Sh(e.max,t,n,a,o)}(e,t[n],t[r],t[o],t.scale,i,s)}const Ch=["x","scaleX","originX"],Th=["y","scaleY","originY"];function Rh(e,t,n,r){Ph(e.x,t,Ch,n?n.x:void 0,r?r.x:void 0),Ph(e.y,t,Th,n?n.y:void 0,r?r.y:void 0)}function Ah(e){return 0===e.translate&&1===e.scale}function Dh(e){return Ah(e.x)&&Ah(e.y)}function Oh(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}function kh(e){return xp(e.x)/xp(e.y)}class Lh{constructor(){this.members=[]}add(e){Bf(this.members,e),e.scheduleRender()}remove(e){if(Wf(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex((t=>e===t));if(0===t)return!1;let n;for(let r=t;r>=0;r--){const e=this.members[r];if(!1!==e.isPresent){n=e;break}}return!!n&&(this.promote(n),!0)}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:r}=e.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach((e=>{const{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((e=>{e.instance&&e.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Mh(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(r=`translate3d(${o}px, ${i}px, 0) `),1===t.x&&1===t.y||(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:e,rotateX:t,rotateY:o}=n;e&&(r+=`rotate(${e}deg) `),t&&(r+=`rotateX(${t}deg) `),o&&(r+=`rotateY(${o}deg) `)}const s=e.x.scale*t.x,a=e.y.scale*t.y;return 1===s&&1===a||(r+=`scale(${s}, ${a})`),r||"none"}const _h=(e,t)=>e.depth-t.depth;class Ih{constructor(){this.children=[],this.isDirty=!1}add(e){Bf(this.children,e),this.isDirty=!0}remove(e){Wf(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(_h),this.isDirty=!1,this.children.forEach(e)}}const Vh=["","X","Y","Z"];let $h=0;const Nh={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Fh({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(e,n={},r=(null==t?void 0:t())){this.id=$h++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{var e;Nh.totalNodes=Nh.resolvedTargetDeltas=Nh.recalculatedProjection=0,this.nodes.forEach(Wh),this.nodes.forEach(qh),this.nodes.forEach(Kh),this.nodes.forEach(Hh),e=Nh,window.MotionDebug&&window.MotionDebug.record(e)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.elementId=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 t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new Ih)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Hf),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}registerPotentialNode(e,t){this.potentialNodes.set(e,t)}mount(t,n=!1){if(this.instance)return;var r;this.isSVG=(r=t)instanceof SVGElement&&"svg"!==r.tagName,this.instance=t;const{layoutId:o,layout:i,visualElement:s}=this.options;if(s&&!s.current&&s.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.elementId&&this.root.potentialNodes.delete(this.elementId),n&&(i||o)&&(this.isLayoutDirty=!0),e){let n;const r=()=>this.root.updateBlockedByResize=!1;e(t,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){const n=performance.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(Ru.read(r),e(i-t))};return Tu.read(r,!0),()=>Ru.read(r)}(r,250),zc.hasAnimatedSinceResize&&(zc.hasAnimatedSinceResize=!1,this.nodes.forEach(Xh))}))}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&s&&(o||i)&&this.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const o=this.options.transition||s.getDefaultTransition()||tm,{onLayoutAnimationStart:i,onLayoutAnimationComplete:a}=s.getProps(),c=!this.targetLayout||!Oh(this.targetLayout,r)||n,l=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,l);const t={...$f(o,"layout"),onPlay:i,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||0!==this.animationProgress||Xh(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Ru.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Gh),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let o=0;o<this.path.length;o++){const e=this.path[o];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}const{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;const r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}didUpdate(){if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(zh);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(nm),this.potentialNodes.clear()),this.nodes.forEach(Yh),this.nodes.forEach(jh),this.nodes.forEach(Bh),this.clearAllSnapshots(),Au.update(),Au.preRender(),Au.render())}clearAllSnapshots(){this.nodes.forEach(Uh),this.sharedNodes.forEach(Zh)}scheduleUpdateProjection(){Tu.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){Tu.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let n=0;n<this.path.length;n++){this.path[n].updateScroll()}const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=_p(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&(this.scroll={animationId:this.root.animationId,phase:e,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!o)return;const e=this.isLayoutDirty||this.shouldResetTransform,t=this.projectionDelta&&!Dh(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;e&&(t||Fp(this.latestValues)||i)&&(o(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let n=this.removeElementScroll(t);var r;return e&&(n=this.removeTransform(n)),rm((r=n).x),rm(r.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:e}=this.options;if(!e)return _p();const t=e.measureViewportBox(),{scroll:n}=this.root;return n&&(Xp(t.x,n.offset.x),Xp(t.y,n.offset.y)),t}removeElementScroll(e){const t=_p();Eh(t,e);for(let n=0;n<this.path.length;n++){const r=this.path[n],{scroll:o,options:i}=r;if(r!==this.root&&o&&i.layoutScroll){if(o.isRoot){Eh(t,e);const{scroll:n}=this.root;n&&(Xp(t.x,-n.offset.x),Xp(t.y,-n.offset.y))}Xp(t.x,o.offset.x),Xp(t.y,o.offset.y)}}return t}applyTransform(e,t=!1){const n=_p();Eh(n,e);for(let r=0;r<this.path.length;r++){const e=this.path[r];!t&&e.options.layoutScroll&&e.scroll&&e!==e.root&&Zp(n,{x:-e.scroll.offset.x,y:-e.scroll.offset.y}),Fp(e.latestValues)&&Zp(n,e.latestValues)}return Fp(this.latestValues)&&Zp(n,this.latestValues),n}removeTransform(e){const t=_p();Eh(t,e);for(let n=0;n<this.path.length;n++){const e=this.path[n];if(!e.instance)continue;if(!Fp(e.latestValues))continue;Np(e.latestValues)&&e.updateSnapshot();const r=_p();Eh(r,e.measurePageBox()),Rh(t,e.latestValues,e.snapshot?e.snapshot.layoutBox:void 0,r)}return Fp(this.latestValues)&&Rh(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}resolveTargetDelta(e=!1){var t;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const r=Boolean(this.resumingFrom)||this!==n;if(!(e||r&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;const{layout:o,layoutId:i}=this.options;if(this.layout&&(o||i)){if(this.resolvedRelativeTargetAt=xu.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout?(this.relativeParent=e,this.relativeTarget=_p(),this.relativeTargetOrigin=_p(),Rp(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),Eh(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var s,a,c;if(this.target||(this.target=_p(),this.targetWithTransforms=_p()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.relativeParent.resolvedRelativeTargetAt!==xu.timestamp&&this.relativeParent.resolveTargetDelta(!0),s=this.target,a=this.relativeTarget,c=this.relativeParent.target,Cp(s.x,a.x,c.x),Cp(s.y,a.y,c.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Eh(this.target,this.layout.layoutBox),zp(this.target,this.targetDelta)):Eh(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target?(this.relativeParent=e,this.relativeTarget=_p(),this.relativeTargetOrigin=_p(),Rp(this.relativeTargetOrigin,this.target,e.target),Eh(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Nh.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!Np(this.parent.latestValues)&&!jp(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;const t=this.getLead(),n=Boolean(this.resumingFrom)||this!==t;let r=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===xu.timestamp&&(r=!1),r)return;const{layout:o,layoutId:i}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!o&&!i)return;Eh(this.layoutCorrected,this.layout.layoutBox),function(e,t,n,r=!1){const o=n.length;if(!o)return;let i,s;t.x=t.y=1;for(let a=0;a<o;a++){i=n[a],s=i.projectionDelta;const o=i.instance;o&&o.style&&"contents"===o.style.display||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Zp(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,zp(e,s)),r&&Fp(i.latestValues)&&Zp(e,i.latestValues))}t.x=Yp(t.x),t.y=Yp(t.y)}(this.layoutCorrected,this.treeScale,this.path,n);const{target:s}=t;if(!s)return;this.projectionDelta||(this.projectionDelta=Mp(),this.projectionDeltaWithTransform=Mp());const a=this.treeScale.x,c=this.treeScale.y,l=this.projectionTransform;Pp(this.projectionDelta,this.layoutCorrected,s,this.latestValues),this.projectionTransform=Mh(this.projectionDelta,this.treeScale),this.projectionTransform===l&&this.treeScale.x===a&&this.treeScale.y===c||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",s)),Nh.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(e,t=!1){const n=this.snapshot,r=n?n.latestValues:{},o={...this.latestValues},i=Mp();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const s=_p(),a=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),c=this.getStack(),l=!c||c.members.length<=1,u=Boolean(a&&!l&&!0===this.options.crossfade&&!this.path.some(em));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;var c,f,p,h;Jh(i.x,e.x,n),Jh(i.y,e.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Rp(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox),c=this.relativeTarget,f=this.relativeTargetOrigin,p=s,h=n,Qh(c.x,f.x,p.x,h),Qh(c.y,f.y,p.y,h),d&&Oh(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||(d=_p()),Eh(d,this.relativeTarget)),a&&(this.animationValues=o,function(e,t,n,r,o,i){o?(e.opacity=Od(0,void 0!==n.opacity?n.opacity:1,yh(r)),e.opacityExit=Od(void 0!==t.opacity?t.opacity:1,0,bh(r))):i&&(e.opacity=Od(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let s=0;s<hh;s++){const o=`border${ph[s]}Radius`;let i=gh(t,o),a=gh(n,o);void 0===i&&void 0===a||(i||(i=0),a||(a=0),0===i||0===a||vh(i)===vh(a)?(e[o]=Math.max(Od(mh(i),mh(a),r),0),(Sl.test(a)||Sl.test(i))&&(e[o]+="%")):e[o]=a)}(t.rotate||n.rotate)&&(e.rotate=Od(t.rotate||0,n.rotate||0,r))}(o,r,this.latestValues,n,u,l)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Ru.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Tu.update((()=>{zc.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const r=il(e)?e:Xf(e);return r.start(Nf("",r,t,n)),r.animation}(0,1e3,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:r,latestValues:o}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&om(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||_p();const t=xp(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=xp(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}Eh(t,n),Zp(t,o),Pp(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Lh);this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){const r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(t=!0),!t)return;const r={};for(let o=0;o<Vh.length;o++){const t="rotate"+Vh[o];n[t]&&(r[t]=n[t],e.setStaticValue(t,0))}e.render();for(const o in r)e.setStaticValue(o,r[o]);e.scheduleRender()}getProjectionStyles(e={}){var t,n;const r={};if(!this.instance||this.isSVG)return r;if(!this.isVisible)return{visibility:"hidden"};r.visibility="";const o=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=ru(e.pointerEvents)||"",r.transform=o?o(this.latestValues,""):"none",r;const i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=ru(e.pointerEvents)||""),this.hasProjected&&!Fp(this.latestValues)&&(t.transform=o?o({},""):"none",this.hasProjected=!1),t}const s=i.animationValues||i.latestValues;this.applyTransformsToTarget(),r.transform=Mh(this.projectionDeltaWithTransform,this.treeScale,s),o&&(r.transform=o(s,r.transform));const{x:a,y:c}=this.projectionDelta;r.transformOrigin=`${100*a.origin}% ${100*c.origin}% 0`,i.animationValues?r.opacity=i===this?null!==(n=null!==(t=s.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:r.opacity=i===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0;for(const l in tl){if(void 0===s[l])continue;const{correct:e,applyTo:t}=tl[l],n="none"===r.transform?s[l]:e(s[l],i);if(t){const e=t.length;for(let o=0;o<e;o++)r[t[o]]=n}else r[l]=n}return this.options.layoutId&&(r.pointerEvents=i===this?ru(e.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(zh),this.root.sharedNodes.clear()}}}function jh(e){e.updateLayout()}function Bh(e){var t;const n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:r}=e.layout,{animationType:o}=e.options,i=n.source!==e.layout.source;"size"===o?Ip((e=>{const r=i?n.measuredBox[e]:n.layoutBox[e],o=xp(r);r.min=t[e].min,r.max=r.min+o})):om(o,n.layoutBox,t)&&Ip((r=>{const o=i?n.measuredBox[r]:n.layoutBox[r],s=xp(t[r]);o.max=o.min+s,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+s)}));const s=Mp();Pp(s,t,n.layoutBox);const a=Mp();i?Pp(a,e.applyTransform(r,!0),n.measuredBox):Pp(a,t,n.layoutBox);const c=!Dh(s);let l=!1;if(!e.resumeFrom){const r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:o,layout:i}=r;if(o&&i){const s=_p();Rp(s,n.layoutBox,o.layoutBox);const a=_p();Rp(a,t,i.layoutBox),Oh(s,a)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=a,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:a,layoutDelta:s,hasLayoutChanged:c,hasRelativeTargetChanged:l})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function Wh(e){Nh.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Hh(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Uh(e){e.clearSnapshot()}function zh(e){e.clearMeasurements()}function Yh(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Xh(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function qh(e){e.resolveTargetDelta()}function Kh(e){e.calcProjection()}function Gh(e){e.resetRotation()}function Zh(e){e.removeLeadSnapshot()}function Jh(e,t,n){e.translate=Od(t.translate,0,n),e.scale=Od(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Qh(e,t,n,r){e.min=Od(t.min,n.min,r),e.max=Od(t.max,n.max,r)}function em(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const tm={duration:.45,ease:[.4,0,.1,1]};function nm(e,t){let n=e.root;for(let o=e.path.length-1;o>=0;o--)if(Boolean(e.path[o].instance)){n=e.path[o];break}const r=(n&&n!==e.root?n.instance:document).querySelector(`[data-projection-id="${t}"]`);r&&e.mount(r,!0)}function rm(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function om(e,t,n){return"position"===e||"preserve-aspect"===e&&!Ep(kh(t),kh(n),.2)}const im=Fh({attachResizeListener:(e,t)=>cu(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),sm={current:void 0},am=Fh({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!sm.current){const e=new im(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),sm.current=e}return sm.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),cm={pan:{Feature:class extends wu{constructor(){super(...arguments),this.removePointerDownListener=_u}onPointerDown(e){this.session=new hp(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:nh(e),onStart:nh(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&Tu.update((()=>r(e,t)))}}}mount(){this.removePointerDownListener=fu(this.node.current,"pointerdown",(e=>this.onPointerDown(e)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends wu{constructor(e){super(e),this.removeGroupControls=_u,this.removeListeners=_u,this.controls=new eh(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||_u}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:am,MeasureLayout:dh}},lm=new Set(["width","height","top","left","right","bottom","x","y"]),um=e=>lm.has(e),dm=e=>e===pl||e===Pl,fm=(e,t)=>parseFloat(e.split(", ")[t]),pm=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return fm(o[1],t);{const t=r.match(/^matrix\((.+)\)$/);return t?fm(t[1],e):0}},hm=new Set(["x","y","z"]),mm=nl.filter((e=>!hm.has(e)));const vm={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:pm(4,13),y:pm(5,14)},gm=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(um);let i=[],s=!1;const a=[];if(o.forEach((o=>{const c=e.getValue(o);if(!e.hasValue(o))return;let l=n[o],u=Gf(l);const d=t[o];let f;if(eu(d)){const e=d.length,t=null===d[0]?1:0;l=d[t],u=Gf(l);for(let n=t;n<e;n++)f?Xu(Gf(d[n])===f,"All keyframes must be of the same type"):(f=Gf(d[n]),Xu(f===u||dm(u)&&dm(f),"Keyframes must be of the same dimension as the current value"))}else f=Gf(d);if(u!==f)if(dm(u)&&dm(f)){const e=c.get();"string"==typeof e&&c.set(parseFloat(e)),"string"==typeof d?t[o]=parseFloat(d):Array.isArray(d)&&f===Pl&&(t[o]=d.map(parseFloat))}else(null==u?void 0:u.transform)&&(null==f?void 0:f.transform)&&(0===l||0===d)?0===l?c.set(f.transform(l)):t[o]=u.transform(d):(s||(i=function(e){const t=[];return mm.forEach((n=>{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t.length&&e.render(),t}(e),s=!0),a.push(o),r[o]=void 0!==r[o]?r[o]:t[o],c.jump(d))})),a.length){const n=a.indexOf("height")>=0?window.pageYOffset:null,o=((e,t,n)=>{const r=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:s}=i,a={};"none"===s&&t.setStaticValue("display",e.display||"block"),n.forEach((e=>{a[e]=vm[e](r,i)})),t.render();const c=t.measureViewportBox();return n.forEach((n=>{const r=t.getValue(n);r&&r.jump(a[n]),e[n]=vm[n](c,i)})),e})(t,e,a);return i.length&&i.forEach((([t,n])=>{e.getValue(t).set(n)})),e.render(),Oc&&null!==n&&window.scrollTo({top:n}),{target:o,transitionEnd:r}}return{target:t,transitionEnd:r}};function ym(e,t,n,r){return(e=>Object.keys(e).some(um))(t)?gm(e,t,n,r):{target:t,transitionEnd:r}}const bm=(e,t,n,r)=>{const o=function(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach((e=>{const t=e.get();if(!ul(t))return;const n=ah(t,r);n&&e.set(n)}));for(const o in t){const e=t[o];if(!ul(e))continue;const i=ah(e,r);i&&(t[o]=i,n||(n={}),void 0===n[o]&&(n[o]=e))}return{target:t,transitionEnd:n}}(e,t,r);return ym(e,t=o.target,n,r=o.transitionEnd)},wm={current:null},xm={current:!1};const Em=new WeakMap,Sm=Object.keys(Hc),Pm=Sm.length,Cm=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Tm=$c.length;class Rm{constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,visualState:o},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Tu.render(this.render,!1,!0);const{latestValues:s,renderState:a}=o;this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=a,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=i,this.isControllingVariants=Nc(t),this.isVariantNode=Fc(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:c,...l}=this.scrapeMotionValuesFromProps(t,{});for(const u in l){const e=l[u];void 0!==s[u]&&il(e)&&(e.set(s[u],!1),Ff(c)&&c.add(u))}}scrapeMotionValuesFromProps(e,t){return{}}mount(e){this.current=e,Em.set(e,this),this.projection&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((e,t)=>this.bindToMotionValue(t,e))),xm.current||function(){if(xm.current=!0,Oc)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>wm.current=e.matches;e.addListener(t),t()}else wm.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||wm.current),"production"!==process.env.NODE_ENV&&zf(!0!==this.shouldReduceMotion,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Em.delete(this.current),this.projection&&this.projection.unmount(),Ru.update(this.notifyUpdate),Ru.render(this.render),this.valueSubscriptions.forEach((e=>e())),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,t){const n=rl.has(e),r=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&Tu.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)})),o=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,(()=>{r(),o()}))}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...t},n,r,o,i){let s,a;if("production"!==process.env.NODE_ENV&&r&&n){const e="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?Yu(!1,e):Xu(!1,e)}for(let c=0;c<Pm;c++){const e=Sm[c],{isEnabled:n,Feature:r,ProjectionNode:o,MeasureLayout:i}=Hc[e];o&&(s=o),n(t)&&(!this.features[e]&&r&&(this.features[e]=new r(this)),i&&(a=i))}if(!this.projection&&s){this.projection=new s(o,this.latestValues,this.parent&&this.parent.projection);const{layoutId:e,layout:n,drag:r,dragConstraints:a,layoutScroll:c,layoutRoot:l}=t;this.projection.setOptions({layoutId:e,layout:n,alwaysMeasureLayout:Boolean(r)||a&&Mc(a),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:i,layoutScroll:c,layoutRoot:l})}return a}updateFeatures(){for(const e in this.features){const t=this.features[e];t.isMounted?t.update(this.props,this.prevProps):(t.mount(),t.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):_p()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e,t=!0){return this.makeTargetAnimatableFromInstance(e,this.props,t)}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let n=0;n<Cm.length;n++){const t=Cm[n];this.propEventSubscriptions[t]&&(this.propEventSubscriptions[t](),delete this.propEventSubscriptions[t]);const r=e["on"+t];r&&(this.propEventSubscriptions[t]=this.on(t,r))}this.prevMotionValues=function(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],s=n[o];if(il(i))e.addValue(o,i),Ff(r)&&r.add(o),"development"===process.env.NODE_ENV&&zf("10.10.0"===i.version,`Attempting to mix Framer Motion versions ${i.version} with 10.10.0 may not work as expected.`);else if(il(s))e.addValue(o,Xf(i,{owner:e})),Ff(r)&&r.remove(o);else if(s!==i)if(e.hasValue(o)){const t=e.getValue(o);!t.hasAnimated&&t.set(i)}else{const t=e.getStaticValue(o);e.addValue(o,Xf(void 0!==t?t:i,{owner:e}))}}for(const o in n)void 0===t[o]&&e.removeValue(o);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}const t={};for(let n=0;n<Tm;n++){const e=$c[n],r=this.props[e];(_c(r)||!1===r)&&(t[e]=r)}return t}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){t!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,t)),this.values.set(e,t),this.latestValues[e]=t.get()}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=Xf(t,{owner:this}),this.addValue(e,n)),n}readValue(e){return void 0===this.latestValues[e]&&this.current?this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:n}=this.props,r="string"==typeof n||"object"==typeof n?null===(t=Ql(this.props,n))||void 0===t?void 0:t[e]:void 0;if(n&&void 0!==r)return r;const o=this.getBaseTargetFromProps(this.props,e);return void 0===o||il(o)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:o}on(e,t){return this.events[e]||(this.events[e]=new Hf),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class Am extends Rm{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:t,...n},{transformValues:r},o){let i=function(e,t,n){const r={};for(const o in e){const e=ep(o,t);if(void 0!==e)r[o]=e;else{const e=n.getValue(o);e&&(r[o]=e.get())}}return r}(n,e||{},this);if(r&&(t&&(t=r(t)),n&&(n=r(n)),i&&(i=r(i))),o){!function(e,t,n){var r,o;const i=Object.keys(t).filter((t=>!e.hasValue(t))),s=i.length;if(s)for(let a=0;a<s;a++){const s=i[a],c=t[s];let l=null;Array.isArray(c)&&(l=c[0]),null===l&&(l=null!==(o=null!==(r=n[s])&&void 0!==r?r:e.readValue(s))&&void 0!==o?o:t[s]),null!=l&&("string"==typeof l&&(/^\-?\d*\.?\d+$/.test(l)||jf(l))?l=parseFloat(l):!Jf(l)&&Wd.test(c)&&(l=_f(s,c)),e.addValue(s,Xf(l,{owner:e})),void 0===n[s]&&(n[s]=l),null!==l&&e.setBaseTarget(s,l))}}(this,n,i);const e=bm(this,n,i,t);t=e.transitionEnd,n=e.target}return{transition:e,transitionEnd:t,...n}}}class Dm extends Am{readValueFromInstance(e,t){if(rl.has(t)){const e=Mf(t);return e&&e.default||0}{const r=(n=e,window.getComputedStyle(n)),o=(ll(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return Jp(e,t)}build(e,t,n,r){Ol(e,t,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,t){return Zl(e,t)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;il(e)&&(this.childSubscription=e.on("change",(e=>{this.current&&(this.current.textContent=`${e}`)})))}renderInstance(e,t,n,r){ql(e,t,n,r)}}class Om extends Am{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(rl.has(t)){const e=Mf(t);return e&&e.default||0}return t=Kl.has(t)?t:Xl(t),e.getAttribute(t)}measureInstanceViewportBox(){return _p()}scrapeMotionValuesFromProps(e,t){return Jl(e,t)}build(e,t,n,r){Wl(e,t,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,t,n,r){Gl(e,t,0,r)}mount(e){this.isSVGTag=Ul(e.tagName),super.mount(e)}}const km=(e,t)=>el(e)?new Om(t,{enableHardwareAcceleration:!1}):new Dm(t,{enableHardwareAcceleration:!0}),Lm={...fp,...Wu,...cm,...{layout:{ProjectionNode:am,MeasureLayout:dh}}},Mm=Jc(((e,t)=>function(e,{forwardMotionProps:t=!1},n,r){return{...el(e)?su:au,preloadedFeatures:n,useRender:Yl(t),createVisualElement:r,Component:e}}(e,t,Lm,km)));var _m,Im={exports:{}},Vm={exports:{}},$m={};var Nm,Fm,jm,Bm,Wm,Hm,Um,zm,Ym,Xm,qm,Km,Gm,Zm,Jm={};function Qm(){return Fm||(Fm=1,"production"===process.env.NODE_ENV?Vm.exports=function(){if(_m)return $m;_m=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:switch(e=e.type){case c:case l:case r:case i:case o:case d:return e;default:switch(e=e&&e.$$typeof){case a:case u:case h:case p:case s:return e;default:return f}}case n:return f}}}function w(e){return b(e)===l}return $m.AsyncMode=c,$m.ConcurrentMode=l,$m.ContextConsumer=a,$m.ContextProvider=s,$m.Element=t,$m.ForwardRef=u,$m.Fragment=r,$m.Lazy=h,$m.Memo=p,$m.Portal=n,$m.Profiler=i,$m.StrictMode=o,$m.Suspense=d,$m.isAsyncMode=function(e){return w(e)||b(e)===c},$m.isConcurrentMode=w,$m.isContextConsumer=function(e){return b(e)===a},$m.isContextProvider=function(e){return b(e)===s},$m.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},$m.isForwardRef=function(e){return b(e)===u},$m.isFragment=function(e){return b(e)===r},$m.isLazy=function(e){return b(e)===h},$m.isMemo=function(e){return b(e)===p},$m.isPortal=function(e){return b(e)===n},$m.isProfiler=function(e){return b(e)===i},$m.isStrictMode=function(e){return b(e)===o},$m.isSuspense=function(e){return b(e)===d},$m.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===l||e===i||e===o||e===d||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===s||e.$$typeof===a||e.$$typeof===u||e.$$typeof===v||e.$$typeof===g||e.$$typeof===y||e.$$typeof===m)},$m.typeOf=b,$m}():Vm.exports=(Nm||(Nm=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:var m=e.type;switch(m){case c:case l:case r:case i:case o:case d:return m;default:var v=m&&m.$$typeof;switch(v){case a:case u:case h:case p:case s:return v;default:return f}}case n:return f}}}var w=c,x=l,E=a,S=s,P=t,C=u,T=r,R=h,A=p,D=n,O=i,k=o,L=d,M=!1;function _(e){return b(e)===l}Jm.AsyncMode=w,Jm.ConcurrentMode=x,Jm.ContextConsumer=E,Jm.ContextProvider=S,Jm.Element=P,Jm.ForwardRef=C,Jm.Fragment=T,Jm.Lazy=R,Jm.Memo=A,Jm.Portal=D,Jm.Profiler=O,Jm.StrictMode=k,Jm.Suspense=L,Jm.isAsyncMode=function(e){return M||(M=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),_(e)||b(e)===c},Jm.isConcurrentMode=_,Jm.isContextConsumer=function(e){return b(e)===a},Jm.isContextProvider=function(e){return b(e)===s},Jm.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Jm.isForwardRef=function(e){return b(e)===u},Jm.isFragment=function(e){return b(e)===r},Jm.isLazy=function(e){return b(e)===h},Jm.isMemo=function(e){return b(e)===p},Jm.isPortal=function(e){return b(e)===n},Jm.isProfiler=function(e){return b(e)===i},Jm.isStrictMode=function(e){return b(e)===o},Jm.isSuspense=function(e){return b(e)===d},Jm.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===l||e===i||e===o||e===d||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===s||e.$$typeof===a||e.$$typeof===u||e.$$typeof===v||e.$$typeof===g||e.$$typeof===y||e.$$typeof===m)},Jm.typeOf=b}()),Jm)),Vm.exports}function ev(){if(Bm)return jm;Bm=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return jm=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(ny){return!1}}()?Object.assign:function(r,o){for(var i,s,a=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(r),c=1;c<arguments.length;c++){for(var l in i=Object(arguments[c]))t.call(i,l)&&(a[l]=i[l]);if(e){s=e(i);for(var u=0;u<s.length;u++)n.call(i,s[u])&&(a[s[u]]=i[s[u]])}}return a},jm}function tv(){if(Hm)return Wm;Hm=1;return Wm="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function nv(){return zm?Um:(zm=1,Um=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var rv=Qm();Im.exports=function(){if(Km)return qm;Km=1;var e=Qm(),t=ev(),n=tv(),r=nv(),o=function(){if(Xm)return Ym;Xm=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=tv(),n={},r=nv();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(n){}}}function o(o,i,s,a,c){if("production"!==process.env.NODE_ENV)for(var l in o)if(r(o,l)){var u;try{if("function"!=typeof o[l]){var d=Error((a||"React class")+": "+s+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}u=o[l](i,l,a,s,null,t)}catch(p){u=p}if(!u||u instanceof Error||e((a||"React class")+": type specification of "+s+" `"+l+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in n)){n[u.message]=!0;var f=c?c():"";e("Failed "+s+" type: "+u.message+(null!=f?f:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},Ym=o}(),i=function(){};function s(){return null}return"production"!==process.env.NODE_ENV&&(i=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(n){}}),qm=function(a,c){var l="function"==typeof Symbol&&Symbol.iterator,u="@@iterator",d="<<anonymous>>",f={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:m(s),arrayOf:function(e){return m((function(t,r,o,i,s){if("function"!=typeof e)return new h("Property `"+s+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var a=t[r];if(!Array.isArray(a))return new h("Invalid "+i+" `"+s+"` of type `"+b(a)+"` supplied to `"+o+"`, expected an array.");for(var c=0;c<a.length;c++){var l=e(a,c,o,i,s+"["+c+"]",n);if(l instanceof Error)return l}return null}))},element:m((function(e,t,n,r,o){var i=e[t];return a(i)?null:new h("Invalid "+r+" `"+o+"` of type `"+b(i)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:m((function(t,n,r,o,i){var s=t[n];return e.isValidElementType(s)?null:new h("Invalid "+o+" `"+i+"` of type `"+b(s)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(e){return m((function(t,n,r,o,i){if(!(t[n]instanceof e)){var s=e.name||d;return new h("Invalid "+o+" `"+i+"` of type `"+((a=t[n]).constructor&&a.constructor.name?a.constructor.name:d)+"` supplied to `"+r+"`, expected instance of `"+s+"`.")}var a;return null}))},node:m((function(e,t,n,r,o){return y(e[t])?null:new h("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return m((function(t,o,i,s,a){if("function"!=typeof e)return new h("Property `"+a+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var c=t[o],l=b(c);if("object"!==l)return new h("Invalid "+s+" `"+a+"` of type `"+l+"` supplied to `"+i+"`, expected an object.");for(var u in c)if(r(c,u)){var d=e(c,u,i,s,a+"."+u,n);if(d instanceof Error)return d}return null}))},oneOf:function(e){return Array.isArray(e)?m((function(t,n,r,o,i){for(var s=t[n],a=0;a<e.length;a++)if(p(s,e[a]))return null;var c=JSON.stringify(e,(function(e,t){return"symbol"===w(t)?String(t):t}));return new h("Invalid "+o+" `"+i+"` of value `"+String(s)+"` supplied to `"+r+"`, expected one of "+c+".")})):("production"!==process.env.NODE_ENV&&i(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),s)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var t=0;t<e.length;t++){var o=e[t];if("function"!=typeof o)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+x(o)+" at index "+t+"."),s}return m((function(t,o,i,s,a){for(var c=[],l=0;l<e.length;l++){var u=(0,e[l])(t,o,i,s,a,n);if(null==u)return null;u.data&&r(u.data,"expectedType")&&c.push(u.data.expectedType)}return new h("Invalid "+s+" `"+a+"` supplied to `"+i+"`"+(c.length>0?", expected one of type ["+c.join(", ")+"]":"")+".")}))},shape:function(e){return m((function(t,r,o,i,s){var a=t[r],c=b(a);if("object"!==c)return new h("Invalid "+i+" `"+s+"` of type `"+c+"` supplied to `"+o+"`, expected `object`.");for(var l in e){var u=e[l];if("function"!=typeof u)return g(o,i,s,l,w(u));var d=u(a,l,o,i,s+"."+l,n);if(d)return d}return null}))},exact:function(e){return m((function(o,i,s,a,c){var l=o[i],u=b(l);if("object"!==u)return new h("Invalid "+a+" `"+c+"` of type `"+u+"` supplied to `"+s+"`, expected `object`.");var d=t({},o[i],e);for(var f in d){var p=e[f];if(r(e,f)&&"function"!=typeof p)return g(s,a,c,f,w(p));if(!p)return new h("Invalid "+a+" `"+c+"` key `"+f+"` supplied to `"+s+"`.\nBad object: "+JSON.stringify(o[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var m=p(l,f,s,a,c+"."+f,n);if(m)return m}return null}))}};function p(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function h(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function m(e){if("production"!==process.env.NODE_ENV)var t={},r=0;function o(o,s,a,l,u,f,p){if(l=l||d,f=f||a,p!==n){if(c){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var v=l+":"+a;!t[v]&&r<3&&(i("You are manually calling a React.PropTypes validation function for the `"+f+"` prop on `"+l+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[v]=!0,r++)}}return null==s[a]?o?null===s[a]?new h("The "+u+" `"+f+"` is marked as required in `"+l+"`, but its value is `null`."):new h("The "+u+" `"+f+"` is marked as required in `"+l+"`, but its value is `undefined`."):null:e(s,a,l,u,f)}var s=o.bind(null,!1);return s.isRequired=o.bind(null,!0),s}function v(e){return m((function(t,n,r,o,i,s){var a=t[n];return b(a)!==e?new h("Invalid "+o+" `"+i+"` of type `"+w(a)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function g(e,t,n,r,o){return new h((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function y(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(y);if(null===e||a(e))return!0;var t=function(e){var t=e&&(l&&e[l]||e[u]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!y(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!y(o[1]))return!1}return!0;default:return!1}}function b(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function w(e){if(null==e)return""+e;var t=b(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function x(e){var t=w(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return h.prototype=Error.prototype,f.checkPropTypes=o,f.resetWarningCache=o.resetWarningCache,f.PropTypes=f,f},qm}()(rv.isElement,!0)}else Im.exports=function(){if(Zm)return Gm;Zm=1;var e=tv();function t(){}function n(){}return n.resetWarningCache=t,Gm=function(){function r(t,n,r,o,i,s){if(s!==e){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function o(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i}}()();const ov=i(Im.exports);function iv(){return iv=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iv.apply(this,arguments)}function sv(e,t){return(sv=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var av=function(t){var n,r;function o(){return t.apply(this,arguments)||this}r=t,(n=o).prototype=Object.create(r.prototype),n.prototype.constructor=n,sv(n,r);var i=o.prototype;return i.getColumns=function(){var t=this.props,n=t.children,r=t.columnsCount,o=Array.from({length:r},(function(){return[]}));return e.Children.forEach(n,(function(t,n){t&&e.isValidElement(t)&&o[n%r].push(t)})),o},i.renderColumns=function(){var t=this.props.gutter;return this.getColumns().map((function(n,r){return e.createElement("div",{key:r,style:{display:"flex",flexDirection:"column",justifyContent:"flex-start",alignContent:"stretch",flex:1,width:0,gap:t}},n.map((function(e){return e})))}))},i.render=function(){var t=this.props,n=t.gutter,r=t.className,o=t.style;return e.createElement("div",{style:iv({display:"flex",flexDirection:"row",justifyContent:"center",alignContent:"stretch",boxSizing:"border-box",width:"100%",gap:n},o),className:r},this.renderColumns())},o}(e.Component);av.propTypes="production"!==process.env.NODE_ENV?{children:ov.oneOfType([ov.arrayOf(ov.node),ov.node]).isRequired,columnsCount:ov.number,gutter:ov.string,className:ov.string,style:ov.object}:{},av.defaultProps={columnsCount:3,gutter:"0",className:null,style:{}};var cv="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,lv=function(){var t=function(){var t=e.useState(!1),n=t[0],r=t[1];return cv((function(){r(!0)}),[]),n}(),n=e.useState(0),r=n[0],o=n[1],i=e.useCallback((function(){t&&o(window.innerWidth)}),[t]);return cv((function(){if(t)return window.addEventListener("resize",i),i(),function(){return window.removeEventListener("resize",i)}}),[t,i]),r},uv=function(t){var n=t.columnsCountBreakPoints,r=void 0===n?{350:1,750:2,900:3}:n,o=t.children,i=t.className,s=void 0===i?null:i,a=t.style,c=void 0===a?null:a,l=lv(),u=e.useMemo((function(){var e=Object.keys(r).sort((function(e,t){return e-t})),t=e.length>0?r[e[0]]:1;return e.forEach((function(e){e<l&&(t=r[e])})),t}),[l,r]);return e.createElement("div",{className:s,style:c},e.Children.map(o,(function(t,n){return e.cloneElement(t,{key:n,columnsCount:u})})))};uv.propTypes="production"!==process.env.NODE_ENV?{children:ov.oneOfType([ov.arrayOf(ov.node),ov.node]).isRequired,columnsCountBreakPoints:ov.object,className:ov.string,style:ov.object}:{};const[dv,fv]=bo("Tooltip",[aa]),pv=aa(),hv=700,mv="tooltip.open",[vv,gv]=dv("TooltipProvider"),yv="Tooltip",[bv,wv]=dv(yv),xv="TooltipTrigger",Ev=e.forwardRef(((t,n)=>{const{__scopeTooltip:r,...o}=t,i=wv(xv,r),s=gv(xv,r),a=pv(r),c=yo(n,e.useRef(null),i.onTriggerChange),l=e.useRef(!1),u=e.useRef(!1),d=e.useCallback((()=>l.current=!1),[]);return e.useEffect((()=>()=>document.removeEventListener("pointerup",d)),[d]),e.createElement(wa,m({asChild:!0},a),e.createElement(To.button,m({"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute},o,{ref:c,onPointerMove:vo(t.onPointerMove,(e=>{"touch"!==e.pointerType&&(u.current||s.isPointerInTransitRef.current||(i.onTriggerEnter(),u.current=!0))})),onPointerLeave:vo(t.onPointerLeave,(()=>{i.onTriggerLeave(),u.current=!1})),onPointerDown:vo(t.onPointerDown,(()=>{l.current=!0,document.addEventListener("pointerup",d,{once:!0})})),onFocus:vo(t.onFocus,(()=>{l.current||i.onOpen()})),onBlur:vo(t.onBlur,i.onClose),onClick:vo(t.onClick,i.onClose)})))})),Sv="TooltipPortal",[Pv,Cv]=dv(Sv,{forceMount:void 0}),Tv="TooltipContent",Rv=e.forwardRef(((t,n)=>{const r=Cv(Tv,t.__scopeTooltip),{forceMount:o=r.forceMount,side:i="top",...s}=t,a=wv(Tv,t.__scopeTooltip);return e.createElement(ti,{present:o||a.open},a.disableHoverableContent?e.createElement(kv,m({side:i},s,{ref:n})):e.createElement(Av,m({side:i},s,{ref:n})))})),Av=e.forwardRef(((t,n)=>{const r=wv(Tv,t.__scopeTooltip),o=gv(Tv,t.__scopeTooltip),i=e.useRef(null),s=yo(n,i),[a,c]=e.useState(null),{trigger:l,onClose:u}=r,d=i.current,{onPointerInTransitChange:f}=o,p=e.useCallback((()=>{c(null),f(!1)}),[f]),h=e.useCallback(((e,t)=>{const n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=function(e,t,n=5){const 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,function(e,t){const 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 new Error("unreachable")}}(r,n.getBoundingClientRect())),i=function(e){const 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();const t=[];for(let r=0;r<e.length;r++){const n=e[r];for(;t.length>=2;){const e=t[t.length-1],r=t[t.length-2];if(!((e.x-r.x)*(n.y-r.y)>=(e.y-r.y)*(n.x-r.x)))break;t.pop()}t.push(n)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const t=e[r];for(;n.length>=2;){const e=n[n.length-1],r=n[n.length-2];if(!((e.x-r.x)*(t.y-r.y)>=(e.y-r.y)*(t.x-r.x)))break;n.pop()}n.push(t)}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)}([...o,...function(e){const{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())]);c(i),f(!0)}),[f]);return e.useEffect((()=>()=>p()),[p]),e.useEffect((()=>{if(l&&d){const e=e=>h(e,d),t=e=>h(e,l);return l.addEventListener("pointerleave",e),d.addEventListener("pointerleave",t),()=>{l.removeEventListener("pointerleave",e),d.removeEventListener("pointerleave",t)}}}),[l,d,h,p]),e.useEffect((()=>{if(a){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},r=(null==l?void 0:l.contains(t))||(null==d?void 0:d.contains(t)),o=!function(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const e=t[i].x,a=t[i].y,c=t[s].x,l=t[s].y;a>r!=l>r&&n<(c-e)*(r-a)/(l-a)+e&&(o=!o)}return o}(n,a);r?p():o&&(p(),u())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}}),[l,d,a,u,p]),e.createElement(kv,m({},t,{ref:s}))})),[Dv,Ov]=dv(yv,{isInside:!1}),kv=e.forwardRef(((t,n)=>{const{__scopeTooltip:r,children:o,"aria-label":i,onEscapeKeyDown:s,onPointerDownOutside:a,...c}=t,l=wv(Tv,r),u=pv(r),{onClose:d}=l;return e.useEffect((()=>(document.addEventListener(mv,d),()=>document.removeEventListener(mv,d))),[d]),e.useEffect((()=>{if(l.trigger){const e=e=>{const t=e.target;null!=t&&t.contains(l.trigger)&&d()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}}),[l.trigger,d]),e.createElement(Di,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:d},e.createElement(xa,m({"data-state":l.stateAttribute},u,c,{ref:n,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)"}}),e.createElement(So,null,o),e.createElement(Dv,{scope:r,isInside:!0},e.createElement(Ca,{id:l.contentId,role:"tooltip"},i||o))))}));const Lv=t=>{const{__scopeTooltip:n,delayDuration:r=hv,skipDelayDuration:o=300,disableHoverableContent:i=!1,children:s}=t,[a,c]=e.useState(!0),l=e.useRef(!1),u=e.useRef(0);return e.useEffect((()=>{const e=u.current;return()=>window.clearTimeout(e)}),[]),e.createElement(vv,{scope:n,isOpenDelayed:a,delayDuration:r,onOpen:e.useCallback((()=>{window.clearTimeout(u.current),c(!1)}),[]),onClose:e.useCallback((()=>{window.clearTimeout(u.current),u.current=window.setTimeout((()=>c(!0)),o)}),[o]),isPointerInTransitRef:l,onPointerInTransitChange:e.useCallback((e=>{l.current=e}),[]),disableHoverableContent:i},s)},Mv=t=>{const{__scopeTooltip:n,children:r,open:o,defaultOpen:i=!1,onOpenChange:s,disableHoverableContent:a,delayDuration:c}=t,l=gv(yv,t.__scopeTooltip),u=pv(n),[d,f]=e.useState(null),p=ko(),h=e.useRef(0),m=null!=a?a:l.disableHoverableContent,v=null!=c?c:l.delayDuration,g=e.useRef(!1),[y=!1,b]=Mo({prop:o,defaultProp:i,onChange:e=>{e?(l.onOpen(),document.dispatchEvent(new CustomEvent(mv))):l.onClose(),null==s||s(e)}}),w=e.useMemo((()=>y?g.current?"delayed-open":"instant-open":"closed"),[y]),x=e.useCallback((()=>{window.clearTimeout(h.current),g.current=!1,b(!0)}),[b]),E=e.useCallback((()=>{window.clearTimeout(h.current),b(!1)}),[b]),S=e.useCallback((()=>{window.clearTimeout(h.current),h.current=window.setTimeout((()=>{g.current=!0,b(!0)}),v)}),[v,b]);return e.useEffect((()=>()=>window.clearTimeout(h.current)),[]),e.createElement(ba,u,e.createElement(bv,{scope:n,contentId:p,open:y,stateAttribute:w,trigger:d,onTriggerChange:f,onTriggerEnter:e.useCallback((()=>{l.isOpenDelayed?S():x()}),[l.isOpenDelayed,S,x]),onTriggerLeave:e.useCallback((()=>{m?E():window.clearTimeout(h.current)}),[E,m]),onOpen:x,onClose:E,disableHoverableContent:m},r))},_v=Ev,Iv=t=>{const{__scopeTooltip:n,forceMount:r,children:o,container:i}=t,s=wv(Sv,n);return e.createElement(Pv,{scope:n,forceMount:r},e.createElement(ti,{present:r||s.open},e.createElement(Sa,{asChild:!0,container:i},o)))},Vv=Rv,$v=e.forwardRef(((t,n)=>{const{__scopeTooltip:r,...o}=t,i=pv(r);return Ov("TooltipArrow",r).isInside?null:e.createElement(Ea,m({},i,o,{ref:n}))}));const Nv="ScrollArea",[Fv,jv]=v(Nv),[Bv,Wv]=Fv(Nv),Hv=e.forwardRef(((t,n)=>{const{__scopeScrollArea:r,type:o="hover",dir:i,scrollHideDelay:s=600,...a}=t,[c,l]=e.useState(null),[u,d]=e.useState(null),[f,p]=e.useState(null),[h,v]=e.useState(null),[g,y]=e.useState(null),[w,x]=e.useState(0),[E,S]=e.useState(0),[P,C]=e.useState(!1),[T,R]=e.useState(!1),A=b(n,(e=>l(e))),D=Nr(i);return e.createElement(Bv,{scope:r,type:o,dir:D,scrollHideDelay:s,scrollArea:c,viewport:u,onViewportChange:d,content:f,onContentChange:p,scrollbarX:h,onScrollbarXChange:v,scrollbarXEnabled:P,onScrollbarXEnabledChange:C,scrollbarY:g,onScrollbarYChange:y,scrollbarYEnabled:T,onScrollbarYEnabledChange:R,onCornerWidthChange:x,onCornerHeightChange:S},e.createElement(L.div,m({dir:D},a,{ref:A,style:{position:"relative","--radix-scroll-area-corner-width":w+"px","--radix-scroll-area-corner-height":E+"px",...t.style}})))})),Uv=e.forwardRef(((t,n)=>{const{__scopeScrollArea:r,children:o,...i}=t,s=Wv("ScrollAreaViewport",r),a=b(n,e.useRef(null),s.onViewportChange);return e.createElement(e.Fragment,null,e.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"}}),e.createElement(L.div,m({"data-radix-scroll-area-viewport":""},i,{ref:a,style:{overflowX:s.scrollbarXEnabled?"scroll":"hidden",overflowY:s.scrollbarYEnabled?"scroll":"hidden",...t.style}}),e.createElement("div",{ref:s.onContentChange,style:{minWidth:"100%",display:"table"}},o)))})),zv="ScrollAreaScrollbar",Yv=e.forwardRef(((t,n)=>{const{forceMount:r,...o}=t,i=Wv(zv,t.__scopeScrollArea),{onScrollbarXEnabledChange:s,onScrollbarYEnabledChange:a}=i,c="horizontal"===t.orientation;return e.useEffect((()=>(c?s(!0):a(!0),()=>{c?s(!1):a(!1)})),[c,s,a]),"hover"===i.type?e.createElement(Xv,m({},o,{ref:n,forceMount:r})):"scroll"===i.type?e.createElement(qv,m({},o,{ref:n,forceMount:r})):"auto"===i.type?e.createElement(Kv,m({},o,{ref:n,forceMount:r})):"always"===i.type?e.createElement(Gv,m({},o,{ref:n})):null})),Xv=e.forwardRef(((t,n)=>{const{forceMount:r,...o}=t,i=Wv(zv,t.__scopeScrollArea),[s,a]=e.useState(!1);return e.useEffect((()=>{const e=i.scrollArea;let t=0;if(e){const n=()=>{window.clearTimeout(t),a(!0)},r=()=>{t=window.setTimeout((()=>a(!1)),i.scrollHideDelay)};return e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",r),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",r)}}}),[i.scrollArea,i.scrollHideDelay]),e.createElement(J,{present:r||s},e.createElement(Kv,m({"data-state":s?"visible":"hidden"},o,{ref:n})))})),qv=e.forwardRef(((t,n)=>{const{forceMount:r,...o}=t,i=Wv(zv,t.__scopeScrollArea),s="horizontal"===t.orientation,a=fg((()=>l("SCROLL_END")),100),[c,l]=(u="hidden",d={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},e.useReducer(((e,t)=>{const n=d[e][t];return null!=n?n:e}),u));var u,d;return e.useEffect((()=>{if("idle"===c){const e=window.setTimeout((()=>l("HIDE")),i.scrollHideDelay);return()=>window.clearTimeout(e)}}),[c,i.scrollHideDelay,l]),e.useEffect((()=>{const e=i.viewport,t=s?"scrollLeft":"scrollTop";if(e){let n=e[t];const r=()=>{const r=e[t];n!==r&&(l("SCROLL"),a()),n=r};return e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)}}),[i.viewport,s,l,a]),e.createElement(J,{present:r||"hidden"!==c},e.createElement(Gv,m({"data-state":"hidden"===c?"hidden":"visible"},o,{ref:n,onPointerEnter:w(t.onPointerEnter,(()=>l("POINTER_ENTER"))),onPointerLeave:w(t.onPointerLeave,(()=>l("POINTER_LEAVE")))})))})),Kv=e.forwardRef(((t,n)=>{const r=Wv(zv,t.__scopeScrollArea),{forceMount:o,...i}=t,[s,a]=e.useState(!1),c="horizontal"===t.orientation,l=fg((()=>{if(r.viewport){const e=r.viewport.offsetWidth<r.viewport.scrollWidth,t=r.viewport.offsetHeight<r.viewport.scrollHeight;a(c?e:t)}}),10);return pg(r.viewport,l),pg(r.content,l),e.createElement(J,{present:o||s},e.createElement(Gv,m({"data-state":s?"visible":"hidden"},i,{ref:n})))})),Gv=e.forwardRef(((t,n)=>{const{orientation:r="vertical",...o}=t,i=Wv(zv,t.__scopeScrollArea),s=e.useRef(null),a=e.useRef(0),[c,l]=e.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=sg(c.viewport,c.content),d={...o,sizes:c,onSizesChange:l,hasThumb:Boolean(u>0&&u<1),onThumbChange:e=>s.current=e,onThumbPointerUp:()=>a.current=0,onThumbPointerDown:e=>a.current=e};function f(e,t){return function(e,t,n,r="ltr"){const o=ag(n),i=o/2,s=t||i,a=o-s,c=n.scrollbar.paddingStart+s,l=n.scrollbar.size-n.scrollbar.paddingEnd-a,u=n.content-n.viewport,d="ltr"===r?[0,u]:[-1*u,0];return lg([c,l],d)(e)}(e,a.current,c,t)}return"horizontal"===r?e.createElement(Zv,m({},d,{ref:n,onThumbPositionChange:()=>{if(i.viewport&&s.current){const e=cg(i.viewport.scrollLeft,c,i.dir);s.current.style.transform=`translate3d(${e}px, 0, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollLeft=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollLeft=f(e,i.dir))}})):"vertical"===r?e.createElement(Jv,m({},d,{ref:n,onThumbPositionChange:()=>{if(i.viewport&&s.current){const e=cg(i.viewport.scrollTop,c);s.current.style.transform=`translate3d(0, ${e}px, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollTop=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollTop=f(e))}})):null})),Zv=e.forwardRef(((t,n)=>{const{sizes:r,onSizesChange:o,...i}=t,s=Wv(zv,t.__scopeScrollArea),[a,c]=e.useState(),l=e.useRef(null),u=b(n,l,s.onScrollbarXChange);return e.useEffect((()=>{l.current&&c(getComputedStyle(l.current))}),[l]),e.createElement(tg,m({"data-orientation":"horizontal"},i,{ref:u,sizes:r,style:{bottom:0,left:"rtl"===s.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===s.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":ag(r)+"px",...t.style},onThumbPointerDown:e=>t.onThumbPointerDown(e.x),onDragScroll:e=>t.onDragScroll(e.x),onWheelScroll:(e,n)=>{if(s.viewport){const r=s.viewport.scrollLeft+e.deltaX;t.onWheelScroll(r),ug(r,n)&&e.preventDefault()}},onResize:()=>{l.current&&s.viewport&&a&&o({content:s.viewport.scrollWidth,viewport:s.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:ig(a.paddingLeft),paddingEnd:ig(a.paddingRight)}})}}))})),Jv=e.forwardRef(((t,n)=>{const{sizes:r,onSizesChange:o,...i}=t,s=Wv(zv,t.__scopeScrollArea),[a,c]=e.useState(),l=e.useRef(null),u=b(n,l,s.onScrollbarYChange);return e.useEffect((()=>{l.current&&c(getComputedStyle(l.current))}),[l]),e.createElement(tg,m({"data-orientation":"vertical"},i,{ref:u,sizes:r,style:{top:0,right:"ltr"===s.dir?0:void 0,left:"rtl"===s.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":ag(r)+"px",...t.style},onThumbPointerDown:e=>t.onThumbPointerDown(e.y),onDragScroll:e=>t.onDragScroll(e.y),onWheelScroll:(e,n)=>{if(s.viewport){const r=s.viewport.scrollTop+e.deltaY;t.onWheelScroll(r),ug(r,n)&&e.preventDefault()}},onResize:()=>{l.current&&s.viewport&&a&&o({content:s.viewport.scrollHeight,viewport:s.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:ig(a.paddingTop),paddingEnd:ig(a.paddingBottom)}})}}))})),[Qv,eg]=Fv(zv),tg=e.forwardRef(((t,n)=>{const{__scopeScrollArea:r,sizes:o,hasThumb:i,onThumbChange:s,onThumbPointerUp:a,onThumbPointerDown:c,onThumbPositionChange:l,onDragScroll:u,onWheelScroll:d,onResize:f,...p}=t,h=Wv(zv,r),[v,g]=e.useState(null),y=b(n,(e=>g(e))),x=e.useRef(null),E=e.useRef(""),S=h.viewport,P=o.content-o.viewport,T=C(d),R=C(l),A=fg(f,10);function D(e){if(x.current){const t=e.clientX-x.current.left,n=e.clientY-x.current.top;u({x:t,y:n})}}return e.useEffect((()=>{const e=e=>{const t=e.target;(null==v?void 0:v.contains(t))&&T(e,P)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})}),[S,v,P,T]),e.useEffect(R,[o,R]),pg(v,A),pg(h.content,A),e.createElement(Qv,{scope:r,scrollbar:v,hasThumb:i,onThumbChange:C(s),onThumbPointerUp:C(a),onThumbPositionChange:R,onThumbPointerDown:C(c)},e.createElement(L.div,m({},p,{ref:y,style:{position:"absolute",...p.style},onPointerDown:w(t.onPointerDown,(e=>{if(0===e.button){e.target.setPointerCapture(e.pointerId),x.current=v.getBoundingClientRect(),E.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",D(e)}})),onPointerMove:w(t.onPointerMove,D),onPointerUp:w(t.onPointerUp,(e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=E.current,x.current=null}))})))})),ng="ScrollAreaThumb",rg=e.forwardRef(((t,n)=>{const{forceMount:r,...o}=t,i=eg(ng,t.__scopeScrollArea);return e.createElement(J,{present:r||i.hasThumb},e.createElement(og,m({ref:n},o)))})),og=e.forwardRef(((t,n)=>{const{__scopeScrollArea:r,style:o,...i}=t,s=Wv(ng,r),a=eg(ng,r),{onThumbPositionChange:c}=a,l=b(n,(e=>a.onThumbChange(e))),u=e.useRef(),d=fg((()=>{u.current&&(u.current(),u.current=void 0)}),100);return e.useEffect((()=>{const e=s.viewport;if(e){const t=()=>{if(d(),!u.current){const t=dg(e,c);u.current=t,c()}};return c(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}}),[s.viewport,d,c]),e.createElement(L.div,m({"data-state":a.hasThumb?"visible":"hidden"},i,{ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...o},onPointerDownCapture:w(t.onPointerDownCapture,(e=>{const t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;a.onThumbPointerDown({x:n,y:r})})),onPointerUp:w(t.onPointerUp,a.onThumbPointerUp)}))}));function ig(e){return e?parseInt(e,10):0}function sg(e,t){const n=e/t;return isNaN(n)?0:n}function ag(e){const t=sg(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function cg(e,t,n="ltr"){const r=ag(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=t.scrollbar.size-o,s=t.content-t.viewport,a=i-r,c=Vr(e,"ltr"===n?[0,s]:[-1*s,0]);return lg([0,s],[0,a])(c)}function lg(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function ug(e,t){return e>0&&e<t}const dg=(e,t=(()=>{}))=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function o(){const i={left:e.scrollLeft,top:e.scrollTop},s=n.left!==i.left,a=n.top!==i.top;(s||a)&&t(),n=i,r=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(r)};function fg(t,n){const r=C(t),o=e.useRef(0);return e.useEffect((()=>()=>window.clearTimeout(o.current)),[]),e.useCallback((()=>{window.clearTimeout(o.current),o.current=window.setTimeout(r,n)}),[r,n])}function pg(e,t){const n=C(t);x((()=>{let t=0;if(e){const r=new ResizeObserver((()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)}));return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}}),[e,n])}const hg=Hv,mg=Uv,vg=Yv,gg=rg;function yg(e){return function(e){return"[object Object]"===Object.prototype.toString.call(e)}(e)||Array.isArray(e)}function bg(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;return JSON.stringify(Object.keys(e.breakpoints||{}))===JSON.stringify(Object.keys(t.breakpoints||{}))&&n.every((n=>{const r=e[n],o=t[n];return"function"==typeof r?`${r}`==`${o}`:yg(r)&&yg(o)?bg(r,o):r===o}))}function wg(e){return e.concat().sort(((e,t)=>e.name>t.name?1:-1)).map((e=>e.options))}function xg(e){return"number"==typeof e}function Eg(e){return"string"==typeof e}function Sg(e){return"boolean"==typeof e}function Pg(e){return"[object Object]"===Object.prototype.toString.call(e)}function Cg(e){return Math.abs(e)}function Tg(e){return Math.sign(e)}function Rg(e,t){return Cg(e-t)}function Ag(e){return Lg(e).map(Number)}function Dg(e){return e[Og(e)]}function Og(e){return Math.max(0,e.length-1)}function kg(e,t=0){return Array.from(Array(e),((e,n)=>t+n))}function Lg(e){return Object.keys(e)}function Mg(e,t){return[e,t].reduce(((e,t)=>(Lg(t).forEach((n=>{const r=e[n],o=t[n],i=Pg(r)&&Pg(o);e[n]=i?Mg(r,o):o})),e)),{})}function _g(e,t){return void 0!==t.MouseEvent&&e instanceof t.MouseEvent}function Ig(e,t){const n={start:function(){return 0},center:function(e){return r(e)/2},end:r};function r(e){return t-e}return{measure:function(r){return xg(e)?t*Number(e):n[e](r)}}}function Vg(e,t){const n=Cg(e-t);function r(t){return t<e}function o(e){return e>t}function i(e){return r(e)||o(e)}return{length:n,max:t,min:e,constrain:function(n){return i(n)?r(n)?e:t:n},reachedAny:i,reachedMax:o,reachedMin:r,removeOffset:function(e){return n?e-n*Math.ceil((e-t)/n):e}}}function $g(e,t,n){const{constrain:r}=Vg(0,e),o=e+1;let i=s(t);function s(e){return n?Cg((o+e)%o):r(e)}function a(){return i}function c(){return $g(e,a(),n)}const l={get:a,set:function(e){return i=s(e),l},add:function(e){return c().set(a()+e)},clone:c};return l}function Ng(){let e=[];const t={add:function(n,r,o,i={passive:!0}){let s;if("addEventListener"in n)n.addEventListener(r,o,i),s=()=>n.removeEventListener(r,o,i);else{const e=n;e.addListener(o),s=()=>e.removeListener(o)}return e.push(s),t},clear:function(){e=e.filter((e=>e()))}};return t}function Fg(e,t,n,r,o,i,s,a,c,l,u,d,f,p,h,m,v,g,y,b){const{cross:w}=e,x=["INPUT","SELECT","TEXTAREA"],E={passive:!1},S=Ng(),P=Ng(),C=Vg(50,225).constrain(h.measure(20)),T={mouse:300,touch:400},R={mouse:500,touch:600},A=m?43:25;let D=!1,O=0,k=0,L=!1,M=!1,_=!1,I=!1;function V(e){const n=s.readPoint(e),r=s.readPoint(e,w),o=Rg(n,O),a=Rg(r,k);if(!M&&!I){if(!e.cancelable)return $(e);if(M=o>a,!M)return $(e)}const l=s.pointerMove(e);o>v&&(_=!0),u.useFriction(.3).useDuration(1),c.start(),i.add(t.apply(l)),e.preventDefault()}function $(e){const n=d.byDistance(0,!1).index!==f.get(),r=s.pointerUp(e)*(m?R:T)[I?"mouse":"touch"],o=function(e,t){const n=f.add(-1*Tg(e)),r=d.byDistance(e,!m).distance;return m||Cg(e)<C?r:g&&t?.5*r:d.byIndex(n.get(),0).distance}(t.apply(r),n),i=function(e,t){if(0===e||0===t)return 0;if(Cg(e)<=Cg(t))return 0;const n=Rg(Cg(e),Cg(t));return Cg(n/e)}(r,o),a=A-10*i,c=y+i/50;M=!1,L=!1,P.clear(),u.useDuration(a).useFriction(c),l.distance(o,!m),I=!1,p.emit("pointerUp")}function N(e){_&&(e.stopPropagation(),e.preventDefault())}return{init:function(e){if(!b)return;function t(t){(Sg(b)||b(e,t))&&function(e){const t=_g(e,o);if(I=t,t&&0!==e.button)return;if(function(e){const t=e.nodeName||"";return x.includes(t)}(e.target))return;_=m&&t&&!e.buttons&&D,D=Rg(i.get(),a.get())>=2,L=!0,s.pointerDown(e),u.useFriction(0).useDuration(0),i.set(a),function(){const e=I?r:n;P.add(e,"touchmove",V,E).add(e,"touchend",$).add(e,"mousemove",V,E).add(e,"mouseup",$)}(),O=s.readPoint(e),k=s.readPoint(e,w),p.emit("pointerDown")}(t)}const c=n;S.add(c,"dragstart",(e=>e.preventDefault()),E).add(c,"touchmove",(()=>{}),E).add(c,"touchend",(()=>{})).add(c,"touchstart",t).add(c,"mousedown",t).add(c,"touchcancel",$).add(c,"contextmenu",$).add(c,"click",N,!0)},pointerDown:function(){return L},destroy:function(){S.clear(),P.clear()}}}function jg(e,t){let n,r;function o(e){return e.timeStamp}function i(n,r){const o="client"+("x"===(r||e.scroll)?"X":"Y");return(_g(n,t)?n:n.touches[0])[o]}return{pointerDown:function(e){return n=e,r=e,i(e)},pointerMove:function(e){const t=i(e)-i(r),s=o(e)-o(n)>170;return r=e,s&&(n=e),t},pointerUp:function(e){if(!n||!r)return 0;const t=i(r)-i(n),s=o(e)-o(n),a=o(e)-o(r)>170,c=t/s;return s&&!a&&Cg(c)>.1?c:0},readPoint:i}}function Bg(e,t,n,r,o,i){let s,a,c=[],l=!1;function u(e){return o.measureSize(e.getBoundingClientRect())}return{init:function(o){if(!i)return;a=u(e),c=r.map(u),s=new ResizeObserver((s=>{l||(Sg(i)||i(o,s))&&function(i){for(const s of i){const i=s.target===e,l=r.indexOf(s.target),d=i?a:c[l];if(Cg(u(i?e:r[l])-d)>=.2){n.requestAnimationFrame((()=>{o.reInit(),t.emit("resize")}));break}}}(s)})),[e].concat(r).forEach((e=>s.observe(e)))},destroy:function(){s&&s.disconnect(),l=!0}}}function Wg(e,t,n,r,o){const i=o.measure(10),s=o.measure(50),a=Vg(.1,.99);let c=!1;return{constrain:function(o){if(c||!e.reachedAny(n.get())||!e.reachedAny(t.get()))return;const l=e.reachedMin(t.get())?"min":"max",u=Cg(e[l]-t.get()),d=n.get()-t.get(),f=a.constrain(u/s);n.subtract(d*f),!o&&Cg(d)<i&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())},toggleActive:function(e){c=!e}}}function Hg(e,t,n,r){const o=t.min+.1,i=t.max+.1,{reachedMin:s,reachedMax:a}=Vg(o,i);return{loop:function(t){if(!function(e){return 1===e?a(n.get()):-1===e&&s(n.get())}(t))return;const o=e*(-1*t);r.forEach((e=>e.add(o)))}}}function Ug(e,t,n,r,o){const{reachedAny:i,removeOffset:s,constrain:a}=r;function c(e){return e.concat().sort(((e,t)=>Cg(e)-Cg(t)))[0]}function l(t,r){const o=[t,t+n,t-n];if(!e)return o[0];if(!r)return c(o);const i=o.filter((e=>Tg(e)===r));return i.length?c(i):Dg(o)-n}return{byDistance:function(n,r){const c=o.get()+n,{index:u,distance:d}=function(n){const r=e?s(n):a(n),o=t.map((e=>e-r)).map((e=>l(e,0))).map(((e,t)=>({diff:e,index:t}))).sort(((e,t)=>Cg(e.diff)-Cg(t.diff))),{index:i}=o[0];return{index:i,distance:r}}(c),f=!e&&i(c);return!r||f?{index:u,distance:n}:{index:u,distance:n+l(t[u]-d,0)}},byIndex:function(e,n){return{index:e,distance:l(t[e]-o.get(),n)}},shortcut:l}}function zg(e){let t=e;function n(e){return xg(e)?e:e.get()}return{get:function(){return t},set:function(e){t=n(e)},add:function(e){t+=n(e)},subtract:function(e){t-=n(e)}}}function Yg(e,t,n){const r="x"===e.scroll?function(e){return`translate3d(${e}px,0px,0px)`}:function(e){return`translate3d(0px,${e}px,0px)`},o=n.style;let i=!1;return{clear:function(){i||(o.transform="",n.getAttribute("style")||n.removeAttribute("style"))},to:function(e){i||(o.transform=r(t.apply(e)))},toggleActive:function(e){i=!e}}}function Xg(e,t,n,r,o,i,s,a,c,l){const u=.5,d=Ag(i),f=Ag(i).reverse(),p=function(){const e=a[0]-1;return v(m(f,e),r,!1)}().concat(function(){const e=n-a[0]-1;return v(m(d,e),-r,!0)}());function h(e,t){return e.reduce(((e,t)=>e-i[t]),t)}function m(e,t){return e.reduce(((e,n)=>h(e,t)>0?e.concat([n]):e),[])}function v(i,a,d){const f=function(e){return s.map(((t,r)=>({start:t-o[r]+u+e,end:t+n-u+e})))}(a);return i.map((n=>{const o=d?0:-r,i=d?r:0,s=d?"end":"start",a=f[n][s];return{index:n,slideLocation:zg(-1),translate:Yg(e,t,l[n]),target:()=>c.get()>a?o:i}}))}return{canLoop:function(){return p.every((({index:e})=>h(d.filter((t=>t!==e)),n)<=.1))},clear:function(){p.forEach((e=>e.translate.clear()))},loop:function(){p.forEach((e=>{const{target:t,translate:n,slideLocation:r}=e,o=t();o!==r.get()&&(n.to(o),r.set(o))}))},loopPoints:p}}function qg(e,t,n){let r,o=!1;return{init:function(i){n&&(r=new MutationObserver((e=>{o||(Sg(n)||n(i,e))&&function(e){for(const n of e)if("childList"===n.type){i.reInit(),t.emit("slidesChanged");break}}(e)})),r.observe(e,{childList:!0}))},destroy:function(){r&&r.disconnect(),o=!0}}}function Kg(e,t,n,r){const o={};let i,s=null,a=null,c=!1;return{init:function(){i=new IntersectionObserver((e=>{c||(e.forEach((e=>{const n=t.indexOf(e.target);o[n]=e})),s=null,a=null,n.emit("slidesInView"))}),{root:e.parentElement,threshold:r}),t.forEach((e=>i.observe(e)))},destroy:function(){i&&i.disconnect(),c=!0},get:function(e=!0){if(e&&s)return s;if(!e&&a)return a;const t=function(e){return Lg(o).reduce(((t,n)=>{const r=parseInt(n),{isIntersecting:i}=o[r];return(e&&i||!e&&!i)&&t.push(r),t}),[])}(e);return e&&(s=t),e||(a=t),t}}}function Gg(e,t,n,r,o,i,s,a,c){const{startEdge:l,endEdge:u}=e,d=xg(r);return{groupSlides:function(e){return d?function(e,t){return Ag(e).filter((e=>e%t==0)).map((n=>e.slice(n,n+t)))}(e,r):function(e){return e.length?Ag(e).reduce(((r,d)=>{const f=Dg(r)||0,p=0===f,h=d===Og(e),m=i[l]-s[f][l],v=i[l]-s[d][u],g=!o&&p?t.apply(a):0;return Cg(v-(!o&&h?t.apply(c):0)-(m+g))>n&&r.push(d),h&&r.push(e.length),r}),[]).map(((t,n,r)=>{const o=Math.max(r[n-1]||0);return e.slice(o,t)})):[]}(e)}}}function Zg(e,t,n,r,o,i,s,a){const{align:c,axis:l,direction:u,startIndex:d,loop:f,duration:p,dragFree:h,dragThreshold:m,inViewThreshold:v,slidesToScroll:g,skipSnaps:y,containScroll:b,watchResize:w,watchSlides:x,watchDrag:E}=i,S=t.getBoundingClientRect(),P=n.map((e=>e.getBoundingClientRect())),C=function(e){const t="rtl"===e?-1:1;return{apply:function(e){return e*t}}}(u),T=function(e,t){const n="y"===e?"y":"x";return{scroll:n,cross:"y"===e?"x":"y",startEdge:"y"===n?"top":"rtl"===t?"right":"left",endEdge:"y"===n?"bottom":"rtl"===t?"left":"right",measureSize:function(e){const{width:t,height:r}=e;return"x"===n?t:r}}}(l,u),R=T.measureSize(S),A=function(e){return{measure:function(t){return e*(t/100)}}}(R),D=Ig(c,R),O=!f&&!!b,k=f||!!b,{slideSizes:L,slideSizesWithGaps:M,startGap:_,endGap:I}=function(e,t,n,r,o,i){const{measureSize:s,startEdge:a,endEdge:c}=e,l=n[0]&&o,u=function(){if(!l)return 0;const e=n[0];return Cg(t[a]-e[a])}(),d=function(){if(!l)return 0;const e=i.getComputedStyle(Dg(r));return parseFloat(e.getPropertyValue(`margin-${c}`))}(),f=n.map(s),p=n.map(((e,t,n)=>{const r=!t,o=t===Og(n);return r?f[t]+u:o?f[t]+d:n[t+1][a]-e[a]})).map(Cg);return{slideSizes:f,slideSizesWithGaps:p,startGap:u,endGap:d}}(T,S,P,n,k,o),V=Gg(T,C,R,g,f,S,P,_,I),{snaps:$,snapsAligned:N}=function(e,t,n,r,o){const{startEdge:i,endEdge:s}=e,{groupSlides:a}=o,c=a(r).map((e=>Dg(e)[s]-e[0][i])).map(Cg).map(t.measure),l=r.map((e=>n[i]-e[i])).map((e=>-Cg(e))),u=a(l).map((e=>e[0])).map(((e,t)=>e+c[t]));return{snaps:l,snapsAligned:u}}(T,D,S,P,V),F=-Dg($)+Dg(M),{snapsContained:j,scrollContainLimit:B}=function(e,t,n,r){const o=Vg(-t+e,0),i=n.map(o.constrain).map((e=>parseFloat(e.toFixed(3)))),s=function(){const e=i[0],t=Dg(i);return Vg(i.lastIndexOf(e),i.indexOf(t)+1)}();return{snapsContained:function(){if(t<=e)return[o.max];if("keepSnaps"===r)return i;const{min:n,max:a}=s;return i.slice(n,a)}(),scrollContainLimit:s}}(R,F,N,b),W=O?j:N,{limit:H}=function(e,t,n){const r=t[0];return{limit:Vg(n?r-e:Dg(t),r)}}(F,W,f),U=$g(Og(W),d,f),z=U.clone(),Y=Ag(n),X={start:()=>a.start(se),stop:()=>a.stop(se),update:()=>(({dragHandler:e,scrollBody:t,scrollBounds:n,eventHandler:r,animation:o,options:{loop:i}})=>{const s=e.pointerDown();i||n.constrain(s);const a=t.seek().settled();a&&!s&&(o.stop(),r.emit("settle")),a||r.emit("scroll")})(se),render:e=>(({scrollBody:e,translate:t,location:n,offsetLocation:r,scrollLooper:o,slideLooper:i,options:{loop:s}},a)=>{const c=e.velocity();r.set(n.get()-c+c*a),s&&(o.loop(e.direction()),i.loop()),t.to(r.get())})(se,e)},q=W[U.get()],K=zg(q),G=zg(q),Z=zg(q),J=function(e,t,n,r){let o=!0,i=0,s=0,a=n,c=r,l=e.get(),u=0;function d(e){return a=e,p}function f(e){return c=e,p}const p={direction:function(){return s},duration:function(){return a},velocity:function(){return i},seek:function(){const n=t.get()-e.get();let r=0;return a?(i+=n/a,i*=c,l+=i,e.add(i),r=l-u):(i=0,e.set(t),r=n),s=Tg(r),u=l,o=Cg(n)<.001,p},settled:function(){return o},useBaseFriction:function(){return f(r)},useBaseDuration:function(){return d(n)},useFriction:f,useDuration:d};return p}(K,Z,p,.68),Q=Ug(f,W,F,H,Z),ee=function(e,t,n,r,o,i,s){function a(r){const a=r.distance,c=r.index!==t.get();i.add(a),a&&(o.duration()?e.start():(e.update(),e.render(1),e.update())),c&&(n.set(t.get()),t.set(r.index),s.emit("select"))}return{distance:function(e,t){a(r.byDistance(e,t))},index:function(e,n){const o=t.clone().set(e);a(r.byIndex(o.get(),n))}}}(X,U,z,Q,J,Z,s),te=function(e){const{max:t,length:n}=e;return{get:function(e){return n?(e-t)/-n:0}}}(H),ne=Ng(),re=Kg(t,n,s,v),{slideRegistry:oe}=function(e,t,n,r,o,i){const{groupSlides:s}=o,{min:a,max:c}=r;return{slideRegistry:function(){const r=s(i);return!n||t<=e?r:r.slice(a,c).map(((e,t,n)=>{const r=!t,o=!r&&t===Og(n);return r?kg(Dg(n[0])+1):o?kg(Og(i)-Dg(n)[0]+1,Dg(n)[0]):e}))}()}}(R,F,O,B,V,Y),ie=function(e,t,n,r,o,i){let s=0;function a(e){"Tab"===e.code&&(s=(new Date).getTime())}function c(a){i.add(a,"focus",(()=>{if((new Date).getTime()-s>10)return;e.scrollLeft=0;const i=t.indexOf(a),c=n.findIndex((e=>e.includes(i)));xg(c)&&(o.useDuration(0),r.index(c,0))}),{passive:!0,capture:!0})}return{init:function(){i.add(document,"keydown",a,!1),t.forEach(c)}}}(e,n,oe,ee,J,ne),se={ownerDocument:r,ownerWindow:o,eventHandler:s,containerRect:S,slideRects:P,animation:X,axis:T,direction:C,dragHandler:Fg(T,C,e,r,o,Z,jg(T,o),K,X,ee,J,Q,U,s,A,h,m,y,.68,E),eventStore:ne,percentOfView:A,index:U,indexPrevious:z,limit:H,location:K,offsetLocation:G,options:i,resizeHandler:Bg(t,s,o,n,T,w),scrollBody:J,scrollBounds:Wg(H,K,Z,J,A),scrollLooper:Hg(F,H,G,[K,G,Z]),scrollProgress:te,scrollSnapList:W.map(te.get),scrollSnaps:W,scrollTarget:Q,scrollTo:ee,slideLooper:Xg(T,C,R,F,L,M,$,W,G,n),slideFocus:ie,slidesHandler:qg(t,s,x),slidesInView:re,slideIndexes:Y,slideRegistry:oe,slidesToScroll:V,target:Z,translate:Yg(T,C,t)};return se}const Jg={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0};function Qg(e){function t(e,t){return Mg(e,t||{})}const n={mergeOptions:t,optionsAtMedia:function(n){const r=n.breakpoints||{},o=Lg(r).filter((t=>e.matchMedia(t).matches)).map((e=>r[e])).reduce(((e,n)=>t(e,n)),{});return t(n,o)},optionsMediaQueries:function(t){return t.map((e=>Lg(e.breakpoints||{}))).reduce(((e,t)=>e.concat(t)),[]).map(e.matchMedia)}};return n}function ey(e,t,n){const r=e.ownerDocument,o=r.defaultView,i=Qg(o),s=function(e){let t=[];const n={init:function(n,r){return t=r.filter((({options:t})=>!1!==e.optionsAtMedia(t).active)),t.forEach((t=>t.init(n,e))),r.reduce(((e,t)=>Object.assign(e,{[t.name]:t})),{})},destroy:function(){t=t.filter((e=>e.destroy()))}};return n}(i),a=Ng(),c=Ng(),l=function(){const e={};let t;function n(t){return e[t]||[]}const r={init:function(e){t=e},emit:function(e){return n(e).forEach((n=>n(t,e))),r},off:function(t,o){return e[t]=n(t).filter((e=>e!==o)),r},on:function(t,o){return e[t]=n(t).concat([o]),r}};return r}(),{animationRealms:u}=ey,{mergeOptions:d,optionsAtMedia:f,optionsMediaQueries:p}=i,{on:h,off:m,emit:v}=l,g=A;let y,b,w,x,E=!1,S=d(Jg,ey.globalOptions),P=d(S),C=[];function T(t,n){const i=Zg(e,w,x,r,o,t,l,n);if(t.loop&&!i.slideLooper.canLoop()){return T(Object.assign({},t,{loop:!1}),n)}return i}function R(t,n){if(E)return;const i=u.find((e=>e.window===o)),l=i||function(e){const t=1e3/60;let n=[],r=null,o=0,i=0;function s(a){r||(r=a);const c=a-r;for(r=a,o+=c;o>=t;)n.forEach((({animation:e})=>e.update())),o-=t;const l=Cg(o/t);n.forEach((({animation:e})=>e.render(l))),i&&e.requestAnimationFrame(s)}return{start:function(t){n.includes(t)||n.push(t),i||(i=e.requestAnimationFrame(s))},stop:function(t){n=n.filter((e=>e!==t)),n.length||(e.cancelAnimationFrame(i),r=null,o=0,i=0)},reset:function(){r=null,o=0},window:e}}(o);i||u.push(l),S=d(S,t),P=f(S),C=n||C,function(){const{container:t,slides:n}=P,r=Eg(t)?e.querySelector(t):t;w=r||e.children[0];const o=Eg(n)?w.querySelectorAll(n):n;x=[].slice.call(o||w.children)}(),y=T(P,l),p([S,...C.map((({options:e})=>e))]).forEach((e=>a.add(e,"change",A))),P.active&&(y.translate.to(y.location.get()),y.slidesInView.init(),y.slideFocus.init(),y.eventHandler.init(L),y.resizeHandler.init(L),y.slidesHandler.init(L),c.add(r,"visibilitychange",(()=>{r.hidden&&l.reset()})),y.options.loop&&y.slideLooper.loop(),w.offsetParent&&x.length&&y.dragHandler.init(L),b=s.init(L,C))}function A(e,t){const n=k();D(),R(d({startIndex:n},e),t),l.emit("reInit")}function D(){y.dragHandler.destroy(),y.animation.stop(),y.eventStore.clear(),y.translate.clear(),y.slideLooper.clear(),y.resizeHandler.destroy(),y.slidesHandler.destroy(),s.destroy(),a.clear(),c.clear()}function O(e,t,n){P.active&&!E&&(y.scrollBody.useBaseFriction().useDuration(t?0:P.duration),y.scrollTo.index(e,n||0))}function k(){return y.index.get()}const L={canScrollNext:function(){return y.index.add(1).get()!==k()},canScrollPrev:function(){return y.index.add(-1).get()!==k()},containerNode:function(){return w},internalEngine:function(){return y},destroy:function(){E||(E=!0,a.clear(),D(),l.emit("destroy"))},off:m,on:h,emit:v,plugins:function(){return b},previousScrollSnap:function(){return y.indexPrevious.get()},reInit:g,rootNode:function(){return e},scrollNext:function(e){O(y.index.add(1).get(),!0===e,-1)},scrollPrev:function(e){O(y.index.add(-1).get(),!0===e,1)},scrollProgress:function(){return y.scrollProgress.get(y.location.get())},scrollSnapList:function(){return y.scrollSnapList},scrollTo:O,selectedScrollSnap:k,slideNodes:function(){return x},slidesInView:function(){return y.slidesInView.get()},slidesNotInView:function(){return y.slidesInView.get(!1)}};return R(t,n),setTimeout((()=>l.emit("init")),0),L}function ty(t={},n=[]){const r=e.useRef(t),o=e.useRef(n),[i,s]=e.useState(),[a,c]=e.useState(),l=e.useCallback((()=>{i&&i.reInit(r.current,o.current)}),[i]);return e.useEffect((()=>{if("undefined"!=typeof window&&window.document&&window.document.createElement&&a){ey.globalOptions=ty.globalOptions;const e=ey(a,r.current,o.current);return s(e),()=>e.destroy()}s(void 0)}),[a,s]),e.useEffect((()=>{bg(r.current,t)||(r.current=t,l())}),[t,l]),e.useEffect((()=>{(function(e,t){if(e.length!==t.length)return!1;const n=wg(e),r=wg(t);return n.every(((e,t)=>bg(e,r[t])))})(o.current,n)||(o.current=n,l())}),[n,l]),[c,i]}ey.animationRealms=[],ey.globalOptions=void 0,ty.globalOptions=void 0,exports.$57acba87d6e25586$export$6521433ed15a34db=gg,exports.$57acba87d6e25586$export$9a4e88b92edfce6b=vg,exports.$57acba87d6e25586$export$be92b6f5f03c0fe9=hg,exports.$57acba87d6e25586$export$d5c6c08dc2d3ca7=mg,exports.$5d3850c4d0b4e6c7$export$602eac185826482c=ut,exports.$5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2=ft,exports.$5d3850c4d0b4e6c7$export$be92b6f5f03c0fe9=lt,exports.$5d3850c4d0b4e6c7$export$c6fdb837b070b4ff=dt,exports.$67824d98245208a0$export$adb584737d712b70=Sr,exports.$67824d98245208a0$export$be92b6f5f03c0fe9=Er,exports.$a093c7e1ec25a057$export$21b07c8f274aebd5=$v,exports.$a093c7e1ec25a057$export$2881499e37b75b9a=Lv,exports.$a093c7e1ec25a057$export$41fb9f06171c75f4=_v,exports.$a093c7e1ec25a057$export$602eac185826482c=Iv,exports.$a093c7e1ec25a057$export$7c6e2c02157bb7d2=Vv,exports.$a093c7e1ec25a057$export$be92b6f5f03c0fe9=Mv,exports.$cb5cc270b50c6fcd$export$21b07c8f274aebd5=lr,exports.$cb5cc270b50c6fcd$export$41fb9f06171c75f4=ir,exports.$cb5cc270b50c6fcd$export$602eac185826482c=sr,exports.$cb5cc270b50c6fcd$export$7c6e2c02157bb7d2=ar,exports.$cb5cc270b50c6fcd$export$be92b6f5f03c0fe9=or,exports.$cb5cc270b50c6fcd$export$f39c2d165cd861fe=cr,exports.$cc7e05a45900e73f$export$2f60d3ec9ad468f2=Cc,exports.$cc7e05a45900e73f$export$41fb9f06171c75f4=vc,exports.$cc7e05a45900e73f$export$4c8d1a57a761ef94=gc,exports.$cc7e05a45900e73f$export$602eac185826482c=bc,exports.$cc7e05a45900e73f$export$6d08773d2e66f8f2=Ec,exports.$cc7e05a45900e73f$export$7c6e2c02157bb7d2=wc,exports.$cc7e05a45900e73f$export$be92b6f5f03c0fe9=mc,exports.$cc7e05a45900e73f$export$bf1aedc3039c8d63=Tc,exports.$cc7e05a45900e73f$export$c3468e2714d175fa=Pc,exports.$cc7e05a45900e73f$export$d5c6c08dc2d3ca7=xc,exports.$cc7e05a45900e73f$export$d6e5bf9c43ea9319=Sc,exports.$cc7e05a45900e73f$export$f04a61298a47a40f=yc,exports.$e698a72e93240346$export$adb584737d712b70=Ir,exports.$e698a72e93240346$export$be92b6f5f03c0fe9=_r,exports.$f99a8c78507165f7$export$6d08773d2e66f8f2=xi,exports.$f99a8c78507165f7$export$adb584737d712b70=Ei,exports.$f99a8c78507165f7$export$be92b6f5f03c0fe9=wi,exports.$faa2e61a3361514f$export$13921ac0cc260818=po,exports.$faa2e61a3361514f$export$6521433ed15a34db=mo,exports.$faa2e61a3361514f$export$9a58ef0d7ad3278c=ho,exports.$faa2e61a3361514f$export$be92b6f5f03c0fe9=fo,exports.Masonry=av,exports.MasonryResponsive=uv,exports.client=f,exports.jsxRuntimeExports=d,exports.motion=Mm,exports.useEmblaCarousel=ty;
|
|
2
|
+
//# sourceMappingURL=vendor-db1ee31a.cjs.map
|