@sledge-app/js 1.1.53 → 1.1.55

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 @@
1
+ var e,t,n,r,o,i,a=Object.defineProperty;function s(e,t){for(var n=0;n<t.length;n++){const r=t[n];if("string"!=typeof r&&!Array.isArray(r))for(const t in r)if("default"!==t&&!(t in e)){const n=Object.getOwnPropertyDescriptor(r,t);n&&Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>r[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function l(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var c={exports:{}},u={},d=Symbol.for("react.element"),f=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),p=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),v=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),b=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),x=Symbol.iterator;var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,E={};function k(e,t,n){this.props=e,this.context=t,this.refs=E,this.updater=n||_}function T(){}function R(e,t,n){this.props=e,this.context=t,this.refs=E,this.updater=n||_}k.prototype.isReactComponent={},k.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},k.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},T.prototype=k.prototype;var P=R.prototype=new T;P.constructor=R,C(P,k.prototype),P.isPureReactComponent=!0;var I=Array.isArray,M=Object.prototype.hasOwnProperty,z={current:null},O={key:!0,ref:!0,__self:!0,__source:!0};function L(e,t,n){var r,o={},i=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(i=""+t.key),t)M.call(t,r)&&!O.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(1===s)o.children=n;else if(1<s){for(var l=Array(s),c=0;c<s;c++)l[c]=arguments[c+2];o.children=l}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===o[r]&&(o[r]=s[r]);return{$$typeof:d,type:e,key:i,ref:a,props:o,_owner:z.current}}function A(e){return"object"==typeof e&&null!==e&&e.$$typeof===d}var D=/\/+/g;function F(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function N(e,t,n,r,o){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var a=!1;if(null===e)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case d:case f:a=!0}}if(a)return o=o(a=e),e=""===r?"."+F(a,0):r,I(o)?(n="",null!=e&&(n=e.replace(D,"$&/")+"/"),N(o,t,n,"",(function(e){return e}))):null!=o&&(A(o)&&(o=function(e,t){return{$$typeof:d,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(D,"$&/")+"/")+e)),t.push(o)),1;if(a=0,r=""===r?".":r+":",I(e))for(var s=0;s<e.length;s++){var l=r+F(i=e[s],s);a+=N(i,t,n,l,o)}else if(l=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=x&&e[x]||e["@@iterator"])?e:null}(e),"function"==typeof l)for(e=l.call(e),s=0;!(i=e.next()).done;)a+=N(i=i.value,t,n,l=r+F(i,s++),o);else if("object"===i)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function B(e,t,n){if(null==e)return e;var r=[],o=0;return N(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function H(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var V={current:null},j={transition:null},W={ReactCurrentDispatcher:V,ReactCurrentBatchConfig:j,ReactCurrentOwner:z};u.Children={map:B,forEach:function(e,t,n){B(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return B(e,(function(){t++})),t},toArray:function(e){return B(e,(function(e){return e}))||[]},only:function(e){if(!A(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},u.Component=k,u.Fragment=h,u.Profiler=m,u.PureComponent=R,u.StrictMode=p,u.Suspense=w,u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W,u.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=C({},e.props),o=e.key,i=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,a=z.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)M.call(t,l)&&!O.hasOwnProperty(l)&&(r[l]=void 0===t[l]&&void 0!==s?s[l]:t[l])}var l=arguments.length-2;if(1===l)r.children=n;else if(1<l){s=Array(l);for(var c=0;c<l;c++)s[c]=arguments[c+2];r.children=s}return{$$typeof:d,type:e.type,key:o,ref:i,props:r,_owner:a}},u.createContext=function(e){return(e={$$typeof:v,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:g,_context:e},e.Consumer=e},u.createElement=L,u.createFactory=function(e){var t=L.bind(null,e);return t.type=e,t},u.createRef=function(){return{current:null}},u.forwardRef=function(e){return{$$typeof:y,render:e}},u.isValidElement=A,u.lazy=function(e){return{$$typeof:S,_payload:{_status:-1,_result:e},_init:H}},u.memo=function(e,t){return{$$typeof:b,type:e,compare:void 0===t?null:t}},u.startTransition=function(e){var t=j.transition;j.transition={};try{e()}finally{j.transition=t}},u.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},u.useCallback=function(e,t){return V.current.useCallback(e,t)},u.useContext=function(e){return V.current.useContext(e)},u.useDebugValue=function(){},u.useDeferredValue=function(e){return V.current.useDeferredValue(e)},u.useEffect=function(e,t){return V.current.useEffect(e,t)},u.useId=function(){return V.current.useId()},u.useImperativeHandle=function(e,t,n){return V.current.useImperativeHandle(e,t,n)},u.useInsertionEffect=function(e,t){return V.current.useInsertionEffect(e,t)},u.useLayoutEffect=function(e,t){return V.current.useLayoutEffect(e,t)},u.useMemo=function(e,t){return V.current.useMemo(e,t)},u.useReducer=function(e,t,n){return V.current.useReducer(e,t,n)},u.useRef=function(e){return V.current.useRef(e)},u.useState=function(e){return V.current.useState(e)},u.useSyncExternalStore=function(e,t,n){return V.current.useSyncExternalStore(e,t,n)},u.useTransition=function(){return V.current.useTransition()},u.version="18.2.0",c.exports=u;var U=c.exports;const G=l(U),$=s({__proto__:null,default:G},[U]),K=(null==(e="undefined"!=typeof globalThis?globalThis:void 0)?void 0:e.crypto)||(null==(t="undefined"!=typeof global?global:void 0)?void 0:t.crypto)||(null==(n="undefined"!=typeof window?window:void 0)?void 0:n.crypto)||(null==(r="undefined"!=typeof self?self:void 0)?void 0:r.crypto)||(null==(i=null==(o="undefined"!=typeof frames?frames:void 0)?void 0:o[0])?void 0:i.crypto);let X;X=K?e=>{const t=[];for(let n=0;n<e;n+=4)t.push(K.getRandomValues(new Uint32Array(1))[0]);return new Y(t,e)}:e=>{const t=[],n=e=>{let t=e,n=987654321;const r=4294967295;return()=>{n=36969*(65535&n)+(n>>16)&r,t=18e3*(65535&t)+(t>>16)&r;let e=(n<<16)+t&r;return e/=4294967296,e+=.5,e*(Math.random()>.5?1:-1)}};for(let r,o=0;o<e;o+=4){const e=n(4294967296*(r||Math.random()));r=987654071*e(),t.push(4294967296*e()|0)}return new Y(t,e)};class q{static create(...e){return new this(...e)}mixIn(e){return Object.assign(this,e)}clone(){const e=new this.constructor;return Object.assign(e,this),e}}class Y extends q{constructor(e=[],t=4*e.length){super();let n=e;if(n instanceof ArrayBuffer&&(n=new Uint8Array(n)),(n instanceof Int8Array||n instanceof Uint8ClampedArray||n instanceof Int16Array||n instanceof Uint16Array||n instanceof Int32Array||n instanceof Uint32Array||n instanceof Float32Array||n instanceof Float64Array)&&(n=new Uint8Array(n.buffer,n.byteOffset,n.byteLength)),n instanceof Uint8Array){const e=n.byteLength,t=[];for(let r=0;r<e;r+=1)t[r>>>2]|=n[r]<<24-r%4*8;this.words=t,this.sigBytes=e}else this.words=e,this.sigBytes=t}toString(e=Z){return e.stringify(this)}concat(e){const t=this.words,n=e.words,r=this.sigBytes,o=e.sigBytes;if(this.clamp(),r%4)for(let i=0;i<o;i+=1){const e=n[i>>>2]>>>24-i%4*8&255;t[r+i>>>2]|=e<<24-(r+i)%4*8}else for(let i=0;i<o;i+=4)t[r+i>>>2]=n[i>>>2];return this.sigBytes+=o,this}clamp(){const{words:e,sigBytes:t}=this;e[t>>>2]&=4294967295<<32-t%4*8,e.length=Math.ceil(t/4)}clone(){const e=super.clone.call(this);return e.words=this.words.slice(0),e}}var Q;((e,t,n)=>{t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(Y,"symbol"!=typeof(Q="random")?Q+"":Q,X);const Z={stringify(e){const{words:t,sigBytes:n}=e,r=[];for(let o=0;o<n;o+=1){const e=t[o>>>2]>>>24-o%4*8&255;r.push((e>>>4).toString(16)),r.push((15&e).toString(16))}return r.join("")},parse(e){const t=e.length,n=[];for(let r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new Y(n,t/2)}},J={stringify(e){const{words:t,sigBytes:n}=e,r=[];for(let o=0;o<n;o+=1){const e=t[o>>>2]>>>24-o%4*8&255;r.push(String.fromCharCode(e))}return r.join("")},parse(e){const t=e.length,n=[];for(let r=0;r<t;r+=1)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new Y(n,t)}},ee={stringify(e){try{return decodeURIComponent(escape(J.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:e=>J.parse(unescape(encodeURIComponent(e)))};class te extends q{constructor(){super(),this._minBufferSize=0}reset(){this._data=new Y,this._nDataBytes=0}_append(e){let t=e;"string"==typeof t&&(t=ee.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes}_process(e){let t;const{_data:n,blockSize:r}=this,o=n.words,i=n.sigBytes;let a=i/(4*r);a=e?Math.ceil(a):Math.max((0|a)-this._minBufferSize,0);const s=a*r,l=Math.min(4*s,i);if(s){for(let e=0;e<s;e+=r)this._doProcessBlock(o,e);t=o.splice(0,s),n.sigBytes-=l}return new Y(t,l)}clone(){const e=super.clone.call(this);return e._data=this._data.clone(),e}}class ne extends te{constructor(e){super(),this.blockSize=16,this.cfg=Object.assign(new q,e),this.reset()}static _createHelper(e){return(t,n)=>new e(n).finalize(t)}static _createHmacHelper(e){return(t,n)=>new re(e,n).finalize(t)}reset(){super.reset.call(this),this._doReset()}update(e){return this._append(e),this._process(),this}finalize(e){e&&this._append(e);return this._doFinalize()}}class re extends q{constructor(e,t){super();const n=new e;this._hasher=n;let r=t;"string"==typeof r&&(r=ee.parse(r));const o=n.blockSize,i=4*o;r.sigBytes>i&&(r=n.finalize(t)),r.clamp();const a=r.clone();this._oKey=a;const s=r.clone();this._iKey=s;const l=a.words,c=s.words;for(let u=0;u<o;u+=1)l[u]^=1549556828,c[u]^=909522486;a.sigBytes=i,s.sigBytes=i,this.reset()}reset(){const e=this._hasher;e.reset(),e.update(this._iKey)}update(e){return this._hasher.update(e),this}finalize(e){const t=this._hasher,n=t.finalize(e);t.reset();return t.finalize(this._oKey.clone().concat(n))}}const oe=Y;class ie extends q{constructor(e,t){super(),this.high=e,this.low=t}}class ae extends q{constructor(e=[],t=8*e.length){super(),this.words=e,this.sigBytes=t}toX32(){const e=this.words,t=e.length,n=[];for(let r=0;r<t;r+=1){const t=e[r];n.push(t.high),n.push(t.low)}return oe.create(n,this.sigBytes)}clone(){const e=super.clone.call(this);e.words=this.words.slice(0);const{words:t}=e,n=t.length;for(let r=0;r<n;r+=1)t[r]=t[r].clone();return e}}const se=(e,t,n)=>{const r=[];let o=0;for(let i=0;i<t;i+=1)if(i%4){const t=n[e.charCodeAt(i-1)]<<i%4*2|n[e.charCodeAt(i)]>>>6-i%4*2;r[o>>>2]|=t<<24-o%4*8,o+=1}return Y.create(r,o)},le={stringify(e){const{words:t,sigBytes:n}=e,r=this._map;e.clamp();const o=[];for(let a=0;a<n;a+=3){const e=(t[a>>>2]>>>24-a%4*8&255)<<16|(t[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|t[a+2>>>2]>>>24-(a+2)%4*8&255;for(let t=0;t<4&&a+.75*t<n;t+=1)o.push(r.charAt(e>>>6*(3-t)&63))}const i=r.charAt(64);if(i)for(;o.length%4;)o.push(i);return o.join("")},parse(e){let t=e.length;const n=this._map;let r=this._reverseMap;if(!r){this._reverseMap=[],r=this._reverseMap;for(let e=0;e<n.length;e+=1)r[n.charCodeAt(e)]=e}const o=n.charAt(64);if(o){const n=e.indexOf(o);-1!==n&&(t=n)}return se(e,t,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},ce=[];for(let LD=0;LD<64;LD+=1)ce[LD]=4294967296*Math.abs(Math.sin(LD+1))|0;const ue=(e,t,n,r,o,i,a)=>{const s=e+(t&n|~t&r)+o+a;return(s<<i|s>>>32-i)+t},de=(e,t,n,r,o,i,a)=>{const s=e+(t&r|n&~r)+o+a;return(s<<i|s>>>32-i)+t},fe=(e,t,n,r,o,i,a)=>{const s=e+(t^n^r)+o+a;return(s<<i|s>>>32-i)+t},he=(e,t,n,r,o,i,a)=>{const s=e+(n^(t|~r))+o+a;return(s<<i|s>>>32-i)+t};class pe extends ne{_doReset(){this._hash=new Y([1732584193,4023233417,2562383102,271733878])}_doProcessBlock(e,t){const n=e;for(let C=0;C<16;C+=1){const r=t+C,o=e[r];n[r]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}const r=this._hash.words,o=n[t+0],i=n[t+1],a=n[t+2],s=n[t+3],l=n[t+4],c=n[t+5],u=n[t+6],d=n[t+7],f=n[t+8],h=n[t+9],p=n[t+10],m=n[t+11],g=n[t+12],v=n[t+13],y=n[t+14],w=n[t+15];let b=r[0],S=r[1],x=r[2],_=r[3];b=ue(b,S,x,_,o,7,ce[0]),_=ue(_,b,S,x,i,12,ce[1]),x=ue(x,_,b,S,a,17,ce[2]),S=ue(S,x,_,b,s,22,ce[3]),b=ue(b,S,x,_,l,7,ce[4]),_=ue(_,b,S,x,c,12,ce[5]),x=ue(x,_,b,S,u,17,ce[6]),S=ue(S,x,_,b,d,22,ce[7]),b=ue(b,S,x,_,f,7,ce[8]),_=ue(_,b,S,x,h,12,ce[9]),x=ue(x,_,b,S,p,17,ce[10]),S=ue(S,x,_,b,m,22,ce[11]),b=ue(b,S,x,_,g,7,ce[12]),_=ue(_,b,S,x,v,12,ce[13]),x=ue(x,_,b,S,y,17,ce[14]),S=ue(S,x,_,b,w,22,ce[15]),b=de(b,S,x,_,i,5,ce[16]),_=de(_,b,S,x,u,9,ce[17]),x=de(x,_,b,S,m,14,ce[18]),S=de(S,x,_,b,o,20,ce[19]),b=de(b,S,x,_,c,5,ce[20]),_=de(_,b,S,x,p,9,ce[21]),x=de(x,_,b,S,w,14,ce[22]),S=de(S,x,_,b,l,20,ce[23]),b=de(b,S,x,_,h,5,ce[24]),_=de(_,b,S,x,y,9,ce[25]),x=de(x,_,b,S,s,14,ce[26]),S=de(S,x,_,b,f,20,ce[27]),b=de(b,S,x,_,v,5,ce[28]),_=de(_,b,S,x,a,9,ce[29]),x=de(x,_,b,S,d,14,ce[30]),S=de(S,x,_,b,g,20,ce[31]),b=fe(b,S,x,_,c,4,ce[32]),_=fe(_,b,S,x,f,11,ce[33]),x=fe(x,_,b,S,m,16,ce[34]),S=fe(S,x,_,b,y,23,ce[35]),b=fe(b,S,x,_,i,4,ce[36]),_=fe(_,b,S,x,l,11,ce[37]),x=fe(x,_,b,S,d,16,ce[38]),S=fe(S,x,_,b,p,23,ce[39]),b=fe(b,S,x,_,v,4,ce[40]),_=fe(_,b,S,x,o,11,ce[41]),x=fe(x,_,b,S,s,16,ce[42]),S=fe(S,x,_,b,u,23,ce[43]),b=fe(b,S,x,_,h,4,ce[44]),_=fe(_,b,S,x,g,11,ce[45]),x=fe(x,_,b,S,w,16,ce[46]),S=fe(S,x,_,b,a,23,ce[47]),b=he(b,S,x,_,o,6,ce[48]),_=he(_,b,S,x,d,10,ce[49]),x=he(x,_,b,S,y,15,ce[50]),S=he(S,x,_,b,c,21,ce[51]),b=he(b,S,x,_,g,6,ce[52]),_=he(_,b,S,x,s,10,ce[53]),x=he(x,_,b,S,p,15,ce[54]),S=he(S,x,_,b,i,21,ce[55]),b=he(b,S,x,_,f,6,ce[56]),_=he(_,b,S,x,w,10,ce[57]),x=he(x,_,b,S,u,15,ce[58]),S=he(S,x,_,b,v,21,ce[59]),b=he(b,S,x,_,l,6,ce[60]),_=he(_,b,S,x,m,10,ce[61]),x=he(x,_,b,S,a,15,ce[62]),S=he(S,x,_,b,h,21,ce[63]),r[0]=r[0]+b|0,r[1]=r[1]+S|0,r[2]=r[2]+x|0,r[3]=r[3]+_|0}_doFinalize(){const e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32;const o=Math.floor(n/4294967296),i=n;t[15+(r+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),t[14+(r+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),e.sigBytes=4*(t.length+1),this._process();const a=this._hash,s=a.words;for(let l=0;l<4;l+=1){const e=s[l];s[l]=16711935&(e<<8|e>>>24)|4278255360&(e<<24|e>>>8)}return a}clone(){const e=super.clone.call(this);return e._hash=this._hash.clone(),e}}const me=ne._createHelper(pe),ge=ne._createHmacHelper(pe);class ve extends q{constructor(e){super(),this.cfg=Object.assign(new q,{keySize:4,hasher:pe,iterations:1},e)}compute(e,t){let n;const{cfg:r}=this,o=r.hasher.create(),i=Y.create(),a=i.words,{keySize:s,iterations:l}=r;for(;a.length<s;){n&&o.update(n),n=o.update(e).finalize(t),o.reset();for(let e=1;e<l;e+=1)n=o.finalize(n),o.reset();i.concat(n)}return i.sigBytes=4*s,i}}class ye extends te{constructor(e,t,n){super(),this.cfg=Object.assign(new q,n),this._xformMode=e,this._key=t,this.reset()}static createEncryptor(e,t){return this.create(this._ENC_XFORM_MODE,e,t)}static createDecryptor(e,t){return this.create(this._DEC_XFORM_MODE,e,t)}static _createHelper(e){const t=e=>"string"==typeof e?Pe:Te;return{encrypt:(n,r,o)=>t(r).encrypt(e,n,r,o),decrypt:(n,r,o)=>t(r).decrypt(e,n,r,o)}}reset(){super.reset.call(this),this._doReset()}process(e){return this._append(e),this._process()}finalize(e){e&&this._append(e);return this._doFinalize()}}ye._ENC_XFORM_MODE=1,ye._DEC_XFORM_MODE=2,ye.keySize=4,ye.ivSize=4;class we extends ye{constructor(...e){super(...e),this.blockSize=1}_doFinalize(){return this._process(!0)}}class be extends q{constructor(e,t){super(),this._cipher=e,this._iv=t}static createEncryptor(e,t){return this.Encryptor.create(e,t)}static createDecryptor(e,t){return this.Decryptor.create(e,t)}}function Se(e,t,n){const r=e;let o;const i=this._iv;i?(o=i,this._iv=void 0):o=this._prevBlock;for(let a=0;a<n;a+=1)r[t+a]^=o[a]}class xe extends be{}xe.Encryptor=class extends xe{processBlock(e,t){const n=this._cipher,{blockSize:r}=n;Se.call(this,e,t,r),n.encryptBlock(e,t),this._prevBlock=e.slice(t,t+r)}},xe.Decryptor=class extends xe{processBlock(e,t){const n=this._cipher,{blockSize:r}=n,o=e.slice(t,t+r);n.decryptBlock(e,t),Se.call(this,e,t,r),this._prevBlock=o}};const _e={pad(e,t){const n=4*t,r=n-e.sigBytes%n,o=r<<24|r<<16|r<<8|r,i=[];for(let s=0;s<r;s+=4)i.push(o);const a=Y.create(i,r);e.concat(a)},unpad(e){const t=e,n=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=n}};class Ce extends ye{constructor(e,t,n){super(e,t,Object.assign({mode:xe,padding:_e},n)),this.blockSize=4}reset(){let e;super.reset.call(this);const{cfg:t}=this,{iv:n,mode:r}=t;this._xformMode===this.constructor._ENC_XFORM_MODE?e=r.createEncryptor:(e=r.createDecryptor,this._minBufferSize=1),this._mode=e.call(r,this,n&&n.words),this._mode.__creator=e}_doProcessBlock(e,t){this._mode.processBlock(e,t)}_doFinalize(){let e;const{padding:t}=this.cfg;return this._xformMode===this.constructor._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e}}class Ee extends q{constructor(e){super(),this.mixIn(e)}toString(e){return(e||this.formatter).stringify(this)}}const ke={stringify(e){let t;const{ciphertext:n,salt:r}=e;return t=r?Y.create([1398893684,1701076831]).concat(r).concat(n):n,t.toString(le)},parse(e){let t;const n=le.parse(e),r=n.words;return 1398893684===r[0]&&1701076831===r[1]&&(t=Y.create(r.slice(2,4)),r.splice(0,4),n.sigBytes-=16),Ee.create({ciphertext:n,salt:t})}};class Te extends q{static encrypt(e,t,n,r){const o=Object.assign(new q,this.cfg,r),i=e.createEncryptor(n,o),a=i.finalize(t),s=i.cfg;return Ee.create({ciphertext:a,key:n,iv:s.iv,algorithm:e,mode:s.mode,padding:s.padding,blockSize:i.blockSize,formatter:o.format})}static decrypt(e,t,n,r){let o=t;const i=Object.assign(new q,this.cfg,r);o=this._parse(o,i.format);return e.createDecryptor(n,i).finalize(o.ciphertext)}static _parse(e,t){return"string"==typeof e?t.parse(e,this):e}}Te.cfg=Object.assign(new q,{format:ke});const Re={execute(e,t,n,r,o){let i,a=r;a||(a=Y.random(8)),i=o?ve.create({keySize:t+n,hasher:o}).compute(e,a):ve.create({keySize:t+n}).compute(e,a);const s=Y.create(i.words.slice(t),4*n);return i.sigBytes=4*t,Ee.create({key:i,iv:s,salt:a})}};class Pe extends Te{static encrypt(e,t,n,r){const o=Object.assign(new q,this.cfg,r),i=o.kdf.execute(n,e.keySize,e.ivSize,o.salt,o.hasher);o.iv=i.iv;const a=Te.encrypt.call(this,e,t,i.key,o);return a.mixIn(i),a}static decrypt(e,t,n,r){let o=t;const i=Object.assign(new q,this.cfg,r);o=this._parse(o,i.format);const a=i.kdf.execute(n,e.keySize,e.ivSize,o.salt,i.hasher);i.iv=a.iv;return Te.decrypt.call(this,e,o,a.key,i)}}Pe.cfg=Object.assign(Te.cfg,{kdf:Re});const Ie=e=>e<<8&4278255360|e>>>8&16711935,Me={stringify(e){const{words:t,sigBytes:n}=e,r=[];for(let o=0;o<n;o+=2){const e=t[o>>>2]>>>16-o%4*8&65535;r.push(String.fromCharCode(e))}return r.join("")},parse(e){const t=e.length,n=[];for(let r=0;r<t;r+=1)n[r>>>1]|=e.charCodeAt(r)<<16-r%2*16;return Y.create(n,2*t)}},ze=Me,Oe={stringify(e){const{words:t,sigBytes:n}=e,r=[];for(let o=0;o<n;o+=2){const e=Ie(t[o>>>2]>>>16-o%4*8&65535);r.push(String.fromCharCode(e))}return r.join("")},parse(e){const t=e.length,n=[];for(let r=0;r<t;r+=1)n[r>>>1]|=Ie(e.charCodeAt(r)<<16-r%2*16);return Y.create(n,2*t)}},Le={stringify(e,t=!0){const{words:n,sigBytes:r}=e,o=t?this._safeMap:this._map;e.clamp();const i=[];for(let s=0;s<r;s+=3){const e=(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;for(let t=0;t<4&&s+.75*t<r;t+=1)i.push(o.charAt(e>>>6*(3-t)&63))}const a=o.charAt(64);if(a)for(;i.length%4;)i.push(a);return i.join("")},parse(e,t=!0){let n=e.length;const r=t?this._safeMap:this._map;let o=this._reverseMap;if(!o){this._reverseMap=[],o=this._reverseMap;for(let e=0;e<r.length;e+=1)o[r.charCodeAt(e)]=e}const i=r.charAt(64);if(i){const t=e.indexOf(i);-1!==t&&(n=t)}return se(e,n,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safeMap:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"},Ae=[];class De extends ne{_doReset(){this._hash=new Y([1732584193,4023233417,2562383102,271733878,3285377520])}_doProcessBlock(e,t){const n=this._hash.words;let r=n[0],o=n[1],i=n[2],a=n[3],s=n[4];for(let l=0;l<80;l+=1){if(l<16)Ae[l]=0|e[t+l];else{const e=Ae[l-3]^Ae[l-8]^Ae[l-14]^Ae[l-16];Ae[l]=e<<1|e>>>31}let n=(r<<5|r>>>27)+s+Ae[l];n+=l<20?1518500249+(o&i|~o&a):l<40?1859775393+(o^i^a):l<60?(o&i|o&a|i&a)-1894007588:(o^i^a)-899497514,s=a,a=i,i=o<<30|o>>>2,o=r,r=n}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+i|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0}_doFinalize(){const 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(){const e=super.clone.call(this);return e._hash=this._hash.clone(),e}}const Fe=ne._createHelper(De),Ne=ne._createHmacHelper(De),Be=[],He=[],Ve=e=>{const t=Math.sqrt(e);for(let n=2;n<=t;n+=1)if(!(e%n))return!1;return!0},je=e=>4294967296*(e-(0|e))|0;let We=2,Ue=0;for(;Ue<64;)Ve(We)&&(Ue<8&&(Be[Ue]=je(We**.5)),He[Ue]=je(We**(1/3)),Ue+=1),We+=1;const Ge=[];class $e extends ne{_doReset(){this._hash=new Y(Be.slice(0))}_doProcessBlock(e,t){const n=this._hash.words;let r=n[0],o=n[1],i=n[2],a=n[3],s=n[4],l=n[5],c=n[6],u=n[7];for(let d=0;d<64;d+=1){if(d<16)Ge[d]=0|e[t+d];else{const e=Ge[d-15],t=(e<<25|e>>>7)^(e<<14|e>>>18)^e>>>3,n=Ge[d-2],r=(n<<15|n>>>17)^(n<<13|n>>>19)^n>>>10;Ge[d]=t+Ge[d-7]+r+Ge[d-16]}const n=r&o^r&i^o&i,f=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),h=u+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&l^~s&c)+He[d]+Ge[d];u=c,c=l,l=s,s=a+h|0,a=i,i=o,o=r,r=h+(f+n)|0}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+i|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0,n[5]=n[5]+l|0,n[6]=n[6]+c|0,n[7]=n[7]+u|0}_doFinalize(){const 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(){const e=super.clone.call(this);return e._hash=this._hash.clone(),e}}const Ke=ne._createHelper($e),Xe=ne._createHmacHelper($e);class qe extends $e{_doReset(){this._hash=new Y([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])}_doFinalize(){const e=super._doFinalize.call(this);return e.sigBytes-=4,e}}const Ye=$e._createHelper(qe),Qe=$e._createHmacHelper(qe),Ze=[new ie(1116352408,3609767458),new ie(1899447441,602891725),new ie(3049323471,3964484399),new ie(3921009573,2173295548),new ie(961987163,4081628472),new ie(1508970993,3053834265),new ie(2453635748,2937671579),new ie(2870763221,3664609560),new ie(3624381080,2734883394),new ie(310598401,1164996542),new ie(607225278,1323610764),new ie(1426881987,3590304994),new ie(1925078388,4068182383),new ie(2162078206,991336113),new ie(2614888103,633803317),new ie(3248222580,3479774868),new ie(3835390401,2666613458),new ie(4022224774,944711139),new ie(264347078,2341262773),new ie(604807628,2007800933),new ie(770255983,1495990901),new ie(1249150122,1856431235),new ie(1555081692,3175218132),new ie(1996064986,2198950837),new ie(2554220882,3999719339),new ie(2821834349,766784016),new ie(2952996808,2566594879),new ie(3210313671,3203337956),new ie(3336571891,1034457026),new ie(3584528711,2466948901),new ie(113926993,3758326383),new ie(338241895,168717936),new ie(666307205,1188179964),new ie(773529912,1546045734),new ie(1294757372,1522805485),new ie(1396182291,2643833823),new ie(1695183700,2343527390),new ie(1986661051,1014477480),new ie(2177026350,1206759142),new ie(2456956037,344077627),new ie(2730485921,1290863460),new ie(2820302411,3158454273),new ie(3259730800,3505952657),new ie(3345764771,106217008),new ie(3516065817,3606008344),new ie(3600352804,1432725776),new ie(4094571909,1467031594),new ie(275423344,851169720),new ie(430227734,3100823752),new ie(506948616,1363258195),new ie(659060556,3750685593),new ie(883997877,3785050280),new ie(958139571,3318307427),new ie(1322822218,3812723403),new ie(1537002063,2003034995),new ie(1747873779,3602036899),new ie(1955562222,1575990012),new ie(2024104815,1125592928),new ie(2227730452,2716904306),new ie(2361852424,442776044),new ie(2428436474,593698344),new ie(2756734187,3733110249),new ie(3204031479,2999351573),new ie(3329325298,3815920427),new ie(3391569614,3928383900),new ie(3515267271,566280711),new ie(3940187606,3454069534),new ie(4118630271,4000239992),new ie(116418474,1914138554),new ie(174292421,2731055270),new ie(289380356,3203993006),new ie(460393269,320620315),new ie(685471733,587496836),new ie(852142971,1086792851),new ie(1017036298,365543100),new ie(1126000580,2618297676),new ie(1288033470,3409855158),new ie(1501505948,4234509866),new ie(1607167915,987167468),new ie(1816402316,1246189591)],Je=[];for(let LD=0;LD<80;LD+=1)Je[LD]=new ie;class et extends ne{constructor(){super(),this.blockSize=32}_doReset(){this._hash=new ae([new ie(1779033703,4089235720),new ie(3144134277,2227873595),new ie(1013904242,4271175723),new ie(2773480762,1595750129),new ie(1359893119,2917565137),new ie(2600822924,725511199),new ie(528734635,4215389547),new ie(1541459225,327033209)])}_doProcessBlock(e,t){const n=this._hash.words,r=n[0],o=n[1],i=n[2],a=n[3],s=n[4],l=n[5],c=n[6],u=n[7],d=r.high;let f=r.low;const h=o.high;let p=o.low;const m=i.high;let g=i.low;const v=a.high;let y=a.low;const w=s.high;let b=s.low;const S=l.high;let x=l.low;const _=c.high;let C=c.low;const E=u.high;let k=u.low,T=d,R=f,P=h,I=p,M=m,z=g,O=v,L=y,A=w,D=b,F=S,N=x,B=_,H=C,V=E,j=k;for(let W=0;W<80;W+=1){let n,r;const o=Je[W];if(W<16)o.high=0|e[t+2*W],r=o.high,o.low=0|e[t+2*W+1],n=o.low;else{const e=Je[W-15],t=e.high,i=e.low,a=(t>>>1|i<<31)^(t>>>8|i<<24)^t>>>7,s=(i>>>1|t<<31)^(i>>>8|t<<24)^(i>>>7|t<<25),l=Je[W-2],c=l.high,u=l.low,d=(c>>>19|u<<13)^(c<<3|u>>>29)^c>>>6,f=(u>>>19|c<<13)^(u<<3|c>>>29)^(u>>>6|c<<26),h=Je[W-7],p=h.high,m=h.low,g=Je[W-16],v=g.high,y=g.low;n=s+m,r=a+p+(n>>>0<s>>>0?1:0),n+=f,r=r+d+(n>>>0<f>>>0?1:0),n+=y,r=r+v+(n>>>0<y>>>0?1:0),o.high=r,o.low=n}const i=A&F^~A&B,a=D&N^~D&H,s=T&P^T&M^P&M,l=R&I^R&z^I&z,c=(T>>>28|R<<4)^(T<<30|R>>>2)^(T<<25|R>>>7),u=(R>>>28|T<<4)^(R<<30|T>>>2)^(R<<25|T>>>7),d=(A>>>14|D<<18)^(A>>>18|D<<14)^(A<<23|D>>>9),f=(D>>>14|A<<18)^(D>>>18|A<<14)^(D<<23|A>>>9),h=Ze[W],p=h.high,m=h.low;let g=j+f,v=V+d+(g>>>0<j>>>0?1:0);g+=a,v=v+i+(g>>>0<a>>>0?1:0),g+=m,v=v+p+(g>>>0<m>>>0?1:0),g+=n,v=v+r+(g>>>0<n>>>0?1:0);const y=u+l;V=B,j=H,B=F,H=N,F=A,N=D,D=L+g|0,A=O+v+(D>>>0<L>>>0?1:0)|0,O=M,L=z,M=P,z=I,P=T,I=R,R=g+y|0,T=v+(c+s+(y>>>0<u>>>0?1:0))+(R>>>0<g>>>0?1:0)|0}r.low=f+R,f=r.low,r.high=d+T+(f>>>0<R>>>0?1:0),o.low=p+I,p=o.low,o.high=h+P+(p>>>0<I>>>0?1:0),i.low=g+z,g=i.low,i.high=m+M+(g>>>0<z>>>0?1:0),a.low=y+L,y=a.low,a.high=v+O+(y>>>0<L>>>0?1:0),s.low=b+D,b=s.low,s.high=w+A+(b>>>0<D>>>0?1:0),l.low=x+N,x=l.low,l.high=S+F+(x>>>0<N>>>0?1:0),c.low=C+H,C=c.low,c.high=_+B+(C>>>0<H>>>0?1:0),u.low=k+j,k=u.low,u.high=E+V+(k>>>0<j>>>0?1:0)}_doFinalize(){const e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;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();return this._hash.toX32()}clone(){const e=super.clone.call(this);return e._hash=this._hash.clone(),e}}const tt=ne._createHelper(et),nt=ne._createHmacHelper(et);class rt extends et{_doReset(){this._hash=new ae([new ie(3418070365,3238371032),new ie(1654270250,914150663),new ie(2438529370,812702999),new ie(355462360,4144912697),new ie(1731405415,4290775857),new ie(2394180231,1750603025),new ie(3675008525,1694076839),new ie(1203062813,3204075428)])}_doFinalize(){const e=super._doFinalize.call(this);return e.sigBytes-=16,e}}const ot=et._createHelper(rt),it=et._createHmacHelper(rt),at=[],st=[],lt=[];let ct=1,ut=0;for(let LD=0;LD<24;LD+=1){at[ct+5*ut]=(LD+1)*(LD+2)/2%64;const e=(2*ct+3*ut)%5;ct=ut%5,ut=e}for(let LD=0;LD<5;LD+=1)for(let e=0;e<5;e+=1)st[LD+5*e]=e+(2*LD+3*e)%5*5;let dt=1;for(let LD=0;LD<24;LD+=1){let e=0,t=0;for(let n=0;n<7;n+=1){if(1&dt){const r=(1<<n)-1;r<32?t^=1<<r:e^=1<<r-32}128&dt?dt=dt<<1^113:dt<<=1}lt[LD]=ie.create(e,t)}const ft=[];for(let LD=0;LD<25;LD+=1)ft[LD]=ie.create();class ht extends ne{constructor(e){super(Object.assign({outputLength:512},e))}_doReset(){this._state=[];const e=this._state;for(let t=0;t<25;t+=1)e[t]=new ie;this.blockSize=(1600-2*this.cfg.outputLength)/32}_doProcessBlock(e,t){const n=this._state,r=this.blockSize/2;for(let o=0;o<r;o+=1){let r=e[t+2*o],i=e[t+2*o+1];r=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),i=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8);const a=n[o];a.high^=i,a.low^=r}for(let o=0;o<24;o+=1){for(let o=0;o<5;o+=1){let e=0,t=0;for(let i=0;i<5;i+=1){const r=n[o+5*i];e^=r.high,t^=r.low}const r=ft[o];r.high=e,r.low=t}for(let o=0;o<5;o+=1){const e=ft[(o+4)%5],t=ft[(o+1)%5],r=t.high,i=t.low,a=e.high^(r<<1|i>>>31),s=e.low^(i<<1|r>>>31);for(let l=0;l<5;l+=1){const e=n[o+5*l];e.high^=a,e.low^=s}}for(let o=1;o<25;o+=1){let e,t;const r=n[o],i=r.high,a=r.low,s=at[o];s<32?(e=i<<s|a>>>32-s,t=a<<s|i>>>32-s):(e=a<<s-32|i>>>64-s,t=i<<s-32|a>>>64-s);const l=ft[st[o]];l.high=e,l.low=t}const e=ft[0],t=n[0];e.high=t.high,e.low=t.low;for(let o=0;o<5;o+=1)for(let e=0;e<5;e+=1){const t=o+5*e,r=n[t],i=ft[t],a=ft[(o+1)%5+5*e],s=ft[(o+2)%5+5*e];r.high=i.high^~a.high&s.high,r.low=i.low^~a.low&s.low}const r=n[0],i=lt[o];r.high^=i.high,r.low^=i.low}}_doFinalize(){const e=this._data,t=e.words,n=8*e.sigBytes,r=32*this.blockSize;t[n>>>5]|=1<<24-n%32,t[(Math.ceil((n+1)/r)*r>>>5)-1]|=128,e.sigBytes=4*t.length,this._process();const o=this._state,i=this.cfg.outputLength/8,a=i/8,s=[];for(let l=0;l<a;l+=1){const e=o[l];let t=e.high,n=e.low;t=16711935&(t<<8|t>>>24)|4278255360&(t<<24|t>>>8),n=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),s.push(n),s.push(t)}return new Y(s,i)}clone(){const e=super.clone.call(this);e._state=this._state.slice(0);const t=e._state;for(let n=0;n<25;n+=1)t[n]=t[n].clone();return e}}const pt=ne._createHelper(ht),mt=ne._createHmacHelper(ht),gt=Y.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]),vt=Y.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]),yt=Y.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]),wt=Y.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]),bt=Y.create([0,1518500249,1859775393,2400959708,2840853838]),St=Y.create([1352829926,1548603684,1836072691,2053994217,0]),xt=(e,t,n)=>e^t^n,_t=(e,t,n)=>e&t|~e&n,Ct=(e,t,n)=>(e|~t)^n,Et=(e,t,n)=>e&n|t&~n,kt=(e,t,n)=>e^(t|~n),Tt=(e,t)=>e<<t|e>>>32-t;class Rt extends ne{_doReset(){this._hash=Y.create([1732584193,4023233417,2562383102,271733878,3285377520])}_doProcessBlock(e,t){const n=e;for(let S=0;S<16;S+=1){const e=t+S,r=n[e];n[e]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}const r=this._hash.words,o=bt.words,i=St.words,a=gt.words,s=vt.words,l=yt.words,c=wt.words;let u,d=r[0],f=r[1],h=r[2],p=r[3],m=r[4],g=r[0],v=r[1],y=r[2],w=r[3],b=r[4];for(let S=0;S<80;S+=1)u=d+n[t+a[S]]|0,u+=S<16?xt(f,h,p)+o[0]:S<32?_t(f,h,p)+o[1]:S<48?Ct(f,h,p)+o[2]:S<64?Et(f,h,p)+o[3]:kt(f,h,p)+o[4],u|=0,u=Tt(u,l[S]),u=u+m|0,d=m,m=p,p=Tt(h,10),h=f,f=u,u=g+n[t+s[S]]|0,u+=S<16?kt(v,y,w)+i[0]:S<32?Et(v,y,w)+i[1]:S<48?Ct(v,y,w)+i[2]:S<64?_t(v,y,w)+i[3]:xt(v,y,w)+i[4],u|=0,u=Tt(u,c[S]),u=u+b|0,g=b,b=w,w=Tt(y,10),y=v,v=u;u=r[1]+h+w|0,r[1]=r[2]+p+b|0,r[2]=r[3]+m+g|0,r[3]=r[4]+d+v|0,r[4]=r[0]+f+y|0,r[0]=u}_doFinalize(){const 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();const o=this._hash,i=o.words;for(let a=0;a<5;a+=1){const e=i[a];i[a]=16711935&(e<<8|e>>>24)|4278255360&(e<<24|e>>>8)}return o}clone(){const e=super.clone.call(this);return e._hash=this._hash.clone(),e}}const Pt=ne._createHelper(Rt),It=ne._createHmacHelper(Rt);class Mt extends q{constructor(e){super(),this.cfg=Object.assign(new q,{keySize:4,hasher:De,iterations:1},e)}compute(e,t){const{cfg:n}=this,r=re.create(n.hasher,e),o=Y.create(),i=Y.create([1]),a=o.words,s=i.words,{keySize:l,iterations:c}=n;for(;a.length<l;){const e=r.update(t).finalize(i);r.reset();const n=e.words,a=n.length;let l=e;for(let t=1;t<c;t+=1){l=r.finalize(l),r.reset();const e=l.words;for(let t=0;t<a;t+=1)n[t]^=e[t]}o.concat(e),s[0]+=1}return o.sigBytes=4*l,o}}const zt=[],Ot=[],Lt=[],At=[],Dt=[],Ft=[],Nt=[],Bt=[],Ht=[],Vt=[],jt=[];for(let LD=0;LD<256;LD+=1)jt[LD]=LD<128?LD<<1:LD<<1^283;let Wt=0,Ut=0;for(let LD=0;LD<256;LD+=1){let e=Ut^Ut<<1^Ut<<2^Ut<<3^Ut<<4;e=e>>>8^255&e^99,zt[Wt]=e,Ot[e]=Wt;const t=jt[Wt],n=jt[t],r=jt[n];let o=257*jt[e]^16843008*e;Lt[Wt]=o<<24|o>>>8,At[Wt]=o<<16|o>>>16,Dt[Wt]=o<<8|o>>>24,Ft[Wt]=o,o=16843009*r^65537*n^257*t^16843008*Wt,Nt[e]=o<<24|o>>>8,Bt[e]=o<<16|o>>>16,Ht[e]=o<<8|o>>>24,Vt[e]=o,Wt?(Wt=t^jt[jt[jt[r^t]]],Ut^=jt[jt[Ut]]):(Ut=1,Wt=Ut)}const Gt=[0,1,2,4,8,16,32,64,128,27,54];class $t extends Ce{_doReset(){let e;if(this._nRounds&&this._keyPriorReset===this._key)return;this._keyPriorReset=this._key;const t=this._keyPriorReset,n=t.words,r=t.sigBytes/4;this._nRounds=r+6;const o=4*(this._nRounds+1);this._keySchedule=[];const i=this._keySchedule;for(let s=0;s<o;s+=1)s<r?i[s]=n[s]:(e=i[s-1],s%r?r>6&&s%r==4&&(e=zt[e>>>24]<<24|zt[e>>>16&255]<<16|zt[e>>>8&255]<<8|zt[255&e]):(e=e<<8|e>>>24,e=zt[e>>>24]<<24|zt[e>>>16&255]<<16|zt[e>>>8&255]<<8|zt[255&e],e^=Gt[s/r|0]<<24),i[s]=i[s-r]^e);this._invKeySchedule=[];const a=this._invKeySchedule;for(let s=0;s<o;s+=1){const t=o-s;e=s%4?i[t]:i[t-4],a[s]=s<4||t<=4?e:Nt[zt[e>>>24]]^Bt[zt[e>>>16&255]]^Ht[zt[e>>>8&255]]^Vt[zt[255&e]]}}encryptBlock(e,t){this._doCryptBlock(e,t,this._keySchedule,Lt,At,Dt,Ft,zt)}decryptBlock(e,t){const n=e;let r=n[t+1];n[t+1]=n[t+3],n[t+3]=r,this._doCryptBlock(n,t,this._invKeySchedule,Nt,Bt,Ht,Vt,Ot),r=n[t+1],n[t+1]=n[t+3],n[t+3]=r}_doCryptBlock(e,t,n,r,o,i,a,s){const l=e,c=this._nRounds;let u=l[t]^n[0],d=l[t+1]^n[1],f=l[t+2]^n[2],h=l[t+3]^n[3],p=4;for(let w=1;w<c;w+=1){const e=r[u>>>24]^o[d>>>16&255]^i[f>>>8&255]^a[255&h]^n[p];p+=1;const t=r[d>>>24]^o[f>>>16&255]^i[h>>>8&255]^a[255&u]^n[p];p+=1;const s=r[f>>>24]^o[h>>>16&255]^i[u>>>8&255]^a[255&d]^n[p];p+=1;const l=r[h>>>24]^o[u>>>16&255]^i[d>>>8&255]^a[255&f]^n[p];p+=1,u=e,d=t,f=s,h=l}const m=(s[u>>>24]<<24|s[d>>>16&255]<<16|s[f>>>8&255]<<8|s[255&h])^n[p];p+=1;const g=(s[d>>>24]<<24|s[f>>>16&255]<<16|s[h>>>8&255]<<8|s[255&u])^n[p];p+=1;const v=(s[f>>>24]<<24|s[h>>>16&255]<<16|s[u>>>8&255]<<8|s[255&d])^n[p];p+=1;const y=(s[h>>>24]<<24|s[u>>>16&255]<<16|s[d>>>8&255]<<8|s[255&f])^n[p];p+=1,l[t]=m,l[t+1]=g,l[t+2]=v,l[t+3]=y}}$t.keySize=8;const Kt=Ce._createHelper($t),Xt=[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],qt=[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],Yt=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],Qt=[{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}],Zt=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679];function Jt(e,t){const n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<<e}function en(e,t){const n=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<<e}class tn extends Ce{constructor(e,t,n){super(e,t,n),this.blockSize=2}_doReset(){const e=this._key.words,t=[];for(let o=0;o<56;o+=1){const n=Xt[o]-1;t[o]=e[n>>>5]>>>31-n%32&1}this._subKeys=[];const n=this._subKeys;for(let o=0;o<16;o+=1){n[o]=[];const e=n[o],r=Yt[o];for(let n=0;n<24;n+=1)e[n/6|0]|=t[(qt[n]-1+r)%28]<<31-n%6,e[4+(n/6|0)]|=t[28+(qt[n+24]-1+r)%28]<<31-n%6;e[0]=e[0]<<1|e[0]>>>31;for(let t=1;t<7;t+=1)e[t]>>>=4*(t-1)+3;e[7]=e[7]<<5|e[7]>>>27}this._invSubKeys=[];const r=this._invSubKeys;for(let o=0;o<16;o+=1)r[o]=n[15-o]}encryptBlock(e,t){this._doCryptBlock(e,t,this._subKeys)}decryptBlock(e,t){this._doCryptBlock(e,t,this._invSubKeys)}_doCryptBlock(e,t,n){const r=e;this._lBlock=e[t],this._rBlock=e[t+1],Jt.call(this,4,252645135),Jt.call(this,16,65535),en.call(this,2,858993459),en.call(this,8,16711935),Jt.call(this,1,1431655765);for(let i=0;i<16;i+=1){const e=n[i],t=this._lBlock,r=this._rBlock;let o=0;for(let n=0;n<8;n+=1)o|=Qt[n][((r^e[n])&Zt[n])>>>0];this._lBlock=r,this._rBlock=t^o}const o=this._lBlock;this._lBlock=this._rBlock,this._rBlock=o,Jt.call(this,1,1431655765),en.call(this,8,16711935),en.call(this,2,858993459),Jt.call(this,16,65535),Jt.call(this,4,252645135),r[t]=this._lBlock,r[t+1]=this._rBlock}}tn.keySize=2,tn.ivSize=2;const nn=Ce._createHelper(tn);class rn extends Ce{_doReset(){const 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.");const t=e.slice(0,2),n=e.length<4?e.slice(0,2):e.slice(2,4),r=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=tn.createEncryptor(Y.create(t)),this._des2=tn.createEncryptor(Y.create(n)),this._des3=tn.createEncryptor(Y.create(r))}encryptBlock(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)}decryptBlock(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)}}rn.keySize=6,rn.ivSize=2;const on=Ce._createHelper(rn),an=[],sn=[],ln=[];function cn(){const e=this._X,t=this._C;for(let n=0;n<8;n+=1)sn[n]=t[n];t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<sn[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<sn[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<sn[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<sn[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<sn[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<sn[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<sn[6]>>>0?1:0)|0,this._b=t[7]>>>0<sn[7]>>>0?1:0;for(let n=0;n<8;n+=1){const r=e[n]+t[n],o=65535&r,i=r>>>16,a=((o*o>>>17)+o*i>>>15)+i*i,s=((4294901760&r)*r|0)+((65535&r)*r|0);ln[n]=a^s}e[0]=ln[0]+(ln[7]<<16|ln[7]>>>16)+(ln[6]<<16|ln[6]>>>16)|0,e[1]=ln[1]+(ln[0]<<8|ln[0]>>>24)+ln[7]|0,e[2]=ln[2]+(ln[1]<<16|ln[1]>>>16)+(ln[0]<<16|ln[0]>>>16)|0,e[3]=ln[3]+(ln[2]<<8|ln[2]>>>24)+ln[1]|0,e[4]=ln[4]+(ln[3]<<16|ln[3]>>>16)+(ln[2]<<16|ln[2]>>>16)|0,e[5]=ln[5]+(ln[4]<<8|ln[4]>>>24)+ln[3]|0,e[6]=ln[6]+(ln[5]<<16|ln[5]>>>16)+(ln[4]<<16|ln[4]>>>16)|0,e[7]=ln[7]+(ln[6]<<8|ln[6]>>>24)+ln[5]|0}class un extends we{constructor(...e){super(...e),this.blockSize=4,this.ivSize=2}_doReset(){const e=this._key.words,{iv:t}=this.cfg;for(let o=0;o<4;o+=1)e[o]=16711935&(e[o]<<8|e[o]>>>24)|4278255360&(e[o]<<24|e[o]>>>8);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];const n=this._X;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]];const r=this._C;this._b=0;for(let o=0;o<4;o+=1)cn.call(this);for(let o=0;o<8;o+=1)r[o]^=n[o+4&7];if(t){const e=t.words,n=e[0],o=e[1],i=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),a=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),s=i>>>16|4294901760&a,l=a<<16|65535&i;r[0]^=i,r[1]^=s,r[2]^=a,r[3]^=l,r[4]^=i,r[5]^=s,r[6]^=a,r[7]^=l;for(let t=0;t<4;t+=1)cn.call(this)}}_doProcessBlock(e,t){const n=e,r=this._X;cn.call(this),an[0]=r[0]^r[5]>>>16^r[3]<<16,an[1]=r[2]^r[7]>>>16^r[5]<<16,an[2]=r[4]^r[1]>>>16^r[7]<<16,an[3]=r[6]^r[3]>>>16^r[1]<<16;for(let o=0;o<4;o+=1)an[o]=16711935&(an[o]<<8|an[o]>>>24)|4278255360&(an[o]<<24|an[o]>>>8),n[t+o]^=an[o]}}const dn=we._createHelper(un),fn=[],hn=[],pn=[];function mn(){const e=this._X,t=this._C;for(let n=0;n<8;n+=1)hn[n]=t[n];t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<hn[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<hn[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<hn[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<hn[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<hn[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<hn[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<hn[6]>>>0?1:0)|0,this._b=t[7]>>>0<hn[7]>>>0?1:0;for(let n=0;n<8;n+=1){const r=e[n]+t[n],o=65535&r,i=r>>>16,a=((o*o>>>17)+o*i>>>15)+i*i,s=((4294901760&r)*r|0)+((65535&r)*r|0);pn[n]=a^s}e[0]=pn[0]+(pn[7]<<16|pn[7]>>>16)+(pn[6]<<16|pn[6]>>>16)|0,e[1]=pn[1]+(pn[0]<<8|pn[0]>>>24)+pn[7]|0,e[2]=pn[2]+(pn[1]<<16|pn[1]>>>16)+(pn[0]<<16|pn[0]>>>16)|0,e[3]=pn[3]+(pn[2]<<8|pn[2]>>>24)+pn[1]|0,e[4]=pn[4]+(pn[3]<<16|pn[3]>>>16)+(pn[2]<<16|pn[2]>>>16)|0,e[5]=pn[5]+(pn[4]<<8|pn[4]>>>24)+pn[3]|0,e[6]=pn[6]+(pn[5]<<16|pn[5]>>>16)+(pn[4]<<16|pn[4]>>>16)|0,e[7]=pn[7]+(pn[6]<<8|pn[6]>>>24)+pn[5]|0}class gn extends we{constructor(...e){super(...e),this.blockSize=4,this.ivSize=2}_doReset(){const e=this._key.words,{iv:t}=this.cfg;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];const n=this._X;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]];const r=this._C;this._b=0;for(let o=0;o<4;o+=1)mn.call(this);for(let o=0;o<8;o+=1)r[o]^=n[o+4&7];if(t){const e=t.words,n=e[0],o=e[1],i=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),a=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),s=i>>>16|4294901760&a,l=a<<16|65535&i;r[0]^=i,r[1]^=s,r[2]^=a,r[3]^=l,r[4]^=i,r[5]^=s,r[6]^=a,r[7]^=l;for(let t=0;t<4;t+=1)mn.call(this)}}_doProcessBlock(e,t){const n=e,r=this._X;mn.call(this),fn[0]=r[0]^r[5]>>>16^r[3]<<16,fn[1]=r[2]^r[7]>>>16^r[5]<<16,fn[2]=r[4]^r[1]>>>16^r[7]<<16,fn[3]=r[6]^r[3]>>>16^r[1]<<16;for(let o=0;o<4;o+=1)fn[o]=16711935&(fn[o]<<8|fn[o]>>>24)|4278255360&(fn[o]<<24|fn[o]>>>8),n[t+o]^=fn[o]}}const vn=we._createHelper(gn);function yn(){const e=this._S;let t=this._i,n=this._j,r=0;for(let o=0;o<4;o+=1){t=(t+1)%256,n=(n+e[t])%256;const 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}class wn extends we{_doReset(){const e=this._key,t=e.words,n=e.sigBytes;this._S=[];const r=this._S;for(let o=0;o<256;o+=1)r[o]=o;for(let o=0,i=0;o<256;o+=1){const e=o%n,a=t[e>>>2]>>>24-e%4*8&255;i=(i+r[o]+a)%256;const s=r[o];r[o]=r[i],r[i]=s}this._j=0,this._i=this._j}_doProcessBlock(e,t){e[t]^=yn.call(this)}}wn.keySize=8,wn.ivSize=0;const bn=we._createHelper(wn);class Sn extends wn{constructor(...e){super(...e),Object.assign(this.cfg,{drop:192})}_doReset(){super._doReset.call(this);for(let e=this.cfg.drop;e>0;e-=1)yn.call(this)}}const xn=we._createHelper(Sn),_n=16,Cn=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],En=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]],kn={pbox:[],sbox:[]};function Tn(e,t){const n=t>>24&255,r=t>>16&255,o=t>>8&255,i=255&t;let a=e.sbox[0][n]+e.sbox[1][r];return a^=e.sbox[2][o],a+=e.sbox[3][i],a}function Rn(e,t,n){let r,o=t,i=n;for(let a=0;a<_n;++a)o^=e.pbox[a],i=Tn(e,o)^i,r=o,o=i,i=r;return r=o,o=i,i=r,i^=e.pbox[_n],o^=e.pbox[_n+1],{left:o,right:i}}class Pn extends Ce{constructor(e,t,n){super(e,t,n),this.blockSize=2}_doReset(){if(this._keyPriorReset===this._key)return;const e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4;!function(e,t,n){for(let s=0;s<4;s++){e.sbox[s]=[];for(let t=0;t<256;t++)e.sbox[s][t]=En[s][t]}let r=0;for(let s=0;s<_n+2;s++)e.pbox[s]=Cn[s]^t[r],r++,r>=n&&(r=0);let o=0,i=0,a=0;for(let s=0;s<_n+2;s+=2)a=Rn(e,o,i),o=a.left,i=a.right,e.pbox[s]=o,e.pbox[s+1]=i;for(let s=0;s<4;s++)for(let t=0;t<256;t+=2)a=Rn(e,o,i),o=a.left,i=a.right,e.sbox[s][t]=o,e.sbox[s][t+1]=i}(kn,t,n)}encryptBlock(e,t){const n=Rn(kn,e[t],e[t+1]);e[t]=n.left,e[t+1]=n.right}decryptBlock(e,t){const n=function(e,t,n){let r,o=t,i=n;for(let a=_n+1;a>1;--a)o^=e.pbox[a],i=Tn(e,o)^i,r=o,o=i,i=r;return r=o,o=i,i=r,i^=e.pbox[1],o^=e.pbox[0],{left:o,right:i}}(kn,e[t],e[t+1]);e[t]=n.left,e[t+1]=n.right}}Pn.keySize=4,Pn.ivSize=2;const In=Ce._createHelper(Pn);function Mn(e,t,n,r){const o=e;let i;const a=this._iv;a?(i=a.slice(0),this._iv=void 0):i=this._prevBlock,r.encryptBlock(i,0);for(let s=0;s<n;s+=1)o[t+s]^=i[s]}class zn extends be{}zn.Encryptor=class extends zn{processBlock(e,t){const n=this._cipher,{blockSize:r}=n;Mn.call(this,e,t,r,n),this._prevBlock=e.slice(t,t+r)}},zn.Decryptor=class extends zn{processBlock(e,t){const n=this._cipher,{blockSize:r}=n,o=e.slice(t,t+r);Mn.call(this,e,t,r,n),this._prevBlock=o}};class On extends be{}On.Encryptor=class extends On{processBlock(e,t){const n=e,r=this._cipher,{blockSize:o}=r,i=this._iv;let a=this._counter;i&&(this._counter=i.slice(0),a=this._counter,this._iv=void 0);const s=a.slice(0);r.encryptBlock(s,0),a[o-1]=a[o-1]+1|0;for(let l=0;l<o;l+=1)n[t+l]^=s[l]}},On.Decryptor=On.Encryptor;const Ln=e=>{let t=e;if(255==(e>>24&255)){let n=e>>16&255,r=e>>8&255,o=255&e;255===n?(n=0,255===r?(r=0,255===o?o=0:o+=1):r+=1):n+=1,t=0,t+=n<<16,t+=r<<8,t+=o}else t+=1<<24;return t};class An extends be{}An.Encryptor=class extends An{processBlock(e,t){const n=e,r=this._cipher,{blockSize:o}=r,i=this._iv;let a=this._counter;i&&(this._counter=i.slice(0),a=this._counter,this._iv=void 0),(e=>{const t=e;t[0]=Ln(t[0]),0===t[0]&&(t[1]=Ln(t[1]))})(a);const s=a.slice(0);r.encryptBlock(s,0);for(let l=0;l<o;l+=1)n[t+l]^=s[l]}},An.Decryptor=An.Encryptor;class Dn extends be{}Dn.Encryptor=class extends Dn{processBlock(e,t){this._cipher.encryptBlock(e,t)}},Dn.Decryptor=class extends Dn{processBlock(e,t){this._cipher.decryptBlock(e,t)}};class Fn extends be{}Fn.Encryptor=class extends Fn{processBlock(e,t){const n=e,r=this._cipher,{blockSize:o}=r,i=this._iv;let a=this._keystream;i&&(this._keystream=i.slice(0),a=this._keystream,this._iv=void 0),r.encryptBlock(a,0);for(let s=0;s<o;s+=1)n[t+s]^=a[s]}},Fn.Decryptor=Fn.Encryptor;const Nn={pad(e,t){const n=4*t,r=n-e.sigBytes%n;e.concat(Y.random(r-1)).concat(Y.create([r<<24],1))},unpad(e){const t=e,n=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=n}},Bn={pad(e,t){const n=e,r=4*t;n.clamp(),n.sigBytes+=r-(e.sigBytes%r||r)},unpad(e){const t=e,n=t.words;for(let r=t.sigBytes-1;r>=0;r-=1)if(n[r>>>2]>>>24-r%4*8&255){t.sigBytes=r+1;break}}},Hn={pad(e,t){e.concat(Y.create([2147483648],1)),Bn.pad(e,t)},unpad(e){const t=e;Bn.unpad(t),t.sigBytes-=1}},Vn={stringify:e=>e.ciphertext.toString(Z),parse(e){const t=Z.parse(e);return Ee.create({ciphertext:t})}},jn={lib:{Base:q,WordArray:Y,BufferedBlockAlgorithm:te,Hasher:ne,Cipher:ye,StreamCipher:we,BlockCipherMode:be,BlockCipher:Ce,CipherParams:Ee,SerializableCipher:Te,PasswordBasedCipher:Pe},x64:{Word:ie,WordArray:ae},enc:{Hex:Z,Latin1:J,Utf8:ee,Utf16:ze,Utf16BE:Me,Utf16LE:Oe,Base64:le,Base64url:Le},algo:{HMAC:re,MD5:pe,SHA1:De,SHA224:qe,SHA256:$e,SHA384:rt,SHA512:et,SHA3:ht,RIPEMD160:Rt,PBKDF2:Mt,EvpKDF:ve,AES:$t,DES:tn,TripleDES:rn,Rabbit:un,RabbitLegacy:gn,RC4:wn,RC4Drop:Sn,Blowfish:Pn},mode:{CBC:xe,CFB:zn,CTR:On,CTRGladman:An,ECB:Dn,OFB:Fn},pad:{Pkcs7:_e,AnsiX923:{pad(e,t){const n=e,r=n.sigBytes,o=4*t,i=o-r%o,a=r+i-1;n.clamp(),n.words[a>>>2]|=i<<24-a%4*8,n.sigBytes+=i},unpad(e){const t=e,n=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=n}},Iso10126:Nn,Iso97971:Hn,NoPadding:{pad(){},unpad(){}},ZeroPadding:Bn},format:{OpenSSL:ke,Hex:Vn},kdf:{OpenSSL:Re},MD5:me,HmacMD5:ge,SHA1:Fe,HmacSHA1:Ne,SHA224:Ye,HmacSHA224:Qe,SHA256:Ke,HmacSHA256:Xe,SHA384:ot,HmacSHA384:it,SHA512:tt,HmacSHA512:nt,SHA3:pt,HmacSHA3:mt,RIPEMD160:Pt,HmacRIPEMD160:It,PBKDF2:(e,t,n)=>Mt.create(n).compute(e,t),EvpKDF:(e,t,n)=>ve.create(n).compute(e,t),AES:Kt,DES:nn,TripleDES:on,Rabbit:dn,RabbitLegacy:vn,RC4:bn,RC4Drop:xn,Blowfish:In};var Wn={exports:{}},Un={},Gn=U,$n=Symbol.for("react.element"),Kn=Symbol.for("react.fragment"),Xn=Object.prototype.hasOwnProperty,qn=Gn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Yn={key:!0,ref:!0,__self:!0,__source:!0};function Qn(e,t,n){var r,o={},i=null,a=null;for(r in void 0!==n&&(i=""+n),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)Xn.call(t,r)&&!Yn.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:$n,type:e,key:i,ref:a,props:o,_owner:qn.current}}Un.Fragment=Kn,Un.jsx=Qn,Un.jsxs=Qn,Wn.exports=Un;var Zn=Wn.exports;function Jn(){return Jn=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},Jn.apply(this,arguments)}function er(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>U.createContext(e)));return function(n){const r=(null==n?void 0:n[e])||t;return U.useMemo((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=U.createContext(r),i=n.length;function a(t){const{scope:n,children:r,...a}=t,s=(null==n?void 0:n[e][i])||o,l=U.useMemo((()=>a),Object.values(a));return U.createElement(s.Provider,{value:l},r)}return n=[...n,r],a.displayName=t+"Provider",[a,function(n,a){const s=(null==a?void 0:a[e][i])||o,l=U.useContext(s);if(l)return l;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},tr(r,...t)]}function tr(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return U.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}function nr(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function rr(...e){return U.useCallback(nr(...e),e)}function or(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}const ir=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?U.useLayoutEffect:()=>{},ar=$["useId".toString()]||(()=>{});let sr=0;function lr(e){const[t,n]=U.useState(ar());return ir((()=>{e||n((e=>null!=e?e:String(sr++)))}),[e]),e||(t?`radix-${t}`:"")}function cr(e){const t=U.useRef(e);return U.useEffect((()=>{t.current=e})),U.useMemo((()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}function ur({prop:e,defaultProp:t,onChange:n=(()=>{})}){const[r,o]=function({defaultProp:e,onChange:t}){const n=U.useState(e),[r]=n,o=U.useRef(r),i=cr(t);return U.useEffect((()=>{o.current!==r&&(i(r),o.current=r)}),[r,o,i]),n}({defaultProp:t,onChange:n}),i=void 0!==e,a=i?e:r,s=cr(n),l=U.useCallback((t=>{if(i){const n="function"==typeof t?t(e):t;n!==e&&s(n)}else o(t)}),[i,e,o,s]);return[a,l]}var dr={exports:{}},fr={},hr={exports:{}},pr={};!function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,l=e[s],c=s+1,u=e[c];if(0>o(l,n))c<i&&0>o(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(c<i&&0>o(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],c=[],u=1,d=null,f=3,h=!1,p=!1,m=!1,g="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var o=n(c);null!==o;){if(null===o.callback)r(c);else{if(!(o.startTime<=e))break;r(c),o.sortIndex=o.expirationTime,t(l,o)}o=n(c)}}function b(e){if(m=!1,w(e),!p)if(null!==n(l))p=!0,z(S);else{var t=n(c);null!==t&&O(b,t.startTime-e)}}function S(t,o){p=!1,m&&(m=!1,v(E),E=-1),h=!0;var i=f;try{for(w(o),d=n(l);null!==d&&(!(d.expirationTime>o)||t&&!R());){var a=d.callback;if("function"==typeof a){d.callback=null,f=d.priorityLevel;var s=a(d.expirationTime<=o);o=e.unstable_now(),"function"==typeof s?d.callback=s:d===n(l)&&r(l),w(o)}else r(l);d=n(l)}if(null!==d)var u=!0;else{var g=n(c);null!==g&&O(b,g.startTime-o),u=!1}return u}finally{d=null,f=i,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var x,_=!1,C=null,E=-1,k=5,T=-1;function R(){return!(e.unstable_now()-T<k)}function P(){if(null!==C){var t=e.unstable_now();T=t;var n=!0;try{n=C(!0,t)}finally{n?x():(_=!1,C=null)}}else _=!1}if("function"==typeof y)x=function(){y(P)};else if("undefined"!=typeof MessageChannel){var I=new MessageChannel,M=I.port2;I.port1.onmessage=P,x=function(){M.postMessage(null)}}else x=function(){g(P,0)};function z(e){C=e,_||(_=!0,x())}function O(t,n){E=g((function(){t(e.unstable_now())}),n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){p||h||(p=!0,z(S))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,o,i){var a=e.unstable_now();switch("object"==typeof i&&null!==i?i="number"==typeof(i=i.delay)&&0<i?a+i:a:i=a,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return r={id:u++,callback:o,priorityLevel:r,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>a?(r.sortIndex=i,t(c,r),null===n(l)&&r===n(c)&&(m?(v(E),E=-1):m=!0,O(b,i-a))):(r.sortIndex=s,t(l,r),p||h||(p=!0,z(S))),r},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}}(pr),hr.exports=pr;var mr=hr.exports,gr=U,vr=mr;function yr(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var wr=new Set,br={};function Sr(e,t){xr(e,t),xr(e+"Capture",t)}function xr(e,t){for(br[e]=t,e=0;e<t.length;e++)wr.add(t[e])}var _r=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Cr=Object.prototype.hasOwnProperty,Er=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,kr={},Tr={};function Rr(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Pr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){Pr[e]=new Rr(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];Pr[t]=new Rr(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){Pr[e]=new Rr(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){Pr[e]=new Rr(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){Pr[e]=new Rr(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){Pr[e]=new Rr(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){Pr[e]=new Rr(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){Pr[e]=new Rr(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){Pr[e]=new Rr(e,5,!1,e.toLowerCase(),null,!1,!1)}));var Ir=/[\-:]([a-z])/g;function Mr(e){return e[1].toUpperCase()}function zr(e,t,n,r){var o=Pr.hasOwnProperty(t)?Pr[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!Cr.call(Tr,e)||!Cr.call(kr,e)&&(Er.test(e)?Tr[e]=!0:(kr[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(Ir,Mr);Pr[t]=new Rr(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(Ir,Mr);Pr[t]=new Rr(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(Ir,Mr);Pr[t]=new Rr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){Pr[e]=new Rr(e,1,!1,e.toLowerCase(),null,!1,!1)})),Pr.xlinkHref=new Rr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){Pr[e]=new Rr(e,1,!1,e.toLowerCase(),null,!0,!0)}));var Or=gr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Lr=Symbol.for("react.element"),Ar=Symbol.for("react.portal"),Dr=Symbol.for("react.fragment"),Fr=Symbol.for("react.strict_mode"),Nr=Symbol.for("react.profiler"),Br=Symbol.for("react.provider"),Hr=Symbol.for("react.context"),Vr=Symbol.for("react.forward_ref"),jr=Symbol.for("react.suspense"),Wr=Symbol.for("react.suspense_list"),Ur=Symbol.for("react.memo"),Gr=Symbol.for("react.lazy"),$r=Symbol.for("react.offscreen"),Kr=Symbol.iterator;function Xr(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=Kr&&e[Kr]||e["@@iterator"])?e:null}var qr,Yr=Object.assign;function Qr(e){if(void 0===qr)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);qr=t&&t[1]||""}return"\n"+qr+e}var Zr=!1;function Jr(e,t){if(!e||Zr)return"";Zr=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&"string"==typeof c.stack){for(var o=c.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(1!==a||1!==s)do{if(a--,0>--s||o[a]!==i[s]){var l="\n"+o[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{Zr=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Qr(e):""}function eo(e){switch(e.tag){case 5:return Qr(e.type);case 16:return Qr("Lazy");case 13:return Qr("Suspense");case 19:return Qr("SuspenseList");case 0:case 2:case 15:return e=Jr(e.type,!1);case 11:return e=Jr(e.type.render,!1);case 1:return e=Jr(e.type,!0);default:return""}}function to(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case Dr:return"Fragment";case Ar:return"Portal";case Nr:return"Profiler";case Fr:return"StrictMode";case jr:return"Suspense";case Wr:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case Hr:return(e.displayName||"Context")+".Consumer";case Br:return(e._context.displayName||"Context")+".Provider";case Vr:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case Ur:return null!==(t=e.displayName||null)?t:to(e.type)||"Memo";case Gr:t=e._payload,e=e._init;try{return to(e(t))}catch(n){}}return null}function no(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return to(t);case 8:return t===Fr?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function ro(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function oo(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function io(e){e._valueTracker||(e._valueTracker=function(e){var t=oo(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function ao(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=oo(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function so(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function lo(e,t){var n=t.checked;return Yr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function co(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=ro(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function uo(e,t){null!=(t=t.checked)&&zr(e,"checked",t,!1)}function fo(e,t){uo(e,t);var n=ro(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?po(e,t.type,n):t.hasOwnProperty("defaultValue")&&po(e,t.type,ro(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function ho(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function po(e,t,n){"number"===t&&so(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var mo=Array.isArray;function go(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ro(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function vo(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(yr(91));return Yr({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function yo(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(yr(92));if(mo(n)){if(1<n.length)throw Error(yr(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:ro(n)}}function wo(e,t){var n=ro(t.value),r=ro(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function bo(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function So(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function xo(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?So(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var _o,Co,Eo=(Co=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((_o=_o||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=_o.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return Co(e,t)}))}:Co);function ko(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var To={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ro=["Webkit","ms","Moz","O"];function Po(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||To.hasOwnProperty(e)&&To[e]?(""+t).trim():t+"px"}function Io(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=Po(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(To).forEach((function(e){Ro.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),To[t]=To[e]}))}));var Mo=Yr({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function zo(e,t){if(t){if(Mo[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(yr(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(yr(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(yr(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(yr(62))}}function Oo(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Lo=null;function Ao(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Do=null,Fo=null,No=null;function Bo(e){if(e=zl(e)){if("function"!=typeof Do)throw Error(yr(280));var t=e.stateNode;t&&(t=Ll(t),Do(e.stateNode,e.type,t))}}function Ho(e){Fo?No?No.push(e):No=[e]:Fo=e}function Vo(){if(Fo){var e=Fo,t=No;if(No=Fo=null,Bo(e),t)for(e=0;e<t.length;e++)Bo(t[e])}}function jo(e,t){return e(t)}function Wo(){}var Uo=!1;function Go(e,t,n){if(Uo)return e(t,n);Uo=!0;try{return jo(e,t,n)}finally{Uo=!1,(null!==Fo||null!==No)&&(Wo(),Vo())}}function $o(e,t){var n=e.stateNode;if(null===n)return null;var r=Ll(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(yr(231,t,typeof n));return n}var Ko=!1;if(_r)try{var Xo={};Object.defineProperty(Xo,"passive",{get:function(){Ko=!0}}),window.addEventListener("test",Xo,Xo),window.removeEventListener("test",Xo,Xo)}catch(Co){Ko=!1}function qo(e,t,n,r,o,i,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var Yo=!1,Qo=null,Zo=!1,Jo=null,ei={onError:function(e){Yo=!0,Qo=e}};function ti(e,t,n,r,o,i,a,s,l){Yo=!1,Qo=null,qo.apply(ei,arguments)}function ni(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function ri(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function oi(e){if(ni(e)!==e)throw Error(yr(188))}function ii(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=ni(e)))throw Error(yr(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return oi(o),e;if(i===r)return oi(o),t;i=i.sibling}throw Error(yr(188))}if(n.return!==r.return)n=o,r=i;else{for(var a=!1,s=o.child;s;){if(s===n){a=!0,n=o,r=i;break}if(s===r){a=!0,r=o,n=i;break}s=s.sibling}if(!a){for(s=i.child;s;){if(s===n){a=!0,n=i,r=o;break}if(s===r){a=!0,r=i,n=o;break}s=s.sibling}if(!a)throw Error(yr(189))}}if(n.alternate!==r)throw Error(yr(190))}if(3!==n.tag)throw Error(yr(188));return n.stateNode.current===n?e:t}(e))?ai(e):null}function ai(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=ai(e);if(null!==t)return t;e=e.sibling}return null}var si=vr.unstable_scheduleCallback,li=vr.unstable_cancelCallback,ci=vr.unstable_shouldYield,ui=vr.unstable_requestPaint,di=vr.unstable_now,fi=vr.unstable_getCurrentPriorityLevel,hi=vr.unstable_ImmediatePriority,pi=vr.unstable_UserBlockingPriority,mi=vr.unstable_NormalPriority,gi=vr.unstable_LowPriority,vi=vr.unstable_IdlePriority,yi=null,wi=null;var bi=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(Si(e)/xi|0)|0},Si=Math.log,xi=Math.LN2;var _i=64,Ci=4194304;function Ei(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ki(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~o;0!==s?r=Ei(s):0!==(i&=a)&&(r=Ei(i))}else 0!==(a=n&~o)?r=Ei(a):0!==i&&(r=Ei(i));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&0!=(4194240&i)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-bi(t)),r|=e[n],t&=~o;return r}function Ti(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function Ri(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Pi(){var e=_i;return 0==(4194240&(_i<<=1))&&(_i=64),e}function Ii(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Mi(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-bi(t)]=n}function zi(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-bi(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var Oi=0;function Li(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var Ai,Di,Fi,Ni,Bi,Hi=!1,Vi=[],ji=null,Wi=null,Ui=null,Gi=new Map,$i=new Map,Ki=[],Xi="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function qi(e,t){switch(e){case"focusin":case"focusout":ji=null;break;case"dragenter":case"dragleave":Wi=null;break;case"mouseover":case"mouseout":Ui=null;break;case"pointerover":case"pointerout":Gi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":$i.delete(t.pointerId)}}function Yi(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=zl(t))&&Di(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Qi(e){var t=Ml(e.target);if(null!==t){var n=ni(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=ri(n)))return e.blockedOn=t,void Bi(e.priority,(function(){Fi(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Zi(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=ca(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=zl(n))&&Di(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);Lo=r,n.target.dispatchEvent(r),Lo=null,t.shift()}return!0}function Ji(e,t,n){Zi(e)&&n.delete(t)}function ea(){Hi=!1,null!==ji&&Zi(ji)&&(ji=null),null!==Wi&&Zi(Wi)&&(Wi=null),null!==Ui&&Zi(Ui)&&(Ui=null),Gi.forEach(Ji),$i.forEach(Ji)}function ta(e,t){e.blockedOn===t&&(e.blockedOn=null,Hi||(Hi=!0,vr.unstable_scheduleCallback(vr.unstable_NormalPriority,ea)))}function na(e){function t(t){return ta(t,e)}if(0<Vi.length){ta(Vi[0],e);for(var n=1;n<Vi.length;n++){var r=Vi[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==ji&&ta(ji,e),null!==Wi&&ta(Wi,e),null!==Ui&&ta(Ui,e),Gi.forEach(t),$i.forEach(t),n=0;n<Ki.length;n++)(r=Ki[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Ki.length&&null===(n=Ki[0]).blockedOn;)Qi(n),null===n.blockedOn&&Ki.shift()}var ra=Or.ReactCurrentBatchConfig,oa=!0;function ia(e,t,n,r){var o=Oi,i=ra.transition;ra.transition=null;try{Oi=1,sa(e,t,n,r)}finally{Oi=o,ra.transition=i}}function aa(e,t,n,r){var o=Oi,i=ra.transition;ra.transition=null;try{Oi=4,sa(e,t,n,r)}finally{Oi=o,ra.transition=i}}function sa(e,t,n,r){if(oa){var o=ca(e,t,n,r);if(null===o)rl(e,t,r,la,n),qi(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return ji=Yi(ji,e,t,n,r,o),!0;case"dragenter":return Wi=Yi(Wi,e,t,n,r,o),!0;case"mouseover":return Ui=Yi(Ui,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Gi.set(i,Yi(Gi.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,$i.set(i,Yi($i.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(qi(e,r),4&t&&-1<Xi.indexOf(e)){for(;null!==o;){var i=zl(o);if(null!==i&&Ai(i),null===(i=ca(e,t,n,r))&&rl(e,t,r,la,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else rl(e,t,r,null,n)}}var la=null;function ca(e,t,n,r){if(la=null,null!==(e=Ml(e=Ao(r))))if(null===(t=ni(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=ri(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return la=e,null}function ua(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(fi()){case hi:return 1;case pi:return 4;case mi:case gi:return 16;case vi:return 536870912;default:return 16}default:return 16}}var da=null,fa=null,ha=null;function pa(){if(ha)return ha;var e,t,n=fa,r=n.length,o="value"in da?da.value:da.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return ha=o.slice(e,1<t?1-t:void 0)}function ma(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function ga(){return!0}function va(){return!1}function ya(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?ga:va,this.isPropagationStopped=va,this}return Yr(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=ga)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=ga)},persist:function(){},isPersistent:ga}),t}var wa,ba,Sa,xa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},_a=ya(xa),Ca=Yr({},xa,{view:0,detail:0}),Ea=ya(Ca),ka=Yr({},Ca,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Na,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Sa&&(Sa&&"mousemove"===e.type?(wa=e.screenX-Sa.screenX,ba=e.screenY-Sa.screenY):ba=wa=0,Sa=e),wa)},movementY:function(e){return"movementY"in e?e.movementY:ba}}),Ta=ya(ka),Ra=ya(Yr({},ka,{dataTransfer:0})),Pa=ya(Yr({},Ca,{relatedTarget:0})),Ia=ya(Yr({},xa,{animationName:0,elapsedTime:0,pseudoElement:0})),Ma=Yr({},xa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),za=ya(Ma),Oa=ya(Yr({},xa,{data:0})),La={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Aa={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Da={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Fa(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Da[e])&&!!t[e]}function Na(){return Fa}var Ba=Yr({},Ca,{key:function(e){if(e.key){var t=La[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=ma(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Aa[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Na,charCode:function(e){return"keypress"===e.type?ma(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?ma(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Ha=ya(Ba),Va=ya(Yr({},ka,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),ja=ya(Yr({},Ca,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Na})),Wa=ya(Yr({},xa,{propertyName:0,elapsedTime:0,pseudoElement:0})),Ua=Yr({},ka,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Ga=ya(Ua),$a=[9,13,27,32],Ka=_r&&"CompositionEvent"in window,Xa=null;_r&&"documentMode"in document&&(Xa=document.documentMode);var qa=_r&&"TextEvent"in window&&!Xa,Ya=_r&&(!Ka||Xa&&8<Xa&&11>=Xa),Qa=String.fromCharCode(32),Za=!1;function Ja(e,t){switch(e){case"keyup":return-1!==$a.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function es(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var ts=!1;var ns={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function rs(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!ns[e.type]:"textarea"===t}function os(e,t,n,r){Ho(r),0<(t=il(t,"onChange")).length&&(n=new _a("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var is=null,as=null;function ss(e){Qs(e,0)}function ls(e){if(ao(Ol(e)))return e}function cs(e,t){if("change"===e)return t}var us=!1;if(_r){var ds;if(_r){var fs="oninput"in document;if(!fs){var hs=document.createElement("div");hs.setAttribute("oninput","return;"),fs="function"==typeof hs.oninput}ds=fs}else ds=!1;us=ds&&(!document.documentMode||9<document.documentMode)}function ps(){is&&(is.detachEvent("onpropertychange",ms),as=is=null)}function ms(e){if("value"===e.propertyName&&ls(as)){var t=[];os(t,as,e,Ao(e)),Go(ss,t)}}function gs(e,t,n){"focusin"===e?(ps(),as=n,(is=t).attachEvent("onpropertychange",ms)):"focusout"===e&&ps()}function vs(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return ls(as)}function ys(e,t){if("click"===e)return ls(t)}function ws(e,t){if("input"===e||"change"===e)return ls(t)}var bs="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function Ss(e,t){if(bs(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!Cr.call(t,o)||!bs(e[o],t[o]))return!1}return!0}function xs(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function _s(e,t){var n,r=xs(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=xs(r)}}function Cs(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Cs(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Es(){for(var e=window,t=so();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=so((e=t.contentWindow).document)}return t}function ks(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function Ts(e){var t=Es(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Cs(n.ownerDocument.documentElement,n)){if(null!==r&&ks(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=_s(n,i);var a=_s(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Rs=_r&&"documentMode"in document&&11>=document.documentMode,Ps=null,Is=null,Ms=null,zs=!1;function Os(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;zs||null==Ps||Ps!==so(r)||("selectionStart"in(r=Ps)&&ks(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},Ms&&Ss(Ms,r)||(Ms=r,0<(r=il(Is,"onSelect")).length&&(t=new _a("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Ps)))}function Ls(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var As={animationend:Ls("Animation","AnimationEnd"),animationiteration:Ls("Animation","AnimationIteration"),animationstart:Ls("Animation","AnimationStart"),transitionend:Ls("Transition","TransitionEnd")},Ds={},Fs={};function Ns(e){if(Ds[e])return Ds[e];if(!As[e])return e;var t,n=As[e];for(t in n)if(n.hasOwnProperty(t)&&t in Fs)return Ds[e]=n[t];return e}_r&&(Fs=document.createElement("div").style,"AnimationEvent"in window||(delete As.animationend.animation,delete As.animationiteration.animation,delete As.animationstart.animation),"TransitionEvent"in window||delete As.transitionend.transition);var Bs=Ns("animationend"),Hs=Ns("animationiteration"),Vs=Ns("animationstart"),js=Ns("transitionend"),Ws=new Map,Us="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Gs(e,t){Ws.set(e,t),Sr(t,[e])}for(var $s=0;$s<Us.length;$s++){var Ks=Us[$s];Gs(Ks.toLowerCase(),"on"+(Ks[0].toUpperCase()+Ks.slice(1)))}Gs(Bs,"onAnimationEnd"),Gs(Hs,"onAnimationIteration"),Gs(Vs,"onAnimationStart"),Gs("dblclick","onDoubleClick"),Gs("focusin","onFocus"),Gs("focusout","onBlur"),Gs(js,"onTransitionEnd"),xr("onMouseEnter",["mouseout","mouseover"]),xr("onMouseLeave",["mouseout","mouseover"]),xr("onPointerEnter",["pointerout","pointerover"]),xr("onPointerLeave",["pointerout","pointerover"]),Sr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Sr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Sr("onBeforeInput",["compositionend","keypress","textInput","paste"]),Sr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Sr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Sr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Xs="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),qs=new Set("cancel close invalid load scroll toggle".split(" ").concat(Xs));function Ys(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,a,s,l){if(ti.apply(this,arguments),Yo){if(!Yo)throw Error(yr(198));var c=Qo;Yo=!1,Qo=null,Zo||(Zo=!0,Jo=c)}}(r,t,void 0,e),e.currentTarget=null}function Qs(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;Ys(o,s,c),i=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,c=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;Ys(o,s,c),i=l}}}if(Zo)throw e=Jo,Zo=!1,Jo=null,e}function Zs(e,t){var n=t[Rl];void 0===n&&(n=t[Rl]=new Set);var r=e+"__bubble";n.has(r)||(nl(t,e,2,!1),n.add(r))}function Js(e,t,n){var r=0;t&&(r|=4),nl(n,e,r,t)}var el="_reactListening"+Math.random().toString(36).slice(2);function tl(e){if(!e[el]){e[el]=!0,wr.forEach((function(t){"selectionchange"!==t&&(qs.has(t)||Js(t,!1,e),Js(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[el]||(t[el]=!0,Js("selectionchange",!1,t))}}function nl(e,t,n,r){switch(ua(t)){case 1:var o=ia;break;case 4:o=aa;break;default:o=sa}n=o.bind(null,t,n,e),o=void 0,!Ko||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function rl(e,t,n,r,o){var i=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;a=a.return}for(;null!==s;){if(null===(a=Ml(s)))return;if(5===(l=a.tag)||6===l){r=i=a;continue e}s=s.parentNode}}r=r.return}Go((function(){var r=i,o=Ao(n),a=[];e:{var s=Ws.get(e);if(void 0!==s){var l=_a,c=e;switch(e){case"keypress":if(0===ma(n))break e;case"keydown":case"keyup":l=Ha;break;case"focusin":c="focus",l=Pa;break;case"focusout":c="blur",l=Pa;break;case"beforeblur":case"afterblur":l=Pa;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=Ta;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=Ra;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=ja;break;case Bs:case Hs:case Vs:l=Ia;break;case js:l=Wa;break;case"scroll":l=Ea;break;case"wheel":l=Ga;break;case"copy":case"cut":case"paste":l=za;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Va}var u=0!=(4&t),d=!u&&"scroll"===e,f=u?null!==s?s+"Capture":null:s;u=[];for(var h,p=r;null!==p;){var m=(h=p).stateNode;if(5===h.tag&&null!==m&&(h=m,null!==f&&(null!=(m=$o(p,f))&&u.push(ol(p,m,h)))),d)break;p=p.return}0<u.length&&(s=new l(s,c,null,n,o),a.push({event:s,listeners:u}))}}if(0==(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===Lo||!(c=n.relatedTarget||n.fromElement)||!Ml(c)&&!c[Tl])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?Ml(c):null)&&(c!==(d=ni(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=Ta,m="onMouseLeave",f="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(u=Va,m="onPointerLeave",f="onPointerEnter",p="pointer"),d=null==l?s:Ol(l),h=null==c?s:Ol(c),(s=new u(m,p+"leave",l,n,o)).target=d,s.relatedTarget=h,m=null,Ml(o)===r&&((u=new u(f,p+"enter",c,n,o)).target=h,u.relatedTarget=d,m=u),d=m,l&&c)e:{for(f=c,p=0,h=u=l;h;h=al(h))p++;for(h=0,m=f;m;m=al(m))h++;for(;0<p-h;)u=al(u),p--;for(;0<h-p;)f=al(f),h--;for(;p--;){if(u===f||null!==f&&u===f.alternate)break e;u=al(u),f=al(f)}u=null}else u=null;null!==l&&sl(a,s,l,u,!1),null!==c&&null!==d&&sl(a,d,c,u,!0)}if("select"===(l=(s=r?Ol(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=cs;else if(rs(s))if(us)g=ws;else{g=vs;var v=gs}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=ys);switch(g&&(g=g(e,r))?os(a,g,n,o):(v&&v(e,s,r),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&po(s,"number",s.value)),v=r?Ol(r):window,e){case"focusin":(rs(v)||"true"===v.contentEditable)&&(Ps=v,Is=r,Ms=null);break;case"focusout":Ms=Is=Ps=null;break;case"mousedown":zs=!0;break;case"contextmenu":case"mouseup":case"dragend":zs=!1,Os(a,n,o);break;case"selectionchange":if(Rs)break;case"keydown":case"keyup":Os(a,n,o)}var y;if(Ka)e:{switch(e){case"compositionstart":var w="onCompositionStart";break e;case"compositionend":w="onCompositionEnd";break e;case"compositionupdate":w="onCompositionUpdate";break e}w=void 0}else ts?Ja(e,n)&&(w="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(w="onCompositionStart");w&&(Ya&&"ko"!==n.locale&&(ts||"onCompositionStart"!==w?"onCompositionEnd"===w&&ts&&(y=pa()):(fa="value"in(da=o)?da.value:da.textContent,ts=!0)),0<(v=il(r,w)).length&&(w=new Oa(w,e,null,n,o),a.push({event:w,listeners:v}),y?w.data=y:null!==(y=es(n))&&(w.data=y))),(y=qa?function(e,t){switch(e){case"compositionend":return es(t);case"keypress":return 32!==t.which?null:(Za=!0,Qa);case"textInput":return(e=t.data)===Qa&&Za?null:e;default:return null}}(e,n):function(e,t){if(ts)return"compositionend"===e||!Ka&&Ja(e,t)?(e=pa(),ha=fa=da=null,ts=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Ya&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=il(r,"onBeforeInput")).length&&(o=new Oa("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=y))}Qs(a,t)}))}function ol(e,t,n){return{instance:e,listener:t,currentTarget:n}}function il(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=$o(e,n))&&r.unshift(ol(e,i,o)),null!=(i=$o(e,t))&&r.push(ol(e,i,o))),e=e.return}return r}function al(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function sl(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,o?null!=(l=$o(n,i))&&a.unshift(ol(n,l,s)):o||null!=(l=$o(n,i))&&a.push(ol(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var ll=/\r\n?/g,cl=/\u0000|\uFFFD/g;function ul(e){return("string"==typeof e?e:""+e).replace(ll,"\n").replace(cl,"")}function dl(e,t,n){if(t=ul(t),ul(e)!==t&&n)throw Error(yr(425))}function fl(){}var hl=null,pl=null;function ml(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var gl="function"==typeof setTimeout?setTimeout:void 0,vl="function"==typeof clearTimeout?clearTimeout:void 0,yl="function"==typeof Promise?Promise:void 0,wl="function"==typeof queueMicrotask?queueMicrotask:void 0!==yl?function(e){return yl.resolve(null).then(e).catch(bl)}:gl;function bl(e){setTimeout((function(){throw e}))}function Sl(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void na(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);na(t)}function xl(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function _l(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Cl=Math.random().toString(36).slice(2),El="__reactFiber$"+Cl,kl="__reactProps$"+Cl,Tl="__reactContainer$"+Cl,Rl="__reactEvents$"+Cl,Pl="__reactListeners$"+Cl,Il="__reactHandles$"+Cl;function Ml(e){var t=e[El];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Tl]||n[El]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=_l(e);null!==e;){if(n=e[El])return n;e=_l(e)}return t}n=(e=n).parentNode}return null}function zl(e){return!(e=e[El]||e[Tl])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Ol(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(yr(33))}function Ll(e){return e[kl]||null}var Al=[],Dl=-1;function Fl(e){return{current:e}}function Nl(e){0>Dl||(e.current=Al[Dl],Al[Dl]=null,Dl--)}function Bl(e,t){Dl++,Al[Dl]=e.current,e.current=t}var Hl={},Vl=Fl(Hl),jl=Fl(!1),Wl=Hl;function Ul(e,t){var n=e.type.contextTypes;if(!n)return Hl;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Gl(e){return null!=(e=e.childContextTypes)}function $l(){Nl(jl),Nl(Vl)}function Kl(e,t,n){if(Vl.current!==Hl)throw Error(yr(168));Bl(Vl,t),Bl(jl,n)}function Xl(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(yr(108,no(e)||"Unknown",o));return Yr({},n,r)}function ql(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Hl,Wl=Vl.current,Bl(Vl,e),Bl(jl,jl.current),!0}function Yl(e,t,n){var r=e.stateNode;if(!r)throw Error(yr(169));n?(e=Xl(e,t,Wl),r.__reactInternalMemoizedMergedChildContext=e,Nl(jl),Nl(Vl),Bl(Vl,e)):Nl(jl),Bl(jl,n)}var Ql=null,Zl=!1,Jl=!1;function ec(e){null===Ql?Ql=[e]:Ql.push(e)}function tc(){if(!Jl&&null!==Ql){Jl=!0;var e=0,t=Oi;try{var n=Ql;for(Oi=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Ql=null,Zl=!1}catch(o){throw null!==Ql&&(Ql=Ql.slice(e+1)),si(hi,tc),o}finally{Oi=t,Jl=!1}}return null}var nc=[],rc=0,oc=null,ic=0,ac=[],sc=0,lc=null,cc=1,uc="";function dc(e,t){nc[rc++]=ic,nc[rc++]=oc,oc=e,ic=t}function fc(e,t,n){ac[sc++]=cc,ac[sc++]=uc,ac[sc++]=lc,lc=e;var r=cc;e=uc;var o=32-bi(r)-1;r&=~(1<<o),n+=1;var i=32-bi(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,cc=1<<32-bi(t)+o|n<<o|r,uc=i+e}else cc=1<<i|n<<o|r,uc=e}function hc(e){null!==e.return&&(dc(e,1),fc(e,1,0))}function pc(e){for(;e===oc;)oc=nc[--rc],nc[rc]=null,ic=nc[--rc],nc[rc]=null;for(;e===lc;)lc=ac[--sc],ac[sc]=null,uc=ac[--sc],ac[sc]=null,cc=ac[--sc],ac[sc]=null}var mc=null,gc=null,vc=!1,yc=null;function wc(e,t){var n=Gh(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function bc(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,mc=e,gc=xl(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,mc=e,gc=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==lc?{id:cc,overflow:uc}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Gh(18,null,null,0)).stateNode=t,n.return=e,e.child=n,mc=e,gc=null,!0);default:return!1}}function Sc(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function xc(e){if(vc){var t=gc;if(t){var n=t;if(!bc(e,t)){if(Sc(e))throw Error(yr(418));t=xl(n.nextSibling);var r=mc;t&&bc(e,t)?wc(r,n):(e.flags=-4097&e.flags|2,vc=!1,mc=e)}}else{if(Sc(e))throw Error(yr(418));e.flags=-4097&e.flags|2,vc=!1,mc=e}}}function _c(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;mc=e}function Cc(e){if(e!==mc)return!1;if(!vc)return _c(e),vc=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ml(e.type,e.memoizedProps)),t&&(t=gc)){if(Sc(e))throw Ec(),Error(yr(418));for(;t;)wc(e,t),t=xl(t.nextSibling)}if(_c(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(yr(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){gc=xl(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}gc=null}}else gc=mc?xl(e.stateNode.nextSibling):null;return!0}function Ec(){for(var e=gc;e;)e=xl(e.nextSibling)}function kc(){gc=mc=null,vc=!1}function Tc(e){null===yc?yc=[e]:yc.push(e)}var Rc=Or.ReactCurrentBatchConfig;function Pc(e,t){if(e&&e.defaultProps){for(var n in t=Yr({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Ic=Fl(null),Mc=null,zc=null,Oc=null;function Lc(){Oc=zc=Mc=null}function Ac(e){var t=Ic.current;Nl(Ic),e._currentValue=t}function Dc(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Fc(e,t){Mc=e,Oc=zc=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(zd=!0),e.firstContext=null)}function Nc(e){var t=e._currentValue;if(Oc!==e)if(e={context:e,memoizedValue:t,next:null},null===zc){if(null===Mc)throw Error(yr(308));zc=e,Mc.dependencies={lanes:0,firstContext:e}}else zc=zc.next=e;return t}var Bc=null;function Hc(e){null===Bc?Bc=[e]:Bc.push(e)}function Vc(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Hc(t)):(n.next=o.next,o.next=n),t.interleaved=n,jc(e,r)}function jc(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Wc=!1;function Uc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Gc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function $c(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Kc(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&jf)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,jc(e,n)}return null===(o=r.interleaved)?(t.next=t,Hc(r)):(t.next=o.next,o.next=t),r.interleaved=t,jc(e,n)}function Xc(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,zi(e,n)}}function qc(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Yc(e,t,n,r){var o=e.updateQueue;Wc=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,c=l.next;l.next=null,null===a?i=c:a.next=c,a=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==i){var d=o.baseState;for(a=0,u=c=l=null,s=i;;){var f=s.lane,h=s.eventTime;if((r&f)===f){null!==u&&(u=u.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,m=s;switch(f=t,h=n,m.tag){case 1:if("function"==typeof(p=m.payload)){d=p.call(h,d,f);break e}d=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null==(f="function"==typeof(p=m.payload)?p.call(h,d,f):p))break e;d=Yr({},d,f);break e;case 2:Wc=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[s]:f.push(s))}else h={eventTime:h,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=h,l=d):u=u.next=h,a|=f;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(f=s).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===u&&(l=d),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Yf|=a,e.lanes=a,e.memoizedState=d}}function Qc(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(yr(191,o));o.call(r)}}}var Zc=(new gr.Component).refs;function Jc(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:Yr({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var eu={isMounted:function(e){return!!(e=e._reactInternals)&&ni(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ph(),o=mh(e),i=$c(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=Kc(e,i,o))&&(gh(t,e,o,r),Xc(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ph(),o=mh(e),i=$c(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Kc(e,i,o))&&(gh(t,e,o,r),Xc(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ph(),r=mh(e),o=$c(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Kc(e,o,r))&&(gh(t,e,r,n),Xc(t,e,r))}};function tu(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!Ss(n,r)||!Ss(o,i))}function nu(e,t,n){var r=!1,o=Hl,i=t.contextType;return"object"==typeof i&&null!==i?i=Nc(i):(o=Gl(t)?Wl:Vl.current,i=(r=null!=(r=t.contextTypes))?Ul(e,o):Hl),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=eu,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function ru(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&eu.enqueueReplaceState(t,t.state,null)}function ou(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Zc,Uc(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Nc(i):(i=Gl(t)?Wl:Vl.current,o.context=Ul(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(Jc(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&eu.enqueueReplaceState(o,o.state,null),Yc(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function iu(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(yr(309));var r=n.stateNode}if(!r)throw Error(yr(147,e));var o=r,i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=o.refs;t===Zc&&(t=o.refs={}),null===e?delete t[i]:t[i]=e})._stringRef=i,t)}if("string"!=typeof e)throw Error(yr(284));if(!n._owner)throw Error(yr(290,e))}return e}function au(e,t){throw e=Object.prototype.toString.call(t),Error(yr(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function su(e){return(0,e._init)(e._payload)}function lu(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Kh(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function a(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Qh(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function l(e,t,n,r){var i=n.type;return i===Dr?u(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===Gr&&su(i)===t.type)?((r=o(t,n.props)).ref=iu(e,t,n),r.return=e,r):((r=Xh(n.type,n.key,n.props,null,e.mode,r)).ref=iu(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Zh(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function u(e,t,n,r,i){return null===t||7!==t.tag?((t=qh(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Qh(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case Lr:return(n=Xh(t.type,t.key,t.props,null,e.mode,n)).ref=iu(e,null,t),n.return=e,n;case Ar:return(t=Zh(t,e.mode,n)).return=e,t;case Gr:return d(e,(0,t._init)(t._payload),n)}if(mo(t)||Xr(t))return(t=qh(t,e.mode,n,null)).return=e,t;au(e,t)}return null}function f(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case Lr:return n.key===o?l(e,t,n,r):null;case Ar:return n.key===o?c(e,t,n,r):null;case Gr:return f(e,t,(o=n._init)(n._payload),r)}if(mo(n)||Xr(n))return null!==o?null:u(e,t,n,r,null);au(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case Lr:return l(t,e=e.get(null===r.key?n:r.key)||null,r,o);case Ar:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case Gr:return h(e,t,n,(0,r._init)(r._payload),o)}if(mo(r)||Xr(r))return u(t,e=e.get(n)||null,r,o,null);au(t,r)}return null}return function s(l,c,u,p){if("object"==typeof u&&null!==u&&u.type===Dr&&null===u.key&&(u=u.props.children),"object"==typeof u&&null!==u){switch(u.$$typeof){case Lr:e:{for(var m=u.key,g=c;null!==g;){if(g.key===m){if((m=u.type)===Dr){if(7===g.tag){n(l,g.sibling),(c=o(g,u.props.children)).return=l,l=c;break e}}else if(g.elementType===m||"object"==typeof m&&null!==m&&m.$$typeof===Gr&&su(m)===g.type){n(l,g.sibling),(c=o(g,u.props)).ref=iu(l,g,u),c.return=l,l=c;break e}n(l,g);break}t(l,g),g=g.sibling}u.type===Dr?((c=qh(u.props.children,l.mode,p,u.key)).return=l,l=c):((p=Xh(u.type,u.key,u.props,null,l.mode,p)).ref=iu(l,c,u),p.return=l,l=p)}return a(l);case Ar:e:{for(g=u.key;null!==c;){if(c.key===g){if(4===c.tag&&c.stateNode.containerInfo===u.containerInfo&&c.stateNode.implementation===u.implementation){n(l,c.sibling),(c=o(c,u.children||[])).return=l,l=c;break e}n(l,c);break}t(l,c),c=c.sibling}(c=Zh(u,l.mode,p)).return=l,l=c}return a(l);case Gr:return s(l,c,(g=u._init)(u._payload),p)}if(mo(u))return function(o,a,s,l){for(var c=null,u=null,p=a,m=a=0,g=null;null!==p&&m<s.length;m++){p.index>m?(g=p,p=null):g=p.sibling;var v=f(o,p,s[m],l);if(null===v){null===p&&(p=g);break}e&&p&&null===v.alternate&&t(o,p),a=i(v,a,m),null===u?c=v:u.sibling=v,u=v,p=g}if(m===s.length)return n(o,p),vc&&dc(o,m),c;if(null===p){for(;m<s.length;m++)null!==(p=d(o,s[m],l))&&(a=i(p,a,m),null===u?c=p:u.sibling=p,u=p);return vc&&dc(o,m),c}for(p=r(o,p);m<s.length;m++)null!==(g=h(p,o,m,s[m],l))&&(e&&null!==g.alternate&&p.delete(null===g.key?m:g.key),a=i(g,a,m),null===u?c=g:u.sibling=g,u=g);return e&&p.forEach((function(e){return t(o,e)})),vc&&dc(o,m),c}(l,c,u,p);if(Xr(u))return function(o,a,s,l){var c=Xr(s);if("function"!=typeof c)throw Error(yr(150));if(null==(s=c.call(s)))throw Error(yr(151));for(var u=c=null,p=a,m=a=0,g=null,v=s.next();null!==p&&!v.done;m++,v=s.next()){p.index>m?(g=p,p=null):g=p.sibling;var y=f(o,p,v.value,l);if(null===y){null===p&&(p=g);break}e&&p&&null===y.alternate&&t(o,p),a=i(y,a,m),null===u?c=y:u.sibling=y,u=y,p=g}if(v.done)return n(o,p),vc&&dc(o,m),c;if(null===p){for(;!v.done;m++,v=s.next())null!==(v=d(o,v.value,l))&&(a=i(v,a,m),null===u?c=v:u.sibling=v,u=v);return vc&&dc(o,m),c}for(p=r(o,p);!v.done;m++,v=s.next())null!==(v=h(p,o,m,v.value,l))&&(e&&null!==v.alternate&&p.delete(null===v.key?m:v.key),a=i(v,a,m),null===u?c=v:u.sibling=v,u=v);return e&&p.forEach((function(e){return t(o,e)})),vc&&dc(o,m),c}(l,c,u,p);au(l,u)}return"string"==typeof u&&""!==u||"number"==typeof u?(u=""+u,null!==c&&6===c.tag?(n(l,c.sibling),(c=o(c,u)).return=l,l=c):(n(l,c),(c=Qh(u,l.mode,p)).return=l,l=c),a(l)):n(l,c)}}var cu=lu(!0),uu=lu(!1),du={},fu=Fl(du),hu=Fl(du),pu=Fl(du);function mu(e){if(e===du)throw Error(yr(174));return e}function gu(e,t){switch(Bl(pu,t),Bl(hu,e),Bl(fu,du),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:xo(null,"");break;default:t=xo(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Nl(fu),Bl(fu,t)}function vu(){Nl(fu),Nl(hu),Nl(pu)}function yu(e){mu(pu.current);var t=mu(fu.current),n=xo(t,e.type);t!==n&&(Bl(hu,e),Bl(fu,n))}function wu(e){hu.current===e&&(Nl(fu),Nl(hu))}var bu=Fl(0);function Su(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var xu=[];function _u(){for(var e=0;e<xu.length;e++)xu[e]._workInProgressVersionPrimary=null;xu.length=0}var Cu=Or.ReactCurrentDispatcher,Eu=Or.ReactCurrentBatchConfig,ku=0,Tu=null,Ru=null,Pu=null,Iu=!1,Mu=!1,zu=0,Ou=0;function Lu(){throw Error(yr(321))}function Au(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!bs(e[n],t[n]))return!1;return!0}function Du(e,t,n,r,o,i){if(ku=i,Tu=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Cu.current=null===e||null===e.memoizedState?wd:bd,e=n(r,o),Mu){i=0;do{if(Mu=!1,zu=0,25<=i)throw Error(yr(301));i+=1,Pu=Ru=null,t.updateQueue=null,Cu.current=Sd,e=n(r,o)}while(Mu)}if(Cu.current=yd,t=null!==Ru&&null!==Ru.next,ku=0,Pu=Ru=Tu=null,Iu=!1,t)throw Error(yr(300));return e}function Fu(){var e=0!==zu;return zu=0,e}function Nu(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Pu?Tu.memoizedState=Pu=e:Pu=Pu.next=e,Pu}function Bu(){if(null===Ru){var e=Tu.alternate;e=null!==e?e.memoizedState:null}else e=Ru.next;var t=null===Pu?Tu.memoizedState:Pu.next;if(null!==t)Pu=t,Ru=e;else{if(null===e)throw Error(yr(310));e={memoizedState:(Ru=e).memoizedState,baseState:Ru.baseState,baseQueue:Ru.baseQueue,queue:Ru.queue,next:null},null===Pu?Tu.memoizedState=Pu=e:Pu=Pu.next=e}return Pu}function Hu(e,t){return"function"==typeof t?t(e):t}function Vu(e){var t=Bu(),n=t.queue;if(null===n)throw Error(yr(311));n.lastRenderedReducer=e;var r=Ru,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var a=o.next;o.next=i.next,i.next=a}r.baseQueue=o=i,n.pending=null}if(null!==o){i=o.next,r=r.baseState;var s=a=null,l=null,c=i;do{var u=c.lane;if((ku&u)===u)null!==l&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===l?(s=l=d,a=r):l=l.next=d,Tu.lanes|=u,Yf|=u}c=c.next}while(null!==c&&c!==i);null===l?a=r:l.next=s,bs(r,t.memoizedState)||(zd=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=l,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{i=o.lane,Tu.lanes|=i,Yf|=i,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function ju(e){var t=Bu(),n=t.queue;if(null===n)throw Error(yr(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var a=o=o.next;do{i=e(i,a.action),a=a.next}while(a!==o);bs(i,t.memoizedState)||(zd=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Wu(){}function Uu(e,t){var n=Tu,r=Bu(),o=t(),i=!bs(r.memoizedState,o);if(i&&(r.memoizedState=o,zd=!0),r=r.queue,nd(Ku.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||null!==Pu&&1&Pu.memoizedState.tag){if(n.flags|=2048,Qu(9,$u.bind(null,n,r,o,t),void 0,null),null===Wf)throw Error(yr(349));0!=(30&ku)||Gu(n,t,o)}return o}function Gu(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=Tu.updateQueue)?(t={lastEffect:null,stores:null},Tu.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function $u(e,t,n,r){t.value=n,t.getSnapshot=r,Xu(t)&&qu(e)}function Ku(e,t,n){return n((function(){Xu(t)&&qu(e)}))}function Xu(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!bs(e,n)}catch(r){return!0}}function qu(e){var t=jc(e,1);null!==t&&gh(t,e,1,-1)}function Yu(e){var t=Nu();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Hu,lastRenderedState:e},t.queue=e,e=e.dispatch=pd.bind(null,Tu,e),[t.memoizedState,e]}function Qu(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Tu.updateQueue)?(t={lastEffect:null,stores:null},Tu.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Zu(){return Bu().memoizedState}function Ju(e,t,n,r){var o=Nu();Tu.flags|=e,o.memoizedState=Qu(1|t,n,void 0,void 0===r?null:r)}function ed(e,t,n,r){var o=Bu();r=void 0===r?null:r;var i=void 0;if(null!==Ru){var a=Ru.memoizedState;if(i=a.destroy,null!==r&&Au(r,a.deps))return void(o.memoizedState=Qu(t,n,i,r))}Tu.flags|=e,o.memoizedState=Qu(1|t,n,i,r)}function td(e,t){return Ju(8390656,8,e,t)}function nd(e,t){return ed(2048,8,e,t)}function rd(e,t){return ed(4,2,e,t)}function od(e,t){return ed(4,4,e,t)}function id(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ad(e,t,n){return n=null!=n?n.concat([e]):null,ed(4,4,id.bind(null,t,e),n)}function sd(){}function ld(e,t){var n=Bu();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Au(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function cd(e,t){var n=Bu();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Au(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function ud(e,t,n){return 0==(21&ku)?(e.baseState&&(e.baseState=!1,zd=!0),e.memoizedState=n):(bs(n,t)||(n=Pi(),Tu.lanes|=n,Yf|=n,e.baseState=!0),t)}function dd(e,t){var n=Oi;Oi=0!==n&&4>n?n:4,e(!0);var r=Eu.transition;Eu.transition={};try{e(!1),t()}finally{Oi=n,Eu.transition=r}}function fd(){return Bu().memoizedState}function hd(e,t,n){var r=mh(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},md(e))gd(t,n);else if(null!==(n=Vc(e,t,n,r))){gh(n,e,r,ph()),vd(n,t,r)}}function pd(e,t,n){var r=mh(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(md(e))gd(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,bs(s,a)){var l=t.interleaved;return null===l?(o.next=o,Hc(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(c){}null!==(n=Vc(e,t,o,r))&&(gh(n,e,r,o=ph()),vd(n,t,r))}}function md(e){var t=e.alternate;return e===Tu||null!==t&&t===Tu}function gd(e,t){Mu=Iu=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function vd(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,zi(e,n)}}var yd={readContext:Nc,useCallback:Lu,useContext:Lu,useEffect:Lu,useImperativeHandle:Lu,useInsertionEffect:Lu,useLayoutEffect:Lu,useMemo:Lu,useReducer:Lu,useRef:Lu,useState:Lu,useDebugValue:Lu,useDeferredValue:Lu,useTransition:Lu,useMutableSource:Lu,useSyncExternalStore:Lu,useId:Lu,unstable_isNewReconciler:!1},wd={readContext:Nc,useCallback:function(e,t){return Nu().memoizedState=[e,void 0===t?null:t],e},useContext:Nc,useEffect:td,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ju(4194308,4,id.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ju(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ju(4,2,e,t)},useMemo:function(e,t){var n=Nu();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Nu();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=hd.bind(null,Tu,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Nu().memoizedState=e},useState:Yu,useDebugValue:sd,useDeferredValue:function(e){return Nu().memoizedState=e},useTransition:function(){var e=Yu(!1),t=e[0];return e=dd.bind(null,e[1]),Nu().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Tu,o=Nu();if(vc){if(void 0===n)throw Error(yr(407));n=n()}else{if(n=t(),null===Wf)throw Error(yr(349));0!=(30&ku)||Gu(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,td(Ku.bind(null,r,i,e),[e]),r.flags|=2048,Qu(9,$u.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Nu(),t=Wf.identifierPrefix;if(vc){var n=uc;t=":"+t+"R"+(n=(cc&~(1<<32-bi(cc)-1)).toString(32)+n),0<(n=zu++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=Ou++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},bd={readContext:Nc,useCallback:ld,useContext:Nc,useEffect:nd,useImperativeHandle:ad,useInsertionEffect:rd,useLayoutEffect:od,useMemo:cd,useReducer:Vu,useRef:Zu,useState:function(){return Vu(Hu)},useDebugValue:sd,useDeferredValue:function(e){return ud(Bu(),Ru.memoizedState,e)},useTransition:function(){return[Vu(Hu)[0],Bu().memoizedState]},useMutableSource:Wu,useSyncExternalStore:Uu,useId:fd,unstable_isNewReconciler:!1},Sd={readContext:Nc,useCallback:ld,useContext:Nc,useEffect:nd,useImperativeHandle:ad,useInsertionEffect:rd,useLayoutEffect:od,useMemo:cd,useReducer:ju,useRef:Zu,useState:function(){return ju(Hu)},useDebugValue:sd,useDeferredValue:function(e){var t=Bu();return null===Ru?t.memoizedState=e:ud(t,Ru.memoizedState,e)},useTransition:function(){return[ju(Hu)[0],Bu().memoizedState]},useMutableSource:Wu,useSyncExternalStore:Uu,useId:fd,unstable_isNewReconciler:!1};function xd(e,t){try{var n="",r=t;do{n+=eo(r),r=r.return}while(r);var o=n}catch(i){o="\nError generating stack: "+i.message+"\n"+i.stack}return{value:e,source:t,stack:o,digest:null}}function _d(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function Cd(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var Ed="function"==typeof WeakMap?WeakMap:Map;function kd(e,t,n){(n=$c(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){oh||(oh=!0,ih=r),Cd(0,t)},n}function Td(e,t,n){(n=$c(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Cd(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){Cd(0,t),"function"!=typeof r&&(null===ah?ah=new Set([this]):ah.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function Rd(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new Ed;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Bh.bind(null,e,t,n),t.then(e,e))}function Pd(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function Id(e,t,n,r,o){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=$c(-1,1)).tag=2,Kc(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var Md=Or.ReactCurrentOwner,zd=!1;function Od(e,t,n,r){t.child=null===e?uu(t,null,n,r):cu(t,e.child,n,r)}function Ld(e,t,n,r,o){n=n.render;var i=t.ref;return Fc(t,o),r=Du(e,t,n,r,i,o),n=Fu(),null===e||zd?(vc&&n&&hc(t),t.flags|=1,Od(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,rf(e,t,o))}function Ad(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||$h(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Xh(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Dd(e,t,i,r,o))}if(i=e.child,0==(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:Ss)(a,r)&&e.ref===t.ref)return rf(e,t,o)}return t.flags|=1,(e=Kh(i,r)).ref=t.ref,e.return=t,t.child=e}function Dd(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(Ss(i,r)&&e.ref===t.ref){if(zd=!1,t.pendingProps=r=i,0==(e.lanes&o))return t.lanes=e.lanes,rf(e,t,o);0!=(131072&e.flags)&&(zd=!0)}}return Bd(e,t,n,r,o)}function Fd(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Bl(Kf,$f),$f|=n;else{if(0==(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Bl(Kf,$f),$f|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Bl(Kf,$f),$f|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Bl(Kf,$f),$f|=r;return Od(e,t,o,n),t.child}function Nd(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Bd(e,t,n,r,o){var i=Gl(n)?Wl:Vl.current;return i=Ul(t,i),Fc(t,o),n=Du(e,t,n,r,i,o),r=Fu(),null===e||zd?(vc&&r&&hc(t),t.flags|=1,Od(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,rf(e,t,o))}function Hd(e,t,n,r,o){if(Gl(n)){var i=!0;ql(t)}else i=!1;if(Fc(t,o),null===t.stateNode)nf(e,t),nu(t,n,r),ou(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;"object"==typeof c&&null!==c?c=Nc(c):c=Ul(t,c=Gl(n)?Wl:Vl.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==c)&&ru(t,a,r,c),Wc=!1;var f=t.memoizedState;a.state=f,Yc(t,r,a,o),l=t.memoizedState,s!==r||f!==l||jl.current||Wc?("function"==typeof u&&(Jc(t,n,u,r),l=t.memoizedState),(s=Wc||tu(t,n,s,r,f,l,c))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Gc(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:Pc(t.type,s),a.props=c,d=t.pendingProps,f=a.context,"object"==typeof(l=n.contextType)&&null!==l?l=Nc(l):l=Ul(t,l=Gl(n)?Wl:Vl.current);var h=n.getDerivedStateFromProps;(u="function"==typeof h||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||f!==l)&&ru(t,a,r,l),Wc=!1,f=t.memoizedState,a.state=f,Yc(t,r,a,o);var p=t.memoizedState;s!==d||f!==p||jl.current||Wc?("function"==typeof h&&(Jc(t,n,h,r),p=t.memoizedState),(c=Wc||tu(t,n,c,r,f,p,l)||!1)?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=l,r=c):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Vd(e,t,n,r,i,o)}function Vd(e,t,n,r,o,i){Nd(e,t);var a=0!=(128&t.flags);if(!r&&!a)return o&&Yl(t,n,!1),rf(e,t,i);r=t.stateNode,Md.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=cu(t,e.child,null,i),t.child=cu(t,null,s,i)):Od(e,t,s,i),t.memoizedState=r.state,o&&Yl(t,n,!0),t.child}function jd(e){var t=e.stateNode;t.pendingContext?Kl(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Kl(0,t.context,!1),gu(e,t.containerInfo)}function Wd(e,t,n,r,o){return kc(),Tc(o),t.flags|=256,Od(e,t,n,r),t.child}var Ud,Gd,$d,Kd,Xd={dehydrated:null,treeContext:null,retryLane:0};function qd(e){return{baseLanes:e,cachePool:null,transitions:null}}function Yd(e,t,n){var r,o=t.pendingProps,i=bu.current,a=!1,s=0!=(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&0!=(2&i)),r?(a=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),Bl(bu,1&i),null===e)return xc(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(s=o.children,e=o.fallback,a?(o=t.mode,a=t.child,s={mode:"hidden",children:s},0==(1&o)&&null!==a?(a.childLanes=0,a.pendingProps=s):a=Yh(s,o,0,null),e=qh(e,o,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=qd(n),t.memoizedState=Xd,e):Qd(t,s));if(null!==(i=e.memoizedState)&&null!==(r=i.dehydrated))return function(e,t,n,r,o,i,a){if(n)return 256&t.flags?(t.flags&=-257,Zd(e,t,a,r=_d(Error(yr(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Yh({mode:"visible",children:r.children},o,0,null),(i=qh(i,o,a,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,0!=(1&t.mode)&&cu(t,e.child,null,a),t.child.memoizedState=qd(a),t.memoizedState=Xd,i);if(0==(1&t.mode))return Zd(e,t,a,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var s=r.dgst;return r=s,Zd(e,t,a,r=_d(i=Error(yr(419)),r,void 0))}if(s=0!=(a&e.childLanes),zd||s){if(null!==(r=Wf)){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!=(o&(r.suspendedLanes|a))?0:o)&&o!==i.retryLane&&(i.retryLane=o,jc(e,o),gh(r,e,o,-1))}return Ph(),Zd(e,t,a,r=_d(Error(yr(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Vh.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,gc=xl(o.nextSibling),mc=t,vc=!0,yc=null,null!==e&&(ac[sc++]=cc,ac[sc++]=uc,ac[sc++]=lc,cc=e.id,uc=e.overflow,lc=t),t=Qd(t,r.children),t.flags|=4096,t)}(e,t,s,o,r,i,n);if(a){a=o.fallback,s=t.mode,r=(i=e.child).sibling;var l={mode:"hidden",children:o.children};return 0==(1&s)&&t.child!==i?((o=t.child).childLanes=0,o.pendingProps=l,t.deletions=null):(o=Kh(i,l)).subtreeFlags=14680064&i.subtreeFlags,null!==r?a=Kh(r,a):(a=qh(a,s,n,null)).flags|=2,a.return=t,o.return=t,o.sibling=a,t.child=o,o=a,a=t.child,s=null===(s=e.child.memoizedState)?qd(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},a.memoizedState=s,a.childLanes=e.childLanes&~n,t.memoizedState=Xd,o}return e=(a=e.child).sibling,o=Kh(a,{mode:"visible",children:o.children}),0==(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Qd(e,t){return(t=Yh({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Zd(e,t,n,r){return null!==r&&Tc(r),cu(t,e.child,null,n),(e=Qd(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Jd(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Dc(e.return,t,n)}function ef(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function tf(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Od(e,t,r.children,n),0!=(2&(r=bu.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Jd(e,n,t);else if(19===e.tag)Jd(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Bl(bu,r),0==(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Su(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),ef(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Su(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}ef(t,!0,n,null,i);break;case"together":ef(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function nf(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function rf(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Yf|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(yr(153));if(null!==t.child){for(n=Kh(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Kh(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function of(e,t){if(!vc)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function af(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function sf(e,t,n){var r=t.pendingProps;switch(pc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return af(t),null;case 1:case 17:return Gl(t.type)&&$l(),af(t),null;case 3:return r=t.stateNode,vu(),Nl(jl),Nl(Vl),_u(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Cc(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==yc&&(bh(yc),yc=null))),Gd(e,t),af(t),null;case 5:wu(t);var o=mu(pu.current);if(n=t.type,null!==e&&null!=t.stateNode)$d(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(yr(166));return af(t),null}if(e=mu(fu.current),Cc(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[El]=t,r[kl]=i,e=0!=(1&t.mode),n){case"dialog":Zs("cancel",r),Zs("close",r);break;case"iframe":case"object":case"embed":Zs("load",r);break;case"video":case"audio":for(o=0;o<Xs.length;o++)Zs(Xs[o],r);break;case"source":Zs("error",r);break;case"img":case"image":case"link":Zs("error",r),Zs("load",r);break;case"details":Zs("toggle",r);break;case"input":co(r,i),Zs("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Zs("invalid",r);break;case"textarea":yo(r,i),Zs("invalid",r)}for(var a in zo(n,i),o=null,i)if(i.hasOwnProperty(a)){var s=i[a];"children"===a?"string"==typeof s?r.textContent!==s&&(!0!==i.suppressHydrationWarning&&dl(r.textContent,s,e),o=["children",s]):"number"==typeof s&&r.textContent!==""+s&&(!0!==i.suppressHydrationWarning&&dl(r.textContent,s,e),o=["children",""+s]):br.hasOwnProperty(a)&&null!=s&&"onScroll"===a&&Zs("scroll",r)}switch(n){case"input":io(r),ho(r,i,!0);break;case"textarea":io(r),bo(r);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(r.onclick=fl)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{a=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=So(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=a.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),"select"===n&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[El]=t,e[kl]=r,Ud(e,t,!1,!1),t.stateNode=e;e:{switch(a=Oo(n,r),n){case"dialog":Zs("cancel",e),Zs("close",e),o=r;break;case"iframe":case"object":case"embed":Zs("load",e),o=r;break;case"video":case"audio":for(o=0;o<Xs.length;o++)Zs(Xs[o],e);o=r;break;case"source":Zs("error",e),o=r;break;case"img":case"image":case"link":Zs("error",e),Zs("load",e),o=r;break;case"details":Zs("toggle",e),o=r;break;case"input":co(e,r),o=lo(e,r),Zs("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Yr({},r,{value:void 0}),Zs("invalid",e);break;case"textarea":yo(e,r),o=vo(e,r),Zs("invalid",e)}for(i in zo(n,o),s=o)if(s.hasOwnProperty(i)){var l=s[i];"style"===i?Io(e,l):"dangerouslySetInnerHTML"===i?null!=(l=l?l.__html:void 0)&&Eo(e,l):"children"===i?"string"==typeof l?("textarea"!==n||""!==l)&&ko(e,l):"number"==typeof l&&ko(e,""+l):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(br.hasOwnProperty(i)?null!=l&&"onScroll"===i&&Zs("scroll",e):null!=l&&zr(e,i,l,a))}switch(n){case"input":io(e),ho(e,r,!1);break;case"textarea":io(e),bo(e);break;case"option":null!=r.value&&e.setAttribute("value",""+ro(r.value));break;case"select":e.multiple=!!r.multiple,null!=(i=r.value)?go(e,!!r.multiple,i,!1):null!=r.defaultValue&&go(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=fl)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return af(t),null;case 6:if(e&&null!=t.stateNode)Kd(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(yr(166));if(n=mu(pu.current),mu(fu.current),Cc(t)){if(r=t.stateNode,n=t.memoizedProps,r[El]=t,(i=r.nodeValue!==n)&&null!==(e=mc))switch(e.tag){case 3:dl(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&dl(r.nodeValue,n,0!=(1&e.mode))}i&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[El]=t,t.stateNode=r}return af(t),null;case 13:if(Nl(bu),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(vc&&null!==gc&&0!=(1&t.mode)&&0==(128&t.flags))Ec(),kc(),t.flags|=98560,i=!1;else if(i=Cc(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(yr(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(yr(317));i[El]=t}else kc(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;af(t),i=!1}else null!==yc&&(bh(yc),yc=null),i=!0;if(!i)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&bu.current)?0===Xf&&(Xf=3):Ph())),null!==t.updateQueue&&(t.flags|=4),af(t),null);case 4:return vu(),Gd(e,t),null===e&&tl(t.stateNode.containerInfo),af(t),null;case 10:return Ac(t.type._context),af(t),null;case 19:if(Nl(bu),null===(i=t.memoizedState))return af(t),null;if(r=0!=(128&t.flags),null===(a=i.rendering))if(r)of(i,!1);else{if(0!==Xf||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(a=Su(e))){for(t.flags|=128,of(i,!1),null!==(r=a.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(i=n).flags&=14680066,null===(a=i.alternate)?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Bl(bu,1&bu.current|2),t.child}e=e.sibling}null!==i.tail&&di()>nh&&(t.flags|=128,r=!0,of(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=Su(a))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),of(i,!0),null===i.tail&&"hidden"===i.tailMode&&!a.alternate&&!vc)return af(t),null}else 2*di()-i.renderingStartTime>nh&&1073741824!==n&&(t.flags|=128,r=!0,of(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(null!==(n=i.last)?n.sibling=a:t.child=a,i.last=a)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=di(),t.sibling=null,n=bu.current,Bl(bu,r?1&n|2:1&n),t):(af(t),null);case 22:case 23:return Eh(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&$f)&&(af(t),6&t.subtreeFlags&&(t.flags|=8192)):af(t),null;case 24:case 25:return null}throw Error(yr(156,t.tag))}function lf(e,t){switch(pc(t),t.tag){case 1:return Gl(t.type)&&$l(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return vu(),Nl(jl),Nl(Vl),_u(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return wu(t),null;case 13:if(Nl(bu),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(yr(340));kc()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Nl(bu),null;case 4:return vu(),null;case 10:return Ac(t.type._context),null;case 22:case 23:return Eh(),null;default:return null}}Ud=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Gd=function(){},$d=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,mu(fu.current);var i,a=null;switch(n){case"input":o=lo(e,o),r=lo(e,r),a=[];break;case"select":o=Yr({},o,{value:void 0}),r=Yr({},r,{value:void 0}),a=[];break;case"textarea":o=vo(e,o),r=vo(e,r),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=fl)}for(c in zo(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var s=o[c];for(i in s)s.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(br.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var l=r[c];if(s=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&l!==s&&(null!=l||null!=s))if("style"===c)if(s){for(i in s)!s.hasOwnProperty(i)||l&&l.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in l)l.hasOwnProperty(i)&&s[i]!==l[i]&&(n||(n={}),n[i]=l[i])}else n||(a||(a=[]),a.push(c,n)),n=l;else"dangerouslySetInnerHTML"===c?(l=l?l.__html:void 0,s=s?s.__html:void 0,null!=l&&s!==l&&(a=a||[]).push(c,l)):"children"===c?"string"!=typeof l&&"number"!=typeof l||(a=a||[]).push(c,""+l):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(br.hasOwnProperty(c)?(null!=l&&"onScroll"===c&&Zs("scroll",e),a||s===l||(a=[])):(a=a||[]).push(c,l))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},Kd=function(e,t,n,r){n!==r&&(t.flags|=4)};var cf=!1,uf=!1,df="function"==typeof WeakSet?WeakSet:Set,ff=null;function hf(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(r){Nh(e,t,r)}else n.current=null}function pf(e,t,n){try{n()}catch(r){Nh(e,t,r)}}var mf=!1;function gf(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&pf(t,n,i)}o=o.next}while(o!==r)}}function vf(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function yf(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function wf(e){var t=e.alternate;null!==t&&(e.alternate=null,wf(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[El],delete t[kl],delete t[Rl],delete t[Pl],delete t[Il])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function bf(e){return 5===e.tag||3===e.tag||4===e.tag}function Sf(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||bf(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function xf(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=fl));else if(4!==r&&null!==(e=e.child))for(xf(e,t,n),e=e.sibling;null!==e;)xf(e,t,n),e=e.sibling}function _f(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(_f(e,t,n),e=e.sibling;null!==e;)_f(e,t,n),e=e.sibling}var Cf=null,Ef=!1;function kf(e,t,n){for(n=n.child;null!==n;)Tf(e,t,n),n=n.sibling}function Tf(e,t,n){if(wi&&"function"==typeof wi.onCommitFiberUnmount)try{wi.onCommitFiberUnmount(yi,n)}catch(s){}switch(n.tag){case 5:uf||hf(n,t);case 6:var r=Cf,o=Ef;Cf=null,kf(e,t,n),Ef=o,null!==(Cf=r)&&(Ef?(e=Cf,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):Cf.removeChild(n.stateNode));break;case 18:null!==Cf&&(Ef?(e=Cf,n=n.stateNode,8===e.nodeType?Sl(e.parentNode,n):1===e.nodeType&&Sl(e,n),na(e)):Sl(Cf,n.stateNode));break;case 4:r=Cf,o=Ef,Cf=n.stateNode.containerInfo,Ef=!0,kf(e,t,n),Cf=r,Ef=o;break;case 0:case 11:case 14:case 15:if(!uf&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(0!=(2&i)||0!=(4&i))&&pf(n,t,a),o=o.next}while(o!==r)}kf(e,t,n);break;case 1:if(!uf&&(hf(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Nh(n,t,s)}kf(e,t,n);break;case 21:kf(e,t,n);break;case 22:1&n.mode?(uf=(r=uf)||null!==n.memoizedState,kf(e,t,n),uf=r):kf(e,t,n);break;default:kf(e,t,n)}}function Rf(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new df),t.forEach((function(t){var r=jh.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Pf(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,a=t,s=a;e:for(;null!==s;){switch(s.tag){case 5:Cf=s.stateNode,Ef=!1;break e;case 3:case 4:Cf=s.stateNode.containerInfo,Ef=!0;break e}s=s.return}if(null===Cf)throw Error(yr(160));Tf(i,a,o),Cf=null,Ef=!1;var l=o.alternate;null!==l&&(l.return=null),o.return=null}catch(c){Nh(o,t,c)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)If(t,e),t=t.sibling}function If(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Pf(t,e),Mf(e),4&r){try{gf(3,e,e.return),vf(3,e)}catch(m){Nh(e,e.return,m)}try{gf(5,e,e.return)}catch(m){Nh(e,e.return,m)}}break;case 1:Pf(t,e),Mf(e),512&r&&null!==n&&hf(n,n.return);break;case 5:if(Pf(t,e),Mf(e),512&r&&null!==n&&hf(n,n.return),32&e.flags){var o=e.stateNode;try{ko(o,"")}catch(m){Nh(e,e.return,m)}}if(4&r&&null!=(o=e.stateNode)){var i=e.memoizedProps,a=null!==n?n.memoizedProps:i,s=e.type,l=e.updateQueue;if(e.updateQueue=null,null!==l)try{"input"===s&&"radio"===i.type&&null!=i.name&&uo(o,i),Oo(s,a);var c=Oo(s,i);for(a=0;a<l.length;a+=2){var u=l[a],d=l[a+1];"style"===u?Io(o,d):"dangerouslySetInnerHTML"===u?Eo(o,d):"children"===u?ko(o,d):zr(o,u,d,c)}switch(s){case"input":fo(o,i);break;case"textarea":wo(o,i);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var h=i.value;null!=h?go(o,!!i.multiple,h,!1):f!==!!i.multiple&&(null!=i.defaultValue?go(o,!!i.multiple,i.defaultValue,!0):go(o,!!i.multiple,i.multiple?[]:"",!1))}o[kl]=i}catch(m){Nh(e,e.return,m)}}break;case 6:if(Pf(t,e),Mf(e),4&r){if(null===e.stateNode)throw Error(yr(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(m){Nh(e,e.return,m)}}break;case 3:if(Pf(t,e),Mf(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{na(t.containerInfo)}catch(m){Nh(e,e.return,m)}break;case 4:default:Pf(t,e),Mf(e);break;case 13:Pf(t,e),Mf(e),8192&(o=e.child).flags&&(i=null!==o.memoizedState,o.stateNode.isHidden=i,!i||null!==o.alternate&&null!==o.alternate.memoizedState||(th=di())),4&r&&Rf(e);break;case 22:if(u=null!==n&&null!==n.memoizedState,1&e.mode?(uf=(c=uf)||u,Pf(t,e),uf=c):Pf(t,e),Mf(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!u&&0!=(1&e.mode))for(ff=e,u=e.child;null!==u;){for(d=ff=u;null!==ff;){switch(h=(f=ff).child,f.tag){case 0:case 11:case 14:case 15:gf(4,f,f.return);break;case 1:hf(f,f.return);var p=f.stateNode;if("function"==typeof p.componentWillUnmount){r=f,n=f.return;try{t=r,p.props=t.memoizedProps,p.state=t.memoizedState,p.componentWillUnmount()}catch(m){Nh(r,n,m)}}break;case 5:hf(f,f.return);break;case 22:if(null!==f.memoizedState){Af(d);continue}}null!==h?(h.return=f,ff=h):Af(d)}u=u.sibling}e:for(u=null,d=e;;){if(5===d.tag){if(null===u){u=d;try{o=d.stateNode,c?"function"==typeof(i=o.style).setProperty?i.setProperty("display","none","important"):i.display="none":(s=d.stateNode,a=null!=(l=d.memoizedProps.style)&&l.hasOwnProperty("display")?l.display:null,s.style.display=Po("display",a))}catch(m){Nh(e,e.return,m)}}}else if(6===d.tag){if(null===u)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(m){Nh(e,e.return,m)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Pf(t,e),Mf(e),4&r&&Rf(e);case 21:}}function Mf(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(bf(n)){var r=n;break e}n=n.return}throw Error(yr(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(ko(o,""),r.flags&=-33),_f(e,Sf(e),o);break;case 3:case 4:var i=r.stateNode.containerInfo;xf(e,Sf(e),i);break;default:throw Error(yr(161))}}catch(a){Nh(e,e.return,a)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function zf(e,t,n){ff=e,Of(e)}function Of(e,t,n){for(var r=0!=(1&e.mode);null!==ff;){var o=ff,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||cf;if(!a){var s=o.alternate,l=null!==s&&null!==s.memoizedState||uf;s=cf;var c=uf;if(cf=a,(uf=l)&&!c)for(ff=o;null!==ff;)l=(a=ff).child,22===a.tag&&null!==a.memoizedState?Df(o):null!==l?(l.return=a,ff=l):Df(o);for(;null!==i;)ff=i,Of(i),i=i.sibling;ff=o,cf=s,uf=c}Lf(e)}else 0!=(8772&o.subtreeFlags)&&null!==i?(i.return=o,ff=i):Lf(e)}}function Lf(e){for(;null!==ff;){var t=ff;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:uf||vf(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!uf)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Pc(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&Qc(t,i,r);break;case 3:var a=t.updateQueue;if(null!==a){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Qc(t,a,n)}break;case 5:var s=t.stateNode;if(null===n&&4&t.flags){n=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var u=c.memoizedState;if(null!==u){var d=u.dehydrated;null!==d&&na(d)}}}break;default:throw Error(yr(163))}uf||512&t.flags&&yf(t)}catch(f){Nh(t,t.return,f)}}if(t===e){ff=null;break}if(null!==(n=t.sibling)){n.return=t.return,ff=n;break}ff=t.return}}function Af(e){for(;null!==ff;){var t=ff;if(t===e){ff=null;break}var n=t.sibling;if(null!==n){n.return=t.return,ff=n;break}ff=t.return}}function Df(e){for(;null!==ff;){var t=ff;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{vf(4,t)}catch(l){Nh(t,n,l)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(l){Nh(t,o,l)}}var i=t.return;try{yf(t)}catch(l){Nh(t,i,l)}break;case 5:var a=t.return;try{yf(t)}catch(l){Nh(t,a,l)}}}catch(l){Nh(t,t.return,l)}if(t===e){ff=null;break}var s=t.sibling;if(null!==s){s.return=t.return,ff=s;break}ff=t.return}}var Ff,Nf=Math.ceil,Bf=Or.ReactCurrentDispatcher,Hf=Or.ReactCurrentOwner,Vf=Or.ReactCurrentBatchConfig,jf=0,Wf=null,Uf=null,Gf=0,$f=0,Kf=Fl(0),Xf=0,qf=null,Yf=0,Qf=0,Zf=0,Jf=null,eh=null,th=0,nh=1/0,rh=null,oh=!1,ih=null,ah=null,sh=!1,lh=null,ch=0,uh=0,dh=null,fh=-1,hh=0;function ph(){return 0!=(6&jf)?di():-1!==fh?fh:fh=di()}function mh(e){return 0==(1&e.mode)?1:0!=(2&jf)&&0!==Gf?Gf&-Gf:null!==Rc.transition?(0===hh&&(hh=Pi()),hh):0!==(e=Oi)?e:e=void 0===(e=window.event)?16:ua(e.type)}function gh(e,t,n,r){if(50<uh)throw uh=0,dh=null,Error(yr(185));Mi(e,n,r),0!=(2&jf)&&e===Wf||(e===Wf&&(0==(2&jf)&&(Qf|=n),4===Xf&&Sh(e,Gf)),vh(e,r),1===n&&0===jf&&0==(1&t.mode)&&(nh=di()+500,Zl&&tc()))}function vh(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-bi(i),s=1<<a,l=o[a];-1===l?0!=(s&n)&&0==(s&r)||(o[a]=Ti(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}(e,t);var r=ki(e,e===Wf?Gf:0);if(0===r)null!==n&&li(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&li(n),1===t)0===e.tag?function(e){Zl=!0,ec(e)}(xh.bind(null,e)):ec(xh.bind(null,e)),wl((function(){0==(6&jf)&&tc()})),n=null;else{switch(Li(r)){case 1:n=hi;break;case 4:n=pi;break;case 16:default:n=mi;break;case 536870912:n=vi}n=Wh(n,yh.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function yh(e,t){if(fh=-1,hh=0,0!=(6&jf))throw Error(yr(327));var n=e.callbackNode;if(Dh()&&e.callbackNode!==n)return null;var r=ki(e,e===Wf?Gf:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=Ih(e,r);else{t=r;var o=jf;jf|=2;var i=Rh();for(Wf===e&&Gf===t||(rh=null,nh=di()+500,kh(e,t));;)try{zh();break}catch(s){Th(e,s)}Lc(),Bf.current=i,jf=o,null!==Uf?t=0:(Wf=null,Gf=0,t=Xf)}if(0!==t){if(2===t&&(0!==(o=Ri(e))&&(r=o,t=wh(e,o))),1===t)throw n=qf,kh(e,0),Sh(e,r),vh(e,di()),n;if(6===t)Sh(e,r);else{if(o=e.current.alternate,0==(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!bs(i(),o))return!1}catch(a){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=Ih(e,r))&&(0!==(i=Ri(e))&&(r=i,t=wh(e,i))),1===t))throw n=qf,kh(e,0),Sh(e,r),vh(e,di()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(yr(345));case 2:case 5:Ah(e,eh,rh);break;case 3:if(Sh(e,r),(130023424&r)===r&&10<(t=th+500-di())){if(0!==ki(e,0))break;if(((o=e.suspendedLanes)&r)!==r){ph(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=gl(Ah.bind(null,e,eh,rh),t);break}Ah(e,eh,rh);break;case 4:if(Sh(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var a=31-bi(r);i=1<<a,(a=t[a])>o&&(o=a),r&=~i}if(r=o,10<(r=(120>(r=di()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Nf(r/1960))-r)){e.timeoutHandle=gl(Ah.bind(null,e,eh,rh),r);break}Ah(e,eh,rh);break;default:throw Error(yr(329))}}}return vh(e,di()),e.callbackNode===n?yh.bind(null,e):null}function wh(e,t){var n=Jf;return e.current.memoizedState.isDehydrated&&(kh(e,t).flags|=256),2!==(e=Ih(e,t))&&(t=eh,eh=n,null!==t&&bh(t)),e}function bh(e){null===eh?eh=e:eh.push.apply(eh,e)}function Sh(e,t){for(t&=~Zf,t&=~Qf,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-bi(t),r=1<<n;e[n]=-1,t&=~r}}function xh(e){if(0!=(6&jf))throw Error(yr(327));Dh();var t=ki(e,0);if(0==(1&t))return vh(e,di()),null;var n=Ih(e,t);if(0!==e.tag&&2===n){var r=Ri(e);0!==r&&(t=r,n=wh(e,r))}if(1===n)throw n=qf,kh(e,0),Sh(e,t),vh(e,di()),n;if(6===n)throw Error(yr(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ah(e,eh,rh),vh(e,di()),null}function _h(e,t){var n=jf;jf|=1;try{return e(t)}finally{0===(jf=n)&&(nh=di()+500,Zl&&tc())}}function Ch(e){null!==lh&&0===lh.tag&&0==(6&jf)&&Dh();var t=jf;jf|=1;var n=Vf.transition,r=Oi;try{if(Vf.transition=null,Oi=1,e)return e()}finally{Oi=r,Vf.transition=n,0==(6&(jf=t))&&tc()}}function Eh(){$f=Kf.current,Nl(Kf)}function kh(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,vl(n)),null!==Uf)for(n=Uf.return;null!==n;){var r=n;switch(pc(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&$l();break;case 3:vu(),Nl(jl),Nl(Vl),_u();break;case 5:wu(r);break;case 4:vu();break;case 13:case 19:Nl(bu);break;case 10:Ac(r.type._context);break;case 22:case 23:Eh()}n=n.return}if(Wf=e,Uf=e=Kh(e.current,null),Gf=$f=t,Xf=0,qf=null,Zf=Qf=Yf=0,eh=Jf=null,null!==Bc){for(t=0;t<Bc.length;t++)if(null!==(r=(n=Bc[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Bc=null}return e}function Th(e,t){for(;;){var n=Uf;try{if(Lc(),Cu.current=yd,Iu){for(var r=Tu.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}Iu=!1}if(ku=0,Pu=Ru=Tu=null,Mu=!1,zu=0,Hf.current=null,null===n||null===n.return){Xf=1,qf=t,Uf=null;break}e:{var i=e,a=n.return,s=n,l=t;if(t=Gf,s.flags|=32768,null!==l&&"object"==typeof l&&"function"==typeof l.then){var c=l,u=s,d=u.tag;if(0==(1&u.mode)&&(0===d||11===d||15===d)){var f=u.alternate;f?(u.updateQueue=f.updateQueue,u.memoizedState=f.memoizedState,u.lanes=f.lanes):(u.updateQueue=null,u.memoizedState=null)}var h=Pd(a);if(null!==h){h.flags&=-257,Id(h,a,s,0,t),1&h.mode&&Rd(i,c,t),l=c;var p=(t=h).updateQueue;if(null===p){var m=new Set;m.add(l),t.updateQueue=m}else p.add(l);break e}if(0==(1&t)){Rd(i,c,t),Ph();break e}l=Error(yr(426))}else if(vc&&1&s.mode){var g=Pd(a);if(null!==g){0==(65536&g.flags)&&(g.flags|=256),Id(g,a,s,0,t),Tc(xd(l,s));break e}}i=l=xd(l,s),4!==Xf&&(Xf=2),null===Jf?Jf=[i]:Jf.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,qc(i,kd(0,l,t));break e;case 1:s=l;var v=i.type,y=i.stateNode;if(0==(128&i.flags)&&("function"==typeof v.getDerivedStateFromError||null!==y&&"function"==typeof y.componentDidCatch&&(null===ah||!ah.has(y)))){i.flags|=65536,t&=-t,i.lanes|=t,qc(i,Td(i,s,t));break e}}i=i.return}while(null!==i)}Lh(n)}catch(w){t=w,Uf===n&&null!==n&&(Uf=n=n.return);continue}break}}function Rh(){var e=Bf.current;return Bf.current=yd,null===e?yd:e}function Ph(){0!==Xf&&3!==Xf&&2!==Xf||(Xf=4),null===Wf||0==(268435455&Yf)&&0==(268435455&Qf)||Sh(Wf,Gf)}function Ih(e,t){var n=jf;jf|=2;var r=Rh();for(Wf===e&&Gf===t||(rh=null,kh(e,t));;)try{Mh();break}catch(o){Th(e,o)}if(Lc(),jf=n,Bf.current=r,null!==Uf)throw Error(yr(261));return Wf=null,Gf=0,Xf}function Mh(){for(;null!==Uf;)Oh(Uf)}function zh(){for(;null!==Uf&&!ci();)Oh(Uf)}function Oh(e){var t=Ff(e.alternate,e,$f);e.memoizedProps=e.pendingProps,null===t?Lh(e):Uf=t,Hf.current=null}function Lh(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=sf(n,t,$f)))return void(Uf=n)}else{if(null!==(n=lf(n,t)))return n.flags&=32767,void(Uf=n);if(null===e)return Xf=6,void(Uf=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Uf=t);Uf=t=e}while(null!==t);0===Xf&&(Xf=5)}function Ah(e,t,n){var r=Oi,o=Vf.transition;try{Vf.transition=null,Oi=1,function(e,t,n,r){do{Dh()}while(null!==lh);if(0!=(6&jf))throw Error(yr(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(yr(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-bi(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,i),e===Wf&&(Uf=Wf=null,Gf=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||sh||(sh=!0,Wh(mi,(function(){return Dh(),null}))),i=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||i){i=Vf.transition,Vf.transition=null;var a=Oi;Oi=1;var s=jf;jf|=4,Hf.current=null,function(e,t){if(hl=oa,ks(e=Es())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(b){n=null;break e}var a=0,s=-1,l=-1,c=0,u=0,d=e,f=null;t:for(;;){for(var h;d!==n||0!==o&&3!==d.nodeType||(s=a+o),d!==i||0!==r&&3!==d.nodeType||(l=a+r),3===d.nodeType&&(a+=d.nodeValue.length),null!==(h=d.firstChild);)f=d,d=h;for(;;){if(d===e)break t;if(f===n&&++c===o&&(s=a),f===i&&++u===r&&(l=a),null!==(h=d.nextSibling))break;f=(d=f).parentNode}d=h}n=-1===s||-1===l?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(pl={focusedElem:e,selectionRange:n},oa=!1,ff=t;null!==ff;)if(e=(t=ff).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,ff=e;else for(;null!==ff;){t=ff;try{var p=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==p){var m=p.memoizedProps,g=p.memoizedState,v=t.stateNode,y=v.getSnapshotBeforeUpdate(t.elementType===t.type?m:Pc(t.type,m),g);v.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(yr(163))}}catch(b){Nh(t,t.return,b)}if(null!==(e=t.sibling)){e.return=t.return,ff=e;break}ff=t.return}p=mf,mf=!1}(e,n),If(n,e),Ts(pl),oa=!!hl,pl=hl=null,e.current=n,zf(n),ui(),jf=s,Oi=a,Vf.transition=i}else e.current=n;if(sh&&(sh=!1,lh=e,ch=o),i=e.pendingLanes,0===i&&(ah=null),function(e){if(wi&&"function"==typeof wi.onCommitFiberRoot)try{wi.onCommitFiberRoot(yi,e,void 0,128==(128&e.current.flags))}catch(t){}}(n.stateNode),vh(e,di()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(oh)throw oh=!1,e=ih,ih=null,e;0!=(1&ch)&&0!==e.tag&&Dh(),i=e.pendingLanes,0!=(1&i)?e===dh?uh++:(uh=0,dh=e):uh=0,tc()}(e,t,n,r)}finally{Vf.transition=o,Oi=r}return null}function Dh(){if(null!==lh){var e=Li(ch),t=Vf.transition,n=Oi;try{if(Vf.transition=null,Oi=16>e?16:e,null===lh)var r=!1;else{if(e=lh,lh=null,ch=0,0!=(6&jf))throw Error(yr(331));var o=jf;for(jf|=4,ff=e.current;null!==ff;){var i=ff,a=i.child;if(0!=(16&ff.flags)){var s=i.deletions;if(null!==s){for(var l=0;l<s.length;l++){var c=s[l];for(ff=c;null!==ff;){var u=ff;switch(u.tag){case 0:case 11:case 15:gf(8,u,i)}var d=u.child;if(null!==d)d.return=u,ff=d;else for(;null!==ff;){var f=(u=ff).sibling,h=u.return;if(wf(u),u===c){ff=null;break}if(null!==f){f.return=h,ff=f;break}ff=h}}}var p=i.alternate;if(null!==p){var m=p.child;if(null!==m){p.child=null;do{var g=m.sibling;m.sibling=null,m=g}while(null!==m)}}ff=i}}if(0!=(2064&i.subtreeFlags)&&null!==a)a.return=i,ff=a;else e:for(;null!==ff;){if(0!=(2048&(i=ff).flags))switch(i.tag){case 0:case 11:case 15:gf(9,i,i.return)}var v=i.sibling;if(null!==v){v.return=i.return,ff=v;break e}ff=i.return}}var y=e.current;for(ff=y;null!==ff;){var w=(a=ff).child;if(0!=(2064&a.subtreeFlags)&&null!==w)w.return=a,ff=w;else e:for(a=y;null!==ff;){if(0!=(2048&(s=ff).flags))try{switch(s.tag){case 0:case 11:case 15:vf(9,s)}}catch(S){Nh(s,s.return,S)}if(s===a){ff=null;break e}var b=s.sibling;if(null!==b){b.return=s.return,ff=b;break e}ff=s.return}}if(jf=o,tc(),wi&&"function"==typeof wi.onPostCommitFiberRoot)try{wi.onPostCommitFiberRoot(yi,e)}catch(S){}r=!0}return r}finally{Oi=n,Vf.transition=t}}return!1}function Fh(e,t,n){e=Kc(e,t=kd(0,t=xd(n,t),1),1),t=ph(),null!==e&&(Mi(e,1,t),vh(e,t))}function Nh(e,t,n){if(3===e.tag)Fh(e,e,n);else for(;null!==t;){if(3===t.tag){Fh(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===ah||!ah.has(r))){t=Kc(t,e=Td(t,e=xd(n,e),1),1),e=ph(),null!==t&&(Mi(t,1,e),vh(t,e));break}}t=t.return}}function Bh(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ph(),e.pingedLanes|=e.suspendedLanes&n,Wf===e&&(Gf&n)===n&&(4===Xf||3===Xf&&(130023424&Gf)===Gf&&500>di()-th?kh(e,0):Zf|=n),vh(e,t)}function Hh(e,t){0===t&&(0==(1&e.mode)?t=1:(t=Ci,0==(130023424&(Ci<<=1))&&(Ci=4194304)));var n=ph();null!==(e=jc(e,t))&&(Mi(e,t,n),vh(e,n))}function Vh(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Hh(e,n)}function jh(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(yr(314))}null!==r&&r.delete(t),Hh(e,n)}function Wh(e,t){return si(e,t)}function Uh(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Gh(e,t,n,r){return new Uh(e,t,n,r)}function $h(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Kh(e,t){var n=e.alternate;return null===n?((n=Gh(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Xh(e,t,n,r,o,i){var a=2;if(r=e,"function"==typeof e)$h(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case Dr:return qh(n.children,o,i,t);case Fr:a=8,o|=8;break;case Nr:return(e=Gh(12,n,t,2|o)).elementType=Nr,e.lanes=i,e;case jr:return(e=Gh(13,n,t,o)).elementType=jr,e.lanes=i,e;case Wr:return(e=Gh(19,n,t,o)).elementType=Wr,e.lanes=i,e;case $r:return Yh(n,o,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Br:a=10;break e;case Hr:a=9;break e;case Vr:a=11;break e;case Ur:a=14;break e;case Gr:a=16,r=null;break e}throw Error(yr(130,null==e?e:typeof e,""))}return(t=Gh(a,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function qh(e,t,n,r){return(e=Gh(7,e,r,t)).lanes=n,e}function Yh(e,t,n,r){return(e=Gh(22,e,r,t)).elementType=$r,e.lanes=n,e.stateNode={isHidden:!1},e}function Qh(e,t,n){return(e=Gh(6,e,null,t)).lanes=n,e}function Zh(e,t,n){return(t=Gh(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Jh(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ii(0),this.expirationTimes=Ii(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ii(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function ep(e,t,n,r,o,i,a,s,l){return e=new Jh(e,t,n,s,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Gh(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Uc(i),e}function tp(e){if(!e)return Hl;e:{if(ni(e=e._reactInternals)!==e||1!==e.tag)throw Error(yr(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Gl(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(yr(171))}if(1===e.tag){var n=e.type;if(Gl(n))return Xl(e,n,t)}return t}function np(e,t,n,r,o,i,a,s,l){return(e=ep(n,r,!0,e,0,i,0,s,l)).context=tp(null),n=e.current,(i=$c(r=ph(),o=mh(n))).callback=null!=t?t:null,Kc(n,i,o),e.current.lanes=o,Mi(e,o,r),vh(e,r),e}function rp(e,t,n,r){var o=t.current,i=ph(),a=mh(o);return n=tp(n),null===t.context?t.context=n:t.pendingContext=n,(t=$c(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Kc(o,t,a))&&(gh(e,o,a,i),Xc(e,o,a)),a}function op(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function ip(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function ap(e,t){ip(e,t),(e=e.alternate)&&ip(e,t)}Ff=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||jl.current)zd=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return zd=!1,function(e,t,n){switch(t.tag){case 3:jd(t),kc();break;case 5:yu(t);break;case 1:Gl(t.type)&&ql(t);break;case 4:gu(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Bl(Ic,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Bl(bu,1&bu.current),t.flags|=128,null):0!=(n&t.child.childLanes)?Yd(e,t,n):(Bl(bu,1&bu.current),null!==(e=rf(e,t,n))?e.sibling:null);Bl(bu,1&bu.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return tf(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Bl(bu,bu.current),r)break;return null;case 22:case 23:return t.lanes=0,Fd(e,t,n)}return rf(e,t,n)}(e,t,n);zd=0!=(131072&e.flags)}else zd=!1,vc&&0!=(1048576&t.flags)&&fc(t,ic,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;nf(e,t),e=t.pendingProps;var o=Ul(t,Vl.current);Fc(t,n),o=Du(null,t,r,e,o,n);var i=Fu();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Gl(r)?(i=!0,ql(t)):i=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Uc(t),o.updater=eu,t.stateNode=o,o._reactInternals=t,ou(t,r,e,n),t=Vd(null,t,r,!0,i,n)):(t.tag=0,vc&&i&&hc(t),Od(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(nf(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return $h(e)?1:0;if(null!=e){if((e=e.$$typeof)===Vr)return 11;if(e===Ur)return 14}return 2}(r),e=Pc(r,e),o){case 0:t=Bd(null,t,r,e,n);break e;case 1:t=Hd(null,t,r,e,n);break e;case 11:t=Ld(null,t,r,e,n);break e;case 14:t=Ad(null,t,r,Pc(r.type,e),n);break e}throw Error(yr(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Bd(e,t,r,o=t.elementType===r?o:Pc(r,o),n);case 1:return r=t.type,o=t.pendingProps,Hd(e,t,r,o=t.elementType===r?o:Pc(r,o),n);case 3:e:{if(jd(t),null===e)throw Error(yr(387));r=t.pendingProps,o=(i=t.memoizedState).element,Gc(e,t),Yc(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated){if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=Wd(e,t,r,n,o=xd(Error(yr(423)),t));break e}if(r!==o){t=Wd(e,t,r,n,o=xd(Error(yr(424)),t));break e}for(gc=xl(t.stateNode.containerInfo.firstChild),mc=t,vc=!0,yc=null,n=uu(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(kc(),r===o){t=rf(e,t,n);break e}Od(e,t,r,n)}t=t.child}return t;case 5:return yu(t),null===e&&xc(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,a=o.children,ml(r,o)?a=null:null!==i&&ml(r,i)&&(t.flags|=32),Nd(e,t),Od(e,t,a,n),t.child;case 6:return null===e&&xc(t),null;case 13:return Yd(e,t,n);case 4:return gu(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=cu(t,null,r,n):Od(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Ld(e,t,r,o=t.elementType===r?o:Pc(r,o),n);case 7:return Od(e,t,t.pendingProps,n),t.child;case 8:case 12:return Od(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,Bl(Ic,r._currentValue),r._currentValue=a,null!==i)if(bs(i.value,a)){if(i.children===o.children&&!jl.current){t=rf(e,t,n);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var s=i.dependencies;if(null!==s){a=i.child;for(var l=s.firstContext;null!==l;){if(l.context===r){if(1===i.tag){(l=$c(-1,n&-n)).tag=2;var c=i.updateQueue;if(null!==c){var u=(c=c.shared).pending;null===u?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}i.lanes|=n,null!==(l=i.alternate)&&(l.lanes|=n),Dc(i.return,n,t),s.lanes|=n;break}l=l.next}}else if(10===i.tag)a=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(a=i.return))throw Error(yr(341));a.lanes|=n,null!==(s=a.alternate)&&(s.lanes|=n),Dc(a,n,t),a=i.sibling}else a=i.child;if(null!==a)a.return=i;else for(a=i;null!==a;){if(a===t){a=null;break}if(null!==(i=a.sibling)){i.return=a.return,a=i;break}a=a.return}i=a}Od(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Fc(t,n),r=r(o=Nc(o)),t.flags|=1,Od(e,t,r,n),t.child;case 14:return o=Pc(r=t.type,t.pendingProps),Ad(e,t,r,o=Pc(r.type,o),n);case 15:return Dd(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Pc(r,o),nf(e,t),t.tag=1,Gl(r)?(e=!0,ql(t)):e=!1,Fc(t,n),nu(t,r,o),ou(t,r,o,n),Vd(null,t,r,!0,e,n);case 19:return tf(e,t,n);case 22:return Fd(e,t,n)}throw Error(yr(156,t.tag))};var sp="function"==typeof reportError?reportError:function(e){console.error(e)};function lp(e){this._internalRoot=e}function cp(e){this._internalRoot=e}function up(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function dp(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function fp(){}function hp(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"==typeof o){var s=o;o=function(){var e=op(a);s.call(e)}}rp(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=op(a);i.call(e)}}var a=np(t,r,e,0,null,!1,0,"",fp);return e._reactRootContainer=a,e[Tl]=a.current,tl(8===e.nodeType?e.parentNode:e),Ch(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var s=r;r=function(){var e=op(l);s.call(e)}}var l=ep(e,0,!1,null,0,!1,0,"",fp);return e._reactRootContainer=l,e[Tl]=l.current,tl(8===e.nodeType?e.parentNode:e),Ch((function(){rp(t,l,n,r)})),l}(n,t,e,o,r);return op(a)}cp.prototype.render=lp.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(yr(409));rp(e,t,null,null)},cp.prototype.unmount=lp.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;Ch((function(){rp(null,e,null,null)})),t[Tl]=null}},cp.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ni();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ki.length&&0!==t&&t<Ki[n].priority;n++);Ki.splice(n,0,e),0===n&&Qi(e)}},Ai=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Ei(t.pendingLanes);0!==n&&(zi(t,1|n),vh(t,di()),0==(6&jf)&&(nh=di()+500,tc()))}break;case 13:Ch((function(){var t=jc(e,1);if(null!==t){var n=ph();gh(t,e,1,n)}})),ap(e,1)}},Di=function(e){if(13===e.tag){var t=jc(e,134217728);if(null!==t)gh(t,e,134217728,ph());ap(e,134217728)}},Fi=function(e){if(13===e.tag){var t=mh(e),n=jc(e,t);if(null!==n)gh(n,e,t,ph());ap(e,t)}},Ni=function(){return Oi},Bi=function(e,t){var n=Oi;try{return Oi=e,t()}finally{Oi=n}},Do=function(e,t,n){switch(t){case"input":if(fo(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Ll(r);if(!o)throw Error(yr(90));ao(r),fo(r,o)}}}break;case"textarea":wo(e,n);break;case"select":null!=(t=n.value)&&go(e,!!n.multiple,t,!1)}},jo=_h,Wo=Ch;var pp={usingClientEntryPoint:!1,Events:[zl,Ol,Ll,Ho,Vo,_h]},mp={findFiberByHostInstance:Ml,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},gp={bundleType:mp.bundleType,version:mp.version,rendererPackageName:mp.rendererPackageName,rendererConfig:mp.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Or.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=ii(e))?null:e.stateNode},findFiberByHostInstance:mp.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var vp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!vp.isDisabled&&vp.supportsFiber)try{yi=vp.inject(gp),wi=vp}catch(Co){}}fr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=pp,fr.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!up(t))throw Error(yr(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Ar,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},fr.createRoot=function(e,t){if(!up(e))throw Error(yr(299));var n=!1,r="",o=sp;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=ep(e,1,!1,null,0,n,0,r,o),e[Tl]=t.current,tl(8===e.nodeType?e.parentNode:e),new lp(t)},fr.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(yr(188));throw e=Object.keys(e).join(","),Error(yr(268,e))}return e=null===(e=ii(t))?null:e.stateNode},fr.flushSync=function(e){return Ch(e)},fr.hydrate=function(e,t,n){if(!dp(t))throw Error(yr(200));return hp(null,e,t,!0,n)},fr.hydrateRoot=function(e,t,n){if(!up(e))throw Error(yr(405));var r=null!=n&&n.hydratedSources||null,o=!1,i="",a=sp;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError)),t=np(t,null,e,1,null!=n?n:null,o,0,i,a),e[Tl]=t.current,tl(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new cp(t)},fr.render=function(e,t,n){if(!dp(t))throw Error(yr(200));return hp(null,e,t,!1,n)},fr.unmountComponentAtNode=function(e){if(!dp(e))throw Error(yr(40));return!!e._reactRootContainer&&(Ch((function(){hp(null,null,e,!1,(function(){e._reactRootContainer=null,e[Tl]=null}))})),!0)},fr.unstable_batchedUpdates=_h,fr.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!dp(n))throw Error(yr(200));if(null==e||void 0===e._reactInternals)throw Error(yr(38));return hp(e,t,n,!1,r)},fr.version="18.2.0-next-9e3b772b8-20220608",function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),dr.exports=fr;var yp=dr.exports;const wp=l(yp),bp=U.forwardRef(((e,t)=>{const{children:n,...r}=e,o=U.Children.toArray(n),i=o.find(_p);if(i){const e=i.props.children,n=o.map((t=>t===i?U.Children.count(e)>1?U.Children.only(null):U.isValidElement(e)?e.props.children:null:t));return U.createElement(Sp,Jn({},r,{ref:t}),U.isValidElement(e)?U.cloneElement(e,void 0,n):null)}return U.createElement(Sp,Jn({},r,{ref:t}),n)}));bp.displayName="Slot";const Sp=U.forwardRef(((e,t)=>{const{children:n,...r}=e;return U.isValidElement(n)?U.cloneElement(n,{...Cp(r,n.props),ref:nr(t,n.ref)}):U.Children.count(n)>1?U.Children.only(null):null}));Sp.displayName="SlotClone";const xp=({children:e})=>U.createElement(U.Fragment,null,e);function _p(e){return U.isValidElement(e)&&e.type===xp}function Cp(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 Ep=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const n=U.forwardRef(((e,n)=>{const{asChild:r,...o}=e,i=r?bp:t;return U.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),U.createElement(i,Jn({},o,{ref:n}))}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function kp(e,t){e&&yp.flushSync((()=>e.dispatchEvent(t)))}const Tp="dismissableLayer.update",Rp="dismissableLayer.pointerDownOutside",Pp="dismissableLayer.focusOutside";let Ip;const Mp=U.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),zp=U.forwardRef(((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...c}=e,u=U.useContext(Mp),[d,f]=U.useState(null),h=null!==(n=null==d?void 0:d.ownerDocument)&&void 0!==n?n:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,p]=U.useState({}),m=rr(t,(e=>f(e))),g=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=g.indexOf(v),w=d?g.indexOf(d):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,S=w>=y,x=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=cr(e),r=U.useRef(!1),o=U.useRef((()=>{}));return U.useEffect((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){Lp(Rp,n,i,{discrete:!0})};const i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}r.current=!1},i=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}((e=>{const t=e.target,n=[...u.branches].some((e=>e.contains(t)));S&&!n&&(null==i||i(e),null==s||s(e),e.defaultPrevented||null==l||l())}),h),_=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=cr(e),r=U.useRef(!1);return U.useEffect((()=>{const e=e=>{if(e.target&&!r.current){Lp(Pp,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}((e=>{const t=e.target;[...u.branches].some((e=>e.contains(t)))||(null==a||a(e),null==s||s(e),e.defaultPrevented||null==l||l())}),h);return function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=cr(e);U.useEffect((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)}),[n,t])}((e=>{w===u.layers.size-1&&(null==o||o(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))}),h),U.useEffect((()=>{if(d)return r&&(0===u.layersWithOutsidePointerEventsDisabled.size&&(Ip=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Op(),()=>{r&&1===u.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=Ip)}}),[d,h,r,u]),U.useEffect((()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Op())}),[d,u]),U.useEffect((()=>{const e=()=>p({});return document.addEventListener(Tp,e),()=>document.removeEventListener(Tp,e)}),[]),U.createElement(Ep.div,Jn({},c,{ref:m,style:{pointerEvents:b?S?"auto":"none":void 0,...e.style},onFocusCapture:or(e.onFocusCapture,_.onFocusCapture),onBlurCapture:or(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:or(e.onPointerDownCapture,x.onPointerDownCapture)}))}));function Op(){const e=new CustomEvent(Tp);document.dispatchEvent(e)}function Lp(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?kp(o,i):o.dispatchEvent(i)}const Ap=zp,Dp=U.forwardRef(((e,t)=>{const n=U.useContext(Mp),r=U.useRef(null),o=rr(t,r);return U.useEffect((()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),U.createElement(Ep.div,Jn({},e,{ref:o}))})),Fp="focusScope.autoFocusOnMount",Np="focusScope.autoFocusOnUnmount",Bp={bubbles:!1,cancelable:!0},Hp=U.forwardRef(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[s,l]=U.useState(null),c=cr(o),u=cr(i),d=U.useRef(null),f=rr(t,(e=>l(e))),h=U.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;U.useEffect((()=>{if(r){let e=function(e){if(h.paused||!s)return;const t=e.target;s.contains(t)?d.current=t:Up(d.current,{select:!0})},t=function(e){!h.paused&&s&&(s.contains(e.relatedTarget)||Up(d.current,{select:!0}))};return document.addEventListener("focusin",e),document.addEventListener("focusout",t),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t)}}}),[r,s,h.paused]),U.useEffect((()=>{if(s){Gp.add(h);const t=document.activeElement;if(!s.contains(t)){const n=new CustomEvent(Fp,Bp);s.addEventListener(Fp,c),s.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Up(r,{select:t}),document.activeElement!==n)return}((e=Vp(s),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&Up(s))}return()=>{s.removeEventListener(Fp,c),setTimeout((()=>{const e=new CustomEvent(Np,Bp);s.addEventListener(Np,u),s.dispatchEvent(e),e.defaultPrevented||Up(null!=t?t:document.body,{select:!0}),s.removeEventListener(Np,u),Gp.remove(h)}),0)}}var e}),[s,c,u,h]);const p=U.useCallback((e=>{if(!n&&!r)return;if(h.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[r,i]=function(e){const t=Vp(e),n=jp(t,e),r=jp(t.reverse(),e);return[n,r]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&Up(i,{select:!0})):(e.preventDefault(),n&&Up(r,{select:!0})):o===t&&e.preventDefault()}}),[n,r,h.paused]);return U.createElement(Ep.div,Jn({tabIndex:-1},a,{ref:f,onKeyDown:p}))}));function Vp(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 jp(e,t){for(const n of e)if(!Wp(n,{upTo:t}))return n}function Wp(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 Up(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 Gp=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=$p(e,t),e.unshift(t)},remove(t){var n;e=$p(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function $p(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}const Kp=U.forwardRef(((e,t)=>{var n;const{container:r=(null===globalThis||void 0===globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body),...o}=e;return r?wp.createPortal(U.createElement(Ep.div,Jn({},o,{ref:t})),r):null}));const Xp=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=U.useState(),r=U.useRef({}),o=U.useRef(e),i=U.useRef("none"),a=e?"mounted":"unmounted",[s,l]=function(e,t){return U.useReducer(((e,n)=>{const r=t[e][n];return null!=r?r:e}),e)}(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return U.useEffect((()=>{const e=qp(r.current);i.current="mounted"===s?e:"none"}),[s]),ir((()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,a=qp(t);if(e)l("MOUNT");else if("none"===a||"none"===(null==t?void 0:t.display))l("UNMOUNT");else{l(n&&r!==a?"ANIMATION_OUT":"UNMOUNT")}o.current=e}}),[e,l]),ir((()=>{if(t){const e=e=>{const n=qp(r.current).includes(e.animationName);e.target===t&&n&&yp.flushSync((()=>l("ANIMATION_END")))},n=e=>{e.target===t&&(i.current=qp(r.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}l("ANIMATION_END")}),[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:U.useCallback((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}(t),o="function"==typeof n?n({present:r.isPresent}):U.Children.only(n),i=rr(r.ref,o.ref);return"function"==typeof n||r.isPresent?U.cloneElement(o,{ref:i}):null};function qp(e){return(null==e?void 0:e.animationName)||"none"}Xp.displayName="Presence";let Yp=0;function Qp(){U.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:Zp()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:Zp()),Yp++,()=>{1===Yp&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),Yp--}}),[])}function Zp(){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 Jp=function(){return Jp=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},Jp.apply(this,arguments)};function em(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 tm="right-scroll-bar-position",nm="width-before-scroll-bar";function rm(e,t){return n=t||null,r=function(t){return e.forEach((function(e){return function(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}(e,t)}))},o=U.useState((function(){return{value:n,callback:r,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}}))[0],o.callback=r,o.facade;var n,r,o}function om(e){return e}var im=function(e){var t=e.sideCar,n=em(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return U.createElement(r,Jp({},n))};im.isSideCarExport=!0;var am=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=om);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)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}}}(null);return t.options=Jp({async:!0,ssr:!1},e),t}(),sm=function(){},lm=U.forwardRef((function(e,t){var n=U.useRef(null),r=U.useState({onScrollCapture:sm,onWheelCapture:sm,onTouchMoveCapture:sm}),o=r[0],i=r[1],a=e.forwardProps,s=e.children,l=e.className,c=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,h=e.noIsolation,p=e.inert,m=e.allowPinchZoom,g=e.as,v=void 0===g?"div":g,y=em(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),w=f,b=rm([n,t]),S=Jp(Jp({},y),o);return U.createElement(U.Fragment,null,u&&U.createElement(w,{sideCar:am,removeScrollBar:c,shards:d,noIsolation:h,inert:p,setCallbacks:i,allowPinchZoom:!!m,lockRef:n}),a?U.cloneElement(U.Children.only(s),Jp(Jp({},S),{ref:b})):U.createElement(v,Jp({},S,{className:l,ref:b}),s))}));lm.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},lm.classNames={fullWidth:nm,zeroRight:tm};function cm(){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 um=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=cm())&&(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)}}},dm=function(){var e,t=(e=um(),function(t,n){U.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}},fm={left:0,top:0,right:0,gap:0},hm=function(e){return parseInt(e||"",10)||0},pm=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return fm;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[hm(n),hm(r),hm(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])}},mm=dm(),gm=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(tm," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(nm," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(tm," .").concat(tm," {\n right: 0 ").concat(r,";\n }\n \n .").concat(nm," .").concat(nm," {\n margin-right: 0 ").concat(r,";\n }\n \n body {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},vm=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r,i=U.useMemo((function(){return pm(o)}),[o]);return U.createElement(mm,{styles:gm(i,!t,o,n?"":"!important")})},ym=!1;if("undefined"!=typeof window)try{var wm=Object.defineProperty({},"passive",{get:function(){return ym=!0,!0}});window.addEventListener("test",wm,wm),window.removeEventListener("test",wm,wm)}catch(zD){ym=!1}var bm=!!ym&&{passive:!1},Sm=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])},xm=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),_m(e,n)){var r=Cm(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},_m=function(e,t){return"v"===e?function(e){return Sm(e,"overflowY")}(t):function(e){return Sm(e,"overflowX")}(t)},Cm=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},Em=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},km=function(e){return[e.deltaX,e.deltaY]},Tm=function(e){return e&&"current"in e?e.current:e},Rm=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Pm=0,Im=[];const Mm=(zm=function(e){var t=U.useRef([]),n=U.useRef([0,0]),r=U.useRef(),o=U.useState(Pm++)[0],i=U.useState((function(){return dm()}))[0],a=U.useRef(e);U.useEffect((function(){a.current=e}),[e]),U.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([e.lockRef.current],(e.shards||[]).map(Tm),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(o))})),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(o))}))}}}),[e.inert,e.lockRef.current,e.shards]);var s=U.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!a.current.allowPinchZoom;var o,i=Em(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-i[0],c="deltaY"in e?e.deltaY:s[1]-i[1],u=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var f=xm(d,u);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=xm(d,u)),!f)return!1;if(!r.current&&"changedTouches"in e&&(l||c)&&(r.current=o),!o)return!0;var h=r.current||o;return function(e,t,n,r,o){var i=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=i*r,s=n.target,l=t.contains(s),c=!1,u=a>0,d=0,f=0;do{var h=Cm(e,s),p=h[0],m=h[1]-h[2]-i*p;(p||m)&&_m(e,s)&&(d+=m,f+=p),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(u&&(o&&0===d||!o&&a>d)||!u&&(o&&0===f||!o&&-a>f))&&(c=!0),c}(h,t,e,"h"===h?l:c,!0)}),[]),l=U.useCallback((function(e){var n=e;if(Im.length&&Im[Im.length-1]===i){var r="deltaY"in n?km(n):Em(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 l=(a.current.shards||[]).map(Tm).filter(Boolean).filter((function(e){return e.contains(n.target)}));(l.length>0?s(n,l[0]):!a.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),c=U.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)}),[]),u=U.useCallback((function(e){n.current=Em(e),r.current=void 0}),[]),d=U.useCallback((function(t){c(t.type,km(t),t.target,s(t,e.lockRef.current))}),[]),f=U.useCallback((function(t){c(t.type,Em(t),t.target,s(t,e.lockRef.current))}),[]);U.useEffect((function(){return Im.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,bm),document.addEventListener("touchmove",l,bm),document.addEventListener("touchstart",u,bm),function(){Im=Im.filter((function(e){return e!==i})),document.removeEventListener("wheel",l,bm),document.removeEventListener("touchmove",l,bm),document.removeEventListener("touchstart",u,bm)}}),[]);var h=e.removeScrollBar,p=e.inert;return U.createElement(U.Fragment,null,p?U.createElement(i,{styles:Rm(o)}):null,h?U.createElement(vm,{gapMode:"margin"}):null)},am.useMedium(zm),im);var zm,Om=U.forwardRef((function(e,t){return U.createElement(lm,Jp({},e,{ref:t,sideCar:Mm}))}));Om.classNames=lm.classNames;const Lm=Om;var Am=new WeakMap,Dm=new WeakMap,Fm={},Nm=0,Bm=function(e){return e&&(e.host||Bm(e.parentNode))},Hm=function(e,t,n,r){var o=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=Bm(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]);Fm[n]||(Fm[n]=new WeakMap);var i=Fm[n],a=[],s=new Set,l=new Set(o),c=function(e){e&&!s.has(e)&&(s.add(e),c(e.parentNode))};o.forEach(c);var u=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(s.has(e))u(e);else{var t=e.getAttribute(r),o=null!==t&&"false"!==t,l=(Am.get(e)||0)+1,c=(i.get(e)||0)+1;Am.set(e,l),i.set(e,c),a.push(e),1===l&&o&&Dm.set(e,!0),1===c&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}}))};return u(t),s.clear(),Nm++,function(){a.forEach((function(e){var t=Am.get(e)-1,o=i.get(e)-1;Am.set(e,t),i.set(e,o),t||(Dm.has(e)||e.removeAttribute(r),Dm.delete(e)),o||e.removeAttribute(n)})),--Nm||(Am=new WeakMap,Am=new WeakMap,Dm=new WeakMap,Fm={})}},Vm=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]"))),Hm(r,o,n,"aria-hidden")):function(){return null}};const jm="Dialog",[Wm,Um]=er(jm),[Gm,$m]=Wm(jm),Km="DialogPortal",[Xm,qm]=Wm(Km,{forceMount:void 0}),Ym="DialogOverlay",Qm=U.forwardRef(((e,t)=>{const n=qm(Ym,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=$m(Ym,e.__scopeDialog);return i.modal?U.createElement(Xp,{present:r||i.open},U.createElement(Zm,Jn({},o,{ref:t}))):null})),Zm=U.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=$m(Ym,n);return U.createElement(Lm,{as:bp,allowPinchZoom:!0,shards:[o.contentRef]},U.createElement(Ep.div,Jn({"data-state":lg(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))})),Jm="DialogContent",eg=U.forwardRef(((e,t)=>{const n=qm(Jm,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=$m(Jm,e.__scopeDialog);return U.createElement(Xp,{present:r||i.open},i.modal?U.createElement(tg,Jn({},o,{ref:t})):U.createElement(ng,Jn({},o,{ref:t})))})),tg=U.forwardRef(((e,t)=>{const n=$m(Jm,e.__scopeDialog),r=U.useRef(null),o=rr(t,n.contentRef,r);return U.useEffect((()=>{const e=r.current;if(e)return Vm(e)}),[]),U.createElement(rg,Jn({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:or(e.onCloseAutoFocus,(e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()})),onPointerDownOutside:or(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:or(e.onFocusOutside,(e=>e.preventDefault()))}))})),ng=U.forwardRef(((e,t)=>{const n=$m(Jm,e.__scopeDialog),r=U.useRef(!1);return U.createElement(rg,Jn({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var o,i;(null===(o=e.onCloseAutoFocus)||void 0===o||o.call(e,t),t.defaultPrevented)||(r.current||null===(i=n.triggerRef.current)||void 0===i||i.focus(),t.preventDefault());r.current=!1},onInteractOutside:t=>{var o,i;null===(o=e.onInteractOutside)||void 0===o||o.call(e,t),t.defaultPrevented||(r.current=!0);const a=t.target;(null===(i=n.triggerRef.current)||void 0===i?void 0:i.contains(a))&&t.preventDefault()}}))})),rg=U.forwardRef(((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,s=$m(Jm,n),l=rr(t,U.useRef(null));return Qp(),U.createElement(U.Fragment,null,U.createElement(Hp,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},U.createElement(zp,Jn({role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":lg(s.open)},a,{ref:l,onDismiss:()=>s.onOpenChange(!1)}))),!1)})),og="DialogTitle",ig=U.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=$m(og,n);return U.createElement(Ep.h2,Jn({id:o.titleId},r,{ref:t}))})),ag=U.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=$m("DialogDescription",n);return U.createElement(Ep.p,Jn({id:o.descriptionId},r,{ref:t}))})),sg=U.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=$m("DialogClose",n);return U.createElement(Ep.button,Jn({type:"button"},r,{ref:t,onClick:or(e.onClick,(()=>o.onOpenChange(!1)))}))}));function lg(e){return e?"open":"closed"}const[cg,ug]=function(e,t){const n=U.createContext(t);function r(e){const{children:t,...r}=e,o=U.useMemo((()=>r),Object.values(r));return U.createElement(n.Provider,{value:o},t)}return r.displayName=e+"Provider",[r,function(r){const o=U.useContext(n);if(o)return o;if(void 0!==t)return t;throw new Error(`\`${r}\` must be used within \`${e}\``)}]}("DialogTitleWarning",{contentName:Jm,titleName:og,docsSlug:"dialog"}),dg=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,s=U.useRef(null),l=U.useRef(null),[c=!1,u]=ur({prop:r,defaultProp:o,onChange:i});return U.createElement(Gm,{scope:t,triggerRef:s,contentRef:l,contentId:lr(),titleId:lr(),descriptionId:lr(),open:c,onOpenChange:u,onOpenToggle:U.useCallback((()=>u((e=>!e))),[u]),modal:a},n)},fg=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=$m(Km,t);return U.createElement(Xm,{scope:t,forceMount:n},U.Children.map(r,(e=>U.createElement(Xp,{present:n||i.open},U.createElement(Kp,{asChild:!0,container:o},e)))))},hg=Qm,pg=eg,mg=ig,gg=ag,vg=sg,[yg,wg]=er("AlertDialog",[Um]),bg=Um(),Sg=U.forwardRef(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=bg(n);return U.createElement(hg,Jn({},o,r,{ref:t}))})),xg="AlertDialogContent",[_g,Cg]=yg(xg),Eg=U.forwardRef(((e,t)=>{const{__scopeAlertDialog:n,children:r,...o}=e,i=bg(n),a=rr(t,U.useRef(null)),s=U.useRef(null);return U.createElement(cg,{contentName:xg,titleName:kg,docsSlug:"alert-dialog"},U.createElement(_g,{scope:n,cancelRef:s},U.createElement(pg,Jn({role:"alertdialog"},i,o,{ref:a,onOpenAutoFocus:or(o.onOpenAutoFocus,(e=>{var t;e.preventDefault(),null===(t=s.current)||void 0===t||t.focus({preventScroll:!0})})),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault()}),U.createElement(xp,null,r),!1)))})),kg="AlertDialogTitle",Tg=U.forwardRef(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=bg(n);return U.createElement(mg,Jn({},o,r,{ref:t}))})),Rg=U.forwardRef(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=bg(n);return U.createElement(gg,Jn({},o,r,{ref:t}))})),Pg=e=>{const{__scopeAlertDialog:t,...n}=e,r=bg(t);return U.createElement(dg,Jn({},r,n,{modal:!0}))},Ig=e=>{const{__scopeAlertDialog:t,...n}=e,r=bg(t);return U.createElement(fg,Jn({},r,n))},Mg=Sg,zg=Eg,Og=U.forwardRef(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=bg(n);return U.createElement(vg,Jn({},o,r,{ref:t}))})),Lg=U.forwardRef(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=Cg("AlertDialogCancel",n),i=bg(n),a=rr(t,o);return U.createElement(vg,Jn({},i,r,{ref:a}))})),Ag=Tg,Dg=Rg;var Fg={},Ng=yp;function Bg(e){const t=e+"CollectionProvider",[n,r]=er(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e+"CollectionSlot",s=e+"CollectionItemSlot",l="data-radix-collection-item";return[{Provider:e=>{const{scope:t,children:n}=e,r=G.useRef(null),i=G.useRef(new Map).current;return G.createElement(o,{scope:t,itemMap:i,collectionRef:r},n)},Slot:G.forwardRef(((e,t)=>{const{scope:n,children:r}=e,o=rr(t,i(a,n).collectionRef);return G.createElement(bp,{ref:o},r)})),ItemSlot:G.forwardRef(((e,t)=>{const{scope:n,children:r,...o}=e,a=G.useRef(null),c=rr(t,a),u=i(s,n);return G.useEffect((()=>(u.itemMap.set(a,{ref:a,...o}),()=>{u.itemMap.delete(a)}))),G.createElement(bp,{[l]:"",ref:c},r)}))},function(t){const n=i(e+"CollectionConsumer",t),r=G.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${l}]`)),r=Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)));return r}),[n.collectionRef,n.itemMap]);return r},r]}Fg.createRoot=Ng.createRoot,Fg.hydrateRoot=Ng.hydrateRoot;const Hg=U.forwardRef(((e,t)=>U.createElement(Ep.span,Jn({},e,{ref:t,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",...e.style}})))),Vg="ToastProvider",[jg,Wg,Ug]=Bg("Toast"),[Gg,$g]=er("Toast",[Ug]),[Kg,Xg]=Gg(Vg),qg=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:a}=e,[s,l]=U.useState(null),[c,u]=U.useState(0),d=U.useRef(!1),f=U.useRef(!1);return U.createElement(jg.Provider,{scope:t},U.createElement(Kg,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:i,toastCount:c,viewport:s,onViewportChange:l,onToastAdd:U.useCallback((()=>u((e=>e+1))),[]),onToastRemove:U.useCallback((()=>u((e=>e-1))),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:f},a))};qg.propTypes={label(e){if(e.label&&"string"==typeof e.label&&!e.label.trim()){return new Error(`Invalid prop \`label\` supplied to \`${Vg}\`. Expected non-empty \`string\`.`)}return null}};const Yg=["F8"],Qg="toast.viewportPause",Zg="toast.viewportResume",Jg=U.forwardRef(((e,t)=>{const{__scopeToast:n,hotkey:r=Yg,label:o="Notifications ({hotkey})",...i}=e,a=Xg("ToastViewport",n),s=Wg(n),l=U.useRef(null),c=U.useRef(null),u=U.useRef(null),d=U.useRef(null),f=rr(t,d,a.onViewportChange),h=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),p=a.toastCount>0;U.useEffect((()=>{const e=e=>{var t;const n=r.every((t=>e[t]||e.code===t));n&&(null===(t=d.current)||void 0===t||t.focus())};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[r]),U.useEffect((()=>{const e=l.current,t=d.current;if(p&&e&&t){const n=()=>{if(!a.isClosePausedRef.current){const e=new CustomEvent(Qg);t.dispatchEvent(e),a.isClosePausedRef.current=!0}},r=()=>{if(a.isClosePausedRef.current){const e=new CustomEvent(Zg);t.dispatchEvent(e),a.isClosePausedRef.current=!1}},o=t=>{!e.contains(t.relatedTarget)&&r()},i=()=>{e.contains(document.activeElement)||r()};return e.addEventListener("focusin",n),e.addEventListener("focusout",o),e.addEventListener("pointermove",n),e.addEventListener("pointerleave",i),window.addEventListener("blur",n),window.addEventListener("focus",r),()=>{e.removeEventListener("focusin",n),e.removeEventListener("focusout",o),e.removeEventListener("pointermove",n),e.removeEventListener("pointerleave",i),window.removeEventListener("blur",n),window.removeEventListener("focus",r)}}}),[p,a.isClosePausedRef]);const m=U.useCallback((({tabbingDirection:e})=>{const t=s().map((t=>{const n=t.ref.current,r=[n,...mv(n)];return"forwards"===e?r:r.reverse()}));return("forwards"===e?t.reverse():t).flat()}),[s]);return U.useEffect((()=>{const e=d.current;if(e){const t=t=>{const n=t.altKey||t.ctrlKey||t.metaKey;if("Tab"===t.key&&!n){const n=document.activeElement,a=t.shiftKey;var r;if(t.target===e&&a)return void(null===(r=c.current)||void 0===r||r.focus());const s=m({tabbingDirection:a?"backwards":"forwards"}),l=s.findIndex((e=>e===n));var o,i;if(gv(s.slice(l+1)))t.preventDefault();else a?null===(o=c.current)||void 0===o||o.focus():null===(i=u.current)||void 0===i||i.focus()}};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)}}),[s,m]),U.createElement(Dp,{ref:l,role:"region","aria-label":o.replace("{hotkey}",h),tabIndex:-1,style:{pointerEvents:p?void 0:"none"}},p&&U.createElement(ev,{ref:c,onFocusFromOutsideViewport:()=>{gv(m({tabbingDirection:"forwards"}))}}),U.createElement(jg.Slot,{scope:n},U.createElement(Ep.ol,Jn({tabIndex:-1},i,{ref:f}))),p&&U.createElement(ev,{ref:u,onFocusFromOutsideViewport:()=>{gv(m({tabbingDirection:"backwards"}))}}))})),ev=U.forwardRef(((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,i=Xg("ToastFocusProxy",n);return U.createElement(Hg,Jn({"aria-hidden":!0,tabIndex:0},o,{ref:t,style:{position:"fixed"},onFocus:e=>{var t;const n=e.relatedTarget;!(null!==(t=i.viewport)&&void 0!==t&&t.contains(n))&&r()}}))})),tv="Toast",nv=U.forwardRef(((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:i,...a}=e,[s=!0,l]=ur({prop:r,defaultProp:o,onChange:i});return U.createElement(Xp,{present:n||s},U.createElement(iv,Jn({open:s},a,{ref:t,onClose:()=>l(!1),onPause:cr(e.onPause),onResume:cr(e.onResume),onSwipeStart:or(e.onSwipeStart,(e=>{e.currentTarget.setAttribute("data-swipe","start")})),onSwipeMove:or(e.onSwipeMove,(e=>{const{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","move"),e.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${t}px`),e.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${n}px`)})),onSwipeCancel:or(e.onSwipeCancel,(e=>{e.currentTarget.setAttribute("data-swipe","cancel"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")})),onSwipeEnd:or(e.onSwipeEnd,(e=>{const{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","end"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${t}px`),e.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${n}px`),l(!1)}))})))})),[rv,ov]=Gg(tv,{onClose(){}}),iv=U.forwardRef(((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:i,onClose:a,onEscapeKeyDown:s,onPause:l,onResume:c,onSwipeStart:u,onSwipeMove:d,onSwipeCancel:f,onSwipeEnd:h,...p}=e,m=Xg(tv,n),[g,v]=U.useState(null),y=rr(t,(e=>v(e))),w=U.useRef(null),b=U.useRef(null),S=o||m.duration,x=U.useRef(0),_=U.useRef(S),C=U.useRef(0),{onToastAdd:E,onToastRemove:k}=m,T=cr((()=>{var e;(null==g?void 0:g.contains(document.activeElement))&&(null===(e=m.viewport)||void 0===e||e.focus()),a()})),R=U.useCallback((e=>{e&&e!==1/0&&(window.clearTimeout(C.current),x.current=(new Date).getTime(),C.current=window.setTimeout(T,e))}),[T]);U.useEffect((()=>{const e=m.viewport;if(e){const t=()=>{R(_.current),null==c||c()},n=()=>{const e=(new Date).getTime()-x.current;_.current=_.current-e,window.clearTimeout(C.current),null==l||l()};return e.addEventListener(Qg,n),e.addEventListener(Zg,t),()=>{e.removeEventListener(Qg,n),e.removeEventListener(Zg,t)}}}),[m.viewport,S,l,c,R]),U.useEffect((()=>{i&&!m.isClosePausedRef.current&&R(S)}),[i,S,m.isClosePausedRef,R]),U.useEffect((()=>(E(),()=>k())),[E,k]);const P=U.useMemo((()=>g?fv(g):null),[g]);return m.viewport?U.createElement(U.Fragment,null,P&&U.createElement(av,{__scopeToast:n,role:"status","aria-live":"foreground"===r?"assertive":"polite","aria-atomic":!0},P),U.createElement(rv,{scope:n,onClose:T},yp.createPortal(U.createElement(jg.ItemSlot,{scope:n},U.createElement(Ap,{asChild:!0,onEscapeKeyDown:or(s,(()=>{m.isFocusedToastEscapeKeyDownRef.current||T(),m.isFocusedToastEscapeKeyDownRef.current=!1}))},U.createElement(Ep.li,Jn({role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":m.swipeDirection},p,{ref:y,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:or(e.onKeyDown,(e=>{"Escape"===e.key&&(null==s||s(e.nativeEvent),e.nativeEvent.defaultPrevented||(m.isFocusedToastEscapeKeyDownRef.current=!0,T()))})),onPointerDown:or(e.onPointerDown,(e=>{0===e.button&&(w.current={x:e.clientX,y:e.clientY})})),onPointerMove:or(e.onPointerMove,(e=>{if(!w.current)return;const t=e.clientX-w.current.x,n=e.clientY-w.current.y,r=Boolean(b.current),o=["left","right"].includes(m.swipeDirection),i=["left","up"].includes(m.swipeDirection)?Math.min:Math.max,a=o?i(0,t):0,s=o?0:i(0,n),l="touch"===e.pointerType?10:2,c={x:a,y:s},f={originalEvent:e,delta:c};r?(b.current=c,hv("toast.swipeMove",d,f,{discrete:!1})):pv(c,m.swipeDirection,l)?(b.current=c,hv("toast.swipeStart",u,f,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>l||Math.abs(n)>l)&&(w.current=null)})),onPointerUp:or(e.onPointerUp,(e=>{const t=b.current,n=e.target;if(n.hasPointerCapture(e.pointerId)&&n.releasePointerCapture(e.pointerId),b.current=null,w.current=null,t){const n=e.currentTarget,r={originalEvent:e,delta:t};pv(t,m.swipeDirection,m.swipeThreshold)?hv("toast.swipeEnd",h,r,{discrete:!0}):hv("toast.swipeCancel",f,r,{discrete:!0}),n.addEventListener("click",(e=>e.preventDefault()),{once:!0})}}))})))),m.viewport))):null}));iv.propTypes={type(e){if(e.type&&!["foreground","background"].includes(e.type)){return new Error(`Invalid prop \`type\` supplied to \`${tv}\`. Expected \`foreground | background\`.`)}return null}};const av=e=>{const{__scopeToast:t,children:n,...r}=e,o=Xg(tv,t),[i,a]=U.useState(!1),[s,l]=U.useState(!1);return function(e=(()=>{})){const t=cr(e);ir((()=>{let e=0,n=0;return e=window.requestAnimationFrame((()=>n=window.requestAnimationFrame(t))),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(n)}}),[t])}((()=>a(!0))),U.useEffect((()=>{const e=window.setTimeout((()=>l(!0)),1e3);return()=>window.clearTimeout(e)}),[]),s?null:U.createElement(Kp,{asChild:!0},U.createElement(Hg,r,i&&U.createElement(U.Fragment,null,o.label," ",n)))},sv=U.forwardRef(((e,t)=>{const{__scopeToast:n,...r}=e;return U.createElement(Ep.div,Jn({},r,{ref:t}))})),lv=U.forwardRef(((e,t)=>{const{__scopeToast:n,...r}=e;return U.createElement(Ep.div,Jn({},r,{ref:t}))})),cv=U.forwardRef(((e,t)=>{const{altText:n,...r}=e;return n?U.createElement(dv,{altText:n,asChild:!0},U.createElement(uv,Jn({},r,{ref:t}))):null}));cv.propTypes={altText:e=>e.altText?null:new Error("Missing prop `altText` expected on `ToastAction`")};const uv=U.forwardRef(((e,t)=>{const{__scopeToast:n,...r}=e,o=ov("ToastClose",n);return U.createElement(dv,{asChild:!0},U.createElement(Ep.button,Jn({type:"button"},r,{ref:t,onClick:or(e.onClick,o.onClose)})))})),dv=U.forwardRef(((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return U.createElement(Ep.div,Jn({"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0},o,{ref:t}))}));function fv(e){const t=[];return Array.from(e.childNodes).forEach((e=>{if(e.nodeType===e.TEXT_NODE&&e.textContent&&t.push(e.textContent),function(e){return e.nodeType===e.ELEMENT_NODE}(e)){const n=e.ariaHidden||e.hidden||"none"===e.style.display,r=""===e.dataset.radixToastAnnounceExclude;if(!n)if(r){const n=e.dataset.radixToastAnnounceAlt;n&&t.push(n)}else t.push(...fv(e))}})),t}function hv(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?kp(o,i):o.dispatchEvent(i)}const pv=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),i=r>o;return"left"===t||"right"===t?i&&r>n:!i&&o>n};function mv(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 gv(e){const t=document.activeElement;return e.some((e=>e===t||(e.focus(),document.activeElement!==t)))}const vv=qg,yv=Jg,wv=nv,bv=sv,Sv=lv,xv=cv;function _v(e){return e.split("-")[0]}function Cv(e){return e.split("-")[1]}function Ev(e){return["top","bottom"].includes(_v(e))?"x":"y"}function kv(e){return"y"===e?"height":"width"}function Tv(e,t,n){let{reference:r,floating:o}=e;const i=r.x+r.width/2-o.width/2,a=r.y+r.height/2-o.height/2,s=Ev(t),l=kv(s),c=r[l]/2-o[l]/2,u="x"===s;let d;switch(_v(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:a};break;case"left":d={x:r.x-o.width,y:a};break;default:d={x:r.x,y:r.y}}switch(Cv(t)){case"start":d[s]-=c*(n&&u?-1:1);break;case"end":d[s]+=c*(n&&u?-1:1)}return d}function Rv(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 Pv(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function Iv(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:h=0}=t,p=Rv(h),m=s[f?"floating"===d?"reference":"floating":d],g=Pv(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),v=Pv(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===d?{...a.floating,x:r,y:o}:a.reference,offsetParent:await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),strategy:l}):a[d]);return{top:g.top-v.top+p.top,bottom:v.bottom-g.bottom+p.bottom,left:g.left-v.left+p.left,right:v.right-g.right+p.right}}const Mv=Math.min,zv=Math.max;function Ov(e,t,n){return zv(e,Mv(t,n))}const Lv=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:r=0}=null!=e?e:{},{x:o,y:i,placement:a,rects:s,platform:l}=t;if(null==n)return{};const c=Rv(r),u={x:o,y:i},d=Ev(a),f=Cv(a),h=kv(d),p=await l.getDimensions(n),m="y"===d?"top":"left",g="y"===d?"bottom":"right",v=s.reference[h]+s.reference[d]-u[d]-s.floating[h],y=u[d]-s.reference[d],w=await(null==l.getOffsetParent?void 0:l.getOffsetParent(n));let b=w?"y"===d?w.clientHeight||0:w.clientWidth||0:0;0===b&&(b=s.floating[h]);const S=v/2-y/2,x=c[m],_=b-p[h]-c[g],C=b/2-p[h]/2+S,E=Ov(x,C,_),k=("start"===f?c[m]:c[g])>0&&C!==E&&s.reference[h]<=s.floating[h];return{[d]:u[d]-(k?C<x?x-C:_-C:0),data:{[d]:E,centerOffset:C-E}}}}),Av={left:"right",right:"left",bottom:"top",top:"bottom"};function Dv(e){return e.replace(/left|right|bottom|top/g,(e=>Av[e]))}const Fv={start:"end",end:"start"};function Nv(e){return e.replace(/start|end/g,(e=>Fv[e]))}const Bv=["top","right","bottom","left"];Bv.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);const Hv=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:o,rects:i,initialPlacement:a,platform:s,elements:l}=t,{mainAxis:c=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f="bestFit",flipAlignment:h=!0,...p}=e,m=_v(r),g=[a,...d||(m!==a&&h?function(e){const t=Dv(e);return[Nv(e),t,Nv(t)]}(a):[Dv(a)])],v=await Iv(t,p),y=[];let w=(null==(n=o.flip)?void 0:n.overflows)||[];if(c&&y.push(v[m]),u){const{main:e,cross:t}=function(e,t,n){void 0===n&&(n=!1);const r=Cv(e),o=Ev(e),i=kv(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Dv(a)),{main:a,cross:Dv(a)}}(r,i,await(null==s.isRTL?void 0:s.isRTL(l.floating)));y.push(v[e],v[t])}if(w=[...w,{placement:r,overflows:y}],!y.every((e=>e<=0))){var b,S;const e=(null!=(b=null==(S=o.flip)?void 0:S.index)?b:0)+1,t=g[e];if(t)return{data:{index:e,overflows:w},reset:{placement:t}};let n="bottom";switch(f){case"bestFit":{var x;const e=null==(x=w.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:x[0].placement;e&&(n=e);break}case"initialPlacement":n=a}if(r!==n)return{reset:{placement:n}}}return{}}}};function Vv(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function jv(e){return Bv.some((t=>e[t]>=0))}const Wv=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=Vv(await Iv(e,{...n,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:jv(t)}}}case"escaped":{const t=Vv(await Iv(e,{...n,altBoundary:!0}),r.floating);return{data:{escapedOffsets:t,escaped:jv(t)}}}default:return{}}}}};function Uv(e){return"x"===e?"y":"x"}const Gv=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:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=e,c={x:n,y:r},u=await Iv(t,l),d=Ev(_v(o)),f=Uv(d);let h=c[d],p=c[f];if(i){const e="y"===d?"bottom":"right";h=Ov(h+u["y"===d?"top":"left"],h,h-u[e])}if(a){const e="y"===f?"bottom":"right";p=Ov(p+u["y"===f?"top":"left"],p,p-u[e])}const m=s.fn({...t,[d]:h,[f]:p});return{...m,data:{x:m.x-n,y:m.y-r}}}}};function $v(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function Kv(e){if(null==e)return window;if(!$v(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function Xv(e){return Kv(e).getComputedStyle(e)}function qv(e){return $v(e)?"":e?(e.nodeName||"").toLowerCase():""}function Yv(){const e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function Qv(e){return e instanceof Kv(e).HTMLElement}function Zv(e){return e instanceof Kv(e).Element}function Jv(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Kv(e).ShadowRoot||e instanceof ShadowRoot)}function ey(e){const{overflow:t,overflowX:n,overflowY:r}=Xv(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function ty(e){return["table","td","th"].includes(qv(e))}function ny(e){const t=/firefox/i.test(Yv()),n=Xv(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 ry(){return!/^((?!chrome|android).)*safari/i.test(Yv())}const oy=Math.min,iy=Math.max,ay=Math.round;function sy(e,t,n){var r,o,i,a;void 0===t&&(t=!1),void 0===n&&(n=!1);const s=e.getBoundingClientRect();let l=1,c=1;t&&Qv(e)&&(l=e.offsetWidth>0&&ay(s.width)/e.offsetWidth||1,c=e.offsetHeight>0&&ay(s.height)/e.offsetHeight||1);const u=Zv(e)?Kv(e):window,d=!ry()&&n,f=(s.left+(d&&null!=(r=null==(o=u.visualViewport)?void 0:o.offsetLeft)?r:0))/l,h=(s.top+(d&&null!=(i=null==(a=u.visualViewport)?void 0:a.offsetTop)?i:0))/c,p=s.width/l,m=s.height/c;return{width:p,height:m,top:h,right:f+p,bottom:h+m,left:f,x:f,y:h}}function ly(e){return(t=e,(t instanceof Kv(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function cy(e){return Zv(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function uy(e){return sy(ly(e)).left+cy(e).scrollLeft}function dy(e,t,n){const r=Qv(t),o=ly(t),i=sy(e,r&&function(e){const t=sy(e);return ay(t.width)!==e.offsetWidth||ay(t.height)!==e.offsetHeight}(t),"fixed"===n);let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(r||!r&&"fixed"!==n)if(("body"!==qv(t)||ey(o))&&(a=cy(t)),Qv(t)){const e=sy(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=uy(o));return{x:i.left+a.scrollLeft-s.x,y:i.top+a.scrollTop-s.y,width:i.width,height:i.height}}function fy(e){return"html"===qv(e)?e:e.assignedSlot||e.parentNode||(Jv(e)?e.host:null)||ly(e)}function hy(e){return Qv(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function py(e){const t=Kv(e);let n=hy(e);for(;n&&ty(n)&&"static"===getComputedStyle(n).position;)n=hy(n);return n&&("html"===qv(n)||"body"===qv(n)&&"static"===getComputedStyle(n).position&&!ny(n))?t:n||function(e){let t=fy(e);for(Jv(t)&&(t=t.host);Qv(t)&&!["html","body"].includes(qv(t));){if(ny(t))return t;t=t.parentNode}return null}(e)||t}function my(e){if(Qv(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=sy(e);return{width:t.width,height:t.height}}function gy(e){const t=fy(e);return["html","body","#document"].includes(qv(t))?e.ownerDocument.body:Qv(t)&&ey(t)?t:gy(t)}function vy(e,t){var n;void 0===t&&(t=[]);const r=gy(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Kv(r),a=o?[i].concat(i.visualViewport||[],ey(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(vy(a))}function yy(e,t,n){return"viewport"===t?Pv(function(e,t){const n=Kv(e),r=ly(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=ry();(e||!e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,n)):Zv(t)?function(e,t){const n=sy(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):Pv(function(e){var t;const n=ly(e),r=cy(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=iy(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=iy(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0);let s=-r.scrollLeft+uy(e);const l=-r.scrollTop;return"rtl"===Xv(o||n).direction&&(s+=iy(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(ly(e)))}function wy(e){const t=vy(e),n=["absolute","fixed"].includes(Xv(e).position)&&Qv(e)?py(e):e;return Zv(n)?t.filter((e=>Zv(e)&&function(e,t){const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Jv(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==qv(e))):[]}const by={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?wy(t):[].concat(n),r],a=i[0],s=i.reduce(((e,n)=>{const r=yy(t,n,o);return e.top=iy(r.top,e.top),e.right=oy(r.right,e.right),e.bottom=oy(r.bottom,e.bottom),e.left=iy(r.left,e.left),e}),yy(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=Qv(n),i=ly(n);if(n===i)return t;let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if((o||!o&&"fixed"!==r)&&(("body"!==qv(n)||ey(i))&&(a=cy(n)),Qv(n))){const e=sy(n,!0);s.x=e.x+n.clientLeft,s.y=e.y+n.clientTop}return{...t,x:t.x-a.scrollLeft+s.x,y:t.y-a.scrollTop+s.y}},isElement:Zv,getDimensions:my,getOffsetParent:py,getDocumentElement:ly,getElementRects:e=>{let{reference:t,floating:n,strategy:r}=e;return{reference:dy(t,py(n),r),floating:{...my(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===Xv(e).direction};function Sy(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=!0,animationFrame:s=!1}=r,l=o&&!s,c=i&&!s,u=l||c?[...Zv(e)?vy(e):[],...vy(t)]:[];u.forEach((e=>{l&&e.addEventListener("scroll",n,{passive:!0}),c&&e.addEventListener("resize",n)}));let d,f=null;if(a){let r=!0;f=new ResizeObserver((()=>{r||n(),r=!1})),Zv(e)&&!s&&f.observe(e),f.observe(t)}let h=s?sy(e):null;return s&&function t(){const r=sy(e);!h||r.x===h.x&&r.y===h.y&&r.width===h.width&&r.height===h.height||n(),h=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{l&&e.removeEventListener("scroll",n),c&&e.removeEventListener("resize",n)})),null==(e=f)||e.disconnect(),f=null,s&&cancelAnimationFrame(d)}}const xy=(e,t,n)=>(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=await(null==a.isRTL?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:u}=Tv(l,r,s),d=r,f={},h=0;for(let p=0;p<i.length;p++){const{name:n,fn:m}=i[p],{x:g,y:v,data:y,reset:w}=await m({x:c,y:u,initialPlacement:r,placement:d,strategy:o,middlewareData:f,rects:l,platform:a,elements:{reference:e,floating:t}});c=null!=g?g:c,u=null!=v?v:u,f={...f,[n]:{...f[n],...y}},w&&h<=50&&(h++,"object"==typeof w&&(w.placement&&(d=w.placement),w.rects&&(l=!0===w.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):w.rects),({x:c,y:u}=Tv(l,d,s))),p=-1)}return{x:c,y:u,placement:d,strategy:o,middlewareData:f}})(e,t,{platform:by,...n});var _y="undefined"!=typeof document?U.useLayoutEffect:U.useEffect;function Cy(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(!Cy(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)&&!Cy(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function Ey(e){let{middleware:t,placement:n="bottom",strategy:r="absolute",whileElementsMounted:o}=void 0===e?{}:e;const i=U.useRef(null),a=U.useRef(null),s=function(e){const t=U.useRef(e);return _y((()=>{t.current=e})),t}(o),l=U.useRef(null),[c,u]=U.useState({x:null,y:null,strategy:r,placement:n,middlewareData:{}}),[d,f]=U.useState(t);Cy(null==d?void 0:d.map((e=>{let{options:t}=e;return t})),null==t?void 0:t.map((e=>{let{options:t}=e;return t})))||f(t);const h=U.useCallback((()=>{i.current&&a.current&&xy(i.current,a.current,{middleware:d,placement:n,strategy:r}).then((e=>{p.current&&yp.flushSync((()=>{u(e)}))}))}),[d,n,r]);_y((()=>{p.current&&h()}),[h]);const p=U.useRef(!1);_y((()=>(p.current=!0,()=>{p.current=!1})),[]);const m=U.useCallback((()=>{if("function"==typeof l.current&&(l.current(),l.current=null),i.current&&a.current)if(s.current){const e=s.current(i.current,a.current,h);l.current=e}else h()}),[h,s]),g=U.useCallback((e=>{i.current=e,m()}),[m]),v=U.useCallback((e=>{a.current=e,m()}),[m]),y=U.useMemo((()=>({reference:i,floating:a})),[]);return U.useMemo((()=>({...c,update:h,refs:y,reference:g,floating:v})),[c,h,y,g,v])}const ky=e=>{const{element:t,padding:n}=e;return{name:"arrow",options:e,fn:e=>function(e){return Object.prototype.hasOwnProperty.call(e,"current")}(t)?null!=t.current?Lv({element:t.current,padding:n}).fn(e):{}:t?Lv({element:t,padding:n}).fn(e):{}}},Ty=U.forwardRef(((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return U.createElement(Ep.svg,Jn({},i,{ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:U.createElement("polygon",{points:"0,0 30,0 15,10"}))}));function Ry(e){const[t,n]=U.useState(void 0);return ir((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,i;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;n({width:o,height:i})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}const Py="Popper",[Iy,My]=er(Py),[zy,Oy]=Iy(Py),Ly=U.forwardRef(((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Oy("PopperAnchor",n),a=U.useRef(null),s=rr(t,a);return U.useEffect((()=>{i.onAnchorChange((null==r?void 0:r.current)||a.current)})),r?null:U.createElement(Ep.div,Jn({},o,{ref:s}))})),Ay="PopperContent",[Dy,Fy]=Iy(Ay),[Ny,By]=Iy(Ay,{hasParent:!1,positionUpdateFns:new Set}),Hy=U.forwardRef(((e,t)=>{var n,r,o,i,a,s,l,c;const{__scopePopper:u,side:d="bottom",sideOffset:f=0,align:h="center",alignOffset:p=0,arrowPadding:m=0,collisionBoundary:g=[],collisionPadding:v=0,sticky:y="partial",hideWhenDetached:w=!1,avoidCollisions:b=!0,onPlaced:S,...x}=e,_=Oy(Ay,u),[C,E]=U.useState(null),k=rr(t,(e=>E(e))),[T,R]=U.useState(null),P=Ry(T),I=null!==(n=null==P?void 0:P.width)&&void 0!==n?n:0,M=null!==(r=null==P?void 0:P.height)&&void 0!==r?r:0,z=d+("center"!==h?"-"+h:""),O="number"==typeof v?v:{top:0,right:0,bottom:0,left:0,...v},L=Array.isArray(g)?g:[g],A=L.length>0,D={padding:O,boundary:L.filter(Wy),altBoundary:A},{reference:F,floating:N,strategy:B,x:H,y:V,placement:j,middlewareData:W,update:G}=Ey({strategy:"fixed",placement:z,whileElementsMounted:Sy,middleware:[Uy(),(X={mainAxis:f+M,alignmentAxis:p},void 0===X&&(X=0),{name:"offset",options:X,async fn(e){const{x:t,y:n}=e,r=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=_v(n),s=Cv(n),l="x"===Ev(n),c=["left","top"].includes(a)?-1:1,u=i&&l?-1:1,d="function"==typeof t?t(e):t;let{mainAxis:f,crossAxis:h,alignmentAxis:p}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof p&&(h="end"===s?-1*p:p),l?{x:h*u,y:f*c}:{x:f*c,y:h*u}}(e,X);return{x:t+r.x,y:n+r.y,data:r}}}),b?Gv({mainAxis:!0,crossAxis:!1,limiter:"partial"===y?(void 0===K&&(K={}),{options:K,fn(e){const{x:t,y:n,placement:r,rects:o,middlewareData:i}=e,{offset:a=0,mainAxis:s=!0,crossAxis:l=!0}=K,c={x:t,y:n},u=Ev(r),d=Uv(u);let f=c[u],h=c[d];const p="function"==typeof a?a({...o,placement:r}):a,m="number"==typeof p?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(s){const e="y"===u?"height":"width",t=o.reference[u]-o.floating[e]+m.mainAxis,n=o.reference[u]+o.reference[e]-m.mainAxis;f<t?f=t:f>n&&(f=n)}if(l){var g,v,y,w;const e="y"===u?"width":"height",t=["top","left"].includes(_v(r)),n=o.reference[d]-o.floating[e]+(t&&null!=(g=null==(v=i.offset)?void 0:v[d])?g:0)+(t?0:m.crossAxis),a=o.reference[d]+o.reference[e]+(t?0:null!=(y=null==(w=i.offset)?void 0:w[d])?y:0)-(t?m.crossAxis:0);h<n?h=n:h>a&&(h=a)}return{[u]:f,[d]:h}}}):void 0,...D}):void 0,T?ky({element:T,padding:m}):void 0,b?Hv({...D}):void 0,($={...D,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===$&&($={}),{name:"size",options:$,async fn(e){const{placement:t,rects:n,platform:r,elements:o}=e,{apply:i,...a}=$,s=await Iv(e,a),l=_v(t),c=Cv(t);let u,d;"top"===l||"bottom"===l?(u=l,d=c===(await(null==r.isRTL?void 0:r.isRTL(o.floating))?"start":"end")?"left":"right"):(d=l,u="end"===c?"top":"bottom");const f=zv(s.left,0),h=zv(s.right,0),p=zv(s.top,0),m=zv(s.bottom,0),g={availableHeight:n.floating.height-(["left","right"].includes(t)?2*(0!==p||0!==m?p+m:zv(s.top,s.bottom)):s[u]),availableWidth:n.floating.width-(["top","bottom"].includes(t)?2*(0!==f||0!==h?f+h:zv(s.left,s.right)):s[d])},v=await r.getDimensions(o.floating);null==i||i({...e,...g});const y=await r.getDimensions(o.floating);return v.width!==y.width||v.height!==y.height?{reset:{rects:!0}}:{}}}),Gy({arrowWidth:I,arrowHeight:M}),w?Wv({strategy:"referenceHidden"}):void 0].filter(jy)});var $,K,X;ir((()=>{F(_.anchor)}),[F,_.anchor]);const q=null!==H&&null!==V,[Y,Q]=$y(j),Z=cr(S);ir((()=>{q&&(null==Z||Z())}),[q,Z]);const J=null===(o=W.arrow)||void 0===o?void 0:o.x,ee=null===(i=W.arrow)||void 0===i?void 0:i.y,te=0!==(null===(a=W.arrow)||void 0===a?void 0:a.centerOffset),[ne,re]=U.useState();ir((()=>{C&&re(window.getComputedStyle(C).zIndex)}),[C]);const{hasParent:oe,positionUpdateFns:ie}=By(Ay,u),ae=!oe;U.useLayoutEffect((()=>{if(!ae)return ie.add(G),()=>{ie.delete(G)}}),[ae,ie,G]),ir((()=>{ae&&q&&Array.from(ie).reverse().forEach((e=>requestAnimationFrame(e)))}),[ae,q,ie]);const se={"data-side":Y,"data-align":Q,...x,ref:k,style:{...x.style,animation:q?void 0:"none",opacity:null!==(s=W.hide)&&void 0!==s&&s.referenceHidden?0:void 0}};return U.createElement("div",{ref:N,"data-radix-popper-content-wrapper":"",style:{position:B,left:0,top:0,transform:q?`translate3d(${Math.round(H)}px, ${Math.round(V)}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===(c=W.transformOrigin)||void 0===c?void 0:c.y].join(" ")},dir:e.dir},U.createElement(Dy,{scope:u,placedSide:Y,onArrowChange:R,arrowX:J,arrowY:ee,shouldHideArrow:te},ae?U.createElement(Ny,{scope:u,hasParent:!0,positionUpdateFns:ie},U.createElement(Ep.div,se)):U.createElement(Ep.div,se)))})),Vy={top:"bottom",right:"left",bottom:"top",left:"right"};function jy(e){return void 0!==e}function Wy(e){return null!==e}const Uy=()=>({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`),{}}}),Gy=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:s,rects:l,middlewareData:c}=t,u=0!==(null===(n=c.arrow)||void 0===n?void 0:n.centerOffset),d=u?0:e.arrowWidth,f=u?0:e.arrowHeight,[h,p]=$y(s),m={start:"0%",center:"50%",end:"100%"}[p],g=(null!==(r=null===(o=c.arrow)||void 0===o?void 0:o.x)&&void 0!==r?r:0)+d/2,v=(null!==(i=null===(a=c.arrow)||void 0===a?void 0:a.y)&&void 0!==i?i:0)+f/2;let y="",w="";return"bottom"===h?(y=u?m:`${g}px`,w=-f+"px"):"top"===h?(y=u?m:`${g}px`,w=`${l.floating.height+f}px`):"right"===h?(y=-f+"px",w=u?m:`${v}px`):"left"===h&&(y=`${l.floating.width+f}px`,w=u?m:`${v}px`),{data:{x:y,y:w}}}});function $y(e){const[t,n="center"]=e.split("-");return[t,n]}const Ky=e=>{const{__scopePopper:t,children:n}=e,[r,o]=U.useState(null);return U.createElement(zy,{scope:t,anchor:r,onAnchorChange:o},n)},Xy=Ly,qy=Hy,Yy=U.forwardRef((function(e,t){const{__scopePopper:n,...r}=e,o=Fy("PopperArrow",n),i=Vy[o.placedSide];return U.createElement("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0}},U.createElement(Ty,Jn({},r,{ref:t,style:{...r.style,display:"block"}})))})),Qy="Popover",[Zy,Jy]=er(Qy,[My]),ew=My(),[tw,nw]=Zy(Qy),rw=U.forwardRef(((e,t)=>{const{__scopePopover:n,...r}=e,o=nw("PopoverTrigger",n),i=ew(n),a=rr(t,o.triggerRef),s=U.createElement(Ep.button,Jn({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":fw(o.open)},r,{ref:a,onClick:or(e.onClick,o.onOpenToggle)}));return o.hasCustomAnchor?s:U.createElement(Xy,Jn({asChild:!0},i),s)})),ow="PopoverPortal",[iw,aw]=Zy(ow,{forceMount:void 0}),sw="PopoverContent",lw=U.forwardRef(((e,t)=>{const n=aw(sw,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=nw(sw,e.__scopePopover);return U.createElement(Xp,{present:r||i.open},i.modal?U.createElement(cw,Jn({},o,{ref:t})):U.createElement(uw,Jn({},o,{ref:t})))})),cw=U.forwardRef(((e,t)=>{const n=nw(sw,e.__scopePopover),r=U.useRef(null),o=rr(t,r),i=U.useRef(!1);return U.useEffect((()=>{const e=r.current;if(e)return Vm(e)}),[]),U.createElement(Lm,{as:bp,allowPinchZoom:!0},U.createElement(dw,Jn({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:or(e.onCloseAutoFocus,(e=>{var t;e.preventDefault(),i.current||null===(t=n.triggerRef.current)||void 0===t||t.focus()})),onPointerDownOutside:or(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;i.current=r}),{checkForDefaultPrevented:!1}),onFocusOutside:or(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1})})))})),uw=U.forwardRef(((e,t)=>{const n=nw(sw,e.__scopePopover),r=U.useRef(!1);return U.createElement(dw,Jn({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var o,i;(null===(o=e.onCloseAutoFocus)||void 0===o||o.call(e,t),t.defaultPrevented)||(r.current||null===(i=n.triggerRef.current)||void 0===i||i.focus(),t.preventDefault());r.current=!1},onInteractOutside:t=>{var o,i;null===(o=e.onInteractOutside)||void 0===o||o.call(e,t),t.defaultPrevented||(r.current=!0);const a=t.target;(null===(i=n.triggerRef.current)||void 0===i?void 0:i.contains(a))&&t.preventDefault()}}))})),dw=U.forwardRef(((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:u,...d}=e,f=nw(sw,n),h=ew(n);return Qp(),U.createElement(Hp,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},U.createElement(zp,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onDismiss:()=>f.onOpenChange(!1)},U.createElement(qy,Jn({"data-state":fw(f.open),role:"dialog",id:f.contentId},h,d,{ref:t,style:{...d.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 fw(e){return e?"open":"closed"}const hw=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!1}=e,s=ew(t),l=U.useRef(null),[c,u]=U.useState(!1),[d=!1,f]=ur({prop:r,defaultProp:o,onChange:i});return U.createElement(Ky,s,U.createElement(tw,{scope:t,contentId:lr(),triggerRef:l,open:d,onOpenChange:f,onOpenToggle:U.useCallback((()=>f((e=>!e))),[f]),hasCustomAnchor:c,onCustomAnchorAdd:U.useCallback((()=>u(!0)),[]),onCustomAnchorRemove:U.useCallback((()=>u(!1)),[]),modal:a},n))},pw=rw,mw=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=nw(ow,t);return U.createElement(iw,{scope:t,forceMount:n},U.createElement(Xp,{present:n||i.open},U.createElement(Kp,{asChild:!0,container:o},r)))},gw=lw,vw=U.forwardRef(((e,t)=>{const{__scopePopover:n,...r}=e,o=nw("PopoverClose",n);return U.createElement(Ep.button,Jn({type:"button"},r,{ref:t,onClick:or(e.onClick,(()=>o.onOpenChange(!1)))}))})),yw=U.forwardRef(((e,t)=>{const{__scopePopover:n,...r}=e,o=ew(n);return U.createElement(Yy,Jn({},o,r,{ref:t}))})),ww="Progress",bw=100,[Sw,xw]=er(ww),[_w,Cw]=Sw(ww),Ew=U.forwardRef(((e,t)=>{const{__scopeProgress:n,value:r,max:o,getValueLabel:i=kw,...a}=e,s=Pw(o)?o:bw,l=Iw(r,s)?r:null,c=Rw(l)?i(l,s):void 0;return U.createElement(_w,{scope:n,value:l,max:s},U.createElement(Ep.div,Jn({"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":Rw(l)?l:void 0,"aria-valuetext":c,role:"progressbar","data-state":Tw(l,s),"data-value":null!=l?l:void 0,"data-max":s},a,{ref:t})))}));Ew.propTypes={max(e,t,n){const r=e[t],o=String(r);return r&&!Pw(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=Pw(e.max)?e.max:bw;return null==r||Iw(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 kw(e,t){return`${Math.round(e/t*100)}%`}function Tw(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function Rw(e){return"number"==typeof e}function Pw(e){return Rw(e)&&!isNaN(e)&&e>0}function Iw(e,t){return Rw(e)&&!isNaN(e)&&e<=t&&e>=0}const Mw=Ew,zw=U.forwardRef(((e,t)=>{var n;const{__scopeProgress:r,...o}=e,i=Cw("ProgressIndicator",r);return U.createElement(Ep.div,Jn({"data-state":Tw(i.value,i.max),"data-value":null!==(n=i.value)&&void 0!==n?n:void 0,"data-max":i.max},o,{ref:t}))}));function Ow(e){const t=U.useRef({value:e,previous:e});return U.useMemo((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}const Lw="Checkbox",[Aw,Dw]=er(Lw),[Fw,Nw]=Aw(Lw),Bw=U.forwardRef(((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:i,required:a,disabled:s,value:l="on",onCheckedChange:c,...u}=e,[d,f]=U.useState(null),h=rr(t,(e=>f(e))),p=U.useRef(!1),m=!d||Boolean(d.closest("form")),[g=!1,v]=ur({prop:o,defaultProp:i,onChange:c}),y=U.useRef(g);return U.useEffect((()=>{const e=null==d?void 0:d.form;if(e){const t=()=>v(y.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}}),[d,v]),U.createElement(Fw,{scope:n,state:g,disabled:s},U.createElement(Ep.button,Jn({type:"button",role:"checkbox","aria-checked":Vw(g)?"mixed":g,"aria-required":a,"data-state":jw(g),"data-disabled":s?"":void 0,disabled:s,value:l},u,{ref:h,onKeyDown:or(e.onKeyDown,(e=>{"Enter"===e.key&&e.preventDefault()})),onClick:or(e.onClick,(e=>{v((e=>!!Vw(e)||!e)),m&&(p.current=e.isPropagationStopped(),p.current||e.stopPropagation())}))})),m&&U.createElement(Hw,{control:d,bubbles:!p.current,name:r,value:l,checked:g,required:a,disabled:s,style:{transform:"translateX(-100%)"}}))})),Hw=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,i=U.useRef(null),a=Ow(n),s=Ry(t);return U.useEffect((()=>{const e=i.current,t=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(t,"checked").set;if(a!==n&&o){const t=new Event("click",{bubbles:r});e.indeterminate=Vw(n),o.call(e,!Vw(n)&&n),e.dispatchEvent(t)}}),[a,n,r]),U.createElement("input",Jn({type:"checkbox","aria-hidden":!0,defaultChecked:!Vw(n)&&n},o,{tabIndex:-1,ref:i,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function Vw(e){return"indeterminate"===e}function jw(e){return Vw(e)?"indeterminate":e?"checked":"unchecked"}const Ww=Bw,Uw=U.forwardRef(((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,i=Nw("CheckboxIndicator",n);return U.createElement(Xp,{present:r||Vw(i.state)||!0===i.state},U.createElement(Ep.span,Jn({"data-state":jw(i.state),"data-disabled":i.disabled?"":void 0},o,{ref:t,style:{pointerEvents:"none",...e.style}})))}));function Gw(e,[t,n]){return Math.min(n,Math.max(t,e))}const $w=U.createContext(void 0);function Kw(e){const t=U.useContext($w);return e||t||"ltr"}const Xw=["PageUp","PageDown"],qw=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Yw={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},Qw="Slider",[Zw,Jw,eb]=Bg(Qw),[tb,nb]=er(Qw,[eb]),[rb,ob]=tb(Qw),ib=U.forwardRef(((e,t)=>{const{name:n,min:r=0,max:o=100,step:i=1,orientation:a="horizontal",disabled:s=!1,minStepsBetweenThumbs:l=0,defaultValue:c=[r],value:u,onValueChange:d=(()=>{}),onValueCommit:f=(()=>{}),inverted:h=!1,...p}=e,[m,g]=U.useState(null),v=rr(t,(e=>g(e))),y=U.useRef(new Set),w=U.useRef(0),b="horizontal"===a,S=!m||Boolean(m.closest("form")),x=b?lb:cb,[_=[],C]=ur({prop:u,defaultProp:c,onChange:e=>{var t;null===(t=[...y.current][w.current])||void 0===t||t.focus(),d(e)}}),E=U.useRef(_);function k(e,t,{commit:n}={commit:!1}){const a=function(e){return(String(e).split(".")[1]||"").length}(i),s=function(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}(Math.round((e-r)/i)*i+r,a),c=Gw(s,[r,o]);C(((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*i)){w.current=r.indexOf(c);const t=String(r)!==String(e);return t&&n&&f(r),t?r:e}return e}))}return U.createElement(rb,{scope:e.__scopeSlider,disabled:s,min:r,max:o,valueIndexToChangeRef:w,thumbs:y.current,values:_,orientation:a},U.createElement(Zw.Provider,{scope:e.__scopeSlider},U.createElement(Zw.Slot,{scope:e.__scopeSlider},U.createElement(x,Jn({"aria-disabled":s,"data-disabled":s?"":void 0},p,{ref:v,onPointerDown:or(p.onPointerDown,(()=>{s||(E.current=_)})),min:r,max:o,inverted:h,onSlideStart:s?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)}(_,e);k(e,t)},onSlideMove:s?void 0:function(e){k(e,w.current)},onSlideEnd:s?void 0:function(){const e=E.current[w.current];_[w.current]!==e&&f(_)},onHomeKeyDown:()=>!s&&k(r,0,{commit:!0}),onEndKeyDown:()=>!s&&k(o,_.length-1,{commit:!0}),onStepKeyDown:({event:e,direction:t})=>{if(!s){const n=Xw.includes(e.key)||e.shiftKey&&qw.includes(e.key)?10:1,r=w.current;k(_[r]+i*n*t,r,{commit:!0})}}})))),S&&_.map(((e,t)=>U.createElement(vb,{key:t,name:n?n+(_.length>1?"[]":""):void 0,value:e}))))})),[ab,sb]=tb(Qw,{startEdge:"left",endEdge:"right",size:"width",direction:1}),lb=U.forwardRef(((e,t)=>{const{min:n,max:r,dir:o,inverted:i,onSlideStart:a,onSlideMove:s,onSlideEnd:l,onStepKeyDown:c,...u}=e,[d,f]=U.useState(null),h=rr(t,(e=>f(e))),p=U.useRef(),m=Kw(o),g="ltr"===m,v=g&&!i||!g&&i;function y(e){const t=p.current||d.getBoundingClientRect(),o=wb([0,t.width],v?[n,r]:[r,n]);return p.current=t,o(e-t.left)}return U.createElement(ab,{scope:e.__scopeSlider,startEdge:v?"left":"right",endEdge:v?"right":"left",direction:v?1:-1,size:"width"},U.createElement(ub,Jn({dir:m,"data-orientation":"horizontal"},u,{ref:h,style:{...u.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:e=>{const t=y(e.clientX);null==a||a(t)},onSlideMove:e=>{const t=y(e.clientX);null==s||s(t)},onSlideEnd:()=>{p.current=void 0,null==l||l()},onStepKeyDown:e=>{const t=Yw[v?"from-left":"from-right"].includes(e.key);null==c||c({event:e,direction:t?-1:1})}})))})),cb=U.forwardRef(((e,t)=>{const{min:n,max:r,inverted:o,onSlideStart:i,onSlideMove:a,onSlideEnd:s,onStepKeyDown:l,...c}=e,u=U.useRef(null),d=rr(t,u),f=U.useRef(),h=!o;function p(e){const t=f.current||u.current.getBoundingClientRect(),o=wb([0,t.height],h?[r,n]:[n,r]);return f.current=t,o(e-t.top)}return U.createElement(ab,{scope:e.__scopeSlider,startEdge:h?"bottom":"top",endEdge:h?"top":"bottom",size:"height",direction:h?1:-1},U.createElement(ub,Jn({"data-orientation":"vertical"},c,{ref:d,style:{...c.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:e=>{const t=p(e.clientY);null==i||i(t)},onSlideMove:e=>{const t=p(e.clientY);null==a||a(t)},onSlideEnd:()=>{f.current=void 0,null==s||s()},onStepKeyDown:e=>{const t=Yw[h?"from-bottom":"from-top"].includes(e.key);null==l||l({event:e,direction:t?-1:1})}})))})),ub=U.forwardRef(((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:i,onHomeKeyDown:a,onEndKeyDown:s,onStepKeyDown:l,...c}=e,u=ob(Qw,n);return U.createElement(Ep.span,Jn({},c,{ref:t,onKeyDown:or(e.onKeyDown,(e=>{"Home"===e.key?(a(e),e.preventDefault()):"End"===e.key?(s(e),e.preventDefault()):Xw.concat(qw).includes(e.key)&&(l(e),e.preventDefault())})),onPointerDown:or(e.onPointerDown,(e=>{const t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),u.thumbs.has(t)?t.focus():r(e)})),onPointerMove:or(e.onPointerMove,(e=>{e.target.hasPointerCapture(e.pointerId)&&o(e)})),onPointerUp:or(e.onPointerUp,(e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),i(e))}))}))})),db=U.forwardRef(((e,t)=>{const{__scopeSlider:n,...r}=e,o=ob("SliderTrack",n);return U.createElement(Ep.span,Jn({"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation},r,{ref:t}))})),fb="SliderRange",hb=U.forwardRef(((e,t)=>{const{__scopeSlider:n,...r}=e,o=ob(fb,n),i=sb(fb,n),a=rr(t,U.useRef(null)),s=o.values.length,l=o.values.map((e=>yb(e,o.min,o.max))),c=s>1?Math.min(...l):0,u=100-Math.max(...l);return U.createElement(Ep.span,Jn({"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0},r,{ref:a,style:{...e.style,[i.startEdge]:c+"%",[i.endEdge]:u+"%"}}))})),pb="SliderThumb",mb=U.forwardRef(((e,t)=>{const n=Jw(e.__scopeSlider),[r,o]=U.useState(null),i=rr(t,(e=>o(e))),a=U.useMemo((()=>r?n().findIndex((e=>e.ref.current===r)):-1),[n,r]);return U.createElement(gb,Jn({},e,{ref:i,index:a}))})),gb=U.forwardRef(((e,t)=>{const{__scopeSlider:n,index:r,...o}=e,i=ob(pb,n),a=sb(pb,n),[s,l]=U.useState(null),c=rr(t,(e=>l(e))),u=Ry(s),d=i.values[r],f=void 0===d?0:yb(d,i.min,i.max),h=function(e,t){return t>2?`Value ${e+1} of ${t}`:2===t?["Minimum","Maximum"][e]:void 0}(r,i.values.length),p=null==u?void 0:u[a.size],m=p?function(e,t,n){const r=e/2,o=wb([0,50],[0,r]);return(r-o(t)*n)*n}(p,f,a.direction):0;return U.useEffect((()=>{if(s)return i.thumbs.add(s),()=>{i.thumbs.delete(s)}}),[s,i.thumbs]),U.createElement("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[a.startEdge]:`calc(${f}% + ${m}px)`}},U.createElement(Zw.ItemSlot,{scope:e.__scopeSlider},U.createElement(Ep.span,Jn({role:"slider","aria-label":e["aria-label"]||h,"aria-valuemin":i.min,"aria-valuenow":d,"aria-valuemax":i.max,"aria-orientation":i.orientation,"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,tabIndex:i.disabled?void 0:0},o,{ref:c,style:void 0===d?{display:"none"}:e.style,onFocus:or(e.onFocus,(()=>{i.valueIndexToChangeRef.current=r}))}))))})),vb=e=>{const{value:t,...n}=e,r=U.useRef(null),o=Ow(t);return U.useEffect((()=>{const e=r.current,n=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(n,"value").set;if(o!==t&&i){const n=new Event("input",{bubbles:!0});i.call(e,t),e.dispatchEvent(n)}}),[o,t]),U.createElement("input",Jn({style:{display:"none"}},n,{ref:r,defaultValue:t}))};function yb(e,t,n){return 100/(n-t)*(e-t)}function wb(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 bb=ib,Sb=db,xb=hb,_b=mb;function Cb(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 Eb(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function kb(...e){return U.useCallback(Eb(...e),e)}function Tb(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>U.createContext(e)));return function(n){const r=(null==n?void 0:n[e])||t;return U.useMemo((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=U.createContext(r),i=n.length;function a(t){const{scope:n,children:r,...a}=t,s=(null==n?void 0:n[e][i])||o,l=U.useMemo((()=>a),Object.values(a));return U.createElement(s.Provider,{value:l},r)}return n=[...n,r],a.displayName=t+"Provider",[a,function(n,a){const s=(null==a?void 0:a[e][i])||o,l=U.useContext(s);if(l)return l;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},Rb(r,...t)]}function Rb(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return U.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}const Pb=U.forwardRef(((e,t)=>{const{children:n,...r}=e,o=U.Children.toArray(n),i=o.find(zb);if(i){const e=i.props.children,n=o.map((t=>t===i?U.Children.count(e)>1?U.Children.only(null):U.isValidElement(e)?e.props.children:null:t));return U.createElement(Ib,Jn({},r,{ref:t}),U.isValidElement(e)?U.cloneElement(e,void 0,n):null)}return U.createElement(Ib,Jn({},r,{ref:t}),n)}));Pb.displayName="Slot";const Ib=U.forwardRef(((e,t)=>{const{children:n,...r}=e;return U.isValidElement(n)?U.cloneElement(n,{...Ob(r,n.props),ref:t?Eb(t,n.ref):n.ref}):U.Children.count(n)>1?U.Children.only(null):null}));Ib.displayName="SlotClone";const Mb=({children:e})=>U.createElement(U.Fragment,null,e);function zb(e){return U.isValidElement(e)&&e.type===Mb}function Ob(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 Lb=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const n=U.forwardRef(((e,n)=>{const{asChild:r,...o}=e,i=r?Pb:t;return U.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),U.createElement(i,Jn({},o,{ref:n}))}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function Ab(e){const t=e+"CollectionProvider",[n,r]=Tb(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e+"CollectionSlot",s=e+"CollectionItemSlot",l="data-radix-collection-item";return[{Provider:e=>{const{scope:t,children:n}=e,r=G.useRef(null),i=G.useRef(new Map).current;return G.createElement(o,{scope:t,itemMap:i,collectionRef:r},n)},Slot:G.forwardRef(((e,t)=>{const{scope:n,children:r}=e,o=kb(t,i(a,n).collectionRef);return G.createElement(Pb,{ref:o},r)})),ItemSlot:G.forwardRef(((e,t)=>{const{scope:n,children:r,...o}=e,a=G.useRef(null),c=kb(t,a),u=i(s,n);return G.useEffect((()=>(u.itemMap.set(a,{ref:a,...o}),()=>{u.itemMap.delete(a)}))),G.createElement(Pb,{[l]:"",ref:c},r)}))},function(t){const n=i(e+"CollectionConsumer",t),r=G.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${l}]`)),r=Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)));return r}),[n.collectionRef,n.itemMap]);return r},r]}const Db=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?U.useLayoutEffect:()=>{},Fb=$["useId".toString()]||(()=>{});let Nb=0;function Bb(e){const[t,n]=U.useState(Fb());return Db((()=>{e||n((e=>null!=e?e:String(Nb++)))}),[e]),e||(t?`radix-${t}`:"")}function Hb(e){const t=U.useRef(e);return U.useEffect((()=>{t.current=e})),U.useMemo((()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}function Vb({prop:e,defaultProp:t,onChange:n=(()=>{})}){const[r,o]=function({defaultProp:e,onChange:t}){const n=U.useState(e),[r]=n,o=U.useRef(r),i=Hb(t);return U.useEffect((()=>{o.current!==r&&(i(r),o.current=r)}),[r,o,i]),n}({defaultProp:t,onChange:n}),i=void 0!==e,a=i?e:r,s=Hb(n),l=U.useCallback((t=>{if(i){const n="function"==typeof t?t(e):t;n!==e&&s(n)}else o(t)}),[i,e,o,s]);return[a,l]}const jb=U.createContext(void 0);function Wb(e){const t=U.useContext(jb);return e||t||"ltr"}const Ub="rovingFocusGroup.onEntryFocus",Gb={bubbles:!1,cancelable:!0},$b="RovingFocusGroup",[Kb,Xb,qb]=Ab($b),[Yb,Qb]=Tb($b,[qb]),[Zb,Jb]=Yb($b),eS=U.forwardRef(((e,t)=>U.createElement(Kb.Provider,{scope:e.__scopeRovingFocusGroup},U.createElement(Kb.Slot,{scope:e.__scopeRovingFocusGroup},U.createElement(tS,Jn({},e,{ref:t})))))),tS=U.forwardRef(((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:c,...u}=e,d=U.useRef(null),f=kb(t,d),h=Wb(i),[p=null,m]=Vb({prop:a,defaultProp:s,onChange:l}),[g,v]=U.useState(!1),y=Hb(c),w=Xb(n),b=U.useRef(!1),[S,x]=U.useState(0);return U.useEffect((()=>{const e=d.current;if(e)return e.addEventListener(Ub,y),()=>e.removeEventListener(Ub,y)}),[y]),U.createElement(Zb,{scope:n,orientation:r,dir:h,loop:o,currentTabStopId:p,onItemFocus:U.useCallback((e=>m(e)),[m]),onItemShiftTab:U.useCallback((()=>v(!0)),[]),onFocusableItemAdd:U.useCallback((()=>x((e=>e+1))),[]),onFocusableItemRemove:U.useCallback((()=>x((e=>e-1))),[])},U.createElement(Lb.div,Jn({tabIndex:g||0===S?-1:0,"data-orientation":r},u,{ref:f,style:{outline:"none",...e.style},onMouseDown:Cb(e.onMouseDown,(()=>{b.current=!0})),onFocus:Cb(e.onFocus,(e=>{const t=!b.current;if(e.target===e.currentTarget&&t&&!g){const t=new CustomEvent(Ub,Gb);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=w().filter((e=>e.focusable));oS([e.find((e=>e.active)),e.find((e=>e.id===p)),...e].filter(Boolean).map((e=>e.ref.current)))}}b.current=!1})),onBlur:Cb(e.onBlur,(()=>v(!1)))})))})),nS=U.forwardRef(((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,...a}=e,s=Bb(),l=i||s,c=Jb("RovingFocusGroupItem",n),u=c.currentTabStopId===l,d=Xb(n),{onFocusableItemAdd:f,onFocusableItemRemove:h}=c;return U.useEffect((()=>{if(r)return f(),()=>h()}),[r,f,h]),U.createElement(Kb.ItemSlot,{scope:n,id:l,focusable:r,active:o},U.createElement(Lb.span,Jn({tabIndex:u?0:-1,"data-orientation":c.orientation},a,{ref:t,onMouseDown:Cb(e.onMouseDown,(e=>{r?c.onItemFocus(l):e.preventDefault()})),onFocus:Cb(e.onFocus,(()=>c.onItemFocus(l))),onKeyDown:Cb(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void c.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:rS[r]}(e,c.orientation,c.dir);if(void 0!==t){e.preventDefault();let o=d().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=c.loop?(r=i+1,(n=o).map(((e,t)=>n[(r+t)%n.length]))):o.slice(i+1)}setTimeout((()=>oS(o)))}var n,r}))})))})),rS={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function oS(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}const iS=eS,aS=nS;function sS(e){const[t,n]=U.useState(void 0);return Db((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,i;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;n({width:o,height:i})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}function lS(e){const t=U.useRef({value:e,previous:e});return U.useMemo((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}const cS=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=U.useState(),r=U.useRef({}),o=U.useRef(e),i=U.useRef("none"),a=e?"mounted":"unmounted",[s,l]=function(e,t){return U.useReducer(((e,n)=>{const r=t[e][n];return null!=r?r:e}),e)}(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return U.useEffect((()=>{const e=uS(r.current);i.current="mounted"===s?e:"none"}),[s]),Db((()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,a=uS(t);if(e)l("MOUNT");else if("none"===a||"none"===(null==t?void 0:t.display))l("UNMOUNT");else{l(n&&r!==a?"ANIMATION_OUT":"UNMOUNT")}o.current=e}}),[e,l]),Db((()=>{if(t){const e=e=>{const n=uS(r.current).includes(e.animationName);e.target===t&&n&&yp.flushSync((()=>l("ANIMATION_END")))},n=e=>{e.target===t&&(i.current=uS(r.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}l("ANIMATION_END")}),[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:U.useCallback((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}(t),o="function"==typeof n?n({present:r.isPresent}):U.Children.only(n),i=kb(r.ref,o.ref);return"function"==typeof n||r.isPresent?U.cloneElement(o,{ref:i}):null};function uS(e){return(null==e?void 0:e.animationName)||"none"}cS.displayName="Presence";const dS="Radio",[fS,hS]=Tb(dS),[pS,mS]=fS(dS),gS=U.forwardRef(((e,t)=>{const{__scopeRadio:n,name:r,checked:o=!1,required:i,disabled:a,value:s="on",onCheck:l,...c}=e,[u,d]=U.useState(null),f=kb(t,(e=>d(e))),h=U.useRef(!1),p=!u||Boolean(u.closest("form"));return U.createElement(pS,{scope:n,checked:o,disabled:a},U.createElement(Lb.button,Jn({type:"button",role:"radio","aria-checked":o,"data-state":wS(o),"data-disabled":a?"":void 0,disabled:a,value:s},c,{ref:f,onClick:Cb(e.onClick,(e=>{o||null==l||l(),p&&(h.current=e.isPropagationStopped(),h.current||e.stopPropagation())}))})),p&&U.createElement(yS,{control:u,bubbles:!h.current,name:r,value:s,checked:o,required:i,disabled:a,style:{transform:"translateX(-100%)"}}))})),vS=U.forwardRef(((e,t)=>{const{__scopeRadio:n,forceMount:r,...o}=e,i=mS("RadioIndicator",n);return U.createElement(cS,{present:r||i.checked},U.createElement(Lb.span,Jn({"data-state":wS(i.checked),"data-disabled":i.disabled?"":void 0},o,{ref:t})))})),yS=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,i=U.useRef(null),a=lS(n),s=sS(t);return U.useEffect((()=>{const e=i.current,t=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(t,"checked").set;if(a!==n&&o){const t=new Event("click",{bubbles:r});o.call(e,n),e.dispatchEvent(t)}}),[a,n,r]),U.createElement("input",Jn({type:"radio","aria-hidden":!0,defaultChecked:n},o,{tabIndex:-1,ref:i,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function wS(e){return e?"checked":"unchecked"}const bS=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],SS="RadioGroup",[xS,_S]=Tb(SS,[Qb,hS]),CS=Qb(),ES=hS(),[kS,TS]=xS(SS),RS=U.forwardRef(((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:o,value:i,required:a=!1,disabled:s=!1,orientation:l,dir:c,loop:u=!0,onValueChange:d,...f}=e,h=CS(n),p=Wb(c),[m,g]=Vb({prop:i,defaultProp:o,onChange:d});return U.createElement(kS,{scope:n,name:r,required:a,disabled:s,value:m,onValueChange:g},U.createElement(iS,Jn({asChild:!0},h,{orientation:l,dir:p,loop:u}),U.createElement(Lb.div,Jn({role:"radiogroup","aria-required":a,"aria-orientation":l,"data-disabled":s?"":void 0,dir:p},f,{ref:t}))))})),PS=RS,IS=U.forwardRef(((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...o}=e,i=TS("RadioGroupItem",n),a=i.disabled||r,s=CS(n),l=ES(n),c=U.useRef(null),u=kb(t,c),d=i.value===o.value,f=U.useRef(!1);return U.useEffect((()=>{const e=e=>{bS.includes(e.key)&&(f.current=!0)},t=()=>f.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}}),[]),U.createElement(aS,Jn({asChild:!0},s,{focusable:!a,active:d}),U.createElement(gS,Jn({disabled:a,required:i.required,checked:d},l,o,{name:i.name,ref:u,onCheck:()=>i.onValueChange(o.value),onKeyDown:Cb((e=>{"Enter"===e.key&&e.preventDefault()})),onFocus:Cb(o.onFocus,(()=>{var e;f.current&&(null===(e=c.current)||void 0===e||e.click())}))})))})),MS=U.forwardRef(((e,t)=>{const{__scopeRadioGroup:n,...r}=e,o=ES(n);return U.createElement(vS,Jn({},o,r,{ref:t}))}));function zS(e,[t,n]){return Math.min(n,Math.max(t,e))}const OS="dismissableLayer.update",LS="dismissableLayer.pointerDownOutside",AS="dismissableLayer.focusOutside";let DS;const FS=U.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),NS=U.forwardRef(((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...c}=e,u=U.useContext(FS),[d,f]=U.useState(null),h=null!==(n=null==d?void 0:d.ownerDocument)&&void 0!==n?n:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,p]=U.useState({}),m=kb(t,(e=>f(e))),g=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=g.indexOf(v),w=d?g.indexOf(d):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,S=w>=y,x=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=Hb(e),r=U.useRef(!1),o=U.useRef((()=>{}));return U.useEffect((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){HS(LS,n,i,{discrete:!0})};const i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}r.current=!1},i=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}((e=>{const t=e.target,n=[...u.branches].some((e=>e.contains(t)));S&&!n&&(null==i||i(e),null==s||s(e),e.defaultPrevented||null==l||l())}),h),_=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=Hb(e),r=U.useRef(!1);return U.useEffect((()=>{const e=e=>{if(e.target&&!r.current){HS(AS,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}((e=>{const t=e.target;[...u.branches].some((e=>e.contains(t)))||(null==a||a(e),null==s||s(e),e.defaultPrevented||null==l||l())}),h);return function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=Hb(e);U.useEffect((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)}),[n,t])}((e=>{w===u.layers.size-1&&(null==o||o(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))}),h),U.useEffect((()=>{if(d)return r&&(0===u.layersWithOutsidePointerEventsDisabled.size&&(DS=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),BS(),()=>{r&&1===u.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=DS)}}),[d,h,r,u]),U.useEffect((()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),BS())}),[d,u]),U.useEffect((()=>{const e=()=>p({});return document.addEventListener(OS,e),()=>document.removeEventListener(OS,e)}),[]),U.createElement(Lb.div,Jn({},c,{ref:m,style:{pointerEvents:b?S?"auto":"none":void 0,...e.style},onFocusCapture:Cb(e.onFocusCapture,_.onFocusCapture),onBlurCapture:Cb(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:Cb(e.onPointerDownCapture,x.onPointerDownCapture)}))}));function BS(){const e=new CustomEvent(OS);document.dispatchEvent(e)}function HS(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?function(e,t){e&&yp.flushSync((()=>e.dispatchEvent(t)))}(o,i):o.dispatchEvent(i)}let VS=0;function jS(){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 WS="focusScope.autoFocusOnMount",US="focusScope.autoFocusOnUnmount",GS={bubbles:!1,cancelable:!0},$S=U.forwardRef(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[s,l]=U.useState(null),c=Hb(o),u=Hb(i),d=U.useRef(null),f=kb(t,(e=>l(e))),h=U.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;U.useEffect((()=>{if(r){let e=function(e){if(h.paused||!s)return;const t=e.target;s.contains(t)?d.current=t:YS(d.current,{select:!0})},t=function(e){if(h.paused||!s)return;const t=e.relatedTarget;null!==t&&(s.contains(t)||YS(d.current,{select:!0}))},n=function(e){const t=document.activeElement;for(const n of e)n.removedNodes.length>0&&(null!=s&&s.contains(t)||YS(s))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}}),[r,s,h.paused]),U.useEffect((()=>{if(s){QS.add(h);const t=document.activeElement;if(!s.contains(t)){const n=new CustomEvent(WS,GS);s.addEventListener(WS,c),s.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(YS(r,{select:t}),document.activeElement!==n)return}((e=KS(s),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&YS(s))}return()=>{s.removeEventListener(WS,c),setTimeout((()=>{const e=new CustomEvent(US,GS);s.addEventListener(US,u),s.dispatchEvent(e),e.defaultPrevented||YS(null!=t?t:document.body,{select:!0}),s.removeEventListener(US,u),QS.remove(h)}),0)}}var e}),[s,c,u,h]);const p=U.useCallback((e=>{if(!n&&!r)return;if(h.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[r,i]=function(e){const t=KS(e),n=XS(t,e),r=XS(t.reverse(),e);return[n,r]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&YS(i,{select:!0})):(e.preventDefault(),n&&YS(r,{select:!0})):o===t&&e.preventDefault()}}),[n,r,h.paused]);return U.createElement(Lb.div,Jn({tabIndex:-1},a,{ref:f,onKeyDown:p}))}));function KS(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 XS(e,t){for(const n of e)if(!qS(n,{upTo:t}))return n}function qS(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 YS(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 QS=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=ZS(e,t),e.unshift(t)},remove(t){var n;e=ZS(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function ZS(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}function JS(e){return e.split("-")[1]}function ex(e){return"y"===e?"height":"width"}function tx(e){return e.split("-")[0]}function nx(e){return["top","bottom"].includes(tx(e))?"x":"y"}function rx(e,t,n){let{reference:r,floating:o}=e;const i=r.x+r.width/2-o.width/2,a=r.y+r.height/2-o.height/2,s=nx(t),l=ex(s),c=r[l]/2-o[l]/2,u="x"===s;let d;switch(tx(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:a};break;case"left":d={x:r.x-o.width,y:a};break;default:d={x:r.x,y:r.y}}switch(JS(t)){case"start":d[s]-=c*(n&&u?-1:1);break;case"end":d[s]+=c*(n&&u?-1:1)}return d}function ox(e,t){return"function"==typeof e?e(t):e}function ix(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 ax(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function sx(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:h=0}=ox(t,e),p=ix(h),m=s[f?"floating"===d?"reference":"floating":d],g=ax(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),v="floating"===d?{...a.floating,x:r,y:o}:a.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),w=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},b=ax(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:y,strategy:l}):v);return{top:(g.top-b.top+p.top)/w.y,bottom:(b.bottom-g.bottom+p.bottom)/w.y,left:(g.left-b.left+p.left)/w.x,right:(b.right-g.right+p.right)/w.x}}const lx=Math.min,cx=Math.max;function ux(e,t,n){return cx(e,lx(t,n))}const dx=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s}=t,{element:l,padding:c=0}=ox(e,t)||{};if(null==l)return{};const u=ix(c),d={x:n,y:r},f=nx(o),h=ex(f),p=await a.getDimensions(l),m="y"===f,g=m?"top":"left",v=m?"bottom":"right",y=m?"clientHeight":"clientWidth",w=i.reference[h]+i.reference[f]-d[f]-i.floating[h],b=d[f]-i.reference[f],S=await(null==a.getOffsetParent?void 0:a.getOffsetParent(l));let x=S?S[y]:0;x&&await(null==a.isElement?void 0:a.isElement(S))||(x=s.floating[y]||i.floating[h]);const _=w/2-b/2,C=x/2-p[h]/2-1,E=lx(u[g],C),k=lx(u[v],C),T=E,R=x-p[h]-k,P=x/2-p[h]/2+_,I=ux(T,P,R),M=null!=JS(o)&&P!=I&&i.reference[h]/2-(P<T?E:k)-p[h]/2<0?P<T?T-P:R-P:0;return{[f]:d[f]-M,data:{[f]:I,centerOffset:P-I+M}}}}),fx=["top","right","bottom","left"];fx.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);const hx={left:"right",right:"left",bottom:"top",top:"bottom"};function px(e){return e.replace(/left|right|bottom|top/g,(e=>hx[e]))}const mx={start:"end",end:"start"};function gx(e){return e.replace(/start|end/g,(e=>mx[e]))}const vx=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:o,rects:i,initialPlacement:a,platform:s,elements:l}=t,{mainAxis:c=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:p=!0,...m}=ox(e,t),g=tx(r),v=tx(a)===a,y=await(null==s.isRTL?void 0:s.isRTL(l.floating)),w=d||(v||!p?[px(a)]:function(e){const t=px(e);return[gx(e),t,gx(t)]}(a));d||"none"===h||w.push(...function(e,t,n,r){const o=JS(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}(tx(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(gx)))),i}(a,p,h,y));const b=[a,...w],S=await sx(t,m),x=[];let _=(null==(n=o.flip)?void 0:n.overflows)||[];if(c&&x.push(S[g]),u){const{main:e,cross:t}=function(e,t,n){void 0===n&&(n=!1);const r=JS(e),o=nx(e),i=ex(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=px(a)),{main:a,cross:px(a)}}(r,i,y);x.push(S[e],S[t])}if(_=[..._,{placement:r,overflows:x}],!x.every((e=>e<=0))){var C,E;const e=((null==(C=o.flip)?void 0:C.index)||0)+1,t=b[e];if(t)return{data:{index:e,overflows:_},reset:{placement:t}};let n=null==(E=_.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:E.placement;if(!n)switch(f){case"bestFit":{var k;const e=null==(k=_.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:k[0];e&&(n=e);break}case"initialPlacement":n=a}if(r!==n)return{reset:{placement:n}}}return{}}}};function yx(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function wx(e){return fx.some((t=>e[t]>=0))}const bx=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=ox(e,t);switch(r){case"referenceHidden":{const e=yx(await sx(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:wx(e)}}}case"escaped":{const e=yx(await sx(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:wx(e)}}}default:return{}}}}};function Sx(e){return"x"===e?"y":"x"}const xx=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:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=ox(e,t),c={x:n,y:r},u=await sx(t,l),d=nx(tx(o)),f=Sx(d);let h=c[d],p=c[f];if(i){const e="y"===d?"bottom":"right";h=ux(h+u["y"===d?"top":"left"],h,h-u[e])}if(a){const e="y"===f?"bottom":"right";p=ux(p+u["y"===f?"top":"left"],p,p-u[e])}const m=s.fn({...t,[d]:h,[f]:p});return{...m,data:{x:m.x-n,y:m.y-r}}}}},_x=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:a=(()=>{}),...s}=ox(e,t),l=await sx(t,s),c=tx(n),u=JS(n),d="x"===nx(n),{width:f,height:h}=r.floating;let p,m;"top"===c||"bottom"===c?(p=c,m=u===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(m=c,p="end"===u?"top":"bottom");const g=h-l[p],v=f-l[m],y=!t.middlewareData.shift;let w=g,b=v;if(d){const e=f-l.left-l.right;b=u||y?lx(v,e):e}else{const e=h-l.top-l.bottom;w=u||y?lx(g,e):e}if(y&&!u){const e=cx(l.left,0),t=cx(l.right,0),n=cx(l.top,0),r=cx(l.bottom,0);d?b=f-2*(0!==e||0!==t?e+t:cx(l.left,l.right)):w=h-2*(0!==n||0!==r?n+r:cx(l.top,l.bottom))}await a({...t,availableWidth:b,availableHeight:w});const S=await o.getDimensions(i.floating);return f!==S.width||h!==S.height?{reset:{rects:!0}}:{}}}};function Cx(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Ex(e){return Cx(e).getComputedStyle(e)}function kx(e){return e instanceof Cx(e).Node}function Tx(e){return kx(e)?(e.nodeName||"").toLowerCase():"#document"}function Rx(e){return e instanceof HTMLElement||e instanceof Cx(e).HTMLElement}function Px(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Cx(e).ShadowRoot||e instanceof ShadowRoot)}function Ix(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ex(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Mx(e){return["table","td","th"].includes(Tx(e))}function zx(e){const t=Ox(),n=Ex(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 Ox(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Lx(e){return["html","body","#document"].includes(Tx(e))}const Ax=Math.min,Dx=Math.max,Fx=Math.round,Nx=Math.floor,Bx=e=>({x:e,y:e});function Hx(e){const t=Ex(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Rx(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=Fx(n)!==i||Fx(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function Vx(e){return e instanceof Element||e instanceof Cx(e).Element}function jx(e){return Vx(e)?e:e.contextElement}function Wx(e){const t=jx(e);if(!Rx(t))return Bx(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Hx(t);let a=(i?Fx(n.width):n.width)/r,s=(i?Fx(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Ux=Bx(0);function Gx(e){const t=Cx(e);return Ox()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Ux}function $x(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=jx(e);let a=Bx(1);t&&(r?Vx(r)&&(a=Wx(r)):a=Wx(e));const s=(l=i,void 0===(c=n)&&(c=!1),!(u=r)||c&&u!==Cx(l)||!c?Bx(0):Gx(i));var l,c,u;let d=(o.left+s.x)/a.x,f=(o.top+s.y)/a.y,h=o.width/a.x,p=o.height/a.y;if(i){const e=Cx(i),t=r&&Vx(r)?Cx(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=Wx(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,h*=e.x,p*=e.y,d+=o,f+=i,n=Cx(n).frameElement}}return ax({width:h,height:p,x:d,y:f})}function Kx(e){return Vx(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Xx(e){var t;return null==(t=(kx(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function qx(e){return $x(Xx(e)).left+Kx(e).scrollLeft}function Yx(e){if("html"===Tx(e))return e;const t=e.assignedSlot||e.parentNode||Px(e)&&e.host||Xx(e);return Px(t)?t.host:t}function Qx(e){const t=Yx(e);return Lx(t)?e.ownerDocument?e.ownerDocument.body:e.body:Rx(t)&&Ix(t)?t:Qx(t)}function Zx(e,t){var n;void 0===t&&(t=[]);const r=Qx(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Cx(r);return o?t.concat(i,i.visualViewport||[],Ix(r)?r:[]):t.concat(r,Zx(r))}function Jx(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Cx(e),r=Xx(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=Ox();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=Xx(e),n=Kx(e),r=e.ownerDocument.body,o=Dx(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Dx(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+qx(e);const s=-n.scrollTop;return"rtl"===Ex(r).direction&&(a+=Dx(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(Xx(e));else if(Vx(t))r=function(e,t){const n=$x(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Rx(e)?Wx(e):Bx(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=Gx(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return ax(r)}function e_(e,t){const n=Yx(e);return!(n===t||!Vx(n)||Lx(n))&&("fixed"===Ex(n).position||e_(n,t))}function t_(e,t,n){const r=Rx(t),o=Xx(t),i="fixed"===n,a=$x(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=Bx(0);if(r||!r&&!i)if(("body"!==Tx(t)||Ix(o))&&(s=Kx(t)),Rx(t)){const e=$x(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=qx(o));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function n_(e,t){return Rx(e)&&"fixed"!==Ex(e).position?t?t(e):e.offsetParent:null}function r_(e,t){const n=Cx(e);if(!Rx(e))return n;let r=n_(e,t);for(;r&&Mx(r)&&"static"===Ex(r).position;)r=n_(r,t);return r&&("html"===Tx(r)||"body"===Tx(r)&&"static"===Ex(r).position&&!zx(r))?n:r||function(e){let t=Yx(e);for(;Rx(t)&&!Lx(t);){if(zx(t))return t;t=Yx(t)}return null}(e)||n}const o_={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=Rx(n),i=Xx(n);if(n===i)return t;let a={scrollLeft:0,scrollTop:0},s=Bx(1);const l=Bx(0);if((o||!o&&"fixed"!==r)&&(("body"!==Tx(n)||Ix(i))&&(a=Kx(n)),Rx(n))){const e=$x(n);s=Wx(n),l.x=e.x+n.clientLeft,l.y=e.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-a.scrollLeft*s.x+l.x,y:t.y*s.y-a.scrollTop*s.y+l.y}},getDocumentElement:Xx,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=Zx(e).filter((e=>Vx(e)&&"body"!==Tx(e))),o=null;const i="fixed"===Ex(e).position;let a=i?Yx(e):e;for(;Vx(a)&&!Lx(a);){const t=Ex(a),n=zx(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||Ix(a)&&!n&&e_(e,a))?r=r.filter((e=>e!==a)):o=t,a=Yx(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=i[0],s=i.reduce(((e,n)=>{const r=Jx(t,n,o);return e.top=Dx(r.top,e.top),e.right=Ax(r.right,e.right),e.bottom=Ax(r.bottom,e.bottom),e.left=Dx(r.left,e.left),e}),Jx(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:r_,getElementRects:async function(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||r_,i=this.getDimensions;return{reference:t_(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 Hx(e)},getScale:Wx,isElement:Vx,isRTL:function(e){return"rtl"===getComputedStyle(e).direction}};function i_(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=jx(e),u=o||i?[...c?Zx(c):[],...Zx(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=c&&s?function(e,t){let n,r=null;const o=Xx(e);function i(){clearTimeout(n),r&&r.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const{left:c,top:u,width:d,height:f}=e.getBoundingClientRect();if(s||t(),!d||!f)return;const h={rootMargin:-Nx(u)+"px "+-Nx(o.clientWidth-(c+d))+"px "+-Nx(o.clientHeight-(u+f))+"px "+-Nx(c)+"px",threshold:Dx(0,Ax(1,l))||1};let p=!0;function m(e){const t=e[0].intersectionRatio;if(t!==l){if(!p)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),100)}p=!1}try{r=new IntersectionObserver(m,{...h,root:o.ownerDocument})}catch(g){r=new IntersectionObserver(m,h)}r.observe(e)}(!0),i}(c,n):null;let f,h=-1,p=null;a&&(p=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame((()=>{p&&p.observe(t)}))),n()})),c&&!l&&p.observe(c),p.observe(t));let m=l?$x(e):null;return l&&function t(){const r=$x(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(),p&&p.disconnect(),p=null,l&&cancelAnimationFrame(f)}}const a_=(e,t,n)=>{const r=new Map,o={platform:o_,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=rx(c,r,l),f=r,h={},p=0;for(let m=0;m<s.length;m++){const{name:n,fn:i}=s[m],{x:g,y:v,data:y,reset:w}=await i({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:h,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=v?v:d,h={...h,[n]:{...h[n],...y}},w&&p<=50&&(p++,"object"==typeof w&&(w.placement&&(f=w.placement),w.rects&&(c=!0===w.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):w.rects),({x:u,y:d}=rx(c,f,l))),m=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:h}})(e,t,{...o,platform:i})},s_=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&function(e){return{}.hasOwnProperty.call(e,"current")}(n)?null!=n.current?dx({element:n.current,padding:r}).fn(t):{}:n?dx({element:n,padding:r}).fn(t):{}}});var l_="undefined"!=typeof document?U.useLayoutEffect:U.useEffect;function c_(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(!c_(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)&&!c_(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function u_(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function d_(e,t){const n=u_(e);return Math.round(t*n)/n}function f_(e){const t=U.useRef(e);return l_((()=>{t.current=e})),t}const h_=U.forwardRef(((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return U.createElement(Lb.svg,Jn({},i,{ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:U.createElement("polygon",{points:"0,0 30,0 15,10"}))})),p_="Popper",[m_,g_]=Tb(p_),[v_,y_]=m_(p_),w_=U.forwardRef(((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=y_("PopperAnchor",n),a=U.useRef(null),s=kb(t,a);return U.useEffect((()=>{i.onAnchorChange((null==r?void 0:r.current)||a.current)})),r?null:U.createElement(Lb.div,Jn({},o,{ref:s}))})),b_="PopperContent",[S_,x_]=m_(b_),__=U.forwardRef(((e,t)=>{var n,r,o,i,a,s,l,c;const{__scopePopper:u,side:d="bottom",sideOffset:f=0,align:h="center",alignOffset:p=0,arrowPadding:m=0,collisionBoundary:g=[],collisionPadding:v=0,sticky:y="partial",hideWhenDetached:w=!1,avoidCollisions:b=!0,onPlaced:S,...x}=e,_=y_(b_,u),[C,E]=U.useState(null),k=kb(t,(e=>E(e))),[T,R]=U.useState(null),P=sS(T),I=null!==(n=null==P?void 0:P.width)&&void 0!==n?n:0,M=null!==(r=null==P?void 0:P.height)&&void 0!==r?r:0,z=d+("center"!==h?"-"+h:""),O="number"==typeof v?v:{top:0,right:0,bottom:0,left:0,...v},L=Array.isArray(g)?g:[g],A=L.length>0,D={padding:O,boundary:L.filter(E_),altBoundary:A},{refs:F,floatingStyles:N,placement:B,isPositioned:H,middlewareData:V}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[u,d]=U.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,h]=U.useState(r);c_(f,r)||h(r);const[p,m]=U.useState(null),[g,v]=U.useState(null),y=U.useCallback((e=>{e!=x.current&&(x.current=e,m(e))}),[m]),w=U.useCallback((e=>{e!==_.current&&(_.current=e,v(e))}),[v]),b=i||p,S=a||g,x=U.useRef(null),_=U.useRef(null),C=U.useRef(u),E=f_(l),k=f_(o),T=U.useCallback((()=>{if(!x.current||!_.current)return;const e={placement:t,strategy:n,middleware:f};k.current&&(e.platform=k.current),a_(x.current,_.current,e).then((e=>{const t={...e,isPositioned:!0};R.current&&!c_(C.current,t)&&(C.current=t,yp.flushSync((()=>{d(t)})))}))}),[f,t,n,k]);l_((()=>{!1===c&&C.current.isPositioned&&(C.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[c]);const R=U.useRef(!1);l_((()=>(R.current=!0,()=>{R.current=!1})),[]),l_((()=>{if(b&&(x.current=b),S&&(_.current=S),b&&S){if(E.current)return E.current(b,S,T);T()}}),[b,S,T,E]);const P=U.useMemo((()=>({reference:x,floating:_,setReference:y,setFloating:w})),[y,w]),I=U.useMemo((()=>({reference:b,floating:S})),[b,S]),M=U.useMemo((()=>{const e={position:n,left:0,top:0};if(!I.floating)return e;const t=d_(I.floating,u.x),r=d_(I.floating,u.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...u_(I.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,s,I.floating,u.x,u.y]);return U.useMemo((()=>({...u,update:T,refs:P,elements:I,floatingStyles:M})),[u,T,P,I,M])}({strategy:"fixed",placement:z,whileElementsMounted:i_,elements:{reference:_.anchor},middleware:[(W={mainAxis:f+M,alignmentAxis:p},void 0===W&&(W=0),{name:"offset",options:W,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)),a=tx(n),s=JS(n),l="x"===nx(n),c=["left","top"].includes(a)?-1:1,u=i&&l?-1:1,d=ox(t,e);let{mainAxis:f,crossAxis:h,alignmentAxis:p}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof p&&(h="end"===s?-1*p:p),l?{x:h*u,y:f*c}:{x:f*c,y:h*u}}(e,W);return{x:t+r.x,y:n+r.y,data:r}}}),b&&xx({mainAxis:!0,crossAxis:!1,limiter:"partial"===y?(void 0===j&&(j={}),{options:j,fn(e){const{x:t,y:n,placement:r,rects:o,middlewareData:i}=e,{offset:a=0,mainAxis:s=!0,crossAxis:l=!0}=ox(j,e),c={x:t,y:n},u=nx(r),d=Sx(u);let f=c[u],h=c[d];const p=ox(a,e),m="number"==typeof p?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(s){const e="y"===u?"height":"width",t=o.reference[u]-o.floating[e]+m.mainAxis,n=o.reference[u]+o.reference[e]-m.mainAxis;f<t?f=t:f>n&&(f=n)}if(l){var g,v;const e="y"===u?"width":"height",t=["top","left"].includes(tx(r)),n=o.reference[d]-o.floating[e]+(t&&(null==(g=i.offset)?void 0:g[d])||0)+(t?0:m.crossAxis),a=o.reference[d]+o.reference[e]+(t?0:(null==(v=i.offset)?void 0:v[d])||0)-(t?m.crossAxis:0);h<n?h=n:h>a&&(h=a)}return{[u]:f,[d]:h}}}):void 0,...D}),b&&vx({...D}),_x({...D,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}}),T&&s_({element:T,padding:m}),k_({arrowWidth:I,arrowHeight:M}),w&&bx({strategy:"referenceHidden"})]});var j,W;const[G,$]=T_(B),K=Hb(S);Db((()=>{H&&(null==K||K())}),[H,K]);const X=null===(o=V.arrow)||void 0===o?void 0:o.x,q=null===(i=V.arrow)||void 0===i?void 0:i.y,Y=0!==(null===(a=V.arrow)||void 0===a?void 0:a.centerOffset),[Q,Z]=U.useState();return Db((()=>{C&&Z(window.getComputedStyle(C).zIndex)}),[C]),U.createElement("div",{ref:F.setFloating,"data-radix-popper-content-wrapper":"",style:{...N,transform:H?N.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Q,"--radix-popper-transform-origin":[null===(s=V.transformOrigin)||void 0===s?void 0:s.x,null===(l=V.transformOrigin)||void 0===l?void 0:l.y].join(" ")},dir:e.dir},U.createElement(S_,{scope:u,placedSide:G,onArrowChange:R,arrowX:X,arrowY:q,shouldHideArrow:Y},U.createElement(Lb.div,Jn({"data-side":G,"data-align":$},x,{ref:k,style:{...x.style,animation:H?void 0:"none",opacity:null!==(c=V.hide)&&void 0!==c&&c.referenceHidden?0:void 0}}))))})),C_={top:"bottom",right:"left",bottom:"top",left:"right"};function E_(e){return null!==e}const k_=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:s,rects:l,middlewareData:c}=t,u=0!==(null===(n=c.arrow)||void 0===n?void 0:n.centerOffset),d=u?0:e.arrowWidth,f=u?0:e.arrowHeight,[h,p]=T_(s),m={start:"0%",center:"50%",end:"100%"}[p],g=(null!==(r=null===(o=c.arrow)||void 0===o?void 0:o.x)&&void 0!==r?r:0)+d/2,v=(null!==(i=null===(a=c.arrow)||void 0===a?void 0:a.y)&&void 0!==i?i:0)+f/2;let y="",w="";return"bottom"===h?(y=u?m:`${g}px`,w=-f+"px"):"top"===h?(y=u?m:`${g}px`,w=`${l.floating.height+f}px`):"right"===h?(y=-f+"px",w=u?m:`${v}px`):"left"===h&&(y=`${l.floating.width+f}px`,w=u?m:`${v}px`),{data:{x:y,y:w}}}});function T_(e){const[t,n="center"]=e.split("-");return[t,n]}const R_=e=>{const{__scopePopper:t,children:n}=e,[r,o]=U.useState(null);return U.createElement(v_,{scope:t,anchor:r,onAnchorChange:o},n)},P_=w_,I_=__,M_=U.forwardRef((function(e,t){const{__scopePopper:n,...r}=e,o=x_("PopperArrow",n),i=C_[o.placedSide];return U.createElement("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0}},U.createElement(h_,Jn({},r,{ref:t,style:{...r.style,display:"block"}})))})),z_=U.forwardRef(((e,t)=>{var n;const{container:r=(null===globalThis||void 0===globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body),...o}=e;return r?wp.createPortal(U.createElement(Lb.div,Jn({},o,{ref:t})),r):null})),O_=U.forwardRef(((e,t)=>U.createElement(Lb.span,Jn({},e,{ref:t,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",...e.style}})))),L_=O_,A_=[" ","Enter","ArrowUp","ArrowDown"],D_=[" ","Enter"],F_="Select",[N_,B_,H_]=Ab(F_),[V_,j_]=Tb(F_,[H_,g_]),W_=g_(),[U_,G_]=V_(F_),[$_,K_]=V_(F_),X_=U.forwardRef(((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,i=W_(n),a=G_("SelectTrigger",n),s=a.disabled||r,l=kb(t,a.onTriggerChange),c=B_(n),[u,d,f]=xC((e=>{const t=c().filter((e=>!e.disabled)),n=t.find((e=>e.value===a.value)),r=_C(t,e,n);void 0!==r&&a.onValueChange(r.value)})),h=()=>{s||(a.onOpenChange(!0),f())};return U.createElement(P_,Jn({asChild:!0},i),U.createElement(Lb.button,Jn({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:s,"data-disabled":s?"":void 0,"data-placeholder":void 0===a.value?"":void 0},o,{ref:l,onClick:Cb(o.onClick,(e=>{e.currentTarget.focus()})),onPointerDown:Cb(o.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:Cb(o.onKeyDown,(e=>{const t=""!==u.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||d(e.key),t&&" "===e.key||A_.includes(e.key)&&(h(),e.preventDefault())}))})))})),q_=U.forwardRef(((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:i,placeholder:a,...s}=e,l=G_("SelectValue",n),{onValueNodeHasChildrenChange:c}=l,u=void 0!==i,d=kb(t,l.onValueNodeChange);return Db((()=>{c(u)}),[c,u]),U.createElement(Lb.span,Jn({},s,{ref:d,style:{pointerEvents:"none"}}),void 0===l.value&&void 0!==a?a:i)})),Y_=U.forwardRef(((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return U.createElement(Lb.span,Jn({"aria-hidden":!0},o,{ref:t}),r||"▼")})),Q_="SelectContent",Z_=U.forwardRef(((e,t)=>{const n=G_(Q_,e.__scopeSelect),[r,o]=U.useState();if(Db((()=>{o(new DocumentFragment)}),[]),!n.open){const t=r;return t?yp.createPortal(U.createElement(eC,{scope:e.__scopeSelect},U.createElement(N_.Slot,{scope:e.__scopeSelect},U.createElement("div",null,e.children))),t):null}return U.createElement(nC,Jn({},e,{ref:t}))})),J_=10,[eC,tC]=V_(Q_),nC=U.forwardRef(((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:a,side:s,sideOffset:l,align:c,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:h,sticky:p,hideWhenDetached:m,avoidCollisions:g,...v}=e,y=G_(Q_,n),[w,b]=U.useState(null),[S,x]=U.useState(null),_=kb(t,(e=>b(e))),[C,E]=U.useState(null),[k,T]=U.useState(null),R=B_(n),[P,I]=U.useState(!1),M=U.useRef(!1);U.useEffect((()=>{if(w)return Vm(w)}),[w]),U.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:jS()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:jS()),VS++,()=>{1===VS&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),VS--}}),[]);const z=U.useCallback((e=>{const[t,...n]=R().map((e=>e.ref.current)),[r]=n.slice(-1),o=document.activeElement;for(const i of e){if(i===o)return;if(null==i||i.scrollIntoView({block:"nearest"}),i===t&&S&&(S.scrollTop=0),i===r&&S&&(S.scrollTop=S.scrollHeight),null==i||i.focus(),document.activeElement!==o)return}}),[R,S]),O=U.useCallback((()=>z([C,w])),[z,C,w]);U.useEffect((()=>{P&&O()}),[P,O]);const{onOpenChange:L,triggerPointerDownPosRef:A}=y;U.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=A.current)||void 0===r?void 0:r.x)&&void 0!==n?n:0)),y:Math.abs(Math.round(t.pageY)-(null!==(o=null===(i=A.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)||L(!1),document.removeEventListener("pointermove",t),A.current=null};return null!==A.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}}),[w,L,A]),U.useEffect((()=>{const e=()=>L(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}}),[L]);const[D,F]=xC((e=>{const t=R().filter((e=>!e.disabled)),n=t.find((e=>e.ref.current===document.activeElement)),r=_C(t,e,n);r&&setTimeout((()=>r.ref.current.focus()))})),N=U.useCallback(((e,t,n)=>{const r=!M.current&&!n;(void 0!==y.value&&y.value===t||r)&&(E(e),r&&(M.current=!0))}),[y.value]),B=U.useCallback((()=>null==w?void 0:w.focus()),[w]),H=U.useCallback(((e,t,n)=>{const r=!M.current&&!n;(void 0!==y.value&&y.value===t||r)&&T(e)}),[y.value]),V="popper"===r?oC:rC,j=V===oC?{side:s,sideOffset:l,align:c,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:h,sticky:p,hideWhenDetached:m,avoidCollisions:g}:{};return U.createElement(eC,{scope:n,content:w,viewport:S,onViewportChange:x,itemRefCallback:N,selectedItem:C,onItemLeave:B,itemTextRefCallback:H,focusSelectedItem:O,selectedItemText:k,position:r,isPositioned:P,searchRef:D},U.createElement(Lm,{as:Pb,allowPinchZoom:!0},U.createElement($S,{asChild:!0,trapped:y.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:Cb(o,(e=>{var t;null===(t=y.trigger)||void 0===t||t.focus({preventScroll:!0}),e.preventDefault()}))},U.createElement(NS,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>y.onOpenChange(!1)},U.createElement(V,Jn({role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:e=>e.preventDefault()},v,j,{onPlaced:()=>I(!0),ref:_,style:{display:"flex",flexDirection:"column",outline:"none",...v.style},onKeyDown:Cb(v.onKeyDown,(e=>{const t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||F(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=R().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((()=>z(t))),e.preventDefault()}}))}))))))})),rC=U.forwardRef(((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,i=G_(Q_,n),a=tC(Q_,n),[s,l]=U.useState(null),[c,u]=U.useState(null),d=kb(t,(e=>u(e))),f=B_(n),h=U.useRef(!1),p=U.useRef(!0),{viewport:m,selectedItem:g,selectedItemText:v,focusSelectedItem:y}=a,w=U.useCallback((()=>{if(i.trigger&&i.valueNode&&s&&c&&m&&g&&v){const e=i.trigger.getBoundingClientRect(),t=c.getBoundingClientRect(),n=i.valueNode.getBoundingClientRect(),o=v.getBoundingClientRect();if("rtl"!==i.dir){const r=o.left-t.left,i=n.left-r,a=e.left-i,l=e.width+a,c=Math.max(l,t.width),u=window.innerWidth-J_,d=zS(i,[J_,u-c]);s.style.minWidth=l+"px",s.style.left=d+"px"}else{const r=t.right-o.right,i=window.innerWidth-n.right-r,a=window.innerWidth-e.right-i,l=e.width+a,c=Math.max(l,t.width),u=window.innerWidth-J_,d=zS(i,[J_,u-c]);s.style.minWidth=l+"px",s.style.right=d+"px"}const a=f(),l=window.innerHeight-2*J_,u=m.scrollHeight,d=window.getComputedStyle(c),p=parseInt(d.borderTopWidth,10),y=parseInt(d.paddingTop,10),w=parseInt(d.borderBottomWidth,10),b=p+y+u+parseInt(d.paddingBottom,10)+w,S=Math.min(5*g.offsetHeight,b),x=window.getComputedStyle(m),_=parseInt(x.paddingTop,10),C=parseInt(x.paddingBottom,10),E=e.top+e.height/2-J_,k=l-E,T=g.offsetHeight/2,R=p+y+(g.offsetTop+T),P=b-R;if(R<=E){const e=g===a[a.length-1].ref.current;s.style.bottom="0px";const t=c.clientHeight-m.offsetTop-m.offsetHeight,n=R+Math.max(k,T+(e?C:0)+t+w);s.style.height=n+"px"}else{const e=g===a[0].ref.current;s.style.top="0px";const t=Math.max(E,p+m.offsetTop+(e?_:0)+T)+P;s.style.height=t+"px",m.scrollTop=R-E+m.offsetTop}s.style.margin=`${J_}px 0`,s.style.minHeight=S+"px",s.style.maxHeight=l+"px",null==r||r(),requestAnimationFrame((()=>h.current=!0))}}),[f,i.trigger,i.valueNode,s,c,m,g,v,i.dir,r]);Db((()=>w()),[w]);const[b,S]=U.useState();Db((()=>{c&&S(window.getComputedStyle(c).zIndex)}),[c]);const x=U.useCallback((e=>{e&&!0===p.current&&(w(),null==y||y(),p.current=!1)}),[w,y]);return U.createElement(iC,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:h,onScrollButtonChange:x},U.createElement("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:b}},U.createElement(Lb.div,Jn({},o,{ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}}))))})),oC=U.forwardRef(((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=J_,...i}=e,a=W_(n);return U.createElement(I_,Jn({},a,i,{ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}))})),[iC,aC]=V_(Q_,{}),sC="SelectViewport",lC=U.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e,o=tC(sC,n),i=aC(sC,n),a=kb(t,o.onViewportChange),s=U.useRef(0);return U.createElement(U.Fragment,null,U.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}"}}),U.createElement(N_.Slot,{scope:n},U.createElement(Lb.div,Jn({"data-radix-select-viewport":"",role:"presentation"},r,{ref:a,style:{position:"relative",flex:1,overflow:"auto",...r.style},onScroll:Cb(r.onScroll,(e=>{const t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=i;if(null!=r&&r.current&&n){const e=Math.abs(s.current-t.scrollTop);if(e>0){const r=window.innerHeight-2*J_,o=parseFloat(n.style.minHeight),i=parseFloat(n.style.height),a=Math.max(o,i);if(a<r){const o=a+e,i=Math.min(r,o),s=o-i;n.style.height=i+"px","0px"===n.style.bottom&&(t.scrollTop=s>0?s:0,n.style.justifyContent="flex-end")}}}s.current=t.scrollTop}))}))))}));V_("SelectGroup");const cC="SelectItem",[uC,dC]=V_(cC),fC=U.forwardRef(((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,...a}=e,s=G_(cC,n),l=tC(cC,n),c=s.value===r,[u,d]=U.useState(null!=i?i:""),[f,h]=U.useState(!1),p=kb(t,(e=>{var t;return null===(t=l.itemRefCallback)||void 0===t?void 0:t.call(l,e,r,o)})),m=Bb(),g=()=>{o||(s.onValueChange(r),s.onOpenChange(!1))};return U.createElement(uC,{scope:n,value:r,disabled:o,textId:m,isSelected:c,onItemTextChange:U.useCallback((e=>{d((t=>{var n;return t||(null!==(n=null==e?void 0:e.textContent)&&void 0!==n?n:"").trim()}))}),[])},U.createElement(N_.ItemSlot,{scope:n,value:r,disabled:o,textValue:u},U.createElement(Lb.div,Jn({role:"option","aria-labelledby":m,"data-highlighted":f?"":void 0,"aria-selected":c&&f,"data-state":c?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1},a,{ref:p,onFocus:Cb(a.onFocus,(()=>h(!0))),onBlur:Cb(a.onBlur,(()=>h(!1))),onPointerUp:Cb(a.onPointerUp,g),onPointerMove:Cb(a.onPointerMove,(e=>{var t;o?null===(t=l.onItemLeave)||void 0===t||t.call(l):e.currentTarget.focus({preventScroll:!0})})),onPointerLeave:Cb(a.onPointerLeave,(e=>{var t;e.currentTarget===document.activeElement&&(null===(t=l.onItemLeave)||void 0===t||t.call(l))})),onKeyDown:Cb(a.onKeyDown,(e=>{var t;""!==(null===(t=l.searchRef)||void 0===t?void 0:t.current)&&" "===e.key||(D_.includes(e.key)&&g()," "===e.key&&e.preventDefault())}))}))))})),hC="SelectItemText",pC=U.forwardRef(((e,t)=>{const{__scopeSelect:n,className:r,style:o,...i}=e,a=G_(hC,n),s=tC(hC,n),l=dC(hC,n),c=K_(hC,n),[u,d]=U.useState(null),f=kb(t,(e=>d(e)),l.onItemTextChange,(e=>{var t;return null===(t=s.itemTextRefCallback)||void 0===t?void 0:t.call(s,e,l.value,l.disabled)})),h=null==u?void 0:u.textContent,p=U.useMemo((()=>U.createElement("option",{key:l.value,value:l.value,disabled:l.disabled},h)),[l.disabled,l.value,h]),{onNativeOptionAdd:m,onNativeOptionRemove:g}=c;return Db((()=>(m(p),()=>g(p))),[m,g,p]),U.createElement(U.Fragment,null,U.createElement(Lb.span,Jn({id:l.textId},i,{ref:f})),l.isSelected&&a.valueNode&&!a.valueNodeHasChildren?yp.createPortal(i.children,a.valueNode):null)})),mC=U.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e;return dC("SelectItemIndicator",n).isSelected?U.createElement(Lb.span,Jn({"aria-hidden":!0},r,{ref:t})):null})),gC="SelectScrollUpButton",vC=U.forwardRef(((e,t)=>{const n=tC(gC,e.__scopeSelect),r=aC(gC,e.__scopeSelect),[o,i]=U.useState(!1),a=kb(t,r.onScrollButtonChange);return Db((()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollTop>0;i(e)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}}),[n.viewport,n.isPositioned]),o?U.createElement(bC,Jn({},e,{ref:a,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}})):null})),yC="SelectScrollDownButton",wC=U.forwardRef(((e,t)=>{const n=tC(yC,e.__scopeSelect),r=aC(yC,e.__scopeSelect),[o,i]=U.useState(!1),a=kb(t,r.onScrollButtonChange);return Db((()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;i(n)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}}),[n.viewport,n.isPositioned]),o?U.createElement(bC,Jn({},e,{ref:a,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}})):null})),bC=U.forwardRef(((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,i=tC("SelectScrollButton",n),a=U.useRef(null),s=B_(n),l=U.useCallback((()=>{null!==a.current&&(window.clearInterval(a.current),a.current=null)}),[]);return U.useEffect((()=>()=>l()),[l]),Db((()=>{var e;const t=s().find((e=>e.ref.current===document.activeElement));null==t||null===(e=t.ref.current)||void 0===e||e.scrollIntoView({block:"nearest"})}),[s]),U.createElement(Lb.div,Jn({"aria-hidden":!0},o,{ref:t,style:{flexShrink:0,...o.style},onPointerDown:Cb(o.onPointerDown,(()=>{null===a.current&&(a.current=window.setInterval(r,50))})),onPointerMove:Cb(o.onPointerMove,(()=>{var e;null===(e=i.onItemLeave)||void 0===e||e.call(i),null===a.current&&(a.current=window.setInterval(r,50))})),onPointerLeave:Cb(o.onPointerLeave,(()=>{l()}))}))})),SC=U.forwardRef(((e,t)=>{const{value:n,...r}=e,o=U.useRef(null),i=kb(t,o),a=lS(n);return U.useEffect((()=>{const e=o.current,t=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(t,"value").set;if(a!==n&&r){const t=new Event("change",{bubbles:!0});r.call(e,n),e.dispatchEvent(t)}}),[a,n]),U.createElement(O_,{asChild:!0},U.createElement("select",Jn({},r,{ref:i,defaultValue:n})))}));function xC(e){const t=Hb(e),n=U.useRef(""),r=U.useRef(0),o=U.useCallback((e=>{const o=n.current+e;t(o),function e(t){n.current=t,window.clearTimeout(r.current),""!==t&&(r.current=window.setTimeout((()=>e("")),1e3))}(o)}),[t]),i=U.useCallback((()=>{n.current="",window.clearTimeout(r.current)}),[]);return U.useEffect((()=>()=>window.clearTimeout(r.current)),[]),[n,o,i]}function _C(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=(a=e,s=Math.max(o,0),a.map(((e,t)=>a[(s+t)%a.length])));var a,s;1===r.length&&(i=i.filter((e=>e!==n)));const l=i.find((e=>e.textValue.toLowerCase().startsWith(r.toLowerCase())));return l!==n?l:void 0}SC.displayName="BubbleSelect";const CC=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:i,value:a,defaultValue:s,onValueChange:l,dir:c,name:u,autoComplete:d,disabled:f,required:h}=e,p=W_(t),[m,g]=U.useState(null),[v,y]=U.useState(null),[w,b]=U.useState(!1),S=Wb(c),[x=!1,_]=Vb({prop:r,defaultProp:o,onChange:i}),[C,E]=Vb({prop:a,defaultProp:s,onChange:l}),k=U.useRef(null),T=!m||Boolean(m.closest("form")),[R,P]=U.useState(new Set),I=Array.from(R).map((e=>e.props.value)).join(";");return U.createElement(R_,p,U.createElement(U_,{required:h,scope:t,trigger:m,onTriggerChange:g,valueNode:v,onValueNodeChange:y,valueNodeHasChildren:w,onValueNodeHasChildrenChange:b,contentId:Bb(),value:C,onValueChange:E,open:x,onOpenChange:_,dir:S,triggerPointerDownPosRef:k,disabled:f},U.createElement(N_.Provider,{scope:t},U.createElement($_,{scope:e.__scopeSelect,onNativeOptionAdd:U.useCallback((e=>{P((t=>new Set(t).add(e)))}),[]),onNativeOptionRemove:U.useCallback((e=>{P((t=>{const n=new Set(t);return n.delete(e),n}))}),[])},n)),T?U.createElement(SC,{key:I,"aria-hidden":!0,required:h,tabIndex:-1,name:u,autoComplete:d,value:C,onChange:e=>E(e.target.value),disabled:f},void 0===C?U.createElement("option",{value:""}):null,Array.from(R)):null))},EC=X_,kC=q_,TC=Y_,RC=e=>U.createElement(z_,Jn({asChild:!0},e)),PC=Z_,IC=lC,MC=fC,zC=pC,OC=mC,LC=vC,AC=wC,DC=U.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),FC=U.createContext({}),NC=U.createContext(null),BC="undefined"!=typeof document,HC=BC?U.useLayoutEffect:U.useEffect,VC=U.createContext({strict:!1});function jC(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function WC(e){return"string"==typeof e||Array.isArray(e)}function UC(e){return"object"==typeof e&&"function"==typeof e.start}const GC=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],$C=["initial",...GC];function KC(e){return UC(e.animate)||$C.some((t=>WC(e[t])))}function XC(e){return Boolean(KC(e)||e.variants)}function qC(e){const{initial:t,animate:n}=function(e,t){if(KC(e)){const{initial:t,animate:n}=e;return{initial:!1===t||WC(t)?t:void 0,animate:WC(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,U.useContext(FC));return U.useMemo((()=>({initial:t,animate:n})),[YC(t),YC(n)])}function YC(e){return Array.isArray(e)?e.join(" "):e}const QC={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"]},ZC={};for(const LD in QC)ZC[LD]={isEnabled:e=>QC[LD].some((t=>!!e[t]))};function JC(e){const t=U.useRef(null);return null===t.current&&(t.current=e()),t.current}const eE={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let tE=1;const nE=U.createContext({}),rE=U.createContext({}),oE=Symbol.for("motionComponentSymbol");function iE({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&function(e){for(const t in e)ZC[t]={...ZC[t],...e[t]}}(e);const i=U.forwardRef((function(i,a){let s;const l={...U.useContext(DC),...i,layoutId:aE(i)},{isStatic:c}=l,u=qC(i),d=c?void 0:JC((()=>{if(eE.hasEverUpdated)return tE++})),f=r(i,c);if(!c&&BC){u.visualElement=function(e,t,n,r){const{visualElement:o}=U.useContext(FC),i=U.useContext(VC),a=U.useContext(NC),s=U.useContext(DC).reducedMotion,l=U.useRef();r=r||i.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:o,props:n,presenceContext:a,blockInitialAnimation:!!a&&!1===a.initial,reducedMotionConfig:s}));const c=l.current;return U.useInsertionEffect((()=>{c&&c.update(n,a)})),HC((()=>{c&&c.render()})),U.useEffect((()=>{c&&c.updateFeatures()})),(window.HandoffAppearAnimations?HC:U.useEffect)((()=>{c&&c.animationState&&c.animationState.animateChanges()})),c}(o,f,l,t);const n=U.useContext(rE),r=U.useContext(VC).strict;u.visualElement&&(s=u.visualElement.loadFeatures(l,r,e,d,n))}return U.createElement(FC.Provider,{value:u},s&&u.visualElement?U.createElement(s,{visualElement:u.visualElement,...l}):null,n(o,i,d,function(e,t,n){return U.useCallback((r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):jC(n)&&(n.current=r))}),[t])}(f,u.visualElement,a),f,c,u.visualElement))}));return i[oE]=o,i}function aE({layoutId:e}){const t=U.useContext(nE).id;return t&&void 0!==e?t+"-"+e:e}function sE(e){function t(t,n={}){return iE(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 lE=["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 cE(e){return"string"==typeof e&&!e.includes("-")&&!!(lE.indexOf(e)>-1||/[A-Z]/.test(e))}const uE={};const dE=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],fE=new Set(dE);function hE(e,{layout:t,layoutId:n}){return fE.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!uE[e]||"opacity"===e)}const pE=e=>Boolean(e&&e.getVelocity),mE={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},gE=dE.length;const vE=e=>t=>"string"==typeof t&&t.startsWith(e),yE=vE("--"),wE=vE("var(--"),bE=(e,t)=>t&&"number"==typeof e?t.transform(e):e,SE=(e,t,n)=>Math.min(Math.max(n,e),t),xE={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},_E={...xE,transform:e=>SE(0,1,e)},CE={...xE,default:1},EE=e=>Math.round(1e5*e)/1e5,kE=/(-)?([\d]*\.?[\d])+/g,TE=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,RE=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function PE(e){return"string"==typeof e}const IE=e=>({test:t=>PE(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),ME=IE("deg"),zE=IE("%"),OE=IE("px"),LE=IE("vh"),AE=IE("vw"),DE={...zE,parse:e=>zE.parse(e)/100,transform:e=>zE.transform(100*e)},FE={...xE,transform:Math.round},NE={borderWidth:OE,borderTopWidth:OE,borderRightWidth:OE,borderBottomWidth:OE,borderLeftWidth:OE,borderRadius:OE,radius:OE,borderTopLeftRadius:OE,borderTopRightRadius:OE,borderBottomRightRadius:OE,borderBottomLeftRadius:OE,width:OE,maxWidth:OE,height:OE,maxHeight:OE,size:OE,top:OE,right:OE,bottom:OE,left:OE,padding:OE,paddingTop:OE,paddingRight:OE,paddingBottom:OE,paddingLeft:OE,margin:OE,marginTop:OE,marginRight:OE,marginBottom:OE,marginLeft:OE,rotate:ME,rotateX:ME,rotateY:ME,rotateZ:ME,scale:CE,scaleX:CE,scaleY:CE,scaleZ:CE,skew:ME,skewX:ME,skewY:ME,distance:OE,translateX:OE,translateY:OE,translateZ:OE,x:OE,y:OE,z:OE,perspective:OE,transformPerspective:OE,opacity:_E,originX:DE,originY:DE,originZ:OE,zIndex:FE,fillOpacity:_E,strokeOpacity:_E,numOctaves:FE};function BE(e,t,n,r){const{style:o,vars:i,transform:a,transformOrigin:s}=e;let l=!1,c=!1,u=!0;for(const d in t){const e=t[d];if(yE(d)){i[d]=e;continue}const n=NE[d],r=bE(e,n);if(fE.has(d)){if(l=!0,a[d]=r,!u)continue;e!==(n.default||0)&&(u=!1)}else d.startsWith("origin")?(c=!0,s[d]=r):o[d]=r}if(t.transform||(l||r?o.transform=function(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let a=0;a<gE;a++){const t=dE[a];void 0!==e[t]&&(i+=`${mE[t]||t}(${e[t]}) `)}return t&&!e.z&&(i+="translateZ(0)"),i=i.trim(),o?i=o(e,r?"":i):n&&r&&(i="none"),i}(e.transform,n,u,r):o.transform&&(o.transform="none")),c){const{originX:e="50%",originY:t="50%",originZ:n=0}=s;o.transformOrigin=`${e} ${t} ${n}`}}const HE=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function VE(e,t,n){for(const r in t)pE(t[r])||hE(r,n)||(e[r]=t[r])}function jE(e,t,n){const r={};return VE(r,e.style||{},e),Object.assign(r,function({transformTemplate:e},t,n){return U.useMemo((()=>{const r=HE();return BE(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)}),[t])}(e,t,n)),e.transformValues?e.transformValues(r):r}function WE(e,t,n){const r={},o=jE(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 UE=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 GE(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||UE.has(e)}let $E=e=>!GE(e);try{(KE=require("@emotion/is-prop-valid").default)&&($E=e=>e.startsWith("on")?!GE(e):KE(e))}catch(OD){}var KE;function XE(e,t,n){return"string"==typeof e?e:OE.transform(t+n*e)}const qE={offset:"stroke-dashoffset",array:"stroke-dasharray"},YE={offset:"strokeDashoffset",array:"strokeDasharray"};function QE(e,{attrX:t,attrY:n,originX:r,originY:o,pathLength:i,pathSpacing:a=1,pathOffset:s=0,...l},c,u,d){if(BE(e,l,c,d),u)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:f,style:h,dimensions:p}=e;f.transform&&(p&&(h.transform=f.transform),delete f.transform),p&&(void 0!==r||void 0!==o||h.transform)&&(h.transformOrigin=function(e,t,n){return`${XE(t,e.x,e.width)} ${XE(n,e.y,e.height)}`}(p,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?qE:YE;e[i.offset]=OE.transform(-r);const a=OE.transform(t),s=OE.transform(n);e[i.array]=`${a} ${s}`}(f,i,a,s,!1)}const ZE=()=>({...HE(),attrs:{}}),JE=e=>"string"==typeof e&&"svg"===e.toLowerCase();function ek(e,t,n,r){const o=U.useMemo((()=>{const n=ZE();return QE(n,t,{enableHardwareAcceleration:!1},JE(r),e.transformTemplate),{...n.attrs,style:{...n.style}}}),[t]);if(e.style){const t={};VE(t,e.style,e),o.style={...t,...o.style}}return o}function tk(e=!1){return(t,n,r,o,{latestValues:i},a)=>{const s=(cE(t)?ek:WE)(n,i,a,t),l=function(e,t,n){const r={};for(const o in e)"values"===o&&"object"==typeof e.values||($E(o)||!0===n&&GE(o)||!t&&!GE(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(n,"string"==typeof t,e),c={...l,...s,ref:o},{children:u}=n,d=U.useMemo((()=>pE(u)?u.get():u),[u]);return r&&(c["data-projection-id"]=r),U.createElement(t,{...c,children:d})}}const nk=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function rk(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 ok=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function ik(e,t,n,r){rk(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(ok.has(o)?o:nk(o),t.attrs[o])}function ak(e,t){const{style:n}=e,r={};for(const o in n)(pE(n[o])||t.style&&pE(t.style[o])||hE(o,e))&&(r[o]=n[o]);return r}function sk(e,t){const n=ak(e,t);for(const r in e)if(pE(e[r])||pE(t[r])){n["x"===r||"y"===r?"attr"+r.toUpperCase():r]=e[r]}return n}function lk(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 ck=e=>Array.isArray(e),uk=e=>Boolean(e&&"object"==typeof e&&e.mix&&e.toValue),dk=e=>ck(e)?e[e.length-1]||0:e;function fk(e){const t=pE(e)?e.get():e;return uk(t)?t.toValue():t}const hk=e=>(t,n)=>{const r=U.useContext(FC),o=U.useContext(NC),i=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const a={latestValues:pk(r,o,i,e),renderState:t()};return n&&(a.mount=e=>n(r,e,a)),a}(e,t,r,o);return n?i():JC(i)};function pk(e,t,n,r){const o={},i=r(e,{});for(const f in i)o[f]=fk(i[f]);let{initial:a,animate:s}=e;const l=KC(e),c=XC(e);t&&c&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let u=!!n&&!1===n.initial;u=u||!1===a;const d=u?s:a;if(d&&"boolean"!=typeof d&&!UC(d)){(Array.isArray(d)?d:[d]).forEach((t=>{const n=lk(e,t);if(!n)return;const{transitionEnd:r,transition:i,...a}=n;for(const e in a){let t=a[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 mk={useVisualState:hk({scrapeMotionValuesFromProps:sk,createRenderState:ZE,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}}QE(n,r,{enableHardwareAcceleration:!1},JE(t.tagName),e.transformTemplate),ik(t,n)}})},gk={useVisualState:hk({scrapeMotionValuesFromProps:ak,createRenderState:HE})};function vk(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const yk=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function wk(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const bk=e=>t=>yk(t)&&e(t,wk(t));function Sk(e,t,n,r){return vk(e,t,bk(n),r)}const xk=(e,t)=>n=>t(e(n)),_k=(...e)=>e.reduce(xk);function Ck(e){let t=null;return()=>{const n=()=>{t=null};return null===t&&(t=e,n)}}const Ek=Ck("dragHorizontal"),kk=Ck("dragVertical");function Tk(e){let t=!1;if("y"===e)t=kk();else if("x"===e)t=Ek();else{const e=Ek(),n=kk();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function Rk(){const e=Tk(!0);return!e||(e(),!1)}class Pk{constructor(e){this.isMounted=!1,this.node=e}update(){}}const Ik={delta:0,timestamp:0,isProcessing:!1};let Mk=!0,zk=!1;const Ok=["read","update","preRender","render","postRender"],Lk=Ok.reduce(((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,o=!1,i=!1;const a=new WeakSet,s={schedule:(e,i=!1,s=!1)=>{const l=s&&o,c=l?t:n;return i&&a.add(e),-1===c.indexOf(e)&&(c.push(e),l&&o&&(r=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),a.delete(e)},process:l=>{if(o)i=!0;else{if(o=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let n=0;n<r;n++){const r=t[n];r(l),a.has(r)&&(s.schedule(r),e())}o=!1,i&&(i=!1,s.process(l))}}};return s}((()=>zk=!0)),e)),{}),Ak=Ok.reduce(((e,t)=>{const n=Lk[t];return e[t]=(e,t=!1,r=!1)=>(zk||Hk(),n.schedule(e,t,r)),e}),{}),Dk=Ok.reduce(((e,t)=>(e[t]=Lk[t].cancel,e)),{}),Fk=Ok.reduce(((e,t)=>(e[t]=()=>Lk[t].process(Ik),e)),{}),Nk=e=>Lk[e].process(Ik),Bk=e=>{zk=!1,Ik.delta=Mk?1e3/60:Math.max(Math.min(e-Ik.timestamp,40),1),Ik.timestamp=e,Ik.isProcessing=!0,Ok.forEach(Nk),Ik.isProcessing=!1,zk&&(Mk=!1,requestAnimationFrame(Bk))},Hk=()=>{zk=!0,Mk=!0,Ik.isProcessing||requestAnimationFrame(Bk)};function Vk(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End");return Sk(e.current,n,((n,o)=>{if("touch"===n.type||Rk())return;const i=e.getProps();e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",t),i[r]&&Ak.update((()=>i[r](n,o)))}),{passive:!e.getProps()[r]})}const jk=(e,t)=>!!t&&(e===t||jk(e,t.parentElement)),Wk=e=>e;function Uk(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,wk(n))}const Gk=new WeakMap,$k=new WeakMap,Kk=e=>{const t=Gk.get(e.target);t&&t(e)},Xk=e=>{e.forEach(Kk)};function qk(e,t,n){const r=function({root:e,...t}){const n=e||document;$k.has(n)||$k.set(n,{});const r=$k.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(Xk,{root:e,...t})),r[o]}(t);return Gk.set(e,n),r.observe(e),()=>{Gk.delete(e),r.unobserve(e)}}const Yk={some:0,all:1};const Qk={inView:{Feature:class extends Pk{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:Yk[r]};return qk(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 Pk{constructor(){super(...arguments),this.removeStartListeners=Wk,this.removeEndListeners=Wk,this.removeAccessibleListeners=Wk,this.startPointerPress=(e,t)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),r=Sk(window,"pointerup",((e,t)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:r}=this.node.getProps();Ak.update((()=>{jk(this.node.current,e.target)?n&&n(e,t):r&&r(e,t)}))}),{passive:!(n.onTap||n.onPointerUp)}),o=Sk(window,"pointercancel",((e,t)=>this.cancelPress(e,t)),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=_k(r,o),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=vk(this.node.current,"keydown",(e=>{if("Enter"!==e.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=vk(this.node.current,"keyup",(e=>{"Enter"===e.key&&this.checkPressEnd()&&Uk("up",((e,t)=>{const{onTap:n}=this.node.getProps();n&&Ak.update((()=>n(e,t)))}))})),Uk("down",((e,t)=>{this.startPress(e,t)}))})),t=vk(this.node.current,"blur",(()=>{this.isPressing&&Uk("cancel",((e,t)=>this.cancelPress(e,t)))}));this.removeAccessibleListeners=_k(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&&Ak.update((()=>n(e,t)))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Rk()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&Ak.update((()=>n(e,t)))}mount(){const e=this.node.getProps(),t=Sk(this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=vk(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=_k(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends Pk{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=_k(vk(this.node.current,"focus",(()=>this.onFocus())),vk(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends Pk{mount(){this.unmount=_k(Vk(this.node,!0),Vk(this.node,!1))}unmount(){}}}};function Zk(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 Jk(e,t,n){const r=e.getProps();return lk(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 eT="data-"+nk("framerAppearId");let tT=Wk,nT=Wk;const rT=e=>1e3*e,oT=e=>e/1e3,iT=!1,aT=e=>Array.isArray(e)&&"number"==typeof e[0];function sT(e){return Boolean(!e||"string"==typeof e&&cT[e]||aT(e)||Array.isArray(e)&&e.every(sT))}const lT=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,cT={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:lT([0,.65,.55,1]),circOut:lT([.55,0,1,.45]),backIn:lT([.31,.01,.66,-.59]),backOut:lT([.33,1.53,.69,.99])};function uT(e){if(e)return aT(e)?lT(e):Array.isArray(e)?e.map(uT):cT[e]}const dT={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},fT={},hT={};for(const LD in dT)hT[LD]=()=>(void 0===fT[LD]&&(fT[LD]=dT[LD]()),fT[LD]);const pT=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,mT=1e-7,gT=12;function vT(e,t,n,r){if(e===t&&n===r)return Wk;const o=t=>function(e,t,n,r,o){let i,a,s=0;do{a=t+(n-t)/2,i=pT(a,r,o)-e,i>0?n=a:t=a}while(Math.abs(i)>mT&&++s<gT);return a}(t,0,1,e,n);return e=>0===e||1===e?e:pT(o(e),t,r)}const yT=vT(.42,0,1,1),wT=vT(0,0,.58,1),bT=vT(.42,0,.58,1),ST=e=>Array.isArray(e)&&"number"!=typeof e[0],xT=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,_T=e=>t=>1-e(1-t),CT=e=>1-Math.sin(Math.acos(e)),ET=_T(CT),kT=xT(ET),TT=vT(.33,1.53,.69,.99),RT=_T(TT),PT=xT(RT),IT={linear:Wk,easeIn:yT,easeInOut:bT,easeOut:wT,circIn:CT,circInOut:kT,circOut:ET,backIn:RT,backInOut:PT,backOut:TT,anticipate:e=>(e*=2)<1?.5*RT(e):.5*(2-Math.pow(2,-10*(e-1)))},MT=e=>{if(Array.isArray(e)){nT(4===e.length);const[t,n,r,o]=e;return vT(t,n,r,o)}return"string"==typeof e?IT[e]:e},zT=(e,t)=>n=>Boolean(PE(n)&&RE.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),OT=(e,t,n)=>r=>{if(!PE(r))return r;const[o,i,a,s]=r.match(kE);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},LT={...xE,transform:e=>Math.round((e=>SE(0,255,e))(e))},AT={test:zT("rgb","red"),parse:OT("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+LT.transform(e)+", "+LT.transform(t)+", "+LT.transform(n)+", "+EE(_E.transform(r))+")"};const DT={test:zT("#"),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:AT.transform},FT={test:zT("hsl","hue"),parse:OT("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+zE.transform(EE(t))+", "+zE.transform(EE(n))+", "+EE(_E.transform(r))+")"},NT={test:e=>AT.test(e)||DT.test(e)||FT.test(e),parse:e=>AT.test(e)?AT.parse(e):FT.test(e)?FT.parse(e):DT.parse(e),transform:e=>PE(e)?e:e.hasOwnProperty("red")?AT.transform(e):FT.transform(e)},BT=(e,t,n)=>-n*e+n*t+e;function HT(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 VT=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},jT=[DT,AT,FT];function WT(e){const t=(n=e,jT.find((e=>e.test(n))));var n;let r=t.parse(e);return t===FT&&(r=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,i=0,a=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;o=HT(s,r,e+1/3),i=HT(s,r,e),a=HT(s,r,e-1/3)}else o=i=a=n;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*a),alpha:r}}(r)),r}const UT=(e,t)=>{const n=WT(e),r=WT(t),o={...n};return e=>(o.red=VT(n.red,r.red,e),o.green=VT(n.green,r.green,e),o.blue=VT(n.blue,r.blue,e),o.alpha=BT(n.alpha,r.alpha,e),AT.transform(o))},GT="${c}",$T="${n}";function KT(e){"number"==typeof e&&(e=`${e}`);const t=[];let n=0,r=0;const o=e.match(TE);o&&(n=o.length,e=e.replace(TE,GT),t.push(...o.map(NT.parse)));const i=e.match(kE);return i&&(r=i.length,e=e.replace(kE,$T),t.push(...i.map(xE.parse))),{values:t,numColors:n,numNumbers:r,tokenised:e}}function XT(e){return KT(e).values}function qT(e){const{values:t,numColors:n,tokenised:r}=KT(e),o=t.length;return e=>{let t=r;for(let r=0;r<o;r++)t=t.replace(r<n?GT:$T,r<n?NT.transform(e[r]):EE(e[r]));return t}}const YT=e=>"number"==typeof e?0:e;const QT={test:function(e){var t,n;return isNaN(e)&&PE(e)&&((null===(t=e.match(kE))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(TE))||void 0===n?void 0:n.length)||0)>0},parse:XT,createTransformer:qT,getAnimatableNone:function(e){const t=XT(e);return qT(e)(t.map(YT))}};function ZT(e,t){return"number"==typeof e?n=>BT(e,t,n):NT.test(e)?UT(e,t):tR(e,t)}const JT=(e,t)=>{const n=[...e],r=n.length,o=e.map(((e,n)=>ZT(e,t[n])));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}},eR=(e,t)=>{const n={...e,...t},r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=ZT(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}},tR=(e,t)=>{const n=QT.createTransformer(t),r=KT(e),o=KT(t);return r.numColors===o.numColors&&r.numNumbers>=o.numNumbers?_k(JT(r.values,o.values),n):n=>`${n>0?t:e}`},nR=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},rR=(e,t)=>n=>BT(e,t,n);function oR(e,t,n){const r=[],o=n||("number"==typeof(i=e[0])?rR:"string"==typeof i?NT.test(i)?UT:tR:Array.isArray(i)?JT:"object"==typeof i?eR:rR);var i;const a=e.length-1;for(let s=0;s<a;s++){let n=o(e[s],e[s+1]);if(t){const e=Array.isArray(t)?t[s]||Wk:t;n=_k(e,n)}r.push(n)}return r}function iR(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(nT(i===t.length),1===i)return()=>t[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=oR(t,r,o),s=a.length,l=t=>{let n=0;if(s>1)for(;n<e.length-2&&!(t<e[n+1]);n++);const r=nR(e[n],e[n+1],t);return a[n](r)};return n?t=>l(SE(e[0],e[i-1],t)):l}function aR(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=nR(0,t,r);e.push(BT(n,1,o))}}(t,e.length-1),t}function sR({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=ST(r)?r.map(MT):MT(r),i={done:!1,value:t[0]},a=function(e,t){return e.map((e=>e*t))}(n&&n.length===t.length?n:aR(t),e),s=iR(a,t,{ease:Array.isArray(o)?o:(l=t,c=o,l.map((()=>c||bT)).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(i.value=s(t),i.done=t>=e,i)}}function lR(e,t){return t?e*(1e3/t):0}const cR=5;function uR(e,t,n){const r=Math.max(t-cR,0);return lR(n-e(r),t-r)}const dR=.001,fR=.01,hR=10,pR=.05,mR=1;function gR({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;tT(e<=rT(hR));let a=1-t;a=SE(pR,mR,a),e=SE(fR,hR,oT(e)),a<1?(o=t=>{const r=t*a,o=r*e,i=r-n,s=yR(t,a),l=Math.exp(-o);return dR-i/s*l},i=t=>{const r=t*a*e,i=r*n+n,s=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-r),c=yR(Math.pow(t,2),a);return(-o(t)+dR>0?-1:1)*((i-s)*l)/c}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-dR,i=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let r=n;for(let o=1;o<vR;o++)r-=e(r)/t(r);return r}(o,i,5/e);if(e=rT(e),isNaN(s))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(s,2)*r;return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}const vR=12;function yR(e,t){return e*Math.sqrt(1-t*t)}const wR=["duration","bounce"],bR=["stiffness","damping","mass"];function SR(e,t){return t.some((t=>void 0!==e[t]))}function xR({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],a={done:!1,value:o},{stiffness:s,damping:l,mass:c,velocity:u,duration:d,isResolvedFromDuration:f}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!SR(e,bR)&&SR(e,wR)){const n=gR(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}(r),h=u?-oT(u):0,p=l/(2*Math.sqrt(s*c)),m=i-o,g=oT(Math.sqrt(s/c)),v=Math.abs(m)<5;let y;if(n||(n=v?.01:2),t||(t=v?.005:.5),p<1){const e=yR(g,p);y=t=>{const n=Math.exp(-p*g*t);return i-n*((h+p*g*m)/e*Math.sin(e*t)+m*Math.cos(e*t))}}else if(1===p)y=e=>i-Math.exp(-g*e)*(m+(h+g*m)*e);else{const e=g*Math.sqrt(p*p-1);y=t=>{const n=Math.exp(-p*g*t),r=Math.min(e*t,300);return i-n*((h+p*g*m)*Math.sinh(r)+e*m*Math.cosh(r))/e}}return{calculatedDuration:f&&d||null,next:e=>{const r=y(e);if(f)a.done=e>=d;else{let o=h;0!==e&&(o=p<1?uR(y,e,r):0);const s=Math.abs(o)<=n,l=Math.abs(i-r)<=t;a.done=s&&l}return a.value=a.done?i:r,a}}}function _R({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],f={done:!1,value:d},h=e=>void 0===s?l:void 0===l||Math.abs(s-e)<Math.abs(l-e)?s:l;let p=n*t;const m=d+p,g=void 0===a?m:a(m);g!==m&&(p=g-d);const v=e=>-p*Math.exp(-e/r),y=e=>g+v(e),w=e=>{const t=v(e),n=y(e);f.done=Math.abs(t)<=c,f.value=f.done?g:n};let b,S;const x=e=>{var t;(t=f.value,void 0!==s&&t<s||void 0!==l&&t>l)&&(b=e,S=xR({keyframes:[f.value,h(f.value)],velocity:uR(y,e,f.value),damping:o,stiffness:i,restDelta:c,restSpeed:u}))};return x(0),{calculatedDuration:null,next:e=>{let t=!1;return S||void 0!==b||(t=!0,w(e),x(e)),void 0!==b&&e>b?S.next(e-b):(!t&&w(e),f)}}}const CR=e=>{const t=({timestamp:t})=>e(t);return{start:()=>Ak.update(t,!0),stop:()=>Dk.update(t),now:()=>Ik.isProcessing?Ik.timestamp:performance.now()}},ER={decay:_R,inertia:_R,tween:sR,keyframes:sR,spring:xR},kR=2e4;function TR(e){let t=0;let n=e.next(t);for(;!n.done&&t<kR;)t+=50,n=e.next(t);return t>=kR?1/0:t}function RR({autoplay:e=!0,delay:t=0,driver:n=CR,keyframes:r,type:o="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",onPlay:l,onStop:c,onComplete:u,onUpdate:d,...f}){let h,p,m=1,g=!1;const v=()=>{h&&h(),p=new Promise((e=>{h=e}))};let y;v();const w=ER[o]||sR;let b;w!==sR&&"number"!=typeof r[0]&&(b=iR([0,100],r,{clamp:!1}),r=[0,100]);const S=w({...f,keyframes:r});let x;"mirror"===s&&(x=w({...f,keyframes:[...r].reverse(),velocity:-(f.velocity||0)}));let _="idle",C=null,E=null,k=null;null===S.calculatedDuration&&i&&(S.calculatedDuration=TR(S));const{calculatedDuration:T}=S;let R=1/0,P=1/0;null!==T&&(R=T+a,P=R*(i+1)-a);let I=0;const M=e=>{if(null===E)return;m>0&&(E=Math.min(E,e)),I=null!==C?C:(e-E)*m;const n=I-t,o=n<0;I=Math.max(n,0),"finished"===_&&null===C&&(I=P);let l=I,c=S;if(i){const e=I/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"===s?(n=1-n,a&&(n-=a/R)):"mirror"===s&&(c=x));let o=SE(0,1,n);I>P&&(o="reverse"===s&&r?1:0),l=o*R}const u=o?{done:!1,value:r[0]}:c.next(l);b&&(u.value=b(u.value));let{done:f}=u;o||null===T||(f=I>=P);const h=null===C&&("finished"===_||"running"===_&&f||m<0&&I<=0);return d&&d(u.value),h&&L(),u},z=()=>{y&&y.stop(),y=void 0},O=()=>{_="idle",z(),v(),E=k=null},L=()=>{_="finished",u&&u(),z(),v()},A=()=>{if(g)return;y||(y=n(M));const e=y.now();l&&l(),_="running",null!==C?E=e-C:E||(E=e),k=E,C=null,y.start()};e&&A();const D={then:(e,t)=>p.then(e,t),get time(){return oT(I)},set time(e){e=rT(e),I=e,null===C&&y&&0!==m?E=y.now()-e/m:C=e},get duration(){const e=null===S.calculatedDuration?TR(S):S.calculatedDuration;return oT(e)},get speed(){return m},set speed(e){e!==m&&y&&(m=e,D.time=oT(I))},get state(){return _},play:A,pause:()=>{_="paused",C=I},stop:()=>{g=!0,"idle"!==_&&(_="idle",c&&c(),O())},cancel:()=>{null!==k&&M(k),O()},complete:()=>{_="finished"},sample:e=>(E=0,M(e))};return D}const PR=new Set(["opacity","clipPath","filter","transform","backgroundColor"]);function IR(e,t,{onUpdate:n,onComplete:r,...o}){if(!(hT.waapi()&&PR.has(t)&&!o.repeatDelay&&"mirror"!==o.repeatType&&0!==o.damping&&"inertia"!==o.type))return!1;let i,a,s=!1;const l=()=>{a=new Promise((e=>{i=e}))};l();let{keyframes:c,duration:u=300,ease:d}=o;if(((e,t)=>"spring"===t.type||"backgroundColor"===e||!sT(t.ease))(t,o)){const e=RR({...o,repeat:0,delay:0});let t={done:!1,value:c[0]};const n=[];let r=0;for(;!t.done&&r<2e4;)t=e.sample(r),n.push(t.value),r+=10;c=n,u=r-10,d="linear"}const f=function(e,t,n,{delay:r=0,duration:o,repeat:i=0,repeatType:a="loop",ease:s,times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=uT(s);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:r,duration:o,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:"reverse"===a?"alternate":"normal"})}(e.owner.current,t,c,{...o,duration:u,ease:d}),h=()=>{Ak.update((()=>f.cancel())),i(),l()};return f.onfinish=()=>{e.set(function(e,{repeat:t,repeatType:n="loop"}){return e[t&&"loop"!==n&&t%2==1?0:e.length-1]}(c,o)),r&&r(),h()},{then:(e,t)=>a.then(e,t),get time(){return oT(f.currentTime||0)},set time(e){f.currentTime=rT(e)},get speed(){return f.playbackRate},set speed(e){f.playbackRate=e},get duration(){return oT(u)},play:()=>{s||f.play()},pause:()=>f.pause(),stop:()=>{if(s=!0,"idle"===f.playState)return;const{currentTime:t}=f;if(t){const n=RR({...o,autoplay:!1});e.setWithVelocity(n.sample(t-10).value,n.sample(t).value,10)}h()},complete:()=>f.finish(),cancel:h}}const MR={type:"spring",stiffness:500,damping:25,restSpeed:10},zR={type:"keyframes",duration:.8},OR={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},LR=(e,{keyframes:t})=>t.length>2?zR:fE.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:MR:OR,AR=(e,t)=>"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!QT.test(t)||t.startsWith("url("))),DR=new Set(["brightness","contrast","saturate","opacity"]);function FR(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(kE)||[];if(!r)return e;const o=n.replace(r,"");let i=DR.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const NR=/([a-z-]*)\(.*?\)/g,BR={...QT,getAnimatableNone:e=>{const t=e.match(NR);return t?t.map(FR).join(" "):e}},HR={...NE,color:NT,backgroundColor:NT,outlineColor:NT,fill:NT,stroke:NT,borderColor:NT,borderTopColor:NT,borderRightColor:NT,borderBottomColor:NT,borderLeftColor:NT,filter:BR,WebkitFilter:BR},VR=e=>HR[e];function jR(e,t){let n=VR(e);return n!==BR&&(n=QT),n.getAnimatableNone?n.getAnimatableNone(t):void 0}function WR(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function UR(e){return"number"==typeof e?0:jR("",e)}function GR(e,t){return e[t]||e.default||e}const $R=(e,t,n,r={})=>o=>{const i=GR(r,e)||{},a=i.delay||r.delay||0;let{elapsed:s=0}=r;s-=rT(a);const l=function(e,t,n,r){const o=AR(t,n);let i=void 0!==r.from?r.from:e.get();if("none"===i&&o&&"string"==typeof n?i=jR(t,n):WR(i)&&"string"==typeof n?i=UR(n):!Array.isArray(n)&&WR(n)&&"string"==typeof i&&(n=UR(i)),Array.isArray(n)){for(let e=0;e<n.length;e++)null===n[e]&&(n[e]=0===e?i:n[e-1]);return n}return[i,n]}(t,e,n,i),c=l[0],u=l[l.length-1],d=AR(e,c),f=AR(e,u);let h={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...i,delay:-s,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:a,repeatDelay:s,from:l,elapsed:c,...u}){return!!Object.keys(u).length}(i)||(h={...h,...LR(e,h)}),h.duration&&(h.duration=rT(h.duration)),h.repeatDelay&&(h.repeatDelay=rT(h.repeatDelay)),!d||!f||iT||!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:Wk,pause:Wk,stop:Wk,then:e=>(e(),Promise.resolve()),cancel:Wk,complete:Wk});return t?RR({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}(h);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const n=IR(t,e,h);if(n)return n}return RR(h)};function KR(e){return Boolean(pE(e)&&e.add)}const XR=e=>/^0[^.\s]+$/.test(e);function qR(e,t){-1===e.indexOf(t)&&e.push(t)}function YR(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class QR{constructor(){this.subscriptions=[]}add(e){return qR(this.subscriptions,e),()=>YR(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}}class ZR{constructor(e,t={}){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}=Ik;this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,Ak.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=()=>Ak.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=(e=>!isNaN(parseFloat(e)))(this.current),this.owner=t.owner}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new QR);const n=this.events[e].add(t);return"change"===e?()=>{n(),Ak.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?lR(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 JR(e,t){return new ZR(e,t)}const eP=e=>t=>t.test(e),tP=[xE,OE,zE,ME,AE,LE,{test:e=>"auto"===e,parse:e=>e}],nP=e=>tP.find(eP(e)),rP=[...tP,NT,QT],oP=e=>rP.find(eP(e));function iP(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,JR(n))}function aP(e,t){if(!t)return;return(t[e]||t.default||t).from}function sP({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function lP(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:a,...s}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");r&&(i=r);const c=[],u=o&&e.animationState&&e.animationState.getState()[o];for(const d in s){const t=e.getValue(d),r=s[d];if(!t||void 0===r||u&&sP(u,d))continue;const o={delay:n,elapsed:0,...i};if(window.HandoffAppearAnimations&&!t.hasAnimated){const n=e.getProps()[eT];n&&(o.elapsed=window.HandoffAppearAnimations(n,d,t,Ak))}t.start($R(d,t,r,e.shouldReduceMotion&&fE.has(d)?{type:!1}:o));const a=t.animation;KR(l)&&(l.add(d),a.then((()=>l.remove(d)))),c.push(a)}return a&&Promise.all(c).then((()=>{a&&function(e,t){const n=Jk(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const a in i)iP(e,a,dk(i[a]))}(e,a)})),c}function cP(e,t,n={}){const r=Jk(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(lP(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(r=0)=>{const{delayChildren:i=0,staggerChildren:a,staggerDirection:s}=o;return function(e,t,n=0,r=0,o=1,i){const a=[],s=(e.variantChildren.size-1)*r,l=1===o?(e=0)=>e*r:(e=0)=>s-e*r;return Array.from(e.variantChildren).sort(uP).forEach(((e,r)=>{e.notify("AnimationStart",t),a.push(cP(e,t,{...i,delay:n+l(r)}).then((()=>e.notify("AnimationComplete",t))))})),Promise.all(a)}(e,t,i+r,a,s,n)}:()=>Promise.resolve(),{when:s}=o;if(s){const[e,t]="beforeChildren"===s?[i,a]:[a,i];return e().then((()=>t()))}return Promise.all([i(),a(n.delay)])}function uP(e,t){return e.sortNodePosition(t)}const dP=[...GC].reverse(),fP=GC.length;function hP(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=>cP(e,t,n)));r=Promise.all(o)}else if("string"==typeof t)r=cP(e,t,n);else{const o="function"==typeof t?Jk(e,t,n.custom):t;r=Promise.all(lP(e,o,n))}return r.then((()=>e.notify("AnimationComplete",t)))}(e,t,n))))}function pP(e){let t=hP(e);const n={animate:gP(!0),whileInView:gP(),whileHover:gP(),whileTap:gP(),whileDrag:gP(),whileFocus:gP(),exit:gP()};let r=!0;const o=(t,n)=>{const r=Jk(e,n);if(r){const{transition:e,transitionEnd:n,...o}=r;t={...t,...o,...n}}return t};function i(i,a){const s=e.getProps(),l=e.getVariantContext(!0)||{},c=[],u=new Set;let d={},f=1/0;for(let t=0;t<fP;t++){const h=dP[t],p=n[h],m=void 0!==s[h]?s[h]:l[h],g=WC(m),v=h===a?p.isActive:null;!1===v&&(f=t);let y=m===l[h]&&m!==s[h]&&g;if(y&&r&&e.manuallyAnimateOnMount&&(y=!1),p.protectedKeys={...d},!p.isActive&&null===v||!m&&!p.prevProp||UC(m)||"boolean"==typeof m)continue;const w=mP(p.prevProp,m);let b=w||h===a&&p.isActive&&!y&&g||t>f&&g;const S=Array.isArray(m)?m:[m];let x=S.reduce(o,{});!1===v&&(x={});const{prevResolvedValues:_={}}=p,C={..._,...x},E=e=>{b=!0,u.delete(e),p.needsAnimating[e]=!0};for(const e in C){const t=x[e],n=_[e];d.hasOwnProperty(e)||(t!==n?ck(t)&&ck(n)?!Zk(t,n)||w?E(e):p.protectedKeys[e]=!0:void 0!==t?E(e):u.add(e):void 0!==t&&u.has(e)?E(e):p.protectedKeys[e]=!0)}p.prevProp=m,p.prevResolvedValues=x,p.isActive&&(d={...d,...x}),r&&e.blockInitialAnimation&&(b=!1),b&&!y&&c.push(...S.map((e=>({animation:e,options:{type:h,...i}}))))}if(u.size){const t={};u.forEach((n=>{const r=e.getBaseTarget(n);void 0!==r&&(t[n]=r)})),c.push({animation:t})}let h=Boolean(c.length);return r&&!1===s.initial&&!e.manuallyAnimateOnMount&&(h=!1),r=!1,h?t(c):Promise.resolve()}return{animateChanges:i,setActive:function(t,r,o){var a;if(n[t].isActive===r)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach((e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)})),n[t].isActive=r;const s=i(o,t);for(const e in n)n[e].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:()=>n}}function mP(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!Zk(t,e)}function gP(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let vP=0;const yP={animation:{Feature:class extends Pk{constructor(e){super(e),e.animationState||(e.animationState=pP(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),UC(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 Pk{constructor(){super(...arguments),this.id=vP++}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(){}}}},wP=(e,t)=>Math.abs(e-t);class bP{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=_P(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=wP(e.x,t.x),r=wP(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}=Ik;this.history.push({...r,timestamp:o});const{onStart:i,onMove:a}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=SP(t,this.transformPagePoint),Ak.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{if(this.end(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const{onEnd:n,onSessionEnd:r}=this.handlers,o=_P("pointercancel"===e.type?this.lastMoveEventInfo:SP(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),r&&r(e,o)},!yk(e))return;this.handlers=t,this.transformPagePoint=n;const r=SP(wk(e),this.transformPagePoint),{point:o}=r,{timestamp:i}=Ik;this.history=[{...o,timestamp:i}];const{onSessionStart:a}=t;a&&a(e,_P(r,this.history)),this.removeListeners=_k(Sk(window,"pointermove",this.handlePointerMove),Sk(window,"pointerup",this.handlePointerUp),Sk(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Dk.update(this.updatePoint)}}function SP(e,t){return t?{point:t(e.point)}:e}function xP(e,t){return{x:e.x-t.x,y:e.y-t.y}}function _P({point:e},t){return{point:e,delta:xP(e,EP(t)),offset:xP(e,CP(t)),velocity:kP(t,.1)}}function CP(e){return e[0]}function EP(e){return e[e.length-1]}function kP(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=EP(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>rT(t)));)n--;if(!r)return{x:0,y:0};const i=oT(o.timestamp-r.timestamp);if(0===i)return{x:0,y:0};const a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function TP(e){return e.max-e.min}function RP(e,t=0,n=.01){return Math.abs(e-t)<=n}function PP(e,t,n,r=.5){e.origin=r,e.originPoint=BT(t.min,t.max,e.origin),e.scale=TP(n)/TP(t),(RP(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=BT(n.min,n.max,e.origin)-e.originPoint,(RP(e.translate)||isNaN(e.translate))&&(e.translate=0)}function IP(e,t,n,r){PP(e.x,t.x,n.x,r?r.originX:void 0),PP(e.y,t.y,n.y,r?r.originY:void 0)}function MP(e,t,n){e.min=n.min+t.min,e.max=e.min+TP(t)}function zP(e,t,n){e.min=t.min-n.min,e.max=e.min+TP(t)}function OP(e,t,n){zP(e.x,t.x,n.x),zP(e.y,t.y,n.y)}function LP(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 AP(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 DP=.35;function FP(e,t,n){return{min:NP(e,t),max:NP(e,n)}}function NP(e,t){return"number"==typeof e?e:e[t]||0}const BP=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),HP=()=>({x:{min:0,max:0},y:{min:0,max:0}});function VP(e){return[e("x"),e("y")]}function jP({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function WP(e){return void 0===e||1===e}function UP({scale:e,scaleX:t,scaleY:n}){return!WP(e)||!WP(t)||!WP(n)}function GP(e){return UP(e)||$P(e)||e.z||e.rotate||e.rotateX||e.rotateY}function $P(e){return KP(e.x)||KP(e.y)}function KP(e){return e&&"0%"!==e}function XP(e,t,n){return n+t*(e-n)}function qP(e,t,n,r,o){return void 0!==o&&(e=XP(e,o,r)),XP(e,n,r)+t}function YP(e,t=0,n=1,r,o){e.min=qP(e.min,t,n,r,o),e.max=qP(e.max,t,n,r,o)}function QP(e,{x:t,y:n}){YP(e.x,t.translate,t.scale,t.originPoint),YP(e.y,n.translate,n.scale,n.originPoint)}function ZP(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function JP(e,t){e.min=e.min+t,e.max=e.max+t}function eI(e,t,[n,r,o]){const i=void 0!==t[o]?t[o]:.5,a=BT(e.min,e.max,i);YP(e,t[n],t[r],a,t.scale)}const tI=["x","scaleX","originX"],nI=["y","scaleY","originY"];function rI(e,t){eI(e.x,t,tI),eI(e.y,t,nI)}function oI(e,t){return jP(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 iI=new WeakMap;class aI{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=HP(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;this.panSession=new bP(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(wk(e,"page").point)},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:o}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Tk(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),VP((e=>{let t=this.getAxisMotionValue(e).get()||0;if(zE.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];if(r){t=TP(r)*(parseFloat(t)/100)}}}this.originPoint[e]=t})),o&&Ak.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:a}=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}(a),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),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&&Ak.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||!sI(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?BT(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?BT(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&&jC(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!n)&&function(e,{top:t,left:n,bottom:r,right:o}){return{x:LP(e.x,n,o),y:LP(e.y,t,r)}}(n.layoutBox,e),this.elastic=function(e=DP){return!1===e?e=0:!0===e&&(e=DP),{x:FP(e,"left","right"),y:FP(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&VP((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||!jC(e))return!1;const n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const o=function(e,t,n){const r=oI(e,n),{scroll:o}=t;return o&&(JP(r.x,o.offset.x),JP(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:AP(e.x,t.x),y:AP(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=jP(e))}return i}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=VP((a=>{if(!sI(a,t,this.currentDirection))return;let l=s&&s[a]||{};i&&(l={min:0,max:0});const c=r?200:1e6,u=r?40:1e7,d={type:"inertia",velocity:n?e[a]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(a,d)}));return Promise.all(l).then(a)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return n.start($R(e,n,0,t))}stopAnimation(){VP((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){VP((t=>{const{drag:n}=this.getProps();if(!sI(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]-BT(n,i,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!jC(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};VP((e=>{const t=this.getAxisMotionValue(e);if(t){const n=t.get();r[e]=function(e,t){let n=.5;const r=TP(e),o=TP(t);return o>r?n=nR(t.min,t.max-r,e.min):r>o&&(n=nR(e.min,e.max-o,t.min)),SE(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(),VP((t=>{if(!sI(t,e,null))return;const n=this.getAxisMotionValue(t),{min:o,max:i}=this.constraints[t];n.set(BT(o,i,r[t]))}))}addListeners(){if(!this.visualElement.current)return;iI.set(this.visualElement,this);const e=Sk(this.visualElement.current,"pointerdown",(e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)})),t=()=>{const{dragConstraints:e}=this.getProps();jC(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=vk(window,"resize",(()=>this.scalePositionWithinConstraints())),i=n.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(VP((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=DP,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:a}}}function sI(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const lI=e=>(t,n)=>{e&&Ak.update((()=>e(t,n)))};function cI(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const uI={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!OE.test(e))return e;e=parseFloat(e)}return`${cI(e,t.target.x)}% ${cI(e,t.target.y)}%`}},dI=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function fI(e,t,n=1){const[r,o]=function(e){const t=dI.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():wE(o)?fI(o,t,n+1):o}const hI="_$css",pI={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=e.includes("var("),i=[];o&&(e=e.replace(dI,(e=>(i.push(e),hI))));const a=QT.parse(e);if(a.length>5)return r;const s=QT.createTransformer(e),l="number"!=typeof a[0]?1:0,c=n.x.scale*t.x,u=n.y.scale*t.y;a[0+l]/=c,a[1+l]/=u;const d=BT(c,u,.5);"number"==typeof a[2+l]&&(a[2+l]/=d),"number"==typeof a[3+l]&&(a[3+l]/=d);let f=s(a);if(o){let e=0;f=f.replace(hI,(()=>{const t=i[e];return e++,t}))}return f}};class mI extends G.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=e;var i;i=vI,Object.assign(uE,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()})),eE.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()||Ak.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 gI(e){const[t,n]=function(){const e=U.useContext(NC);if(null===e)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=U.useId();return U.useEffect((()=>r(o)),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}(),r=U.useContext(nE);return G.createElement(mI,{...e,layoutGroup:r,switchLayoutGroup:U.useContext(rE),isPresent:t,safeToRemove:n})}const vI={borderRadius:{...uI,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:uI,borderTopRightRadius:uI,borderBottomLeftRadius:uI,borderBottomRightRadius:uI,boxShadow:pI},yI=["TopLeft","TopRight","BottomLeft","BottomRight"],wI=yI.length,bI=e=>"string"==typeof e?parseFloat(e):e,SI=e=>"number"==typeof e||OE.test(e);function xI(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const _I=EI(0,.5,ET),CI=EI(.5,.95,Wk);function EI(e,t,n){return r=>r<e?0:r>t?1:n(nR(e,t,r))}function kI(e,t){e.min=t.min,e.max=t.max}function TI(e,t){kI(e.x,t.x),kI(e.y,t.y)}function RI(e,t,n,r,o){return e=XP(e-=t,1/n,r),void 0!==o&&(e=XP(e,1/o,r)),e}function PI(e,t,[n,r,o],i,a){!function(e,t=0,n=1,r=.5,o,i=e,a=e){zE.test(t)&&(t=parseFloat(t),t=BT(a.min,a.max,t/100)-a.min);if("number"!=typeof t)return;let s=BT(i.min,i.max,r);e===i&&(s-=t),e.min=RI(e.min,t,n,s,o),e.max=RI(e.max,t,n,s,o)}(e,t[n],t[r],t[o],t.scale,i,a)}const II=["x","scaleX","originX"],MI=["y","scaleY","originY"];function zI(e,t,n,r){PI(e.x,t,II,n?n.x:void 0,r?r.x:void 0),PI(e.y,t,MI,n?n.y:void 0,r?r.y:void 0)}function OI(e){return 0===e.translate&&1===e.scale}function LI(e){return OI(e.x)&&OI(e.y)}function AI(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 DI(e){return TP(e.x)/TP(e.y)}class FI{constructor(){this.members=[]}add(e){qR(this.members,e),e.scheduleRender()}remove(e){if(YR(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 NI(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 a=e.x.scale*t.x,s=e.y.scale*t.y;return 1===a&&1===s||(r+=`scale(${a}, ${s})`),r||"none"}const BI=(e,t)=>e.depth-t.depth;class HI{constructor(){this.children=[],this.isDirty=!1}add(e){qR(this.children,e),this.isDirty=!0}remove(e){YR(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(BI),this.isDirty=!1,this.children.forEach(e)}}const VI=["","X","Y","Z"];let jI=0;const WI={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function UI({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(e,n={},r=(null==t?void 0:t())){this.id=jI++,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;WI.totalNodes=WI.resolvedTargetDeltas=WI.recalculatedProjection=0,this.nodes.forEach(KI),this.nodes.forEach(JI),this.nodes.forEach(eM),this.nodes.forEach(XI),e=WI,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 HI)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new QR),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:a}=this.options;if(a&&!a.current&&a.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&&(Dk.read(r),e(i-t))};return Ak.read(r,!0),()=>Dk.read(r)}(r,250),eE.hasAnimatedSinceResize&&(eE.hasAnimatedSinceResize=!1,this.nodes.forEach(ZI))}))}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&a&&(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||a.getDefaultTransition()||aM,{onLayoutAnimationStart:i,onLayoutAnimationComplete:s}=a.getProps(),l=!this.targetLayout||!AI(this.targetLayout,r)||n,c=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,c);const t={...GR(o,"layout"),onPlay:i,onComplete:s};(a.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||0!==this.animationProgress||ZI(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,Dk.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(tM),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(YI);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(sM),this.potentialNodes.clear()),this.nodes.forEach(QI),this.nodes.forEach(GI),this.nodes.forEach($I),this.clearAllSnapshots(),Fk.update(),Fk.preRender(),Fk.render())}clearAllSnapshots(){this.nodes.forEach(qI),this.sharedNodes.forEach(nM)}scheduleUpdateProjection(){Ak.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){Ak.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=HP(),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&&!LI(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;e&&(t||GP(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)),lM((r=n).x),lM(r.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:e}=this.options;if(!e)return HP();const t=e.measureViewportBox(),{scroll:n}=this.root;return n&&(JP(t.x,n.offset.x),JP(t.y,n.offset.y)),t}removeElementScroll(e){const t=HP();TI(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){TI(t,e);const{scroll:n}=this.root;n&&(JP(t.x,-n.offset.x),JP(t.y,-n.offset.y))}JP(t.x,o.offset.x),JP(t.y,o.offset.y)}}return t}applyTransform(e,t=!1){const n=HP();TI(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&&rI(n,{x:-e.scroll.offset.x,y:-e.scroll.offset.y}),GP(e.latestValues)&&rI(n,e.latestValues)}return GP(this.latestValues)&&rI(n,this.latestValues),n}removeTransform(e){const t=HP();TI(t,e);for(let n=0;n<this.path.length;n++){const e=this.path[n];if(!e.instance)continue;if(!GP(e.latestValues))continue;UP(e.latestValues)&&e.updateSnapshot();const r=HP();TI(r,e.measurePageBox()),zI(t,e.latestValues,e.snapshot?e.snapshot.layoutBox:void 0,r)}return GP(this.latestValues)&&zI(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=Ik.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout?(this.relativeParent=e,this.relativeTarget=HP(),this.relativeTargetOrigin=HP(),OP(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),TI(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var a,s,l;if(this.target||(this.target=HP(),this.targetWithTransforms=HP()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.relativeParent.resolvedRelativeTargetAt!==Ik.timestamp&&this.relativeParent.resolveTargetDelta(!0),a=this.target,s=this.relativeTarget,l=this.relativeParent.target,MP(a.x,s.x,l.x),MP(a.y,s.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):TI(this.target,this.layout.layoutBox),QP(this.target,this.targetDelta)):TI(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=HP(),this.relativeTargetOrigin=HP(),OP(this.relativeTargetOrigin,this.target,e.target),TI(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}WI.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!UP(this.parent.latestValues)&&!$P(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===Ik.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;TI(this.layoutCorrected,this.layout.layoutBox),function(e,t,n,r=!1){const o=n.length;if(!o)return;let i,a;t.x=t.y=1;for(let s=0;s<o;s++){i=n[s],a=i.projectionDelta;const o=i.instance;o&&o.style&&"contents"===o.style.display||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&rI(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,QP(e,a)),r&&GP(i.latestValues)&&rI(e,i.latestValues))}t.x=ZP(t.x),t.y=ZP(t.y)}(this.layoutCorrected,this.treeScale,this.path,n);const{target:a}=t;if(!a)return;this.projectionDelta||(this.projectionDelta=BP(),this.projectionDeltaWithTransform=BP());const s=this.treeScale.x,l=this.treeScale.y,c=this.projectionTransform;IP(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.projectionTransform=NI(this.projectionDelta,this.treeScale),this.projectionTransform===c&&this.treeScale.x===s&&this.treeScale.y===l||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a)),WI.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=BP();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const a=HP(),s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,u=Boolean(s&&!c&&!0===this.options.crossfade&&!this.path.some(iM));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;var l,f,h,p;rM(i.x,e.x,n),rM(i.y,e.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(OP(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),l=this.relativeTarget,f=this.relativeTargetOrigin,h=a,p=n,oM(l.x,f.x,h.x,p),oM(l.y,f.y,h.y,p),d&&AI(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||(d=HP()),TI(d,this.relativeTarget)),s&&(this.animationValues=o,function(e,t,n,r,o,i){o?(e.opacity=BT(0,void 0!==n.opacity?n.opacity:1,_I(r)),e.opacityExit=BT(void 0!==t.opacity?t.opacity:1,0,CI(r))):i&&(e.opacity=BT(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let a=0;a<wI;a++){const o=`border${yI[a]}Radius`;let i=xI(t,o),s=xI(n,o);void 0===i&&void 0===s||(i||(i=0),s||(s=0),0===i||0===s||SI(i)===SI(s)?(e[o]=Math.max(BT(bI(i),bI(s),r),0),(zE.test(s)||zE.test(i))&&(e[o]+="%")):e[o]=s)}(t.rotate||n.rotate)&&(e.rotate=BT(t.rotate||0,n.rotate||0,r))}(o,r,this.latestValues,n,u,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Dk.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ak.update((()=>{eE.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const r=pE(e)?e:JR(e);return r.start($R("",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&&cM(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||HP();const t=TP(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=TP(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}TI(t,n),rI(t,o),IP(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new FI);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<VI.length;o++){const t="rotate"+VI[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=fk(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=fk(e.pointerEvents)||""),this.hasProjected&&!GP(this.latestValues)&&(t.transform=o?o({},""):"none",this.hasProjected=!1),t}const a=i.animationValues||i.latestValues;this.applyTransformsToTarget(),r.transform=NI(this.projectionDeltaWithTransform,this.treeScale,a),o&&(r.transform=o(a,r.transform));const{x:s,y:l}=this.projectionDelta;r.transformOrigin=`${100*s.origin}% ${100*l.origin}% 0`,i.animationValues?r.opacity=i===this?null!==(n=null!==(t=a.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:r.opacity=i===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0;for(const c in uE){if(void 0===a[c])continue;const{correct:e,applyTo:t}=uE[c],n="none"===r.transform?a[c]:e(a[c],i);if(t){const e=t.length;for(let o=0;o<e;o++)r[t[o]]=n}else r[c]=n}return this.options.layoutId&&(r.pointerEvents=i===this?fk(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(YI),this.root.sharedNodes.clear()}}}function GI(e){e.updateLayout()}function $I(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?VP((e=>{const r=i?n.measuredBox[e]:n.layoutBox[e],o=TP(r);r.min=t[e].min,r.max=r.min+o})):cM(o,n.layoutBox,t)&&VP((r=>{const o=i?n.measuredBox[r]:n.layoutBox[r],a=TP(t[r]);o.max=o.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+a)}));const a=BP();IP(a,t,n.layoutBox);const s=BP();i?IP(s,e.applyTransform(r,!0),n.measuredBox):IP(s,t,n.layoutBox);const l=!LI(a);let c=!1;if(!e.resumeFrom){const r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:o,layout:i}=r;if(o&&i){const a=HP();OP(a,n.layoutBox,o.layoutBox);const s=HP();OP(s,t,i.layoutBox),AI(a,s)||(c=!0),r.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function KI(e){WI.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 XI(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function qI(e){e.clearSnapshot()}function YI(e){e.clearMeasurements()}function QI(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function ZI(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function JI(e){e.resolveTargetDelta()}function eM(e){e.calcProjection()}function tM(e){e.resetRotation()}function nM(e){e.removeLeadSnapshot()}function rM(e,t,n){e.translate=BT(t.translate,0,n),e.scale=BT(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function oM(e,t,n,r){e.min=BT(t.min,n.min,r),e.max=BT(t.max,n.max,r)}function iM(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const aM={duration:.45,ease:[.4,0,.1,1]};function sM(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 lM(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function cM(e,t,n){return"position"===e||"preserve-aspect"===e&&!RP(DI(t),DI(n),.2)}const uM=UI({attachResizeListener:(e,t)=>vk(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),dM={current:void 0},fM=UI({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!dM.current){const e=new uM(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),dM.current=e}return dM.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),hM={pan:{Feature:class extends Pk{constructor(){super(...arguments),this.removePointerDownListener=Wk}onPointerDown(e){this.session=new bP(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:lI(e),onStart:lI(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&Ak.update((()=>r(e,t)))}}}mount(){this.removePointerDownListener=Sk(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 Pk{constructor(e){super(e),this.removeGroupControls=Wk,this.removeListeners=Wk,this.controls=new aI(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Wk}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:fM,MeasureLayout:gI}},pM=new Set(["width","height","top","left","right","bottom","x","y"]),mM=e=>pM.has(e),gM=e=>e===xE||e===OE,vM=(e,t)=>parseFloat(e.split(", ")[t]),yM=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return vM(o[1],t);{const t=r.match(/^matrix\((.+)\)$/);return t?vM(t[1],e):0}},wM=new Set(["x","y","z"]),bM=dE.filter((e=>!wM.has(e)));const SM={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:yM(4,13),y:yM(5,14)},xM=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(mM);let i=[],a=!1;const s=[];if(o.forEach((o=>{const l=e.getValue(o);if(!e.hasValue(o))return;let c=n[o],u=nP(c);const d=t[o];let f;if(ck(d)){const e=d.length,t=null===d[0]?1:0;c=d[t],u=nP(c);for(let n=t;n<e;n++)f?nT(nP(d[n])===f):f=nP(d[n])}else f=nP(d);if(u!==f)if(gM(u)&&gM(f)){const e=l.get();"string"==typeof e&&l.set(parseFloat(e)),"string"==typeof d?t[o]=parseFloat(d):Array.isArray(d)&&f===OE&&(t[o]=d.map(parseFloat))}else(null==u?void 0:u.transform)&&(null==f?void 0:f.transform)&&(0===c||0===d)?0===c?l.set(f.transform(c)):t[o]=u.transform(d):(a||(i=function(e){const t=[];return bM.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),a=!0),s.push(o),r[o]=void 0!==r[o]?r[o]:t[o],l.jump(d))})),s.length){const n=s.indexOf("height")>=0?window.pageYOffset:null,o=((e,t,n)=>{const r=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:a}=i,s={};"none"===a&&t.setStaticValue("display",e.display||"block"),n.forEach((e=>{s[e]=SM[e](r,i)})),t.render();const l=t.measureViewportBox();return n.forEach((n=>{const r=t.getValue(n);r&&r.jump(s[n]),e[n]=SM[n](l,i)})),e})(t,e,s);return i.length&&i.forEach((([t,n])=>{e.getValue(t).set(n)})),e.render(),BC&&null!==n&&window.scrollTo({top:n}),{target:o,transitionEnd:r}}return{target:t,transitionEnd:r}};function _M(e,t,n,r){return(e=>Object.keys(e).some(mM))(t)?xM(e,t,n,r):{target:t,transitionEnd:r}}const CM=(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(!wE(t))return;const n=fI(t,r);n&&e.set(n)}));for(const o in t){const e=t[o];if(!wE(e))continue;const i=fI(e,r);i&&(t[o]=i,n||(n={}),void 0===n[o]&&(n[o]=e))}return{target:t,transitionEnd:n}}(e,t,r);return _M(e,t=o.target,n,r=o.transitionEnd)},EM={current:null},kM={current:!1};const TM=new WeakMap,RM=Object.keys(ZC),PM=RM.length,IM=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],MM=$C.length;class zM{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=()=>Ak.render(this.render,!1,!0);const{latestValues:a,renderState:s}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=s,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=i,this.isControllingVariants=KC(t),this.isVariantNode=XC(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:l,...c}=this.scrapeMotionValuesFromProps(t,{});for(const u in c){const e=c[u];void 0!==a[u]&&pE(e)&&(e.set(a[u],!1),KR(l)&&l.add(u))}}scrapeMotionValuesFromProps(e,t){return{}}mount(e){this.current=e,TM.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))),kM.current||function(){if(kM.current=!0,BC)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>EM.current=e.matches;e.addListener(t),t()}else EM.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||EM.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){TM.delete(this.current),this.projection&&this.projection.unmount(),Dk.update(this.notifyUpdate),Dk.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=fE.has(e),r=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&Ak.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 a,s;for(let l=0;l<PM;l++){const e=RM[l],{isEnabled:n,Feature:r,ProjectionNode:o,MeasureLayout:i}=ZC[e];o&&(a=o),n(t)&&(!this.features[e]&&r&&(this.features[e]=new r(this)),i&&(s=i))}if(!this.projection&&a){this.projection=new a(o,this.latestValues,this.parent&&this.parent.projection);const{layoutId:e,layout:n,drag:r,dragConstraints:s,layoutScroll:l,layoutRoot:c}=t;this.projection.setOptions({layoutId:e,layout:n,alwaysMeasureLayout:Boolean(r)||s&&jC(s),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:i,layoutScroll:l,layoutRoot:c})}return s}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):HP()}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<IM.length;n++){const t=IM[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],a=n[o];if(pE(i))e.addValue(o,i),KR(r)&&r.add(o);else if(pE(a))e.addValue(o,JR(i,{owner:e})),KR(r)&&r.remove(o);else if(a!==i)if(e.hasValue(o)){const t=e.getValue(o);!t.hasAnimated&&t.set(i)}else{const t=e.getStaticValue(o);e.addValue(o,JR(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<MM;n++){const e=$C[n],r=this.props[e];(WC(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=JR(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=lk(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||pE(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 QR),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class OM extends zM{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=aP(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))),a=i.length;if(a)for(let s=0;s<a;s++){const a=i[s],l=t[a];let c=null;Array.isArray(l)&&(c=l[0]),null===c&&(c=null!==(o=null!==(r=n[a])&&void 0!==r?r:e.readValue(a))&&void 0!==o?o:t[a]),null!=c&&("string"==typeof c&&(/^\-?\d*\.?\d+$/.test(c)||XR(c))?c=parseFloat(c):!oP(c)&&QT.test(l)&&(c=jR(a,l)),e.addValue(a,JR(c,{owner:e})),void 0===n[a]&&(n[a]=c),null!==c&&e.setBaseTarget(a,c))}}(this,n,i);const e=CM(this,n,i,t);t=e.transitionEnd,n=e.target}return{transition:e,transitionEnd:t,...n}}}class LM extends OM{readValueFromInstance(e,t){if(fE.has(t)){const e=VR(t);return e&&e.default||0}{const r=(n=e,window.getComputedStyle(n)),o=(yE(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return oI(e,t)}build(e,t,n,r){BE(e,t,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,t){return ak(e,t)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;pE(e)&&(this.childSubscription=e.on("change",(e=>{this.current&&(this.current.textContent=`${e}`)})))}renderInstance(e,t,n,r){rk(e,t,n,r)}}class AM extends OM{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(fE.has(t)){const e=VR(t);return e&&e.default||0}return t=ok.has(t)?t:nk(t),e.getAttribute(t)}measureInstanceViewportBox(){return HP()}scrapeMotionValuesFromProps(e,t){return sk(e,t)}build(e,t,n,r){QE(e,t,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,t,n,r){ik(e,t,0,r)}mount(e){this.isSVGTag=JE(e.tagName),super.mount(e)}}const DM=(e,t)=>cE(e)?new AM(t,{enableHardwareAcceleration:!1}):new LM(t,{enableHardwareAcceleration:!0}),FM={...yP,...Qk,...hM,...{layout:{ProjectionNode:fM,MeasureLayout:gI}}},NM=sE(((e,t)=>function(e,{forwardMotionProps:t=!1},n,r){return{...cE(e)?mk:gk,preloadedFeatures:n,useRender:tk(t),createVisualElement:r,Component:e}}(e,t,FM,DM)));function BM(){return BM=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},BM.apply(this,arguments)}function HM(e,t){return(HM=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var VM=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,HM(t,n);var o=r.prototype;return o.getColumns=function(){var e=this.props,t=e.children,n=e.columnsCount,r=Array.from({length:n},(function(){return[]}));return G.Children.forEach(t,(function(e,t){e&&G.isValidElement(e)&&r[t%n].push(e)})),r},o.renderColumns=function(){var e=this.props.gutter;return this.getColumns().map((function(t,n){return G.createElement("div",{key:n,style:{display:"flex",flexDirection:"column",justifyContent:"flex-start",alignContent:"stretch",flex:1,width:0,gap:e}},t.map((function(e){return e})))}))},o.render=function(){var e=this.props,t=e.gutter,n=e.className,r=e.style;return G.createElement("div",{style:BM({display:"flex",flexDirection:"row",justifyContent:"center",alignContent:"stretch",boxSizing:"border-box",width:"100%",gap:t},r),className:n},this.renderColumns())},r}(G.Component);VM.propTypes={},VM.defaultProps={columnsCount:3,gutter:"0",className:null,style:{}};var jM="undefined"!=typeof window?U.useLayoutEffect:U.useEffect,WM=function(){var e=function(){var e=U.useState(!1),t=e[0],n=e[1];return jM((function(){n(!0)}),[]),t}(),t=U.useState(0),n=t[0],r=t[1],o=U.useCallback((function(){e&&r(window.innerWidth)}),[e]);return jM((function(){if(e)return window.addEventListener("resize",o),o(),function(){return window.removeEventListener("resize",o)}}),[e,o]),n},UM=function(e){var t=e.columnsCountBreakPoints,n=void 0===t?{350:1,750:2,900:3}:t,r=e.children,o=e.className,i=void 0===o?null:o,a=e.style,s=void 0===a?null:a,l=WM(),c=U.useMemo((function(){var e=Object.keys(n).sort((function(e,t){return e-t})),t=e.length>0?n[e[0]]:1;return e.forEach((function(e){e<l&&(t=n[e])})),t}),[l,n]);return G.createElement("div",{className:i,style:s},G.Children.map(r,(function(e,t){return G.cloneElement(e,{key:t,columnsCount:c})})))};UM.propTypes={};const[GM,$M]=er("Form"),KM="Form",[XM,qM]=GM(KM),[YM,QM]=GM(KM),ZM=U.forwardRef(((e,t)=>{const{__scopeForm:n,onClearServerErrors:r=(()=>{}),...o}=e,i=rr(t,U.useRef(null)),[a,s]=U.useState({}),l=U.useCallback((e=>a[e]),[a]),c=U.useCallback(((e,t)=>s((n=>{var r;return{...n,[e]:{...null!==(r=n[e])&&void 0!==r?r:{},...t}}}))),[]),u=U.useCallback((e=>{s((t=>({...t,[e]:void 0}))),v((t=>({...t,[e]:{}})))}),[]),[d,f]=U.useState({}),h=U.useCallback((e=>{var t;return null!==(t=d[e])&&void 0!==t?t:[]}),[d]),p=U.useCallback(((e,t)=>{f((n=>{var r;return{...n,[e]:[...null!==(r=n[e])&&void 0!==r?r:[],t]}}))}),[]),m=U.useCallback(((e,t)=>{f((n=>{var r;return{...n,[e]:(null!==(r=n[e])&&void 0!==r?r:[]).filter((e=>e.id!==t))}}))}),[]),[g,v]=U.useState({}),y=U.useCallback((e=>{var t;return null!==(t=g[e])&&void 0!==t?t:{}}),[g]),w=U.useCallback(((e,t)=>{v((n=>{var r;return{...n,[e]:{...null!==(r=n[e])&&void 0!==r?r:{},...t}}}))}),[]),[b,S]=U.useState({}),x=U.useCallback(((e,t)=>{S((n=>{const r=new Set(n[e]).add(t);return{...n,[e]:r}}))}),[]),_=U.useCallback(((e,t)=>{S((n=>{const r=new Set(n[e]);return r.delete(t),{...n,[e]:r}}))}),[]),C=U.useCallback((e=>{var t;return Array.from(null!==(t=b[e])&&void 0!==t?t:[]).join(" ")||void 0}),[b]);return U.createElement(XM,{scope:n,getFieldValidity:l,onFieldValidityChange:c,getFieldCustomMatcherEntries:h,onFieldCustomMatcherEntryAdd:p,onFieldCustomMatcherEntryRemove:m,getFieldCustomErrors:y,onFieldCustomErrorsChange:w,onFieldValiditionClear:u},U.createElement(YM,{scope:n,onFieldMessageIdAdd:x,onFieldMessageIdRemove:_,getFieldDescription:C},U.createElement(Ep.form,Jn({},o,{ref:i,onInvalid:or(e.onInvalid,(e=>{const t=mz(e.currentTarget);t===e.target&&t.focus(),e.preventDefault()})),onSubmit:or(e.onSubmit,r,{checkForDefaultPrevented:!1}),onReset:or(e.onReset,r)}))))})),JM="FormField",[ez,tz]=GM(JM),nz=U.forwardRef(((e,t)=>{const{__scopeForm:n,name:r,serverInvalid:o=!1,...i}=e,a=qM(JM,n).getFieldValidity(r),s=lr();return U.createElement(ez,{scope:n,id:s,name:r,serverInvalid:o},U.createElement(Ep.div,Jn({"data-valid":vz(a,o),"data-invalid":yz(a,o)},i,{ref:t})))})),rz="FormControl",oz=U.forwardRef(((e,t)=>{const{__scopeForm:n,...r}=e,o=qM(rz,n),i=tz(rz,n),a=QM(rz,n),s=U.useRef(null),l=rr(t,s),c=r.name||i.name,u=r.id||i.id,d=o.getFieldCustomMatcherEntries(c),{onFieldValidityChange:f,onFieldCustomErrorsChange:h,onFieldValiditionClear:p}=o,m=U.useCallback((async e=>{if(gz(e.validity)){const t=fz(e.validity);return void f(c,t)}const t=e.form?new FormData(e.form):new FormData,n=[e.value,t],r=[],o=[];d.forEach((e=>{var t,i;i=n,"AsyncFunction"===(t=e).match.constructor.name||function(e,t){return e(...t)instanceof Promise}(t.match,i)?o.push(e):function(e){return"Function"===e.match.constructor.name}(e)&&r.push(e)}));const i=r.map((({id:e,match:t})=>[e,t(...n)])),a=Object.fromEntries(i),s=Object.values(a).some(Boolean),l=s;e.setCustomValidity(l?iz:"");const u=fz(e.validity);if(f(c,u),h(c,a),!s&&o.length>0){const t=o.map((({id:e,match:t})=>t(...n).then((t=>[e,t])))),r=await Promise.all(t),i=Object.fromEntries(r),a=Object.values(i).some(Boolean);e.setCustomValidity(a?iz:"");const s=fz(e.validity);f(c,s),h(c,i)}}),[d,c,h,f]);U.useEffect((()=>{const e=s.current;if(e){const t=()=>m(e);return e.addEventListener("change",t),()=>e.removeEventListener("change",t)}}),[m]);const g=U.useCallback((()=>{const e=s.current;e&&(e.setCustomValidity(""),p(c))}),[c,p]);U.useEffect((()=>{var e;const t=null===(e=s.current)||void 0===e?void 0:e.form;if(t)return t.addEventListener("reset",g),()=>t.removeEventListener("reset",g)}),[g]),U.useEffect((()=>{const e=s.current,t=null==e?void 0:e.closest("form");if(t&&i.serverInvalid){const n=mz(t);n===e&&n.focus()}}),[i.serverInvalid]);const v=o.getFieldValidity(c);return U.createElement(Ep.input,Jn({"data-valid":vz(v,i.serverInvalid),"data-invalid":yz(v,i.serverInvalid),"aria-invalid":!!i.serverInvalid||void 0,"aria-describedby":a.getFieldDescription(c),title:""},r,{ref:l,id:u,name:c,onInvalid:or(e.onInvalid,(e=>{const t=e.currentTarget;m(t)})),onChange:or(e.onChange,(e=>{g()}))}))})),iz="This value is not valid",az={badInput:iz,patternMismatch:"This value does not match the required pattern",rangeOverflow:"This value is too large",rangeUnderflow:"This value is too small",stepMismatch:"This value does not match the required step",tooLong:"This value is too long",tooShort:"This value is too short",typeMismatch:"This value does not match the required type",valid:void 0,valueMissing:"This value is missing"},sz="FormMessage",lz=U.forwardRef(((e,t)=>{const{match:n,name:r,...o}=e,i=tz(sz,e.__scopeForm),a=null!=r?r:i.name;return void 0===n?U.createElement(dz,Jn({},o,{ref:t,name:a}),e.children||iz):"function"==typeof n?U.createElement(uz,Jn({match:n},o,{ref:t,name:a})):U.createElement(cz,Jn({match:n},o,{ref:t,name:a}))})),cz=U.forwardRef(((e,t)=>{const{match:n,forceMatch:r=!1,name:o,children:i,...a}=e,s=qM(sz,a.__scopeForm).getFieldValidity(o);return r||(null==s?void 0:s[n])?U.createElement(dz,Jn({ref:t},a,{name:o}),null!=i?i:az[n]):null})),uz=U.forwardRef(((e,t)=>{const{match:n,forceMatch:r=!1,name:o,id:i,children:a,...s}=e,l=qM(sz,s.__scopeForm),c=rr(t,U.useRef(null)),u=lr(),d=null!=i?i:u,f=U.useMemo((()=>({id:d,match:n})),[d,n]),{onFieldCustomMatcherEntryAdd:h,onFieldCustomMatcherEntryRemove:p}=l;U.useEffect((()=>(h(o,f),()=>p(o,f.id))),[f,o,h,p]);const m=l.getFieldValidity(o),g=l.getFieldCustomErrors(o)[d];return r||m&&!gz(m)&&g?U.createElement(dz,Jn({id:d,ref:c},s,{name:o}),null!=a?a:iz):null})),dz=U.forwardRef(((e,t)=>{const{__scopeForm:n,id:r,name:o,...i}=e,a=QM(sz,n),s=lr(),l=null!=r?r:s,{onFieldMessageIdAdd:c,onFieldMessageIdRemove:u}=a;return U.useEffect((()=>(c(o,l),()=>u(o,l))),[o,l,c,u]),U.createElement(Ep.span,Jn({id:l},i,{ref:t}))}));function fz(e){const t={};for(const n in e)t[n]=e[n];return t}function hz(e){return e instanceof HTMLElement}function pz(e){return"validity"in e&&(!1===e.validity.valid||"true"===e.getAttribute("aria-invalid"))}function mz(e){const t=e.elements,[n]=Array.from(t).filter(hz).filter(pz);return n}function gz(e){let t=!1;for(const n in e){if("valid"!==n&&"customError"!==n&&e[n]){t=!0;break}}return t}function vz(e,t){if(!0===(null==e?void 0:e.valid)&&!t)return!0}function yz(e,t){if(!1===(null==e?void 0:e.valid)||t)return!0}const wz=ZM,bz=nz,Sz=oz,xz=lz,_z=U.forwardRef(((e,t)=>{const{__scopeForm:n,...r}=e;return U.createElement(Ep.button,Jn({type:"submit"},r,{ref:t}))})),[Cz,Ez]=Tb("Tooltip",[g_]),kz=g_(),Tz=700,Rz="tooltip.open",[Pz,Iz]=Cz("TooltipProvider"),Mz="Tooltip",[zz,Oz]=Cz(Mz),Lz="TooltipTrigger",Az=U.forwardRef(((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Oz(Lz,n),i=Iz(Lz,n),a=kz(n),s=kb(t,U.useRef(null),o.onTriggerChange),l=U.useRef(!1),c=U.useRef(!1),u=U.useCallback((()=>l.current=!1),[]);return U.useEffect((()=>()=>document.removeEventListener("pointerup",u)),[u]),U.createElement(P_,Jn({asChild:!0},a),U.createElement(Lb.button,Jn({"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute},r,{ref:s,onPointerMove:Cb(e.onPointerMove,(e=>{"touch"!==e.pointerType&&(c.current||i.isPointerInTransitRef.current||(o.onTriggerEnter(),c.current=!0))})),onPointerLeave:Cb(e.onPointerLeave,(()=>{o.onTriggerLeave(),c.current=!1})),onPointerDown:Cb(e.onPointerDown,(()=>{l.current=!0,document.addEventListener("pointerup",u,{once:!0})})),onFocus:Cb(e.onFocus,(()=>{l.current||o.onOpen()})),onBlur:Cb(e.onBlur,o.onClose),onClick:Cb(e.onClick,o.onClose)})))})),Dz="TooltipPortal",[Fz,Nz]=Cz(Dz,{forceMount:void 0}),Bz="TooltipContent",Hz=U.forwardRef(((e,t)=>{const n=Nz(Bz,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,a=Oz(Bz,e.__scopeTooltip);return U.createElement(cS,{present:r||a.open},a.disableHoverableContent?U.createElement(Uz,Jn({side:o},i,{ref:t})):U.createElement(Vz,Jn({side:o},i,{ref:t})))})),Vz=U.forwardRef(((e,t)=>{const n=Oz(Bz,e.__scopeTooltip),r=Iz(Bz,e.__scopeTooltip),o=U.useRef(null),i=kb(t,o),[a,s]=U.useState(null),{trigger:l,onClose:c}=n,u=o.current,{onPointerInTransitChange:d}=r,f=U.useCallback((()=>{s(null),d(!1)}),[d]),h=U.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())]);s(i),d(!0)}),[d]);return U.useEffect((()=>()=>f()),[f]),U.useEffect((()=>{if(l&&u){const e=e=>h(e,u),t=e=>h(e,l);return l.addEventListener("pointerleave",e),u.addEventListener("pointerleave",t),()=>{l.removeEventListener("pointerleave",e),u.removeEventListener("pointerleave",t)}}}),[l,u,h,f]),U.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==u?void 0:u.contains(t)),o=!function(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,a=t.length-1;i<t.length;a=i++){const e=t[i].x,s=t[i].y,l=t[a].x,c=t[a].y;s>r!=c>r&&n<(l-e)*(r-s)/(c-s)+e&&(o=!o)}return o}(n,a);r?f():o&&(f(),c())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}}),[l,u,a,c,f]),U.createElement(Uz,Jn({},e,{ref:i}))})),[jz,Wz]=Cz(Mz,{isInside:!1}),Uz=U.forwardRef(((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:a,...s}=e,l=Oz(Bz,n),c=kz(n),{onClose:u}=l;return U.useEffect((()=>(document.addEventListener(Rz,u),()=>document.removeEventListener(Rz,u))),[u]),U.useEffect((()=>{if(l.trigger){const e=e=>{const t=e.target;null!=t&&t.contains(l.trigger)&&u()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}}),[l.trigger,u]),U.createElement(NS,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:u},U.createElement(I_,Jn({"data-state":l.stateAttribute},c,s,{ref:t,style:{...s.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)"}}),U.createElement(Mb,null,r),U.createElement(jz,{scope:n,isInside:!0},U.createElement(L_,{id:l.contentId,role:"tooltip"},o||r))))}));const Gz=e=>{const{__scopeTooltip:t,delayDuration:n=Tz,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,[a,s]=U.useState(!0),l=U.useRef(!1),c=U.useRef(0);return U.useEffect((()=>{const e=c.current;return()=>window.clearTimeout(e)}),[]),U.createElement(Pz,{scope:t,isOpenDelayed:a,delayDuration:n,onOpen:U.useCallback((()=>{window.clearTimeout(c.current),s(!1)}),[]),onClose:U.useCallback((()=>{window.clearTimeout(c.current),c.current=window.setTimeout((()=>s(!0)),r)}),[r]),isPointerInTransitRef:l,onPointerInTransitChange:U.useCallback((e=>{l.current=e}),[]),disableHoverableContent:o},i)},$z=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:i,disableHoverableContent:a,delayDuration:s}=e,l=Iz(Mz,e.__scopeTooltip),c=kz(t),[u,d]=U.useState(null),f=Bb(),h=U.useRef(0),p=null!=a?a:l.disableHoverableContent,m=null!=s?s:l.delayDuration,g=U.useRef(!1),[v=!1,y]=Vb({prop:r,defaultProp:o,onChange:e=>{e?(l.onOpen(),document.dispatchEvent(new CustomEvent(Rz))):l.onClose(),null==i||i(e)}}),w=U.useMemo((()=>v?g.current?"delayed-open":"instant-open":"closed"),[v]),b=U.useCallback((()=>{window.clearTimeout(h.current),g.current=!1,y(!0)}),[y]),S=U.useCallback((()=>{window.clearTimeout(h.current),y(!1)}),[y]),x=U.useCallback((()=>{window.clearTimeout(h.current),h.current=window.setTimeout((()=>{g.current=!0,y(!0)}),m)}),[m,y]);return U.useEffect((()=>()=>window.clearTimeout(h.current)),[]),U.createElement(R_,c,U.createElement(zz,{scope:t,contentId:f,open:v,stateAttribute:w,trigger:u,onTriggerChange:d,onTriggerEnter:U.useCallback((()=>{l.isOpenDelayed?x():b()}),[l.isOpenDelayed,x,b]),onTriggerLeave:U.useCallback((()=>{p?S():window.clearTimeout(h.current)}),[S,p]),onOpen:b,onClose:S,disableHoverableContent:p},n))},Kz=Az,Xz=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,i=Oz(Dz,t);return U.createElement(Fz,{scope:t,forceMount:n},U.createElement(cS,{present:n||i.open},U.createElement(z_,{asChild:!0,container:o},r)))},qz=Hz,Yz=U.forwardRef(((e,t)=>{const{__scopeTooltip:n,...r}=e,o=kz(n);return Wz("TooltipArrow",n).isInside?null:U.createElement(M_,Jn({},o,r,{ref:t}))}));const Qz="ScrollArea",[Zz,Jz]=er(Qz),[eO,tO]=Zz(Qz),nO=U.forwardRef(((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:o,scrollHideDelay:i=600,...a}=e,[s,l]=U.useState(null),[c,u]=U.useState(null),[d,f]=U.useState(null),[h,p]=U.useState(null),[m,g]=U.useState(null),[v,y]=U.useState(0),[w,b]=U.useState(0),[S,x]=U.useState(!1),[_,C]=U.useState(!1),E=rr(t,(e=>l(e))),k=Kw(o);return U.createElement(eO,{scope:n,type:r,dir:k,scrollHideDelay:i,scrollArea:s,viewport:c,onViewportChange:u,content:d,onContentChange:f,scrollbarX:h,onScrollbarXChange:p,scrollbarXEnabled:S,onScrollbarXEnabledChange:x,scrollbarY:m,onScrollbarYChange:g,scrollbarYEnabled:_,onScrollbarYEnabledChange:C,onCornerWidthChange:y,onCornerHeightChange:b},U.createElement(Ep.div,Jn({dir:k},a,{ref:E,style:{position:"relative","--radix-scroll-area-corner-width":v+"px","--radix-scroll-area-corner-height":w+"px",...e.style}})))})),rO=U.forwardRef(((e,t)=>{const{__scopeScrollArea:n,children:r,...o}=e,i=tO("ScrollAreaViewport",n),a=rr(t,U.useRef(null),i.onViewportChange);return U.createElement(U.Fragment,null,U.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}"}}),U.createElement(Ep.div,Jn({"data-radix-scroll-area-viewport":""},o,{ref:a,style:{overflowX:i.scrollbarXEnabled?"scroll":"hidden",overflowY:i.scrollbarYEnabled?"scroll":"hidden",...e.style}}),U.createElement("div",{ref:i.onContentChange,style:{minWidth:"100%",display:"table"}},r)))})),oO="ScrollAreaScrollbar",iO=U.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,o=tO(oO,e.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:a}=o,s="horizontal"===e.orientation;return U.useEffect((()=>(s?i(!0):a(!0),()=>{s?i(!1):a(!1)})),[s,i,a]),"hover"===o.type?U.createElement(aO,Jn({},r,{ref:t,forceMount:n})):"scroll"===o.type?U.createElement(sO,Jn({},r,{ref:t,forceMount:n})):"auto"===o.type?U.createElement(lO,Jn({},r,{ref:t,forceMount:n})):"always"===o.type?U.createElement(cO,Jn({},r,{ref:t})):null})),aO=U.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,o=tO(oO,e.__scopeScrollArea),[i,a]=U.useState(!1);return U.useEffect((()=>{const e=o.scrollArea;let t=0;if(e){const n=()=>{window.clearTimeout(t),a(!0)},r=()=>{t=window.setTimeout((()=>a(!1)),o.scrollHideDelay)};return e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",r),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",r)}}}),[o.scrollArea,o.scrollHideDelay]),U.createElement(Xp,{present:n||i},U.createElement(lO,Jn({"data-state":i?"visible":"hidden"},r,{ref:t})))})),sO=U.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,o=tO(oO,e.__scopeScrollArea),i="horizontal"===e.orientation,a=EO((()=>l("SCROLL_END")),100),[s,l]=(c="hidden",u={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},U.useReducer(((e,t)=>{const n=u[e][t];return null!=n?n:e}),c));var c,u;return U.useEffect((()=>{if("idle"===s){const e=window.setTimeout((()=>l("HIDE")),o.scrollHideDelay);return()=>window.clearTimeout(e)}}),[s,o.scrollHideDelay,l]),U.useEffect((()=>{const e=o.viewport,t=i?"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)}}),[o.viewport,i,l,a]),U.createElement(Xp,{present:n||"hidden"!==s},U.createElement(cO,Jn({"data-state":"hidden"===s?"hidden":"visible"},r,{ref:t,onPointerEnter:or(e.onPointerEnter,(()=>l("POINTER_ENTER"))),onPointerLeave:or(e.onPointerLeave,(()=>l("POINTER_LEAVE")))})))})),lO=U.forwardRef(((e,t)=>{const n=tO(oO,e.__scopeScrollArea),{forceMount:r,...o}=e,[i,a]=U.useState(!1),s="horizontal"===e.orientation,l=EO((()=>{if(n.viewport){const e=n.viewport.offsetWidth<n.viewport.scrollWidth,t=n.viewport.offsetHeight<n.viewport.scrollHeight;a(s?e:t)}}),10);return kO(n.viewport,l),kO(n.content,l),U.createElement(Xp,{present:r||i},U.createElement(cO,Jn({"data-state":i?"visible":"hidden"},o,{ref:t})))})),cO=U.forwardRef(((e,t)=>{const{orientation:n="vertical",...r}=e,o=tO(oO,e.__scopeScrollArea),i=U.useRef(null),a=U.useRef(0),[s,l]=U.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),c=wO(s.viewport,s.content),u={...r,sizes:s,onSizesChange:l,hasThumb:Boolean(c>0&&c<1),onThumbChange:e=>i.current=e,onThumbPointerUp:()=>a.current=0,onThumbPointerDown:e=>a.current=e};function d(e,t){return function(e,t,n,r="ltr"){const o=bO(n),i=o/2,a=t||i,s=o-a,l=n.scrollbar.paddingStart+a,c=n.scrollbar.size-n.scrollbar.paddingEnd-s,u=n.content-n.viewport,d="ltr"===r?[0,u]:[-1*u,0];return xO([l,c],d)(e)}(e,a.current,s,t)}return"horizontal"===n?U.createElement(uO,Jn({},u,{ref:t,onThumbPositionChange:()=>{if(o.viewport&&i.current){const e=SO(o.viewport.scrollLeft,s,o.dir);i.current.style.transform=`translate3d(${e}px, 0, 0)`}},onWheelScroll:e=>{o.viewport&&(o.viewport.scrollLeft=e)},onDragScroll:e=>{o.viewport&&(o.viewport.scrollLeft=d(e,o.dir))}})):"vertical"===n?U.createElement(dO,Jn({},u,{ref:t,onThumbPositionChange:()=>{if(o.viewport&&i.current){const e=SO(o.viewport.scrollTop,s);i.current.style.transform=`translate3d(0, ${e}px, 0)`}},onWheelScroll:e=>{o.viewport&&(o.viewport.scrollTop=e)},onDragScroll:e=>{o.viewport&&(o.viewport.scrollTop=d(e))}})):null})),uO=U.forwardRef(((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,i=tO(oO,e.__scopeScrollArea),[a,s]=U.useState(),l=U.useRef(null),c=rr(t,l,i.onScrollbarXChange);return U.useEffect((()=>{l.current&&s(getComputedStyle(l.current))}),[l]),U.createElement(pO,Jn({"data-orientation":"horizontal"},o,{ref:c,sizes:n,style:{bottom:0,left:"rtl"===i.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===i.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":bO(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(i.viewport){const r=i.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),_O(r,n)&&t.preventDefault()}},onResize:()=>{l.current&&i.viewport&&a&&r({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:yO(a.paddingLeft),paddingEnd:yO(a.paddingRight)}})}}))})),dO=U.forwardRef(((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,i=tO(oO,e.__scopeScrollArea),[a,s]=U.useState(),l=U.useRef(null),c=rr(t,l,i.onScrollbarYChange);return U.useEffect((()=>{l.current&&s(getComputedStyle(l.current))}),[l]),U.createElement(pO,Jn({"data-orientation":"vertical"},o,{ref:c,sizes:n,style:{top:0,right:"ltr"===i.dir?0:void 0,left:"rtl"===i.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":bO(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(i.viewport){const r=i.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),_O(r,n)&&t.preventDefault()}},onResize:()=>{l.current&&i.viewport&&a&&r({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:yO(a.paddingTop),paddingEnd:yO(a.paddingBottom)}})}}))})),[fO,hO]=Zz(oO),pO=U.forwardRef(((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:o,onThumbChange:i,onThumbPointerUp:a,onThumbPointerDown:s,onThumbPositionChange:l,onDragScroll:c,onWheelScroll:u,onResize:d,...f}=e,h=tO(oO,n),[p,m]=U.useState(null),g=rr(t,(e=>m(e))),v=U.useRef(null),y=U.useRef(""),w=h.viewport,b=r.content-r.viewport,S=cr(u),x=cr(l),_=EO(d,10);function C(e){if(v.current){const t=e.clientX-v.current.left,n=e.clientY-v.current.top;c({x:t,y:n})}}return U.useEffect((()=>{const e=e=>{const t=e.target;(null==p?void 0:p.contains(t))&&S(e,b)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})}),[w,p,b,S]),U.useEffect(x,[r,x]),kO(p,_),kO(h.content,_),U.createElement(fO,{scope:n,scrollbar:p,hasThumb:o,onThumbChange:cr(i),onThumbPointerUp:cr(a),onThumbPositionChange:x,onThumbPointerDown:cr(s)},U.createElement(Ep.div,Jn({},f,{ref:g,style:{position:"absolute",...f.style},onPointerDown:or(e.onPointerDown,(e=>{if(0===e.button){e.target.setPointerCapture(e.pointerId),v.current=p.getBoundingClientRect(),y.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",C(e)}})),onPointerMove:or(e.onPointerMove,C),onPointerUp:or(e.onPointerUp,(e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=y.current,v.current=null}))})))})),mO="ScrollAreaThumb",gO=U.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,o=hO(mO,e.__scopeScrollArea);return U.createElement(Xp,{present:n||o.hasThumb},U.createElement(vO,Jn({ref:t},r)))})),vO=U.forwardRef(((e,t)=>{const{__scopeScrollArea:n,style:r,...o}=e,i=tO(mO,n),a=hO(mO,n),{onThumbPositionChange:s}=a,l=rr(t,(e=>a.onThumbChange(e))),c=U.useRef(),u=EO((()=>{c.current&&(c.current(),c.current=void 0)}),100);return U.useEffect((()=>{const e=i.viewport;if(e){const t=()=>{if(u(),!c.current){const t=CO(e,s);c.current=t,s()}};return s(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}}),[i.viewport,u,s]),U.createElement(Ep.div,Jn({"data-state":a.hasThumb?"visible":"hidden"},o,{ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:or(e.onPointerDownCapture,(e=>{const t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;a.onThumbPointerDown({x:n,y:r})})),onPointerUp:or(e.onPointerUp,a.onThumbPointerUp)}))}));function yO(e){return e?parseInt(e,10):0}function wO(e,t){const n=e/t;return isNaN(n)?0:n}function bO(e){const t=wO(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function SO(e,t,n="ltr"){const r=bO(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=t.scrollbar.size-o,a=t.content-t.viewport,s=i-r,l=Gw(e,"ltr"===n?[0,a]:[-1*a,0]);return xO([0,a],[0,s])(l)}function xO(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 _O(e,t){return e>0&&e<t}const CO=(e,t=(()=>{}))=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function o(){const i={left:e.scrollLeft,top:e.scrollTop},a=n.left!==i.left,s=n.top!==i.top;(a||s)&&t(),n=i,r=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(r)};function EO(e,t){const n=cr(e),r=U.useRef(0);return U.useEffect((()=>()=>window.clearTimeout(r.current)),[]),U.useCallback((()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)}),[n,t])}function kO(e,t){const n=cr(t);ir((()=>{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 TO=nO,RO=rO,PO=iO,IO=gO;function MO(e){return function(e){return"[object Object]"===Object.prototype.toString.call(e)}(e)||Array.isArray(e)}function zO(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;return JSON.stringify(Object.keys(e.breakpoints||{}))===JSON.stringify(Object.keys(t.breakpoints||{}))&&n.every((n=>{const r=e[n],o=t[n];return"function"==typeof r?`${r}`==`${o}`:MO(r)&&MO(o)?zO(r,o):r===o}))}function OO(e){return e.concat().sort(((e,t)=>e.name>t.name?1:-1)).map((e=>e.options))}function LO(e){return"number"==typeof e}function AO(e){return"string"==typeof e}function DO(e){return"boolean"==typeof e}function FO(e){return"[object Object]"===Object.prototype.toString.call(e)}function NO(e){return Math.abs(e)}function BO(e){return Math.sign(e)}function HO(e,t){return NO(e-t)}function VO(e){return GO(e).map(Number)}function jO(e){return e[WO(e)]}function WO(e){return Math.max(0,e.length-1)}function UO(e,t=0){return Array.from(Array(e),((e,n)=>t+n))}function GO(e){return Object.keys(e)}function $O(e,t){return[e,t].reduce(((e,t)=>(GO(t).forEach((n=>{const r=e[n],o=t[n],i=FO(r)&&FO(o);e[n]=i?$O(r,o):o})),e)),{})}function KO(e,t){return void 0!==t.MouseEvent&&e instanceof t.MouseEvent}function XO(e,t){const n={start:function(){return 0},center:function(e){return r(e)/2},end:r};function r(e){return t-e}return{measure:function(r){return LO(e)?t*Number(e):n[e](r)}}}function qO(e,t){const n=NO(e-t);function r(t){return t<e}function o(e){return e>t}function i(e){return r(e)||o(e)}return{length:n,max:t,min:e,constrain:function(n){return i(n)?r(n)?e:t:n},reachedAny:i,reachedMax:o,reachedMin:r,removeOffset:function(e){return n?e-n*Math.ceil((e-t)/n):e}}}function YO(e,t,n){const{constrain:r}=qO(0,e),o=e+1;let i=a(t);function a(e){return n?NO((o+e)%o):r(e)}function s(){return i}function l(){return YO(e,s(),n)}const c={get:s,set:function(e){return i=a(e),c},add:function(e){return l().set(s()+e)},clone:l};return c}function QO(){let e=[];const t={add:function(n,r,o,i={passive:!0}){let a;if("addEventListener"in n)n.addEventListener(r,o,i),a=()=>n.removeEventListener(r,o,i);else{const e=n;e.addListener(o),a=()=>e.removeListener(o)}return e.push(a),t},clear:function(){e=e.filter((e=>e()))}};return t}function ZO(e,t,n,r,o,i,a,s,l,c,u,d,f,h,p,m,g,v,y,w){const{cross:b}=e,S=["INPUT","SELECT","TEXTAREA"],x={passive:!1},_=QO(),C=QO(),E=qO(50,225).constrain(p.measure(20)),k={mouse:300,touch:400},T={mouse:500,touch:600},R=m?43:25;let P=!1,I=0,M=0,z=!1,O=!1,L=!1,A=!1;function D(e){const n=a.readPoint(e),r=a.readPoint(e,b),o=HO(n,I),s=HO(r,M);if(!O&&!A){if(!e.cancelable)return F(e);if(O=o>s,!O)return F(e)}const c=a.pointerMove(e);o>g&&(L=!0),u.useFriction(.3).useDuration(1),l.start(),i.add(t.apply(c)),e.preventDefault()}function F(e){const n=d.byDistance(0,!1).index!==f.get(),r=a.pointerUp(e)*(m?T:k)[A?"mouse":"touch"],o=function(e,t){const n=f.add(-1*BO(e)),r=d.byDistance(e,!m).distance;return m||NO(e)<E?r:v&&t?.5*r:d.byIndex(n.get(),0).distance}(t.apply(r),n),i=function(e,t){if(0===e||0===t)return 0;if(NO(e)<=NO(t))return 0;const n=HO(NO(e),NO(t));return NO(n/e)}(r,o),s=R-10*i,l=y+i/50;O=!1,z=!1,C.clear(),u.useDuration(s).useFriction(l),c.distance(o,!m),A=!1,h.emit("pointerUp")}function N(e){L&&(e.stopPropagation(),e.preventDefault())}return{init:function(e){if(!w)return;function t(t){(DO(w)||w(e,t))&&function(e){const t=KO(e,o);if(A=t,t&&0!==e.button)return;if(function(e){const t=e.nodeName||"";return S.includes(t)}(e.target))return;L=m&&t&&!e.buttons&&P,P=HO(i.get(),s.get())>=2,z=!0,a.pointerDown(e),u.useFriction(0).useDuration(0),i.set(s),function(){const e=A?r:n;C.add(e,"touchmove",D,x).add(e,"touchend",F).add(e,"mousemove",D,x).add(e,"mouseup",F)}(),I=a.readPoint(e),M=a.readPoint(e,b),h.emit("pointerDown")}(t)}const l=n;_.add(l,"dragstart",(e=>e.preventDefault()),x).add(l,"touchmove",(()=>{}),x).add(l,"touchend",(()=>{})).add(l,"touchstart",t).add(l,"mousedown",t).add(l,"touchcancel",F).add(l,"contextmenu",F).add(l,"click",N,!0)},pointerDown:function(){return z},destroy:function(){_.clear(),C.clear()}}}function JO(e,t){let n,r;function o(e){return e.timeStamp}function i(n,r){const o="client"+("x"===(r||e.scroll)?"X":"Y");return(KO(n,t)?n:n.touches[0])[o]}return{pointerDown:function(e){return n=e,r=e,i(e)},pointerMove:function(e){const t=i(e)-i(r),a=o(e)-o(n)>170;return r=e,a&&(n=e),t},pointerUp:function(e){if(!n||!r)return 0;const t=i(r)-i(n),a=o(e)-o(n),s=o(e)-o(r)>170,l=t/a;return a&&!s&&NO(l)>.1?l:0},readPoint:i}}function eL(e,t,n,r,o,i){let a,s,l=[],c=!1;function u(e){return o.measureSize(e.getBoundingClientRect())}return{init:function(o){if(!i)return;s=u(e),l=r.map(u),a=new ResizeObserver((a=>{c||(DO(i)||i(o,a))&&function(i){for(const a of i){const i=a.target===e,c=r.indexOf(a.target),d=i?s:l[c];if(NO(u(i?e:r[c])-d)>=.2){n.requestAnimationFrame((()=>{o.reInit(),t.emit("resize")}));break}}}(a)})),[e].concat(r).forEach((e=>a.observe(e)))},destroy:function(){a&&a.disconnect(),c=!0}}}function tL(e,t,n,r,o){const i=o.measure(10),a=o.measure(50),s=qO(.1,.99);let l=!1;return{constrain:function(o){if(l||!e.reachedAny(n.get())||!e.reachedAny(t.get()))return;const c=e.reachedMin(t.get())?"min":"max",u=NO(e[c]-t.get()),d=n.get()-t.get(),f=s.constrain(u/a);n.subtract(d*f),!o&&NO(d)<i&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())},toggleActive:function(e){l=!e}}}function nL(e,t,n,r){const o=t.min+.1,i=t.max+.1,{reachedMin:a,reachedMax:s}=qO(o,i);return{loop:function(t){if(!function(e){return 1===e?s(n.get()):-1===e&&a(n.get())}(t))return;const o=e*(-1*t);r.forEach((e=>e.add(o)))}}}function rL(e,t,n,r,o){const{reachedAny:i,removeOffset:a,constrain:s}=r;function l(e){return e.concat().sort(((e,t)=>NO(e)-NO(t)))[0]}function c(t,r){const o=[t,t+n,t-n];if(!e)return o[0];if(!r)return l(o);const i=o.filter((e=>BO(e)===r));return i.length?l(i):jO(o)-n}return{byDistance:function(n,r){const l=o.get()+n,{index:u,distance:d}=function(n){const r=e?a(n):s(n),o=t.map((e=>e-r)).map((e=>c(e,0))).map(((e,t)=>({diff:e,index:t}))).sort(((e,t)=>NO(e.diff)-NO(t.diff))),{index:i}=o[0];return{index:i,distance:r}}(l),f=!e&&i(l);return!r||f?{index:u,distance:n}:{index:u,distance:n+c(t[u]-d,0)}},byIndex:function(e,n){return{index:e,distance:c(t[e]-o.get(),n)}},shortcut:c}}function oL(e){let t=e;function n(e){return LO(e)?e:e.get()}return{get:function(){return t},set:function(e){t=n(e)},add:function(e){t+=n(e)},subtract:function(e){t-=n(e)}}}function iL(e,t,n){const r="x"===e.scroll?function(e){return`translate3d(${e}px,0px,0px)`}:function(e){return`translate3d(0px,${e}px,0px)`},o=n.style;let i=!1;return{clear:function(){i||(o.transform="",n.getAttribute("style")||n.removeAttribute("style"))},to:function(e){i||(o.transform=r(t.apply(e)))},toggleActive:function(e){i=!e}}}function aL(e,t,n,r,o,i,a,s,l,c){const u=.5,d=VO(i),f=VO(i).reverse(),h=function(){const e=s[0]-1;return g(m(f,e),r,!1)}().concat(function(){const e=n-s[0]-1;return g(m(d,e),-r,!0)}());function p(e,t){return e.reduce(((e,t)=>e-i[t]),t)}function m(e,t){return e.reduce(((e,n)=>p(e,t)>0?e.concat([n]):e),[])}function g(i,s,d){const f=function(e){return a.map(((t,r)=>({start:t-o[r]+u+e,end:t+n-u+e})))}(s);return i.map((n=>{const o=d?0:-r,i=d?r:0,a=d?"end":"start",s=f[n][a];return{index:n,slideLocation:oL(-1),translate:iL(e,t,c[n]),target:()=>l.get()>s?o:i}}))}return{canLoop:function(){return h.every((({index:e})=>p(d.filter((t=>t!==e)),n)<=.1))},clear:function(){h.forEach((e=>e.translate.clear()))},loop:function(){h.forEach((e=>{const{target:t,translate:n,slideLocation:r}=e,o=t();o!==r.get()&&(n.to(o),r.set(o))}))},loopPoints:h}}function sL(e,t,n){let r,o=!1;return{init:function(i){n&&(r=new MutationObserver((e=>{o||(DO(n)||n(i,e))&&function(e){for(const n of e)if("childList"===n.type){i.reInit(),t.emit("slidesChanged");break}}(e)})),r.observe(e,{childList:!0}))},destroy:function(){r&&r.disconnect(),o=!0}}}function lL(e,t,n,r){const o={};let i,a=null,s=null,l=!1;return{init:function(){i=new IntersectionObserver((e=>{l||(e.forEach((e=>{const n=t.indexOf(e.target);o[n]=e})),a=null,s=null,n.emit("slidesInView"))}),{root:e.parentElement,threshold:r}),t.forEach((e=>i.observe(e)))},destroy:function(){i&&i.disconnect(),l=!0},get:function(e=!0){if(e&&a)return a;if(!e&&s)return s;const t=function(e){return GO(o).reduce(((t,n)=>{const r=parseInt(n),{isIntersecting:i}=o[r];return(e&&i||!e&&!i)&&t.push(r),t}),[])}(e);return e&&(a=t),e||(s=t),t}}}function cL(e,t,n,r,o,i,a,s,l){const{startEdge:c,endEdge:u}=e,d=LO(r);return{groupSlides:function(e){return d?function(e,t){return VO(e).filter((e=>e%t==0)).map((n=>e.slice(n,n+t)))}(e,r):function(e){return e.length?VO(e).reduce(((r,d)=>{const f=jO(r)||0,h=0===f,p=d===WO(e),m=i[c]-a[f][c],g=i[c]-a[d][u],v=!o&&h?t.apply(s):0;return NO(g-(!o&&p?t.apply(l):0)-(m+v))>n&&r.push(d),p&&r.push(e.length),r}),[]).map(((t,n,r)=>{const o=Math.max(r[n-1]||0);return e.slice(o,t)})):[]}(e)}}}function uL(e,t,n,r,o,i,a,s){const{align:l,axis:c,direction:u,startIndex:d,loop:f,duration:h,dragFree:p,dragThreshold:m,inViewThreshold:g,slidesToScroll:v,skipSnaps:y,containScroll:w,watchResize:b,watchSlides:S,watchDrag:x}=i,_=t.getBoundingClientRect(),C=n.map((e=>e.getBoundingClientRect())),E=function(e){const t="rtl"===e?-1:1;return{apply:function(e){return e*t}}}(u),k=function(e,t){const n="y"===e?"y":"x";return{scroll:n,cross:"y"===e?"x":"y",startEdge:"y"===n?"top":"rtl"===t?"right":"left",endEdge:"y"===n?"bottom":"rtl"===t?"left":"right",measureSize:function(e){const{width:t,height:r}=e;return"x"===n?t:r}}}(c,u),T=k.measureSize(_),R=function(e){return{measure:function(t){return e*(t/100)}}}(T),P=XO(l,T),I=!f&&!!w,M=f||!!w,{slideSizes:z,slideSizesWithGaps:O,startGap:L,endGap:A}=function(e,t,n,r,o,i){const{measureSize:a,startEdge:s,endEdge:l}=e,c=n[0]&&o,u=function(){if(!c)return 0;const e=n[0];return NO(t[s]-e[s])}(),d=function(){if(!c)return 0;const e=i.getComputedStyle(jO(r));return parseFloat(e.getPropertyValue(`margin-${l}`))}(),f=n.map(a),h=n.map(((e,t,n)=>{const r=!t,o=t===WO(n);return r?f[t]+u:o?f[t]+d:n[t+1][s]-e[s]})).map(NO);return{slideSizes:f,slideSizesWithGaps:h,startGap:u,endGap:d}}(k,_,C,n,M,o),D=cL(k,E,T,v,f,_,C,L,A),{snaps:F,snapsAligned:N}=function(e,t,n,r,o){const{startEdge:i,endEdge:a}=e,{groupSlides:s}=o,l=s(r).map((e=>jO(e)[a]-e[0][i])).map(NO).map(t.measure),c=r.map((e=>n[i]-e[i])).map((e=>-NO(e))),u=s(c).map((e=>e[0])).map(((e,t)=>e+l[t]));return{snaps:c,snapsAligned:u}}(k,P,_,C,D),B=-jO(F)+jO(O),{snapsContained:H,scrollContainLimit:V}=function(e,t,n,r){const o=qO(-t+e,0),i=n.map(o.constrain).map((e=>parseFloat(e.toFixed(3)))),a=function(){const e=i[0],t=jO(i);return qO(i.lastIndexOf(e),i.indexOf(t)+1)}();return{snapsContained:function(){if(t<=e)return[o.max];if("keepSnaps"===r)return i;const{min:n,max:s}=a;return i.slice(n,s)}(),scrollContainLimit:a}}(T,B,N,w),j=I?H:N,{limit:W}=function(e,t,n){const r=t[0];return{limit:qO(n?r-e:jO(t),r)}}(B,j,f),U=YO(WO(j),d,f),G=U.clone(),$=VO(n),K={start:()=>s.start(ae),stop:()=>s.stop(ae),update:()=>(({dragHandler:e,scrollBody:t,scrollBounds:n,eventHandler:r,animation:o,options:{loop:i}})=>{const a=e.pointerDown();i||n.constrain(a);const s=t.seek().settled();s&&!a&&(o.stop(),r.emit("settle")),s||r.emit("scroll")})(ae),render:e=>(({scrollBody:e,translate:t,location:n,offsetLocation:r,scrollLooper:o,slideLooper:i,options:{loop:a}},s)=>{const l=e.velocity();r.set(n.get()-l+l*s),a&&(o.loop(e.direction()),i.loop()),t.to(r.get())})(ae,e)},X=j[U.get()],q=oL(X),Y=oL(X),Q=oL(X),Z=function(e,t,n,r){let o=!0,i=0,a=0,s=n,l=r,c=e.get(),u=0;function d(e){return s=e,h}function f(e){return l=e,h}const h={direction:function(){return a},duration:function(){return s},velocity:function(){return i},seek:function(){const n=t.get()-e.get();let r=0;return s?(i+=n/s,i*=l,c+=i,e.add(i),r=c-u):(i=0,e.set(t),r=n),a=BO(r),u=c,o=NO(n)<.001,h},settled:function(){return o},useBaseFriction:function(){return f(r)},useBaseDuration:function(){return d(n)},useFriction:f,useDuration:d};return h}(q,Q,h,.68),J=rL(f,j,B,W,Q),ee=function(e,t,n,r,o,i,a){function s(r){const s=r.distance,l=r.index!==t.get();i.add(s),s&&(o.duration()?e.start():(e.update(),e.render(1),e.update())),l&&(n.set(t.get()),t.set(r.index),a.emit("select"))}return{distance:function(e,t){s(r.byDistance(e,t))},index:function(e,n){const o=t.clone().set(e);s(r.byIndex(o.get(),n))}}}(K,U,G,J,Z,Q,a),te=function(e){const{max:t,length:n}=e;return{get:function(e){return n?(e-t)/-n:0}}}(W),ne=QO(),re=lL(t,n,a,g),{slideRegistry:oe}=function(e,t,n,r,o,i){const{groupSlides:a}=o,{min:s,max:l}=r;return{slideRegistry:function(){const r=a(i);return!n||t<=e?r:r.slice(s,l).map(((e,t,n)=>{const r=!t,o=!r&&t===WO(n);return r?UO(jO(n[0])+1):o?UO(WO(i)-jO(n)[0]+1,jO(n)[0]):e}))}()}}(T,B,I,V,D,$),ie=function(e,t,n,r,o,i){let a=0;function s(e){"Tab"===e.code&&(a=(new Date).getTime())}function l(s){i.add(s,"focus",(()=>{if((new Date).getTime()-a>10)return;e.scrollLeft=0;const i=t.indexOf(s),l=n.findIndex((e=>e.includes(i)));LO(l)&&(o.useDuration(0),r.index(l,0))}),{passive:!0,capture:!0})}return{init:function(){i.add(document,"keydown",s,!1),t.forEach(l)}}}(e,n,oe,ee,Z,ne),ae={ownerDocument:r,ownerWindow:o,eventHandler:a,containerRect:_,slideRects:C,animation:K,axis:k,direction:E,dragHandler:ZO(k,E,e,r,o,Q,JO(k,o),q,K,ee,Z,J,U,a,R,p,m,y,.68,x),eventStore:ne,percentOfView:R,index:U,indexPrevious:G,limit:W,location:q,offsetLocation:Y,options:i,resizeHandler:eL(t,a,o,n,k,b),scrollBody:Z,scrollBounds:tL(W,q,Q,Z,R),scrollLooper:nL(B,W,Y,[q,Y,Q]),scrollProgress:te,scrollSnapList:j.map(te.get),scrollSnaps:j,scrollTarget:J,scrollTo:ee,slideLooper:aL(k,E,T,B,z,O,F,j,Y,n),slideFocus:ie,slidesHandler:sL(t,a,S),slidesInView:re,slideIndexes:$,slideRegistry:oe,slidesToScroll:D,target:Q,translate:iL(k,E,t)};return ae}const dL={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0};function fL(e){function t(e,t){return $O(e,t||{})}const n={mergeOptions:t,optionsAtMedia:function(n){const r=n.breakpoints||{},o=GO(r).filter((t=>e.matchMedia(t).matches)).map((e=>r[e])).reduce(((e,n)=>t(e,n)),{});return t(n,o)},optionsMediaQueries:function(t){return t.map((e=>GO(e.breakpoints||{}))).reduce(((e,t)=>e.concat(t)),[]).map(e.matchMedia)}};return n}function hL(e,t,n){const r=e.ownerDocument,o=r.defaultView,i=fL(o),a=function(e){let t=[];const n={init:function(n,r){return t=r.filter((({options:t})=>!1!==e.optionsAtMedia(t).active)),t.forEach((t=>t.init(n,e))),r.reduce(((e,t)=>Object.assign(e,{[t.name]:t})),{})},destroy:function(){t=t.filter((e=>e.destroy()))}};return n}(i),s=QO(),l=QO(),c=function(){const e={};let t;function n(t){return e[t]||[]}const r={init:function(e){t=e},emit:function(e){return n(e).forEach((n=>n(t,e))),r},off:function(t,o){return e[t]=n(t).filter((e=>e!==o)),r},on:function(t,o){return e[t]=n(t).concat([o]),r}};return r}(),{animationRealms:u}=hL,{mergeOptions:d,optionsAtMedia:f,optionsMediaQueries:h}=i,{on:p,off:m,emit:g}=c,v=R;let y,w,b,S,x=!1,_=d(dL,hL.globalOptions),C=d(_),E=[];function k(t,n){const i=uL(e,b,S,r,o,t,c,n);if(t.loop&&!i.slideLooper.canLoop()){return k(Object.assign({},t,{loop:!1}),n)}return i}function T(t,n){if(x)return;const i=u.find((e=>e.window===o)),c=i||function(e){const t=1e3/60;let n=[],r=null,o=0,i=0;function a(s){r||(r=s);const l=s-r;for(r=s,o+=l;o>=t;)n.forEach((({animation:e})=>e.update())),o-=t;const c=NO(o/t);n.forEach((({animation:e})=>e.render(c))),i&&e.requestAnimationFrame(a)}return{start:function(t){n.includes(t)||n.push(t),i||(i=e.requestAnimationFrame(a))},stop:function(t){n=n.filter((e=>e!==t)),n.length||(e.cancelAnimationFrame(i),r=null,o=0,i=0)},reset:function(){r=null,o=0},window:e}}(o);i||u.push(c),_=d(_,t),C=f(_),E=n||E,function(){const{container:t,slides:n}=C,r=AO(t)?e.querySelector(t):t;b=r||e.children[0];const o=AO(n)?b.querySelectorAll(n):n;S=[].slice.call(o||b.children)}(),y=k(C,c),h([_,...E.map((({options:e})=>e))]).forEach((e=>s.add(e,"change",R))),C.active&&(y.translate.to(y.location.get()),y.slidesInView.init(),y.slideFocus.init(),y.eventHandler.init(z),y.resizeHandler.init(z),y.slidesHandler.init(z),l.add(r,"visibilitychange",(()=>{r.hidden&&c.reset()})),y.options.loop&&y.slideLooper.loop(),b.offsetParent&&S.length&&y.dragHandler.init(z),w=a.init(z,E))}function R(e,t){const n=M();P(),T(d({startIndex:n},e),t),c.emit("reInit")}function P(){y.dragHandler.destroy(),y.animation.stop(),y.eventStore.clear(),y.translate.clear(),y.slideLooper.clear(),y.resizeHandler.destroy(),y.slidesHandler.destroy(),a.destroy(),s.clear(),l.clear()}function I(e,t,n){C.active&&!x&&(y.scrollBody.useBaseFriction().useDuration(t?0:C.duration),y.scrollTo.index(e,n||0))}function M(){return y.index.get()}const z={canScrollNext:function(){return y.index.add(1).get()!==M()},canScrollPrev:function(){return y.index.add(-1).get()!==M()},containerNode:function(){return b},internalEngine:function(){return y},destroy:function(){x||(x=!0,s.clear(),P(),c.emit("destroy"))},off:m,on:p,emit:g,plugins:function(){return w},previousScrollSnap:function(){return y.indexPrevious.get()},reInit:v,rootNode:function(){return e},scrollNext:function(e){I(y.index.add(1).get(),!0===e,-1)},scrollPrev:function(e){I(y.index.add(-1).get(),!0===e,1)},scrollProgress:function(){return y.scrollProgress.get(y.location.get())},scrollSnapList:function(){return y.scrollSnapList},scrollTo:I,selectedScrollSnap:M,slideNodes:function(){return S},slidesInView:function(){return y.slidesInView.get()},slidesNotInView:function(){return y.slidesInView.get(!1)}};return T(t,n),setTimeout((()=>c.emit("init")),0),z}function pL(e={},t=[]){const n=U.useRef(e),r=U.useRef(t),[o,i]=U.useState(),[a,s]=U.useState(),l=U.useCallback((()=>{o&&o.reInit(n.current,r.current)}),[o]);return U.useEffect((()=>{if("undefined"!=typeof window&&window.document&&window.document.createElement&&a){hL.globalOptions=pL.globalOptions;const e=hL(a,n.current,r.current);return i(e),()=>e.destroy()}i(void 0)}),[a,i]),U.useEffect((()=>{zO(n.current,e)||(n.current=e,l())}),[e,l]),U.useEffect((()=>{(function(e,t){if(e.length!==t.length)return!1;const n=OO(e),r=OO(t);return n.every(((e,t)=>zO(e,r[t])))})(r.current,t)||(r.current=t,l())}),[t,l]),[s,o]}function mL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gL(e){return(gL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function vL(e){var t=function(e,t){if("object"!==gL(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==gL(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===gL(t)?t:String(t)}function yL(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,vL(r.key),r)}}function wL(e,t,n){return t&&yL(e.prototype,t),n&&yL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function bL(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function SL(e,t){if(t&&("object"===gL(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return bL(e)}function xL(e){return(xL=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _L(e,t){return(_L=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function CL(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_L(e,t)}function EL(e,t,n){return(t=vL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kL(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function TL(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function RL(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function PL(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,r=null,o=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?r="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(r="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?o="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(o="UNSAFE_componentWillUpdate"),null!==n||null!==r||null!==o){var i=e.displayName||e.name,a="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+i+" uses "+a+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==r?"\n "+r:"")+(null!==o?"\n "+o:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=kL,t.componentWillReceiveProps=TL),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=RL;var s=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;s.call(this,e,t,r)}}return e}function IL(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=IL(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function ML(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=IL(e))&&(r&&(r+=" "),r+=t);return r}function zL(e){var t=e.cellCount,n=e.cellSize,r=e.computeMetadataCallback,o=e.computeMetadataCallbackProps,i=e.nextCellsCount,a=e.nextCellSize,s=e.nextScrollToIndex,l=e.scrollToIndex,c=e.updateScrollOffsetForScrollToIndex;t===i&&("number"!=typeof n&&"number"!=typeof a||n===a)||(r(o),l>=0&&l===s&&c())}function OL(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}hL.animationRealms=[],hL.globalOptions=void 0,pL.globalOptions=void 0,kL.__suppressDeprecationWarning=!0,TL.__suppressDeprecationWarning=!0,RL.__suppressDeprecationWarning=!0;var LL=function(){function e(t){var n=t.cellCount,r=t.cellSizeGetter,o=t.estimatedCellSize;mL(this,e),EL(this,"_cellSizeAndPositionData",{}),EL(this,"_lastMeasuredIndex",-1),EL(this,"_lastBatchedIndex",-1),EL(this,"_cellCount",void 0),EL(this,"_cellSizeGetter",void 0),EL(this,"_estimatedCellSize",void 0),this._cellSizeGetter=r,this._cellCount=n,this._estimatedCellSize=o}return wL(e,[{key:"areOffsetsAdjusted",value:function(){return!1}},{key:"configure",value:function(e){var t=e.cellCount,n=e.estimatedCellSize,r=e.cellSizeGetter;this._cellCount=t,this._estimatedCellSize=n,this._cellSizeGetter=r}},{key:"getCellCount",value:function(){return this._cellCount}},{key:"getEstimatedCellSize",value:function(){return this._estimatedCellSize}},{key:"getLastMeasuredIndex",value:function(){return this._lastMeasuredIndex}},{key:"getOffsetAdjustment",value:function(){return 0}},{key:"getSizeAndPositionOfCell",value:function(e){if(e<0||e>=this._cellCount)throw Error("Requested index ".concat(e," is outside of range 0..").concat(this._cellCount));if(e>this._lastMeasuredIndex)for(var t=this.getSizeAndPositionOfLastMeasuredCell(),n=t.offset+t.size,r=this._lastMeasuredIndex+1;r<=e;r++){var o=this._cellSizeGetter({index:r});if(void 0===o||isNaN(o))throw Error("Invalid size returned for cell ".concat(r," of value ").concat(o));null===o?(this._cellSizeAndPositionData[r]={offset:n,size:0},this._lastBatchedIndex=e):(this._cellSizeAndPositionData[r]={offset:n,size:o},n+=o,this._lastMeasuredIndex=e)}return this._cellSizeAndPositionData[e]}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._lastMeasuredIndex>=0?this._cellSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}}},{key:"getTotalSize",value:function(){var e=this.getSizeAndPositionOfLastMeasuredCell();return e.offset+e.size+(this._cellCount-this._lastMeasuredIndex-1)*this._estimatedCellSize}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,r=e.containerSize,o=e.currentOffset,i=e.targetIndex;if(r<=0)return 0;var a,s=this.getSizeAndPositionOfCell(i),l=s.offset,c=l-r+s.size;switch(n){case"start":a=l;break;case"end":a=c;break;case"center":a=l-(r-s.size)/2;break;default:a=Math.max(c,Math.min(l,o))}var u=this.getTotalSize();return Math.max(0,Math.min(u-r,a))}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,n=e.offset;if(0===this.getTotalSize())return{};var r=n+t,o=this._findNearestCell(n),i=this.getSizeAndPositionOfCell(o);n=i.offset+i.size;for(var a=o;n<r&&a<this._cellCount-1;)a++,n+=this.getSizeAndPositionOfCell(a).size;return{start:o,stop:a}}},{key:"resetCell",value:function(e){this._lastMeasuredIndex=Math.min(this._lastMeasuredIndex,e-1)}},{key:"_binarySearch",value:function(e,t,n){for(;t<=e;){var r=t+Math.floor((e-t)/2),o=this.getSizeAndPositionOfCell(r).offset;if(o===n)return r;o<n?t=r+1:o>n&&(e=r-1)}return t>0?t-1:0}},{key:"_exponentialSearch",value:function(e,t){for(var n=1;e<this._cellCount&&this.getSizeAndPositionOfCell(e).offset<t;)e+=n,n*=2;return this._binarySearch(Math.min(e,this._cellCount-1),Math.floor(e/2),t)}},{key:"_findNearestCell",value:function(e){if(isNaN(e))throw Error("Invalid offset ".concat(e," specified"));e=Math.max(0,e);var t=this.getSizeAndPositionOfLastMeasuredCell(),n=Math.max(0,this._lastMeasuredIndex);return t.offset>=e?this._binarySearch(n,0,e):this._exponentialSearch(n,e)}}]),e}(),AL=function(){return"undefined"!=typeof window&&window.chrome?16777100:15e5},DL=function(){function e(t){var n=t.maxScrollSize,r=void 0===n?AL():n,o=OL(t,["maxScrollSize"]);mL(this,e),EL(this,"_cellSizeAndPositionManager",void 0),EL(this,"_maxScrollSize",void 0),this._cellSizeAndPositionManager=new LL(o),this._maxScrollSize=r}return wL(e,[{key:"areOffsetsAdjusted",value:function(){return this._cellSizeAndPositionManager.getTotalSize()>this._maxScrollSize}},{key:"configure",value:function(e){this._cellSizeAndPositionManager.configure(e)}},{key:"getCellCount",value:function(){return this._cellSizeAndPositionManager.getCellCount()}},{key:"getEstimatedCellSize",value:function(){return this._cellSizeAndPositionManager.getEstimatedCellSize()}},{key:"getLastMeasuredIndex",value:function(){return this._cellSizeAndPositionManager.getLastMeasuredIndex()}},{key:"getOffsetAdjustment",value:function(e){var t=e.containerSize,n=e.offset,r=this._cellSizeAndPositionManager.getTotalSize(),o=this.getTotalSize(),i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:o});return Math.round(i*(o-r))}},{key:"getSizeAndPositionOfCell",value:function(e){return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(e)}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell()}},{key:"getTotalSize",value:function(){return Math.min(this._maxScrollSize,this._cellSizeAndPositionManager.getTotalSize())}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,r=e.containerSize,o=e.currentOffset,i=e.targetIndex;o=this._safeOffsetToOffset({containerSize:r,offset:o});var a=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:n,containerSize:r,currentOffset:o,targetIndex:i});return this._offsetToSafeOffset({containerSize:r,offset:a})}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,n=e.offset;return n=this._safeOffsetToOffset({containerSize:t,offset:n}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:t,offset:n})}},{key:"resetCell",value:function(e){this._cellSizeAndPositionManager.resetCell(e)}},{key:"_getOffsetPercentage",value:function(e){var t=e.containerSize,n=e.offset,r=e.totalSize;return r<=t?0:n/(r-t)}},{key:"_offsetToSafeOffset",value:function(e){var t=e.containerSize,n=e.offset,r=this._cellSizeAndPositionManager.getTotalSize(),o=this.getTotalSize();if(r===o)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:r});return Math.round(i*(o-t))}},{key:"_safeOffsetToOffset",value:function(e){var t=e.containerSize,n=e.offset,r=this._cellSizeAndPositionManager.getTotalSize(),o=this.getTotalSize();if(r===o)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:o});return Math.round(i*(r-t))}}]),e}();function FL(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={};return function(n){var r=n.callback,o=n.indices,i=Object.keys(o),a=!e||i.every((function(e){var t=o[e];return Array.isArray(t)?t.length>0:t>=0})),s=i.length!==Object.keys(t).length||i.some((function(e){var n=t[e],r=o[e];return Array.isArray(r)?n.join(",")!==r.join(","):n!==r}));t=o,a&&s&&r(o)}}function NL(e){var t=e.cellSize,n=e.cellSizeAndPositionManager,r=e.previousCellsCount,o=e.previousCellSize,i=e.previousScrollToAlignment,a=e.previousScrollToIndex,s=e.previousSize,l=e.scrollOffset,c=e.scrollToAlignment,u=e.scrollToIndex,d=e.size,f=e.sizeJustIncreasedFromZero,h=e.updateScrollIndexCallback,p=n.getCellCount(),m=u>=0&&u<p;m&&(d!==s||f||!o||"number"==typeof t&&t!==o||c!==i||u!==a)?h(u):!m&&p>0&&(d<s||p<r)&&l>n.getTotalSize()-d&&h(p-1)}const BL=!("undefined"==typeof window||!window.document||!window.document.createElement);var HL,VL;function jL(e){if((!HL&&0!==HL||e)&&BL){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),HL=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return HL}var WL,UL,GL=(VL="undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).requestAnimationFrame||VL.webkitRequestAnimationFrame||VL.mozRequestAnimationFrame||VL.oRequestAnimationFrame||VL.msRequestAnimationFrame||function(e){return VL.setTimeout(e,1e3/60)},$L=VL.cancelAnimationFrame||VL.webkitCancelAnimationFrame||VL.mozCancelAnimationFrame||VL.oCancelAnimationFrame||VL.msCancelAnimationFrame||function(e){VL.clearTimeout(e)},KL=GL,XL=$L,qL=function(e){return XL(e.id)},YL=function(e,t){var n;Promise.resolve().then((function(){n=Date.now()}));var r={id:KL((function o(){Date.now()-n>=t?e.call():r.id=KL(o)}))};return r};function QL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ZL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?QL(n,!0).forEach((function(t){EL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QL(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var JL="observed",eA="requested",tA=(UL=WL=function(e){function t(e){var n;mL(this,t),EL(bL(n=SL(this,xL(t).call(this,e))),"_onGridRenderedMemoizer",FL()),EL(bL(n),"_onScrollMemoizer",FL(!1)),EL(bL(n),"_deferredInvalidateColumnIndex",null),EL(bL(n),"_deferredInvalidateRowIndex",null),EL(bL(n),"_recomputeScrollLeftFlag",!1),EL(bL(n),"_recomputeScrollTopFlag",!1),EL(bL(n),"_horizontalScrollBarSize",0),EL(bL(n),"_verticalScrollBarSize",0),EL(bL(n),"_scrollbarPresenceChanged",!1),EL(bL(n),"_scrollingContainer",void 0),EL(bL(n),"_childrenToDisplay",void 0),EL(bL(n),"_columnStartIndex",void 0),EL(bL(n),"_columnStopIndex",void 0),EL(bL(n),"_rowStartIndex",void 0),EL(bL(n),"_rowStopIndex",void 0),EL(bL(n),"_renderedColumnStartIndex",0),EL(bL(n),"_renderedColumnStopIndex",0),EL(bL(n),"_renderedRowStartIndex",0),EL(bL(n),"_renderedRowStopIndex",0),EL(bL(n),"_initialScrollTop",void 0),EL(bL(n),"_initialScrollLeft",void 0),EL(bL(n),"_disablePointerEventsTimeoutId",void 0),EL(bL(n),"_styleCache",{}),EL(bL(n),"_cellCache",{}),EL(bL(n),"_debounceScrollEndedCallback",(function(){n._disablePointerEventsTimeoutId=null,n.setState({isScrolling:!1,needToResetStyleCache:!1})})),EL(bL(n),"_invokeOnGridRenderedHelper",(function(){var e=n.props.onSectionRendered;n._onGridRenderedMemoizer({callback:e,indices:{columnOverscanStartIndex:n._columnStartIndex,columnOverscanStopIndex:n._columnStopIndex,columnStartIndex:n._renderedColumnStartIndex,columnStopIndex:n._renderedColumnStopIndex,rowOverscanStartIndex:n._rowStartIndex,rowOverscanStopIndex:n._rowStopIndex,rowStartIndex:n._renderedRowStartIndex,rowStopIndex:n._renderedRowStopIndex}})})),EL(bL(n),"_setScrollingContainerRef",(function(e){n._scrollingContainer=e})),EL(bL(n),"_onScroll",(function(e){e.target===n._scrollingContainer&&n.handleScrollEvent(e.target)}));var r=new DL({cellCount:e.columnCount,cellSizeGetter:function(n){return t._wrapSizeGetter(e.columnWidth)(n)},estimatedCellSize:t._getEstimatedColumnSize(e)}),o=new DL({cellCount:e.rowCount,cellSizeGetter:function(n){return t._wrapSizeGetter(e.rowHeight)(n)},estimatedCellSize:t._getEstimatedRowSize(e)});return n.state={instanceProps:{columnSizeAndPositionManager:r,rowSizeAndPositionManager:o,prevColumnWidth:e.columnWidth,prevRowHeight:e.rowHeight,prevColumnCount:e.columnCount,prevRowCount:e.rowCount,prevIsScrolling:!0===e.isScrolling,prevScrollToColumn:e.scrollToColumn,prevScrollToRow:e.scrollToRow,scrollbarSize:0,scrollbarSizeMeasured:!1},isScrolling:!1,scrollDirectionHorizontal:1,scrollDirectionVertical:1,scrollLeft:0,scrollTop:0,scrollPositionChangeReason:null,needToResetStyleCache:!1},e.scrollToRow>0&&(n._initialScrollTop=n._getCalculatedScrollTop(e,n.state)),e.scrollToColumn>0&&(n._initialScrollLeft=n._getCalculatedScrollLeft(e,n.state)),n}return CL(t,U.PureComponent),wL(t,[{key:"getOffsetForCell",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,n=void 0===t?this.props.scrollToAlignment:t,r=e.columnIndex,o=void 0===r?this.props.scrollToColumn:r,i=e.rowIndex,a=void 0===i?this.props.scrollToRow:i,s=ZL({},this.props,{scrollToAlignment:n,scrollToColumn:o,scrollToRow:a});return{scrollLeft:this._getCalculatedScrollLeft(s),scrollTop:this._getCalculatedScrollTop(s)}}},{key:"getTotalRowsHeight",value:function(){return this.state.instanceProps.rowSizeAndPositionManager.getTotalSize()}},{key:"getTotalColumnsWidth",value:function(){return this.state.instanceProps.columnSizeAndPositionManager.getTotalSize()}},{key:"handleScrollEvent",value:function(e){var t=e.scrollLeft,n=void 0===t?0:t,r=e.scrollTop,o=void 0===r?0:r;if(!(o<0)){this._debounceScrollEnded();var i=this.props,a=i.autoHeight,s=i.autoWidth,l=i.height,c=i.width,u=this.state.instanceProps,d=u.scrollbarSize,f=u.rowSizeAndPositionManager.getTotalSize(),h=u.columnSizeAndPositionManager.getTotalSize(),p=Math.min(Math.max(0,h-c+d),n),m=Math.min(Math.max(0,f-l+d),o);if(this.state.scrollLeft!==p||this.state.scrollTop!==m){var g={isScrolling:!0,scrollDirectionHorizontal:p!==this.state.scrollLeft?p>this.state.scrollLeft?1:-1:this.state.scrollDirectionHorizontal,scrollDirectionVertical:m!==this.state.scrollTop?m>this.state.scrollTop?1:-1:this.state.scrollDirectionVertical,scrollPositionChangeReason:JL};a||(g.scrollTop=m),s||(g.scrollLeft=p),g.needToResetStyleCache=!1,this.setState(g)}this._invokeOnScrollMemoizer({scrollLeft:p,scrollTop:m,totalColumnsWidth:h,totalRowsHeight:f})}}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,n=e.rowIndex;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,t):t,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,n):n}},{key:"measureAllCells",value:function(){var e=this.props,t=e.columnCount,n=e.rowCount,r=this.state.instanceProps;r.columnSizeAndPositionManager.getSizeAndPositionOfCell(t-1),r.rowSizeAndPositionManager.getSizeAndPositionOfCell(n-1)}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,r=e.rowIndex,o=void 0===r?0:r,i=this.props,a=i.scrollToColumn,s=i.scrollToRow,l=this.state.instanceProps;l.columnSizeAndPositionManager.resetCell(n),l.rowSizeAndPositionManager.resetCell(o),this._recomputeScrollLeftFlag=a>=0&&(1===this.state.scrollDirectionHorizontal?n<=a:n>=a),this._recomputeScrollTopFlag=s>=0&&(1===this.state.scrollDirectionVertical?o<=s:o>=s),this._styleCache={},this._cellCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(e){var t=e.columnIndex,n=e.rowIndex,r=this.props.columnCount,o=this.props;r>1&&void 0!==t&&this._updateScrollLeftForScrollToColumn(ZL({},o,{scrollToColumn:t})),void 0!==n&&this._updateScrollTopForScrollToRow(ZL({},o,{scrollToRow:n}))}},{key:"componentDidMount",value:function(){var e=this.props,n=e.getScrollbarSize,r=e.height,o=e.scrollLeft,i=e.scrollToColumn,a=e.scrollTop,s=e.scrollToRow,l=e.width,c=this.state.instanceProps;if(this._initialScrollTop=0,this._initialScrollLeft=0,this._handleInvalidatedGridSize(),c.scrollbarSizeMeasured||this.setState((function(e){var t=ZL({},e,{needToResetStyleCache:!1});return t.instanceProps.scrollbarSize=n(),t.instanceProps.scrollbarSizeMeasured=!0,t})),"number"==typeof o&&o>=0||"number"==typeof a&&a>=0){var u=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:o,scrollTop:a});u&&(u.needToResetStyleCache=!1,this.setState(u))}this._scrollingContainer&&(this._scrollingContainer.scrollLeft!==this.state.scrollLeft&&(this._scrollingContainer.scrollLeft=this.state.scrollLeft),this._scrollingContainer.scrollTop!==this.state.scrollTop&&(this._scrollingContainer.scrollTop=this.state.scrollTop));var d=r>0&&l>0;i>=0&&d&&this._updateScrollLeftForScrollToColumn(),s>=0&&d&&this._updateScrollTopForScrollToRow(),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:o||0,scrollTop:a||0,totalColumnsWidth:c.columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:c.rowSizeAndPositionManager.getTotalSize()}),this._maybeCallOnScrollbarPresenceChange()}},{key:"componentDidUpdate",value:function(e,t){var n=this,r=this.props,o=r.autoHeight,i=r.autoWidth,a=r.columnCount,s=r.height,l=r.rowCount,c=r.scrollToAlignment,u=r.scrollToColumn,d=r.scrollToRow,f=r.width,h=this.state,p=h.scrollLeft,m=h.scrollPositionChangeReason,g=h.scrollTop,v=h.instanceProps;this._handleInvalidatedGridSize();var y=a>0&&0===e.columnCount||l>0&&0===e.rowCount;m===eA&&(!i&&p>=0&&(p!==this._scrollingContainer.scrollLeft||y)&&(this._scrollingContainer.scrollLeft=p),!o&&g>=0&&(g!==this._scrollingContainer.scrollTop||y)&&(this._scrollingContainer.scrollTop=g));var w=(0===e.width||0===e.height)&&s>0&&f>0;if(this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):NL({cellSizeAndPositionManager:v.columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:p,scrollToAlignment:c,scrollToIndex:u,size:f,sizeJustIncreasedFromZero:w,updateScrollIndexCallback:function(){return n._updateScrollLeftForScrollToColumn(n.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):NL({cellSizeAndPositionManager:v.rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:g,scrollToAlignment:c,scrollToIndex:d,size:s,sizeJustIncreasedFromZero:w,updateScrollIndexCallback:function(){return n._updateScrollTopForScrollToRow(n.props)}}),this._invokeOnGridRenderedHelper(),p!==t.scrollLeft||g!==t.scrollTop){var b=v.rowSizeAndPositionManager.getTotalSize(),S=v.columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:p,scrollTop:g,totalColumnsWidth:S,totalRowsHeight:b})}this._maybeCallOnScrollbarPresenceChange()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&qL(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoContainerWidth,n=e.autoHeight,r=e.autoWidth,o=e.className,i=e.containerProps,a=e.containerRole,s=e.containerStyle,l=e.height,c=e.id,u=e.noContentRenderer,d=e.role,f=e.style,h=e.tabIndex,p=e.width,m=this.state,g=m.instanceProps,v=m.needToResetStyleCache,y=this._isScrolling(),w={boxSizing:"border-box",direction:"ltr",height:n?"auto":l,position:"relative",width:r?"auto":p,WebkitOverflowScrolling:"touch",willChange:"transform"};v&&(this._styleCache={}),this.state.isScrolling||this._resetStyleCache(),this._calculateChildrenToRender(this.props,this.state);var b=g.columnSizeAndPositionManager.getTotalSize(),S=g.rowSizeAndPositionManager.getTotalSize(),x=S>l?g.scrollbarSize:0,_=b>p?g.scrollbarSize:0;_===this._horizontalScrollBarSize&&x===this._verticalScrollBarSize||(this._horizontalScrollBarSize=_,this._verticalScrollBarSize=x,this._scrollbarPresenceChanged=!0),w.overflowX=b+x<=p?"hidden":"auto",w.overflowY=S+_<=l?"hidden":"auto";var C=this._childrenToDisplay,E=0===C.length&&l>0&&p>0;return U.createElement("div",Jn({ref:this._setScrollingContainerRef},i,{"aria-label":this.props["aria-label"],"aria-readonly":this.props["aria-readonly"],className:ML("ReactVirtualized__Grid",o),id:c,onScroll:this._onScroll,role:d,style:ZL({},w,{},f),tabIndex:h}),C.length>0&&U.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",role:a,style:ZL({width:t?"auto":b,height:S,maxWidth:b,maxHeight:S,overflow:"hidden",pointerEvents:y?"none":"",position:"relative"},s)},C),E&&u())}},{key:"_calculateChildrenToRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.cellRenderer,r=e.cellRangeRenderer,o=e.columnCount,i=e.deferredMeasurementCache,a=e.height,s=e.overscanColumnCount,l=e.overscanIndicesGetter,c=e.overscanRowCount,u=e.rowCount,d=e.width,f=e.isScrollingOptOut,h=t.scrollDirectionHorizontal,p=t.scrollDirectionVertical,m=t.instanceProps,g=this._initialScrollTop>0?this._initialScrollTop:t.scrollTop,v=this._initialScrollLeft>0?this._initialScrollLeft:t.scrollLeft,y=this._isScrolling(e,t);if(this._childrenToDisplay=[],a>0&&d>0){var w=m.columnSizeAndPositionManager.getVisibleCellRange({containerSize:d,offset:v}),b=m.rowSizeAndPositionManager.getVisibleCellRange({containerSize:a,offset:g}),S=m.columnSizeAndPositionManager.getOffsetAdjustment({containerSize:d,offset:v}),x=m.rowSizeAndPositionManager.getOffsetAdjustment({containerSize:a,offset:g});this._renderedColumnStartIndex=w.start,this._renderedColumnStopIndex=w.stop,this._renderedRowStartIndex=b.start,this._renderedRowStopIndex=b.stop;var _=l({direction:"horizontal",cellCount:o,overscanCellsCount:s,scrollDirection:h,startIndex:"number"==typeof w.start?w.start:0,stopIndex:"number"==typeof w.stop?w.stop:-1}),C=l({direction:"vertical",cellCount:u,overscanCellsCount:c,scrollDirection:p,startIndex:"number"==typeof b.start?b.start:0,stopIndex:"number"==typeof b.stop?b.stop:-1}),E=_.overscanStartIndex,k=_.overscanStopIndex,T=C.overscanStartIndex,R=C.overscanStopIndex;if(i){if(!i.hasFixedHeight())for(var P=T;P<=R;P++)if(!i.has(P,0)){E=0,k=o-1;break}if(!i.hasFixedWidth())for(var I=E;I<=k;I++)if(!i.has(0,I)){T=0,R=u-1;break}}this._childrenToDisplay=r({cellCache:this._cellCache,cellRenderer:n,columnSizeAndPositionManager:m.columnSizeAndPositionManager,columnStartIndex:E,columnStopIndex:k,deferredMeasurementCache:i,horizontalOffsetAdjustment:S,isScrolling:y,isScrollingOptOut:f,parent:this,rowSizeAndPositionManager:m.rowSizeAndPositionManager,rowStartIndex:T,rowStopIndex:R,scrollLeft:v,scrollTop:g,styleCache:this._styleCache,verticalOffsetAdjustment:x,visibleColumnIndices:w,visibleRowIndices:b}),this._columnStartIndex=E,this._columnStopIndex=k,this._rowStartIndex=T,this._rowStopIndex=R}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&qL(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=YL(this._debounceScrollEndedCallback,e)}},{key:"_handleInvalidatedGridSize",value:function(){if("number"==typeof this._deferredInvalidateColumnIndex&&"number"==typeof this._deferredInvalidateRowIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t})}}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,r=e.scrollTop,o=e.totalColumnsWidth,i=e.totalRowsHeight;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,r=e.scrollTop,a=t.props,s=a.height;(0,a.onScroll)({clientHeight:s,clientWidth:a.width,scrollHeight:i,scrollLeft:n,scrollTop:r,scrollWidth:o})},indices:{scrollLeft:n,scrollTop:r}})}},{key:"_isScrolling",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return Object.hasOwnProperty.call(e,"isScrolling")?Boolean(e.isScrolling):Boolean(t.isScrolling)}},{key:"_maybeCallOnScrollbarPresenceChange",value:function(){if(this._scrollbarPresenceChanged){var e=this.props.onScrollbarPresenceChange;this._scrollbarPresenceChanged=!1,e({horizontal:this._horizontalScrollBarSize>0,size:this.state.instanceProps.scrollbarSize,vertical:this._verticalScrollBarSize>0})}}},{key:"scrollToPosition",value:function(e){var n=e.scrollLeft,r=e.scrollTop,o=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:n,scrollTop:r});o&&(o.needToResetStyleCache=!1,this.setState(o))}},{key:"_getCalculatedScrollLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return t._getCalculatedScrollLeft(e,n)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,r=t._getScrollLeftForScrollToColumnStateUpdate(e,n);r&&(r.needToResetStyleCache=!1,this.setState(r))}},{key:"_getCalculatedScrollTop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return t._getCalculatedScrollTop(e,n)}},{key:"_resetStyleCache",value:function(){var e=this._styleCache,t=this._cellCache,n=this.props.isScrollingOptOut;this._cellCache={},this._styleCache={};for(var r=this._rowStartIndex;r<=this._rowStopIndex;r++)for(var o=this._columnStartIndex;o<=this._columnStopIndex;o++){var i="".concat(r,"-").concat(o);this._styleCache[i]=e[i],n&&(this._cellCache[i]=t[i])}}},{key:"_updateScrollTopForScrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,r=t._getScrollTopForScrollToRowStateUpdate(e,n);r&&(r.needToResetStyleCache=!1,this.setState(r))}}],[{key:"getDerivedStateFromProps",value:function(e,n){var r={};0===e.columnCount&&0!==n.scrollLeft||0===e.rowCount&&0!==n.scrollTop?(r.scrollLeft=0,r.scrollTop=0):(e.scrollLeft!==n.scrollLeft&&e.scrollToColumn<0||e.scrollTop!==n.scrollTop&&e.scrollToRow<0)&&Object.assign(r,t._getScrollToPositionStateUpdate({prevState:n,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}));var o,i,a=n.instanceProps;return r.needToResetStyleCache=!1,e.columnWidth===a.prevColumnWidth&&e.rowHeight===a.prevRowHeight||(r.needToResetStyleCache=!0),a.columnSizeAndPositionManager.configure({cellCount:e.columnCount,estimatedCellSize:t._getEstimatedColumnSize(e),cellSizeGetter:t._wrapSizeGetter(e.columnWidth)}),a.rowSizeAndPositionManager.configure({cellCount:e.rowCount,estimatedCellSize:t._getEstimatedRowSize(e),cellSizeGetter:t._wrapSizeGetter(e.rowHeight)}),0!==a.prevColumnCount&&0!==a.prevRowCount||(a.prevColumnCount=0,a.prevRowCount=0),e.autoHeight&&!1===e.isScrolling&&!0===a.prevIsScrolling&&Object.assign(r,{isScrolling:!1}),zL({cellCount:a.prevColumnCount,cellSize:"number"==typeof a.prevColumnWidth?a.prevColumnWidth:null,computeMetadataCallback:function(){return a.columnSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.columnCount,nextCellSize:"number"==typeof e.columnWidth?e.columnWidth:null,nextScrollToIndex:e.scrollToColumn,scrollToIndex:a.prevScrollToColumn,updateScrollOffsetForScrollToIndex:function(){o=t._getScrollLeftForScrollToColumnStateUpdate(e,n)}}),zL({cellCount:a.prevRowCount,cellSize:"number"==typeof a.prevRowHeight?a.prevRowHeight:null,computeMetadataCallback:function(){return a.rowSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.rowCount,nextCellSize:"number"==typeof e.rowHeight?e.rowHeight:null,nextScrollToIndex:e.scrollToRow,scrollToIndex:a.prevScrollToRow,updateScrollOffsetForScrollToIndex:function(){i=t._getScrollTopForScrollToRowStateUpdate(e,n)}}),a.prevColumnCount=e.columnCount,a.prevColumnWidth=e.columnWidth,a.prevIsScrolling=!0===e.isScrolling,a.prevRowCount=e.rowCount,a.prevRowHeight=e.rowHeight,a.prevScrollToColumn=e.scrollToColumn,a.prevScrollToRow=e.scrollToRow,a.scrollbarSize=e.getScrollbarSize(),void 0===a.scrollbarSize?(a.scrollbarSizeMeasured=!1,a.scrollbarSize=0):a.scrollbarSizeMeasured=!0,r.instanceProps=a,ZL({},r,{},o,{},i)}},{key:"_getEstimatedColumnSize",value:function(e){return"number"==typeof e.columnWidth?e.columnWidth:e.estimatedColumnSize}},{key:"_getEstimatedRowSize",value:function(e){return"number"==typeof e.rowHeight?e.rowHeight:e.estimatedRowSize}},{key:"_getScrollToPositionStateUpdate",value:function(e){var t=e.prevState,n=e.scrollLeft,r=e.scrollTop,o={scrollPositionChangeReason:eA};return"number"==typeof n&&n>=0&&(o.scrollDirectionHorizontal=n>t.scrollLeft?1:-1,o.scrollLeft=n),"number"==typeof r&&r>=0&&(o.scrollDirectionVertical=r>t.scrollTop?1:-1,o.scrollTop=r),"number"==typeof n&&n>=0&&n!==t.scrollLeft||"number"==typeof r&&r>=0&&r!==t.scrollTop?o:{}}},{key:"_wrapSizeGetter",value:function(e){return"function"==typeof e?e:function(){return e}}},{key:"_getCalculatedScrollLeft",value:function(e,t){var n=e.columnCount,r=e.height,o=e.scrollToAlignment,i=e.scrollToColumn,a=e.width,s=t.scrollLeft,l=t.instanceProps;if(n>0){var c=n-1,u=i<0?c:Math.min(c,i),d=l.rowSizeAndPositionManager.getTotalSize(),f=l.scrollbarSizeMeasured&&d>r?l.scrollbarSize:0;return l.columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:o,containerSize:a-f,currentOffset:s,targetIndex:u})}return 0}},{key:"_getScrollLeftForScrollToColumnStateUpdate",value:function(e,n){var r=n.scrollLeft,o=t._getCalculatedScrollLeft(e,n);return"number"==typeof o&&o>=0&&r!==o?t._getScrollToPositionStateUpdate({prevState:n,scrollLeft:o,scrollTop:-1}):{}}},{key:"_getCalculatedScrollTop",value:function(e,t){var n=e.height,r=e.rowCount,o=e.scrollToAlignment,i=e.scrollToRow,a=e.width,s=t.scrollTop,l=t.instanceProps;if(r>0){var c=r-1,u=i<0?c:Math.min(c,i),d=l.columnSizeAndPositionManager.getTotalSize(),f=l.scrollbarSizeMeasured&&d>a?l.scrollbarSize:0;return l.rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:o,containerSize:n-f,currentOffset:s,targetIndex:u})}return 0}},{key:"_getScrollTopForScrollToRowStateUpdate",value:function(e,n){var r=n.scrollTop,o=t._getCalculatedScrollTop(e,n);return"number"==typeof o&&o>=0&&r!==o?t._getScrollToPositionStateUpdate({prevState:n,scrollLeft:-1,scrollTop:o}):{}}}]),t}(),EL(WL,"propTypes",null),UL);EL(tA,"defaultProps",{"aria-label":"grid","aria-readonly":!0,autoContainerWidth:!1,autoHeight:!1,autoWidth:!1,cellRangeRenderer:function(e){for(var t=e.cellCache,n=e.cellRenderer,r=e.columnSizeAndPositionManager,o=e.columnStartIndex,i=e.columnStopIndex,a=e.deferredMeasurementCache,s=e.horizontalOffsetAdjustment,l=e.isScrolling,c=e.isScrollingOptOut,u=e.parent,d=e.rowSizeAndPositionManager,f=e.rowStartIndex,h=e.rowStopIndex,p=e.styleCache,m=e.verticalOffsetAdjustment,g=e.visibleColumnIndices,v=e.visibleRowIndices,y=[],w=r.areOffsetsAdjusted()||d.areOffsetsAdjusted(),b=!l&&!w,S=f;S<=h;S++)for(var x=d.getSizeAndPositionOfCell(S),_=o;_<=i;_++){var C=r.getSizeAndPositionOfCell(_),E=_>=g.start&&_<=g.stop&&S>=v.start&&S<=v.stop,k="".concat(S,"-").concat(_),T=void 0;b&&p[k]?T=p[k]:a&&!a.has(S,_)?T={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(T={height:x.size,left:C.offset+s,position:"absolute",top:x.offset+m,width:C.size},p[k]=T);var R={columnIndex:_,isScrolling:l,isVisible:E,key:k,parent:u,rowIndex:S,style:T},P=void 0;!c&&!l||s||m?P=n(R):(t[k]||(t[k]=n(R)),P=t[k]),null!=P&&!1!==P&&y.push(P)}return y},containerRole:"rowgroup",containerStyle:{},estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:jL,noContentRenderer:function(){return null},onScroll:function(){},onScrollbarPresenceChange:function(){},onSectionRendered:function(){},overscanColumnCount:0,overscanIndicesGetter:function(e){var t=e.cellCount,n=e.overscanCellsCount,r=e.scrollDirection,o=e.startIndex,i=e.stopIndex;return 1===r?{overscanStartIndex:Math.max(0,o),overscanStopIndex:Math.min(t-1,i+n)}:{overscanStartIndex:Math.max(0,o-n),overscanStopIndex:Math.min(t-1,i)}},overscanRowCount:10,role:"grid",scrollingResetTimeInterval:150,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0,isScrollingOptOut:!1}),PL(tA);var nA,rA;function oA(e){var t=e.cellCount,n=e.overscanCellsCount,r=e.scrollDirection,o=e.startIndex,i=e.stopIndex;return n=Math.max(1,n),1===r?{overscanStartIndex:Math.max(0,o-1),overscanStopIndex:Math.min(t-1,i+n)}:{overscanStartIndex:Math.max(0,o-n),overscanStopIndex:Math.min(t-1,i+1)}}function iA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var aA,sA,lA=(rA=nA=function(e){function t(){var e,n;mL(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return EL(bL(n=SL(this,(e=xL(t)).call.apply(e,[this].concat(o)))),"state",{scrollToColumn:0,scrollToRow:0,instanceProps:{prevScrollToColumn:0,prevScrollToRow:0}}),EL(bL(n),"_columnStartIndex",0),EL(bL(n),"_columnStopIndex",0),EL(bL(n),"_rowStartIndex",0),EL(bL(n),"_rowStopIndex",0),EL(bL(n),"_onKeyDown",(function(e){var t=n.props,r=t.columnCount,o=t.disabled,i=t.mode,a=t.rowCount;if(!o){var s=n._getScrollState(),l=s.scrollToColumn,c=s.scrollToRow,u=n._getScrollState(),d=u.scrollToColumn,f=u.scrollToRow;switch(e.key){case"ArrowDown":f="cells"===i?Math.min(f+1,a-1):Math.min(n._rowStopIndex+1,a-1);break;case"ArrowLeft":d="cells"===i?Math.max(d-1,0):Math.max(n._columnStartIndex-1,0);break;case"ArrowRight":d="cells"===i?Math.min(d+1,r-1):Math.min(n._columnStopIndex+1,r-1);break;case"ArrowUp":f="cells"===i?Math.max(f-1,0):Math.max(n._rowStartIndex-1,0)}d===l&&f===c||(e.preventDefault(),n._updateScrollState({scrollToColumn:d,scrollToRow:f}))}})),EL(bL(n),"_onSectionRendered",(function(e){var t=e.columnStartIndex,r=e.columnStopIndex,o=e.rowStartIndex,i=e.rowStopIndex;n._columnStartIndex=t,n._columnStopIndex=r,n._rowStartIndex=o,n._rowStopIndex=i})),n}return CL(t,U.PureComponent),wL(t,[{key:"setScrollIndexes",value:function(e){var t=e.scrollToColumn,n=e.scrollToRow;this.setState({scrollToRow:n,scrollToColumn:t})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.children,r=this._getScrollState(),o=r.scrollToColumn,i=r.scrollToRow;return U.createElement("div",{className:t,onKeyDown:this._onKeyDown},n({onSectionRendered:this._onSectionRendered,scrollToColumn:o,scrollToRow:i}))}},{key:"_getScrollState",value:function(){return this.props.isControlled?this.props:this.state}},{key:"_updateScrollState",value:function(e){var t=e.scrollToColumn,n=e.scrollToRow,r=this.props,o=r.isControlled,i=r.onScrollToChange;"function"==typeof i&&i({scrollToColumn:t,scrollToRow:n}),o||this.setState({scrollToColumn:t,scrollToRow:n})}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.isControlled?{}:e.scrollToColumn!==t.instanceProps.prevScrollToColumn||e.scrollToRow!==t.instanceProps.prevScrollToRow?function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?iA(n,!0).forEach((function(t){EL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iA(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t,{scrollToColumn:e.scrollToColumn,scrollToRow:e.scrollToRow,instanceProps:{prevScrollToColumn:e.scrollToColumn,prevScrollToRow:e.scrollToRow}}):{}}}]),t}(),EL(nA,"propTypes",null),rA);function cA(e,t){var n,r,o,i=void 0!==(n=void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:global).document&&n.document.attachEvent;if(!i){var a=(o=n.requestAnimationFrame||n.mozRequestAnimationFrame||n.webkitRequestAnimationFrame||function(e){return n.setTimeout(e,20)},function(e){return o(e)}),s=(r=n.cancelAnimationFrame||n.mozCancelAnimationFrame||n.webkitCancelAnimationFrame||n.clearTimeout,function(e){return r(e)}),l=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,o=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,o.style.width=n.offsetWidth+1+"px",o.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},c=function(e){if(!(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;l(this),this.__resizeRAF__&&s(this.__resizeRAF__),this.__resizeRAF__=a((function(){(function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height})(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))}},u=!1,d="",f="animationstart",h="Webkit Moz O ms".split(" "),p="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),m=n.document.createElement("fakeelement");if(void 0!==m.style.animationName&&(u=!0),!1===u)for(var g=0;g<h.length;g++)if(void 0!==m.style[h[g]+"AnimationName"]){d="-"+h[g].toLowerCase()+"-",f=p[g],u=!0;break}var v="resizeanim",y="@"+d+"keyframes "+v+" { from { opacity: 0; } to { opacity: 0; } } ",w=d+"animation: 1ms "+v+"; "}return{addResizeListener:function(t,r){if(i)t.attachEvent("onresize",r);else{if(!t.__resizeTriggers__){var o=t.ownerDocument,a=n.getComputedStyle(t);a&&"static"==a.position&&(t.style.position="relative"),function(t){if(!t.getElementById("detectElementResize")){var n=(y||"")+".resize-triggers { "+(w||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',r=t.head||t.getElementsByTagName("head")[0],o=t.createElement("style");o.id="detectElementResize",o.type="text/css",null!=e&&o.setAttribute("nonce",e),o.styleSheet?o.styleSheet.cssText=n:o.appendChild(t.createTextNode(n)),r.appendChild(o)}}(o),t.__resizeLast__={},t.__resizeListeners__=[],(t.__resizeTriggers__=o.createElement("div")).className="resize-triggers";var s='<div class="expand-trigger"><div></div></div><div class="contract-trigger"></div>';if(window.trustedTypes){var u=trustedTypes.createPolicy("react-virtualized-auto-sizer",{createHTML:function(){return s}});t.__resizeTriggers__.innerHTML=u.createHTML("")}else t.__resizeTriggers__.innerHTML=s;t.appendChild(t.__resizeTriggers__),l(t),t.addEventListener("scroll",c,!0),f&&(t.__resizeTriggers__.__animationListener__=function(e){e.animationName==v&&l(t)},t.__resizeTriggers__.addEventListener(f,t.__resizeTriggers__.__animationListener__))}t.__resizeListeners__.push(r)}},removeResizeListener:function(e,t){if(i)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",c,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(f,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(n){}}}}}function uA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uA(n,!0).forEach((function(t){EL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uA(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}EL(lA,"defaultProps",{disabled:!1,isControlled:!1,mode:"edges",scrollToColumn:0,scrollToRow:0}),PL(lA);var fA,hA,pA=(sA=aA=function(e){function t(){var e,n;mL(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return EL(bL(n=SL(this,(e=xL(t)).call.apply(e,[this].concat(o)))),"state",{height:n.props.defaultHeight||0,width:n.props.defaultWidth||0}),EL(bL(n),"_parentNode",void 0),EL(bL(n),"_autoSizer",void 0),EL(bL(n),"_window",void 0),EL(bL(n),"_detectElementResize",void 0),EL(bL(n),"_onResize",(function(){var e=n.props,t=e.disableHeight,r=e.disableWidth,o=e.onResize;if(n._parentNode){var i=n._parentNode.offsetHeight||0,a=n._parentNode.offsetWidth||0,s=(n._window||window).getComputedStyle(n._parentNode)||{},l=parseInt(s.paddingLeft,10)||0,c=parseInt(s.paddingRight,10)||0,u=parseInt(s.paddingTop,10)||0,d=parseInt(s.paddingBottom,10)||0,f=i-u-d,h=a-l-c;(!t&&n.state.height!==f||!r&&n.state.width!==h)&&(n.setState({height:i-u-d,width:a-l-c}),o({height:i,width:a}))}})),EL(bL(n),"_setRef",(function(e){n._autoSizer=e})),n}return CL(t,U.Component),wL(t,[{key:"componentDidMount",value:function(){var e=this.props.nonce;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._window=this._autoSizer.parentNode.ownerDocument.defaultView,this._detectElementResize=cA(e,this._window),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,r=e.disableHeight,o=e.disableWidth,i=e.style,a=this.state,s=a.height,l=a.width,c={overflow:"visible"},u={};return r||(c.height=0,u.height=s),o||(c.width=0,u.width=l),U.createElement("div",{className:n,ref:this._setRef,style:dA({},c,{},i)},t(u))}}]),t}(),EL(aA,"propTypes",null),sA);EL(pA,"defaultProps",{onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}});var mA=(hA=fA=function(e){function t(){var e,n;mL(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return EL(bL(n=SL(this,(e=xL(t)).call.apply(e,[this].concat(o)))),"_child",void 0),EL(bL(n),"_measure",(function(){var e=n.props,t=e.cache,r=e.columnIndex,o=void 0===r?0:r,i=e.parent,a=e.rowIndex,s=void 0===a?n.props.index||0:a,l=n._getCellMeasurements(),c=l.height,u=l.width;c===t.getHeight(s,o)&&u===t.getWidth(s,o)||(t.set(s,o,u,c),i&&"function"==typeof i.recomputeGridSize&&i.recomputeGridSize({columnIndex:o,rowIndex:s}))})),EL(bL(n),"_registerChild",(function(e){!e||e instanceof Element||console.warn("CellMeasurer registerChild expects to be passed Element or null"),n._child=e,e&&n._maybeMeasureCell()})),n}return CL(t,U.PureComponent),wL(t,[{key:"componentDidMount",value:function(){this._maybeMeasureCell()}},{key:"componentDidUpdate",value:function(){this._maybeMeasureCell()}},{key:"render",value:function(){var e=this.props.children;return"function"==typeof e?e({measure:this._measure,registerChild:this._registerChild}):e}},{key:"_getCellMeasurements",value:function(){var e=this.props.cache,t=this._child||yp.findDOMNode(this);if(t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){var n=t.style.width,r=t.style.height;e.hasFixedWidth()||(t.style.width="auto"),e.hasFixedHeight()||(t.style.height="auto");var o=Math.ceil(t.offsetHeight),i=Math.ceil(t.offsetWidth);return n&&(t.style.width=n),r&&(t.style.height=r),{height:o,width:i}}return{height:0,width:0}}},{key:"_maybeMeasureCell",value:function(){var e=this.props,t=e.cache,n=e.columnIndex,r=void 0===n?0:n,o=e.parent,i=e.rowIndex,a=void 0===i?this.props.index||0:i;if(!t.has(a,r)){var s=this._getCellMeasurements(),l=s.height,c=s.width;t.set(a,r,c,l),o&&"function"==typeof o.invalidateCellSizeAfterRender&&o.invalidateCellSizeAfterRender({columnIndex:r,rowIndex:a})}}}]),t}(),EL(fA,"propTypes",null),hA);function gA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gA(n,!0).forEach((function(t){EL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gA(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}EL(mA,"__internalCellMeasurerFlag",!1);var yA="observed",wA="requested",bA=function(e){function t(){var e,n;mL(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return EL(bL(n=SL(this,(e=xL(t)).call.apply(e,[this].concat(o)))),"state",{isScrolling:!1,scrollLeft:0,scrollTop:0}),EL(bL(n),"_calculateSizeAndPositionDataOnNextUpdate",!1),EL(bL(n),"_onSectionRenderedMemoizer",FL()),EL(bL(n),"_onScrollMemoizer",FL(!1)),EL(bL(n),"_invokeOnSectionRenderedHelper",(function(){var e=n.props,t=e.cellLayoutManager,r=e.onSectionRendered;n._onSectionRenderedMemoizer({callback:r,indices:{indices:t.getLastRenderedIndices()}})})),EL(bL(n),"_setScrollingContainerRef",(function(e){n._scrollingContainer=e})),EL(bL(n),"_updateScrollPositionForScrollToCell",(function(){var e=n.props,t=e.cellLayoutManager,r=e.height,o=e.scrollToAlignment,i=e.scrollToCell,a=e.width,s=n.state,l=s.scrollLeft,c=s.scrollTop;if(i>=0){var u=t.getScrollPositionForCell({align:o,cellIndex:i,height:r,scrollLeft:l,scrollTop:c,width:a});u.scrollLeft===l&&u.scrollTop===c||n._setScrollPosition(u)}})),EL(bL(n),"_onScroll",(function(e){if(e.target===n._scrollingContainer){n._enablePointerEventsAfterDelay();var t=n.props,r=t.cellLayoutManager,o=t.height,i=t.isScrollingChange,a=t.width,s=n._scrollbarSize,l=r.getTotalSize(),c=l.height,u=l.width,d=Math.max(0,Math.min(u-a+s,e.target.scrollLeft)),f=Math.max(0,Math.min(c-o+s,e.target.scrollTop));if(n.state.scrollLeft!==d||n.state.scrollTop!==f){var h=e.cancelable?yA:wA;n.state.isScrolling||i(!0),n.setState({isScrolling:!0,scrollLeft:d,scrollPositionChangeReason:h,scrollTop:f})}n._invokeOnScrollMemoizer({scrollLeft:d,scrollTop:f,totalWidth:u,totalHeight:c})}})),n._scrollbarSize=jL(),void 0===n._scrollbarSize?(n._scrollbarSizeMeasured=!1,n._scrollbarSize=0):n._scrollbarSizeMeasured=!0,n}return CL(t,U.PureComponent),wL(t,[{key:"recomputeCellSizesAndPositions",value:function(){this._calculateSizeAndPositionDataOnNextUpdate=!0,this.forceUpdate()}},{key:"componentDidMount",value:function(){var e=this.props,t=e.cellLayoutManager,n=e.scrollLeft,r=e.scrollToCell,o=e.scrollTop;this._scrollbarSizeMeasured||(this._scrollbarSize=jL(),this._scrollbarSizeMeasured=!0,this.setState({})),r>=0?this._updateScrollPositionForScrollToCell():(n>=0||o>=0)&&this._setScrollPosition({scrollLeft:n,scrollTop:o}),this._invokeOnSectionRenderedHelper();var i=t.getTotalSize(),a=i.height,s=i.width;this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:o||0,totalHeight:a,totalWidth:s})}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,r=n.height,o=n.scrollToAlignment,i=n.scrollToCell,a=n.width,s=this.state,l=s.scrollLeft,c=s.scrollPositionChangeReason,u=s.scrollTop;c===wA&&(l>=0&&l!==t.scrollLeft&&l!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=l),u>=0&&u!==t.scrollTop&&u!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=u)),r===e.height&&o===e.scrollToAlignment&&i===e.scrollToCell&&a===e.width||this._updateScrollPositionForScrollToCell(),this._invokeOnSectionRenderedHelper()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoHeight,n=e.cellCount,r=e.cellLayoutManager,o=e.className,i=e.height,a=e.horizontalOverscanSize,s=e.id,l=e.noContentRenderer,c=e.style,u=e.verticalOverscanSize,d=e.width,f=this.state,h=f.isScrolling,p=f.scrollLeft,m=f.scrollTop;(this._lastRenderedCellCount!==n||this._lastRenderedCellLayoutManager!==r||this._calculateSizeAndPositionDataOnNextUpdate)&&(this._lastRenderedCellCount=n,this._lastRenderedCellLayoutManager=r,this._calculateSizeAndPositionDataOnNextUpdate=!1,r.calculateSizeAndPositionData());var g=r.getTotalSize(),v=g.height,y=g.width,w=Math.max(0,p-a),b=Math.max(0,m-u),S=Math.min(y,p+d+a),x=Math.min(v,m+i+u),_=i>0&&d>0?r.cellRenderers({height:x-b,isScrolling:h,width:S-w,x:w,y:b}):[],C={boxSizing:"border-box",direction:"ltr",height:t?"auto":i,position:"relative",WebkitOverflowScrolling:"touch",width:d,willChange:"transform"},E=v>i?this._scrollbarSize:0,k=y>d?this._scrollbarSize:0;return C.overflowX=y+E<=d?"hidden":"auto",C.overflowY=v+k<=i?"hidden":"auto",U.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:ML("ReactVirtualized__Collection",o),id:s,onScroll:this._onScroll,role:"grid",style:vA({},C,{},c),tabIndex:0},n>0&&U.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:v,maxHeight:v,maxWidth:y,overflow:"hidden",pointerEvents:h?"none":"",width:y}},_),0===n&&l())}},{key:"_enablePointerEventsAfterDelay",value:function(){var e=this;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout((function(){(0,e.props.isScrollingChange)(!1),e._disablePointerEventsTimeoutId=null,e.setState({isScrolling:!1})}),150)}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,r=e.scrollTop,o=e.totalHeight,i=e.totalWidth;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,r=e.scrollTop,a=t.props,s=a.height;(0,a.onScroll)({clientHeight:s,clientWidth:a.width,scrollHeight:o,scrollLeft:n,scrollTop:r,scrollWidth:i})},indices:{scrollLeft:n,scrollTop:r}})}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,n=e.scrollTop,r={scrollPositionChangeReason:wA};t>=0&&(r.scrollLeft=t),n>=0&&(r.scrollTop=n),(t>=0&&t!==this.state.scrollLeft||n>=0&&n!==this.state.scrollTop)&&this.setState(r)}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 0!==e.cellCount||0===t.scrollLeft&&0===t.scrollTop?e.scrollLeft!==t.scrollLeft||e.scrollTop!==t.scrollTop?{scrollLeft:null!=e.scrollLeft?e.scrollLeft:t.scrollLeft,scrollTop:null!=e.scrollTop?e.scrollTop:t.scrollTop,scrollPositionChangeReason:wA}:null:{scrollLeft:0,scrollTop:0,scrollPositionChangeReason:wA}}}]),t}();EL(bA,"defaultProps",{"aria-label":"grid",horizontalOverscanSize:0,noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},scrollToAlignment:"auto",scrollToCell:-1,style:{},verticalOverscanSize:0}),bA.propTypes={},PL(bA);var SA=function(){function e(t){var n=t.height,r=t.width,o=t.x,i=t.y;mL(this,e),this.height=n,this.width=r,this.x=o,this.y=i,this._indexMap={},this._indices=[]}return wL(e,[{key:"addCellIndex",value:function(e){var t=e.index;this._indexMap[t]||(this._indexMap[t]=!0,this._indices.push(t))}},{key:"getCellIndices",value:function(){return this._indices}},{key:"toString",value:function(){return"".concat(this.x,",").concat(this.y," ").concat(this.width,"x").concat(this.height)}}]),e}(),xA=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100;mL(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return wL(e,[{key:"getCellIndices",value:function(e){var t=e.height,n=e.width,r=e.x,o=e.y,i={};return this.getSections({height:t,width:n,x:r,y:o}).forEach((function(e){return e.getCellIndices().forEach((function(e){i[e]=e}))})),Object.keys(i).map((function(e){return i[e]}))}},{key:"getCellMetadata",value:function(e){var t=e.index;return this._cellMetadata[t]}},{key:"getSections",value:function(e){for(var t=e.height,n=e.width,r=e.x,o=e.y,i=Math.floor(r/this._sectionSize),a=Math.floor((r+n-1)/this._sectionSize),s=Math.floor(o/this._sectionSize),l=Math.floor((o+t-1)/this._sectionSize),c=[],u=i;u<=a;u++)for(var d=s;d<=l;d++){var f="".concat(u,".").concat(d);this._sections[f]||(this._sections[f]=new SA({height:this._sectionSize,width:this._sectionSize,x:u*this._sectionSize,y:d*this._sectionSize})),c.push(this._sections[f])}return c}},{key:"getTotalSectionCount",value:function(){return Object.keys(this._sections).length}},{key:"toString",value:function(){var e=this;return Object.keys(this._sections).map((function(t){return e._sections[t].toString()}))}},{key:"registerCell",value:function(e){var t=e.cellMetadatum,n=e.index;this._cellMetadata[n]=t,this.getSections(t).forEach((function(e){return e.addCellIndex({index:n})}))}}]),e}();function _A(e){var t=e.align,n=void 0===t?"auto":t,r=e.cellOffset,o=e.cellSize,i=e.containerSize,a=e.currentOffset,s=r,l=s-i+o;switch(n){case"start":return s;case"end":return l;case"center":return s-(i-o)/2;default:return Math.max(l,Math.min(s,a))}}var CA=function(e){function t(e,n){var r;return mL(this,t),(r=SL(this,xL(t).call(this,e,n)))._cellMetadata=[],r._lastRenderedCellIndices=[],r._cellCache=[],r._isScrollingChange=r._isScrollingChange.bind(bL(r)),r._setCollectionViewRef=r._setCollectionViewRef.bind(bL(r)),r}return CL(t,U.PureComponent),wL(t,[{key:"forceUpdate",value:function(){void 0!==this._collectionView&&this._collectionView.forceUpdate()}},{key:"recomputeCellSizesAndPositions",value:function(){this._cellCache=[],this._collectionView.recomputeCellSizesAndPositions()}},{key:"render",value:function(){var e=Jn({},this.props);return U.createElement(bA,Jn({cellLayoutManager:this,isScrollingChange:this._isScrollingChange,ref:this._setCollectionViewRef},e))}},{key:"calculateSizeAndPositionData",value:function(){var e=this.props,t=function(e){for(var t=e.cellCount,n=e.cellSizeAndPositionGetter,r=e.sectionSize,o=[],i=new xA(r),a=0,s=0,l=0;l<t;l++){var c=n({index:l});if(null==c.height||isNaN(c.height)||null==c.width||isNaN(c.width)||null==c.x||isNaN(c.x)||null==c.y||isNaN(c.y))throw Error("Invalid metadata returned for cell ".concat(l,":\n x:").concat(c.x,", y:").concat(c.y,", width:").concat(c.width,", height:").concat(c.height));a=Math.max(a,c.y+c.height),s=Math.max(s,c.x+c.width),o[l]=c,i.registerCell({cellMetadatum:c,index:l})}return{cellMetadata:o,height:a,sectionManager:i,width:s}}({cellCount:e.cellCount,cellSizeAndPositionGetter:e.cellSizeAndPositionGetter,sectionSize:e.sectionSize});this._cellMetadata=t.cellMetadata,this._sectionManager=t.sectionManager,this._height=t.height,this._width=t.width}},{key:"getLastRenderedIndices",value:function(){return this._lastRenderedCellIndices}},{key:"getScrollPositionForCell",value:function(e){var t=e.align,n=e.cellIndex,r=e.height,o=e.scrollLeft,i=e.scrollTop,a=e.width,s=this.props.cellCount;if(n>=0&&n<s){var l=this._cellMetadata[n];o=_A({align:t,cellOffset:l.x,cellSize:l.width,containerSize:a,currentOffset:o,targetIndex:n}),i=_A({align:t,cellOffset:l.y,cellSize:l.height,containerSize:r,currentOffset:i,targetIndex:n})}return{scrollLeft:o,scrollTop:i}}},{key:"getTotalSize",value:function(){return{height:this._height,width:this._width}}},{key:"cellRenderers",value:function(e){var t=this,n=e.height,r=e.isScrolling,o=e.width,i=e.x,a=e.y,s=this.props,l=s.cellGroupRenderer,c=s.cellRenderer;return this._lastRenderedCellIndices=this._sectionManager.getCellIndices({height:n,width:o,x:i,y:a}),l({cellCache:this._cellCache,cellRenderer:c,cellSizeAndPositionGetter:function(e){var n=e.index;return t._sectionManager.getCellMetadata({index:n})},indices:this._lastRenderedCellIndices,isScrolling:r})}},{key:"_isScrollingChange",value:function(e){e||(this._cellCache=[])}},{key:"_setCollectionViewRef",value:function(e){this._collectionView=e}}]),t}();function EA(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function kA(e,t){if(e){if("string"==typeof e)return EA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?EA(e,t):void 0}}function TA(e){return function(e){if(Array.isArray(e))return EA(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||kA(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}EL(CA,"defaultProps",{"aria-label":"grid",cellGroupRenderer:function(e){var t=e.cellCache,n=e.cellRenderer,r=e.cellSizeAndPositionGetter,o=e.indices,i=e.isScrolling;return o.map((function(e){var o=r({index:e}),a={index:e,isScrolling:i,key:e,style:{height:o.height,left:o.x,position:"absolute",top:o.y,width:o.width}};return i?(e in t||(t[e]=n(a)),t[e]):n(a)})).filter((function(e){return!!e}))}}),CA.propTypes={};var RA,PA,IA=function(e){function t(e,n){var r;return mL(this,t),(r=SL(this,xL(t).call(this,e,n)))._loadMoreRowsMemoizer=FL(),r._onRowsRendered=r._onRowsRendered.bind(bL(r)),r._registerChild=r._registerChild.bind(bL(r)),r}return CL(t,U.PureComponent),wL(t,[{key:"resetLoadMoreRowsCache",value:function(e){this._loadMoreRowsMemoizer=FL(),e&&this._doStuff(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"render",value:function(){return(0,this.props.children)({onRowsRendered:this._onRowsRendered,registerChild:this._registerChild})}},{key:"_loadUnloadedRanges",value:function(e){var t=this,n=this.props.loadMoreRows;e.forEach((function(e){var r=n(e);r&&r.then((function(){var n,r,o,i,a;n={lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:e.startIndex,stopIndex:e.stopIndex},r=n.lastRenderedStartIndex,o=n.lastRenderedStopIndex,i=n.startIndex,a=n.stopIndex,i>o||a<r||t._registeredChild&&function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n="function"==typeof e.recomputeGridSize?e.recomputeGridSize:e.recomputeRowHeights;n?n.call(e,t):e.forceUpdate()}(t._registeredChild,t._lastRenderedStartIndex)}))}))}},{key:"_onRowsRendered",value:function(e){var t=e.startIndex,n=e.stopIndex;this._lastRenderedStartIndex=t,this._lastRenderedStopIndex=n,this._doStuff(t,n)}},{key:"_doStuff",value:function(e,t){var n,r=this,o=this.props,i=o.isRowLoaded,a=o.minimumBatchSize,s=o.rowCount,l=o.threshold,c=function(e){for(var t=e.isRowLoaded,n=e.minimumBatchSize,r=e.rowCount,o=e.startIndex,i=e.stopIndex,a=[],s=null,l=null,c=o;c<=i;c++){t({index:c})?null!==l&&(a.push({startIndex:s,stopIndex:l}),s=l=null):(l=c,null===s&&(s=c))}if(null!==l){for(var u=Math.min(Math.max(l,s+n-1),r-1),d=l+1;d<=u&&!t({index:d});d++)l=d;a.push({startIndex:s,stopIndex:l})}if(a.length)for(var f=a[0];f.stopIndex-f.startIndex+1<n&&f.startIndex>0;){var h=f.startIndex-1;if(t({index:h}))break;f.startIndex=h}return a}({isRowLoaded:i,minimumBatchSize:a,rowCount:s,startIndex:Math.max(0,e-l),stopIndex:Math.min(s-1,t+l)}),u=(n=[]).concat.apply(n,TA(c.map((function(e){return[e.startIndex,e.stopIndex]}))));this._loadMoreRowsMemoizer({callback:function(){r._loadUnloadedRanges(c)},indices:{squashedUnloadedRanges:u}})}},{key:"_registerChild",value:function(e){this._registeredChild=e}}]),t}();EL(IA,"defaultProps",{minimumBatchSize:10,rowCount:0,threshold:15}),IA.propTypes={};var MA=(PA=RA=function(e){function t(){var e,n;mL(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return EL(bL(n=SL(this,(e=xL(t)).call.apply(e,[this].concat(o)))),"Grid",void 0),EL(bL(n),"_cellRenderer",(function(e){var t=e.parent,r=e.rowIndex,o=e.style,i=e.isScrolling,a=e.isVisible,s=e.key,l=n.props.rowRenderer,c=Object.getOwnPropertyDescriptor(o,"width");return c&&c.writable&&(o.width="100%"),l({index:r,style:o,isScrolling:i,isVisible:a,key:s,parent:t})})),EL(bL(n),"_setRef",(function(e){n.Grid=e})),EL(bL(n),"_onScroll",(function(e){var t=e.clientHeight,r=e.scrollHeight,o=e.scrollTop;(0,n.props.onScroll)({clientHeight:t,scrollHeight:r,scrollTop:o})})),EL(bL(n),"_onSectionRendered",(function(e){var t=e.rowOverscanStartIndex,r=e.rowOverscanStopIndex,o=e.rowStartIndex,i=e.rowStopIndex;(0,n.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:r,startIndex:o,stopIndex:i})})),n}return CL(t,U.PureComponent),wL(t,[{key:"forceUpdateGrid",value:function(){this.Grid&&this.Grid.forceUpdate()}},{key:"getOffsetForRow",value:function(e){var t=e.alignment,n=e.index;return this.Grid?this.Grid.getOffsetForCell({alignment:t,rowIndex:n,columnIndex:0}).scrollTop:0}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,n=e.rowIndex;this.Grid&&this.Grid.invalidateCellSizeAfterRender({rowIndex:n,columnIndex:t})}},{key:"measureAllRows",value:function(){this.Grid&&this.Grid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,r=e.rowIndex,o=void 0===r?0:r;this.Grid&&this.Grid.recomputeGridSize({rowIndex:o,columnIndex:n})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e,columnIndex:0})}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.noRowsRenderer,r=e.scrollToIndex,o=e.width,i=ML("ReactVirtualized__List",t);return U.createElement(tA,Jn({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:i,columnWidth:o,columnCount:1,noContentRenderer:n,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:r}))}}]),t}(),EL(RA,"propTypes",null),PA);function zA(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(zD){c=!0,o=zD}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||kA(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}EL(MA,"defaultProps",{autoHeight:!1,estimatedRowSize:30,onScroll:function(){},noRowsRenderer:function(){return null},onRowsRendered:function(){},overscanIndicesGetter:oA,overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}});const OA={ge:function(e,t,n,r,o){return"function"==typeof n?function(e,t,n,r,o){for(var i=n+1;t<=n;){var a=t+n>>>1;o(e[a],r)>=0?(i=a,n=a-1):t=a+1}return i}(e,void 0===r?0:0|r,void 0===o?e.length-1:0|o,t,n):function(e,t,n,r){for(var o=n+1;t<=n;){var i=t+n>>>1;e[i]>=r?(o=i,n=i-1):t=i+1}return o}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t)},gt:function(e,t,n,r,o){return"function"==typeof n?function(e,t,n,r,o){for(var i=n+1;t<=n;){var a=t+n>>>1;o(e[a],r)>0?(i=a,n=a-1):t=a+1}return i}(e,void 0===r?0:0|r,void 0===o?e.length-1:0|o,t,n):function(e,t,n,r){for(var o=n+1;t<=n;){var i=t+n>>>1;e[i]>r?(o=i,n=i-1):t=i+1}return o}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t)},lt:function(e,t,n,r,o){return"function"==typeof n?function(e,t,n,r,o){for(var i=t-1;t<=n;){var a=t+n>>>1;o(e[a],r)<0?(i=a,t=a+1):n=a-1}return i}(e,void 0===r?0:0|r,void 0===o?e.length-1:0|o,t,n):function(e,t,n,r){for(var o=t-1;t<=n;){var i=t+n>>>1;e[i]<r?(o=i,t=i+1):n=i-1}return o}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t)},le:function(e,t,n,r,o){return"function"==typeof n?function(e,t,n,r,o){for(var i=t-1;t<=n;){var a=t+n>>>1;o(e[a],r)<=0?(i=a,t=a+1):n=a-1}return i}(e,void 0===r?0:0|r,void 0===o?e.length-1:0|o,t,n):function(e,t,n,r){for(var o=t-1;t<=n;){var i=t+n>>>1;e[i]<=r?(o=i,t=i+1):n=i-1}return o}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t)},eq:function(e,t,n,r,o){return"function"==typeof n?function(e,t,n,r,o){for(;t<=n;){var i=t+n>>>1,a=o(e[i],r);if(0===a)return i;a<=0?t=i+1:n=i-1}return-1}(e,void 0===r?0:0|r,void 0===o?e.length-1:0|o,t,n):function(e,t,n,r){for(;t<=n;){var o=t+n>>>1,i=e[o];if(i===r)return o;i<=r?t=o+1:n=o-1}return-1}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t)}};function LA(e,t,n,r,o){this.mid=e,this.left=t,this.right=n,this.leftPoints=r,this.rightPoints=o,this.count=(t?t.count:0)+(n?n.count:0)+r.length}var AA=LA.prototype;function DA(e,t){e.mid=t.mid,e.left=t.left,e.right=t.right,e.leftPoints=t.leftPoints,e.rightPoints=t.rightPoints,e.count=t.count}function FA(e,t){var n=$A(t);e.mid=n.mid,e.left=n.left,e.right=n.right,e.leftPoints=n.leftPoints,e.rightPoints=n.rightPoints,e.count=n.count}function NA(e,t){var n=e.intervals([]);n.push(t),FA(e,n)}function BA(e,t){var n=e.intervals([]),r=n.indexOf(t);return r<0?0:(n.splice(r,1),FA(e,n),1)}function HA(e,t,n){for(var r=0;r<e.length&&e[r][0]<=t;++r){var o=n(e[r]);if(o)return o}}function VA(e,t,n){for(var r=e.length-1;r>=0&&e[r][1]>=t;--r){var o=n(e[r]);if(o)return o}}function jA(e,t){for(var n=0;n<e.length;++n){var r=t(e[n]);if(r)return r}}function WA(e,t){return e-t}function UA(e,t){var n=e[0]-t[0];return n||e[1]-t[1]}function GA(e,t){var n=e[1]-t[1];return n||e[0]-t[0]}function $A(e){if(0===e.length)return null;for(var t=[],n=0;n<e.length;++n)t.push(e[n][0],e[n][1]);t.sort(WA);var r=t[t.length>>1],o=[],i=[],a=[];for(n=0;n<e.length;++n){var s=e[n];s[1]<r?o.push(s):r<s[0]?i.push(s):a.push(s)}var l=a,c=a.slice();return l.sort(UA),c.sort(GA),new LA(r,$A(o),$A(i),l,c)}function KA(e){this.root=e}AA.intervals=function(e){return e.push.apply(e,this.leftPoints),this.left&&this.left.intervals(e),this.right&&this.right.intervals(e),e},AA.insert=function(e){var t=this.count-this.leftPoints.length;if(this.count+=1,e[1]<this.mid)this.left?4*(this.left.count+1)>3*(t+1)?NA(this,e):this.left.insert(e):this.left=$A([e]);else if(e[0]>this.mid)this.right?4*(this.right.count+1)>3*(t+1)?NA(this,e):this.right.insert(e):this.right=$A([e]);else{var n=OA.ge(this.leftPoints,e,UA),r=OA.ge(this.rightPoints,e,GA);this.leftPoints.splice(n,0,e),this.rightPoints.splice(r,0,e)}},AA.remove=function(e){var t=this.count-this.leftPoints;if(e[1]<this.mid)return this.left?4*(this.right?this.right.count:0)>3*(t-1)?BA(this,e):2===(i=this.left.remove(e))?(this.left=null,this.count-=1,1):(1===i&&(this.count-=1),i):0;if(e[0]>this.mid)return this.right?4*(this.left?this.left.count:0)>3*(t-1)?BA(this,e):2===(i=this.right.remove(e))?(this.right=null,this.count-=1,1):(1===i&&(this.count-=1),i):0;if(1===this.count)return this.leftPoints[0]===e?2:0;if(1===this.leftPoints.length&&this.leftPoints[0]===e){if(this.left&&this.right){for(var n=this,r=this.left;r.right;)n=r,r=r.right;if(n===this)r.right=this.right;else{var o=this.left,i=this.right;n.count-=r.count,n.right=r.left,r.left=o,r.right=i}DA(this,r),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?DA(this,this.left):DA(this,this.right);return 1}for(o=OA.ge(this.leftPoints,e,UA);o<this.leftPoints.length&&this.leftPoints[o][0]===e[0];++o)if(this.leftPoints[o]===e){this.count-=1,this.leftPoints.splice(o,1);for(i=OA.ge(this.rightPoints,e,GA);i<this.rightPoints.length&&this.rightPoints[i][1]===e[1];++i)if(this.rightPoints[i]===e)return this.rightPoints.splice(i,1),1}return 0},AA.queryPoint=function(e,t){if(e<this.mid){if(this.left)if(n=this.left.queryPoint(e,t))return n;return HA(this.leftPoints,e,t)}if(e>this.mid){var n;if(this.right)if(n=this.right.queryPoint(e,t))return n;return VA(this.rightPoints,e,t)}return jA(this.leftPoints,t)},AA.queryInterval=function(e,t,n){var r;if(e<this.mid&&this.left&&(r=this.left.queryInterval(e,t,n)))return r;if(t>this.mid&&this.right&&(r=this.right.queryInterval(e,t,n)))return r;return t<this.mid?HA(this.leftPoints,t,n):e>this.mid?VA(this.rightPoints,e,n):jA(this.leftPoints,n)};var XA=KA.prototype;XA.insert=function(e){this.root?this.root.insert(e):this.root=new LA(e[0],null,null,[e],[e])},XA.remove=function(e){if(this.root){var t=this.root.remove(e);return 2===t&&(this.root=null),0!==t}return!1},XA.queryPoint=function(e,t){if(this.root)return this.root.queryPoint(e,t)},XA.queryInterval=function(e,t,n){if(e<=t&&this.root)return this.root.queryInterval(e,t,n)},Object.defineProperty(XA,"count",{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(XA,"intervals",{get:function(){return this.root?this.root.intervals([]):[]}});var qA,YA,QA=function(){function e(){var t;mL(this,e),EL(this,"_columnSizeMap",{}),EL(this,"_intervalTree",t&&0!==t.length?new KA($A(t)):new KA(null)),EL(this,"_leftMap",{})}return wL(e,[{key:"estimateTotalHeight",value:function(e,t,n){var r=e-this.count;return this.tallestColumnSize+Math.ceil(r/t)*n}},{key:"range",value:function(e,t,n){var r=this;this._intervalTree.queryInterval(e,e+t,(function(e){var t=zA(e,3),o=t[0];t[1];var i=t[2];return n(i,r._leftMap[i],o)}))}},{key:"setPosition",value:function(e,t,n,r){this._intervalTree.insert([n,n+r,e]),this._leftMap[e]=t;var o=this._columnSizeMap,i=o[t];o[t]=void 0===i?n+r:Math.max(i,n+r)}},{key:"count",get:function(){return this._intervalTree.count}},{key:"shortestColumnSize",get:function(){var e=this._columnSizeMap,t=0;for(var n in e){var r=e[n];t=0===t?r:Math.min(t,r)}return t}},{key:"tallestColumnSize",get:function(){var e=this._columnSizeMap,t=0;for(var n in e){var r=e[n];t=Math.max(t,r)}return t}}]),e}();function ZA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function JA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ZA(n,!0).forEach((function(t){EL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZA(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var eD=(YA=qA=function(e){function t(){var e,n;mL(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return EL(bL(n=SL(this,(e=xL(t)).call.apply(e,[this].concat(o)))),"state",{isScrolling:!1,scrollTop:0}),EL(bL(n),"_debounceResetIsScrollingId",void 0),EL(bL(n),"_invalidateOnUpdateStartIndex",null),EL(bL(n),"_invalidateOnUpdateStopIndex",null),EL(bL(n),"_positionCache",new QA),EL(bL(n),"_startIndex",null),EL(bL(n),"_startIndexMemoized",null),EL(bL(n),"_stopIndex",null),EL(bL(n),"_stopIndexMemoized",null),EL(bL(n),"_debounceResetIsScrollingCallback",(function(){n.setState({isScrolling:!1})})),EL(bL(n),"_setScrollingContainerRef",(function(e){n._scrollingContainer=e})),EL(bL(n),"_onScroll",(function(e){var t=n.props.height,r=e.currentTarget.scrollTop,o=Math.min(Math.max(0,n._getEstimatedTotalHeight()-t),r);r===o&&(n._debounceResetIsScrolling(),n.state.scrollTop!==o&&n.setState({isScrolling:!0,scrollTop:o}))})),n}return CL(t,U.PureComponent),wL(t,[{key:"clearCellPositions",value:function(){this._positionCache=new QA,this.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.rowIndex;null===this._invalidateOnUpdateStartIndex?(this._invalidateOnUpdateStartIndex=t,this._invalidateOnUpdateStopIndex=t):(this._invalidateOnUpdateStartIndex=Math.min(this._invalidateOnUpdateStartIndex,t),this._invalidateOnUpdateStopIndex=Math.max(this._invalidateOnUpdateStopIndex,t))}},{key:"recomputeCellPositions",value:function(){var e=this._positionCache.count-1;this._positionCache=new QA,this._populatePositionCache(0,e),this.forceUpdate()}},{key:"componentDidMount",value:function(){this._checkInvalidateOnUpdate(),this._invokeOnScrollCallback(),this._invokeOnCellsRenderedCallback()}},{key:"componentDidUpdate",value:function(e,t){this._checkInvalidateOnUpdate(),this._invokeOnScrollCallback(),this._invokeOnCellsRenderedCallback(),this.props.scrollTop!==e.scrollTop&&this._debounceResetIsScrolling()}},{key:"componentWillUnmount",value:function(){this._debounceResetIsScrollingId&&qL(this._debounceResetIsScrollingId)}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.autoHeight,o=n.cellCount,i=n.cellMeasurerCache,a=n.cellRenderer,s=n.className,l=n.height,c=n.id,u=n.keyMapper,d=n.overscanByPixels,f=n.role,h=n.style,p=n.tabIndex,m=n.width,g=n.rowDirection,v=this.state,y=v.isScrolling,w=v.scrollTop,b=[],S=this._getEstimatedTotalHeight(),x=this._positionCache.shortestColumnSize,_=this._positionCache.count,C=0;if(this._positionCache.range(Math.max(0,w-d),l+2*d,(function(n,r,o){var s;void 0===e?(C=n,e=n):(C=Math.min(C,n),e=Math.max(e,n)),b.push(a({index:n,isScrolling:y,key:u(n),parent:t,style:(s={height:i.getHeight(n)},EL(s,"ltr"===g?"left":"right",r),EL(s,"position","absolute"),EL(s,"top",o),EL(s,"width",i.getWidth(n)),s)}))})),x<w+l+d&&_<o)for(var E=Math.min(o-_,Math.ceil((w+l+d-x)/i.defaultHeight*m/i.defaultWidth)),k=_;k<_+E;k++)e=k,b.push(a({index:k,isScrolling:y,key:u(k),parent:this,style:{width:i.getWidth(k)}}));return this._startIndex=C,this._stopIndex=e,U.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:ML("ReactVirtualized__Masonry",s),id:c,onScroll:this._onScroll,role:f,style:JA({boxSizing:"border-box",direction:"ltr",height:r?"auto":l,overflowX:"hidden",overflowY:S<l?"hidden":"auto",position:"relative",width:m,WebkitOverflowScrolling:"touch",willChange:"transform"},h),tabIndex:p},U.createElement("div",{className:"ReactVirtualized__Masonry__innerScrollContainer",style:{width:"100%",height:S,maxWidth:"100%",maxHeight:S,overflow:"hidden",pointerEvents:y?"none":"",position:"relative"}},b))}},{key:"_checkInvalidateOnUpdate",value:function(){if("number"==typeof this._invalidateOnUpdateStartIndex){var e=this._invalidateOnUpdateStartIndex,t=this._invalidateOnUpdateStopIndex;this._invalidateOnUpdateStartIndex=null,this._invalidateOnUpdateStopIndex=null,this._populatePositionCache(e,t),this.forceUpdate()}}},{key:"_debounceResetIsScrolling",value:function(){var e=this.props.scrollingResetTimeInterval;this._debounceResetIsScrollingId&&qL(this._debounceResetIsScrollingId),this._debounceResetIsScrollingId=YL(this._debounceResetIsScrollingCallback,e)}},{key:"_getEstimatedTotalHeight",value:function(){var e=this.props,t=e.cellCount,n=e.cellMeasurerCache,r=e.width,o=Math.max(1,Math.floor(r/n.defaultWidth));return this._positionCache.estimateTotalHeight(t,o,n.defaultHeight)}},{key:"_invokeOnScrollCallback",value:function(){var e=this.props,t=e.height,n=e.onScroll,r=this.state.scrollTop;this._onScrollMemoized!==r&&(n({clientHeight:t,scrollHeight:this._getEstimatedTotalHeight(),scrollTop:r}),this._onScrollMemoized=r)}},{key:"_invokeOnCellsRenderedCallback",value:function(){this._startIndexMemoized===this._startIndex&&this._stopIndexMemoized===this._stopIndex||((0,this.props.onCellsRendered)({startIndex:this._startIndex,stopIndex:this._stopIndex}),this._startIndexMemoized=this._startIndex,this._stopIndexMemoized=this._stopIndex)}},{key:"_populatePositionCache",value:function(e,t){for(var n=this.props,r=n.cellMeasurerCache,o=n.cellPositioner,i=e;i<=t;i++){var a=o(i),s=a.left,l=a.top;this._positionCache.setPosition(i,s,l,r.getHeight(i))}}}],[{key:"getDerivedStateFromProps",value:function(e,t){return void 0!==e.scrollTop&&t.scrollTop!==e.scrollTop?{isScrolling:!0,scrollTop:e.scrollTop}:null}}]),t}(),EL(qA,"propTypes",null),YA);function tD(){}EL(eD,"defaultProps",{autoHeight:!1,keyMapper:function(e){return e},onCellsRendered:tD,onScroll:tD,overscanByPixels:20,role:"grid",scrollingResetTimeInterval:150,style:{},tabIndex:0,rowDirection:"ltr"}),PL(eD);var nD=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};mL(this,e),EL(this,"_cellMeasurerCache",void 0),EL(this,"_columnIndexOffset",void 0),EL(this,"_rowIndexOffset",void 0),EL(this,"columnWidth",(function(e){var n=e.index;t._cellMeasurerCache.columnWidth({index:n+t._columnIndexOffset})})),EL(this,"rowHeight",(function(e){var n=e.index;t._cellMeasurerCache.rowHeight({index:n+t._rowIndexOffset})}));var r=n.cellMeasurerCache,o=n.columnIndexOffset,i=void 0===o?0:o,a=n.rowIndexOffset,s=void 0===a?0:a;this._cellMeasurerCache=r,this._columnIndexOffset=i,this._rowIndexOffset=s}return wL(e,[{key:"clear",value:function(e,t){this._cellMeasurerCache.clear(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"clearAll",value:function(){this._cellMeasurerCache.clearAll()}},{key:"hasFixedHeight",value:function(){return this._cellMeasurerCache.hasFixedHeight()}},{key:"hasFixedWidth",value:function(){return this._cellMeasurerCache.hasFixedWidth()}},{key:"getHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.getHeight(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"getWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.getWidth(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"has",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.has(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"set",value:function(e,t,n,r){this._cellMeasurerCache.set(e+this._rowIndexOffset,t+this._columnIndexOffset,n,r)}},{key:"defaultHeight",get:function(){return this._cellMeasurerCache.defaultHeight}},{key:"defaultWidth",get:function(){return this._cellMeasurerCache.defaultWidth}}]),e}();function rD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rD(n,!0).forEach((function(t){EL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rD(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var iD=function(e){function t(e,n){var r;mL(this,t),EL(bL(r=SL(this,xL(t).call(this,e,n))),"state",{scrollLeft:0,scrollTop:0,scrollbarSize:0,showHorizontalScrollbar:!1,showVerticalScrollbar:!1}),EL(bL(r),"_deferredInvalidateColumnIndex",null),EL(bL(r),"_deferredInvalidateRowIndex",null),EL(bL(r),"_bottomLeftGridRef",(function(e){r._bottomLeftGrid=e})),EL(bL(r),"_bottomRightGridRef",(function(e){r._bottomRightGrid=e})),EL(bL(r),"_cellRendererBottomLeftGrid",(function(e){var t=e.rowIndex,n=OL(e,["rowIndex"]),o=r.props,i=o.cellRenderer,a=o.fixedRowCount;return t===o.rowCount-a?U.createElement("div",{key:n.key,style:oD({},n.style,{height:20})}):i(oD({},n,{parent:bL(r),rowIndex:t+a}))})),EL(bL(r),"_cellRendererBottomRightGrid",(function(e){var t=e.columnIndex,n=e.rowIndex,o=OL(e,["columnIndex","rowIndex"]),i=r.props,a=i.cellRenderer,s=i.fixedColumnCount,l=i.fixedRowCount;return a(oD({},o,{columnIndex:t+s,parent:bL(r),rowIndex:n+l}))})),EL(bL(r),"_cellRendererTopRightGrid",(function(e){var t=e.columnIndex,n=OL(e,["columnIndex"]),o=r.props,i=o.cellRenderer,a=o.columnCount,s=o.fixedColumnCount;return t===a-s?U.createElement("div",{key:n.key,style:oD({},n.style,{width:20})}):i(oD({},n,{columnIndex:t+s,parent:bL(r)}))})),EL(bL(r),"_columnWidthRightGrid",(function(e){var t=e.index,n=r.props,o=n.columnCount,i=n.fixedColumnCount,a=n.columnWidth,s=r.state,l=s.scrollbarSize;return s.showHorizontalScrollbar&&t===o-i?l:"function"==typeof a?a({index:t+i}):a})),EL(bL(r),"_onScroll",(function(e){var t=e.scrollLeft,n=e.scrollTop;r.setState({scrollLeft:t,scrollTop:n});var o=r.props.onScroll;o&&o(e)})),EL(bL(r),"_onScrollbarPresenceChange",(function(e){var t=e.horizontal,n=e.size,o=e.vertical,i=r.state,a=i.showHorizontalScrollbar,s=i.showVerticalScrollbar;if(t!==a||o!==s){r.setState({scrollbarSize:n,showHorizontalScrollbar:t,showVerticalScrollbar:o});var l=r.props.onScrollbarPresenceChange;"function"==typeof l&&l({horizontal:t,size:n,vertical:o})}})),EL(bL(r),"_onScrollLeft",(function(e){var t=e.scrollLeft;r._onScroll({scrollLeft:t,scrollTop:r.state.scrollTop})})),EL(bL(r),"_onScrollTop",(function(e){var t=e.scrollTop;r._onScroll({scrollTop:t,scrollLeft:r.state.scrollLeft})})),EL(bL(r),"_rowHeightBottomGrid",(function(e){var t=e.index,n=r.props,o=n.fixedRowCount,i=n.rowCount,a=n.rowHeight,s=r.state,l=s.scrollbarSize;return s.showVerticalScrollbar&&t===i-o?l:"function"==typeof a?a({index:t+o}):a})),EL(bL(r),"_topLeftGridRef",(function(e){r._topLeftGrid=e})),EL(bL(r),"_topRightGridRef",(function(e){r._topRightGrid=e}));var o=e.deferredMeasurementCache,i=e.fixedColumnCount,a=e.fixedRowCount;return r._maybeCalculateCachedStyles(!0),o&&(r._deferredMeasurementCacheBottomLeftGrid=a>0?new nD({cellMeasurerCache:o,columnIndexOffset:0,rowIndexOffset:a}):o,r._deferredMeasurementCacheBottomRightGrid=i>0||a>0?new nD({cellMeasurerCache:o,columnIndexOffset:i,rowIndexOffset:a}):o,r._deferredMeasurementCacheTopRightGrid=i>0?new nD({cellMeasurerCache:o,columnIndexOffset:i,rowIndexOffset:0}):o),r}return CL(t,U.PureComponent),wL(t,[{key:"forceUpdateGrids",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.forceUpdate(),this._bottomRightGrid&&this._bottomRightGrid.forceUpdate(),this._topLeftGrid&&this._topLeftGrid.forceUpdate(),this._topRightGrid&&this._topRightGrid.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,r=e.rowIndex,o=void 0===r?0:r;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,n):n,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,o):o}},{key:"measureAllCells",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.measureAllCells(),this._bottomRightGrid&&this._bottomRightGrid.measureAllCells(),this._topLeftGrid&&this._topLeftGrid.measureAllCells(),this._topRightGrid&&this._topRightGrid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,r=e.rowIndex,o=void 0===r?0:r,i=this.props,a=i.fixedColumnCount,s=i.fixedRowCount,l=Math.max(0,n-a),c=Math.max(0,o-s);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:c}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:l,rowIndex:c}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:o}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:l,rowIndex:o}),this._leftGridWidth=null,this._topGridHeight=null,this._maybeCalculateCachedStyles(!0)}},{key:"componentDidMount",value:function(){var e=this.props,t=e.scrollLeft,n=e.scrollTop;if(t>0||n>0){var r={};t>0&&(r.scrollLeft=t),n>0&&(r.scrollTop=n),this.setState(r)}this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(){this._handleInvalidatedGridSize()}},{key:"render",value:function(){var e=this.props,t=e.onScroll,n=e.onSectionRendered;e.onScrollbarPresenceChange,e.scrollLeft;var r=e.scrollToColumn;e.scrollTop;var o=e.scrollToRow,i=OL(e,["onScroll","onSectionRendered","onScrollbarPresenceChange","scrollLeft","scrollToColumn","scrollTop","scrollToRow"]);if(this._prepareForRender(),0===this.props.width||0===this.props.height)return null;var a=this.state,s=a.scrollLeft,l=a.scrollTop;return U.createElement("div",{style:this._containerOuterStyle},U.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(i),this._renderTopRightGrid(oD({},i,{onScroll:t,scrollLeft:s}))),U.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(oD({},i,{onScroll:t,scrollTop:l})),this._renderBottomRightGrid(oD({},i,{onScroll:t,onSectionRendered:n,scrollLeft:s,scrollToColumn:r,scrollToRow:o,scrollTop:l}))))}},{key:"_getBottomGridHeight",value:function(e){return e.height-this._getTopGridHeight(e)}},{key:"_getLeftGridWidth",value:function(e){var t=e.fixedColumnCount,n=e.columnWidth;if(null==this._leftGridWidth)if("function"==typeof n){for(var r=0,o=0;o<t;o++)r+=n({index:o});this._leftGridWidth=r}else this._leftGridWidth=n*t;return this._leftGridWidth}},{key:"_getRightGridWidth",value:function(e){return e.width-this._getLeftGridWidth(e)}},{key:"_getTopGridHeight",value:function(e){var t=e.fixedRowCount,n=e.rowHeight;if(null==this._topGridHeight)if("function"==typeof n){for(var r=0,o=0;o<t;o++)r+=n({index:o});this._topGridHeight=r}else this._topGridHeight=n*t;return this._topGridHeight}},{key:"_handleInvalidatedGridSize",value:function(){if("number"==typeof this._deferredInvalidateColumnIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t}),this.forceUpdate()}}},{key:"_maybeCalculateCachedStyles",value:function(e){var t=this.props,n=t.columnWidth,r=t.enableFixedColumnScroll,o=t.enableFixedRowScroll,i=t.height,a=t.fixedColumnCount,s=t.fixedRowCount,l=t.rowHeight,c=t.style,u=t.styleBottomLeftGrid,d=t.styleBottomRightGrid,f=t.styleTopLeftGrid,h=t.styleTopRightGrid,p=t.width,m=e||i!==this._lastRenderedHeight||p!==this._lastRenderedWidth,g=e||n!==this._lastRenderedColumnWidth||a!==this._lastRenderedFixedColumnCount,v=e||s!==this._lastRenderedFixedRowCount||l!==this._lastRenderedRowHeight;(e||m||c!==this._lastRenderedStyle)&&(this._containerOuterStyle=oD({height:i,overflow:"visible",width:p},c)),(e||m||v)&&(this._containerTopStyle={height:this._getTopGridHeight(this.props),position:"relative",width:p},this._containerBottomStyle={height:i-this._getTopGridHeight(this.props),overflow:"visible",position:"relative",width:p}),(e||u!==this._lastRenderedStyleBottomLeftGrid)&&(this._bottomLeftGridStyle=oD({left:0,overflowX:"hidden",overflowY:r?"auto":"hidden",position:"absolute"},u)),(e||g||d!==this._lastRenderedStyleBottomRightGrid)&&(this._bottomRightGridStyle=oD({left:this._getLeftGridWidth(this.props),position:"absolute"},d)),(e||f!==this._lastRenderedStyleTopLeftGrid)&&(this._topLeftGridStyle=oD({left:0,overflowX:"hidden",overflowY:"hidden",position:"absolute",top:0},f)),(e||g||h!==this._lastRenderedStyleTopRightGrid)&&(this._topRightGridStyle=oD({left:this._getLeftGridWidth(this.props),overflowX:o?"auto":"hidden",overflowY:"hidden",position:"absolute",top:0},h)),this._lastRenderedColumnWidth=n,this._lastRenderedFixedColumnCount=a,this._lastRenderedFixedRowCount=s,this._lastRenderedHeight=i,this._lastRenderedRowHeight=l,this._lastRenderedStyle=c,this._lastRenderedStyleBottomLeftGrid=u,this._lastRenderedStyleBottomRightGrid=d,this._lastRenderedStyleTopLeftGrid=f,this._lastRenderedStyleTopRightGrid=h,this._lastRenderedWidth=p}},{key:"_prepareForRender",value:function(){this._lastRenderedColumnWidth===this.props.columnWidth&&this._lastRenderedFixedColumnCount===this.props.fixedColumnCount||(this._leftGridWidth=null),this._lastRenderedFixedRowCount===this.props.fixedRowCount&&this._lastRenderedRowHeight===this.props.rowHeight||(this._topGridHeight=null),this._maybeCalculateCachedStyles(),this._lastRenderedColumnWidth=this.props.columnWidth,this._lastRenderedFixedColumnCount=this.props.fixedColumnCount,this._lastRenderedFixedRowCount=this.props.fixedRowCount,this._lastRenderedRowHeight=this.props.rowHeight}},{key:"_renderBottomLeftGrid",value:function(e){var t=e.enableFixedColumnScroll,n=e.fixedColumnCount,r=e.fixedRowCount,o=e.rowCount,i=e.hideBottomLeftGridScrollbar,a=this.state.showVerticalScrollbar;if(!n)return null;var s=a?1:0,l=this._getBottomGridHeight(e),c=this._getLeftGridWidth(e),u=this.state.showVerticalScrollbar?this.state.scrollbarSize:0,d=i?c+u:c,f=U.createElement(tA,Jn({},e,{cellRenderer:this._cellRendererBottomLeftGrid,className:this.props.classNameBottomLeftGrid,columnCount:n,deferredMeasurementCache:this._deferredMeasurementCacheBottomLeftGrid,height:l,onScroll:t?this._onScrollTop:void 0,ref:this._bottomLeftGridRef,rowCount:Math.max(0,o-r)+s,rowHeight:this._rowHeightBottomGrid,style:this._bottomLeftGridStyle,tabIndex:null,width:d}));return i?U.createElement("div",{className:"BottomLeftGrid_ScrollWrapper",style:oD({},this._bottomLeftGridStyle,{height:l,width:c,overflowY:"hidden"})},f):f}},{key:"_renderBottomRightGrid",value:function(e){var t=e.columnCount,n=e.fixedColumnCount,r=e.fixedRowCount,o=e.rowCount,i=e.scrollToColumn,a=e.scrollToRow;return U.createElement(tA,Jn({},e,{cellRenderer:this._cellRendererBottomRightGrid,className:this.props.classNameBottomRightGrid,columnCount:Math.max(0,t-n),columnWidth:this._columnWidthRightGrid,deferredMeasurementCache:this._deferredMeasurementCacheBottomRightGrid,height:this._getBottomGridHeight(e),onScroll:this._onScroll,onScrollbarPresenceChange:this._onScrollbarPresenceChange,ref:this._bottomRightGridRef,rowCount:Math.max(0,o-r),rowHeight:this._rowHeightBottomGrid,scrollToColumn:i-n,scrollToRow:a-r,style:this._bottomRightGridStyle,width:this._getRightGridWidth(e)}))}},{key:"_renderTopLeftGrid",value:function(e){var t=e.fixedColumnCount,n=e.fixedRowCount;return t&&n?U.createElement(tA,Jn({},e,{className:this.props.classNameTopLeftGrid,columnCount:t,height:this._getTopGridHeight(e),ref:this._topLeftGridRef,rowCount:n,style:this._topLeftGridStyle,tabIndex:null,width:this._getLeftGridWidth(e)})):null}},{key:"_renderTopRightGrid",value:function(e){var t=e.columnCount,n=e.enableFixedRowScroll,r=e.fixedColumnCount,o=e.fixedRowCount,i=e.scrollLeft,a=e.hideTopRightGridScrollbar,s=this.state,l=s.showHorizontalScrollbar,c=s.scrollbarSize;if(!o)return null;var u=l?1:0,d=this._getTopGridHeight(e),f=this._getRightGridWidth(e),h=l?c:0,p=d,m=this._topRightGridStyle;a&&(p=d+h,m=oD({},this._topRightGridStyle,{left:0}));var g=U.createElement(tA,Jn({},e,{cellRenderer:this._cellRendererTopRightGrid,className:this.props.classNameTopRightGrid,columnCount:Math.max(0,t-r)+u,columnWidth:this._columnWidthRightGrid,deferredMeasurementCache:this._deferredMeasurementCacheTopRightGrid,height:p,onScroll:n?this._onScrollLeft:void 0,ref:this._topRightGridRef,rowCount:o,scrollLeft:i,style:m,tabIndex:null,width:f}));return a?U.createElement("div",{className:"TopRightGrid_ScrollWrapper",style:oD({},this._topRightGridStyle,{height:d,width:f,overflowX:"hidden"})},g):g}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.scrollLeft!==t.scrollLeft||e.scrollTop!==t.scrollTop?{scrollLeft:null!=e.scrollLeft&&e.scrollLeft>=0?e.scrollLeft:t.scrollLeft,scrollTop:null!=e.scrollTop&&e.scrollTop>=0?e.scrollTop:t.scrollTop}:null}}]),t}();function aD(e){var t=e.className,n=e.columns,r=e.style;return U.createElement("div",{className:t,role:"row",style:r},n)}EL(iD,"defaultProps",{classNameBottomLeftGrid:"",classNameBottomRightGrid:"",classNameTopLeftGrid:"",classNameTopRightGrid:"",enableFixedColumnScroll:!1,enableFixedRowScroll:!1,fixedColumnCount:0,fixedRowCount:0,scrollToColumn:-1,scrollToRow:-1,style:{},styleBottomLeftGrid:{},styleBottomRightGrid:{},styleTopLeftGrid:{},styleTopRightGrid:{},hideTopRightGridScrollbar:!1,hideBottomLeftGridScrollbar:!1}),iD.propTypes={},PL(iD),aD.propTypes=null;var sD={ASC:"ASC",DESC:"DESC"};function lD(e){var t=e.sortDirection,n=ML("ReactVirtualized__Table__sortableHeaderIcon",{"ReactVirtualized__Table__sortableHeaderIcon--ASC":t===sD.ASC,"ReactVirtualized__Table__sortableHeaderIcon--DESC":t===sD.DESC});return U.createElement("svg",{className:n,width:18,height:18,viewBox:"0 0 24 24"},t===sD.ASC?U.createElement("path",{d:"M7 14l5-5 5 5z"}):U.createElement("path",{d:"M7 10l5 5 5-5z"}),U.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))}function cD(e){var t=e.dataKey,n=e.label,r=e.sortBy,o=e.sortDirection,i=r===t,a=[U.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:"string"==typeof n?n:null},n)];return i&&a.push(U.createElement(lD,{key:"SortIndicator",sortDirection:o})),a}function uD(e){var t=e.className,n=e.columns,r=e.index,o=e.key,i=e.onRowClick,a=e.onRowDoubleClick,s=e.onRowMouseOut,l=e.onRowMouseOver,c=e.onRowRightClick,u=e.rowData,d=e.style,f={"aria-rowindex":r+1};return(i||a||s||l||c)&&(f["aria-label"]="row",f.tabIndex=0,i&&(f.onClick=function(e){return i({event:e,index:r,rowData:u})}),a&&(f.onDoubleClick=function(e){return a({event:e,index:r,rowData:u})}),s&&(f.onMouseOut=function(e){return s({event:e,index:r,rowData:u})}),l&&(f.onMouseOver=function(e){return l({event:e,index:r,rowData:u})}),c&&(f.onContextMenu=function(e){return c({event:e,index:r,rowData:u})})),U.createElement("div",Jn({},f,{className:t,key:o,role:"row",style:d}),n)}lD.propTypes={},cD.propTypes=null,uD.propTypes=null;var dD=function(e){function t(){return mL(this,t),SL(this,xL(t).apply(this,arguments))}return CL(t,U.Component),t}();function fD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fD(n,!0).forEach((function(t){EL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fD(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}EL(dD,"defaultProps",{cellDataGetter:function(e){var t=e.dataKey,n=e.rowData;return"function"==typeof n.get?n.get(t):n[t]},cellRenderer:function(e){var t=e.cellData;return null==t?"":String(t)},defaultSortDirection:sD.ASC,flexGrow:0,flexShrink:1,headerRenderer:cD,style:{}}),dD.propTypes={};var pD=function(e){function t(e){var n;return mL(this,t),(n=SL(this,xL(t).call(this,e))).state={scrollbarWidth:0},n._createColumn=n._createColumn.bind(bL(n)),n._createRow=n._createRow.bind(bL(n)),n._onScroll=n._onScroll.bind(bL(n)),n._onSectionRendered=n._onSectionRendered.bind(bL(n)),n._setRef=n._setRef.bind(bL(n)),n}return CL(t,U.PureComponent),wL(t,[{key:"forceUpdateGrid",value:function(){this.Grid&&this.Grid.forceUpdate()}},{key:"getOffsetForRow",value:function(e){var t=e.alignment,n=e.index;return this.Grid?this.Grid.getOffsetForCell({alignment:t,rowIndex:n}).scrollTop:0}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,n=e.rowIndex;this.Grid&&this.Grid.invalidateCellSizeAfterRender({rowIndex:n,columnIndex:t})}},{key:"measureAllRows",value:function(){this.Grid&&this.Grid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,r=e.rowIndex,o=void 0===r?0:r;this.Grid&&this.Grid.recomputeGridSize({rowIndex:o,columnIndex:n})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"getScrollbarWidth",value:function(){if(this.Grid){var e=yp.findDOMNode(this.Grid),t=e.clientWidth||0;return(e.offsetWidth||0)-t}return 0}},{key:"componentDidMount",value:function(){this._setScrollbarWidth()}},{key:"componentDidUpdate",value:function(){this._setScrollbarWidth()}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.className,o=t.disableHeader,i=t.gridClassName,a=t.gridStyle,s=t.headerHeight,l=t.headerRowRenderer,c=t.height,u=t.id,d=t.noRowsRenderer,f=t.rowClassName,h=t.rowStyle,p=t.scrollToIndex,m=t.style,g=t.width,v=this.state.scrollbarWidth,y=o?c:c-s,w="function"==typeof f?f({index:-1}):f,b="function"==typeof h?h({index:-1}):h;return this._cachedColumnStyles=[],U.Children.toArray(n).forEach((function(t,n){var r=e._getFlexStyleForColumn(t,t.props.style);e._cachedColumnStyles[n]=hD({overflow:"hidden"},r)})),U.createElement("div",{"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-colcount":U.Children.toArray(n).length,"aria-rowcount":this.props.rowCount,className:ML("ReactVirtualized__Table",r),id:u,role:"grid",style:m},!o&&l({className:ML("ReactVirtualized__Table__headerRow",w),columns:this._getHeaderColumns(),style:hD({height:s,overflow:"hidden",paddingRight:v,width:g},b)}),U.createElement(tA,Jn({},this.props,{"aria-readonly":null,autoContainerWidth:!0,className:ML("ReactVirtualized__Table__Grid",i),cellRenderer:this._createRow,columnWidth:g,columnCount:1,height:y,id:void 0,noContentRenderer:d,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:v,scrollToRow:p,style:hD({},a,{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(e){var t=e.column,n=e.columnIndex,r=e.isScrolling,o=e.parent,i=e.rowData,a=e.rowIndex,s=this.props.onColumnClick,l=t.props,c=l.cellDataGetter,u=l.cellRenderer,d=l.className,f=l.columnData,h=l.dataKey,p=l.id,m=u({cellData:c({columnData:f,dataKey:h,rowData:i}),columnData:f,columnIndex:n,dataKey:h,isScrolling:r,parent:o,rowData:i,rowIndex:a}),g=this._cachedColumnStyles[n],v="string"==typeof m?m:null;return U.createElement("div",{"aria-colindex":n+1,"aria-describedby":p,className:ML("ReactVirtualized__Table__rowColumn",d),key:"Row"+a+"-Col"+n,onClick:function(e){s&&s({columnData:f,dataKey:h,event:e})},role:"gridcell",style:g,title:v},m)}},{key:"_createHeader",value:function(e){var t,n,r,o,i,a=e.column,s=e.index,l=this.props,c=l.headerClassName,u=l.headerStyle,d=l.onHeaderClick,f=l.sort,h=l.sortBy,p=l.sortDirection,m=a.props,g=m.columnData,v=m.dataKey,y=m.defaultSortDirection,w=m.disableSort,b=m.headerRenderer,S=m.id,x=m.label,_=!w&&f,C=ML("ReactVirtualized__Table__headerColumn",c,a.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:_}),E=this._getFlexStyleForColumn(a,hD({},u,{},a.props.headerStyle)),k=b({columnData:g,dataKey:v,disableSort:w,label:x,sortBy:h,sortDirection:p});if(_||d){var T=h!==v?y:p===sD.DESC?sD.ASC:sD.DESC,R=function(e){_&&f({defaultSortDirection:y,event:e,sortBy:v,sortDirection:T}),d&&d({columnData:g,dataKey:v,event:e})};i=a.props["aria-label"]||x||v,o="none",r=0,t=R,n=function(e){"Enter"!==e.key&&" "!==e.key||R(e)}}return h===v&&(o=p===sD.ASC?"ascending":"descending"),U.createElement("div",{"aria-label":i,"aria-sort":o,className:C,id:S,key:"Header-Col"+s,onClick:t,onKeyDown:n,role:"columnheader",style:E,tabIndex:r},k)}},{key:"_createRow",value:function(e){var t=this,n=e.rowIndex,r=e.isScrolling,o=e.key,i=e.parent,a=e.style,s=this.props,l=s.children,c=s.onRowClick,u=s.onRowDoubleClick,d=s.onRowRightClick,f=s.onRowMouseOver,h=s.onRowMouseOut,p=s.rowClassName,m=s.rowGetter,g=s.rowRenderer,v=s.rowStyle,y=this.state.scrollbarWidth,w="function"==typeof p?p({index:n}):p,b="function"==typeof v?v({index:n}):v,S=m({index:n}),x=U.Children.toArray(l).map((function(e,o){return t._createColumn({column:e,columnIndex:o,isScrolling:r,parent:i,rowData:S,rowIndex:n,scrollbarWidth:y})})),_=ML("ReactVirtualized__Table__row",w),C=hD({},a,{height:this._getRowHeight(n),overflow:"hidden",paddingRight:y},b);return g({className:_,columns:x,index:n,isScrolling:r,key:o,onRowClick:c,onRowDoubleClick:u,onRowRightClick:d,onRowMouseOver:f,onRowMouseOut:h,rowData:S,style:C})}},{key:"_getFlexStyleForColumn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="".concat(e.props.flexGrow," ").concat(e.props.flexShrink," ").concat(e.props.width,"px"),r=hD({},t,{flex:n,msFlex:n,WebkitFlex:n});return e.props.maxWidth&&(r.maxWidth=e.props.maxWidth),e.props.minWidth&&(r.minWidth=e.props.minWidth),r}},{key:"_getHeaderColumns",value:function(){var e=this,t=this.props,n=t.children;return(t.disableHeader?[]:U.Children.toArray(n)).map((function(t,n){return e._createHeader({column:t,index:n})}))}},{key:"_getRowHeight",value:function(e){var t=this.props.rowHeight;return"function"==typeof t?t({index:e}):t}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.scrollHeight,r=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:r})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,r=e.rowStartIndex,o=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:r,stopIndex:o})}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_setScrollbarWidth",value:function(){var e=this.getScrollbarWidth();this.setState({scrollbarWidth:e})}}]),t}();EL(pD,"defaultProps",{disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanIndicesGetter:oA,overscanRowCount:10,rowRenderer:uD,headerRowRenderer:aD,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}}),pD.propTypes={};var mD=[],gD=null,vD=null;function yD(){vD&&(vD=null,document.body&&null!=gD&&(document.body.style.pointerEvents=gD),gD=null)}function wD(){yD(),mD.forEach((function(e){return e.__resetIsScrolling()}))}function bD(e){e.currentTarget===window&&null==gD&&document.body&&(gD=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),function(){vD&&qL(vD);var e=0;mD.forEach((function(t){e=Math.max(e,t.props.scrollingResetTimeInterval)})),vD=YL(wD,e)}(),mD.forEach((function(t){t.props.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent()}))}function SD(e,t){mD.some((function(e){return e.props.scrollElement===t}))||t.addEventListener("scroll",bD),mD.push(e)}function xD(e,t){(mD=mD.filter((function(t){return t!==e}))).length||(t.removeEventListener("scroll",bD),vD&&(qL(vD),yD()))}var _D,CD,ED=function(e){return e===window},kD=function(e){return e.getBoundingClientRect()};function TD(e,t){if(e){if(ED(e)){var n=window,r=n.innerHeight,o=n.innerWidth;return{height:"number"==typeof r?r:0,width:"number"==typeof o?o:0}}return kD(e)}return{height:t.serverHeight,width:t.serverWidth}}function RD(e){return ED(e)&&document.documentElement?{top:"scrollY"in window?window.scrollY:document.documentElement.scrollTop,left:"scrollX"in window?window.scrollX:document.documentElement.scrollLeft}:{top:e.scrollTop,left:e.scrollLeft}}function PD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var ID=function(){return"undefined"!=typeof window?window:void 0},MD=(CD=_D=function(e){function t(){var e,n;mL(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return EL(bL(n=SL(this,(e=xL(t)).call.apply(e,[this].concat(o)))),"_window",ID()),EL(bL(n),"_isMounted",!1),EL(bL(n),"_positionFromTop",0),EL(bL(n),"_positionFromLeft",0),EL(bL(n),"_detectElementResize",void 0),EL(bL(n),"_child",void 0),EL(bL(n),"state",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?PD(n,!0).forEach((function(t){EL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PD(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},TD(n.props.scrollElement,n.props),{isScrolling:!1,scrollLeft:0,scrollTop:0})),EL(bL(n),"_registerChild",(function(e){!e||e instanceof Element||console.warn("WindowScroller registerChild expects to be passed Element or null"),n._child=e,n.updatePosition()})),EL(bL(n),"_onChildScroll",(function(e){var t=e.scrollTop;if(n.state.scrollTop!==t){var r=n.props.scrollElement;r&&("function"==typeof r.scrollTo?r.scrollTo(0,t+n._positionFromTop):r.scrollTop=t+n._positionFromTop)}})),EL(bL(n),"_registerResizeListener",(function(e){e===window?window.addEventListener("resize",n._onResize,!1):n._detectElementResize.addResizeListener(e,n._onResize)})),EL(bL(n),"_unregisterResizeListener",(function(e){e===window?window.removeEventListener("resize",n._onResize,!1):e&&n._detectElementResize.removeResizeListener(e,n._onResize)})),EL(bL(n),"_onResize",(function(){n.updatePosition()})),EL(bL(n),"__handleWindowScrollEvent",(function(){if(n._isMounted){var e=n.props.onScroll,t=n.props.scrollElement;if(t){var r=RD(t),o=Math.max(0,r.left-n._positionFromLeft),i=Math.max(0,r.top-n._positionFromTop);n.setState({isScrolling:!0,scrollLeft:o,scrollTop:i}),e({scrollLeft:o,scrollTop:i})}}})),EL(bL(n),"__resetIsScrolling",(function(){n.setState({isScrolling:!1})})),n}return CL(t,U.PureComponent),wL(t,[{key:"updatePosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.scrollElement,t=this.props.onResize,n=this.state,r=n.height,o=n.width,i=this._child||yp.findDOMNode(this);if(i instanceof Element&&e){var a=function(e,t){if(ED(t)&&document.documentElement){var n=document.documentElement,r=kD(e),o=kD(n);return{top:r.top-o.top,left:r.left-o.left}}var i=RD(t),a=kD(e),s=kD(t);return{top:a.top+i.top-s.top,left:a.left+i.left-s.left}}(i,e);this._positionFromTop=a.top,this._positionFromLeft=a.left}var s=TD(e,this.props);r===s.height&&o===s.width||(this.setState({height:s.height,width:s.width}),t({height:s.height,width:s.width}))}},{key:"componentDidMount",value:function(){var e=this.props.scrollElement;this._detectElementResize=cA(),this.updatePosition(e),e&&(SD(this,e),this._registerResizeListener(e)),this._isMounted=!0}},{key:"componentDidUpdate",value:function(e,t){var n=this.props.scrollElement,r=e.scrollElement;r!==n&&null!=r&&null!=n&&(this.updatePosition(n),xD(this,r),SD(this,n),this._unregisterResizeListener(r),this._registerResizeListener(n))}},{key:"componentWillUnmount",value:function(){var e=this.props.scrollElement;e&&(xD(this,e),this._unregisterResizeListener(e)),this._isMounted=!1}},{key:"render",value:function(){var e=this.props.children,t=this.state,n=t.isScrolling,r=t.scrollTop,o=t.scrollLeft,i=t.height,a=t.width;return e({onChildScroll:this._onChildScroll,registerChild:this._registerChild,height:i,isScrolling:n,scrollLeft:o,scrollTop:r,width:a})}}]),t}(),EL(_D,"propTypes",null),CD);EL(MD,"defaultProps",{onResize:function(){},onScroll:function(){},scrollingResetTimeInterval:150,scrollElement:ID(),serverHeight:0,serverWidth:0});export{Pg as $,vw as A,yw as B,jn as C,Mw as D,zw as E,Ww as F,Uw as G,bb as H,Sb as I,xb as J,_b as K,PS as L,IS as M,MS as N,MC as O,zC as P,OC as Q,G as R,CC as S,EC as T,kC as U,TC as V,RC as W,PC as X,LC as Y,IC as Z,AC as _,Ig as a,NM as a0,UM as a1,VM as a2,wz as a3,_z as a4,bz as a5,Sz as a6,xz as a7,Gz as a8,$z as a9,Kz as aa,Xz as ab,qz as ac,Yz as ad,TO as ae,RO as af,PO as ag,IO as ah,pL as ai,MD as aj,MA as ak,Mg as b,zg as c,Ag as d,Dg as e,Lg as f,Og as g,Fg as h,dg as i,Zn as j,fg as k,hg as l,pg as m,mg as n,gg as o,vv as p,wv as q,U as r,bv as s,Sv as t,xv as u,yv as v,hw as w,pw as x,mw as y,gw as z};