@sledge-app/react-instant-search 1.0.3 → 1.0.4

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.
@@ -0,0 +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);var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function s(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function a(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){if(this instanceof e){var n=[null];return n.push.apply(n,arguments),new(Function.bind.apply(t,n))}return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var c,l={exports:{}},u={};var d,f={};"production"===process.env.NODE_ENV?l.exports=function(){if(c)return u;c=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,s={key:!0,ref:!0,__self:!0,__source:!0};function a(e,t,r){var a,c={},l=null,u=null;for(a in void 0!==r&&(l=""+r),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(u=t.ref),t)o.call(t,a)&&!s.hasOwnProperty(a)&&(c[a]=t[a]);if(e&&e.defaultProps)for(a in t=e.defaultProps)void 0===c[a]&&(c[a]=t[a]);return{$$typeof:n,type:e,key:l,ref:u,props:c,_owner:i.current}}return u.Fragment=r,u.jsx=a,u.jsxs=a,u}():l.exports=(d||(d=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"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),v=Symbol.iterator,y="@@iterator",g=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=g.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,C=!1,P=!1;function _(e){return e.displayName||"Context"}function T(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 u:return"Suspense";case d:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case c:return _(e)+".Consumer";case a:return _(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:T(e.type)||"Memo";case h:var n=e,f=n._payload,m=n._init;try{return T(m(f))}catch(v){return null}}return null}w=Symbol.for("react.module.reference");var R,A,k,D,O,M,L,B=Object.assign,I=0;function F(){}F.__reactDisabledLog=!0;var $,V=g.ReactCurrentDispatcher;function N(e,t,n){if(void 0===$)try{throw Error()}catch(o){var r=o.stack.trim().match(/\n( *(at )?)/);$=r&&r[1]||""}return"\n"+$+e}var j,H=!1,z="function"==typeof WeakMap?WeakMap:Map;function W(e,t){if(!e||H)return"";var n,r=j.get(e);if(void 0!==r)return r;H=!0;var o,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=V.current,V.current=null,function(){if(0===I){R=console.log,A=console.info,k=console.warn,D=console.error,O=console.group,M=console.groupCollapsed,L=console.groupEnd;var e={configurable:!0,enumerable:!0,value:F,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}I++}();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&&j.set(e,d),d}}while(l>=1&&u>=0);break}}}finally{H=!1,V.current=o,function(){if(0==--I){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:B({},e,{value:R}),info:B({},e,{value:A}),warn:B({},e,{value:k}),error:B({},e,{value:D}),group:B({},e,{value:O}),groupCollapsed:B({},e,{value:M}),groupEnd:B({},e,{value:L})})}I<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?N(f):"";return"function"==typeof e&&j.set(e,p),p}function U(e,t,n){if(null==e)return"";if("function"==typeof e)return W(e,!(!(r=e.prototype)||!r.isReactComponent));var r;if("string"==typeof e)return N(e);switch(e){case u:return N("Suspense");case d:return N("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case l:return W(e.render,!1);case p:return U(e.type,t,n);case h:var o=e,i=o._payload,s=o._init;try{return U(s(i),t,n)}catch(a){}}return""}j=new z;var K=Object.prototype.hasOwnProperty,X={},Y=g.ReactDebugCurrentFrame;function q(e){if(e){var t=e._owner,n=U(e.type,e._source,t?t.type:null);Y.setExtraStackFrame(n)}else Y.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=g.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(K.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(K.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=T(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',T(re.current.type),e.ref),ne[n]=!0)}}(t,o)),t)K.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=g.ReactCurrentOwner,le=g.ReactDebugCurrentFrame;function ue(e){if(e){var t=e._owner,n=U(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=T(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 "+T(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[y];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=T(n);!function(e,t,n,r,o){var i=Function.call.bind(K);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||(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?",T(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 ye(e,t,r,f,v,y){var g=function(e){return"string"==typeof e||"function"==typeof e||!!(e===o||e===s||P||e===i||e===u||e===d||C||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(!g){var _="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(_+=" 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 R,A=function(e){return void 0!==e?"\n\nCheck your code at "+e.fileName.replace(/^.*[\\\/]/,"")+":"+e.lineNumber+".":""}(v);_+=A||fe(),null===e?R="null":Z(e)?R="array":void 0!==e&&e.$$typeof===n?(R="<"+(T(e.type)||"Unknown")+" />",_=" Did you accidentally export a JSX literal instead of a component?"):R=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",R,_)}var k=se(e,t,r,v,y);if(null==k)return k;if(g){var D=t.children;if(void 0!==D)if(f)if(Z(D)){for(var O=0;O<D.length;O++)me(D[O],e);Object.freeze&&Object.freeze(D)}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(D,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))}(k):ve(k),k}var ge=function(e,t,n){return ye(e,t,n,!1)},be=function(e,t,n){return ye(e,t,n,!0)};f.Fragment=o,f.jsx=ge,f.jsxs=be}()),f);var p=l.exports,h={},m=t;if("production"===process.env.NODE_ENV)h.createRoot=m.createRoot,h.hydrateRoot=m.hydrateRoot;else{var v=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;h.createRoot=function(e,t){v.usingClientEntryPoint=!0;try{return m.createRoot(e,t)}finally{v.usingClientEntryPoint=!1}},h.hydrateRoot=function(e,t,n){v.usingClientEntryPoint=!0;try{return m.hydrateRoot(e,t,n)}finally{v.usingClientEntryPoint=!1}}}var y={exports:{}};const g=a(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var b;function w(){return b||(b=1,y.exports=(e=e||function(e,t){var n;if("undefined"!=typeof window&&window.crypto&&(n=window.crypto),"undefined"!=typeof self&&self.crypto&&(n=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(n=globalThis.crypto),!n&&"undefined"!=typeof window&&window.msCrypto&&(n=window.msCrypto),!n&&void 0!==i&&i.crypto&&(n=i.crypto),!n)try{n=g}catch(v){}var r=function(){if(n){if("function"==typeof n.getRandomValues)try{return n.getRandomValues(new Uint32Array(1))[0]}catch(v){}if("function"==typeof n.randomBytes)try{return n.randomBytes(4).readInt32LE()}catch(v){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),s={},a=s.lib={},c=a.Base={extend:function(e){var t=o(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},l=a.WordArray=c.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||d).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,o=e.sigBytes;if(this.clamp(),r%4)for(var i=0;i<o;i++){var s=n[i>>>2]>>>24-i%4*8&255;t[r+i>>>2]|=s<<24-(r+i)%4*8}else for(var a=0;a<o;a+=4)t[r+a>>>2]=n[a>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=c.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n<e;n+=4)t.push(r());return new l.init(t,e)}}),u=s.enc={},d=u.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++){var i=t[o>>>2]>>>24-o%4*8&255;r.push((i>>>4).toString(16)),r.push((15&i).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new l.init(n,t/2)}},f=u.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++){var i=t[o>>>2]>>>24-o%4*8&255;r.push(String.fromCharCode(i))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new l.init(n,t)}},p=u.Utf8={stringify:function(e){try{return decodeURIComponent(escape(f.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return f.parse(unescape(encodeURIComponent(e)))}},h=a.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=p.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,r=this._data,o=r.words,i=r.sigBytes,s=this.blockSize,a=i/(4*s),c=(a=t?e.ceil(a):e.max((0|a)-this._minBufferSize,0))*s,u=e.min(4*c,i);if(c){for(var d=0;d<c;d+=s)this._doProcessBlock(o,d);n=o.splice(0,c),r.sigBytes-=u}return new l.init(n,u)},clone:function(){var e=c.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});a.Hasher=h.extend({cfg:c.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){h.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new m.HMAC.init(e,n).finalize(t)}}});var m=s.algo={};return s}(Math),e)),y.exports;var e}var x,E={exports:{}};function S(){return x||(x=1,E.exports=(s=w(),n=(t=s).lib,r=n.Base,o=n.WordArray,(i=t.x64={}).Word=r.extend({init:function(e,t){this.high=e,this.low=t}}),i.WordArray=r.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=n!=e?n:8*t.length},toX32:function(){for(var e=this.words,t=e.length,n=[],r=0;r<t;r++){var i=e[r];n.push(i.high),n.push(i.low)}return o.create(n,this.sigBytes)},clone:function(){for(var e=r.clone.call(this),t=e.words=this.words.slice(0),n=t.length,o=0;o<n;o++)t[o]=t[o].clone();return e}}),s)),E.exports;var e,t,n,r,o,i,s}var C,P={exports:{}};function _(){return C||(C=1,P.exports=(e=w(),function(){if("function"==typeof ArrayBuffer){var t=e.lib.WordArray,n=t.init,r=t.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var t=e.byteLength,r=[],o=0;o<t;o++)r[o>>>2]|=e[o]<<24-o%4*8;n.call(this,r,t)}else n.apply(this,arguments)};r.prototype=t}}(),e.lib.WordArray)),P.exports;var e}var T,R={exports:{}};function A(){return T?R.exports:(T=1,R.exports=(e=w(),function(){var t=e,n=t.lib.WordArray,r=t.enc;function o(e){return e<<8&4278255360|e>>>8&16711935}r.Utf16=r.Utf16BE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o+=2){var i=t[o>>>2]>>>16-o%4*8&65535;r.push(String.fromCharCode(i))}return r.join("")},parse:function(e){for(var t=e.length,r=[],o=0;o<t;o++)r[o>>>1]|=e.charCodeAt(o)<<16-o%2*16;return n.create(r,2*t)}},r.Utf16LE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i+=2){var s=o(t[i>>>2]>>>16-i%4*8&65535);r.push(String.fromCharCode(s))}return r.join("")},parse:function(e){for(var t=e.length,r=[],i=0;i<t;i++)r[i>>>1]|=o(e.charCodeAt(i)<<16-i%2*16);return n.create(r,2*t)}}}(),e.enc.Utf16));var e}var k,D={exports:{}};function O(){return k||(k=1,D.exports=(e=w(),function(){var t=e,n=t.lib.WordArray;function r(e,t,r){for(var o=[],i=0,s=0;s<t;s++)if(s%4){var a=r[e.charCodeAt(s-1)]<<s%4*2|r[e.charCodeAt(s)]>>>6-s%4*2;o[i>>>2]|=a<<24-i%4*8,i++}return n.create(o,i)}t.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var o=[],i=0;i<n;i+=3)for(var s=(t[i>>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,a=0;a<4&&i+.75*a<n;a++)o.push(r.charAt(s>>>6*(3-a)&63));var c=r.charAt(64);if(c)for(;o.length%4;)o.push(c);return o.join("")},parse:function(e){var t=e.length,n=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var i=0;i<n.length;i++)o[n.charCodeAt(i)]=i}var s=n.charAt(64);if(s){var a=e.indexOf(s);-1!==a&&(t=a)}return r(e,t,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),e.enc.Base64)),D.exports;var e}var M,L={exports:{}};function B(){return M?L.exports:(M=1,L.exports=(e=w(),function(){var t=e,n=t.lib.WordArray;function r(e,t,r){for(var o=[],i=0,s=0;s<t;s++)if(s%4){var a=r[e.charCodeAt(s-1)]<<s%4*2|r[e.charCodeAt(s)]>>>6-s%4*2;o[i>>>2]|=a<<24-i%4*8,i++}return n.create(o,i)}t.enc.Base64url={stringify:function(e,t=!0){var n=e.words,r=e.sigBytes,o=t?this._safe_map:this._map;e.clamp();for(var i=[],s=0;s<r;s+=3)for(var a=(n[s>>>2]>>>24-s%4*8&255)<<16|(n[s+1>>>2]>>>24-(s+1)%4*8&255)<<8|n[s+2>>>2]>>>24-(s+2)%4*8&255,c=0;c<4&&s+.75*c<r;c++)i.push(o.charAt(a>>>6*(3-c)&63));var l=o.charAt(64);if(l)for(;i.length%4;)i.push(l);return i.join("")},parse:function(e,t=!0){var n=e.length,o=t?this._safe_map:this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var s=0;s<o.length;s++)i[o.charCodeAt(s)]=s}var a=o.charAt(64);if(a){var c=e.indexOf(a);-1!==c&&(n=c)}return r(e,n,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"}}(),e.enc.Base64url));var e}var I,F={exports:{}};function $(){return I||(I=1,F.exports=(e=w(),function(t){var n=e,r=n.lib,o=r.WordArray,i=r.Hasher,s=n.algo,a=[];!function(){for(var e=0;e<64;e++)a[e]=4294967296*t.abs(t.sin(e+1))|0}();var c=s.MD5=i.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,o=e[r];e[r]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i=this._hash.words,s=e[t+0],c=e[t+1],p=e[t+2],h=e[t+3],m=e[t+4],v=e[t+5],y=e[t+6],g=e[t+7],b=e[t+8],w=e[t+9],x=e[t+10],E=e[t+11],S=e[t+12],C=e[t+13],P=e[t+14],_=e[t+15],T=i[0],R=i[1],A=i[2],k=i[3];T=l(T,R,A,k,s,7,a[0]),k=l(k,T,R,A,c,12,a[1]),A=l(A,k,T,R,p,17,a[2]),R=l(R,A,k,T,h,22,a[3]),T=l(T,R,A,k,m,7,a[4]),k=l(k,T,R,A,v,12,a[5]),A=l(A,k,T,R,y,17,a[6]),R=l(R,A,k,T,g,22,a[7]),T=l(T,R,A,k,b,7,a[8]),k=l(k,T,R,A,w,12,a[9]),A=l(A,k,T,R,x,17,a[10]),R=l(R,A,k,T,E,22,a[11]),T=l(T,R,A,k,S,7,a[12]),k=l(k,T,R,A,C,12,a[13]),A=l(A,k,T,R,P,17,a[14]),T=u(T,R=l(R,A,k,T,_,22,a[15]),A,k,c,5,a[16]),k=u(k,T,R,A,y,9,a[17]),A=u(A,k,T,R,E,14,a[18]),R=u(R,A,k,T,s,20,a[19]),T=u(T,R,A,k,v,5,a[20]),k=u(k,T,R,A,x,9,a[21]),A=u(A,k,T,R,_,14,a[22]),R=u(R,A,k,T,m,20,a[23]),T=u(T,R,A,k,w,5,a[24]),k=u(k,T,R,A,P,9,a[25]),A=u(A,k,T,R,h,14,a[26]),R=u(R,A,k,T,b,20,a[27]),T=u(T,R,A,k,C,5,a[28]),k=u(k,T,R,A,p,9,a[29]),A=u(A,k,T,R,g,14,a[30]),T=d(T,R=u(R,A,k,T,S,20,a[31]),A,k,v,4,a[32]),k=d(k,T,R,A,b,11,a[33]),A=d(A,k,T,R,E,16,a[34]),R=d(R,A,k,T,P,23,a[35]),T=d(T,R,A,k,c,4,a[36]),k=d(k,T,R,A,m,11,a[37]),A=d(A,k,T,R,g,16,a[38]),R=d(R,A,k,T,x,23,a[39]),T=d(T,R,A,k,C,4,a[40]),k=d(k,T,R,A,s,11,a[41]),A=d(A,k,T,R,h,16,a[42]),R=d(R,A,k,T,y,23,a[43]),T=d(T,R,A,k,w,4,a[44]),k=d(k,T,R,A,S,11,a[45]),A=d(A,k,T,R,_,16,a[46]),T=f(T,R=d(R,A,k,T,p,23,a[47]),A,k,s,6,a[48]),k=f(k,T,R,A,g,10,a[49]),A=f(A,k,T,R,P,15,a[50]),R=f(R,A,k,T,v,21,a[51]),T=f(T,R,A,k,S,6,a[52]),k=f(k,T,R,A,h,10,a[53]),A=f(A,k,T,R,x,15,a[54]),R=f(R,A,k,T,c,21,a[55]),T=f(T,R,A,k,b,6,a[56]),k=f(k,T,R,A,_,10,a[57]),A=f(A,k,T,R,y,15,a[58]),R=f(R,A,k,T,C,21,a[59]),T=f(T,R,A,k,m,6,a[60]),k=f(k,T,R,A,E,10,a[61]),A=f(A,k,T,R,p,15,a[62]),R=f(R,A,k,T,w,21,a[63]),i[0]=i[0]+T|0,i[1]=i[1]+R|0,i[2]=i[2]+A|0,i[3]=i[3]+k|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,o=8*e.sigBytes;n[o>>>5]|=128<<24-o%32;var i=t.floor(r/4294967296),s=r;n[15+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),n[14+(o+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),e.sigBytes=4*(n.length+1),this._process();for(var a=this._hash,c=a.words,l=0;l<4;l++){var u=c[l];c[l]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return a},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function l(e,t,n,r,o,i,s){var a=e+(t&n|~t&r)+o+s;return(a<<i|a>>>32-i)+t}function u(e,t,n,r,o,i,s){var a=e+(t&r|n&~r)+o+s;return(a<<i|a>>>32-i)+t}function d(e,t,n,r,o,i,s){var a=e+(t^n^r)+o+s;return(a<<i|a>>>32-i)+t}function f(e,t,n,r,o,i,s){var a=e+(n^(t|~r))+o+s;return(a<<i|a>>>32-i)+t}n.MD5=i._createHelper(c),n.HmacMD5=i._createHmacHelper(c)}(Math),e.MD5)),F.exports;var e}var V,N={exports:{}};function j(){return V||(V=1,N.exports=(a=w(),t=(e=a).lib,n=t.WordArray,r=t.Hasher,o=e.algo,i=[],s=o.SHA1=r.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],s=n[2],a=n[3],c=n[4],l=0;l<80;l++){if(l<16)i[l]=0|e[t+l];else{var u=i[l-3]^i[l-8]^i[l-14]^i[l-16];i[l]=u<<1|u>>>31}var d=(r<<5|r>>>27)+c+i[l];d+=l<20?1518500249+(o&s|~o&a):l<40?1859775393+(o^s^a):l<60?(o&s|o&a|s&a)-1894007588:(o^s^a)-899497514,c=a,a=s,s=o<<30|o>>>2,o=r,r=d}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+s|0,n[3]=n[3]+a|0,n[4]=n[4]+c|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}}),e.SHA1=r._createHelper(s),e.HmacSHA1=r._createHmacHelper(s),a.SHA1)),N.exports;var e,t,n,r,o,i,s,a}var H,z={exports:{}};function W(){return H||(H=1,z.exports=(e=w(),function(t){var n=e,r=n.lib,o=r.WordArray,i=r.Hasher,s=n.algo,a=[],c=[];!function(){function e(e){for(var n=t.sqrt(e),r=2;r<=n;r++)if(!(e%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,o=0;o<64;)e(r)&&(o<8&&(a[o]=n(t.pow(r,.5))),c[o]=n(t.pow(r,1/3)),o++),r++}();var l=[],u=s.SHA256=i.extend({_doReset:function(){this._hash=new o.init(a.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],s=n[3],a=n[4],u=n[5],d=n[6],f=n[7],p=0;p<64;p++){if(p<16)l[p]=0|e[t+p];else{var h=l[p-15],m=(h<<25|h>>>7)^(h<<14|h>>>18)^h>>>3,v=l[p-2],y=(v<<15|v>>>17)^(v<<13|v>>>19)^v>>>10;l[p]=m+l[p-7]+y+l[p-16]}var g=r&o^r&i^o&i,b=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),w=f+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&u^~a&d)+c[p]+l[p];f=d,d=u,u=a,a=s+w|0,s=i,i=o,o=r,r=w+(b+g)|0}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+i|0,n[3]=n[3]+s|0,n[4]=n[4]+a|0,n[5]=n[5]+u|0,n[6]=n[6]+d|0,n[7]=n[7]+f|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,o=8*e.sigBytes;return n[o>>>5]|=128<<24-o%32,n[14+(o+64>>>9<<4)]=t.floor(r/4294967296),n[15+(o+64>>>9<<4)]=r,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});n.SHA256=i._createHelper(u),n.HmacSHA256=i._createHmacHelper(u)}(Math),e.SHA256)),z.exports;var e}var U,K={exports:{}};var X,Y={exports:{}};function q(){return X||(X=1,Y.exports=(e=w(),S(),function(){var t=e,n=t.lib.Hasher,r=t.x64,o=r.Word,i=r.WordArray,s=t.algo;function a(){return o.create.apply(o,arguments)}var c=[a(1116352408,3609767458),a(1899447441,602891725),a(3049323471,3964484399),a(3921009573,2173295548),a(961987163,4081628472),a(1508970993,3053834265),a(2453635748,2937671579),a(2870763221,3664609560),a(3624381080,2734883394),a(310598401,1164996542),a(607225278,1323610764),a(1426881987,3590304994),a(1925078388,4068182383),a(2162078206,991336113),a(2614888103,633803317),a(3248222580,3479774868),a(3835390401,2666613458),a(4022224774,944711139),a(264347078,2341262773),a(604807628,2007800933),a(770255983,1495990901),a(1249150122,1856431235),a(1555081692,3175218132),a(1996064986,2198950837),a(2554220882,3999719339),a(2821834349,766784016),a(2952996808,2566594879),a(3210313671,3203337956),a(3336571891,1034457026),a(3584528711,2466948901),a(113926993,3758326383),a(338241895,168717936),a(666307205,1188179964),a(773529912,1546045734),a(1294757372,1522805485),a(1396182291,2643833823),a(1695183700,2343527390),a(1986661051,1014477480),a(2177026350,1206759142),a(2456956037,344077627),a(2730485921,1290863460),a(2820302411,3158454273),a(3259730800,3505952657),a(3345764771,106217008),a(3516065817,3606008344),a(3600352804,1432725776),a(4094571909,1467031594),a(275423344,851169720),a(430227734,3100823752),a(506948616,1363258195),a(659060556,3750685593),a(883997877,3785050280),a(958139571,3318307427),a(1322822218,3812723403),a(1537002063,2003034995),a(1747873779,3602036899),a(1955562222,1575990012),a(2024104815,1125592928),a(2227730452,2716904306),a(2361852424,442776044),a(2428436474,593698344),a(2756734187,3733110249),a(3204031479,2999351573),a(3329325298,3815920427),a(3391569614,3928383900),a(3515267271,566280711),a(3940187606,3454069534),a(4118630271,4000239992),a(116418474,1914138554),a(174292421,2731055270),a(289380356,3203993006),a(460393269,320620315),a(685471733,587496836),a(852142971,1086792851),a(1017036298,365543100),a(1126000580,2618297676),a(1288033470,3409855158),a(1501505948,4234509866),a(1607167915,987167468),a(1816402316,1246189591)],l=[];!function(){for(var e=0;e<80;e++)l[e]=a()}();var u=s.SHA512=n.extend({_doReset:function(){this._hash=new i.init([new o.init(1779033703,4089235720),new o.init(3144134277,2227873595),new o.init(1013904242,4271175723),new o.init(2773480762,1595750129),new o.init(1359893119,2917565137),new o.init(2600822924,725511199),new o.init(528734635,4215389547),new o.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],s=n[3],a=n[4],u=n[5],d=n[6],f=n[7],p=r.high,h=r.low,m=o.high,v=o.low,y=i.high,g=i.low,b=s.high,w=s.low,x=a.high,E=a.low,S=u.high,C=u.low,P=d.high,_=d.low,T=f.high,R=f.low,A=p,k=h,D=m,O=v,M=y,L=g,B=b,I=w,F=x,$=E,V=S,N=C,j=P,H=_,z=T,W=R,U=0;U<80;U++){var K,X,Y=l[U];if(U<16)X=Y.high=0|e[t+2*U],K=Y.low=0|e[t+2*U+1];else{var q=l[U-15],G=q.high,Z=q.low,J=(G>>>1|Z<<31)^(G>>>8|Z<<24)^G>>>7,Q=(Z>>>1|G<<31)^(Z>>>8|G<<24)^(Z>>>7|G<<25),ee=l[U-2],te=ee.high,ne=ee.low,re=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,oe=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),ie=l[U-7],se=ie.high,ae=ie.low,ce=l[U-16],le=ce.high,ue=ce.low;X=(X=(X=J+se+((K=Q+ae)>>>0<Q>>>0?1:0))+re+((K+=oe)>>>0<oe>>>0?1:0))+le+((K+=ue)>>>0<ue>>>0?1:0),Y.high=X,Y.low=K}var de,fe=F&V^~F&j,pe=$&N^~$&H,he=A&D^A&M^D&M,me=k&O^k&L^O&L,ve=(A>>>28|k<<4)^(A<<30|k>>>2)^(A<<25|k>>>7),ye=(k>>>28|A<<4)^(k<<30|A>>>2)^(k<<25|A>>>7),ge=(F>>>14|$<<18)^(F>>>18|$<<14)^(F<<23|$>>>9),be=($>>>14|F<<18)^($>>>18|F<<14)^($<<23|F>>>9),we=c[U],xe=we.high,Ee=we.low,Se=z+ge+((de=W+be)>>>0<W>>>0?1:0),Ce=ye+me;z=j,W=H,j=V,H=N,V=F,N=$,F=B+(Se=(Se=(Se=Se+fe+((de+=pe)>>>0<pe>>>0?1:0))+xe+((de+=Ee)>>>0<Ee>>>0?1:0))+X+((de+=K)>>>0<K>>>0?1:0))+(($=I+de|0)>>>0<I>>>0?1:0)|0,B=M,I=L,M=D,L=O,D=A,O=k,A=Se+(ve+he+(Ce>>>0<ye>>>0?1:0))+((k=de+Ce|0)>>>0<de>>>0?1:0)|0}h=r.low=h+k,r.high=p+A+(h>>>0<k>>>0?1:0),v=o.low=v+O,o.high=m+D+(v>>>0<O>>>0?1:0),g=i.low=g+L,i.high=y+M+(g>>>0<L>>>0?1:0),w=s.low=w+I,s.high=b+B+(w>>>0<I>>>0?1:0),E=a.low=E+$,a.high=x+F+(E>>>0<$>>>0?1:0),C=u.low=C+N,u.high=S+V+(C>>>0<N>>>0?1:0),_=d.low=_+H,d.high=P+j+(_>>>0<H>>>0?1:0),R=f.low=R+W,f.high=T+z+(R>>>0<W>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(r+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});t.SHA512=n._createHelper(u),t.HmacSHA512=n._createHmacHelper(u)}(),e.SHA512)),Y.exports;var e}var G,Z={exports:{}};var J,Q={exports:{}};function ee(){return J?Q.exports:(J=1,Q.exports=(e=w(),S(),function(t){var n=e,r=n.lib,o=r.WordArray,i=r.Hasher,s=n.x64.Word,a=n.algo,c=[],l=[],u=[];!function(){for(var e=1,t=0,n=0;n<24;n++){c[e+5*t]=(n+1)*(n+2)/2%64;var r=(2*e+3*t)%5;e=t%5,t=r}for(e=0;e<5;e++)for(t=0;t<5;t++)l[e+5*t]=t+(2*e+3*t)%5*5;for(var o=1,i=0;i<24;i++){for(var a=0,d=0,f=0;f<7;f++){if(1&o){var p=(1<<f)-1;p<32?d^=1<<p:a^=1<<p-32}128&o?o=o<<1^113:o<<=1}u[i]=s.create(a,d)}}();var d=[];!function(){for(var e=0;e<25;e++)d[e]=s.create()}();var f=a.SHA3=i.extend({cfg:i.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new s.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var n=this._state,r=this.blockSize/2,o=0;o<r;o++){var i=e[t+2*o],s=e[t+2*o+1];i=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),s=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),(R=n[o]).high^=s,R.low^=i}for(var a=0;a<24;a++){for(var f=0;f<5;f++){for(var p=0,h=0,m=0;m<5;m++)p^=(R=n[f+5*m]).high,h^=R.low;var v=d[f];v.high=p,v.low=h}for(f=0;f<5;f++){var y=d[(f+4)%5],g=d[(f+1)%5],b=g.high,w=g.low;for(p=y.high^(b<<1|w>>>31),h=y.low^(w<<1|b>>>31),m=0;m<5;m++)(R=n[f+5*m]).high^=p,R.low^=h}for(var x=1;x<25;x++){var E=(R=n[x]).high,S=R.low,C=c[x];C<32?(p=E<<C|S>>>32-C,h=S<<C|E>>>32-C):(p=S<<C-32|E>>>64-C,h=E<<C-32|S>>>64-C);var P=d[l[x]];P.high=p,P.low=h}var _=d[0],T=n[0];for(_.high=T.high,_.low=T.low,f=0;f<5;f++)for(m=0;m<5;m++){var R=n[x=f+5*m],A=d[x],k=d[(f+1)%5+5*m],D=d[(f+2)%5+5*m];R.high=A.high^~k.high&D.high,R.low=A.low^~k.low&D.low}R=n[0];var O=u[a];R.high^=O.high,R.low^=O.low}},_doFinalize:function(){var e=this._data,n=e.words;this._nDataBytes;var r=8*e.sigBytes,i=32*this.blockSize;n[r>>>5]|=1<<24-r%32,n[(t.ceil((r+1)/i)*i>>>5)-1]|=128,e.sigBytes=4*n.length,this._process();for(var s=this._state,a=this.cfg.outputLength/8,c=a/8,l=[],u=0;u<c;u++){var d=s[u],f=d.high,p=d.low;f=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8),p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),l.push(p),l.push(f)}return new o.init(l,a)},clone:function(){for(var e=i.clone.call(this),t=e._state=this._state.slice(0),n=0;n<25;n++)t[n]=t[n].clone();return e}});n.SHA3=i._createHelper(f),n.HmacSHA3=i._createHmacHelper(f)}(Math),e.SHA3));var e}var te,ne={exports:{}};var re,oe={exports:{}};function ie(){return re||(re=1,oe.exports=(e=w(),n=(t=e).lib.Base,r=t.enc.Utf8,void(t.algo.HMAC=n.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=r.parse(t));var n=e.blockSize,o=4*n;t.sigBytes>o&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),s=this._iKey=t.clone(),a=i.words,c=s.words,l=0;l<n;l++)a[l]^=1549556828,c[l]^=909522486;i.sigBytes=s.sigBytes=o,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})))),oe.exports;var e,t,n,r}var se,ae={exports:{}};var ce,le={exports:{}};function ue(){return ce||(ce=1,le.exports=(a=w(),j(),ie(),t=(e=a).lib,n=t.Base,r=t.WordArray,o=e.algo,i=o.MD5,s=o.EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:i,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n,o=this.cfg,i=o.hasher.create(),s=r.create(),a=s.words,c=o.keySize,l=o.iterations;a.length<c;){n&&i.update(n),n=i.update(e).finalize(t),i.reset();for(var u=1;u<l;u++)n=i.finalize(n),i.reset();s.concat(n)}return s.sigBytes=4*c,s}}),e.EvpKDF=function(e,t,n){return s.create(n).compute(e,t)},a.EvpKDF)),le.exports;var e,t,n,r,o,i,s,a}var de,fe={exports:{}};function pe(){return de||(de=1,fe.exports=(e=w(),ue(),void(e.lib.Cipher||function(t){var n=e,r=n.lib,o=r.Base,i=r.WordArray,s=r.BufferedBlockAlgorithm,a=n.enc;a.Utf8;var c=a.Base64,l=n.algo.EvpKDF,u=r.Cipher=s.extend({cfg:o.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){s.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?b:y}return function(t){return{encrypt:function(n,r,o){return e(r).encrypt(t,n,r,o)},decrypt:function(n,r,o){return e(r).decrypt(t,n,r,o)}}}}()});r.StreamCipher=u.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var d=n.mode={},f=r.BlockCipherMode=o.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),p=d.CBC=function(){var e=f.extend();function n(e,n,r){var o,i=this._iv;i?(o=i,this._iv=t):o=this._prevBlock;for(var s=0;s<r;s++)e[n+s]^=o[s]}return e.Encryptor=e.extend({processBlock:function(e,t){var r=this._cipher,o=r.blockSize;n.call(this,e,t,o),r.encryptBlock(e,t),this._prevBlock=e.slice(t,t+o)}}),e.Decryptor=e.extend({processBlock:function(e,t){var r=this._cipher,o=r.blockSize,i=e.slice(t,t+o);r.decryptBlock(e,t),n.call(this,e,t,o),this._prevBlock=i}}),e}(),h=(n.pad={}).Pkcs7={pad:function(e,t){for(var n=4*t,r=n-e.sigBytes%n,o=r<<24|r<<16|r<<8|r,s=[],a=0;a<r;a+=4)s.push(o);var c=i.create(s,r);e.concat(c)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}};r.BlockCipher=u.extend({cfg:u.cfg.extend({mode:p,padding:h}),reset:function(){var e;u.reset.call(this);var t=this.cfg,n=t.iv,r=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=r.createEncryptor:(e=r.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,n&&n.words):(this._mode=e.call(r,this,n&&n.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4});var m=r.CipherParams=o.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),v=(n.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,n=e.salt;return(n?i.create([1398893684,1701076831]).concat(n).concat(t):t).toString(c)},parse:function(e){var t,n=c.parse(e),r=n.words;return 1398893684==r[0]&&1701076831==r[1]&&(t=i.create(r.slice(2,4)),r.splice(0,4),n.sigBytes-=16),m.create({ciphertext:n,salt:t})}},y=r.SerializableCipher=o.extend({cfg:o.extend({format:v}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var o=e.createEncryptor(n,r),i=o.finalize(t),s=o.cfg;return m.create({ciphertext:i,key:n,iv:s.iv,algorithm:e,mode:s.mode,padding:s.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),e.createDecryptor(n,r).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),g=(n.kdf={}).OpenSSL={execute:function(e,t,n,r){r||(r=i.random(8));var o=l.create({keySize:t+n}).compute(e,r),s=i.create(o.words.slice(t),4*n);return o.sigBytes=4*t,m.create({key:o,iv:s,salt:r})}},b=r.PasswordBasedCipher=y.extend({cfg:y.cfg.extend({kdf:g}),encrypt:function(e,t,n,r){var o=(r=this.cfg.extend(r)).kdf.execute(n,e.keySize,e.ivSize);r.iv=o.iv;var i=y.encrypt.call(this,e,t,o.key,r);return i.mixIn(o),i},decrypt:function(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var o=r.kdf.execute(n,e.keySize,e.ivSize,t.salt);return r.iv=o.iv,y.decrypt.call(this,e,t,o.key,r)}})}()))),fe.exports;var e}var he,me={exports:{}};var ve,ye={exports:{}};var ge,be={exports:{}};function we(){return ge?be.exports:(ge=1,be.exports=(e=w(),pe(),e.mode.CTRGladman=function(){var t=e.lib.BlockCipherMode.extend();function n(e){if(255==(e>>24&255)){var t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}else e+=1<<24;return e}function r(e){return 0===(e[0]=n(e[0]))&&(e[1]=n(e[1])),e}var o=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,o=n.blockSize,i=this._iv,s=this._counter;i&&(s=this._counter=i.slice(0),this._iv=void 0),r(s);var a=s.slice(0);n.encryptBlock(a,0);for(var c=0;c<o;c++)e[t+c]^=a[c]}});return t.Decryptor=o,t}(),e.mode.CTRGladman));var e}var xe,Ee={exports:{}};var Se,Ce={exports:{}};var Pe,_e={exports:{}};var Te,Re={exports:{}};var Ae,ke={exports:{}};var De,Oe={exports:{}};var Me,Le={exports:{}};var Be,Ie={exports:{}};var Fe,$e={exports:{}};var Ve,Ne={exports:{}};function je(){return Ve?Ne.exports:(Ve=1,Ne.exports=(e=w(),O(),$(),ue(),pe(),function(){var t=e,n=t.lib,r=n.WordArray,o=n.BlockCipher,i=t.algo,s=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],a=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],l=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],d=i.DES=o.extend({_doReset:function(){for(var e=this._key.words,t=[],n=0;n<56;n++){var r=s[n]-1;t[n]=e[r>>>5]>>>31-r%32&1}for(var o=this._subKeys=[],i=0;i<16;i++){var l=o[i]=[],u=c[i];for(n=0;n<24;n++)l[n/6|0]|=t[(a[n]-1+u)%28]<<31-n%6,l[4+(n/6|0)]|=t[28+(a[n+24]-1+u)%28]<<31-n%6;for(l[0]=l[0]<<1|l[0]>>>31,n=1;n<7;n++)l[n]=l[n]>>>4*(n-1)+3;l[7]=l[7]<<5|l[7]>>>27}var d=this._invSubKeys=[];for(n=0;n<16;n++)d[n]=o[15-n]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,n){this._lBlock=e[t],this._rBlock=e[t+1],f.call(this,4,252645135),f.call(this,16,65535),p.call(this,2,858993459),p.call(this,8,16711935),f.call(this,1,1431655765);for(var r=0;r<16;r++){for(var o=n[r],i=this._lBlock,s=this._rBlock,a=0,c=0;c<8;c++)a|=l[c][((s^o[c])&u[c])>>>0];this._lBlock=s,this._rBlock=i^a}var d=this._lBlock;this._lBlock=this._rBlock,this._rBlock=d,f.call(this,1,1431655765),p.call(this,8,16711935),p.call(this,2,858993459),f.call(this,16,65535),f.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function f(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<<e}function p(e,t){var n=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<<e}t.DES=o._createHelper(d);var h=i.TripleDES=o.extend({_doReset:function(){var e=this._key.words;if(2!==e.length&&4!==e.length&&e.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var t=e.slice(0,2),n=e.length<4?e.slice(0,2):e.slice(2,4),o=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=d.createEncryptor(r.create(t)),this._des2=d.createEncryptor(r.create(n)),this._des3=d.createEncryptor(r.create(o))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});t.TripleDES=o._createHelper(h)}(),e.TripleDES));var e}var He,ze={exports:{}};var We,Ue={exports:{}};var Ke,Xe,Ye,qe,Ge,Ze,Je,Qe={exports:{}};function et(){return et=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},et.apply(this,arguments)}function tt(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}\``)}]},nt(o,...n)]}function nt(...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 rt(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function ot(...t){return e.useCallback(rt(...t),t)}function it(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}w(),S(),_(),A(),O(),B(),$(),j(),W(),U||(U=1,K.exports=(Je=w(),W(),Ye=(Xe=Je).lib.WordArray,qe=Xe.algo,Ge=qe.SHA256,Ze=qe.SHA224=Ge.extend({_doReset:function(){this._hash=new Ye.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=Ge._doFinalize.call(this);return e.sigBytes-=4,e}}),Xe.SHA224=Ge._createHelper(Ze),Xe.HmacSHA224=Ge._createHmacHelper(Ze),Je.SHA224)),q(),function(){return G?Z.exports:(G=1,Z.exports=(a=w(),S(),q(),t=(e=a).x64,n=t.Word,r=t.WordArray,o=e.algo,i=o.SHA512,s=o.SHA384=i.extend({_doReset:function(){this._hash=new r.init([new n.init(3418070365,3238371032),new n.init(1654270250,914150663),new n.init(2438529370,812702999),new n.init(355462360,4144912697),new n.init(1731405415,4290775857),new n.init(2394180231,1750603025),new n.init(3675008525,1694076839),new n.init(1203062813,3204075428)])},_doFinalize:function(){var e=i._doFinalize.call(this);return e.sigBytes-=16,e}}),e.SHA384=i._createHelper(s),e.HmacSHA384=i._createHmacHelper(s),a.SHA384));var e,t,n,r,o,i,s,a}(),ee(),function(){return te?ne.exports:(te=1,ne.exports=(e=w(),function(t){var n=e,r=n.lib,o=r.WordArray,i=r.Hasher,s=n.algo,a=o.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),c=o.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),l=o.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),u=o.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),d=o.create([0,1518500249,1859775393,2400959708,2840853838]),f=o.create([1352829926,1548603684,1836072691,2053994217,0]),p=s.RIPEMD160=i.extend({_doReset:function(){this._hash=o.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,o=e[r];e[r]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i,s,p,w,x,E,S,C,P,_,T,R=this._hash.words,A=d.words,k=f.words,D=a.words,O=c.words,M=l.words,L=u.words;for(E=i=R[0],S=s=R[1],C=p=R[2],P=w=R[3],_=x=R[4],n=0;n<80;n+=1)T=i+e[t+D[n]]|0,T+=n<16?h(s,p,w)+A[0]:n<32?m(s,p,w)+A[1]:n<48?v(s,p,w)+A[2]:n<64?y(s,p,w)+A[3]:g(s,p,w)+A[4],T=(T=b(T|=0,M[n]))+x|0,i=x,x=w,w=b(p,10),p=s,s=T,T=E+e[t+O[n]]|0,T+=n<16?g(S,C,P)+k[0]:n<32?y(S,C,P)+k[1]:n<48?v(S,C,P)+k[2]:n<64?m(S,C,P)+k[3]:h(S,C,P)+k[4],T=(T=b(T|=0,L[n]))+_|0,E=_,_=P,P=b(C,10),C=S,S=T;T=R[1]+p+P|0,R[1]=R[2]+w+_|0,R[2]=R[3]+x+E|0,R[3]=R[4]+i+S|0,R[4]=R[0]+s+C|0,R[0]=T},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process();for(var o=this._hash,i=o.words,s=0;s<5;s++){var a=i[s];i[s]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}return o},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function h(e,t,n){return e^t^n}function m(e,t,n){return e&t|~e&n}function v(e,t,n){return(e|~t)^n}function y(e,t,n){return e&n|t&~n}function g(e,t,n){return e^(t|~n)}function b(e,t){return e<<t|e>>>32-t}n.RIPEMD160=i._createHelper(p),n.HmacRIPEMD160=i._createHmacHelper(p)}(),e.RIPEMD160));var e}(),ie(),function(){return se?ae.exports:(se=1,ae.exports=(c=w(),j(),ie(),t=(e=c).lib,n=t.Base,r=t.WordArray,o=e.algo,i=o.SHA1,s=o.HMAC,a=o.PBKDF2=n.extend({cfg:n.extend({keySize:4,hasher:i,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,o=s.create(n.hasher,e),i=r.create(),a=r.create([1]),c=i.words,l=a.words,u=n.keySize,d=n.iterations;c.length<u;){var f=o.update(t).finalize(a);o.reset();for(var p=f.words,h=p.length,m=f,v=1;v<d;v++){m=o.finalize(m),o.reset();for(var y=m.words,g=0;g<h;g++)p[g]^=y[g]}i.concat(f),l[0]++}return i.sigBytes=4*u,i}}),e.PBKDF2=function(e,t,n){return a.create(n).compute(e,t)},c.PBKDF2));var e,t,n,r,o,i,s,a,c}(),ue(),pe(),function(){return he?me.exports:(he=1,me.exports=(e=w(),pe(),e.mode.CFB=function(){var t=e.lib.BlockCipherMode.extend();function n(e,t,n,r){var o,i=this._iv;i?(o=i.slice(0),this._iv=void 0):o=this._prevBlock,r.encryptBlock(o,0);for(var s=0;s<n;s++)e[t+s]^=o[s]}return t.Encryptor=t.extend({processBlock:function(e,t){var r=this._cipher,o=r.blockSize;n.call(this,e,t,o,r),this._prevBlock=e.slice(t,t+o)}}),t.Decryptor=t.extend({processBlock:function(e,t){var r=this._cipher,o=r.blockSize,i=e.slice(t,t+o);n.call(this,e,t,o,r),this._prevBlock=i}}),t}(),e.mode.CFB));var e}(),function(){return ve?ye.exports:(ve=1,ye.exports=(n=w(),pe(),n.mode.CTR=(e=n.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,o=this._iv,i=this._counter;o&&(i=this._counter=o.slice(0),this._iv=void 0);var s=i.slice(0);n.encryptBlock(s,0),i[r-1]=i[r-1]+1|0;for(var a=0;a<r;a++)e[t+a]^=s[a]}}),e.Decryptor=t,e),n.mode.CTR));var e,t,n}(),we(),function(){return xe?Ee.exports:(xe=1,Ee.exports=(n=w(),pe(),n.mode.OFB=(e=n.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,o=this._iv,i=this._keystream;o&&(i=this._keystream=o.slice(0),this._iv=void 0),n.encryptBlock(i,0);for(var s=0;s<r;s++)e[t+s]^=i[s]}}),e.Decryptor=t,e),n.mode.OFB));var e,t,n}(),function(){return Se?Ce.exports:(Se=1,Ce.exports=(t=w(),pe(),t.mode.ECB=((e=t.lib.BlockCipherMode.extend()).Encryptor=e.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),e.Decryptor=e.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),e),t.mode.ECB));var e,t}(),function(){return Pe?_e.exports:(Pe=1,_e.exports=(e=w(),pe(),e.pad.AnsiX923={pad:function(e,t){var n=e.sigBytes,r=4*t,o=r-n%r,i=n+o-1;e.clamp(),e.words[i>>>2]|=o<<24-i%4*8,e.sigBytes+=o},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923));var e}(),function(){return Te?Re.exports:(Te=1,Re.exports=(e=w(),pe(),e.pad.Iso10126={pad:function(t,n){var r=4*n,o=r-t.sigBytes%r;t.concat(e.lib.WordArray.random(o-1)).concat(e.lib.WordArray.create([o<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126));var e}(),function(){return Ae?ke.exports:(Ae=1,ke.exports=(e=w(),pe(),e.pad.Iso97971={pad:function(t,n){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,n)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971));var e}(),function(){return De?Oe.exports:(De=1,Oe.exports=(e=w(),pe(),e.pad.ZeroPadding={pad:function(e,t){var n=4*t;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){var t=e.words,n=e.sigBytes-1;for(n=e.sigBytes-1;n>=0;n--)if(t[n>>>2]>>>24-n%4*8&255){e.sigBytes=n+1;break}}},e.pad.ZeroPadding));var e}(),function(){return Me?Le.exports:(Me=1,Le.exports=(e=w(),pe(),e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding));var e}(),function(){return Be?Ie.exports:(Be=1,Ie.exports=(r=w(),pe(),t=(e=r).lib.CipherParams,n=e.enc.Hex,e.format.Hex={stringify:function(e){return e.ciphertext.toString(n)},parse:function(e){var r=n.parse(e);return t.create({ciphertext:r})}},r.format.Hex));var e,t,n,r}(),function(){return Fe?$e.exports:(Fe=1,$e.exports=(e=w(),O(),$(),ue(),pe(),function(){var t=e,n=t.lib.BlockCipher,r=t.algo,o=[],i=[],s=[],a=[],c=[],l=[],u=[],d=[],f=[],p=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var n=0,r=0;for(t=0;t<256;t++){var h=r^r<<1^r<<2^r<<3^r<<4;h=h>>>8^255&h^99,o[n]=h,i[h]=n;var m=e[n],v=e[m],y=e[v],g=257*e[h]^16843008*h;s[n]=g<<24|g>>>8,a[n]=g<<16|g>>>16,c[n]=g<<8|g>>>24,l[n]=g,g=16843009*y^65537*v^257*m^16843008*n,u[h]=g<<24|g>>>8,d[h]=g<<16|g>>>16,f[h]=g<<8|g>>>24,p[h]=g,n?(n=m^e[e[e[y^m]]],r^=e[e[r]]):n=r=1}}();var h=[0,1,2,4,8,16,32,64,128,27,54],m=r.AES=n.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,r=4*((this._nRounds=n+6)+1),i=this._keySchedule=[],s=0;s<r;s++)s<n?i[s]=t[s]:(l=i[s-1],s%n?n>6&&s%n==4&&(l=o[l>>>24]<<24|o[l>>>16&255]<<16|o[l>>>8&255]<<8|o[255&l]):(l=o[(l=l<<8|l>>>24)>>>24]<<24|o[l>>>16&255]<<16|o[l>>>8&255]<<8|o[255&l],l^=h[s/n|0]<<24),i[s]=i[s-n]^l);for(var a=this._invKeySchedule=[],c=0;c<r;c++){if(s=r-c,c%4)var l=i[s];else l=i[s-4];a[c]=c<4||s<=4?l:u[o[l>>>24]]^d[o[l>>>16&255]]^f[o[l>>>8&255]]^p[o[255&l]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,s,a,c,l,o)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,u,d,f,p,i),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,o,i,s,a){for(var c=this._nRounds,l=e[t]^n[0],u=e[t+1]^n[1],d=e[t+2]^n[2],f=e[t+3]^n[3],p=4,h=1;h<c;h++){var m=r[l>>>24]^o[u>>>16&255]^i[d>>>8&255]^s[255&f]^n[p++],v=r[u>>>24]^o[d>>>16&255]^i[f>>>8&255]^s[255&l]^n[p++],y=r[d>>>24]^o[f>>>16&255]^i[l>>>8&255]^s[255&u]^n[p++],g=r[f>>>24]^o[l>>>16&255]^i[u>>>8&255]^s[255&d]^n[p++];l=m,u=v,d=y,f=g}m=(a[l>>>24]<<24|a[u>>>16&255]<<16|a[d>>>8&255]<<8|a[255&f])^n[p++],v=(a[u>>>24]<<24|a[d>>>16&255]<<16|a[f>>>8&255]<<8|a[255&l])^n[p++],y=(a[d>>>24]<<24|a[f>>>16&255]<<16|a[l>>>8&255]<<8|a[255&u])^n[p++],g=(a[f>>>24]<<24|a[l>>>16&255]<<16|a[u>>>8&255]<<8|a[255&d])^n[p++],e[t]=m,e[t+1]=v,e[t+2]=y,e[t+3]=g},keySize:8});t.AES=n._createHelper(m)}(),e.AES));var e}(),je(),function(){return He?ze.exports:(He=1,ze.exports=(e=w(),O(),$(),ue(),pe(),function(){var t=e,n=t.lib.StreamCipher,r=t.algo,o=r.RC4=n.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes,r=this._S=[],o=0;o<256;o++)r[o]=o;o=0;for(var i=0;o<256;o++){var s=o%n,a=t[s>>>2]>>>24-s%4*8&255;i=(i+r[o]+a)%256;var c=r[o];r[o]=r[i],r[i]=c}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=i.call(this)},keySize:8,ivSize:0});function i(){for(var e=this._S,t=this._i,n=this._j,r=0,o=0;o<4;o++){n=(n+e[t=(t+1)%256])%256;var i=e[t];e[t]=e[n],e[n]=i,r|=e[(e[t]+e[n])%256]<<24-8*o}return this._i=t,this._j=n,r}t.RC4=n._createHelper(o);var s=r.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),_doReset:function(){o._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)i.call(this)}});t.RC4Drop=n._createHelper(s)}(),e.RC4));var e}(),function(){return We?Ue.exports:(We=1,Ue.exports=(e=w(),O(),$(),ue(),pe(),function(){var t=e,n=t.lib.StreamCipher,r=t.algo,o=[],i=[],s=[],a=r.Rabbit=n.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,n=0;n<4;n++)e[n]=16711935&(e[n]<<8|e[n]>>>24)|4278255360&(e[n]<<24|e[n]>>>8);var r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],o=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,n=0;n<4;n++)c.call(this);for(n=0;n<8;n++)o[n]^=r[n+4&7];if(t){var i=t.words,s=i[0],a=i[1],l=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),d=l>>>16|4294901760&u,f=u<<16|65535&l;for(o[0]^=l,o[1]^=d,o[2]^=u,o[3]^=f,o[4]^=l,o[5]^=d,o[6]^=u,o[7]^=f,n=0;n<4;n++)c.call(this)}},_doProcessBlock:function(e,t){var n=this._X;c.call(this),o[0]=n[0]^n[5]>>>16^n[3]<<16,o[1]=n[2]^n[7]>>>16^n[5]<<16,o[2]=n[4]^n[1]>>>16^n[7]<<16,o[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)o[r]=16711935&(o[r]<<8|o[r]>>>24)|4278255360&(o[r]<<24|o[r]>>>8),e[t+r]^=o[r]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,n=0;n<8;n++)i[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this._b=t[7]>>>0<i[7]>>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],o=65535&r,a=r>>>16,c=((o*o>>>17)+o*a>>>15)+a*a,l=((4294901760&r)*r|0)+((65535&r)*r|0);s[n]=c^l}e[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,e[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,e[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,e[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,e[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,e[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,e[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,e[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}t.Rabbit=n._createHelper(a)}(),e.Rabbit));var e}(),function(){return Ke?Qe.exports:(Ke=1,Qe.exports=(e=w(),O(),$(),ue(),pe(),function(){var t=e,n=t.lib.StreamCipher,r=t.algo,o=[],i=[],s=[],a=r.RabbitLegacy=n.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],r=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var o=0;o<4;o++)c.call(this);for(o=0;o<8;o++)r[o]^=n[o+4&7];if(t){var i=t.words,s=i[0],a=i[1],l=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),d=l>>>16|4294901760&u,f=u<<16|65535&l;for(r[0]^=l,r[1]^=d,r[2]^=u,r[3]^=f,r[4]^=l,r[5]^=d,r[6]^=u,r[7]^=f,o=0;o<4;o++)c.call(this)}},_doProcessBlock:function(e,t){var n=this._X;c.call(this),o[0]=n[0]^n[5]>>>16^n[3]<<16,o[1]=n[2]^n[7]>>>16^n[5]<<16,o[2]=n[4]^n[1]>>>16^n[7]<<16,o[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)o[r]=16711935&(o[r]<<8|o[r]>>>24)|4278255360&(o[r]<<24|o[r]>>>8),e[t+r]^=o[r]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,n=0;n<8;n++)i[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this._b=t[7]>>>0<i[7]>>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],o=65535&r,a=r>>>16,c=((o*o>>>17)+o*a>>>15)+a*a,l=((4294901760&r)*r|0)+((65535&r)*r|0);s[n]=c^l}e[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,e[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,e[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,e[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,e[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,e[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,e[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,e[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}t.RabbitLegacy=n._createHelper(a)}(),e.RabbitLegacy));var e}();const st=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?e.useLayoutEffect:()=>{},at=r["useId".toString()]||(()=>{});let ct=0;function lt(e){const[t,n]=r.useState(at());return st((()=>{e||n((e=>null!=e?e:String(ct++)))}),[e]),e||(t?`radix-${t}`:"")}function ut(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 dt({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=ut(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=ut(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 ft=e.forwardRef(((t,n)=>{const{children:r,...o}=t,i=e.Children.toArray(r),s=i.find(mt);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(pt,et({},o,{ref:n}),e.isValidElement(t)?e.cloneElement(t,void 0,r):null)}return e.createElement(pt,et({},o,{ref:n}),r)}));ft.displayName="Slot";const pt=e.forwardRef(((t,n)=>{const{children:r,...o}=t;return e.isValidElement(r)?e.cloneElement(r,{...vt(o,r.props),ref:rt(n,r.ref)}):e.Children.count(r)>1?e.Children.only(null):null}));pt.displayName="SlotClone";const ht=({children:t})=>e.createElement(e.Fragment,null,t);function mt(t){return e.isValidElement(t)&&t.type===ht}function vt(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 yt=["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?ft:n;return e.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),e.createElement(s,et({},i,{ref:r}))}));return r.displayName=`Primitive.${n}`,{...t,[n]:r}}),{});const gt="dismissableLayer.update",bt="dismissableLayer.pointerDownOutside",wt="dismissableLayer.focusOutside";let xt;const Et=e.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),St=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(Et),[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,[,m]=e.useState({}),v=ot(n,(e=>p(e))),y=Array.from(d.layers),[g]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),b=y.indexOf(g),w=f?y.indexOf(f):-1,x=d.layersWithOutsidePointerEventsDisabled.size>0,E=w>=b,S=function(t,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=ut(t),o=e.useRef(!1),i=e.useRef((()=>{}));return e.useEffect((()=>{const e=e=>{if(e.target&&!o.current){let t=function(){Pt(bt,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)));E&&!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=ut(t),o=e.useRef(!1);return e.useEffect((()=>{const e=e=>{if(e.target&&!o.current){Pt(wt,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=ut(t);e.useEffect((()=>{const e=e=>{"Escape"===e.key&&r(e)};return n.addEventListener("keydown",e),()=>n.removeEventListener("keydown",e)}),[r,n])}((e=>{w===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&&(xt=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),Ct(),()=>{o&&1===d.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=xt)}}),[f,h,o,d]),e.useEffect((()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),Ct())}),[f,d]),e.useEffect((()=>{const e=()=>m({});return document.addEventListener(gt,e),()=>document.removeEventListener(gt,e)}),[]),e.createElement(yt.div,et({},u,{ref:v,style:{pointerEvents:x?E?"auto":"none":void 0,...t.style},onFocusCapture:it(t.onFocusCapture,C.onFocusCapture),onBlurCapture:it(t.onBlurCapture,C.onBlurCapture),onPointerDownCapture:it(t.onPointerDownCapture,S.onPointerDownCapture)}))}));function Ct(){const e=new CustomEvent(gt);document.dispatchEvent(e)}function Pt(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 _t="focusScope.autoFocusOnMount",Tt="focusScope.autoFocusOnUnmount",Rt={bubbles:!1,cancelable:!0},At=e.forwardRef(((t,n)=>{const{loop:r=!1,trapped:o=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...a}=t,[c,l]=e.useState(null),u=ut(i),d=ut(s),f=e.useRef(null),p=ot(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:Mt(f.current,{select:!0})},t=function(e){!h.paused&&c&&(c.contains(e.relatedTarget)||Mt(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){Lt.add(h);const t=document.activeElement;if(!c.contains(t)){const n=new CustomEvent(_t,Rt);c.addEventListener(_t,u),c.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Mt(r,{select:t}),document.activeElement!==n)return}((e=kt(c),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&Mt(c))}return()=>{c.removeEventListener(_t,u),setTimeout((()=>{const e=new CustomEvent(Tt,Rt);c.addEventListener(Tt,d),c.dispatchEvent(e),e.defaultPrevented||Mt(null!=t?t:document.body,{select:!0}),c.removeEventListener(Tt,d),Lt.remove(h)}),0)}}var e}),[c,u,d,h]);const m=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=kt(e),n=Dt(t,e),r=Dt(t.reverse(),e);return[n,r]}(t);o&&i?e.shiftKey||n!==i?e.shiftKey&&n===o&&(e.preventDefault(),r&&Mt(i,{select:!0})):(e.preventDefault(),r&&Mt(o,{select:!0})):n===t&&e.preventDefault()}}),[r,o,h.paused]);return e.createElement(yt.div,et({tabIndex:-1},a,{ref:p,onKeyDown:m}))}));function kt(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 Dt(e,t){for(const n of e)if(!Ot(n,{upTo:t}))return n}function Ot(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 Mt(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 Lt=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=Bt(e,t),e.unshift(t)},remove(t){var n;e=Bt(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function Bt(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}const It=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(yt.div,et({},s,{ref:r})),i):null}));const Ft=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=$t(i.current);a.current="mounted"===l?e:"none"}),[l]),st((()=>{const e=i.current,t=s.current;if(t!==n){const r=a.current,o=$t(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]),st((()=>{if(r){const e=e=>{const n=$t(i.current).includes(e.animationName);e.target===r&&n&&t.flushSync((()=>u("ANIMATION_END")))},n=e=>{e.target===r&&(a.current=$t(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=ot(i.ref,s.ref);return"function"==typeof o||i.isPresent?e.cloneElement(s,{ref:a}):null};function $t(e){return(null==e?void 0:e.animationName)||"none"}Ft.displayName="Presence";let Vt=0;function Nt(){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:jt()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:jt()),Vt++,()=>{1===Vt&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),Vt--}}),[])}function jt(){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 Ht=function(){return Ht=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},Ht.apply(this,arguments)};function zt(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 Wt="right-scroll-bar-position",Ut="width-before-scroll-bar";function Kt(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 Xt(e){return e}var Yt=function(e){var t=e.sideCar,n=zt(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,Ht({},n))};Yt.isSideCarExport=!0;var qt=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=Xt);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=Ht({async:!0,ssr:!1},e),t}(),Gt=function(){},Zt=r.forwardRef((function(e,t){var n=r.useRef(null),o=r.useState({onScrollCapture:Gt,onWheelCapture:Gt,onTouchMoveCapture:Gt}),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,y=e.as,g=void 0===y?"div":y,b=zt(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),w=p,x=Kt([n,t]),E=Ht(Ht({},b),i);return r.createElement(r.Fragment,null,d&&r.createElement(w,{sideCar:qt,removeScrollBar:u,shards:f,noIsolation:h,inert:m,setCallbacks:s,allowPinchZoom:!!v,lockRef:n}),a?r.cloneElement(r.Children.only(c),Ht(Ht({},E),{ref:x})):r.createElement(g,Ht({},E,{className:l,ref:x}),c))}));Zt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Zt.classNames={fullWidth:Ut,zeroRight:Wt};function Jt(){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 Qt=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=Jt())&&(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)}}},en=function(){var e,t=(e=Qt(),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}},tn={left:0,top:0,right:0,gap:0},nn=function(e){return parseInt(e||"",10)||0},rn=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return tn;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[nn(n),nn(r),nn(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])}},on=en(),sn=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(Wt," {\n right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(Ut," {\n margin-right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(Wt," .").concat(Wt," {\n right: 0 ").concat(r,";\n }\n \n .").concat(Ut," .").concat(Ut," {\n margin-right: 0 ").concat(r,";\n }\n \n body {\n ").concat("--removed-body-scroll-bar-size",": ").concat(a,"px;\n }\n")},an=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,i=void 0===o?"margin":o,s=r.useMemo((function(){return rn(i)}),[i]);return r.createElement(on,{styles:sn(s,!t,i,n?"":"!important")})},cn=!1;if("undefined"!=typeof window)try{var ln=Object.defineProperty({},"passive",{get:function(){return cn=!0,!0}});window.addEventListener("test",ln,ln),window.removeEventListener("test",ln,ln)}catch(rb){cn=!1}var un=!!cn&&{passive:!1},dn=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])},fn=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),pn(e,n)){var r=hn(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},pn=function(e,t){return"v"===e?function(e){return dn(e,"overflowY")}(t):function(e){return dn(e,"overflowX")}(t)},hn=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},mn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},vn=function(e){return[e.deltaX,e.deltaY]},yn=function(e){return e&&"current"in e?e.current:e},gn=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},bn=0,wn=[];const xn=(En=function(e){var t=r.useRef([]),n=r.useRef([0,0]),o=r.useRef(),i=r.useState(bn++)[0],s=r.useState((function(){return en()}))[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(yn),!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=mn(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=fn(d,u);if(!f)return!0;if(f?r=d:(r="v"===d?"h":"v",f=fn(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=hn(e,a),h=p[0],m=p[1]-p[2]-i*h;(h||m)&&pn(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(wn.length&&wn[wn.length-1]===s){var r="deltaY"in n?vn(n):mn(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(yn).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=mn(e),o.current=void 0}),[]),f=r.useCallback((function(t){u(t.type,vn(t),t.target,c(t,e.lockRef.current))}),[]),p=r.useCallback((function(t){u(t.type,mn(t),t.target,c(t,e.lockRef.current))}),[]);r.useEffect((function(){return wn.push(s),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",l,un),document.addEventListener("touchmove",l,un),document.addEventListener("touchstart",d,un),function(){wn=wn.filter((function(e){return e!==s})),document.removeEventListener("wheel",l,un),document.removeEventListener("touchmove",l,un),document.removeEventListener("touchstart",d,un)}}),[]);var h=e.removeScrollBar,m=e.inert;return r.createElement(r.Fragment,null,m?r.createElement(s,{styles:gn(i)}):null,h?r.createElement(an,{gapMode:"margin"}):null)},qt.useMedium(En),Yt);var En,Sn=r.forwardRef((function(e,t){return r.createElement(Zt,Ht({},e,{ref:t,sideCar:xn}))}));Sn.classNames=Zt.classNames;const Cn=Sn;var Pn=new WeakMap,_n=new WeakMap,Tn={},Rn=0,An=function(e){return e&&(e.host||An(e.parentNode))},kn=function(e,t,n,r){var o=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=An(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]);Tn[n]||(Tn[n]=new WeakMap);var i=Tn[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=(Pn.get(e)||0)+1,l=(i.get(e)||0)+1;Pn.set(e,c),i.set(e,l),s.push(e),1===c&&o&&_n.set(e,!0),1===l&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}}))};return u(t),a.clear(),Rn++,function(){s.forEach((function(e){var t=Pn.get(e)-1,o=i.get(e)-1;Pn.set(e,t),i.set(e,o),t||(_n.has(e)||e.removeAttribute(r),_n.delete(e)),o||e.removeAttribute(n)})),--Rn||(Pn=new WeakMap,Pn=new WeakMap,_n=new WeakMap,Tn={})}},Dn=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]"))),kn(r,o,n,"aria-hidden")):function(){return null}};const On="Dialog",[Mn,Ln]=tt(On),[Bn,In]=Mn(On),Fn="DialogPortal",[$n,Vn]=Mn(Fn,{forceMount:void 0}),Nn="DialogOverlay",jn=e.forwardRef(((t,n)=>{const r=Vn(Nn,t.__scopeDialog),{forceMount:o=r.forceMount,...i}=t,s=In(Nn,t.__scopeDialog);return s.modal?e.createElement(Ft,{present:o||s.open},e.createElement(Hn,et({},i,{ref:n}))):null})),Hn=e.forwardRef(((t,n)=>{const{__scopeDialog:r,...o}=t,i=In(Nn,r);return e.createElement(Cn,{as:ft,allowPinchZoom:!0,shards:[i.contentRef]},e.createElement(yt.div,et({"data-state":Yn(i.open)},o,{ref:n,style:{pointerEvents:"auto",...o.style}})))})),zn="DialogContent",Wn=e.forwardRef(((t,n)=>{const r=Vn(zn,t.__scopeDialog),{forceMount:o=r.forceMount,...i}=t,s=In(zn,t.__scopeDialog);return e.createElement(Ft,{present:o||s.open},s.modal?e.createElement(Un,et({},i,{ref:n})):e.createElement(Kn,et({},i,{ref:n})))})),Un=e.forwardRef(((t,n)=>{const r=In(zn,t.__scopeDialog),o=e.useRef(null),i=ot(n,r.contentRef,o);return e.useEffect((()=>{const e=o.current;if(e)return Dn(e)}),[]),e.createElement(Xn,et({},t,{ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:it(t.onCloseAutoFocus,(e=>{var t;e.preventDefault(),null===(t=r.triggerRef.current)||void 0===t||t.focus()})),onPointerDownOutside:it(t.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:it(t.onFocusOutside,(e=>e.preventDefault()))}))})),Kn=e.forwardRef(((t,n)=>{const r=In(zn,t.__scopeDialog),o=e.useRef(!1);return e.createElement(Xn,et({},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()}}))})),Xn=e.forwardRef(((t,n)=>{const{__scopeDialog:r,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:s,...a}=t,c=In(zn,r),l=ot(n,e.useRef(null));return Nt(),e.createElement(e.Fragment,null,e.createElement(At,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:s},e.createElement(St,et({role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":Yn(c.open)},a,{ref:l,onDismiss:()=>c.onOpenChange(!1)}))),!1)}));function Yn(e){return e?"open":"closed"}const qn=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]=dt({prop:o,defaultProp:i,onChange:s});return e.createElement(Bn,{scope:n,triggerRef:c,contentRef:l,contentId:lt(),titleId:lt(),descriptionId:lt(),open:u,onOpenChange:d,onOpenToggle:e.useCallback((()=>d((e=>!e))),[d]),modal:a},r)},Gn=t=>{const{__scopeDialog:n,forceMount:r,children:o,container:i}=t,s=In(Fn,n);return e.createElement($n,{scope:n,forceMount:r},e.Children.map(o,(t=>e.createElement(Ft,{present:r||s.open},e.createElement(It,{asChild:!0,container:i},t)))))},Zn=jn,Jn=Wn;function Qn(e){return e.split("-")[0]}function er(e){return e.split("-")[1]}function tr(e){return["top","bottom"].includes(Qn(e))?"x":"y"}function nr(e){return"y"===e?"height":"width"}function rr(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=tr(t),c=nr(a),l=r[c]/2-o[c]/2,u="x"===a;let d;switch(Qn(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(er(t)){case"start":d[a]-=l*(n&&u?-1:1);break;case"end":d[a]+=l*(n&&u?-1:1)}return d}function or(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 ir(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function sr(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=or(p),m=a[f?"floating"===d?"reference":"floating":d],v=ir(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})),y=ir(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-y.top+h.top,bottom:y.bottom-v.bottom+h.bottom,left:v.left-y.left+h.left,right:y.right-v.right+h.right}}const ar=Math.min,cr=Math.max;function lr(e,t,n){return cr(e,ar(t,n))}const ur=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=or(r),u={x:o,y:i},d=tr(s),f=er(s),p=nr(d),h=await c.getDimensions(n),m="y"===d?"top":"left",v="y"===d?"bottom":"right",y=a.reference[p]+a.reference[d]-u[d]-a.floating[p],g=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=y/2-g/2,E=l[m],S=w-h[p]-l[v],C=w/2-h[p]/2+x,P=lr(E,C,S),_=("start"===f?l[m]:l[v])>0&&C!==P&&a.reference[p]<=a.floating[p];return{[d]:u[d]-(_?C<E?E-C:S-C:0),data:{[d]:P,centerOffset:C-P}}}}),dr={left:"right",right:"left",bottom:"top",top:"bottom"};function fr(e){return e.replace(/left|right|bottom|top/g,(e=>dr[e]))}const pr={start:"end",end:"start"};function hr(e){return e.replace(/start|end/g,(e=>pr[e]))}const mr=["top","right","bottom","left"];mr.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);const vr=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=Qn(r),v=[s,...d||(m!==s&&p?function(e){const t=fr(e);return[hr(e),t,hr(t)]}(s):[fr(s)])],y=await sr(t,h),g=[];let b=(null==(n=o.flip)?void 0:n.overflows)||[];if(l&&g.push(y[m]),u){const{main:e,cross:t}=function(e,t,n){void 0===n&&(n=!1);const r=er(e),o=tr(e),i=nr(o);let s="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=fr(s)),{main:s,cross:fr(s)}}(r,i,await(null==a.isRTL?void 0:a.isRTL(c.floating)));g.push(y[e],y[t])}if(b=[...b,{placement:r,overflows:g}],!g.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 yr(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function gr(e){return mr.some((t=>e[t]>=0))}const br=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=yr(await sr(e,{...n,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:gr(t)}}}case"escaped":{const t=yr(await sr(e,{...n,altBoundary:!0}),r.floating);return{data:{escapedOffsets:t,escaped:gr(t)}}}default:return{}}}}};function wr(e){return"x"===e?"y":"x"}const xr=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 sr(t,c),d=tr(Qn(o)),f=wr(d);let p=l[d],h=l[f];if(i){const e="y"===d?"bottom":"right";p=lr(p+u["y"===d?"top":"left"],p,p-u[e])}if(s){const e="y"===f?"bottom":"right";h=lr(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 Er(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function Sr(e){if(null==e)return window;if(!Er(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function Cr(e){return Sr(e).getComputedStyle(e)}function Pr(e){return Er(e)?"":e?(e.nodeName||"").toLowerCase():""}function _r(){const e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function Tr(e){return e instanceof Sr(e).HTMLElement}function Rr(e){return e instanceof Sr(e).Element}function Ar(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Sr(e).ShadowRoot||e instanceof ShadowRoot)}function kr(e){const{overflow:t,overflowX:n,overflowY:r}=Cr(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function Dr(e){return["table","td","th"].includes(Pr(e))}function Or(e){const t=/firefox/i.test(_r()),n=Cr(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 Mr(){return!/^((?!chrome|android).)*safari/i.test(_r())}const Lr=Math.min,Br=Math.max,Ir=Math.round;function Fr(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&&Tr(e)&&(c=e.offsetWidth>0&&Ir(a.width)/e.offsetWidth||1,l=e.offsetHeight>0&&Ir(a.height)/e.offsetHeight||1);const u=Rr(e)?Sr(e):window,d=!Mr()&&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 $r(e){return(t=e,(t instanceof Sr(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function Vr(e){return Rr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Nr(e){return Fr($r(e)).left+Vr(e).scrollLeft}function jr(e,t,n){const r=Tr(t),o=$r(t),i=Fr(e,r&&function(e){const t=Fr(e);return Ir(t.width)!==e.offsetWidth||Ir(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"!==Pr(t)||kr(o))&&(s=Vr(t)),Tr(t)){const e=Fr(t,!0);a.x=e.x+t.clientLeft,a.y=e.y+t.clientTop}else o&&(a.x=Nr(o));return{x:i.left+s.scrollLeft-a.x,y:i.top+s.scrollTop-a.y,width:i.width,height:i.height}}function Hr(e){return"html"===Pr(e)?e:e.assignedSlot||e.parentNode||(Ar(e)?e.host:null)||$r(e)}function zr(e){return Tr(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function Wr(e){const t=Sr(e);let n=zr(e);for(;n&&Dr(n)&&"static"===getComputedStyle(n).position;)n=zr(n);return n&&("html"===Pr(n)||"body"===Pr(n)&&"static"===getComputedStyle(n).position&&!Or(n))?t:n||function(e){let t=Hr(e);for(Ar(t)&&(t=t.host);Tr(t)&&!["html","body"].includes(Pr(t));){if(Or(t))return t;t=t.parentNode}return null}(e)||t}function Ur(e){if(Tr(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=Fr(e);return{width:t.width,height:t.height}}function Kr(e){const t=Hr(e);return["html","body","#document"].includes(Pr(t))?e.ownerDocument.body:Tr(t)&&kr(t)?t:Kr(t)}function Xr(e,t){var n;void 0===t&&(t=[]);const r=Kr(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Sr(r),s=o?[i].concat(i.visualViewport||[],kr(r)?r:[]):r,a=t.concat(s);return o?a:a.concat(Xr(s))}function Yr(e,t,n){return"viewport"===t?ir(function(e,t){const n=Sr(e),r=$r(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=Mr();(e||!e&&"fixed"===t)&&(a=o.offsetLeft,c=o.offsetTop)}return{width:i,height:s,x:a,y:c}}(e,n)):Rr(t)?function(e,t){const n=Fr(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):ir(function(e){var t;const n=$r(e),r=Vr(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=Br(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Br(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0);let a=-r.scrollLeft+Nr(e);const c=-r.scrollTop;return"rtl"===Cr(o||n).direction&&(a+=Br(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:c}}($r(e)))}function qr(e){const t=Xr(e),n=["absolute","fixed"].includes(Cr(e).position)&&Tr(e)?Wr(e):e;return Rr(n)?t.filter((e=>Rr(e)&&function(e,t){const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Ar(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==Pr(e))):[]}const Gr={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?qr(t):[].concat(n),r],s=i[0],a=i.reduce(((e,n)=>{const r=Yr(t,n,o);return e.top=Br(r.top,e.top),e.right=Lr(r.right,e.right),e.bottom=Lr(r.bottom,e.bottom),e.left=Br(r.left,e.left),e}),Yr(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=Tr(n),i=$r(n);if(n===i)return t;let s={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if((o||!o&&"fixed"!==r)&&(("body"!==Pr(n)||kr(i))&&(s=Vr(n)),Tr(n))){const e=Fr(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:Rr,getDimensions:Ur,getOffsetParent:Wr,getDocumentElement:$r,getElementRects:e=>{let{reference:t,floating:n,strategy:r}=e;return{reference:jr(t,Wr(n),r),floating:{...Ur(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===Cr(e).direction};function Zr(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?[...Rr(e)?Xr(e):[],...Xr(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})),Rr(e)&&!a&&f.observe(e),f.observe(t)}let p=a?Fr(e):null;return a&&function t(){const r=Fr(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 Jr=(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}=rr(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:y,data:g,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!=y?y:u,f={...f,[n]:{...f[n],...g}},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}=rr(c,d,a))),h=-1)}return{x:l,y:u,placement:d,strategy:o,middlewareData:f}})(e,t,{platform:Gr,...n});var Qr="undefined"!=typeof document?e.useLayoutEffect:e.useEffect;function eo(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(!eo(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)&&!eo(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function to(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 Qr((()=>{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);eo(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&&Jr(a.current,c.current,{middleware:p,placement:n,strategy:i}).then((e=>{v.current&&o.flushSync((()=>{f(e)}))}))}),[p,n,i]);Qr((()=>{v.current&&m()}),[m]);const v=r.useRef(!1);Qr((()=>(v.current=!0,()=>{v.current=!1})),[]);const y=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]),g=r.useCallback((e=>{a.current=e,y()}),[y]),b=r.useCallback((e=>{c.current=e,y()}),[y]),w=r.useMemo((()=>({reference:a,floating:c})),[]);return r.useMemo((()=>({...d,update:m,refs:w,reference:g,floating:b})),[d,m,w,g,b])}const no=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?ur({element:t.current,padding:n}).fn(e):{}:t?ur({element:t,padding:n}).fn(e):{};var r}}},ro=e.forwardRef(((t,n)=>{const{children:r,width:o=10,height:i=5,...s}=t;return e.createElement(yt.svg,et({},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 oo(t){const[n,r]=e.useState(void 0);return st((()=>{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 io="Popper",[so,ao]=tt(io),[co,lo]=so(io),uo=e.forwardRef(((t,n)=>{const{__scopePopper:r,virtualRef:o,...i}=t,s=lo("PopperAnchor",r),a=e.useRef(null),c=ot(n,a);return e.useEffect((()=>{s.onAnchorChange((null==o?void 0:o.current)||a.current)})),o?null:e.createElement(yt.div,et({},i,{ref:c}))})),fo="PopperContent",[po,ho]=so(fo),[mo,vo]=so(fo,{hasParent:!1,positionUpdateFns:new Set}),yo=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:y=[],collisionPadding:g=0,sticky:b="partial",hideWhenDetached:w=!1,avoidCollisions:x=!0,onPlaced:E,...S}=t,C=lo(fo,d),[P,_]=e.useState(null),T=ot(n,(e=>_(e))),[R,A]=e.useState(null),k=oo(R),D=null!==(r=null==k?void 0:k.width)&&void 0!==r?r:0,O=null!==(o=null==k?void 0:k.height)&&void 0!==o?o:0,M=f+("center"!==h?"-"+h:""),L="number"==typeof g?g:{top:0,right:0,bottom:0,left:0,...g},B=Array.isArray(y)?y:[y],I=B.length>0,F={padding:L,boundary:B.filter(wo),altBoundary:I},{reference:$,floating:V,strategy:N,x:j,y:H,placement:z,middlewareData:W,update:U}=to({strategy:"fixed",placement:M,whileElementsMounted:Zr,middleware:[xo(),(Y={mainAxis:p+O,alignmentAxis:m},void 0===Y&&(Y=0),{name:"offset",options:Y,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=Qn(n),a=er(n),c="x"===tr(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,Y);return{x:t+r.x,y:n+r.y,data:r}}}),x?xr({mainAxis:!0,crossAxis:!1,limiter:"partial"===b?(void 0===X&&(X={}),{options:X,fn(e){const{x:t,y:n,placement:r,rects:o,middlewareData:i}=e,{offset:s=0,mainAxis:a=!0,crossAxis:c=!0}=X,l={x:t,y:n},u=tr(r),d=wr(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,y,g,b;const e="y"===u?"width":"height",t=["top","left"].includes(Qn(r)),n=o.reference[d]-o.floating[e]+(t&&null!=(v=null==(y=i.offset)?void 0:y[d])?v:0)+(t?0:m.crossAxis),s=o.reference[d]+o.reference[e]+(t?0:null!=(g=null==(b=i.offset)?void 0:b[d])?g:0)-(t?m.crossAxis:0);p<n?p=n:p>s&&(p=s)}return{[u]:f,[d]:p}}}):void 0,...F}):void 0,R?no({element:R,padding:v}):void 0,x?vr({...F}):void 0,(K={...F,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===K&&(K={}),{name:"size",options:K,async fn(e){const{placement:t,rects:n,platform:r,elements:o}=e,{apply:i,...s}=K,a=await sr(e,s),c=Qn(t),l=er(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=cr(a.left,0),p=cr(a.right,0),h=cr(a.top,0),m=cr(a.bottom,0),v={availableHeight:n.floating.height-(["left","right"].includes(t)?2*(0!==h||0!==m?h+m:cr(a.top,a.bottom)):a[u]),availableWidth:n.floating.width-(["top","bottom"].includes(t)?2*(0!==f||0!==p?f+p:cr(a.left,a.right)):a[d])},y=await r.getDimensions(o.floating);null==i||i({...e,...v});const g=await r.getDimensions(o.floating);return y.width!==g.width||y.height!==g.height?{reset:{rects:!0}}:{}}}),Eo({arrowWidth:D,arrowHeight:O}),w?br({strategy:"referenceHidden"}):void 0].filter(bo)});var K,X,Y;st((()=>{$(C.anchor)}),[$,C.anchor]);const q=null!==j&&null!==H,[G,Z]=So(z),J=ut(E);st((()=>{q&&(null==J||J())}),[q,J]);const Q=null===(i=W.arrow)||void 0===i?void 0:i.x,ee=null===(s=W.arrow)||void 0===s?void 0:s.y,te=0!==(null===(a=W.arrow)||void 0===a?void 0:a.centerOffset),[ne,re]=e.useState();st((()=>{P&&re(window.getComputedStyle(P).zIndex)}),[P]);const{hasParent:oe,positionUpdateFns:ie}=vo(fo,d),se=!oe;e.useLayoutEffect((()=>{if(!se)return ie.add(U),()=>{ie.delete(U)}}),[se,ie,U]),st((()=>{se&&q&&Array.from(ie).reverse().forEach((e=>requestAnimationFrame(e)))}),[se,q,ie]);const ae={"data-side":G,"data-align":Z,...S,ref:T,style:{...S.style,animation:q?void 0:"none",opacity:null!==(c=W.hide)&&void 0!==c&&c.referenceHidden?0:void 0}};return e.createElement("div",{ref:V,"data-radix-popper-content-wrapper":"",style:{position:N,left:0,top:0,transform:q?`translate3d(${Math.round(j)}px, ${Math.round(H)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:ne,"--radix-popper-transform-origin":[null===(l=W.transformOrigin)||void 0===l?void 0:l.x,null===(u=W.transformOrigin)||void 0===u?void 0:u.y].join(" ")},dir:t.dir},e.createElement(po,{scope:d,placedSide:G,onArrowChange:A,arrowX:Q,arrowY:ee,shouldHideArrow:te},se?e.createElement(mo,{scope:d,hasParent:!0,positionUpdateFns:ie},e.createElement(yt.div,ae)):e.createElement(yt.div,ae)))})),go={top:"bottom",right:"left",bottom:"top",left:"right"};function bo(e){return void 0!==e}function wo(e){return null!==e}const xo=()=>({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`),{}}}),Eo=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]=So(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,y=(null!==(i=null===(s=l.arrow)||void 0===s?void 0:s.y)&&void 0!==i?i:0)+f/2;let g="",b="";return"bottom"===p?(g=u?m:`${v}px`,b=-f+"px"):"top"===p?(g=u?m:`${v}px`,b=`${c.floating.height+f}px`):"right"===p?(g=-f+"px",b=u?m:`${y}px`):"left"===p&&(g=`${c.floating.width+f}px`,b=u?m:`${y}px`),{data:{x:g,y:b}}}});function So(e){const[t,n="center"]=e.split("-");return[t,n]}const Co=t=>{const{__scopePopper:n,children:r}=t,[o,i]=e.useState(null);return e.createElement(co,{scope:n,anchor:o,onAnchorChange:i},r)},Po=uo,_o=yo,To=e.forwardRef((function(t,n){const{__scopePopper:r,...o}=t,i=ho("PopperArrow",r),s=go[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(ro,et({},o,{ref:n,style:{...o.style,display:"block"}})))})),Ro="Popover",[Ao,ko]=tt(Ro,[ao]),Do=ao(),[Oo,Mo]=Ao(Ro),Lo=e.forwardRef(((t,n)=>{const{__scopePopover:r,...o}=t,i=Mo("PopoverTrigger",r),s=Do(r),a=ot(n,i.triggerRef),c=e.createElement(yt.button,et({type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":zo(i.open)},o,{ref:a,onClick:it(t.onClick,i.onOpenToggle)}));return i.hasCustomAnchor?c:e.createElement(Po,et({asChild:!0},s),c)})),Bo="PopoverPortal",[Io,Fo]=Ao(Bo,{forceMount:void 0}),$o="PopoverContent",Vo=e.forwardRef(((t,n)=>{const r=Fo($o,t.__scopePopover),{forceMount:o=r.forceMount,...i}=t,s=Mo($o,t.__scopePopover);return e.createElement(Ft,{present:o||s.open},s.modal?e.createElement(No,et({},i,{ref:n})):e.createElement(jo,et({},i,{ref:n})))})),No=e.forwardRef(((t,n)=>{const r=Mo($o,t.__scopePopover),o=e.useRef(null),i=ot(n,o),s=e.useRef(!1);return e.useEffect((()=>{const e=o.current;if(e)return Dn(e)}),[]),e.createElement(Cn,{as:ft,allowPinchZoom:!0},e.createElement(Ho,et({},t,{ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:it(t.onCloseAutoFocus,(e=>{var t;e.preventDefault(),s.current||null===(t=r.triggerRef.current)||void 0===t||t.focus()})),onPointerDownOutside:it(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:it(t.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1})})))})),jo=e.forwardRef(((t,n)=>{const r=Mo($o,t.__scopePopover),o=e.useRef(!1);return e.createElement(Ho,et({},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()}}))})),Ho=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=Mo($o,r),h=Do(r);return Nt(),e.createElement(At,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:s},e.createElement(St,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:d,onEscapeKeyDown:c,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>p.onOpenChange(!1)},e.createElement(_o,et({"data-state":zo(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 zo(e){return e?"open":"closed"}const Wo=t=>{const{__scopePopover:n,children:r,open:o,defaultOpen:i,onOpenChange:s,modal:a=!1}=t,c=Do(n),l=e.useRef(null),[u,d]=e.useState(!1),[f=!1,p]=dt({prop:o,defaultProp:i,onChange:s});return e.createElement(Co,c,e.createElement(Oo,{scope:n,contentId:lt(),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))},Uo=Lo,Ko=t=>{const{__scopePopover:n,forceMount:r,children:o,container:i}=t,s=Mo(Bo,n);return e.createElement(Io,{scope:n,forceMount:r},e.createElement(Ft,{present:r||s.open},e.createElement(It,{asChild:!0,container:i},o)))},Xo=Vo,Yo=e.forwardRef(((t,n)=>{const{__scopePopover:r,...o}=t,i=Mo("PopoverClose",r);return e.createElement(yt.button,et({type:"button"},o,{ref:n,onClick:it(t.onClick,(()=>i.onOpenChange(!1)))}))})),qo=e.forwardRef(((t,n)=>{const{__scopePopover:r,...o}=t,i=Do(r);return e.createElement(To,et({},i,o,{ref:n}))})),Go="Progress",Zo=100,[Jo,Qo]=tt(Go),[ei,ti]=Jo(Go),ni=e.forwardRef(((t,n)=>{const{__scopeProgress:r,value:o,max:i,getValueLabel:s=ri,...a}=t,c=si(i)?i:Zo,l=ai(o,c)?o:null,u=ii(l)?s(l,c):void 0;return e.createElement(ei,{scope:r,value:l,max:c},e.createElement(yt.div,et({"aria-valuemax":c,"aria-valuemin":0,"aria-valuenow":ii(l)?l:void 0,"aria-valuetext":u,role:"progressbar","data-state":oi(l,c),"data-value":null!=l?l:void 0,"data-max":c},a,{ref:n})))}));ni.propTypes={max(e,t,n){const r=e[t],o=String(r);return r&&!si(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=si(e.max)?e.max:Zo;return null==r||ai(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 ri(e,t){return`${Math.round(e/t*100)}%`}function oi(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function ii(e){return"number"==typeof e}function si(e){return ii(e)&&!isNaN(e)&&e>0}function ai(e,t){return ii(e)&&!isNaN(e)&&e<=t&&e>=0}const ci=ni,li=e.forwardRef(((t,n)=>{var r;const{__scopeProgress:o,...i}=t,s=ti("ProgressIndicator",o);return e.createElement(yt.div,et({"data-state":oi(s.value,s.max),"data-value":null!==(r=s.value)&&void 0!==r?r:void 0,"data-max":s.max},i,{ref:n}))}));function ui(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 di="Checkbox",[fi,pi]=tt(di),[hi,mi]=fi(di),vi=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=ot(n,(e=>p(e))),m=e.useRef(!1),v=!f||Boolean(f.closest("form")),[y=!1,g]=dt({prop:i,defaultProp:s,onChange:u}),b=e.useRef(y);return e.useEffect((()=>{const e=null==f?void 0:f.form;if(e){const t=()=>g(b.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}}),[f,g]),e.createElement(hi,{scope:r,state:y,disabled:c},e.createElement(yt.button,et({type:"button",role:"checkbox","aria-checked":gi(y)?"mixed":y,"aria-required":a,"data-state":bi(y),"data-disabled":c?"":void 0,disabled:c,value:l},d,{ref:h,onKeyDown:it(t.onKeyDown,(e=>{"Enter"===e.key&&e.preventDefault()})),onClick:it(t.onClick,(e=>{g((e=>!!gi(e)||!e)),v&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())}))})),v&&e.createElement(yi,{control:f,bubbles:!m.current,name:o,value:l,checked:y,required:a,disabled:c,style:{transform:"translateX(-100%)"}}))})),yi=t=>{const{control:n,checked:r,bubbles:o=!0,...i}=t,s=e.useRef(null),a=ui(r),c=oo(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=gi(r),n.call(e,!gi(r)&&r),e.dispatchEvent(t)}}),[a,r,o]),e.createElement("input",et({type:"checkbox","aria-hidden":!0,defaultChecked:!gi(r)&&r},i,{tabIndex:-1,ref:s,style:{...t.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function gi(e){return"indeterminate"===e}function bi(e){return gi(e)?"indeterminate":e?"checked":"unchecked"}const wi=vi,xi=e.forwardRef(((t,n)=>{const{__scopeCheckbox:r,forceMount:o,...i}=t,s=mi("CheckboxIndicator",r);return e.createElement(Ft,{present:o||gi(s.state)||!0===s.state},e.createElement(yt.span,et({"data-state":bi(s.state),"data-disabled":s.disabled?"":void 0},i,{ref:n,style:{pointerEvents:"none",...t.style}})))}));function Ei(e,[t,n]){return Math.min(n,Math.max(t,e))}const Si=e.createContext(void 0);function Ci(t){const n=e.useContext(Si);return t||n||"ltr"}const Pi=["PageUp","PageDown"],_i=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Ti={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},Ri="Slider",[Ai,ki,Di]=function(t){const n=t+"CollectionProvider",[r,o]=tt(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=ot(n,s(a,r).collectionRef);return e.createElement(ft,{ref:i},o)})),ItemSlot:e.forwardRef(((t,n)=>{const{scope:r,children:o,...i}=t,a=e.useRef(null),u=ot(n,a),d=s(c,r);return e.useEffect((()=>(d.itemMap.set(a,{ref:a,...i}),()=>{d.itemMap.delete(a)}))),e.createElement(ft,{[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]}(Ri),[Oi,Mi]=tt(Ri,[Di]),[Li,Bi]=Oi(Ri),Ii=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,...m}=t,[v,y]=e.useState(null),g=ot(n,(e=>y(e))),b=e.useRef(new Set),w=e.useRef(0),x="horizontal"===a,E=!v||Boolean(v.closest("form")),S=x?Vi:Ni,[C=[],P]=dt({prop:d,defaultProp:u,onChange:e=>{var t;null===(t=[...b.current][w.current])||void 0===t||t.focus(),f(e)}}),_=e.useRef(C);function T(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=Ei(a,[o,i]);P(((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)){w.current=r.indexOf(c);const t=String(r)!==String(e);return t&&n&&p(r),t?r:e}return e}))}return e.createElement(Li,{scope:t.__scopeSlider,disabled:c,min:o,max:i,valueIndexToChangeRef:w,thumbs:b.current,values:C,orientation:a},e.createElement(Ai.Provider,{scope:t.__scopeSlider},e.createElement(Ai.Slot,{scope:t.__scopeSlider},e.createElement(S,et({"aria-disabled":c,"data-disabled":c?"":void 0},m,{ref:g,onPointerDown:it(m.onPointerDown,(()=>{c||(_.current=C)})),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)}(C,e);T(e,t)},onSlideMove:c?void 0:function(e){T(e,w.current)},onSlideEnd:c?void 0:function(){const e=_.current[w.current];C[w.current]!==e&&p(C)},onHomeKeyDown:()=>!c&&T(o,0,{commit:!0}),onEndKeyDown:()=>!c&&T(i,C.length-1,{commit:!0}),onStepKeyDown:({event:e,direction:t})=>{if(!c){const n=Pi.includes(e.key)||e.shiftKey&&_i.includes(e.key)?10:1,r=w.current;T(C[r]+s*n*t,r,{commit:!0})}}})))),E&&C.map(((t,n)=>e.createElement(Yi,{key:n,name:r?r+(C.length>1?"[]":""):void 0,value:t}))))})),[Fi,$i]=Oi(Ri,{startEdge:"left",endEdge:"right",size:"width",direction:1}),Vi=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=ot(n,(e=>p(e))),m=e.useRef(),v=Ci(i),y="ltr"===v,g=y&&!s||!y&&s;function b(e){const t=m.current||f.getBoundingClientRect(),n=Gi([0,t.width],g?[r,o]:[o,r]);return m.current=t,n(e-t.left)}return e.createElement(Fi,{scope:t.__scopeSlider,startEdge:g?"left":"right",endEdge:g?"right":"left",direction:g?1:-1,size:"width"},e.createElement(ji,et({dir:v,"data-orientation":"horizontal"},d,{ref:h,style:{...d.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:e=>{const t=b(e.clientX);null==a||a(t)},onSlideMove:e=>{const t=b(e.clientX);null==c||c(t)},onSlideEnd:()=>{m.current=void 0,null==l||l()},onStepKeyDown:e=>{const t=Ti[g?"from-left":"from-right"].includes(e.key);null==u||u({event:e,direction:t?-1:1})}})))})),Ni=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=ot(n,d),p=e.useRef(),h=!i;function m(e){const t=p.current||d.current.getBoundingClientRect(),n=Gi([0,t.height],h?[o,r]:[r,o]);return p.current=t,n(e-t.top)}return e.createElement(Fi,{scope:t.__scopeSlider,startEdge:h?"bottom":"top",endEdge:h?"top":"bottom",size:"height",direction:h?1:-1},e.createElement(ji,et({"data-orientation":"vertical"},u,{ref:f,style:{...u.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:e=>{const t=m(e.clientY);null==s||s(t)},onSlideMove:e=>{const t=m(e.clientY);null==a||a(t)},onSlideEnd:()=>{p.current=void 0,null==c||c()},onStepKeyDown:e=>{const t=Ti[h?"from-bottom":"from-top"].includes(e.key);null==l||l({event:e,direction:t?-1:1})}})))})),ji=e.forwardRef(((t,n)=>{const{__scopeSlider:r,onSlideStart:o,onSlideMove:i,onSlideEnd:s,onHomeKeyDown:a,onEndKeyDown:c,onStepKeyDown:l,...u}=t,d=Bi(Ri,r);return e.createElement(yt.span,et({},u,{ref:n,onKeyDown:it(t.onKeyDown,(e=>{"Home"===e.key?(a(e),e.preventDefault()):"End"===e.key?(c(e),e.preventDefault()):Pi.concat(_i).includes(e.key)&&(l(e),e.preventDefault())})),onPointerDown:it(t.onPointerDown,(e=>{const t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),d.thumbs.has(t)?t.focus():o(e)})),onPointerMove:it(t.onPointerMove,(e=>{e.target.hasPointerCapture(e.pointerId)&&i(e)})),onPointerUp:it(t.onPointerUp,(e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),s(e))}))}))})),Hi=e.forwardRef(((t,n)=>{const{__scopeSlider:r,...o}=t,i=Bi("SliderTrack",r);return e.createElement(yt.span,et({"data-disabled":i.disabled?"":void 0,"data-orientation":i.orientation},o,{ref:n}))})),zi="SliderRange",Wi=e.forwardRef(((t,n)=>{const{__scopeSlider:r,...o}=t,i=Bi(zi,r),s=$i(zi,r),a=ot(n,e.useRef(null)),c=i.values.length,l=i.values.map((e=>qi(e,i.min,i.max))),u=c>1?Math.min(...l):0,d=100-Math.max(...l);return e.createElement(yt.span,et({"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0},o,{ref:a,style:{...t.style,[s.startEdge]:u+"%",[s.endEdge]:d+"%"}}))})),Ui="SliderThumb",Ki=e.forwardRef(((t,n)=>{const r=ki(t.__scopeSlider),[o,i]=e.useState(null),s=ot(n,(e=>i(e))),a=e.useMemo((()=>o?r().findIndex((e=>e.ref.current===o)):-1),[r,o]);return e.createElement(Xi,et({},t,{ref:s,index:a}))})),Xi=e.forwardRef(((t,n)=>{const{__scopeSlider:r,index:o,...i}=t,s=Bi(Ui,r),a=$i(Ui,r),[c,l]=e.useState(null),u=ot(n,(e=>l(e))),d=oo(c),f=s.values[o],p=void 0===f?0:qi(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),m=null==d?void 0:d[a.size],v=m?function(e,t,n){const r=e/2,o=Gi([0,50],[0,r]);return(r-o(t)*n)*n}(m,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}% + ${v}px)`}},e.createElement(Ai.ItemSlot,{scope:t.__scopeSlider},e.createElement(yt.span,et({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:it(t.onFocus,(()=>{s.valueIndexToChangeRef.current=o}))}))))})),Yi=t=>{const{value:n,...r}=t,o=e.useRef(null),i=ui(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",et({style:{display:"none"}},r,{ref:o,defaultValue:n}))};function qi(e,t,n){return 100/(n-t)*(e-t)}function Gi(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 Zi=Ii,Ji=Hi,Qi=Wi,es=Ki;function ts(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 ns(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function rs(...t){return e.useCallback(ns(...t),t)}function os(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}\``)}]},is(o,...n)]}function is(...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 ss=e.forwardRef(((t,n)=>{const{children:r,...o}=t,i=e.Children.toArray(r),s=i.find(ls);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(as,et({},o,{ref:n}),e.isValidElement(t)?e.cloneElement(t,void 0,r):null)}return e.createElement(as,et({},o,{ref:n}),r)}));ss.displayName="Slot";const as=e.forwardRef(((t,n)=>{const{children:r,...o}=t;return e.isValidElement(r)?e.cloneElement(r,{...us(o,r.props),ref:n?ns(n,r.ref):r.ref}):e.Children.count(r)>1?e.Children.only(null):null}));as.displayName="SlotClone";const cs=({children:t})=>e.createElement(e.Fragment,null,t);function ls(t){return e.isValidElement(t)&&t.type===cs}function us(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 ds=["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?ss:n;return e.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),e.createElement(s,et({},i,{ref:r}))}));return r.displayName=`Primitive.${n}`,{...t,[n]:r}}),{});function fs(t){const n=t+"CollectionProvider",[r,o]=os(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=rs(n,s(a,r).collectionRef);return e.createElement(ss,{ref:i},o)})),ItemSlot:e.forwardRef(((t,n)=>{const{scope:r,children:o,...i}=t,a=e.useRef(null),u=rs(n,a),d=s(c,r);return e.useEffect((()=>(d.itemMap.set(a,{ref:a,...i}),()=>{d.itemMap.delete(a)}))),e.createElement(ss,{[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 ps=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?e.useLayoutEffect:()=>{},hs=r["useId".toString()]||(()=>{});let ms=0;function vs(e){const[t,n]=r.useState(hs());return ps((()=>{e||n((e=>null!=e?e:String(ms++)))}),[e]),e||(t?`radix-${t}`:"")}function ys(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 gs({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=ys(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=ys(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 bs=e.createContext(void 0);function ws(t){const n=e.useContext(bs);return t||n||"ltr"}const xs="rovingFocusGroup.onEntryFocus",Es={bubbles:!1,cancelable:!0},Ss="RovingFocusGroup",[Cs,Ps,_s]=fs(Ss),[Ts,Rs]=os(Ss,[_s]),[As,ks]=Ts(Ss),Ds=e.forwardRef(((t,n)=>e.createElement(Cs.Provider,{scope:t.__scopeRovingFocusGroup},e.createElement(Cs.Slot,{scope:t.__scopeRovingFocusGroup},e.createElement(Os,et({},t,{ref:n})))))),Os=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=rs(n,f),h=ws(s),[m=null,v]=gs({prop:a,defaultProp:c,onChange:l}),[y,g]=e.useState(!1),b=ys(u),w=Ps(r),x=e.useRef(!1),[E,S]=e.useState(0);return e.useEffect((()=>{const e=f.current;if(e)return e.addEventListener(xs,b),()=>e.removeEventListener(xs,b)}),[b]),e.createElement(As,{scope:r,orientation:o,dir:h,loop:i,currentTabStopId:m,onItemFocus:e.useCallback((e=>v(e)),[v]),onItemShiftTab:e.useCallback((()=>g(!0)),[]),onFocusableItemAdd:e.useCallback((()=>S((e=>e+1))),[]),onFocusableItemRemove:e.useCallback((()=>S((e=>e-1))),[])},e.createElement(ds.div,et({tabIndex:y||0===E?-1:0,"data-orientation":o},d,{ref:p,style:{outline:"none",...t.style},onMouseDown:ts(t.onMouseDown,(()=>{x.current=!0})),onFocus:ts(t.onFocus,(e=>{const t=!x.current;if(e.target===e.currentTarget&&t&&!y){const t=new CustomEvent(xs,Es);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=w().filter((e=>e.focusable));Bs([e.find((e=>e.active)),e.find((e=>e.id===m)),...e].filter(Boolean).map((e=>e.ref.current)))}}x.current=!1})),onBlur:ts(t.onBlur,(()=>g(!1)))})))})),Ms=e.forwardRef(((t,n)=>{const{__scopeRovingFocusGroup:r,focusable:o=!0,active:i=!1,tabStopId:s,...a}=t,c=vs(),l=s||c,u=ks("RovingFocusGroupItem",r),d=u.currentTabStopId===l,f=Ps(r),{onFocusableItemAdd:p,onFocusableItemRemove:h}=u;return e.useEffect((()=>{if(o)return p(),()=>h()}),[o,p,h]),e.createElement(Cs.ItemSlot,{scope:r,id:l,focusable:o,active:i},e.createElement(ds.span,et({tabIndex:d?0:-1,"data-orientation":u.orientation},a,{ref:n,onMouseDown:ts(t.onMouseDown,(e=>{o?u.onItemFocus(l):e.preventDefault()})),onFocus:ts(t.onFocus,(()=>u.onItemFocus(l))),onKeyDown:ts(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:Ls[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((()=>Bs(o)))}var n,r}))})))})),Ls={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Bs(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}const Is=Ds,Fs=Ms;function $s(t){const[n,r]=e.useState(void 0);return ps((()=>{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 Vs(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 Ns=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=js(i.current);a.current="mounted"===l?e:"none"}),[l]),ps((()=>{const e=i.current,t=s.current;if(t!==n){const r=a.current,o=js(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]),ps((()=>{if(r){const e=e=>{const n=js(i.current).includes(e.animationName);e.target===r&&n&&t.flushSync((()=>u("ANIMATION_END")))},n=e=>{e.target===r&&(a.current=js(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=rs(i.ref,s.ref);return"function"==typeof o||i.isPresent?e.cloneElement(s,{ref:a}):null};function js(e){return(null==e?void 0:e.animationName)||"none"}Ns.displayName="Presence";const Hs="Radio",[zs,Ws]=os(Hs),[Us,Ks]=zs(Hs),Xs=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=rs(n,(e=>f(e))),h=e.useRef(!1),m=!d||Boolean(d.closest("form"));return e.createElement(Us,{scope:r,checked:i,disabled:a},e.createElement(ds.button,et({type:"button",role:"radio","aria-checked":i,"data-state":Gs(i),"data-disabled":a?"":void 0,disabled:a,value:c},u,{ref:p,onClick:ts(t.onClick,(e=>{i||null==l||l(),m&&(h.current=e.isPropagationStopped(),h.current||e.stopPropagation())}))})),m&&e.createElement(qs,{control:d,bubbles:!h.current,name:o,value:c,checked:i,required:s,disabled:a,style:{transform:"translateX(-100%)"}}))})),Ys=e.forwardRef(((t,n)=>{const{__scopeRadio:r,forceMount:o,...i}=t,s=Ks("RadioIndicator",r);return e.createElement(Ns,{present:o||s.checked},e.createElement(ds.span,et({"data-state":Gs(s.checked),"data-disabled":s.disabled?"":void 0},i,{ref:n})))})),qs=t=>{const{control:n,checked:r,bubbles:o=!0,...i}=t,s=e.useRef(null),a=Vs(r),c=$s(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",et({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 Gs(e){return e?"checked":"unchecked"}const Zs=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Js="RadioGroup",[Qs,ea]=os(Js,[Rs,Ws]),ta=Rs(),na=Ws(),[ra,oa]=Qs(Js),ia=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=ta(r),m=ws(u),[v,y]=gs({prop:s,defaultProp:i,onChange:f});return e.createElement(ra,{scope:r,name:o,required:a,disabled:c,value:v,onValueChange:y},e.createElement(Is,et({asChild:!0},h,{orientation:l,dir:m,loop:d}),e.createElement(ds.div,et({role:"radiogroup","aria-required":a,"aria-orientation":l,"data-disabled":c?"":void 0,dir:m},p,{ref:n}))))})),sa=e.forwardRef(((t,n)=>{const{__scopeRadioGroup:r,disabled:o,...i}=t,s=oa("RadioGroupItem",r),a=s.disabled||o,c=ta(r),l=na(r),u=e.useRef(null),d=rs(n,u),f=s.value===i.value,p=e.useRef(!1);return e.useEffect((()=>{const e=e=>{Zs.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(Fs,et({asChild:!0},c,{focusable:!a,active:f}),e.createElement(Xs,et({disabled:a,required:s.required,checked:f},l,i,{name:s.name,ref:d,onCheck:()=>s.onValueChange(i.value),onKeyDown:ts((e=>{"Enter"===e.key&&e.preventDefault()})),onFocus:ts(i.onFocus,(()=>{var e;p.current&&(null===(e=u.current)||void 0===e||e.click())}))})))})),aa=e.forwardRef(((t,n)=>{const{__scopeRadioGroup:r,...o}=t,i=na(r);return e.createElement(Ys,et({},i,o,{ref:n}))}));function ca(e,[t,n]){return Math.min(n,Math.max(t,e))}const la="dismissableLayer.update",ua="dismissableLayer.pointerDownOutside",da="dismissableLayer.focusOutside";let fa;const pa=e.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ha=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(pa),[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,[,m]=e.useState({}),v=rs(n,(e=>p(e))),y=Array.from(d.layers),[g]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),b=y.indexOf(g),w=f?y.indexOf(f):-1,x=d.layersWithOutsidePointerEventsDisabled.size>0,E=w>=b,S=function(t,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=ys(t),o=e.useRef(!1),i=e.useRef((()=>{}));return e.useEffect((()=>{const e=e=>{if(e.target&&!o.current){let t=function(){va(ua,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)));E&&!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=ys(t),o=e.useRef(!1);return e.useEffect((()=>{const e=e=>{if(e.target&&!o.current){va(da,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=ys(t);e.useEffect((()=>{const e=e=>{"Escape"===e.key&&r(e)};return n.addEventListener("keydown",e),()=>n.removeEventListener("keydown",e)}),[r,n])}((e=>{w===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&&(fa=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),ma(),()=>{o&&1===d.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=fa)}}),[f,h,o,d]),e.useEffect((()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),ma())}),[f,d]),e.useEffect((()=>{const e=()=>m({});return document.addEventListener(la,e),()=>document.removeEventListener(la,e)}),[]),e.createElement(ds.div,et({},u,{ref:v,style:{pointerEvents:x?E?"auto":"none":void 0,...t.style},onFocusCapture:ts(t.onFocusCapture,C.onFocusCapture),onBlurCapture:ts(t.onBlurCapture,C.onBlurCapture),onPointerDownCapture:ts(t.onPointerDownCapture,S.onPointerDownCapture)}))}));function ma(){const e=new CustomEvent(la);document.dispatchEvent(e)}function va(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 ya=0;function ga(){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 ba="focusScope.autoFocusOnMount",wa="focusScope.autoFocusOnUnmount",xa={bubbles:!1,cancelable:!0},Ea=e.forwardRef(((t,n)=>{const{loop:r=!1,trapped:o=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...a}=t,[c,l]=e.useState(null),u=ys(i),d=ys(s),f=e.useRef(null),p=rs(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:_a(f.current,{select:!0})},t=function(e){if(h.paused||!c)return;const t=e.relatedTarget;null!==t&&(c.contains(t)||_a(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)||_a(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){Ta.add(h);const t=document.activeElement;if(!c.contains(t)){const n=new CustomEvent(ba,xa);c.addEventListener(ba,u),c.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(_a(r,{select:t}),document.activeElement!==n)return}((e=Sa(c),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&_a(c))}return()=>{c.removeEventListener(ba,u),setTimeout((()=>{const e=new CustomEvent(wa,xa);c.addEventListener(wa,d),c.dispatchEvent(e),e.defaultPrevented||_a(null!=t?t:document.body,{select:!0}),c.removeEventListener(wa,d),Ta.remove(h)}),0)}}var e}),[c,u,d,h]);const m=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=Sa(e),n=Ca(t,e),r=Ca(t.reverse(),e);return[n,r]}(t);o&&i?e.shiftKey||n!==i?e.shiftKey&&n===o&&(e.preventDefault(),r&&_a(i,{select:!0})):(e.preventDefault(),r&&_a(o,{select:!0})):n===t&&e.preventDefault()}}),[r,o,h.paused]);return e.createElement(ds.div,et({tabIndex:-1},a,{ref:p,onKeyDown:m}))}));function Sa(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 Ca(e,t){for(const n of e)if(!Pa(n,{upTo:t}))return n}function Pa(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 _a(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 Ta=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=Ra(e,t),e.unshift(t)},remove(t){var n;e=Ra(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function Ra(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}function Aa(e){return e.split("-")[1]}function ka(e){return"y"===e?"height":"width"}function Da(e){return e.split("-")[0]}function Oa(e){return["top","bottom"].includes(Da(e))?"x":"y"}function Ma(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=Oa(t),c=ka(a),l=r[c]/2-o[c]/2,u="x"===a;let d;switch(Da(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(Aa(t)){case"start":d[a]-=l*(n&&u?-1:1);break;case"end":d[a]+=l*(n&&u?-1:1)}return d}function La(e,t){return"function"==typeof e?e(t):e}function Ba(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 Ia(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function Fa(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}=La(t,e),h=Ba(p),m=a[f?"floating"===d?"reference":"floating":d],v=Ia(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})),y="floating"===d?{...s.floating,x:r,y:o}:s.reference,g=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),b=await(null==i.isElement?void 0:i.isElement(g))&&await(null==i.getScale?void 0:i.getScale(g))||{x:1,y:1},w=Ia(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:y,offsetParent:g,strategy:c}):y);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 $a=Math.min,Va=Math.max;function Na(e,t,n){return Va(e,$a(t,n))}const ja=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}=La(e,t)||{};if(null==c)return{};const u=Ba(l),d={x:n,y:r},f=Oa(o),p=ka(f),h=await s.getDimensions(c),m="y"===f,v=m?"top":"left",y=m?"bottom":"right",g=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[g]:0;E&&await(null==s.isElement?void 0:s.isElement(x))||(E=a.floating[g]||i.floating[p]);const S=b/2-w/2,C=E/2-h[p]/2-1,P=$a(u[v],C),_=$a(u[y],C),T=P,R=E-h[p]-_,A=E/2-h[p]/2+S,k=Na(T,A,R),D=null!=Aa(o)&&A!=k&&i.reference[p]/2-(A<T?P:_)-h[p]/2<0?A<T?T-A:R-A:0;return{[f]:d[f]-D,data:{[f]:k,centerOffset:A-k+D}}}}),Ha=["top","right","bottom","left"];Ha.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);const za={left:"right",right:"left",bottom:"top",top:"bottom"};function Wa(e){return e.replace(/left|right|bottom|top/g,(e=>za[e]))}const Ua={start:"end",end:"start"};function Ka(e){return e.replace(/start|end/g,(e=>Ua[e]))}const Xa=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}=La(e,t),v=Da(r),y=Da(s)===s,g=await(null==a.isRTL?void 0:a.isRTL(c.floating)),b=d||(y||!h?[Wa(s)]:function(e){const t=Wa(e);return[Ka(e),t,Ka(t)]}(s));d||"none"===p||b.push(...function(e,t,n,r){const o=Aa(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[]}}(Da(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(Ka)))),i}(s,h,p,g));const w=[s,...b],x=await Fa(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=Aa(e),o=Oa(e),i=ka(o);let s="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Wa(s)),{main:s,cross:Wa(s)}}(r,i,g);E.push(x[e],x[t])}if(S=[...S,{placement:r,overflows:E}],!E.every((e=>e<=0))){var C,P;const e=((null==(C=o.flip)?void 0:C.index)||0)+1,t=w[e];if(t)return{data:{index:e,overflows:S},reset:{placement:t}};let n=null==(P=S.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:P.placement;if(!n)switch(f){case"bestFit":{var _;const e=null==(_=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:_[0];e&&(n=e);break}case"initialPlacement":n=s}if(r!==n)return{reset:{placement:n}}}return{}}}};function Ya(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function qa(e){return Ha.some((t=>e[t]>=0))}const Ga=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=La(e,t);switch(r){case"referenceHidden":{const e=Ya(await Fa(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:qa(e)}}}case"escaped":{const e=Ya(await Fa(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:qa(e)}}}default:return{}}}}};function Za(e){return"x"===e?"y":"x"}const Ja=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}=La(e,t),l={x:n,y:r},u=await Fa(t,c),d=Oa(Da(o)),f=Za(d);let p=l[d],h=l[f];if(i){const e="y"===d?"bottom":"right";p=Na(p+u["y"===d?"top":"left"],p,p-u[e])}if(s){const e="y"===f?"bottom":"right";h=Na(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}}}}},Qa=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}=La(e,t),c=await Fa(t,a),l=Da(n),u=Aa(n),d="x"===Oa(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],y=f-c[m],g=!t.middlewareData.shift;let b=v,w=y;if(d){const e=f-c.left-c.right;w=u||g?$a(y,e):e}else{const e=p-c.top-c.bottom;b=u||g?$a(v,e):e}if(g&&!u){const e=Va(c.left,0),t=Va(c.right,0),n=Va(c.top,0),r=Va(c.bottom,0);d?w=f-2*(0!==e||0!==t?e+t:Va(c.left,c.right)):b=p-2*(0!==n||0!==r?n+r:Va(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 ec(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function tc(e){return ec(e).getComputedStyle(e)}function nc(e){return e instanceof ec(e).Node}function rc(e){return nc(e)?(e.nodeName||"").toLowerCase():"#document"}function oc(e){return e instanceof HTMLElement||e instanceof ec(e).HTMLElement}function ic(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ec(e).ShadowRoot||e instanceof ShadowRoot)}function sc(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=tc(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function ac(e){return["table","td","th"].includes(rc(e))}function cc(e){const t=lc(),n=tc(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 lc(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function uc(e){return["html","body","#document"].includes(rc(e))}const dc=Math.min,fc=Math.max,pc=Math.round,hc=Math.floor,mc=e=>({x:e,y:e});function vc(e){const t=tc(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=oc(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=pc(n)!==i||pc(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function yc(e){return e instanceof Element||e instanceof ec(e).Element}function gc(e){return yc(e)?e:e.contextElement}function bc(e){const t=gc(e);if(!oc(t))return mc(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=vc(t);let s=(i?pc(n.width):n.width)/r,a=(i?pc(n.height):n.height)/o;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const wc=mc(0);function xc(e){const t=ec(e);return lc()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:wc}function Ec(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=gc(e);let s=mc(1);t&&(r?yc(r)&&(s=bc(r)):s=bc(e));const a=(c=i,void 0===(l=n)&&(l=!1),!(u=r)||l&&u!==ec(c)||!l?mc(0):xc(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=ec(i),t=r&&yc(r)?ec(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=bc(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=ec(n).frameElement}}return Ia({width:p,height:h,x:d,y:f})}function Sc(e){return yc(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Cc(e){var t;return null==(t=(nc(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Pc(e){return Ec(Cc(e)).left+Sc(e).scrollLeft}function _c(e){if("html"===rc(e))return e;const t=e.assignedSlot||e.parentNode||ic(e)&&e.host||Cc(e);return ic(t)?t.host:t}function Tc(e){const t=_c(e);return uc(t)?e.ownerDocument?e.ownerDocument.body:e.body:oc(t)&&sc(t)?t:Tc(t)}function Rc(e,t){var n;void 0===t&&(t=[]);const r=Tc(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=ec(r);return o?t.concat(i,i.visualViewport||[],sc(r)?r:[]):t.concat(r,Rc(r))}function Ac(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=ec(e),r=Cc(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=lc();(!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=Cc(e),n=Sc(e),r=e.ownerDocument.body,o=fc(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=fc(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Pc(e);const a=-n.scrollTop;return"rtl"===tc(r).direction&&(s+=fc(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}(Cc(e));else if(yc(t))r=function(e,t){const n=Ec(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=oc(e)?bc(e):mc(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=xc(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return Ia(r)}function kc(e,t){const n=_c(e);return!(n===t||!yc(n)||uc(n))&&("fixed"===tc(n).position||kc(n,t))}function Dc(e,t,n){const r=oc(t),o=Cc(t),i="fixed"===n,s=Ec(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=mc(0);if(r||!r&&!i)if(("body"!==rc(t)||sc(o))&&(a=Sc(t)),oc(t)){const e=Ec(t,!0,i,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else o&&(c.x=Pc(o));return{x:s.left+a.scrollLeft-c.x,y:s.top+a.scrollTop-c.y,width:s.width,height:s.height}}function Oc(e,t){return oc(e)&&"fixed"!==tc(e).position?t?t(e):e.offsetParent:null}function Mc(e,t){const n=ec(e);if(!oc(e))return n;let r=Oc(e,t);for(;r&&ac(r)&&"static"===tc(r).position;)r=Oc(r,t);return r&&("html"===rc(r)||"body"===rc(r)&&"static"===tc(r).position&&!cc(r))?n:r||function(e){let t=_c(e);for(;oc(t)&&!uc(t);){if(cc(t))return t;t=_c(t)}return null}(e)||n}const Lc={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=oc(n),i=Cc(n);if(n===i)return t;let s={scrollLeft:0,scrollTop:0},a=mc(1);const c=mc(0);if((o||!o&&"fixed"!==r)&&(("body"!==rc(n)||sc(i))&&(s=Sc(n)),oc(n))){const e=Ec(n);a=bc(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:Cc,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=Rc(e).filter((e=>yc(e)&&"body"!==rc(e))),o=null;const i="fixed"===tc(e).position;let s=i?_c(e):e;for(;yc(s)&&!uc(s);){const t=tc(s),n=cc(s);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||sc(s)&&!n&&kc(e,s))?r=r.filter((e=>e!==s)):o=t,s=_c(s)}return t.set(e,r),r}(t,this._c):[].concat(n),r],s=i[0],a=i.reduce(((e,n)=>{const r=Ac(t,n,o);return e.top=fc(r.top,e.top),e.right=dc(r.right,e.right),e.bottom=dc(r.bottom,e.bottom),e.left=fc(r.left,e.left),e}),Ac(t,s,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:Mc,getElementRects:async function(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||Mc,i=this.getDimensions;return{reference:Dc(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 vc(e)},getScale:bc,isElement:yc,isRTL:function(e){return"rtl"===getComputedStyle(e).direction}};function Bc(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=gc(e),u=o||i?[...l?Rc(l):[],...Rc(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=Cc(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:-hc(u)+"px "+-hc(o.clientWidth-(l+d))+"px "+-hc(o.clientHeight-(u+f))+"px "+-hc(l)+"px",threshold:fc(0,dc(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?Ec(e):null;return c&&function t(){const r=Ec(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 Ic=(e,t,n)=>{const r=new Map,o={platform:Lc,...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}=Ma(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:y,data:g,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!=y?y:d,p={...p,[n]:{...p[n],...g}},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}=Ma(l,f,c))),m=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})},Fc=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?ja({element:n.current,padding:r}).fn(t):{}:n?ja({element:n,padding:r}).fn(t):{};var o}});var $c="undefined"!=typeof document?e.useLayoutEffect:e.useEffect;function Vc(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(!Vc(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)&&!Vc(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function Nc(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function jc(e,t){const n=Nc(e);return Math.round(t*n)/n}function Hc(e){const t=r.useRef(e);return $c((()=>{t.current=e})),t}const zc=e.forwardRef(((t,n)=>{const{children:r,width:o=10,height:i=5,...s}=t;return e.createElement(ds.svg,et({},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"}))})),Wc="Popper",[Uc,Kc]=os(Wc),[Xc,Yc]=Uc(Wc),qc=e.forwardRef(((t,n)=>{const{__scopePopper:r,virtualRef:o,...i}=t,s=Yc("PopperAnchor",r),a=e.useRef(null),c=rs(n,a);return e.useEffect((()=>{s.onAnchorChange((null==o?void 0:o.current)||a.current)})),o?null:e.createElement(ds.div,et({},i,{ref:c}))})),Gc="PopperContent",[Zc,Jc]=Uc(Gc),Qc=e.forwardRef(((t,n)=>{var i,s,a,c,l,u,d,f;const{__scopePopper:p,side:h="bottom",sideOffset:m=0,align:v="center",alignOffset:y=0,arrowPadding:g=0,collisionBoundary:b=[],collisionPadding:w=0,sticky:x="partial",hideWhenDetached:E=!1,avoidCollisions:S=!0,onPlaced:C,...P}=t,_=Yc(Gc,p),[T,R]=e.useState(null),A=rs(n,(e=>R(e))),[k,D]=e.useState(null),O=$s(k),M=null!==(i=null==O?void 0:O.width)&&void 0!==i?i:0,L=null!==(s=null==O?void 0:O.height)&&void 0!==s?s:0,B=h+("center"!==v?"-"+v:""),I="number"==typeof w?w:{top:0,right:0,bottom:0,left:0,...w},F=Array.isArray(b)?b:[b],$=F.length>0,V={padding:I,boundary:F.filter(tl),altBoundary:$},{refs:N,floatingStyles:j,placement:H,isPositioned:z,middlewareData:W}=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);Vc(h,i)||m(i);const[v,y]=r.useState(null),[g,b]=r.useState(null),w=r.useCallback((e=>{e!=C.current&&(C.current=e,y(e))}),[y]),x=r.useCallback((e=>{e!==P.current&&(P.current=e,b(e))}),[b]),E=a||v,S=c||g,C=r.useRef(null),P=r.useRef(null),_=r.useRef(f),T=Hc(u),R=Hc(s),A=r.useCallback((()=>{if(!C.current||!P.current)return;const e={placement:t,strategy:n,middleware:h};R.current&&(e.platform=R.current),Ic(C.current,P.current,e).then((e=>{const t={...e,isPositioned:!0};k.current&&!Vc(_.current,t)&&(_.current=t,o.flushSync((()=>{p(t)})))}))}),[h,t,n,R]);$c((()=>{!1===d&&_.current.isPositioned&&(_.current.isPositioned=!1,p((e=>({...e,isPositioned:!1}))))}),[d]);const k=r.useRef(!1);$c((()=>(k.current=!0,()=>{k.current=!1})),[]),$c((()=>{if(E&&(C.current=E),S&&(P.current=S),E&&S){if(T.current)return T.current(E,S,A);A()}}),[E,S,A,T]);const D=r.useMemo((()=>({reference:C,floating:P,setReference:w,setFloating:x})),[w,x]),O=r.useMemo((()=>({reference:E,floating:S})),[E,S]),M=r.useMemo((()=>{const e={position:n,left:0,top:0};if(!O.floating)return e;const t=jc(O.floating,f.x),r=jc(O.floating,f.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...Nc(O.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,l,O.floating,f.x,f.y]);return r.useMemo((()=>({...f,update:A,refs:D,elements:O,floatingStyles:M})),[f,A,D,O,M])}({strategy:"fixed",placement:B,whileElementsMounted:Bc,elements:{reference:_.anchor},middleware:[(K={mainAxis:m+L,alignmentAxis:y},void 0===K&&(K=0),{name:"offset",options:K,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=Da(n),a=Aa(n),c="x"===Oa(n),l=["left","top"].includes(s)?-1:1,u=i&&c?-1:1,d=La(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,K);return{x:t+r.x,y:n+r.y,data:r}}}),S&&Ja({mainAxis:!0,crossAxis:!1,limiter:"partial"===x?(void 0===U&&(U={}),{options:U,fn(e){const{x:t,y:n,placement:r,rects:o,middlewareData:i}=e,{offset:s=0,mainAxis:a=!0,crossAxis:c=!0}=La(U,e),l={x:t,y:n},u=Oa(r),d=Za(u);let f=l[u],p=l[d];const h=La(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,y;const e="y"===u?"width":"height",t=["top","left"].includes(Da(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==(y=i.offset)?void 0:y[d])||0)-(t?m.crossAxis:0);p<n?p=n:p>s&&(p=s)}return{[u]:f,[d]:p}}}):void 0,...V}),S&&Xa({...V}),Qa({...V,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&&Fc({element:k,padding:g}),nl({arrowWidth:M,arrowHeight:L}),E&&Ga({strategy:"referenceHidden"})]});var U,K;const[X,Y]=rl(H),q=ys(C);ps((()=>{z&&(null==q||q())}),[z,q]);const G=null===(a=W.arrow)||void 0===a?void 0:a.x,Z=null===(c=W.arrow)||void 0===c?void 0:c.y,J=0!==(null===(l=W.arrow)||void 0===l?void 0:l.centerOffset),[Q,ee]=e.useState();return ps((()=>{T&&ee(window.getComputedStyle(T).zIndex)}),[T]),e.createElement("div",{ref:N.setFloating,"data-radix-popper-content-wrapper":"",style:{...j,transform:z?j.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Q,"--radix-popper-transform-origin":[null===(u=W.transformOrigin)||void 0===u?void 0:u.x,null===(d=W.transformOrigin)||void 0===d?void 0:d.y].join(" ")},dir:t.dir},e.createElement(Zc,{scope:p,placedSide:X,onArrowChange:D,arrowX:G,arrowY:Z,shouldHideArrow:J},e.createElement(ds.div,et({"data-side":X,"data-align":Y},P,{ref:A,style:{...P.style,animation:z?void 0:"none",opacity:null!==(f=W.hide)&&void 0!==f&&f.referenceHidden?0:void 0}}))))})),el={top:"bottom",right:"left",bottom:"top",left:"right"};function tl(e){return null!==e}const nl=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]=rl(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,y=(null!==(i=null===(s=l.arrow)||void 0===s?void 0:s.y)&&void 0!==i?i:0)+f/2;let g="",b="";return"bottom"===p?(g=u?m:`${v}px`,b=-f+"px"):"top"===p?(g=u?m:`${v}px`,b=`${c.floating.height+f}px`):"right"===p?(g=-f+"px",b=u?m:`${y}px`):"left"===p&&(g=`${c.floating.width+f}px`,b=u?m:`${y}px`),{data:{x:g,y:b}}}});function rl(e){const[t,n="center"]=e.split("-");return[t,n]}const ol=t=>{const{__scopePopper:n,children:r}=t,[o,i]=e.useState(null);return e.createElement(Xc,{scope:n,anchor:o,onAnchorChange:i},r)},il=qc,sl=Qc,al=e.forwardRef((function(t,n){const{__scopePopper:r,...o}=t,i=Jc("PopperArrow",r),s=el[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(zc,et({},o,{ref:n,style:{...o.style,display:"block"}})))})),cl=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(ds.div,et({},s,{ref:r})),i):null})),ll=e.forwardRef(((t,n)=>e.createElement(ds.span,et({},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}})))),ul=ll,dl=[" ","Enter","ArrowUp","ArrowDown"],fl=[" ","Enter"],pl="Select",[hl,ml,vl]=fs(pl),[yl,gl]=os(pl,[vl,Kc]),bl=Kc(),[wl,xl]=yl(pl),[El,Sl]=yl(pl),Cl=e.forwardRef(((t,n)=>{const{__scopeSelect:r,disabled:o=!1,...i}=t,s=bl(r),a=xl("SelectTrigger",r),c=a.disabled||o,l=rs(n,a.onTriggerChange),u=ml(r),[d,f,p]=Jl((e=>{const t=u().filter((e=>!e.disabled)),n=t.find((e=>e.value===a.value)),r=Ql(t,e,n);void 0!==r&&a.onValueChange(r.value)})),h=()=>{c||(a.onOpenChange(!0),p())};return e.createElement(il,et({asChild:!0},s),e.createElement(ds.button,et({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:ts(i.onClick,(e=>{e.currentTarget.focus()})),onPointerDown:ts(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:ts(i.onKeyDown,(e=>{const t=""!==d.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||f(e.key),t&&" "===e.key||dl.includes(e.key)&&(h(),e.preventDefault())}))})))})),Pl=e.forwardRef(((t,n)=>{const{__scopeSelect:r,className:o,style:i,children:s,placeholder:a,...c}=t,l=xl("SelectValue",r),{onValueNodeHasChildrenChange:u}=l,d=void 0!==s,f=rs(n,l.onValueNodeChange);return ps((()=>{u(d)}),[u,d]),e.createElement(ds.span,et({},c,{ref:f,style:{pointerEvents:"none"}}),void 0===l.value&&void 0!==a?a:s)})),_l=e.forwardRef(((t,n)=>{const{__scopeSelect:r,children:o,...i}=t;return e.createElement(ds.span,et({"aria-hidden":!0},i,{ref:n}),o||"▼")})),Tl="SelectContent",Rl=e.forwardRef(((n,r)=>{const o=xl(Tl,n.__scopeSelect),[i,s]=e.useState();if(ps((()=>{s(new DocumentFragment)}),[]),!o.open){const r=i;return r?t.createPortal(e.createElement(kl,{scope:n.__scopeSelect},e.createElement(hl.Slot,{scope:n.__scopeSelect},e.createElement("div",null,n.children))),r):null}return e.createElement(Ol,et({},n,{ref:r}))})),Al=10,[kl,Dl]=yl(Tl),Ol=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:m,hideWhenDetached:v,avoidCollisions:y,...g}=t,b=xl(Tl,r),[w,x]=e.useState(null),[E,S]=e.useState(null),C=rs(n,(e=>x(e))),[P,_]=e.useState(null),[T,R]=e.useState(null),A=ml(r),[k,D]=e.useState(!1),O=e.useRef(!1);e.useEffect((()=>{if(w)return Dn(w)}),[w]),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:ga()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:ga()),ya++,()=>{1===ya&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),ya--}}),[]);const M=e.useCallback((e=>{const[t,...n]=A().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&&E&&(E.scrollTop=0),i===r&&E&&(E.scrollTop=E.scrollHeight),null==i||i.focus(),document.activeElement!==o)return}}),[A,E]),L=e.useCallback((()=>M([P,w])),[M,P,w]);e.useEffect((()=>{k&&L()}),[k,L]);const{onOpenChange:B,triggerPointerDownPosRef:I}=b;e.useEffect((()=>{if(w){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=I.current)||void 0===r?void 0:r.x)&&void 0!==n?n:0)),y:Math.abs(Math.round(t.pageY)-(null!==(o=null===(i=I.current)||void 0===i?void 0:i.y)&&void 0!==o?o:0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():w.contains(n.target)||B(!1),document.removeEventListener("pointermove",t),I.current=null};return null!==I.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}}),[w,B,I]),e.useEffect((()=>{const e=()=>B(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}}),[B]);const[F,$]=Jl((e=>{const t=A().filter((e=>!e.disabled)),n=t.find((e=>e.ref.current===document.activeElement)),r=Ql(t,e,n);r&&setTimeout((()=>r.ref.current.focus()))})),V=e.useCallback(((e,t,n)=>{const r=!O.current&&!n;(void 0!==b.value&&b.value===t||r)&&(_(e),r&&(O.current=!0))}),[b.value]),N=e.useCallback((()=>null==w?void 0:w.focus()),[w]),j=e.useCallback(((e,t,n)=>{const r=!O.current&&!n;(void 0!==b.value&&b.value===t||r)&&R(e)}),[b.value]),H="popper"===o?Ll:Ml,z=H===Ll?{side:c,sideOffset:l,align:u,alignOffset:d,arrowPadding:f,collisionBoundary:p,collisionPadding:h,sticky:m,hideWhenDetached:v,avoidCollisions:y}:{};return e.createElement(kl,{scope:r,content:w,viewport:E,onViewportChange:S,itemRefCallback:V,selectedItem:P,onItemLeave:N,itemTextRefCallback:j,focusSelectedItem:L,selectedItemText:T,position:o,isPositioned:k,searchRef:F},e.createElement(Cn,{as:ss,allowPinchZoom:!0},e.createElement(Ea,{asChild:!0,trapped:b.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:ts(i,(e=>{var t;null===(t=b.trigger)||void 0===t||t.focus({preventScroll:!0}),e.preventDefault()}))},e.createElement(ha,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>b.onOpenChange(!1)},e.createElement(H,et({role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:e=>e.preventDefault()},g,z,{onPlaced:()=>D(!0),ref:C,style:{display:"flex",flexDirection:"column",outline:"none",...g.style},onKeyDown:ts(g.onKeyDown,(e=>{const t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||$(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=A().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((()=>M(t))),e.preventDefault()}}))}))))))})),Ml=e.forwardRef(((t,n)=>{const{__scopeSelect:r,onPlaced:o,...i}=t,s=xl(Tl,r),a=Dl(Tl,r),[c,l]=e.useState(null),[u,d]=e.useState(null),f=rs(n,(e=>d(e))),p=ml(r),h=e.useRef(!1),m=e.useRef(!0),{viewport:v,selectedItem:y,selectedItemText:g,focusSelectedItem:b}=a,w=e.useCallback((()=>{if(s.trigger&&s.valueNode&&c&&u&&v&&y&&g){const e=s.trigger.getBoundingClientRect(),t=u.getBoundingClientRect(),n=s.valueNode.getBoundingClientRect(),r=g.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-Al,d=ca(i,[Al,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-Al,d=ca(i,[Al,u-l]);c.style.minWidth=a+"px",c.style.right=d+"px"}const i=p(),a=window.innerHeight-2*Al,l=v.scrollHeight,d=window.getComputedStyle(u),f=parseInt(d.borderTopWidth,10),m=parseInt(d.paddingTop,10),b=parseInt(d.borderBottomWidth,10),w=f+m+l+parseInt(d.paddingBottom,10)+b,x=Math.min(5*y.offsetHeight,w),E=window.getComputedStyle(v),S=parseInt(E.paddingTop,10),C=parseInt(E.paddingBottom,10),P=e.top+e.height/2-Al,_=a-P,T=y.offsetHeight/2,R=f+m+(y.offsetTop+T),A=w-R;if(R<=P){const e=y===i[i.length-1].ref.current;c.style.bottom="0px";const t=u.clientHeight-v.offsetTop-v.offsetHeight,n=R+Math.max(_,T+(e?C:0)+t+b);c.style.height=n+"px"}else{const e=y===i[0].ref.current;c.style.top="0px";const t=Math.max(P,f+v.offsetTop+(e?S:0)+T)+A;c.style.height=t+"px",v.scrollTop=R-P+v.offsetTop}c.style.margin=`${Al}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,v,y,g,s.dir,o]);ps((()=>w()),[w]);const[x,E]=e.useState();ps((()=>{u&&E(window.getComputedStyle(u).zIndex)}),[u]);const S=e.useCallback((e=>{e&&!0===m.current&&(w(),null==b||b(),m.current=!1)}),[w,b]);return e.createElement(Bl,{scope:r,contentWrapper:c,shouldExpandOnScrollRef:h,onScrollButtonChange:S},e.createElement("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:x}},e.createElement(ds.div,et({},i,{ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}}))))})),Ll=e.forwardRef(((t,n)=>{const{__scopeSelect:r,align:o="start",collisionPadding:i=Al,...s}=t,a=bl(r);return e.createElement(sl,et({},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)"}}))})),[Bl,Il]=yl(Tl,{}),Fl="SelectViewport",$l=e.forwardRef(((t,n)=>{const{__scopeSelect:r,...o}=t,i=Dl(Fl,r),s=Il(Fl,r),a=rs(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(hl.Slot,{scope:r},e.createElement(ds.div,et({"data-radix-select-viewport":"",role:"presentation"},o,{ref:a,style:{position:"relative",flex:1,overflow:"auto",...o.style},onScroll:ts(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*Al,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}))}))))}));yl("SelectGroup");const Vl="SelectItem",[Nl,jl]=yl(Vl),Hl=e.forwardRef(((t,n)=>{const{__scopeSelect:r,value:o,disabled:i=!1,textValue:s,...a}=t,c=xl(Vl,r),l=Dl(Vl,r),u=c.value===o,[d,f]=e.useState(null!=s?s:""),[p,h]=e.useState(!1),m=rs(n,(e=>{var t;return null===(t=l.itemRefCallback)||void 0===t?void 0:t.call(l,e,o,i)})),v=vs(),y=()=>{i||(c.onValueChange(o),c.onOpenChange(!1))};return e.createElement(Nl,{scope:r,value:o,disabled:i,textId:v,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(hl.ItemSlot,{scope:r,value:o,disabled:i,textValue:d},e.createElement(ds.div,et({role:"option","aria-labelledby":v,"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:m,onFocus:ts(a.onFocus,(()=>h(!0))),onBlur:ts(a.onBlur,(()=>h(!1))),onPointerUp:ts(a.onPointerUp,y),onPointerMove:ts(a.onPointerMove,(e=>{var t;i?null===(t=l.onItemLeave)||void 0===t||t.call(l):e.currentTarget.focus({preventScroll:!0})})),onPointerLeave:ts(a.onPointerLeave,(e=>{var t;e.currentTarget===document.activeElement&&(null===(t=l.onItemLeave)||void 0===t||t.call(l))})),onKeyDown:ts(a.onKeyDown,(e=>{var t;""!==(null===(t=l.searchRef)||void 0===t?void 0:t.current)&&" "===e.key||(fl.includes(e.key)&&y()," "===e.key&&e.preventDefault())}))}))))})),zl="SelectItemText",Wl=e.forwardRef(((n,r)=>{const{__scopeSelect:o,className:i,style:s,...a}=n,c=xl(zl,o),l=Dl(zl,o),u=jl(zl,o),d=Sl(zl,o),[f,p]=e.useState(null),h=rs(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)})),m=null==f?void 0:f.textContent,v=e.useMemo((()=>e.createElement("option",{key:u.value,value:u.value,disabled:u.disabled},m)),[u.disabled,u.value,m]),{onNativeOptionAdd:y,onNativeOptionRemove:g}=d;return ps((()=>(y(v),()=>g(v))),[y,g,v]),e.createElement(e.Fragment,null,e.createElement(ds.span,et({id:u.textId},a,{ref:h})),u.isSelected&&c.valueNode&&!c.valueNodeHasChildren?t.createPortal(a.children,c.valueNode):null)})),Ul=e.forwardRef(((t,n)=>{const{__scopeSelect:r,...o}=t;return jl("SelectItemIndicator",r).isSelected?e.createElement(ds.span,et({"aria-hidden":!0},o,{ref:n})):null})),Kl="SelectScrollUpButton",Xl=e.forwardRef(((t,n)=>{const r=Dl(Kl,t.__scopeSelect),o=Il(Kl,t.__scopeSelect),[i,s]=e.useState(!1),a=rs(n,o.onScrollButtonChange);return ps((()=>{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(Gl,et({},t,{ref:a,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}})):null})),Yl="SelectScrollDownButton",ql=e.forwardRef(((t,n)=>{const r=Dl(Yl,t.__scopeSelect),o=Il(Yl,t.__scopeSelect),[i,s]=e.useState(!1),a=rs(n,o.onScrollButtonChange);return ps((()=>{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(Gl,et({},t,{ref:a,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}})):null})),Gl=e.forwardRef(((t,n)=>{const{__scopeSelect:r,onAutoScroll:o,...i}=t,s=Dl("SelectScrollButton",r),a=e.useRef(null),c=ml(r),l=e.useCallback((()=>{null!==a.current&&(window.clearInterval(a.current),a.current=null)}),[]);return e.useEffect((()=>()=>l()),[l]),ps((()=>{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(ds.div,et({"aria-hidden":!0},i,{ref:n,style:{flexShrink:0,...i.style},onPointerDown:ts(i.onPointerDown,(()=>{null===a.current&&(a.current=window.setInterval(o,50))})),onPointerMove:ts(i.onPointerMove,(()=>{var e;null===(e=s.onItemLeave)||void 0===e||e.call(s),null===a.current&&(a.current=window.setInterval(o,50))})),onPointerLeave:ts(i.onPointerLeave,(()=>{l()}))}))})),Zl=e.forwardRef(((t,n)=>{const{value:r,...o}=t,i=e.useRef(null),s=rs(n,i),a=Vs(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(ll,{asChild:!0},e.createElement("select",et({},o,{ref:s,defaultValue:r})))}));function Jl(t){const n=ys(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 Ql(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}Zl.displayName="BubbleSelect";const eu=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=bl(n),[v,y]=e.useState(null),[g,b]=e.useState(null),[w,x]=e.useState(!1),E=ws(u),[S=!1,C]=gs({prop:o,defaultProp:i,onChange:s}),[P,_]=gs({prop:a,defaultProp:c,onChange:l}),T=e.useRef(null),R=!v||Boolean(v.closest("form")),[A,k]=e.useState(new Set),D=Array.from(A).map((e=>e.props.value)).join(";");return e.createElement(ol,m,e.createElement(wl,{required:h,scope:n,trigger:v,onTriggerChange:y,valueNode:g,onValueNodeChange:b,valueNodeHasChildren:w,onValueNodeHasChildrenChange:x,contentId:vs(),value:P,onValueChange:_,open:S,onOpenChange:C,dir:E,triggerPointerDownPosRef:T,disabled:p},e.createElement(hl.Provider,{scope:n},e.createElement(El,{scope:t.__scopeSelect,onNativeOptionAdd:e.useCallback((e=>{k((t=>new Set(t).add(e)))}),[]),onNativeOptionRemove:e.useCallback((e=>{k((t=>{const n=new Set(t);return n.delete(e),n}))}),[])},r)),R?e.createElement(Zl,{key:D,"aria-hidden":!0,required:h,tabIndex:-1,name:d,autoComplete:f,value:P,onChange:e=>_(e.target.value),disabled:p},void 0===P?e.createElement("option",{value:""}):null,Array.from(A)):null))},tu=Cl,nu=Pl,ru=_l,ou=t=>e.createElement(cl,et({asChild:!0},t)),iu=Rl,su=$l,au=Hl,cu=Wl,lu=Ul,uu=Xl,du=ql,fu=e.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),pu=e.createContext({}),hu=e.createContext(null),mu="undefined"!=typeof document,vu=mu?e.useLayoutEffect:e.useEffect,yu=e.createContext({strict:!1});function gu(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function bu(e){return"string"==typeof e||Array.isArray(e)}function wu(e){return"object"==typeof e&&"function"==typeof e.start}const xu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Eu=["initial",...xu];function Su(e){return wu(e.animate)||Eu.some((t=>bu(e[t])))}function Cu(e){return Boolean(Su(e)||e.variants)}function Pu(t){const{initial:n,animate:r}=function(e,t){if(Su(e)){const{initial:t,animate:n}=e;return{initial:!1===t||bu(t)?t:void 0,animate:bu(n)?n:void 0}}return!1!==e.inherit?t:{}}(t,e.useContext(pu));return e.useMemo((()=>({initial:n,animate:r})),[_u(n),_u(r)])}function _u(e){return Array.isArray(e)?e.join(" "):e}const Tu={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"]},Ru={};for(const ib in Tu)Ru[ib]={isEnabled:e=>Tu[ib].some((t=>!!e[t]))};function Au(t){const n=e.useRef(null);return null===n.current&&(n.current=t()),n.current}const ku={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let Du=1;const Ou=e.createContext({}),Mu=e.createContext({}),Lu=Symbol.for("motionComponentSymbol");function Bu({preloadedFeatures:t,createVisualElement:n,useRender:o,useVisualState:i,Component:s}){t&&function(e){for(const t in e)Ru[t]={...Ru[t],...e[t]}}(t);const a=e.forwardRef((function(a,c){let l;const u={...e.useContext(fu),...a,layoutId:Iu(a)},{isStatic:d}=u,f=Pu(a),p=d?void 0:Au((()=>{if(ku.hasEverUpdated)return Du++})),h=i(a,d);if(!d&&mu){f.visualElement=function(t,n,r,o){const{visualElement:i}=e.useContext(pu),s=e.useContext(yu),a=e.useContext(hu),c=e.useContext(fu).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)})),vu((()=>{u&&u.render()})),e.useEffect((()=>{u&&u.updateFeatures()})),(window.HandoffAppearAnimations?vu:e.useEffect)((()=>{u&&u.animationState&&u.animationState.animateChanges()})),u}(s,h,u,n);const r=e.useContext(Mu),o=e.useContext(yu).strict;f.visualElement&&(l=f.visualElement.loadFeatures(u,o,t,p,r))}return r.createElement(pu.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):gu(r)&&(r.current=e))}),[n])}(h,f.visualElement,c),h,d,f.visualElement))}));return a[Lu]=s,a}function Iu({layoutId:t}){const n=e.useContext(Ou).id;return n&&void 0!==t?n+"-"+t:t}function Fu(e){function t(t,n={}){return Bu(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 $u=["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 Vu(e){return"string"==typeof e&&!e.includes("-")&&!!($u.indexOf(e)>-1||/[A-Z]/.test(e))}const Nu={};const ju=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Hu=new Set(ju);function zu(e,{layout:t,layoutId:n}){return Hu.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!Nu[e]||"opacity"===e)}const Wu=e=>Boolean(e&&e.getVelocity),Uu={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Ku=ju.length;const Xu=e=>t=>"string"==typeof t&&t.startsWith(e),Yu=Xu("--"),qu=Xu("var(--"),Gu=(e,t)=>t&&"number"==typeof e?t.transform(e):e,Zu=(e,t,n)=>Math.min(Math.max(n,e),t),Ju={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},Qu={...Ju,transform:e=>Zu(0,1,e)},ed={...Ju,default:1},td=e=>Math.round(1e5*e)/1e5,nd=/(-)?([\d]*\.?[\d])+/g,rd=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,od=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function id(e){return"string"==typeof e}const sd=e=>({test:t=>id(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),ad=sd("deg"),cd=sd("%"),ld=sd("px"),ud=sd("vh"),dd=sd("vw"),fd={...cd,parse:e=>cd.parse(e)/100,transform:e=>cd.transform(100*e)},pd={...Ju,transform:Math.round},hd={borderWidth:ld,borderTopWidth:ld,borderRightWidth:ld,borderBottomWidth:ld,borderLeftWidth:ld,borderRadius:ld,radius:ld,borderTopLeftRadius:ld,borderTopRightRadius:ld,borderBottomRightRadius:ld,borderBottomLeftRadius:ld,width:ld,maxWidth:ld,height:ld,maxHeight:ld,size:ld,top:ld,right:ld,bottom:ld,left:ld,padding:ld,paddingTop:ld,paddingRight:ld,paddingBottom:ld,paddingLeft:ld,margin:ld,marginTop:ld,marginRight:ld,marginBottom:ld,marginLeft:ld,rotate:ad,rotateX:ad,rotateY:ad,rotateZ:ad,scale:ed,scaleX:ed,scaleY:ed,scaleZ:ed,skew:ad,skewX:ad,skewY:ad,distance:ld,translateX:ld,translateY:ld,translateZ:ld,x:ld,y:ld,z:ld,perspective:ld,transformPerspective:ld,opacity:Qu,originX:fd,originY:fd,originZ:ld,zIndex:pd,fillOpacity:Qu,strokeOpacity:Qu,numOctaves:pd};function md(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(Yu(d)){i[d]=e;continue}const n=hd[d],r=Gu(e,n);if(Hu.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<Ku;s++){const t=ju[s];void 0!==e[t]&&(i+=`${Uu[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 vd=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function yd(e,t,n){for(const r in t)Wu(t[r])||zu(r,n)||(e[r]=t[r])}function gd(t,n,r){const o={};return yd(o,t.style||{},t),Object.assign(o,function({transformTemplate:t},n,r){return e.useMemo((()=>{const e=vd();return md(e,n,{enableHardwareAcceleration:!r},t),Object.assign({},e.vars,e.style)}),[n])}(t,n,r)),t.transformValues?t.transformValues(o):o}function bd(e,t,n){const r={},o=gd(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 wd=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 xd(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||wd.has(e)}let Ed=e=>!xd(e);try{(Sd=require("@emotion/is-prop-valid").default)&&(Ed=e=>e.startsWith("on")?!xd(e):Sd(e))}catch(ob){}var Sd;function Cd(e,t,n){return"string"==typeof e?e:ld.transform(t+n*e)}const Pd={offset:"stroke-dashoffset",array:"stroke-dasharray"},_d={offset:"strokeDashoffset",array:"strokeDasharray"};function Td(e,{attrX:t,attrY:n,originX:r,originY:o,pathLength:i,pathSpacing:s=1,pathOffset:a=0,...c},l,u,d){if(md(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`${Cd(t,e.x,e.width)} ${Cd(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?Pd:_d;e[i.offset]=ld.transform(-r);const s=ld.transform(t),a=ld.transform(n);e[i.array]=`${s} ${a}`}(f,i,s,a,!1)}const Rd=()=>({...vd(),attrs:{}}),Ad=e=>"string"==typeof e&&"svg"===e.toLowerCase();function kd(t,n,r,o){const i=e.useMemo((()=>{const e=Rd();return Td(e,n,{enableHardwareAcceleration:!1},Ad(o),t.transformTemplate),{...e.attrs,style:{...e.style}}}),[n]);if(t.style){const e={};yd(e,t.style,t),i.style={...e,...i.style}}return i}function Dd(t=!1){return(n,r,o,i,{latestValues:s},a)=>{const c=(Vu(n)?kd:bd)(r,s,a,n),l=function(e,t,n){const r={};for(const o in e)"values"===o&&"object"==typeof e.values||(Ed(o)||!0===n&&xd(o)||!t&&!xd(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((()=>Wu(d)?d.get():d),[d]);return o&&(u["data-projection-id"]=o),e.createElement(n,{...u,children:f})}}const Od=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function Md(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 Ld=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 Bd(e,t,n,r){Md(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Ld.has(o)?o:Od(o),t.attrs[o])}function Id(e,t){const{style:n}=e,r={};for(const o in n)(Wu(n[o])||t.style&&Wu(t.style[o])||zu(o,e))&&(r[o]=n[o]);return r}function Fd(e,t){const n=Id(e,t);for(const r in e)if(Wu(e[r])||Wu(t[r])){n["x"===r||"y"===r?"attr"+r.toUpperCase():r]=e[r]}return n}function $d(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 Vd=e=>Array.isArray(e),Nd=e=>Boolean(e&&"object"==typeof e&&e.mix&&e.toValue),jd=e=>Vd(e)?e[e.length-1]||0:e;function Hd(e){const t=Wu(e)?e.get():e;return Nd(t)?t.toValue():t}const zd=t=>(n,r)=>{const o=e.useContext(pu),i=e.useContext(hu),s=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const s={latestValues:Wd(r,o,i,e),renderState:t()};return n&&(s.mount=e=>n(r,e,s)),s}(t,n,o,i);return r?s():Au(s)};function Wd(e,t,n,r){const o={},i=r(e,{});for(const f in i)o[f]=Hd(i[f]);let{initial:s,animate:a}=e;const c=Su(e),l=Cu(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&&!wu(d)){(Array.isArray(d)?d:[d]).forEach((t=>{const n=$d(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 Ud={useVisualState:zd({scrapeMotionValuesFromProps:Fd,createRenderState:Rd,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}}Td(n,r,{enableHardwareAcceleration:!1},Ad(t.tagName),e.transformTemplate),Bd(t,n)}})},Kd={useVisualState:zd({scrapeMotionValuesFromProps:Id,createRenderState:vd})};function Xd(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const Yd=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function qd(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const Gd=e=>t=>Yd(t)&&e(t,qd(t));function Zd(e,t,n,r){return Xd(e,t,Gd(n),r)}const Jd=(e,t)=>n=>t(e(n)),Qd=(...e)=>e.reduce(Jd);function ef(e){let t=null;return()=>{const n=()=>{t=null};return null===t&&(t=e,n)}}const tf=ef("dragHorizontal"),nf=ef("dragVertical");function rf(e){let t=!1;if("y"===e)t=nf();else if("x"===e)t=tf();else{const e=tf(),n=nf();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function of(){const e=rf(!0);return!e||(e(),!1)}class sf{constructor(e){this.isMounted=!1,this.node=e}update(){}}const af={delta:0,timestamp:0,isProcessing:!1};let cf=!0,lf=!1;const uf=["read","update","preRender","render","postRender"],df=uf.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}((()=>lf=!0)),e)),{}),ff=uf.reduce(((e,t)=>{const n=df[t];return e[t]=(e,t=!1,r=!1)=>(lf||yf(),n.schedule(e,t,r)),e}),{}),pf=uf.reduce(((e,t)=>(e[t]=df[t].cancel,e)),{}),hf=uf.reduce(((e,t)=>(e[t]=()=>df[t].process(af),e)),{}),mf=e=>df[e].process(af),vf=e=>{lf=!1,af.delta=cf?1e3/60:Math.max(Math.min(e-af.timestamp,40),1),af.timestamp=e,af.isProcessing=!0,uf.forEach(mf),af.isProcessing=!1,lf&&(cf=!1,requestAnimationFrame(vf))},yf=()=>{lf=!0,cf=!0,af.isProcessing||requestAnimationFrame(vf)};function gf(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End");return Zd(e.current,n,((n,o)=>{if("touch"===n.type||of())return;const i=e.getProps();e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",t),i[r]&&ff.update((()=>i[r](n,o)))}),{passive:!e.getProps()[r]})}const bf=(e,t)=>!!t&&(e===t||bf(e,t.parentElement)),wf=e=>e;function xf(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,qd(n))}const Ef=new WeakMap,Sf=new WeakMap,Cf=e=>{const t=Ef.get(e.target);t&&t(e)},Pf=e=>{e.forEach(Cf)};function _f(e,t,n){const r=function({root:e,...t}){const n=e||document;Sf.has(n)||Sf.set(n,{});const r=Sf.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(Pf,{root:e,...t})),r[o]}(t);return Ef.set(e,n),r.observe(e),()=>{Ef.delete(e),r.unobserve(e)}}const Tf={some:0,all:1};const Rf={inView:{Feature:class extends sf{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:Tf[r]};return _f(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 sf{constructor(){super(...arguments),this.removeStartListeners=wf,this.removeEndListeners=wf,this.removeAccessibleListeners=wf,this.startPointerPress=(e,t)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),r=Zd(window,"pointerup",((e,t)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:r}=this.node.getProps();ff.update((()=>{bf(this.node.current,e.target)?n&&n(e,t):r&&r(e,t)}))}),{passive:!(n.onTap||n.onPointerUp)}),o=Zd(window,"pointercancel",((e,t)=>this.cancelPress(e,t)),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=Qd(r,o),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=Xd(this.node.current,"keydown",(e=>{if("Enter"!==e.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=Xd(this.node.current,"keyup",(e=>{"Enter"===e.key&&this.checkPressEnd()&&xf("up",((e,t)=>{const{onTap:n}=this.node.getProps();n&&ff.update((()=>n(e,t)))}))})),xf("down",((e,t)=>{this.startPress(e,t)}))})),t=Xd(this.node.current,"blur",(()=>{this.isPressing&&xf("cancel",((e,t)=>this.cancelPress(e,t)))}));this.removeAccessibleListeners=Qd(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&&ff.update((()=>n(e,t)))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!of()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&ff.update((()=>n(e,t)))}mount(){const e=this.node.getProps(),t=Zd(this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=Xd(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Qd(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends sf{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=Qd(Xd(this.node.current,"focus",(()=>this.onFocus())),Xd(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends sf{mount(){this.unmount=Qd(gf(this.node,!0),gf(this.node,!1))}unmount(){}}}};function Af(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 kf(e,t,n){const r=e.getProps();return $d(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 Df="data-"+Od("framerAppearId");let Of=wf,Mf=wf;"production"!==process.env.NODE_ENV&&(Of=(e,t)=>{e||"undefined"==typeof console||console.warn(t)},Mf=(e,t)=>{if(!e)throw new Error(t)});const Lf=e=>1e3*e,Bf=e=>e/1e3,If=!1,Ff=e=>Array.isArray(e)&&"number"==typeof e[0];function $f(e){return Boolean(!e||"string"==typeof e&&Nf[e]||Ff(e)||Array.isArray(e)&&e.every($f))}const Vf=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Nf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Vf([0,.65,.55,1]),circOut:Vf([.55,0,1,.45]),backIn:Vf([.31,.01,.66,-.59]),backOut:Vf([.33,1.53,.69,.99])};function jf(e){if(e)return Ff(e)?Vf(e):Array.isArray(e)?e.map(jf):Nf[e]}const Hf={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},zf={},Wf={};for(const ib in Hf)Wf[ib]=()=>(void 0===zf[ib]&&(zf[ib]=Hf[ib]()),zf[ib]);const Uf=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Kf=1e-7,Xf=12;function Yf(e,t,n,r){if(e===t&&n===r)return wf;const o=t=>function(e,t,n,r,o){let i,s,a=0;do{s=t+(n-t)/2,i=Uf(s,r,o)-e,i>0?n=s:t=s}while(Math.abs(i)>Kf&&++a<Xf);return s}(t,0,1,e,n);return e=>0===e||1===e?e:Uf(o(e),t,r)}const qf=Yf(.42,0,1,1),Gf=Yf(0,0,.58,1),Zf=Yf(.42,0,.58,1),Jf=e=>Array.isArray(e)&&"number"!=typeof e[0],Qf=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ep=e=>t=>1-e(1-t),tp=e=>1-Math.sin(Math.acos(e)),np=ep(tp),rp=Qf(np),op=Yf(.33,1.53,.69,.99),ip=ep(op),sp=Qf(ip),ap={linear:wf,easeIn:qf,easeInOut:Zf,easeOut:Gf,circIn:tp,circInOut:rp,circOut:np,backIn:ip,backInOut:sp,backOut:op,anticipate:e=>(e*=2)<1?.5*ip(e):.5*(2-Math.pow(2,-10*(e-1)))},cp=e=>{if(Array.isArray(e)){Mf(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,o]=e;return Yf(t,n,r,o)}return"string"==typeof e?(Mf(void 0!==ap[e],`Invalid easing type '${e}'`),ap[e]):e},lp=(e,t)=>n=>Boolean(id(n)&&od.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),up=(e,t,n)=>r=>{if(!id(r))return r;const[o,i,s,a]=r.match(nd);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},dp={...Ju,transform:e=>Math.round((e=>Zu(0,255,e))(e))},fp={test:lp("rgb","red"),parse:up("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+dp.transform(e)+", "+dp.transform(t)+", "+dp.transform(n)+", "+td(Qu.transform(r))+")"};const pp={test:lp("#"),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:fp.transform},hp={test:lp("hsl","hue"),parse:up("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+cd.transform(td(t))+", "+cd.transform(td(n))+", "+td(Qu.transform(r))+")"},mp={test:e=>fp.test(e)||pp.test(e)||hp.test(e),parse:e=>fp.test(e)?fp.parse(e):hp.test(e)?hp.parse(e):pp.parse(e),transform:e=>id(e)?e:e.hasOwnProperty("red")?fp.transform(e):hp.transform(e)},vp=(e,t,n)=>-n*e+n*t+e;function yp(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 gp=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},bp=[pp,fp,hp];function wp(e){const t=(n=e,bp.find((e=>e.test(n))));var n;Mf(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`);let r=t.parse(e);return t===hp&&(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=yp(a,r,e+1/3),i=yp(a,r,e),s=yp(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 xp=(e,t)=>{const n=wp(e),r=wp(t),o={...n};return e=>(o.red=gp(n.red,r.red,e),o.green=gp(n.green,r.green,e),o.blue=gp(n.blue,r.blue,e),o.alpha=vp(n.alpha,r.alpha,e),fp.transform(o))},Ep="${c}",Sp="${n}";function Cp(e){"number"==typeof e&&(e=`${e}`);const t=[];let n=0,r=0;const o=e.match(rd);o&&(n=o.length,e=e.replace(rd,Ep),t.push(...o.map(mp.parse)));const i=e.match(nd);return i&&(r=i.length,e=e.replace(nd,Sp),t.push(...i.map(Ju.parse))),{values:t,numColors:n,numNumbers:r,tokenised:e}}function Pp(e){return Cp(e).values}function _p(e){const{values:t,numColors:n,tokenised:r}=Cp(e),o=t.length;return e=>{let t=r;for(let r=0;r<o;r++)t=t.replace(r<n?Ep:Sp,r<n?mp.transform(e[r]):td(e[r]));return t}}const Tp=e=>"number"==typeof e?0:e;const Rp={test:function(e){var t,n;return isNaN(e)&&id(e)&&((null===(t=e.match(nd))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(rd))||void 0===n?void 0:n.length)||0)>0},parse:Pp,createTransformer:_p,getAnimatableNone:function(e){const t=Pp(e);return _p(e)(t.map(Tp))}};function Ap(e,t){return"number"==typeof e?n=>vp(e,t,n):mp.test(e)?xp(e,t):Op(e,t)}const kp=(e,t)=>{const n=[...e],r=n.length,o=e.map(((e,n)=>Ap(e,t[n])));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}},Dp=(e,t)=>{const n={...e,...t},r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=Ap(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}},Op=(e,t)=>{const n=Rp.createTransformer(t),r=Cp(e),o=Cp(t);return r.numColors===o.numColors&&r.numNumbers>=o.numNumbers?Qd(kp(r.values,o.values),n):(Of(!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}`)},Mp=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},Lp=(e,t)=>n=>vp(e,t,n);function Bp(e,t,n){const r=[],o=n||("number"==typeof(i=e[0])?Lp:"string"==typeof i?mp.test(i)?xp:Op:Array.isArray(i)?kp:"object"==typeof i?Dp:Lp);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]||wf:t;n=Qd(e,n)}r.push(n)}return r}function Ip(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(Mf(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=Bp(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=Mp(e[n],e[n+1],t);return s[n](r)};return n?t=>c(Zu(e[0],e[i-1],t)):c}function Fp(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Mp(0,t,r);e.push(vp(n,1,o))}}(t,e.length-1),t}function $p({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=Jf(r)?r.map(cp):cp(r),i={done:!1,value:t[0]},s=function(e,t){return e.map((e=>e*t))}(n&&n.length===t.length?n:Fp(t),e),a=Ip(s,t,{ease:Array.isArray(o)?o:(c=t,l=o,c.map((()=>l||Zf)).splice(0,c.length-1))});var c,l;return{calculatedDuration:e,next:t=>(i.value=a(t),i.done=t>=e,i)}}function Vp(e,t){return t?e*(1e3/t):0}const Np=5;function jp(e,t,n){const r=Math.max(t-Np,0);return Vp(n-e(r),t-r)}const Hp=.001,zp=.01,Wp=10,Up=.05,Kp=1;function Xp({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;Of(e<=Lf(Wp),"Spring duration must be 10 seconds or less");let s=1-t;s=Zu(Up,Kp,s),e=Zu(zp,Wp,Bf(e)),s<1?(o=t=>{const r=t*s,o=r*e,i=r-n,a=qp(t,s),c=Math.exp(-o);return Hp-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=qp(Math.pow(t,2),s);return(-o(t)+Hp>0?-1:1)*((i-a)*c)/l}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-Hp,i=t=>Math.exp(-t*e)*(e*e*(n-t)));const a=function(e,t,n){let r=n;for(let o=1;o<Yp;o++)r-=e(r)/t(r);return r}(o,i,5/e);if(e=Lf(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 Yp=12;function qp(e,t){return e*Math.sqrt(1-t*t)}const Gp=["duration","bounce"],Zp=["stiffness","damping","mass"];function Jp(e,t){return t.some((t=>void 0!==e[t]))}function Qp({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(!Jp(e,Zp)&&Jp(e,Gp)){const n=Xp(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}(r),p=u?-Bf(u):0,h=c/(2*Math.sqrt(a*l)),m=i-o,v=Bf(Math.sqrt(a/l)),y=Math.abs(m)<5;let g;if(n||(n=y?.01:2),t||(t=y?.005:.5),h<1){const e=qp(v,h);g=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)g=e=>i-Math.exp(-v*e)*(m+(p+v*m)*e);else{const e=v*Math.sqrt(h*h-1);g=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=g(e);if(f)s.done=e>=d;else{let o=p;0!==e&&(o=h<1?jp(g,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 eh({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 y=e=>-h*Math.exp(-e/r),g=e=>v+y(e),b=e=>{const t=y(e),n=g(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=Qp({keyframes:[f.value,p(f.value)],velocity:jp(g,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 th=e=>{const t=({timestamp:t})=>e(t);return{start:()=>ff.update(t,!0),stop:()=>pf.update(t),now:()=>af.isProcessing?af.timestamp:performance.now()}},nh={decay:eh,inertia:eh,tween:$p,keyframes:$p,spring:Qp},rh=2e4;function oh(e){let t=0;let n=e.next(t);for(;!n.done&&t<rh;)t+=50,n=e.next(t);return t>=rh?1/0:t}function ih({autoplay:e=!0,delay:t=0,driver:n=th,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 y=()=>{p&&p(),h=new Promise((e=>{p=e}))};let g;y();const b=nh[o]||$p;let w;b!==$p&&"number"!=typeof r[0]&&(w=Ip([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",C=null,P=null,_=null;null===x.calculatedDuration&&i&&(x.calculatedDuration=oh(x));const{calculatedDuration:T}=x;let R=1/0,A=1/0;null!==T&&(R=T+s,A=R*(i+1)-s);let k=0;const D=e=>{if(null===P)return;m>0&&(P=Math.min(P,e)),k=null!==C?C:(e-P)*m;const n=k-t,o=n<0;k=Math.max(n,0),"finished"===S&&null===C&&(k=A);let c=k,l=x;if(i){const e=k/R;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/R)):"mirror"===a&&(l=E));let o=Zu(0,1,n);k>A&&(o="reverse"===a&&r?1:0),c=o*R}const u=o?{done:!1,value:r[0]}:l.next(c);w&&(u.value=w(u.value));let{done:f}=u;o||null===T||(f=k>=A);const p=null===C&&("finished"===S||"running"===S&&f||m<0&&k<=0);return d&&d(u.value),p&&L(),u},O=()=>{g&&g.stop(),g=void 0},M=()=>{S="idle",O(),y(),P=_=null},L=()=>{S="finished",u&&u(),O(),y()},B=()=>{if(v)return;g||(g=n(D));const e=g.now();c&&c(),S="running",null!==C?P=e-C:P||(P=e),_=P,C=null,g.start()};e&&B();const I={then:(e,t)=>h.then(e,t),get time(){return Bf(k)},set time(e){e=Lf(e),k=e,null===C&&g&&0!==m?P=g.now()-e/m:C=e},get duration(){const e=null===x.calculatedDuration?oh(x):x.calculatedDuration;return Bf(e)},get speed(){return m},set speed(e){e!==m&&g&&(m=e,I.time=Bf(k))},get state(){return S},play:B,pause:()=>{S="paused",C=k},stop:()=>{v=!0,"idle"!==S&&(S="idle",l&&l(),M())},cancel:()=>{null!==_&&D(_),M()},complete:()=>{S="finished"},sample:e=>(P=0,D(e))};return I}const sh=new Set(["opacity","clipPath","filter","transform","backgroundColor"]);function ah(e,t,{onUpdate:n,onComplete:r,...o}){if(!(Wf.waapi()&&sh.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||!$f(t.ease))(t,o)){const e=ih({...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=jf(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=()=>{ff.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 Bf(f.currentTime||0)},set time(e){f.currentTime=Lf(e)},get speed(){return f.playbackRate},set speed(e){f.playbackRate=e},get duration(){return Bf(u)},play:()=>{a||f.play()},pause:()=>f.pause(),stop:()=>{if(a=!0,"idle"===f.playState)return;const{currentTime:t}=f;if(t){const n=ih({...o,autoplay:!1});e.setWithVelocity(n.sample(t-10).value,n.sample(t).value,10)}p()},complete:()=>f.finish(),cancel:p}}const ch={type:"spring",stiffness:500,damping:25,restSpeed:10},lh={type:"keyframes",duration:.8},uh={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},dh=(e,{keyframes:t})=>t.length>2?lh:Hu.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:ch:uh,fh=(e,t)=>"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!Rp.test(t)||t.startsWith("url("))),ph=new Set(["brightness","contrast","saturate","opacity"]);function hh(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(nd)||[];if(!r)return e;const o=n.replace(r,"");let i=ph.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const mh=/([a-z-]*)\(.*?\)/g,vh={...Rp,getAnimatableNone:e=>{const t=e.match(mh);return t?t.map(hh).join(" "):e}},yh={...hd,color:mp,backgroundColor:mp,outlineColor:mp,fill:mp,stroke:mp,borderColor:mp,borderTopColor:mp,borderRightColor:mp,borderBottomColor:mp,borderLeftColor:mp,filter:vh,WebkitFilter:vh},gh=e=>yh[e];function bh(e,t){let n=gh(e);return n!==vh&&(n=Rp),n.getAnimatableNone?n.getAnimatableNone(t):void 0}function wh(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function xh(e){return"number"==typeof e?0:bh("",e)}function Eh(e,t){return e[t]||e.default||e}const Sh=(e,t,n,r={})=>o=>{const i=Eh(r,e)||{},s=i.delay||r.delay||0;let{elapsed:a=0}=r;a-=Lf(s);const c=function(e,t,n,r){const o=fh(t,n);let i=void 0!==r.from?r.from:e.get();if("none"===i&&o&&"string"==typeof n?i=bh(t,n):wh(i)&&"string"==typeof n?i=xh(n):!Array.isArray(n)&&wh(n)&&"string"==typeof i&&(n=xh(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=fh(e,l),f=fh(e,u);Of(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,...dh(e,p)}),p.duration&&(p.duration=Lf(p.duration)),p.repeatDelay&&(p.repeatDelay=Lf(p.repeatDelay)),!d||!f||If||!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:wf,pause:wf,stop:wf,then:e=>(e(),Promise.resolve()),cancel:wf,complete:wf});return t?ih({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=ah(t,e,p);if(n)return n}return ih(p)};function Ch(e){return Boolean(Wu(e)&&e.add)}const Ph=e=>/^0[^.\s]+$/.test(e);function _h(e,t){-1===e.indexOf(t)&&e.push(t)}function Th(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Rh{constructor(){this.subscriptions=[]}add(e){return _h(this.subscriptions,e),()=>Th(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 Ah=new Set;function kh(e,t,n){e||Ah.has(t)||(console.warn(t),n&&console.warn(n),Ah.add(t))}class Dh{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}=af;this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,ff.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=()=>ff.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&&kh(!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 Rh);const n=this.events[e].add(t);return"change"===e?()=>{n(),ff.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?Vp(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 Oh(e,t){return new Dh(e,t)}const Mh=e=>t=>t.test(e),Lh=[Ju,ld,cd,ad,dd,ud,{test:e=>"auto"===e,parse:e=>e}],Bh=e=>Lh.find(Mh(e)),Ih=[...Lh,mp,Rp],Fh=e=>Ih.find(Mh(e));function $h(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Oh(n))}function Vh(e,t){if(!t)return;return(t[e]||t.default||t).from}function Nh({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function jh(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&&Nh(u,d))continue;const o={delay:n,elapsed:0,...i};if(window.HandoffAppearAnimations&&!t.hasAnimated){const n=e.getProps()[Df];n&&(o.elapsed=window.HandoffAppearAnimations(n,d,t,ff))}t.start(Sh(d,t,r,e.shouldReduceMotion&&Hu.has(d)?{type:!1}:o));const s=t.animation;Ch(c)&&(c.add(d),s.then((()=>c.remove(d)))),l.push(s)}return s&&Promise.all(l).then((()=>{s&&function(e,t){const n=kf(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const s in i)$h(e,s,jd(i[s]))}(e,s)})),l}function Hh(e,t,n={}){const r=kf(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(jh(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(zh).forEach(((e,r)=>{e.notify("AnimationStart",t),s.push(Hh(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 zh(e,t){return e.sortNodePosition(t)}const Wh=[...xu].reverse(),Uh=xu.length;function Kh(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=>Hh(e,t,n)));r=Promise.all(o)}else if("string"==typeof t)r=Hh(e,t,n);else{const o="function"==typeof t?kf(e,t,n.custom):t;r=Promise.all(jh(e,o,n))}return r.then((()=>e.notify("AnimationComplete",t)))}(e,t,n))))}function Xh(e){let t=Kh(e);const n={animate:qh(!0),whileInView:qh(),whileHover:qh(),whileTap:qh(),whileDrag:qh(),whileFocus:qh(),exit:qh()};let r=!0;const o=(t,n)=>{const r=kf(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<Uh;t++){const p=Wh[t],h=n[p],m=void 0!==a[p]?a[p]:c[p],v=bu(m),y=p===s?h.isActive:null;!1===y&&(f=t);let g=m===c[p]&&m!==a[p]&&v;if(g&&r&&e.manuallyAnimateOnMount&&(g=!1),h.protectedKeys={...d},!h.isActive&&null===y||!m&&!h.prevProp||wu(m)||"boolean"==typeof m)continue;const b=Yh(h.prevProp,m);let w=b||p===s&&h.isActive&&!g&&v||t>f&&v;const x=Array.isArray(m)?m:[m];let E=x.reduce(o,{});!1===y&&(E={});const{prevResolvedValues:S={}}=h,C={...S,...E},P=e=>{w=!0,u.delete(e),h.needsAnimating[e]=!0};for(const e in C){const t=E[e],n=S[e];d.hasOwnProperty(e)||(t!==n?Vd(t)&&Vd(n)?!Af(t,n)||b?P(e):h.protectedKeys[e]=!0:void 0!==t?P(e):u.add(e):void 0!==t&&u.has(e)?P(e):h.protectedKeys[e]=!0)}h.prevProp=m,h.prevResolvedValues=E,h.isActive&&(d={...d,...E}),r&&e.blockInitialAnimation&&(w=!1),w&&!g&&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 Yh(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!Af(t,e)}function qh(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let Gh=0;const Zh={animation:{Feature:class extends sf{constructor(e){super(e),e.animationState||(e.animationState=Xh(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),wu(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 sf{constructor(){super(...arguments),this.id=Gh++}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(){}}}},Jh=(e,t)=>Math.abs(e-t);class Qh{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=nm(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=Jh(e.x,t.x),r=Jh(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}=af;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=em(t,this.transformPagePoint),ff.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{if(this.end(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const{onEnd:n,onSessionEnd:r}=this.handlers,o=nm("pointercancel"===e.type?this.lastMoveEventInfo:em(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),r&&r(e,o)},!Yd(e))return;this.handlers=t,this.transformPagePoint=n;const r=em(qd(e),this.transformPagePoint),{point:o}=r,{timestamp:i}=af;this.history=[{...o,timestamp:i}];const{onSessionStart:s}=t;s&&s(e,nm(r,this.history)),this.removeListeners=Qd(Zd(window,"pointermove",this.handlePointerMove),Zd(window,"pointerup",this.handlePointerUp),Zd(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),pf.update(this.updatePoint)}}function em(e,t){return t?{point:t(e.point)}:e}function tm(e,t){return{x:e.x-t.x,y:e.y-t.y}}function nm({point:e},t){return{point:e,delta:tm(e,om(t)),offset:tm(e,rm(t)),velocity:im(t,.1)}}function rm(e){return e[0]}function om(e){return e[e.length-1]}function im(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=om(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Lf(t)));)n--;if(!r)return{x:0,y:0};const i=Bf(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 sm(e){return e.max-e.min}function am(e,t=0,n=.01){return Math.abs(e-t)<=n}function cm(e,t,n,r=.5){e.origin=r,e.originPoint=vp(t.min,t.max,e.origin),e.scale=sm(n)/sm(t),(am(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=vp(n.min,n.max,e.origin)-e.originPoint,(am(e.translate)||isNaN(e.translate))&&(e.translate=0)}function lm(e,t,n,r){cm(e.x,t.x,n.x,r?r.originX:void 0),cm(e.y,t.y,n.y,r?r.originY:void 0)}function um(e,t,n){e.min=n.min+t.min,e.max=e.min+sm(t)}function dm(e,t,n){e.min=t.min-n.min,e.max=e.min+sm(t)}function fm(e,t,n){dm(e.x,t.x,n.x),dm(e.y,t.y,n.y)}function pm(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 hm(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 mm=.35;function vm(e,t,n){return{min:ym(e,t),max:ym(e,n)}}function ym(e,t){return"number"==typeof e?e:e[t]||0}const gm=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),bm=()=>({x:{min:0,max:0},y:{min:0,max:0}});function wm(e){return[e("x"),e("y")]}function xm({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Em(e){return void 0===e||1===e}function Sm({scale:e,scaleX:t,scaleY:n}){return!Em(e)||!Em(t)||!Em(n)}function Cm(e){return Sm(e)||Pm(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Pm(e){return _m(e.x)||_m(e.y)}function _m(e){return e&&"0%"!==e}function Tm(e,t,n){return n+t*(e-n)}function Rm(e,t,n,r,o){return void 0!==o&&(e=Tm(e,o,r)),Tm(e,n,r)+t}function Am(e,t=0,n=1,r,o){e.min=Rm(e.min,t,n,r,o),e.max=Rm(e.max,t,n,r,o)}function km(e,{x:t,y:n}){Am(e.x,t.translate,t.scale,t.originPoint),Am(e.y,n.translate,n.scale,n.originPoint)}function Dm(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function Om(e,t){e.min=e.min+t,e.max=e.max+t}function Mm(e,t,[n,r,o]){const i=void 0!==t[o]?t[o]:.5,s=vp(e.min,e.max,i);Am(e,t[n],t[r],s,t.scale)}const Lm=["x","scaleX","originX"],Bm=["y","scaleY","originY"];function Im(e,t){Mm(e.x,t,Lm),Mm(e.y,t,Bm)}function Fm(e,t){return xm(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 $m=new WeakMap;class Vm{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=bm(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;this.panSession=new Qh(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(qd(e,"page").point)},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:o}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=rf(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),wm((e=>{let t=this.getAxisMotionValue(e).get()||0;if(cd.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];if(r){t=sm(r)*(parseFloat(t)/100)}}}this.originPoint[e]=t})),o&&ff.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&&ff.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||!Nm(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?vp(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?vp(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&&gu(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!n)&&function(e,{top:t,left:n,bottom:r,right:o}){return{x:pm(e.x,n,o),y:pm(e.y,t,r)}}(n.layoutBox,e),this.elastic=function(e=mm){return!1===e?e=0:!0===e&&(e=mm),{x:vm(e,"left","right"),y:vm(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&wm((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||!gu(e))return!1;const n=e.current;Mf(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=Fm(e,n),{scroll:o}=t;return o&&(Om(r.x,o.offset.x),Om(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:hm(e.x,t.x),y:hm(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=xm(e))}return i}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{},c=wm((s=>{if(!Nm(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(Sh(e,n,0,t))}stopAnimation(){wm((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){wm((t=>{const{drag:n}=this.getProps();if(!Nm(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]-vp(n,i,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!gu(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};wm((e=>{const t=this.getAxisMotionValue(e);if(t){const n=t.get();r[e]=function(e,t){let n=.5;const r=sm(e),o=sm(t);return o>r?n=Mp(t.min,t.max-r,e.min):r>o&&(n=Mp(e.min,e.max-o,t.min)),Zu(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(),wm((t=>{if(!Nm(t,e,null))return;const n=this.getAxisMotionValue(t),{min:o,max:i}=this.constraints[t];n.set(vp(o,i,r[t]))}))}addListeners(){if(!this.visualElement.current)return;$m.set(this.visualElement,this);const e=Zd(this.visualElement.current,"pointerdown",(e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)})),t=()=>{const{dragConstraints:e}=this.getProps();gu(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=Xd(window,"resize",(()=>this.scalePositionWithinConstraints())),i=n.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(wm((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=mm,dragMomentum:s=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:s}}}function Nm(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const jm=e=>(t,n)=>{e&&ff.update((()=>e(t,n)))};function Hm(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const zm={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!ld.test(e))return e;e=parseFloat(e)}return`${Hm(e,t.target.x)}% ${Hm(e,t.target.y)}%`}},Wm=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;const Um=4;function Km(e,t,n=1){Mf(n<=Um,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,o]=function(e){const t=Wm.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():qu(o)?Km(o,t,n+1):o}const Xm="_$css",Ym={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=e.includes("var("),i=[];o&&(e=e.replace(Wm,(e=>(i.push(e),Xm))));const s=Rp.parse(e);if(s.length>5)return r;const a=Rp.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=vp(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(Xm,(()=>{const t=i[e];return e++,t}))}return f}};class qm extends e.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=e;var i;i=Zm,Object.assign(Nu,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()})),ku.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()||ff.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 Gm(t){const[n,r]=function(){const t=e.useContext(hu);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(Ou);return e.createElement(qm,{...t,layoutGroup:o,switchLayoutGroup:e.useContext(Mu),isPresent:n,safeToRemove:r})}const Zm={borderRadius:{...zm,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:zm,borderTopRightRadius:zm,borderBottomLeftRadius:zm,borderBottomRightRadius:zm,boxShadow:Ym},Jm=["TopLeft","TopRight","BottomLeft","BottomRight"],Qm=Jm.length,ev=e=>"string"==typeof e?parseFloat(e):e,tv=e=>"number"==typeof e||ld.test(e);function nv(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const rv=iv(0,.5,np),ov=iv(.5,.95,wf);function iv(e,t,n){return r=>r<e?0:r>t?1:n(Mp(e,t,r))}function sv(e,t){e.min=t.min,e.max=t.max}function av(e,t){sv(e.x,t.x),sv(e.y,t.y)}function cv(e,t,n,r,o){return e=Tm(e-=t,1/n,r),void 0!==o&&(e=Tm(e,1/o,r)),e}function lv(e,t,[n,r,o],i,s){!function(e,t=0,n=1,r=.5,o,i=e,s=e){cd.test(t)&&(t=parseFloat(t),t=vp(s.min,s.max,t/100)-s.min);if("number"!=typeof t)return;let a=vp(i.min,i.max,r);e===i&&(a-=t),e.min=cv(e.min,t,n,a,o),e.max=cv(e.max,t,n,a,o)}(e,t[n],t[r],t[o],t.scale,i,s)}const uv=["x","scaleX","originX"],dv=["y","scaleY","originY"];function fv(e,t,n,r){lv(e.x,t,uv,n?n.x:void 0,r?r.x:void 0),lv(e.y,t,dv,n?n.y:void 0,r?r.y:void 0)}function pv(e){return 0===e.translate&&1===e.scale}function hv(e){return pv(e.x)&&pv(e.y)}function mv(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 vv(e){return sm(e.x)/sm(e.y)}class yv{constructor(){this.members=[]}add(e){_h(this.members,e),e.scheduleRender()}remove(e){if(Th(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 gv(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 bv=(e,t)=>e.depth-t.depth;class wv{constructor(){this.children=[],this.isDirty=!1}add(e){_h(this.children,e),this.isDirty=!0}remove(e){Th(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(bv),this.isDirty=!1,this.children.forEach(e)}}const xv=["","X","Y","Z"];let Ev=0;const Sv={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Cv({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(e,n={},r=(null==t?void 0:t())){this.id=Ev++,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;Sv.totalNodes=Sv.resolvedTargetDeltas=Sv.recalculatedProjection=0,this.nodes.forEach(Tv),this.nodes.forEach(Mv),this.nodes.forEach(Lv),this.nodes.forEach(Rv),e=Sv,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 wv)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Rh),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&&(pf.read(r),e(i-t))};return ff.read(r,!0),()=>pf.read(r)}(r,250),ku.hasAnimatedSinceResize&&(ku.hasAnimatedSinceResize=!1,this.nodes.forEach(Ov))}))}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()||Nv,{onLayoutAnimationStart:i,onLayoutAnimationComplete:a}=s.getProps(),c=!this.targetLayout||!mv(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={...Eh(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||Ov(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,pf.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(Bv),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(kv);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(jv),this.potentialNodes.clear()),this.nodes.forEach(Dv),this.nodes.forEach(Pv),this.nodes.forEach(_v),this.clearAllSnapshots(),hf.update(),hf.preRender(),hf.render())}clearAllSnapshots(){this.nodes.forEach(Av),this.sharedNodes.forEach(Iv)}scheduleUpdateProjection(){ff.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){ff.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=bm(),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&&!hv(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;e&&(t||Cm(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)),Hv((r=n).x),Hv(r.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:e}=this.options;if(!e)return bm();const t=e.measureViewportBox(),{scroll:n}=this.root;return n&&(Om(t.x,n.offset.x),Om(t.y,n.offset.y)),t}removeElementScroll(e){const t=bm();av(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){av(t,e);const{scroll:n}=this.root;n&&(Om(t.x,-n.offset.x),Om(t.y,-n.offset.y))}Om(t.x,o.offset.x),Om(t.y,o.offset.y)}}return t}applyTransform(e,t=!1){const n=bm();av(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&&Im(n,{x:-e.scroll.offset.x,y:-e.scroll.offset.y}),Cm(e.latestValues)&&Im(n,e.latestValues)}return Cm(this.latestValues)&&Im(n,this.latestValues),n}removeTransform(e){const t=bm();av(t,e);for(let n=0;n<this.path.length;n++){const e=this.path[n];if(!e.instance)continue;if(!Cm(e.latestValues))continue;Sm(e.latestValues)&&e.updateSnapshot();const r=bm();av(r,e.measurePageBox()),fv(t,e.latestValues,e.snapshot?e.snapshot.layoutBox:void 0,r)}return Cm(this.latestValues)&&fv(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=af.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout?(this.relativeParent=e,this.relativeTarget=bm(),this.relativeTargetOrigin=bm(),fm(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),av(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var s,a,c;if(this.target||(this.target=bm(),this.targetWithTransforms=bm()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.relativeParent.resolvedRelativeTargetAt!==af.timestamp&&this.relativeParent.resolveTargetDelta(!0),s=this.target,a=this.relativeTarget,c=this.relativeParent.target,um(s.x,a.x,c.x),um(s.y,a.y,c.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):av(this.target,this.layout.layoutBox),km(this.target,this.targetDelta)):av(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=bm(),this.relativeTargetOrigin=bm(),fm(this.relativeTargetOrigin,this.target,e.target),av(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Sv.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!Sm(this.parent.latestValues)&&!Pm(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===af.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;av(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&&Im(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,km(e,s)),r&&Cm(i.latestValues)&&Im(e,i.latestValues))}t.x=Dm(t.x),t.y=Dm(t.y)}(this.layoutCorrected,this.treeScale,this.path,n);const{target:s}=t;if(!s)return;this.projectionDelta||(this.projectionDelta=gm(),this.projectionDeltaWithTransform=gm());const a=this.treeScale.x,c=this.treeScale.y,l=this.projectionTransform;lm(this.projectionDelta,this.layoutCorrected,s,this.latestValues),this.projectionTransform=gv(this.projectionDelta,this.treeScale),this.projectionTransform===l&&this.treeScale.x===a&&this.treeScale.y===c||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",s)),Sv.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=gm();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const s=bm(),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(Vv));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;var c,f,p,h;Fv(i.x,e.x,n),Fv(i.y,e.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(fm(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox),c=this.relativeTarget,f=this.relativeTargetOrigin,p=s,h=n,$v(c.x,f.x,p.x,h),$v(c.y,f.y,p.y,h),d&&mv(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||(d=bm()),av(d,this.relativeTarget)),a&&(this.animationValues=o,function(e,t,n,r,o,i){o?(e.opacity=vp(0,void 0!==n.opacity?n.opacity:1,rv(r)),e.opacityExit=vp(void 0!==t.opacity?t.opacity:1,0,ov(r))):i&&(e.opacity=vp(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let s=0;s<Qm;s++){const o=`border${Jm[s]}Radius`;let i=nv(t,o),a=nv(n,o);void 0===i&&void 0===a||(i||(i=0),a||(a=0),0===i||0===a||tv(i)===tv(a)?(e[o]=Math.max(vp(ev(i),ev(a),r),0),(cd.test(a)||cd.test(i))&&(e[o]+="%")):e[o]=a)}(t.rotate||n.rotate)&&(e.rotate=vp(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&&(pf.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ff.update((()=>{ku.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const r=Wu(e)?e:Oh(e);return r.start(Sh("",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&&zv(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||bm();const t=sm(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=sm(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}av(t,n),Im(t,o),lm(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new yv);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<xv.length;o++){const t="rotate"+xv[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=Hd(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=Hd(e.pointerEvents)||""),this.hasProjected&&!Cm(this.latestValues)&&(t.transform=o?o({},""):"none",this.hasProjected=!1),t}const s=i.animationValues||i.latestValues;this.applyTransformsToTarget(),r.transform=gv(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 Nu){if(void 0===s[l])continue;const{correct:e,applyTo:t}=Nu[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?Hd(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(kv),this.root.sharedNodes.clear()}}}function Pv(e){e.updateLayout()}function _v(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?wm((e=>{const r=i?n.measuredBox[e]:n.layoutBox[e],o=sm(r);r.min=t[e].min,r.max=r.min+o})):zv(o,n.layoutBox,t)&&wm((r=>{const o=i?n.measuredBox[r]:n.layoutBox[r],s=sm(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=gm();lm(s,t,n.layoutBox);const a=gm();i?lm(a,e.applyTransform(r,!0),n.measuredBox):lm(a,t,n.layoutBox);const c=!hv(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=bm();fm(s,n.layoutBox,o.layoutBox);const a=bm();fm(a,t,i.layoutBox),mv(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 Tv(e){Sv.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 Rv(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Av(e){e.clearSnapshot()}function kv(e){e.clearMeasurements()}function Dv(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Ov(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function Mv(e){e.resolveTargetDelta()}function Lv(e){e.calcProjection()}function Bv(e){e.resetRotation()}function Iv(e){e.removeLeadSnapshot()}function Fv(e,t,n){e.translate=vp(t.translate,0,n),e.scale=vp(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function $v(e,t,n,r){e.min=vp(t.min,n.min,r),e.max=vp(t.max,n.max,r)}function Vv(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const Nv={duration:.45,ease:[.4,0,.1,1]};function jv(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 Hv(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function zv(e,t,n){return"position"===e||"preserve-aspect"===e&&!am(vv(t),vv(n),.2)}const Wv=Cv({attachResizeListener:(e,t)=>Xd(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Uv={current:void 0},Kv=Cv({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Uv.current){const e=new Wv(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),Uv.current=e}return Uv.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),Xv={pan:{Feature:class extends sf{constructor(){super(...arguments),this.removePointerDownListener=wf}onPointerDown(e){this.session=new Qh(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:jm(e),onStart:jm(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&ff.update((()=>r(e,t)))}}}mount(){this.removePointerDownListener=Zd(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 sf{constructor(e){super(e),this.removeGroupControls=wf,this.removeListeners=wf,this.controls=new Vm(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||wf}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:Kv,MeasureLayout:Gm}},Yv=new Set(["width","height","top","left","right","bottom","x","y"]),qv=e=>Yv.has(e),Gv=e=>e===Ju||e===ld,Zv=(e,t)=>parseFloat(e.split(", ")[t]),Jv=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return Zv(o[1],t);{const t=r.match(/^matrix\((.+)\)$/);return t?Zv(t[1],e):0}},Qv=new Set(["x","y","z"]),ey=ju.filter((e=>!Qv.has(e)));const ty={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:Jv(4,13),y:Jv(5,14)},ny=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(qv);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=Bh(l);const d=t[o];let f;if(Vd(d)){const e=d.length,t=null===d[0]?1:0;l=d[t],u=Bh(l);for(let n=t;n<e;n++)f?Mf(Bh(d[n])===f,"All keyframes must be of the same type"):(f=Bh(d[n]),Mf(f===u||Gv(u)&&Gv(f),"Keyframes must be of the same dimension as the current value"))}else f=Bh(d);if(u!==f)if(Gv(u)&&Gv(f)){const e=c.get();"string"==typeof e&&c.set(parseFloat(e)),"string"==typeof d?t[o]=parseFloat(d):Array.isArray(d)&&f===ld&&(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 ey.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]=ty[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]=ty[n](c,i)})),e})(t,e,a);return i.length&&i.forEach((([t,n])=>{e.getValue(t).set(n)})),e.render(),mu&&null!==n&&window.scrollTo({top:n}),{target:o,transitionEnd:r}}return{target:t,transitionEnd:r}};function ry(e,t,n,r){return(e=>Object.keys(e).some(qv))(t)?ny(e,t,n,r):{target:t,transitionEnd:r}}const oy=(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(!qu(t))return;const n=Km(t,r);n&&e.set(n)}));for(const o in t){const e=t[o];if(!qu(e))continue;const i=Km(e,r);i&&(t[o]=i,n||(n={}),void 0===n[o]&&(n[o]=e))}return{target:t,transitionEnd:n}}(e,t,r);return ry(e,t=o.target,n,r=o.transitionEnd)},iy={current:null},sy={current:!1};const ay=new WeakMap,cy=Object.keys(Ru),ly=cy.length,uy=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],dy=Eu.length;class fy{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=()=>ff.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=Su(t),this.isVariantNode=Cu(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]&&Wu(e)&&(e.set(s[u],!1),Ch(c)&&c.add(u))}}scrapeMotionValuesFromProps(e,t){return{}}mount(e){this.current=e,ay.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))),sy.current||function(){if(sy.current=!0,mu)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>iy.current=e.matches;e.addListener(t),t()}else iy.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||iy.current),"production"!==process.env.NODE_ENV&&kh(!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(){ay.delete(this.current),this.projection&&this.projection.unmount(),pf.update(this.notifyUpdate),pf.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=Hu.has(e),r=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&ff.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?Of(!1,e):Mf(!1,e)}for(let c=0;c<ly;c++){const e=cy[c],{isEnabled:n,Feature:r,ProjectionNode:o,MeasureLayout:i}=Ru[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&&gu(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):bm()}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<uy.length;n++){const t=uy[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(Wu(i))e.addValue(o,i),Ch(r)&&r.add(o),"development"===process.env.NODE_ENV&&kh("10.10.0"===i.version,`Attempting to mix Framer Motion versions ${i.version} with 10.10.0 may not work as expected.`);else if(Wu(s))e.addValue(o,Oh(i,{owner:e})),Ch(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,Oh(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<dy;n++){const e=Eu[n],r=this.props[e];(bu(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=Oh(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=$d(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||Wu(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 Rh),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class py extends fy{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=Vh(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)||Ph(l))?l=parseFloat(l):!Fh(l)&&Rp.test(c)&&(l=bh(s,c)),e.addValue(s,Oh(l,{owner:e})),void 0===n[s]&&(n[s]=l),null!==l&&e.setBaseTarget(s,l))}}(this,n,i);const e=oy(this,n,i,t);t=e.transitionEnd,n=e.target}return{transition:e,transitionEnd:t,...n}}}class hy extends py{readValueFromInstance(e,t){if(Hu.has(t)){const e=gh(t);return e&&e.default||0}{const r=(n=e,window.getComputedStyle(n)),o=(Yu(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return Fm(e,t)}build(e,t,n,r){md(e,t,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,t){return Id(e,t)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Wu(e)&&(this.childSubscription=e.on("change",(e=>{this.current&&(this.current.textContent=`${e}`)})))}renderInstance(e,t,n,r){Md(e,t,n,r)}}class my extends py{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Hu.has(t)){const e=gh(t);return e&&e.default||0}return t=Ld.has(t)?t:Od(t),e.getAttribute(t)}measureInstanceViewportBox(){return bm()}scrapeMotionValuesFromProps(e,t){return Fd(e,t)}build(e,t,n,r){Td(e,t,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,t,n,r){Bd(e,t,0,r)}mount(e){this.isSVGTag=Ad(e.tagName),super.mount(e)}}const vy=(e,t)=>Vu(e)?new my(t,{enableHardwareAcceleration:!1}):new hy(t,{enableHardwareAcceleration:!0}),yy={...Zh,...Rf,...Xv,...{layout:{ProjectionNode:Kv,MeasureLayout:Gm}}},gy=Fu(((e,t)=>function(e,{forwardMotionProps:t=!1},n,r){return{...Vu(e)?Ud:Kd,preloadedFeatures:n,useRender:Dd(t),createVisualElement:r,Component:e}}(e,t,yy,vy)));var by,wy={exports:{}},xy={exports:{}},Ey={};var Sy,Cy,Py,_y,Ty,Ry,Ay,ky,Dy,Oy,My,Ly,By,Iy,Fy={};function $y(){return Cy||(Cy=1,"production"===process.env.NODE_ENV?xy.exports=function(){if(by)return Ey;by=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,y=e?Symbol.for("react.responder"):60118,g=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 Ey.AsyncMode=c,Ey.ConcurrentMode=l,Ey.ContextConsumer=a,Ey.ContextProvider=s,Ey.Element=t,Ey.ForwardRef=u,Ey.Fragment=r,Ey.Lazy=h,Ey.Memo=p,Ey.Portal=n,Ey.Profiler=i,Ey.StrictMode=o,Ey.Suspense=d,Ey.isAsyncMode=function(e){return w(e)||b(e)===c},Ey.isConcurrentMode=w,Ey.isContextConsumer=function(e){return b(e)===a},Ey.isContextProvider=function(e){return b(e)===s},Ey.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Ey.isForwardRef=function(e){return b(e)===u},Ey.isFragment=function(e){return b(e)===r},Ey.isLazy=function(e){return b(e)===h},Ey.isMemo=function(e){return b(e)===p},Ey.isPortal=function(e){return b(e)===n},Ey.isProfiler=function(e){return b(e)===i},Ey.isStrictMode=function(e){return b(e)===o},Ey.isSuspense=function(e){return b(e)===d},Ey.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===y||e.$$typeof===g||e.$$typeof===m)},Ey.typeOf=b,Ey}():xy.exports=(Sy||(Sy=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,y=e?Symbol.for("react.responder"):60118,g=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,C=t,P=u,_=r,T=h,R=p,A=n,k=i,D=o,O=d,M=!1;function L(e){return b(e)===l}Fy.AsyncMode=w,Fy.ConcurrentMode=x,Fy.ContextConsumer=E,Fy.ContextProvider=S,Fy.Element=C,Fy.ForwardRef=P,Fy.Fragment=_,Fy.Lazy=T,Fy.Memo=R,Fy.Portal=A,Fy.Profiler=k,Fy.StrictMode=D,Fy.Suspense=O,Fy.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.")),L(e)||b(e)===c},Fy.isConcurrentMode=L,Fy.isContextConsumer=function(e){return b(e)===a},Fy.isContextProvider=function(e){return b(e)===s},Fy.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Fy.isForwardRef=function(e){return b(e)===u},Fy.isFragment=function(e){return b(e)===r},Fy.isLazy=function(e){return b(e)===h},Fy.isMemo=function(e){return b(e)===p},Fy.isPortal=function(e){return b(e)===n},Fy.isProfiler=function(e){return b(e)===i},Fy.isStrictMode=function(e){return b(e)===o},Fy.isSuspense=function(e){return b(e)===d},Fy.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===y||e.$$typeof===g||e.$$typeof===m)},Fy.typeOf=b}()),Fy)),xy.exports}function Vy(){if(_y)return Py;_y=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return Py=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(rb){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},Py}function Ny(){if(Ry)return Ty;Ry=1;return Ty="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function jy(){return ky?Ay:(ky=1,Ay=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var Hy=$y();wy.exports=function(){if(Ly)return My;Ly=1;var e=$y(),t=Vy(),n=Ny(),r=jy(),o=function(){if(Oy)return Dy;Oy=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=Ny(),n={},r=jy();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={})},Dy=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){}}),My=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 g(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 y(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 y(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 y(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 g(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(g);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(!g(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!g(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},My}()(Hy.isElement,!0)}else wy.exports=function(){if(Iy)return By;Iy=1;var e=Ny();function t(){}function n(){}return n.resetWarningCache=t,By=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 zy=s(wy.exports);function Wy(){return Wy=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},Wy.apply(this,arguments)}function Uy(e,t){return(Uy=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Ky=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,Uy(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:Wy({display:"flex",flexDirection:"row",justifyContent:"center",alignContent:"stretch",boxSizing:"border-box",width:"100%",gap:n},o),className:r},this.renderColumns())},o}(e.Component);Ky.propTypes="production"!==process.env.NODE_ENV?{children:zy.oneOfType([zy.arrayOf(zy.node),zy.node]).isRequired,columnsCount:zy.number,gutter:zy.string,className:zy.string,style:zy.object}:{},Ky.defaultProps={columnsCount:3,gutter:"0",className:null,style:{}};var Xy="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,Yy=function(){var t=function(){var t=e.useState(!1),n=t[0],r=t[1];return Xy((function(){r(!0)}),[]),n}(),n=e.useState(0),r=n[0],o=n[1],i=e.useCallback((function(){t&&o(window.innerWidth)}),[t]);return Xy((function(){if(t)return window.addEventListener("resize",i),i(),function(){return window.removeEventListener("resize",i)}}),[t,i]),r},qy=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=Yy(),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})})))};qy.propTypes="production"!==process.env.NODE_ENV?{children:zy.oneOfType([zy.arrayOf(zy.node),zy.node]).isRequired,columnsCountBreakPoints:zy.object,className:zy.string,style:zy.object}:{};const[Gy,Zy]=os("Tooltip",[Kc]),Jy=Kc(),Qy=700,eg="tooltip.open",[tg,ng]=Gy("TooltipProvider"),rg="Tooltip",[og,ig]=Gy(rg),sg="TooltipTrigger",ag=e.forwardRef(((t,n)=>{const{__scopeTooltip:r,...o}=t,i=ig(sg,r),s=ng(sg,r),a=Jy(r),c=rs(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(il,et({asChild:!0},a),e.createElement(ds.button,et({"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute},o,{ref:c,onPointerMove:ts(t.onPointerMove,(e=>{"touch"!==e.pointerType&&(u.current||s.isPointerInTransitRef.current||(i.onTriggerEnter(),u.current=!0))})),onPointerLeave:ts(t.onPointerLeave,(()=>{i.onTriggerLeave(),u.current=!1})),onPointerDown:ts(t.onPointerDown,(()=>{l.current=!0,document.addEventListener("pointerup",d,{once:!0})})),onFocus:ts(t.onFocus,(()=>{l.current||i.onOpen()})),onBlur:ts(t.onBlur,i.onClose),onClick:ts(t.onClick,i.onClose)})))})),cg="TooltipPortal",[lg,ug]=Gy(cg,{forceMount:void 0}),dg="TooltipContent",fg=e.forwardRef(((t,n)=>{const r=ug(dg,t.__scopeTooltip),{forceMount:o=r.forceMount,side:i="top",...s}=t,a=ig(dg,t.__scopeTooltip);return e.createElement(Ns,{present:o||a.open},a.disableHoverableContent?e.createElement(vg,et({side:i},s,{ref:n})):e.createElement(pg,et({side:i},s,{ref:n})))})),pg=e.forwardRef(((t,n)=>{const r=ig(dg,t.__scopeTooltip),o=ng(dg,t.__scopeTooltip),i=e.useRef(null),s=rs(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(vg,et({},t,{ref:s}))})),[hg,mg]=Gy(rg,{isInside:!1}),vg=e.forwardRef(((t,n)=>{const{__scopeTooltip:r,children:o,"aria-label":i,onEscapeKeyDown:s,onPointerDownOutside:a,...c}=t,l=ig(dg,r),u=Jy(r),{onClose:d}=l;return e.useEffect((()=>(document.addEventListener(eg,d),()=>document.removeEventListener(eg,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(ha,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:d},e.createElement(sl,et({"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(cs,null,o),e.createElement(hg,{scope:r,isInside:!0},e.createElement(ul,{id:l.contentId,role:"tooltip"},i||o))))}));const yg=t=>{const{__scopeTooltip:n,delayDuration:r=Qy,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(tg,{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)},gg=t=>{const{__scopeTooltip:n,children:r,open:o,defaultOpen:i=!1,onOpenChange:s,disableHoverableContent:a,delayDuration:c}=t,l=ng(rg,t.__scopeTooltip),u=Jy(n),[d,f]=e.useState(null),p=vs(),h=e.useRef(0),m=null!=a?a:l.disableHoverableContent,v=null!=c?c:l.delayDuration,y=e.useRef(!1),[g=!1,b]=gs({prop:o,defaultProp:i,onChange:e=>{e?(l.onOpen(),document.dispatchEvent(new CustomEvent(eg))):l.onClose(),null==s||s(e)}}),w=e.useMemo((()=>g?y.current?"delayed-open":"instant-open":"closed"),[g]),x=e.useCallback((()=>{window.clearTimeout(h.current),y.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((()=>{y.current=!0,b(!0)}),v)}),[v,b]);return e.useEffect((()=>()=>window.clearTimeout(h.current)),[]),e.createElement(ol,u,e.createElement(og,{scope:n,contentId:p,open:g,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))},bg=ag,wg=t=>{const{__scopeTooltip:n,forceMount:r,children:o,container:i}=t,s=ig(cg,n);return e.createElement(lg,{scope:n,forceMount:r},e.createElement(Ns,{present:r||s.open},e.createElement(cl,{asChild:!0,container:i},o)))},xg=fg,Eg=e.forwardRef(((t,n)=>{const{__scopeTooltip:r,...o}=t,i=Jy(r);return mg("TooltipArrow",r).isInside?null:e.createElement(al,et({},i,o,{ref:n}))}));const Sg="ScrollArea",[Cg,Pg]=tt(Sg),[_g,Tg]=Cg(Sg),Rg=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,m]=e.useState(null),[v,y]=e.useState(null),[g,b]=e.useState(0),[w,x]=e.useState(0),[E,S]=e.useState(!1),[C,P]=e.useState(!1),_=ot(n,(e=>l(e))),T=Ci(i);return e.createElement(_g,{scope:r,type:o,dir:T,scrollHideDelay:s,scrollArea:c,viewport:u,onViewportChange:d,content:f,onContentChange:p,scrollbarX:h,onScrollbarXChange:m,scrollbarXEnabled:E,onScrollbarXEnabledChange:S,scrollbarY:v,onScrollbarYChange:y,scrollbarYEnabled:C,onScrollbarYEnabledChange:P,onCornerWidthChange:b,onCornerHeightChange:x},e.createElement(yt.div,et({dir:T},a,{ref:_,style:{position:"relative","--radix-scroll-area-corner-width":g+"px","--radix-scroll-area-corner-height":w+"px",...t.style}})))})),Ag=e.forwardRef(((t,n)=>{const{__scopeScrollArea:r,children:o,...i}=t,s=Tg("ScrollAreaViewport",r),a=ot(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(yt.div,et({"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)))})),kg="ScrollAreaScrollbar",Dg=e.forwardRef(((t,n)=>{const{forceMount:r,...o}=t,i=Tg(kg,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(Og,et({},o,{ref:n,forceMount:r})):"scroll"===i.type?e.createElement(Mg,et({},o,{ref:n,forceMount:r})):"auto"===i.type?e.createElement(Lg,et({},o,{ref:n,forceMount:r})):"always"===i.type?e.createElement(Bg,et({},o,{ref:n})):null})),Og=e.forwardRef(((t,n)=>{const{forceMount:r,...o}=t,i=Tg(kg,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(Ft,{present:r||s},e.createElement(Lg,et({"data-state":s?"visible":"hidden"},o,{ref:n})))})),Mg=e.forwardRef(((t,n)=>{const{forceMount:r,...o}=t,i=Tg(kg,t.__scopeScrollArea),s="horizontal"===t.orientation,a=Zg((()=>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(Ft,{present:r||"hidden"!==c},e.createElement(Bg,et({"data-state":"hidden"===c?"hidden":"visible"},o,{ref:n,onPointerEnter:it(t.onPointerEnter,(()=>l("POINTER_ENTER"))),onPointerLeave:it(t.onPointerLeave,(()=>l("POINTER_LEAVE")))})))})),Lg=e.forwardRef(((t,n)=>{const r=Tg(kg,t.__scopeScrollArea),{forceMount:o,...i}=t,[s,a]=e.useState(!1),c="horizontal"===t.orientation,l=Zg((()=>{if(r.viewport){const e=r.viewport.offsetWidth<r.viewport.scrollWidth,t=r.viewport.offsetHeight<r.viewport.scrollHeight;a(c?e:t)}}),10);return Jg(r.viewport,l),Jg(r.content,l),e.createElement(Ft,{present:o||s},e.createElement(Bg,et({"data-state":s?"visible":"hidden"},i,{ref:n})))})),Bg=e.forwardRef(((t,n)=>{const{orientation:r="vertical",...o}=t,i=Tg(kg,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=Ug(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=Kg(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 Yg([c,l],d)(e)}(e,a.current,c,t)}return"horizontal"===r?e.createElement(Ig,et({},d,{ref:n,onThumbPositionChange:()=>{if(i.viewport&&s.current){const e=Xg(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(Fg,et({},d,{ref:n,onThumbPositionChange:()=>{if(i.viewport&&s.current){const e=Xg(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})),Ig=e.forwardRef(((t,n)=>{const{sizes:r,onSizesChange:o,...i}=t,s=Tg(kg,t.__scopeScrollArea),[a,c]=e.useState(),l=e.useRef(null),u=ot(n,l,s.onScrollbarXChange);return e.useEffect((()=>{l.current&&c(getComputedStyle(l.current))}),[l]),e.createElement(Ng,et({"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":Kg(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),qg(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:Wg(a.paddingLeft),paddingEnd:Wg(a.paddingRight)}})}}))})),Fg=e.forwardRef(((t,n)=>{const{sizes:r,onSizesChange:o,...i}=t,s=Tg(kg,t.__scopeScrollArea),[a,c]=e.useState(),l=e.useRef(null),u=ot(n,l,s.onScrollbarYChange);return e.useEffect((()=>{l.current&&c(getComputedStyle(l.current))}),[l]),e.createElement(Ng,et({"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":Kg(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),qg(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:Wg(a.paddingTop),paddingEnd:Wg(a.paddingBottom)}})}}))})),[$g,Vg]=Cg(kg),Ng=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=Tg(kg,r),[m,v]=e.useState(null),y=ot(n,(e=>v(e))),g=e.useRef(null),b=e.useRef(""),w=h.viewport,x=o.content-o.viewport,E=ut(d),S=ut(l),C=Zg(f,10);function P(e){if(g.current){const t=e.clientX-g.current.left,n=e.clientY-g.current.top;u({x:t,y:n})}}return e.useEffect((()=>{const e=e=>{const t=e.target;(null==m?void 0:m.contains(t))&&E(e,x)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})}),[w,m,x,E]),e.useEffect(S,[o,S]),Jg(m,C),Jg(h.content,C),e.createElement($g,{scope:r,scrollbar:m,hasThumb:i,onThumbChange:ut(s),onThumbPointerUp:ut(a),onThumbPositionChange:S,onThumbPointerDown:ut(c)},e.createElement(yt.div,et({},p,{ref:y,style:{position:"absolute",...p.style},onPointerDown:it(t.onPointerDown,(e=>{if(0===e.button){e.target.setPointerCapture(e.pointerId),g.current=m.getBoundingClientRect(),b.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",P(e)}})),onPointerMove:it(t.onPointerMove,P),onPointerUp:it(t.onPointerUp,(e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=b.current,g.current=null}))})))})),jg="ScrollAreaThumb",Hg=e.forwardRef(((t,n)=>{const{forceMount:r,...o}=t,i=Vg(jg,t.__scopeScrollArea);return e.createElement(Ft,{present:r||i.hasThumb},e.createElement(zg,et({ref:n},o)))})),zg=e.forwardRef(((t,n)=>{const{__scopeScrollArea:r,style:o,...i}=t,s=Tg(jg,r),a=Vg(jg,r),{onThumbPositionChange:c}=a,l=ot(n,(e=>a.onThumbChange(e))),u=e.useRef(),d=Zg((()=>{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=Gg(e,c);u.current=t,c()}};return c(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}}),[s.viewport,d,c]),e.createElement(yt.div,et({"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:it(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:it(t.onPointerUp,a.onThumbPointerUp)}))}));function Wg(e){return e?parseInt(e,10):0}function Ug(e,t){const n=e/t;return isNaN(n)?0:n}function Kg(e){const t=Ug(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function Xg(e,t,n="ltr"){const r=Kg(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=t.scrollbar.size-o,s=t.content-t.viewport,a=i-r,c=Ei(e,"ltr"===n?[0,s]:[-1*s,0]);return Yg([0,s],[0,a])(c)}function Yg(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 qg(e,t){return e>0&&e<t}const Gg=(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 Zg(t,n){const r=ut(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 Jg(e,t){const n=ut(t);st((()=>{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 Qg=Rg,eb=Ag,tb=Dg,nb=Hg;exports.$57acba87d6e25586$export$6521433ed15a34db=nb,exports.$57acba87d6e25586$export$9a4e88b92edfce6b=tb,exports.$57acba87d6e25586$export$be92b6f5f03c0fe9=Qg,exports.$57acba87d6e25586$export$d5c6c08dc2d3ca7=eb,exports.$5d3850c4d0b4e6c7$export$602eac185826482c=Gn,exports.$5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2=Jn,exports.$5d3850c4d0b4e6c7$export$be92b6f5f03c0fe9=qn,exports.$5d3850c4d0b4e6c7$export$c6fdb837b070b4ff=Zn,exports.$67824d98245208a0$export$adb584737d712b70=li,exports.$67824d98245208a0$export$be92b6f5f03c0fe9=ci,exports.$a093c7e1ec25a057$export$21b07c8f274aebd5=Eg,exports.$a093c7e1ec25a057$export$2881499e37b75b9a=yg,exports.$a093c7e1ec25a057$export$41fb9f06171c75f4=bg,exports.$a093c7e1ec25a057$export$602eac185826482c=wg,exports.$a093c7e1ec25a057$export$7c6e2c02157bb7d2=xg,exports.$a093c7e1ec25a057$export$be92b6f5f03c0fe9=gg,exports.$cb5cc270b50c6fcd$export$21b07c8f274aebd5=qo,exports.$cb5cc270b50c6fcd$export$41fb9f06171c75f4=Uo,exports.$cb5cc270b50c6fcd$export$602eac185826482c=Ko,exports.$cb5cc270b50c6fcd$export$7c6e2c02157bb7d2=Xo,exports.$cb5cc270b50c6fcd$export$be92b6f5f03c0fe9=Wo,exports.$cb5cc270b50c6fcd$export$f39c2d165cd861fe=Yo,exports.$cc7e05a45900e73f$export$2f60d3ec9ad468f2=uu,exports.$cc7e05a45900e73f$export$41fb9f06171c75f4=tu,exports.$cc7e05a45900e73f$export$4c8d1a57a761ef94=nu,exports.$cc7e05a45900e73f$export$602eac185826482c=ou,exports.$cc7e05a45900e73f$export$6d08773d2e66f8f2=au,exports.$cc7e05a45900e73f$export$7c6e2c02157bb7d2=iu,exports.$cc7e05a45900e73f$export$be92b6f5f03c0fe9=eu,exports.$cc7e05a45900e73f$export$bf1aedc3039c8d63=du,exports.$cc7e05a45900e73f$export$c3468e2714d175fa=lu,exports.$cc7e05a45900e73f$export$d5c6c08dc2d3ca7=su,exports.$cc7e05a45900e73f$export$d6e5bf9c43ea9319=cu,exports.$cc7e05a45900e73f$export$f04a61298a47a40f=ru,exports.$e698a72e93240346$export$adb584737d712b70=xi,exports.$e698a72e93240346$export$be92b6f5f03c0fe9=wi,exports.$f99a8c78507165f7$export$6d08773d2e66f8f2=sa,exports.$f99a8c78507165f7$export$adb584737d712b70=aa,exports.$f99a8c78507165f7$export$be92b6f5f03c0fe9=ia,exports.$faa2e61a3361514f$export$13921ac0cc260818=Ji,exports.$faa2e61a3361514f$export$6521433ed15a34db=es,exports.$faa2e61a3361514f$export$9a58ef0d7ad3278c=Qi,exports.$faa2e61a3361514f$export$be92b6f5f03c0fe9=Zi,exports.Masonry=Ky,exports.MasonryResponsive=qy,exports.client=h,exports.jsxRuntimeExports=p,exports.motion=gy;
2
+ //# sourceMappingURL=vendor-48f2892a.cjs.map