/*! For license information please see welcome.js.LICENSE.txt */
(()=>{var e={5236:(e,t,n)=>{"use strict";var r=n(9795),o=[],i=[],a=r.makeRequestCallFromTimer((function(){if(i.length)throw i.shift()}));function s(e){var t;(t=o.length?o.pop():new l).task=e,r(t)}function l(){this.task=null}e.exports=s,l.prototype.call=function(){try{this.task.call()}catch(e){s.onerror?s.onerror(e):(i.push(e),a())}finally{this.task=null,o[o.length]=this}}},9795:(e,t,n)=>{"use strict";function r(e){i.length||o(),i[i.length]=e}e.exports=r;var o,i=[],a=0;function s(){for(;a<i.length;){var e=a;if(a+=1,i[e].call(),a>1024){for(var t=0,n=i.length-a;t<n;t++)i[t]=i[t+a];i.length-=a,a=0}}i.length=0,a=0}var l,u,c,d=void 0!==n.g?n.g:self,f=d.MutationObserver||d.WebKitMutationObserver;function p(e){return function(){var t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}"function"==typeof f?(l=1,u=new f(s),c=document.createTextNode(""),u.observe(c,{characterData:!0}),o=function(){l=-l,c.data=l}):o=p(s),r.requestFlush=o,r.makeRequestCallFromTimer=p},4146:(e,t,n)=>{"use strict";var r=n(3404),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var a=c(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),v=0;v<a.length;++v){var g=a[v];if(!(i[g]||r&&r[g]||m&&m[g]||s&&s[g])){var b=f(n,g);try{u(t,g,b)}catch(e){}}}}return t}},3072:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case i:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case u:case f:case v:case m:case l:return e;default:return t}}case o:return t}}}function k(e){return w(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=v,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return k(e)||w(e)===c},t.isConcurrentMode=k,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===v},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===s||e===a||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===f||e.$$typeof===b||e.$$typeof===y||e.$$typeof===x||e.$$typeof===g)},t.typeOf=w},3404:(e,t,n)=>{"use strict";e.exports=n(3072)},8394:(e,t,n)=>{e=n.nmd(e);var r="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Function]",s="[object Object]",l=/^\[object .+?Constructor\]$/,u=/^(?:0|[1-9]\d*)$/,c={};c["[object Float32Array]"]=c["[object Float64Array]"]=c["[object Int8Array]"]=c["[object Int16Array]"]=c["[object Int32Array]"]=c["[object Uint8Array]"]=c["[object Uint8ClampedArray]"]=c["[object Uint16Array]"]=c["[object Uint32Array]"]=!0,c[i]=c["[object Array]"]=c["[object ArrayBuffer]"]=c["[object Boolean]"]=c["[object DataView]"]=c["[object Date]"]=c["[object Error]"]=c[a]=c["[object Map]"]=c["[object Number]"]=c[s]=c["[object RegExp]"]=c["[object Set]"]=c["[object String]"]=c["[object WeakMap]"]=!1;var d,f,p,h="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,m="object"==typeof self&&self&&self.Object===Object&&self,v=h||m||Function("return this")(),g=t&&!t.nodeType&&t,b=g&&e&&!e.nodeType&&e,y=b&&b.exports===g,x=y&&h.process,w=function(){try{return b&&b.require&&b.require("util").types||x&&x.binding&&x.binding("util")}catch(e){}}(),k=w&&w.isTypedArray,S=Array.prototype,E=Function.prototype,C=Object.prototype,_=v["__core-js_shared__"],O=E.toString,P=C.hasOwnProperty,R=(d=/[^.]+$/.exec(_&&_.keys&&_.keys.IE_PROTO||""))?"Symbol(src)_1."+d:"",T=C.toString,A=O.call(Object),I=RegExp("^"+O.call(P).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),j=y?v.Buffer:void 0,M=v.Symbol,z=v.Uint8Array,F=(j&&j.allocUnsafe,f=Object.getPrototypeOf,p=Object,function(e){return f(p(e))}),L=Object.create,D=C.propertyIsEnumerable,N=S.splice,B=M?M.toStringTag:void 0,V=function(){try{var e=se(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),$=j?j.isBuffer:void 0,W=Math.max,U=Date.now,H=se(v,"Map"),q=se(Object,"create"),Y=function(){function e(){}return function(t){if(!ye(t))return{};if(L)return L(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function X(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function G(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function K(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Q(e){var t=this.__data__=new G(e);this.size=t.size}function Z(e,t,n){(void 0!==n&&!fe(e[t],n)||void 0===n&&!(t in e))&&te(e,t,n)}function J(e,t,n){var r=e[t];P.call(e,t)&&fe(r,n)&&(void 0!==n||t in e)||te(e,t,n)}function ee(e,t){for(var n=e.length;n--;)if(fe(e[n][0],t))return n;return-1}function te(e,t,n){"__proto__"==t&&V?V(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}X.prototype.clear=function(){this.__data__=q?q(null):{},this.size=0},X.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},X.prototype.get=function(e){var t=this.__data__;if(q){var n=t[e];return n===r?void 0:n}return P.call(t,e)?t[e]:void 0},X.prototype.has=function(e){var t=this.__data__;return q?void 0!==t[e]:P.call(t,e)},X.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=q&&void 0===t?r:t,this},G.prototype.clear=function(){this.__data__=[],this.size=0},G.prototype.delete=function(e){var t=this.__data__,n=ee(t,e);return!(n<0||(n==t.length-1?t.pop():N.call(t,n,1),--this.size,0))},G.prototype.get=function(e){var t=this.__data__,n=ee(t,e);return n<0?void 0:t[n][1]},G.prototype.has=function(e){return ee(this.__data__,e)>-1},G.prototype.set=function(e,t){var n=this.__data__,r=ee(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},K.prototype.clear=function(){this.size=0,this.__data__={hash:new X,map:new(H||G),string:new X}},K.prototype.delete=function(e){var t=ae(this,e).delete(e);return this.size-=t?1:0,t},K.prototype.get=function(e){return ae(this,e).get(e)},K.prototype.has=function(e){return ae(this,e).has(e)},K.prototype.set=function(e,t){var n=ae(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Q.prototype.clear=function(){this.__data__=new G,this.size=0},Q.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Q.prototype.get=function(e){return this.__data__.get(e)},Q.prototype.has=function(e){return this.__data__.has(e)},Q.prototype.set=function(e,t){var n=this.__data__;if(n instanceof G){var r=n.__data__;if(!H||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new K(r)}return n.set(e,t),this.size=n.size,this};function ne(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":B&&B in Object(e)?function(e){var t=P.call(e,B),n=e[B];try{e[B]=void 0;var r=!0}catch(e){}var o=T.call(e);return r&&(t?e[B]=n:delete e[B]),o}(e):function(e){return T.call(e)}(e)}function re(e){return xe(e)&&ne(e)==i}function oe(e,t,n,r,o){e!==t&&function(e,t,n){for(var r=-1,o=Object(e),i=n(e),a=i.length;a--;){var s=i[++r];if(!1===t(o[s],s,o))break}}(t,(function(i,a){if(o||(o=new Q),ye(i))!function(e,t,n,r,o,i,a){var l=ce(e,n),u=ce(t,n),c=a.get(u);if(c)Z(e,n,c);else{var d,f,p,h,m,v=i?i(l,u,n+"",e,t,a):void 0,g=void 0===v;if(g){var b=he(u),y=!b&&ve(u),x=!b&&!y&&we(u);v=u,b||y||x?he(l)?v=l:xe(m=l)&&me(m)?v=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(l):y?(g=!1,v=function(e){return e.slice()}(u)):x?(g=!1,h=new(p=(d=u).buffer).constructor(p.byteLength),new z(h).set(new z(p)),f=h,v=new d.constructor(f,d.byteOffset,d.length)):v=[]:function(e){if(!xe(e)||ne(e)!=s)return!1;var t=F(e);if(null===t)return!0;var n=P.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&O.call(n)==A}(u)||pe(u)?(v=l,pe(l)?v=function(e){return function(e,t,n){var r=!n;n||(n={});for(var o=-1,i=t.length;++o<i;){var a=t[o],s=void 0;void 0===s&&(s=e[a]),r?te(n,a,s):J(n,a,s)}return n}(e,ke(e))}(l):ye(l)&&!ge(l)||(v=function(e){return"function"!=typeof e.constructor||ue(e)?{}:Y(F(e))}(u))):g=!1}g&&(a.set(u,v),o(v,u,r,i,a),a.delete(u)),Z(e,n,v)}}(e,t,a,n,oe,r,o);else{var l=r?r(ce(e,a),i,a+"",e,t,o):void 0;void 0===l&&(l=i),Z(e,a,l)}}),ke)}var ie=V?function(e,t){return V(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:Ce;function ae(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function se(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!ye(e)||function(e){return!!R&&R in e}(e))&&(ge(e)?I:l).test(function(e){if(null!=e){try{return O.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}(n)?n:void 0}function le(e,t){var n=typeof e;return!!(t=null==t?o:t)&&("number"==n||"symbol"!=n&&u.test(e))&&e>-1&&e%1==0&&e<t}function ue(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||C)}function ce(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var de=function(e){var t=0,n=0;return function(){var r=U(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(ie);function fe(e,t){return e===t||e!=e&&t!=t}var pe=re(function(){return arguments}())?re:function(e){return xe(e)&&P.call(e,"callee")&&!D.call(e,"callee")},he=Array.isArray;function me(e){return null!=e&&be(e.length)&&!ge(e)}var ve=$||function(){return!1};function ge(e){if(!ye(e))return!1;var t=ne(e);return t==a||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function be(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function ye(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function xe(e){return null!=e&&"object"==typeof e}var we=k?function(e){return function(t){return e(t)}}(k):function(e){return xe(e)&&be(e.length)&&!!c[ne(e)]};function ke(e){return me(e)?function(e,t){var n=he(e),r=!n&&pe(e),o=!n&&!r&&ve(e),i=!n&&!r&&!o&&we(e),a=n||r||o||i,s=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=s.length;for(var u in e)!t&&!P.call(e,u)||a&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||le(u,l))||s.push(u);return s}(e,!0):function(e){if(!ye(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=ue(e),n=[];for(var r in e)("constructor"!=r||!t&&P.call(e,r))&&n.push(r);return n}(e)}var Se,Ee=(Se=function(e,t,n,r){oe(e,t,n,r)},function(e,t){return de(function(e,t,n){return t=W(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=W(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(a),function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(e,this,s)}}(e,t,Ce),e+"")}((function(e,t){var n=-1,r=t.length,o=r>1?t[r-1]:void 0,i=r>2?t[2]:void 0;for(o=Se.length>3&&"function"==typeof o?(r--,o):void 0,i&&function(e,t,n){if(!ye(n))return!1;var r=typeof t;return!!("number"==r?me(n)&&le(t,n.length):"string"==r&&t in n)&&fe(n[t],e)}(t[0],t[1],i)&&(o=r<3?void 0:o,r=1),e=Object(e);++n<r;){var a=t[n];a&&Se(e,a,n,o)}return e})));function Ce(e){return e}e.exports=Ee},918:(e,t,n)=>{"use strict";n(7706)},9551:(e,t,n)=>{"use strict";var r=n(9795);function o(){}var i=null,a={};function s(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("Promise constructor's argument is not a function");this._x=0,this._y=0,this._z=null,this._A=null,e!==o&&p(e,this)}function l(e,t){for(;3===e._y;)e=e._z;if(s._B&&s._B(e),0===e._y)return 0===e._x?(e._x=1,void(e._A=t)):1===e._x?(e._x=2,void(e._A=[e._A,t])):void e._A.push(t);!function(e,t){r((function(){var n=1===e._y?t.onFulfilled:t.onRejected;if(null!==n){var r=function(e,t){try{return e(t)}catch(e){return i=e,a}}(n,e._z);r===a?c(t.promise,i):u(t.promise,r)}else 1===e._y?u(t.promise,e._z):c(t.promise,e._z)}))}(e,t)}function u(e,t){if(t===e)return c(e,new TypeError("A promise cannot be resolved with itself."));if(t&&("object"==typeof t||"function"==typeof t)){var n=function(e){try{return e.then}catch(e){return i=e,a}}(t);if(n===a)return c(e,i);if(n===e.then&&t instanceof s)return e._y=3,e._z=t,void d(e);if("function"==typeof n)return void p(n.bind(t),e)}e._y=1,e._z=t,d(e)}function c(e,t){e._y=2,e._z=t,s._C&&s._C(e,t),d(e)}function d(e){if(1===e._x&&(l(e,e._A),e._A=null),2===e._x){for(var t=0;t<e._A.length;t++)l(e,e._A[t]);e._A=null}}function f(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function p(e,t){var n=!1,r=function(e){try{e((function(e){n||(n=!0,u(t,e))}),(function(e){n||(n=!0,c(t,e))}))}catch(e){return i=e,a}}(e);n||r!==a||(n=!0,c(t,i))}e.exports=s,s._B=null,s._C=null,s._D=o,s.prototype.then=function(e,t){if(this.constructor!==s)return function(e,t,n){return new e.constructor((function(r,i){var a=new s(o);a.then(r,i),l(e,new f(t,n,a))}))}(this,e,t);var n=new s(o);return l(this,new f(e,t,n)),n}},5556:(e,t,n)=>{"use strict";var r=n(9551);e.exports=r,r.prototype.done=function(e,t){(arguments.length?this.then.apply(this,arguments):this).then(null,(function(e){setTimeout((function(){throw e}),0)}))}},8635:(e,t,n)=>{"use strict";var r=n(9551);e.exports=r;var o=c(!0),i=c(!1),a=c(null),s=c(void 0),l=c(0),u=c("");function c(e){var t=new r(r._D);return t._y=1,t._z=e,t}r.resolve=function(e){if(e instanceof r)return e;if(null===e)return a;if(void 0===e)return s;if(!0===e)return o;if(!1===e)return i;if(0===e)return l;if(""===e)return u;if("object"==typeof e||"function"==typeof e)try{var t=e.then;if("function"==typeof t)return new r(t.bind(e))}catch(e){return new r((function(t,n){n(e)}))}return c(e)};var d=function(e){return"function"==typeof Array.from?(d=Array.from,Array.from(e)):(d=function(e){return Array.prototype.slice.call(e)},Array.prototype.slice.call(e))};function f(e){return{status:"fulfilled",value:e}}function p(e){return{status:"rejected",reason:e}}function h(e){if(e&&("object"==typeof e||"function"==typeof e)){if(e instanceof r&&e.then===r.prototype.then)return e.then(f,p);var t=e.then;if("function"==typeof t)return new r(t.bind(e)).then(f,p)}return f(e)}function m(e){if("function"==typeof AggregateError)return new AggregateError(e,"All promises were rejected");var t=new Error("All promises were rejected");return t.name="AggregateError",t.errors=e,t}r.all=function(e){var t=d(e);return new r((function(e,n){if(0===t.length)return e([]);var o=t.length;function i(a,s){if(s&&("object"==typeof s||"function"==typeof s)){if(s instanceof r&&s.then===r.prototype.then){for(;3===s._y;)s=s._z;return 1===s._y?i(a,s._z):(2===s._y&&n(s._z),void s.then((function(e){i(a,e)}),n))}var l=s.then;if("function"==typeof l)return void new r(l.bind(s)).then((function(e){i(a,e)}),n)}t[a]=s,0==--o&&e(t)}for(var a=0;a<t.length;a++)i(a,t[a])}))},r.allSettled=function(e){return r.all(d(e).map(h))},r.reject=function(e){return new r((function(t,n){n(e)}))},r.race=function(e){return new r((function(t,n){d(e).forEach((function(e){r.resolve(e).then(t,n)}))}))},r.prototype.catch=function(e){return this.then(null,e)},r.any=function(e){return new r((function(t,n){var o=d(e),i=!1,a=[];function s(e){i||(i=!0,t(e))}function l(e){a.push(e),a.length===o.length&&n(m(a))}0===o.length?n(m(a)):o.forEach((function(e){r.resolve(e).then(s,l)}))}))}},4293:(e,t,n)=>{"use strict";var r=n(9551);e.exports=r,r.prototype.finally=function(e){return this.then((function(t){return r.resolve(e()).then((function(){return t}))}),(function(t){return r.resolve(e()).then((function(){throw t}))}))}},7706:(e,t,n)=>{"use strict";n(9551),n(5556),n(4293),n(8635),n(9791),n(1727)},9791:(e,t,n)=>{"use strict";var r=n(9551),o=n(5236);e.exports=r,r.denodeify=function(e,t){return"number"==typeof t&&t!==1/0?function(e,t){for(var n=[],o=0;o<t;o++)n.push("a"+o);var a=["return function ("+n.join(",")+") {","var self = this;","return new Promise(function (rs, rj) {","var res = fn.call(",["self"].concat(n).concat([i]).join(","),");","if (res &&",'(typeof res === "object" || typeof res === "function") &&','typeof res.then === "function"',") {rs(res);}","});","};"].join("");return Function(["Promise","fn"],a)(r,e)}(e,t):function(e){for(var t=Math.max(e.length-1,3),n=[],o=0;o<t;o++)n.push("a"+o);var a=["return function ("+n.join(",")+") {","var self = this;","var args;","var argLength = arguments.length;","if (arguments.length > "+t+") {","args = new Array(arguments.length + 1);","for (var i = 0; i < arguments.length; i++) {","args[i] = arguments[i];","}","}","return new Promise(function (rs, rj) {","var cb = "+i+";","var res;","switch (argLength) {",n.concat(["extra"]).map((function(e,t){return"case "+t+":res = fn.call("+["self"].concat(n.slice(0,t)).concat("cb").join(",")+");break;"})).join(""),"default:","args[argLength] = cb;","res = fn.apply(self, args);","}","if (res &&",'(typeof res === "object" || typeof res === "function") &&','typeof res.then === "function"',") {rs(res);}","});","};"].join("");return Function(["Promise","fn"],a)(r,e)}(e)};var i="function (err, res) {if (err) { rj(err); } else { rs(res); }}";r.nodeify=function(e){return function(){var t=Array.prototype.slice.call(arguments),n="function"==typeof t[t.length-1]?t.pop():null,i=this;try{return e.apply(this,arguments).nodeify(n,i)}catch(e){if(null==n)return new r((function(t,n){n(e)}));o((function(){n.call(i,e)}))}}},r.prototype.nodeify=function(e,t){if("function"!=typeof e)return this;this.then((function(n){o((function(){e.call(t,null,n)}))}),(function(n){o((function(){e.call(t,n)}))}))}},1727:(e,t,n)=>{"use strict";var r=n(9551);e.exports=r,r.enableSynchronous=function(){r.prototype.isPending=function(){return 0==this.getState()},r.prototype.isFulfilled=function(){return 1==this.getState()},r.prototype.isRejected=function(){return 2==this.getState()},r.prototype.getValue=function(){if(3===this._y)return this._z.getValue();if(!this.isFulfilled())throw new Error("Cannot get a value of an unfulfilled promise.");return this._z},r.prototype.getReason=function(){if(3===this._y)return this._z.getReason();if(!this.isRejected())throw new Error("Cannot get a rejection reason of a non-rejected promise.");return this._z},r.prototype.getState=function(){return 3===this._y?this._z.getState():-1===this._y||-2===this._y?0:this._y}},r.disableSynchronous=function(){r.prototype.isPending=void 0,r.prototype.isFulfilled=void 0,r.prototype.isRejected=void 0,r.prototype.getValue=void 0,r.prototype.getReason=void 0,r.prototype.getState=void 0}},2551:(e,t,n)=>{"use strict";var r=n(6694),o=n(9982);function i(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 a=new Set,s={};function l(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var c=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,f=/^[: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]*$/,p={},h={};function m(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 v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){v[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];v[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){v[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){v[e]=new m(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){v[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){v[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){v[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){v[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){v[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var g=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function y(e,t,n,r){var o=v.hasOwnProperty(t)?v[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!!d.call(h,e)||!d.call(p,e)&&(f.test(e)?h[e]=!0:(p[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(g,b);v[t]=new m(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(g,b);v[t]=new m(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(g,b);v[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){v[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),v.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){v[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var x=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),k=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),O=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),I=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var j=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var M=Symbol.iterator;function z(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=M&&e[M]||e["@@iterator"])?e:null}var F,L=Object.assign;function D(e){if(void 0===F)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);F=t&&t[1]||""}return"\n"+F+e}var N=!1;function B(e,t){if(!e||N)return"";N=!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(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.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{N=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?D(e):""}function V(e){switch(e.tag){case 5:return D(e.type);case 16:return D("Lazy");case 13:return D("Suspense");case 19:return D("SuspenseList");case 0:case 2:case 15:return B(e.type,!1);case 11:return B(e.type.render,!1);case 1:return B(e.type,!0);default:return""}}function $(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 S:return"Fragment";case k:return"Portal";case C:return"Profiler";case E:return"StrictMode";case R:return"Suspense";case T:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case O:return(e.displayName||"Context")+".Consumer";case _:return(e._context.displayName||"Context")+".Provider";case P:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case A:return null!==(t=e.displayName||null)?t:$(e.type)||"Memo";case I:t=e._payload,e=e._init;try{return $(e(t))}catch(e){}}return null}function W(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 $(t);case 8:return t===E?"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 U(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function H(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function q(e){e._valueTracker||(e._valueTracker=function(e){var t=H(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 Y(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=H(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function X(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 G(e,t){var n=t.checked;return L({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function K(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=U(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 Q(e,t){null!=(t=t.checked)&&y(e,"checked",t,!1)}function Z(e,t){Q(e,t);var n=U(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")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,U(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(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 ee(e,t,n){"number"===t&&X(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(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=""+U(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 re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return L({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(te(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:U(n)}}function ie(e,t){var n=U(t.value),r=U(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 ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(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 le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ue,ce,de=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ue=ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ue.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 ce(e,t)}))}:ce);function fe(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 pe={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},he=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ve(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(pe).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var ge=L({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 be(e,t){if(t){if(ge[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(i(62))}}function ye(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 xe=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ke=null,Se=null,Ee=null;function Ce(e){if(e=xo(e)){if("function"!=typeof ke)throw Error(i(280));var t=e.stateNode;t&&(t=ko(t),ke(e.stateNode,e.type,t))}}function _e(e){Se?Ee?Ee.push(e):Ee=[e]:Se=e}function Oe(){if(Se){var e=Se,t=Ee;if(Ee=Se=null,Ce(e),t)for(e=0;e<t.length;e++)Ce(t[e])}}function Pe(e,t){return e(t)}function Re(){}var Te=!1;function Ae(e,t,n){if(Te)return e(t,n);Te=!0;try{return Pe(e,t,n)}finally{Te=!1,(null!==Se||null!==Ee)&&(Re(),Oe())}}function Ie(e,t){var n=e.stateNode;if(null===n)return null;var r=ko(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(i(231,t,typeof n));return n}var je=!1;if(c)try{var Me={};Object.defineProperty(Me,"passive",{get:function(){je=!0}}),window.addEventListener("test",Me,Me),window.removeEventListener("test",Me,Me)}catch(ce){je=!1}function ze(e,t,n,r,o,i,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var Fe=!1,Le=null,De=!1,Ne=null,Be={onError:function(e){Fe=!0,Le=e}};function Ve(e,t,n,r,o,i,a,s,l){Fe=!1,Le=null,ze.apply(Be,arguments)}function $e(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function We(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 Ue(e){if($e(e)!==e)throw Error(i(188))}function He(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=$e(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return Ue(o),e;if(a===r)return Ue(o),t;a=a.sibling}throw Error(i(188))}if(n.return!==r.return)n=o,r=a;else{for(var s=!1,l=o.child;l;){if(l===n){s=!0,n=o,r=a;break}if(l===r){s=!0,r=o,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=o;break}if(l===r){s=!0,r=a,n=o;break}l=l.sibling}if(!s)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e))?qe(e):null}function qe(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=qe(e);if(null!==t)return t;e=e.sibling}return null}var Ye=o.unstable_scheduleCallback,Xe=o.unstable_cancelCallback,Ge=o.unstable_shouldYield,Ke=o.unstable_requestPaint,Qe=o.unstable_now,Ze=o.unstable_getCurrentPriorityLevel,Je=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,it=null,at=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2,ut=64,ct=4194304;function dt(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 ft(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=dt(s):0!=(i&=a)&&(r=dt(i))}else 0!=(a=n&~o)?r=dt(a):0!==i&&(r=dt(i));if(0===r)return 0;if(0!==t&&t!==r&&!(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&4194240&i))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-at(t)),r|=e[n],t&=~o;return r}function pt(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 ht(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ut;return!(4194240&(ut<<=1))&&(ut=64),e}function vt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function gt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function bt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var yt=0;function xt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var wt,kt,St,Et,Ct,_t=!1,Ot=[],Pt=null,Rt=null,Tt=null,At=new Map,It=new Map,jt=[],Mt="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 zt(e,t){switch(e){case"focusin":case"focusout":Pt=null;break;case"dragenter":case"dragleave":Rt=null;break;case"mouseover":case"mouseout":Tt=null;break;case"pointerover":case"pointerout":At.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":It.delete(t.pointerId)}}function Ft(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=xo(t))&&kt(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Lt(e){var t=yo(e.target);if(null!==t){var n=$e(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=We(n)))return e.blockedOn=t,void Ct(e.priority,(function(){St(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 Dt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Gt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=xo(n))&&kt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);xe=r,n.target.dispatchEvent(r),xe=null,t.shift()}return!0}function Nt(e,t,n){Dt(e)&&n.delete(t)}function Bt(){_t=!1,null!==Pt&&Dt(Pt)&&(Pt=null),null!==Rt&&Dt(Rt)&&(Rt=null),null!==Tt&&Dt(Tt)&&(Tt=null),At.forEach(Nt),It.forEach(Nt)}function Vt(e,t){e.blockedOn===t&&(e.blockedOn=null,_t||(_t=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Bt)))}function $t(e){function t(t){return Vt(t,e)}if(0<Ot.length){Vt(Ot[0],e);for(var n=1;n<Ot.length;n++){var r=Ot[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Pt&&Vt(Pt,e),null!==Rt&&Vt(Rt,e),null!==Tt&&Vt(Tt,e),At.forEach(t),It.forEach(t),n=0;n<jt.length;n++)(r=jt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<jt.length&&null===(n=jt[0]).blockedOn;)Lt(n),null===n.blockedOn&&jt.shift()}var Wt=x.ReactCurrentBatchConfig,Ut=!0;function Ht(e,t,n,r){var o=yt,i=Wt.transition;Wt.transition=null;try{yt=1,Yt(e,t,n,r)}finally{yt=o,Wt.transition=i}}function qt(e,t,n,r){var o=yt,i=Wt.transition;Wt.transition=null;try{yt=4,Yt(e,t,n,r)}finally{yt=o,Wt.transition=i}}function Yt(e,t,n,r){if(Ut){var o=Gt(e,t,n,r);if(null===o)Ur(e,t,r,Xt,n),zt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Pt=Ft(Pt,e,t,n,r,o),!0;case"dragenter":return Rt=Ft(Rt,e,t,n,r,o),!0;case"mouseover":return Tt=Ft(Tt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return At.set(i,Ft(At.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,It.set(i,Ft(It.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(zt(e,r),4&t&&-1<Mt.indexOf(e)){for(;null!==o;){var i=xo(o);if(null!==i&&wt(i),null===(i=Gt(e,t,n,r))&&Ur(e,t,r,Xt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Ur(e,t,r,null,n)}}var Xt=null;function Gt(e,t,n,r){if(Xt=null,null!==(e=yo(e=we(r))))if(null===(t=$e(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=We(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 Xt=e,null}function Kt(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(Ze()){case Je:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Qt=null,Zt=null,Jt=null;function en(){if(Jt)return Jt;var e,t,n=Zt,r=n.length,o="value"in Qt?Qt.value:Qt.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 Jt=o.slice(e,1<t?1-t:void 0)}function tn(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 nn(){return!0}function rn(){return!1}function on(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)?nn:rn,this.isPropagationStopped=rn,this}return L(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=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,sn,ln,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=on(un),dn=L({},un,{view:0,detail:0}),fn=on(dn),pn=L({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,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!==ln&&(ln&&"mousemove"===e.type?(an=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=an=0,ln=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),hn=on(pn),mn=on(L({},pn,{dataTransfer:0})),vn=on(L({},dn,{relatedTarget:0})),gn=on(L({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),bn=L({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yn=on(bn),xn=on(L({},un,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kn={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"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function En(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function Cn(){return En}var _n=L({},dn,{key:function(e){if(e.key){var t=wn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?kn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),On=on(_n),Pn=on(L({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Rn=on(L({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),Tn=on(L({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),An=L({},pn,{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}),In=on(An),jn=[9,13,27,32],Mn=c&&"CompositionEvent"in window,zn=null;c&&"documentMode"in document&&(zn=document.documentMode);var Fn=c&&"TextEvent"in window&&!zn,Ln=c&&(!Mn||zn&&8<zn&&11>=zn),Dn=String.fromCharCode(32),Nn=!1;function Bn(e,t){switch(e){case"keyup":return-1!==jn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var $n=!1,Wn={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 Un(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function Hn(e,t,n,r){_e(r),0<(t=qr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var qn=null,Yn=null;function Xn(e){Dr(e,0)}function Gn(e){if(Y(wo(e)))return e}function Kn(e,t){if("change"===e)return t}var Qn=!1;if(c){var Zn;if(c){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"==typeof er.oninput}Zn=Jn}else Zn=!1;Qn=Zn&&(!document.documentMode||9<document.documentMode)}function tr(){qn&&(qn.detachEvent("onpropertychange",nr),Yn=qn=null)}function nr(e){if("value"===e.propertyName&&Gn(Yn)){var t=[];Hn(t,Yn,e,we(e)),Ae(Xn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Yn=n,(qn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Gn(Yn)}function ir(e,t){if("click"===e)return Gn(t)}function ar(e,t){if("input"===e||"change"===e)return Gn(t)}var sr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function lr(e,t){if(sr(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(!d.call(t,o)||!sr(e[o],t[o]))return!1}return!0}function ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=ur(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=ur(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=X();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=X((e=t.contentWindow).document)}return t}function pr(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 hr(e){var t=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(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=cr(n,i);var a=cr(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 mr=c&&"documentMode"in document&&11>=document.documentMode,vr=null,gr=null,br=null,yr=!1;function xr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;yr||null==vr||vr!==X(r)||(r="selectionStart"in(r=vr)&&pr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},br&&lr(br,r)||(br=r,0<(r=qr(gr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=vr)))}function wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var kr={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},Sr={},Er={};function Cr(e){if(Sr[e])return Sr[e];if(!kr[e])return e;var t,n=kr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Er)return Sr[e]=n[t];return e}c&&(Er=document.createElement("div").style,"AnimationEvent"in window||(delete kr.animationend.animation,delete kr.animationiteration.animation,delete kr.animationstart.animation),"TransitionEvent"in window||delete kr.transitionend.transition);var _r=Cr("animationend"),Or=Cr("animationiteration"),Pr=Cr("animationstart"),Rr=Cr("transitionend"),Tr=new Map,Ar="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 Ir(e,t){Tr.set(e,t),l(t,[e])}for(var jr=0;jr<Ar.length;jr++){var Mr=Ar[jr];Ir(Mr.toLowerCase(),"on"+(Mr[0].toUpperCase()+Mr.slice(1)))}Ir(_r,"onAnimationEnd"),Ir(Or,"onAnimationIteration"),Ir(Pr,"onAnimationStart"),Ir("dblclick","onDoubleClick"),Ir("focusin","onFocus"),Ir("focusout","onBlur"),Ir(Rr,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var zr="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(" "),Fr=new Set("cancel close invalid load scroll toggle".split(" ").concat(zr));function Lr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,s,l,u){if(Ve.apply(this,arguments),Fe){if(!Fe)throw Error(i(198));var c=Le;Fe=!1,Le=null,De||(De=!0,Ne=c)}}(r,t,void 0,e),e.currentTarget=null}function Dr(e,t){t=!!(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,u=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;Lr(o,s,u),i=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,u=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;Lr(o,s,u),i=l}}}if(De)throw e=Ne,De=!1,Ne=null,e}function Nr(e,t){var n=t[vo];void 0===n&&(n=t[vo]=new Set);var r=e+"__bubble";n.has(r)||(Wr(t,e,2,!1),n.add(r))}function Br(e,t,n){var r=0;t&&(r|=4),Wr(n,e,r,t)}var Vr="_reactListening"+Math.random().toString(36).slice(2);function $r(e){if(!e[Vr]){e[Vr]=!0,a.forEach((function(t){"selectionchange"!==t&&(Fr.has(t)||Br(t,!1,e),Br(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Vr]||(t[Vr]=!0,Br("selectionchange",!1,t))}}function Wr(e,t,n,r){switch(Kt(t)){case 1:var o=Ht;break;case 4:o=qt;break;default:o=Yt}n=o.bind(null,t,n,e),o=void 0,!je||"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 Ur(e,t,n,r,o){var i=r;if(!(1&t||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=yo(s)))return;if(5===(l=a.tag)||6===l){r=i=a;continue e}s=s.parentNode}}r=r.return}Ae((function(){var r=i,o=we(n),a=[];e:{var s=Tr.get(e);if(void 0!==s){var l=cn,u=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=On;break;case"focusin":u="focus",l=vn;break;case"focusout":u="blur",l=vn;break;case"beforeblur":case"afterblur":l=vn;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=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Rn;break;case _r:case Or:case Pr:l=gn;break;case Rr:l=Tn;break;case"scroll":l=fn;break;case"wheel":l=In;break;case"copy":case"cut":case"paste":l=yn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Pn}var c=!!(4&t),d=!c&&"scroll"===e,f=c?null!==s?s+"Capture":null:s;c=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==f&&null!=(m=Ie(h,f))&&c.push(Hr(h,m,p))),d)break;h=h.return}0<c.length&&(s=new l(s,u,null,n,o),a.push({event:s,listeners:c}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===xe||!(u=n.relatedTarget||n.fromElement)||!yo(u)&&!u[mo])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?yo(u):null)&&(u!==(d=$e(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=hn,m="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Pn,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==l?s:wo(l),p=null==u?s:wo(u),(s=new c(m,h+"leave",l,n,o)).target=d,s.relatedTarget=p,m=null,yo(o)===r&&((c=new c(f,h+"enter",u,n,o)).target=p,c.relatedTarget=d,m=c),d=m,l&&u)e:{for(f=u,h=0,p=c=l;p;p=Yr(p))h++;for(p=0,m=f;m;m=Yr(m))p++;for(;0<h-p;)c=Yr(c),h--;for(;0<p-h;)f=Yr(f),p--;for(;h--;){if(c===f||null!==f&&c===f.alternate)break e;c=Yr(c),f=Yr(f)}c=null}else c=null;null!==l&&Xr(a,s,l,c,!1),null!==u&&null!==d&&Xr(a,d,u,c,!0)}if("select"===(l=(s=r?wo(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var v=Kn;else if(Un(s))if(Qn)v=ar;else{v=or;var g=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(v=ir);switch(v&&(v=v(e,r))?Hn(a,v,n,o):(g&&g(e,s,r),"focusout"===e&&(g=s._wrapperState)&&g.controlled&&"number"===s.type&&ee(s,"number",s.value)),g=r?wo(r):window,e){case"focusin":(Un(g)||"true"===g.contentEditable)&&(vr=g,gr=r,br=null);break;case"focusout":br=gr=vr=null;break;case"mousedown":yr=!0;break;case"contextmenu":case"mouseup":case"dragend":yr=!1,xr(a,n,o);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":xr(a,n,o)}var b;if(Mn)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else $n?Bn(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(Ln&&"ko"!==n.locale&&($n||"onCompositionStart"!==y?"onCompositionEnd"===y&&$n&&(b=en()):(Zt="value"in(Qt=o)?Qt.value:Qt.textContent,$n=!0)),0<(g=qr(r,y)).length&&(y=new xn(y,e,null,n,o),a.push({event:y,listeners:g}),(b||null!==(b=Vn(n)))&&(y.data=b))),(b=Fn?function(e,t){switch(e){case"compositionend":return Vn(t);case"keypress":return 32!==t.which?null:(Nn=!0,Dn);case"textInput":return(e=t.data)===Dn&&Nn?null:e;default:return null}}(e,n):function(e,t){if($n)return"compositionend"===e||!Mn&&Bn(e,t)?(e=en(),Jt=Zt=Qt=null,$n=!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 Ln&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=qr(r,"onBeforeInput")).length&&(o=new xn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=b)}Dr(a,t)}))}function Hr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qr(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=Ie(e,n))&&r.unshift(Hr(e,i,o)),null!=(i=Ie(e,t))&&r.push(Hr(e,i,o))),e=e.return}return r}function Yr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Xr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,o?null!=(l=Ie(n,i))&&a.unshift(Hr(n,l,s)):o||null!=(l=Ie(n,i))&&a.push(Hr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Gr=/\r\n?/g,Kr=/\u0000|\uFFFD/g;function Qr(e){return("string"==typeof e?e:""+e).replace(Gr,"\n").replace(Kr,"")}function Zr(e,t,n){if(t=Qr(t),Qr(e)!==t&&n)throw Error(i(425))}function Jr(){}var eo=null,to=null;function no(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 ro="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,io="function"==typeof Promise?Promise:void 0,ao="function"==typeof queueMicrotask?queueMicrotask:void 0!==io?function(e){return io.resolve(null).then(e).catch(so)}:ro;function so(e){setTimeout((function(){throw e}))}function lo(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 $t(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);$t(t)}function uo(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 co(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 fo=Math.random().toString(36).slice(2),po="__reactFiber$"+fo,ho="__reactProps$"+fo,mo="__reactContainer$"+fo,vo="__reactEvents$"+fo,go="__reactListeners$"+fo,bo="__reactHandles$"+fo;function yo(e){var t=e[po];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mo]||n[po]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=co(e);null!==e;){if(n=e[po])return n;e=co(e)}return t}n=(e=n).parentNode}return null}function xo(e){return!(e=e[po]||e[mo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function wo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function ko(e){return e[ho]||null}var So=[],Eo=-1;function Co(e){return{current:e}}function _o(e){0>Eo||(e.current=So[Eo],So[Eo]=null,Eo--)}function Oo(e,t){Eo++,So[Eo]=e.current,e.current=t}var Po={},Ro=Co(Po),To=Co(!1),Ao=Po;function Io(e,t){var n=e.type.contextTypes;if(!n)return Po;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 jo(e){return null!=e.childContextTypes}function Mo(){_o(To),_o(Ro)}function zo(e,t,n){if(Ro.current!==Po)throw Error(i(168));Oo(Ro,t),Oo(To,n)}function Fo(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(i(108,W(e)||"Unknown",o));return L({},n,r)}function Lo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Po,Ao=Ro.current,Oo(Ro,e),Oo(To,To.current),!0}function Do(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=Fo(e,t,Ao),r.__reactInternalMemoizedMergedChildContext=e,_o(To),_o(Ro),Oo(Ro,e)):_o(To),Oo(To,n)}var No=null,Bo=!1,Vo=!1;function $o(e){null===No?No=[e]:No.push(e)}function Wo(){if(!Vo&&null!==No){Vo=!0;var e=0,t=yt;try{var n=No;for(yt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}No=null,Bo=!1}catch(t){throw null!==No&&(No=No.slice(e+1)),Ye(Je,Wo),t}finally{yt=t,Vo=!1}}return null}var Uo=[],Ho=0,qo=null,Yo=0,Xo=[],Go=0,Ko=null,Qo=1,Zo="";function Jo(e,t){Uo[Ho++]=Yo,Uo[Ho++]=qo,qo=e,Yo=t}function ei(e,t,n){Xo[Go++]=Qo,Xo[Go++]=Zo,Xo[Go++]=Ko,Ko=e;var r=Qo;e=Zo;var o=32-at(r)-1;r&=~(1<<o),n+=1;var i=32-at(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Qo=1<<32-at(t)+o|n<<o|r,Zo=i+e}else Qo=1<<i|n<<o|r,Zo=e}function ti(e){null!==e.return&&(Jo(e,1),ei(e,1,0))}function ni(e){for(;e===qo;)qo=Uo[--Ho],Uo[Ho]=null,Yo=Uo[--Ho],Uo[Ho]=null;for(;e===Ko;)Ko=Xo[--Go],Xo[Go]=null,Zo=Xo[--Go],Xo[Go]=null,Qo=Xo[--Go],Xo[Go]=null}var ri=null,oi=null,ii=!1,ai=null;function si(e,t){var n=Au(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 li(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,ri=e,oi=uo(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ri=e,oi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Ko?{id:Qo,overflow:Zo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Au(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ri=e,oi=null,!0);default:return!1}}function ui(e){return!(!(1&e.mode)||128&e.flags)}function ci(e){if(ii){var t=oi;if(t){var n=t;if(!li(e,t)){if(ui(e))throw Error(i(418));t=uo(n.nextSibling);var r=ri;t&&li(e,t)?si(r,n):(e.flags=-4097&e.flags|2,ii=!1,ri=e)}}else{if(ui(e))throw Error(i(418));e.flags=-4097&e.flags|2,ii=!1,ri=e}}}function di(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ri=e}function fi(e){if(e!==ri)return!1;if(!ii)return di(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oi)){if(ui(e))throw pi(),Error(i(418));for(;t;)si(e,t),t=uo(t.nextSibling)}if(di(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){oi=uo(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oi=null}}else oi=ri?uo(e.stateNode.nextSibling):null;return!0}function pi(){for(var e=oi;e;)e=uo(e.nextSibling)}function hi(){oi=ri=null,ii=!1}function mi(e){null===ai?ai=[e]:ai.push(e)}var vi=x.ReactCurrentBatchConfig;function gi(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(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var o=r,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function bi(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function yi(e){return(0,e._init)(e._payload)}function xi(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=ju(e,t)).index=0,e.sibling=null,e}function a(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 s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Lu(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function u(e,t,n,r){var i=n.type;return i===S?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===I&&yi(i)===t.type)?((r=o(t,n.props)).ref=gi(e,t,n),r.return=e,r):((r=Mu(n.type,n.key,n.props,null,e.mode,r)).ref=gi(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=Du(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,i){return null===t||7!==t.tag?((t=zu(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Lu(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case w:return(n=Mu(t.type,t.key,t.props,null,e.mode,n)).ref=gi(e,null,t),n.return=e,n;case k:return(t=Du(t,e.mode,n)).return=e,t;case I:return f(e,(0,t._init)(t._payload),n)}if(te(t)||z(t))return(t=zu(t,e.mode,n,null)).return=e,t;bi(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case w:return n.key===o?u(e,t,n,r):null;case k:return n.key===o?c(e,t,n,r):null;case I:return p(e,t,(o=n._init)(n._payload),r)}if(te(n)||z(n))return null!==o?null:d(e,t,n,r,null);bi(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case w:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case k:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case I:return h(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||z(r))return d(t,e=e.get(n)||null,r,o,null);bi(t,r)}return null}function m(o,i,s,l){for(var u=null,c=null,d=i,m=i=0,v=null;null!==d&&m<s.length;m++){d.index>m?(v=d,d=null):v=d.sibling;var g=p(o,d,s[m],l);if(null===g){null===d&&(d=v);break}e&&d&&null===g.alternate&&t(o,d),i=a(g,i,m),null===c?u=g:c.sibling=g,c=g,d=v}if(m===s.length)return n(o,d),ii&&Jo(o,m),u;if(null===d){for(;m<s.length;m++)null!==(d=f(o,s[m],l))&&(i=a(d,i,m),null===c?u=d:c.sibling=d,c=d);return ii&&Jo(o,m),u}for(d=r(o,d);m<s.length;m++)null!==(v=h(d,o,m,s[m],l))&&(e&&null!==v.alternate&&d.delete(null===v.key?m:v.key),i=a(v,i,m),null===c?u=v:c.sibling=v,c=v);return e&&d.forEach((function(e){return t(o,e)})),ii&&Jo(o,m),u}function v(o,s,l,u){var c=z(l);if("function"!=typeof c)throw Error(i(150));if(null==(l=c.call(l)))throw Error(i(151));for(var d=c=null,m=s,v=s=0,g=null,b=l.next();null!==m&&!b.done;v++,b=l.next()){m.index>v?(g=m,m=null):g=m.sibling;var y=p(o,m,b.value,u);if(null===y){null===m&&(m=g);break}e&&m&&null===y.alternate&&t(o,m),s=a(y,s,v),null===d?c=y:d.sibling=y,d=y,m=g}if(b.done)return n(o,m),ii&&Jo(o,v),c;if(null===m){for(;!b.done;v++,b=l.next())null!==(b=f(o,b.value,u))&&(s=a(b,s,v),null===d?c=b:d.sibling=b,d=b);return ii&&Jo(o,v),c}for(m=r(o,m);!b.done;v++,b=l.next())null!==(b=h(m,o,v,b.value,u))&&(e&&null!==b.alternate&&m.delete(null===b.key?v:b.key),s=a(b,s,v),null===d?c=b:d.sibling=b,d=b);return e&&m.forEach((function(e){return t(o,e)})),ii&&Jo(o,v),c}return function e(r,i,a,l){if("object"==typeof a&&null!==a&&a.type===S&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case w:e:{for(var u=a.key,c=i;null!==c;){if(c.key===u){if((u=a.type)===S){if(7===c.tag){n(r,c.sibling),(i=o(c,a.props.children)).return=r,r=i;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===I&&yi(u)===c.type){n(r,c.sibling),(i=o(c,a.props)).ref=gi(r,c,a),i.return=r,r=i;break e}n(r,c);break}t(r,c),c=c.sibling}a.type===S?((i=zu(a.props.children,r.mode,l,a.key)).return=r,r=i):((l=Mu(a.type,a.key,a.props,null,r.mode,l)).ref=gi(r,i,a),l.return=r,r=l)}return s(r);case k:e:{for(c=a.key;null!==i;){if(i.key===c){if(4===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){n(r,i.sibling),(i=o(i,a.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=Du(a,r.mode,l)).return=r,r=i}return s(r);case I:return e(r,i,(c=a._init)(a._payload),l)}if(te(a))return m(r,i,a,l);if(z(a))return v(r,i,a,l);bi(r,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,a)).return=r,r=i):(n(r,i),(i=Lu(a,r.mode,l)).return=r,r=i),s(r)):n(r,i)}}var wi=xi(!0),ki=xi(!1),Si=Co(null),Ei=null,Ci=null,_i=null;function Oi(){_i=Ci=Ei=null}function Pi(e){var t=Si.current;_o(Si),e._currentValue=t}function Ri(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 Ti(e,t){Ei=e,_i=Ci=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(ys=!0),e.firstContext=null)}function Ai(e){var t=e._currentValue;if(_i!==e)if(e={context:e,memoizedValue:t,next:null},null===Ci){if(null===Ei)throw Error(i(308));Ci=e,Ei.dependencies={lanes:0,firstContext:e}}else Ci=Ci.next=e;return t}var Ii=null;function ji(e){null===Ii?Ii=[e]:Ii.push(e)}function Mi(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,ji(t)):(n.next=o.next,o.next=n),t.interleaved=n,zi(e,r)}function zi(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 Fi=!1;function Li(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Di(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 Ni(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Bi(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Pl){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,zi(e,n)}return null===(o=r.interleaved)?(t.next=t,ji(r)):(t.next=o.next,o.next=t),r.interleaved=t,zi(e,n)}function Vi(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}function $i(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 Wi(e,t,n,r){var o=e.updateQueue;Fi=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,u=l.next;l.next=null,null===a?i=u:a.next=u,a=l;var c=e.alternate;null!==c&&(s=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l)}if(null!==i){var d=o.baseState;for(a=0,c=u=l=null,s=i;;){var f=s.lane,p=s.eventTime;if((r&f)===f){null!==c&&(c=c.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,m=s;switch(f=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(f="function"==typeof(h=m.payload)?h.call(p,d,f):h))break e;d=L({},d,f);break e;case 2:Fi=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=p,l=d):c=c.next=p,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===c&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Fl|=a,e.lanes=a,e.memoizedState=d}}function Ui(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(i(191,o));o.call(r)}}}var Hi={},qi=Co(Hi),Yi=Co(Hi),Xi=Co(Hi);function Gi(e){if(e===Hi)throw Error(i(174));return e}function Ki(e,t){switch(Oo(Xi,t),Oo(Yi,e),Oo(qi,Hi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}_o(qi),Oo(qi,t)}function Qi(){_o(qi),_o(Yi),_o(Xi)}function Zi(e){Gi(Xi.current);var t=Gi(qi.current),n=le(t,e.type);t!==n&&(Oo(Yi,e),Oo(qi,n))}function Ji(e){Yi.current===e&&(_o(qi),_o(Yi))}var ea=Co(0);function ta(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(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 na=[];function ra(){for(var e=0;e<na.length;e++)na[e]._workInProgressVersionPrimary=null;na.length=0}var oa=x.ReactCurrentDispatcher,ia=x.ReactCurrentBatchConfig,aa=0,sa=null,la=null,ua=null,ca=!1,da=!1,fa=0,pa=0;function ha(){throw Error(i(321))}function ma(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function va(e,t,n,r,o,a){if(aa=a,sa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,oa.current=null===e||null===e.memoizedState?Ja:es,e=n(r,o),da){a=0;do{if(da=!1,fa=0,25<=a)throw Error(i(301));a+=1,ua=la=null,t.updateQueue=null,oa.current=ts,e=n(r,o)}while(da)}if(oa.current=Za,t=null!==la&&null!==la.next,aa=0,ua=la=sa=null,ca=!1,t)throw Error(i(300));return e}function ga(){var e=0!==fa;return fa=0,e}function ba(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ua?sa.memoizedState=ua=e:ua=ua.next=e,ua}function ya(){if(null===la){var e=sa.alternate;e=null!==e?e.memoizedState:null}else e=la.next;var t=null===ua?sa.memoizedState:ua.next;if(null!==t)ua=t,la=e;else{if(null===e)throw Error(i(310));e={memoizedState:(la=e).memoizedState,baseState:la.baseState,baseQueue:la.baseQueue,queue:la.queue,next:null},null===ua?sa.memoizedState=ua=e:ua=ua.next=e}return ua}function xa(e,t){return"function"==typeof t?t(e):t}function wa(e){var t=ya(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=la,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var s=o.next;o.next=a.next,a.next=s}r.baseQueue=o=a,n.pending=null}if(null!==o){a=o.next,r=r.baseState;var l=s=null,u=null,c=a;do{var d=c.lane;if((aa&d)===d)null!==u&&(u=u.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 f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=f,s=r):u=u.next=f,sa.lanes|=d,Fl|=d}c=c.next}while(null!==c&&c!==a);null===u?s=r:u.next=l,sr(r,t.memoizedState)||(ys=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=u,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{a=o.lane,sa.lanes|=a,Fl|=a,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function ka(e){var t=ya(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{a=e(a,s.action),s=s.next}while(s!==o);sr(a,t.memoizedState)||(ys=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Sa(){}function Ea(e,t){var n=sa,r=ya(),o=t(),a=!sr(r.memoizedState,o);if(a&&(r.memoizedState=o,ys=!0),r=r.queue,Fa(Oa.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==ua&&1&ua.memoizedState.tag){if(n.flags|=2048,Aa(9,_a.bind(null,n,r,o,t),void 0,null),null===Rl)throw Error(i(349));30&aa||Ca(n,t,o)}return o}function Ca(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function _a(e,t,n,r){t.value=n,t.getSnapshot=r,Pa(t)&&Ra(e)}function Oa(e,t,n){return n((function(){Pa(t)&&Ra(e)}))}function Pa(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(e){return!0}}function Ra(e){var t=zi(e,1);null!==t&&nu(t,e,1,-1)}function Ta(e){var t=ba();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:xa,lastRenderedState:e},t.queue=e,e=e.dispatch=Xa.bind(null,sa,e),[t.memoizedState,e]}function Aa(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.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 Ia(){return ya().memoizedState}function ja(e,t,n,r){var o=ba();sa.flags|=e,o.memoizedState=Aa(1|t,n,void 0,void 0===r?null:r)}function Ma(e,t,n,r){var o=ya();r=void 0===r?null:r;var i=void 0;if(null!==la){var a=la.memoizedState;if(i=a.destroy,null!==r&&ma(r,a.deps))return void(o.memoizedState=Aa(t,n,i,r))}sa.flags|=e,o.memoizedState=Aa(1|t,n,i,r)}function za(e,t){return ja(8390656,8,e,t)}function Fa(e,t){return Ma(2048,8,e,t)}function La(e,t){return Ma(4,2,e,t)}function Da(e,t){return Ma(4,4,e,t)}function Na(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 Ba(e,t,n){return n=null!=n?n.concat([e]):null,Ma(4,4,Na.bind(null,t,e),n)}function Va(){}function $a(e,t){var n=ya();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Wa(e,t){var n=ya();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ua(e,t,n){return 21&aa?(sr(n,t)||(n=mt(),sa.lanes|=n,Fl|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ys=!0),e.memoizedState=n)}function Ha(e,t){var n=yt;yt=0!==n&&4>n?n:4,e(!0);var r=ia.transition;ia.transition={};try{e(!1),t()}finally{yt=n,ia.transition=r}}function qa(){return ya().memoizedState}function Ya(e,t,n){var r=tu(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ga(e)?Ka(t,n):null!==(n=Mi(e,t,n,r))&&(nu(n,e,r,eu()),Qa(n,t,r))}function Xa(e,t,n){var r=tu(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ga(e))Ka(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,sr(s,a)){var l=t.interleaved;return null===l?(o.next=o,ji(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Mi(e,t,o,r))&&(nu(n,e,r,o=eu()),Qa(n,t,r))}}function Ga(e){var t=e.alternate;return e===sa||null!==t&&t===sa}function Ka(e,t){da=ca=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Qa(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}var Za={readContext:Ai,useCallback:ha,useContext:ha,useEffect:ha,useImperativeHandle:ha,useInsertionEffect:ha,useLayoutEffect:ha,useMemo:ha,useReducer:ha,useRef:ha,useState:ha,useDebugValue:ha,useDeferredValue:ha,useTransition:ha,useMutableSource:ha,useSyncExternalStore:ha,useId:ha,unstable_isNewReconciler:!1},Ja={readContext:Ai,useCallback:function(e,t){return ba().memoizedState=[e,void 0===t?null:t],e},useContext:Ai,useEffect:za,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ja(4194308,4,Na.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ja(4194308,4,e,t)},useInsertionEffect:function(e,t){return ja(4,2,e,t)},useMemo:function(e,t){var n=ba();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ba();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=Ya.bind(null,sa,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ba().memoizedState=e},useState:Ta,useDebugValue:Va,useDeferredValue:function(e){return ba().memoizedState=e},useTransition:function(){var e=Ta(!1),t=e[0];return e=Ha.bind(null,e[1]),ba().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=sa,o=ba();if(ii){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===Rl)throw Error(i(349));30&aa||Ca(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,za(Oa.bind(null,r,a,e),[e]),r.flags|=2048,Aa(9,_a.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ba(),t=Rl.identifierPrefix;if(ii){var n=Zo;t=":"+t+"R"+(n=(Qo&~(1<<32-at(Qo)-1)).toString(32)+n),0<(n=fa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=pa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},es={readContext:Ai,useCallback:$a,useContext:Ai,useEffect:Fa,useImperativeHandle:Ba,useInsertionEffect:La,useLayoutEffect:Da,useMemo:Wa,useReducer:wa,useRef:Ia,useState:function(){return wa(xa)},useDebugValue:Va,useDeferredValue:function(e){return Ua(ya(),la.memoizedState,e)},useTransition:function(){return[wa(xa)[0],ya().memoizedState]},useMutableSource:Sa,useSyncExternalStore:Ea,useId:qa,unstable_isNewReconciler:!1},ts={readContext:Ai,useCallback:$a,useContext:Ai,useEffect:Fa,useImperativeHandle:Ba,useInsertionEffect:La,useLayoutEffect:Da,useMemo:Wa,useReducer:ka,useRef:Ia,useState:function(){return ka(xa)},useDebugValue:Va,useDeferredValue:function(e){var t=ya();return null===la?t.memoizedState=e:Ua(t,la.memoizedState,e)},useTransition:function(){return[ka(xa)[0],ya().memoizedState]},useMutableSource:Sa,useSyncExternalStore:Ea,useId:qa,unstable_isNewReconciler:!1};function ns(e,t){if(e&&e.defaultProps){for(var n in t=L({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rs(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:L({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var os={isMounted:function(e){return!!(e=e._reactInternals)&&$e(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=eu(),o=tu(e),i=Ni(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=Bi(e,i,o))&&(nu(t,e,o,r),Vi(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=eu(),o=tu(e),i=Ni(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Bi(e,i,o))&&(nu(t,e,o,r),Vi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=eu(),r=tu(e),o=Ni(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Bi(e,o,r))&&(nu(t,e,r,n),Vi(t,e,r))}};function is(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!(t.prototype&&t.prototype.isPureReactComponent&&lr(n,r)&&lr(o,i))}function as(e,t,n){var r=!1,o=Po,i=t.contextType;return"object"==typeof i&&null!==i?i=Ai(i):(o=jo(t)?Ao:Ro.current,i=(r=null!=(r=t.contextTypes))?Io(e,o):Po),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=os,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function ss(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&&os.enqueueReplaceState(t,t.state,null)}function ls(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Li(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Ai(i):(i=jo(t)?Ao:Ro.current,o.context=Io(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(rs(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&&os.enqueueReplaceState(o,o.state,null),Wi(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function us(e,t){try{var n="",r=t;do{n+=V(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function cs(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ds(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var fs="function"==typeof WeakMap?WeakMap:Map;function ps(e,t,n){(n=Ni(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ul||(Ul=!0,Hl=r),ds(0,t)},n}function hs(e,t,n){(n=Ni(-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(){ds(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){ds(0,t),"function"!=typeof r&&(null===ql?ql=new Set([this]):ql.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ms(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fs;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=Cu.bind(null,e,t,n),t.then(e,e))}function vs(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 gs(e,t,n,r,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Ni(-1,1)).tag=2,Bi(n,t,1))),n.lanes|=1),e)}var bs=x.ReactCurrentOwner,ys=!1;function xs(e,t,n,r){t.child=null===e?ki(t,null,n,r):wi(t,e.child,n,r)}function ws(e,t,n,r,o){n=n.render;var i=t.ref;return Ti(t,o),r=va(e,t,n,r,i,o),n=ga(),null===e||ys?(ii&&n&&ti(t),t.flags|=1,xs(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Us(e,t,o))}function ks(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Iu(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Mu(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Ss(e,t,i,r,o))}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(a,r)&&e.ref===t.ref)return Us(e,t,o)}return t.flags|=1,(e=ju(i,r)).ref=t.ref,e.return=t,t.child=e}function Ss(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(lr(i,r)&&e.ref===t.ref){if(ys=!1,t.pendingProps=r=i,!(e.lanes&o))return t.lanes=e.lanes,Us(e,t,o);131072&e.flags&&(ys=!0)}}return _s(e,t,n,r,o)}function Es(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(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,Oo(jl,Il),Il|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Oo(jl,Il),Il|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Oo(jl,Il),Il|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Oo(jl,Il),Il|=r;return xs(e,t,o,n),t.child}function Cs(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function _s(e,t,n,r,o){var i=jo(n)?Ao:Ro.current;return i=Io(t,i),Ti(t,o),n=va(e,t,n,r,i,o),r=ga(),null===e||ys?(ii&&r&&ti(t),t.flags|=1,xs(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Us(e,t,o))}function Os(e,t,n,r,o){if(jo(n)){var i=!0;Lo(t)}else i=!1;if(Ti(t,o),null===t.stateNode)Ws(e,t),as(t,n,r),ls(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;u="object"==typeof u&&null!==u?Ai(u):Io(t,u=jo(n)?Ao:Ro.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&ss(t,a,r,u),Fi=!1;var f=t.memoizedState;a.state=f,Wi(t,r,a,o),l=t.memoizedState,s!==r||f!==l||To.current||Fi?("function"==typeof c&&(rs(t,n,c,r),l=t.memoizedState),(s=Fi||is(t,n,s,r,f,l,u))?(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=u,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Di(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:ns(t.type,s),a.props=u,d=t.pendingProps,f=a.context,l="object"==typeof(l=n.contextType)&&null!==l?Ai(l):Io(t,l=jo(n)?Ao:Ro.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||f!==l)&&ss(t,a,r,l),Fi=!1,f=t.memoizedState,a.state=f,Wi(t,r,a,o);var h=t.memoizedState;s!==d||f!==h||To.current||Fi?("function"==typeof p&&(rs(t,n,p,r),h=t.memoizedState),(u=Fi||is(t,n,u,r,f,h,l)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,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=h),a.props=r,a.state=h,a.context=l,r=u):("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 Ps(e,t,n,r,i,o)}function Ps(e,t,n,r,o,i){Cs(e,t);var a=!!(128&t.flags);if(!r&&!a)return o&&Do(t,n,!1),Us(e,t,i);r=t.stateNode,bs.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=wi(t,e.child,null,i),t.child=wi(t,null,s,i)):xs(e,t,s,i),t.memoizedState=r.state,o&&Do(t,n,!0),t.child}function Rs(e){var t=e.stateNode;t.pendingContext?zo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&zo(0,t.context,!1),Ki(e,t.containerInfo)}function Ts(e,t,n,r,o){return hi(),mi(o),t.flags|=256,xs(e,t,n,r),t.child}var As,Is,js,Ms,zs={dehydrated:null,treeContext:null,retryLane:0};function Fs(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ls(e,t,n){var r,o=t.pendingProps,a=ea.current,s=!1,l=!!(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&!!(2&a)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Oo(ea,1&a),null===e)return ci(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=o.children,e=o.fallback,s?(o=t.mode,s=t.child,l={mode:"hidden",children:l},1&o||null===s?s=Fu(l,o,0,null):(s.childLanes=0,s.pendingProps=l),e=zu(e,o,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Fs(n),t.memoizedState=zs,e):Ds(t,l));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,o,a,s){if(n)return 256&t.flags?(t.flags&=-257,Ns(e,t,s,r=cs(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=Fu({mode:"visible",children:r.children},o,0,null),(a=zu(a,o,s,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,1&t.mode&&wi(t,e.child,null,s),t.child.memoizedState=Fs(s),t.memoizedState=zs,a);if(!(1&t.mode))return Ns(e,t,s,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,Ns(e,t,s,r=cs(a=Error(i(419)),r,void 0))}if(l=!!(s&e.childLanes),ys||l){if(null!==(r=Rl)){switch(s&-s){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=o&(r.suspendedLanes|s)?0:o)&&o!==a.retryLane&&(a.retryLane=o,zi(e,o),nu(r,e,o,-1))}return mu(),Ns(e,t,s,r=cs(Error(i(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Ou.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,oi=uo(o.nextSibling),ri=t,ii=!0,ai=null,null!==e&&(Xo[Go++]=Qo,Xo[Go++]=Zo,Xo[Go++]=Ko,Qo=e.id,Zo=e.overflow,Ko=t),(t=Ds(t,r.children)).flags|=4096,t)}(e,t,l,o,r,a,n);if(s){s=o.fallback,l=t.mode,r=(a=e.child).sibling;var u={mode:"hidden",children:o.children};return 1&l||t.child===a?(o=ju(a,u)).subtreeFlags=14680064&a.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=u,t.deletions=null),null!==r?s=ju(r,s):(s=zu(s,l,n,null)).flags|=2,s.return=t,o.return=t,o.sibling=s,t.child=o,o=s,s=t.child,l=null===(l=e.child.memoizedState)?Fs(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=zs,o}return e=(s=e.child).sibling,o=ju(s,{mode:"visible",children:o.children}),!(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 Ds(e,t){return(t=Fu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Ns(e,t,n,r){return null!==r&&mi(r),wi(t,e.child,null,n),(e=Ds(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Bs(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ri(e.return,t,n)}function Vs(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 $s(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(xs(e,t,r.children,n),2&(r=ea.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Bs(e,n,t);else if(19===e.tag)Bs(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(Oo(ea,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ta(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Vs(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===ta(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Vs(t,!0,n,null,i);break;case"together":Vs(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Ws(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Us(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Fl|=t.lanes,!(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=ju(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=ju(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Hs(e,t){if(!ii)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 qs(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 Ys(e,t,n){var r=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qs(t),null;case 1:case 17:return jo(t.type)&&Mo(),qs(t),null;case 3:return r=t.stateNode,Qi(),_o(To),_o(Ro),ra(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==ai&&(au(ai),ai=null))),Is(e,t),qs(t),null;case 5:Ji(t);var o=Gi(Xi.current);if(n=t.type,null!==e&&null!=t.stateNode)js(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(i(166));return qs(t),null}if(e=Gi(qi.current),fi(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[po]=t,r[ho]=a,e=!!(1&t.mode),n){case"dialog":Nr("cancel",r),Nr("close",r);break;case"iframe":case"object":case"embed":Nr("load",r);break;case"video":case"audio":for(o=0;o<zr.length;o++)Nr(zr[o],r);break;case"source":Nr("error",r);break;case"img":case"image":case"link":Nr("error",r),Nr("load",r);break;case"details":Nr("toggle",r);break;case"input":K(r,a),Nr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Nr("invalid",r);break;case"textarea":oe(r,a),Nr("invalid",r)}for(var l in be(n,a),o=null,a)if(a.hasOwnProperty(l)){var u=a[l];"children"===l?"string"==typeof u?r.textContent!==u&&(!0!==a.suppressHydrationWarning&&Zr(r.textContent,u,e),o=["children",u]):"number"==typeof u&&r.textContent!==""+u&&(!0!==a.suppressHydrationWarning&&Zr(r.textContent,u,e),o=["children",""+u]):s.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&Nr("scroll",r)}switch(n){case"input":q(r),J(r,a,!0);break;case"textarea":q(r),ae(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=Jr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[po]=t,e[ho]=r,As(e,t,!1,!1),t.stateNode=e;e:{switch(l=ye(n,r),n){case"dialog":Nr("cancel",e),Nr("close",e),o=r;break;case"iframe":case"object":case"embed":Nr("load",e),o=r;break;case"video":case"audio":for(o=0;o<zr.length;o++)Nr(zr[o],e);o=r;break;case"source":Nr("error",e),o=r;break;case"img":case"image":case"link":Nr("error",e),Nr("load",e),o=r;break;case"details":Nr("toggle",e),o=r;break;case"input":K(e,r),o=G(e,r),Nr("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=L({},r,{value:void 0}),Nr("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),Nr("invalid",e)}for(a in be(n,o),u=o)if(u.hasOwnProperty(a)){var c=u[a];"style"===a?ve(e,c):"dangerouslySetInnerHTML"===a?null!=(c=c?c.__html:void 0)&&de(e,c):"children"===a?"string"==typeof c?("textarea"!==n||""!==c)&&fe(e,c):"number"==typeof c&&fe(e,""+c):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=c&&"onScroll"===a&&Nr("scroll",e):null!=c&&y(e,a,c,l))}switch(n){case"input":q(e),J(e,r,!1);break;case"textarea":q(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+U(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Jr)}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 qs(t),null;case 6:if(e&&null!=t.stateNode)Ms(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(i(166));if(n=Gi(Xi.current),Gi(qi.current),fi(t)){if(r=t.stateNode,n=t.memoizedProps,r[po]=t,(a=r.nodeValue!==n)&&null!==(e=ri))switch(e.tag){case 3:Zr(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Zr(r.nodeValue,n,!!(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[po]=t,t.stateNode=r}return qs(t),null;case 13:if(_o(ea),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==oi&&1&t.mode&&!(128&t.flags))pi(),hi(),t.flags|=98560,a=!1;else if(a=fi(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(i(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(i(317));a[po]=t}else hi(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;qs(t),a=!1}else null!==ai&&(au(ai),ai=null),a=!0;if(!a)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!=(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&ea.current?0===Ml&&(Ml=3):mu())),null!==t.updateQueue&&(t.flags|=4),qs(t),null);case 4:return Qi(),Is(e,t),null===e&&$r(t.stateNode.containerInfo),qs(t),null;case 10:return Pi(t.type._context),qs(t),null;case 19:if(_o(ea),null===(a=t.memoizedState))return qs(t),null;if(r=!!(128&t.flags),null===(l=a.rendering))if(r)Hs(a,!1);else{if(0!==Ml||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(l=ta(e))){for(t.flags|=128,Hs(a,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(l=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,e=l.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Oo(ea,1&ea.current|2),t.child}e=e.sibling}null!==a.tail&&Qe()>$l&&(t.flags|=128,r=!0,Hs(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ta(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Hs(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!ii)return qs(t),null}else 2*Qe()-a.renderingStartTime>$l&&1073741824!==n&&(t.flags|=128,r=!0,Hs(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=a.last)?n.sibling=l:t.child=l,a.last=l)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Qe(),t.sibling=null,n=ea.current,Oo(ea,r?1&n|2:1&n),t):(qs(t),null);case 22:case 23:return du(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&Il)&&(qs(t),6&t.subtreeFlags&&(t.flags|=8192)):qs(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function Xs(e,t){switch(ni(t),t.tag){case 1:return jo(t.type)&&Mo(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Qi(),_o(To),_o(Ro),ra(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Ji(t),null;case 13:if(_o(ea),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));hi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return _o(ea),null;case 4:return Qi(),null;case 10:return Pi(t.type._context),null;case 22:case 23:return du(),null;default:return null}}As=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}},Is=function(){},js=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Gi(qi.current);var i,a=null;switch(n){case"input":o=G(e,o),r=G(e,r),a=[];break;case"select":o=L({},o,{value:void 0}),r=L({},r,{value:void 0}),a=[];break;case"textarea":o=re(e,o),r=re(e,r),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Jr)}for(c in be(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var l=o[c];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(s.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var u=r[c];if(l=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(i in l)!l.hasOwnProperty(i)||u&&u.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in u)u.hasOwnProperty(i)&&l[i]!==u[i]&&(n||(n={}),n[i]=u[i])}else n||(a||(a=[]),a.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(a=a||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(a=a||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(s.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Nr("scroll",e),a||l===u||(a=[])):(a=a||[]).push(c,u))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},Ms=function(e,t,n,r){n!==r&&(t.flags|=4)};var Gs=!1,Ks=!1,Qs="function"==typeof WeakSet?WeakSet:Set,Zs=null;function Js(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Eu(e,t,n)}else n.current=null}function el(e,t,n){try{n()}catch(n){Eu(e,t,n)}}var tl=!1;function nl(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&&el(t,n,i)}o=o.next}while(o!==r)}}function rl(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 ol(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 il(e){var t=e.alternate;null!==t&&(e.alternate=null,il(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[po],delete t[ho],delete t[vo],delete t[go],delete t[bo]),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 al(e){return 5===e.tag||3===e.tag||4===e.tag}function sl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||al(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 ll(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=Jr));else if(4!==r&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function ul(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(ul(e,t,n),e=e.sibling;null!==e;)ul(e,t,n),e=e.sibling}var cl=null,dl=!1;function fl(e,t,n){for(n=n.child;null!==n;)pl(e,t,n),n=n.sibling}function pl(e,t,n){if(it&&"function"==typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Ks||Js(n,t);case 6:var r=cl,o=dl;cl=null,fl(e,t,n),dl=o,null!==(cl=r)&&(dl?(e=cl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):cl.removeChild(n.stateNode));break;case 18:null!==cl&&(dl?(e=cl,n=n.stateNode,8===e.nodeType?lo(e.parentNode,n):1===e.nodeType&&lo(e,n),$t(e)):lo(cl,n.stateNode));break;case 4:r=cl,o=dl,cl=n.stateNode.containerInfo,dl=!0,fl(e,t,n),cl=r,dl=o;break;case 0:case 11:case 14:case 15:if(!Ks&&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&&(2&i||4&i)&&el(n,t,a),o=o.next}while(o!==r)}fl(e,t,n);break;case 1:if(!Ks&&(Js(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Eu(n,t,e)}fl(e,t,n);break;case 21:fl(e,t,n);break;case 22:1&n.mode?(Ks=(r=Ks)||null!==n.memoizedState,fl(e,t,n),Ks=r):fl(e,t,n);break;default:fl(e,t,n)}}function hl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Qs),t.forEach((function(t){var r=Pu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ml(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:cl=l.stateNode,dl=!1;break e;case 3:case 4:cl=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===cl)throw Error(i(160));pl(a,s,o),cl=null,dl=!1;var u=o.alternate;null!==u&&(u.return=null),o.return=null}catch(e){Eu(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)vl(t,e),t=t.sibling}function vl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ml(t,e),gl(e),4&r){try{nl(3,e,e.return),rl(3,e)}catch(t){Eu(e,e.return,t)}try{nl(5,e,e.return)}catch(t){Eu(e,e.return,t)}}break;case 1:ml(t,e),gl(e),512&r&&null!==n&&Js(n,n.return);break;case 5:if(ml(t,e),gl(e),512&r&&null!==n&&Js(n,n.return),32&e.flags){var o=e.stateNode;try{fe(o,"")}catch(t){Eu(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var a=e.memoizedProps,s=null!==n?n.memoizedProps:a,l=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===l&&"radio"===a.type&&null!=a.name&&Q(o,a),ye(l,s);var c=ye(l,a);for(s=0;s<u.length;s+=2){var d=u[s],f=u[s+1];"style"===d?ve(o,f):"dangerouslySetInnerHTML"===d?de(o,f):"children"===d?fe(o,f):y(o,d,f,c)}switch(l){case"input":Z(o,a);break;case"textarea":ie(o,a);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?ne(o,!!a.multiple,h,!1):p!==!!a.multiple&&(null!=a.defaultValue?ne(o,!!a.multiple,a.defaultValue,!0):ne(o,!!a.multiple,a.multiple?[]:"",!1))}o[ho]=a}catch(t){Eu(e,e.return,t)}}break;case 6:if(ml(t,e),gl(e),4&r){if(null===e.stateNode)throw Error(i(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(t){Eu(e,e.return,t)}}break;case 3:if(ml(t,e),gl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{$t(t.containerInfo)}catch(t){Eu(e,e.return,t)}break;case 4:default:ml(t,e),gl(e);break;case 13:ml(t,e),gl(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(Vl=Qe())),4&r&&hl(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Ks=(c=Ks)||d,ml(t,e),Ks=c):ml(t,e),gl(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&1&e.mode)for(Zs=e,d=e.child;null!==d;){for(f=Zs=d;null!==Zs;){switch(h=(p=Zs).child,p.tag){case 0:case 11:case 14:case 15:nl(4,p,p.return);break;case 1:Js(p,p.return);var m=p.stateNode;if("function"==typeof m.componentWillUnmount){r=p,n=p.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){Eu(r,n,e)}}break;case 5:Js(p,p.return);break;case 22:if(null!==p.memoizedState){wl(f);continue}}null!==h?(h.return=p,Zs=h):wl(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{o=f.stateNode,c?"function"==typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=f.stateNode,s=null!=(u=f.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,l.style.display=me("display",s))}catch(t){Eu(e,e.return,t)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(t){Eu(e,e.return,t)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:ml(t,e),gl(e),4&r&&hl(e);case 21:}}function gl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(al(n)){var r=n;break e}n=n.return}throw Error(i(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(fe(o,""),r.flags&=-33),ul(e,sl(e),o);break;case 3:case 4:var a=r.stateNode.containerInfo;ll(e,sl(e),a);break;default:throw Error(i(161))}}catch(t){Eu(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bl(e,t,n){Zs=e,yl(e,t,n)}function yl(e,t,n){for(var r=!!(1&e.mode);null!==Zs;){var o=Zs,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||Gs;if(!a){var s=o.alternate,l=null!==s&&null!==s.memoizedState||Ks;s=Gs;var u=Ks;if(Gs=a,(Ks=l)&&!u)for(Zs=o;null!==Zs;)l=(a=Zs).child,22===a.tag&&null!==a.memoizedState?kl(o):null!==l?(l.return=a,Zs=l):kl(o);for(;null!==i;)Zs=i,yl(i,t,n),i=i.sibling;Zs=o,Gs=s,Ks=u}xl(e)}else 8772&o.subtreeFlags&&null!==i?(i.return=o,Zs=i):xl(e)}}function xl(e){for(;null!==Zs;){var t=Zs;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Ks||rl(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Ks)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:ns(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Ui(t,a,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Ui(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.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 d=c.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&$t(f)}}}break;default:throw Error(i(163))}Ks||512&t.flags&&ol(t)}catch(e){Eu(t,t.return,e)}}if(t===e){Zs=null;break}if(null!==(n=t.sibling)){n.return=t.return,Zs=n;break}Zs=t.return}}function wl(e){for(;null!==Zs;){var t=Zs;if(t===e){Zs=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Zs=n;break}Zs=t.return}}function kl(e){for(;null!==Zs;){var t=Zs;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rl(4,t)}catch(e){Eu(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){Eu(t,o,e)}}var i=t.return;try{ol(t)}catch(e){Eu(t,i,e)}break;case 5:var a=t.return;try{ol(t)}catch(e){Eu(t,a,e)}}}catch(e){Eu(t,t.return,e)}if(t===e){Zs=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Zs=s;break}Zs=t.return}}var Sl,El=Math.ceil,Cl=x.ReactCurrentDispatcher,_l=x.ReactCurrentOwner,Ol=x.ReactCurrentBatchConfig,Pl=0,Rl=null,Tl=null,Al=0,Il=0,jl=Co(0),Ml=0,zl=null,Fl=0,Ll=0,Dl=0,Nl=null,Bl=null,Vl=0,$l=1/0,Wl=null,Ul=!1,Hl=null,ql=null,Yl=!1,Xl=null,Gl=0,Kl=0,Ql=null,Zl=-1,Jl=0;function eu(){return 6&Pl?Qe():-1!==Zl?Zl:Zl=Qe()}function tu(e){return 1&e.mode?2&Pl&&0!==Al?Al&-Al:null!==vi.transition?(0===Jl&&(Jl=mt()),Jl):0!==(e=yt)?e:e=void 0===(e=window.event)?16:Kt(e.type):1}function nu(e,t,n,r){if(50<Kl)throw Kl=0,Ql=null,Error(i(185));gt(e,n,r),2&Pl&&e===Rl||(e===Rl&&(!(2&Pl)&&(Ll|=n),4===Ml&&su(e,Al)),ru(e,r),1===n&&0===Pl&&!(1&t.mode)&&($l=Qe()+500,Bo&&Wo()))}function ru(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-at(i),s=1<<a,l=o[a];-1===l?s&n&&!(s&r)||(o[a]=pt(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}(e,t);var r=ft(e,e===Rl?Al:0);if(0===r)null!==n&&Xe(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Xe(n),1===t)0===e.tag?function(e){Bo=!0,$o(e)}(lu.bind(null,e)):$o(lu.bind(null,e)),ao((function(){!(6&Pl)&&Wo()})),n=null;else{switch(xt(r)){case 1:n=Je;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Ru(n,ou.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ou(e,t){if(Zl=-1,Jl=0,6&Pl)throw Error(i(327));var n=e.callbackNode;if(ku()&&e.callbackNode!==n)return null;var r=ft(e,e===Rl?Al:0);if(0===r)return null;if(30&r||r&e.expiredLanes||t)t=vu(e,r);else{t=r;var o=Pl;Pl|=2;var a=hu();for(Rl===e&&Al===t||(Wl=null,$l=Qe()+500,fu(e,t));;)try{bu();break}catch(t){pu(e,t)}Oi(),Cl.current=a,Pl=o,null!==Tl?t=0:(Rl=null,Al=0,t=Ml)}if(0!==t){if(2===t&&0!==(o=ht(e))&&(r=o,t=iu(e,o)),1===t)throw n=zl,fu(e,0),su(e,r),ru(e,Qe()),n;if(6===t)su(e,r);else{if(o=e.current.alternate,!(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(!sr(i(),o))return!1}catch(e){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)||(t=vu(e,r),2===t&&(a=ht(e),0!==a&&(r=a,t=iu(e,a))),1!==t)))throw n=zl,fu(e,0),su(e,r),ru(e,Qe()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(i(345));case 2:case 5:wu(e,Bl,Wl);break;case 3:if(su(e,r),(130023424&r)===r&&10<(t=Vl+500-Qe())){if(0!==ft(e,0))break;if(((o=e.suspendedLanes)&r)!==r){eu(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(wu.bind(null,e,Bl,Wl),t);break}wu(e,Bl,Wl);break;case 4:if(su(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-at(r);a=1<<s,(s=t[s])>o&&(o=s),r&=~a}if(r=o,10<(r=(120>(r=Qe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*El(r/1960))-r)){e.timeoutHandle=ro(wu.bind(null,e,Bl,Wl),r);break}wu(e,Bl,Wl);break;default:throw Error(i(329))}}}return ru(e,Qe()),e.callbackNode===n?ou.bind(null,e):null}function iu(e,t){var n=Nl;return e.current.memoizedState.isDehydrated&&(fu(e,t).flags|=256),2!==(e=vu(e,t))&&(t=Bl,Bl=n,null!==t&&au(t)),e}function au(e){null===Bl?Bl=e:Bl.push.apply(Bl,e)}function su(e,t){for(t&=~Dl,t&=~Ll,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function lu(e){if(6&Pl)throw Error(i(327));ku();var t=ft(e,0);if(!(1&t))return ru(e,Qe()),null;var n=vu(e,t);if(0!==e.tag&&2===n){var r=ht(e);0!==r&&(t=r,n=iu(e,r))}if(1===n)throw n=zl,fu(e,0),su(e,t),ru(e,Qe()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,wu(e,Bl,Wl),ru(e,Qe()),null}function uu(e,t){var n=Pl;Pl|=1;try{return e(t)}finally{0===(Pl=n)&&($l=Qe()+500,Bo&&Wo())}}function cu(e){null!==Xl&&0===Xl.tag&&!(6&Pl)&&ku();var t=Pl;Pl|=1;var n=Ol.transition,r=yt;try{if(Ol.transition=null,yt=1,e)return e()}finally{yt=r,Ol.transition=n,!(6&(Pl=t))&&Wo()}}function du(){Il=jl.current,_o(jl)}function fu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Tl)for(n=Tl.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Mo();break;case 3:Qi(),_o(To),_o(Ro),ra();break;case 5:Ji(r);break;case 4:Qi();break;case 13:case 19:_o(ea);break;case 10:Pi(r.type._context);break;case 22:case 23:du()}n=n.return}if(Rl=e,Tl=e=ju(e.current,null),Al=Il=t,Ml=0,zl=null,Dl=Ll=Fl=0,Bl=Nl=null,null!==Ii){for(t=0;t<Ii.length;t++)if(null!==(r=(n=Ii[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}Ii=null}return e}function pu(e,t){for(;;){var n=Tl;try{if(Oi(),oa.current=Za,ca){for(var r=sa.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ca=!1}if(aa=0,ua=la=sa=null,da=!1,fa=0,_l.current=null,null===n||null===n.return){Ml=1,zl=t,Tl=null;break}e:{var a=e,s=n.return,l=n,u=t;if(t=Al,l.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,d=l,f=d.tag;if(!(1&d.mode||0!==f&&11!==f&&15!==f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=vs(s);if(null!==h){h.flags&=-257,gs(h,s,l,0,t),1&h.mode&&ms(a,c,t),u=c;var m=(t=h).updateQueue;if(null===m){var v=new Set;v.add(u),t.updateQueue=v}else m.add(u);break e}if(!(1&t)){ms(a,c,t),mu();break e}u=Error(i(426))}else if(ii&&1&l.mode){var g=vs(s);if(null!==g){!(65536&g.flags)&&(g.flags|=256),gs(g,s,l,0,t),mi(us(u,l));break e}}a=u=us(u,l),4!==Ml&&(Ml=2),null===Nl?Nl=[a]:Nl.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,$i(a,ps(0,u,t));break e;case 1:l=u;var b=a.type,y=a.stateNode;if(!(128&a.flags||"function"!=typeof b.getDerivedStateFromError&&(null===y||"function"!=typeof y.componentDidCatch||null!==ql&&ql.has(y)))){a.flags|=65536,t&=-t,a.lanes|=t,$i(a,hs(a,l,t));break e}}a=a.return}while(null!==a)}xu(n)}catch(e){t=e,Tl===n&&null!==n&&(Tl=n=n.return);continue}break}}function hu(){var e=Cl.current;return Cl.current=Za,null===e?Za:e}function mu(){0!==Ml&&3!==Ml&&2!==Ml||(Ml=4),null===Rl||!(268435455&Fl)&&!(268435455&Ll)||su(Rl,Al)}function vu(e,t){var n=Pl;Pl|=2;var r=hu();for(Rl===e&&Al===t||(Wl=null,fu(e,t));;)try{gu();break}catch(t){pu(e,t)}if(Oi(),Pl=n,Cl.current=r,null!==Tl)throw Error(i(261));return Rl=null,Al=0,Ml}function gu(){for(;null!==Tl;)yu(Tl)}function bu(){for(;null!==Tl&&!Ge();)yu(Tl)}function yu(e){var t=Sl(e.alternate,e,Il);e.memoizedProps=e.pendingProps,null===t?xu(e):Tl=t,_l.current=null}function xu(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Xs(n,t)))return n.flags&=32767,void(Tl=n);if(null===e)return Ml=6,void(Tl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Ys(n,t,Il)))return void(Tl=n);if(null!==(t=t.sibling))return void(Tl=t);Tl=t=e}while(null!==t);0===Ml&&(Ml=5)}function wu(e,t,n){var r=yt,o=Ol.transition;try{Ol.transition=null,yt=1,function(e,t,n,r){do{ku()}while(null!==Xl);if(6&Pl)throw Error(i(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(i(177));e.callbackNode=null,e.callbackPriority=0;var a=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-at(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,a),e===Rl&&(Tl=Rl=null,Al=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||Yl||(Yl=!0,Ru(tt,(function(){return ku(),null}))),a=!!(15990&n.flags),15990&n.subtreeFlags||a){a=Ol.transition,Ol.transition=null;var s=yt;yt=1;var l=Pl;Pl|=4,_l.current=null,function(e,t){if(eo=Ut,pr(e=fr())){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,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var s=0,l=-1,u=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||0!==o&&3!==f.nodeType||(l=s+o),f!==a||0!==r&&3!==f.nodeType||(u=s+r),3===f.nodeType&&(s+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++c===o&&(l=s),p===a&&++d===r&&(u=s),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}n=-1===l||-1===u?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(to={focusedElem:e,selectionRange:n},Ut=!1,Zs=t;null!==Zs;)if(e=(t=Zs).child,1028&t.subtreeFlags&&null!==e)e.return=t,Zs=e;else for(;null!==Zs;){t=Zs;try{var m=t.alternate;if(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!==m){var v=m.memoizedProps,g=m.memoizedState,b=t.stateNode,y=b.getSnapshotBeforeUpdate(t.elementType===t.type?v:ns(t.type,v),g);b.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var x=t.stateNode.containerInfo;1===x.nodeType?x.textContent="":9===x.nodeType&&x.documentElement&&x.removeChild(x.documentElement);break;default:throw Error(i(163))}}catch(e){Eu(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Zs=e;break}Zs=t.return}m=tl,tl=!1}(e,n),vl(n,e),hr(to),Ut=!!eo,to=eo=null,e.current=n,bl(n,e,o),Ke(),Pl=l,yt=s,Ol.transition=a}else e.current=n;if(Yl&&(Yl=!1,Xl=e,Gl=o),0===(a=e.pendingLanes)&&(ql=null),function(e){if(it&&"function"==typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),ru(e,Qe()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((o=t[n]).value,{componentStack:o.stack,digest:o.digest});if(Ul)throw Ul=!1,e=Hl,Hl=null,e;!!(1&Gl)&&0!==e.tag&&ku(),1&(a=e.pendingLanes)?e===Ql?Kl++:(Kl=0,Ql=e):Kl=0,Wo()}(e,t,n,r)}finally{Ol.transition=o,yt=r}return null}function ku(){if(null!==Xl){var e=xt(Gl),t=Ol.transition,n=yt;try{if(Ol.transition=null,yt=16>e?16:e,null===Xl)var r=!1;else{if(e=Xl,Xl=null,Gl=0,6&Pl)throw Error(i(331));var o=Pl;for(Pl|=4,Zs=e.current;null!==Zs;){var a=Zs,s=a.child;if(16&Zs.flags){var l=a.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for(Zs=c;null!==Zs;){var d=Zs;switch(d.tag){case 0:case 11:case 15:nl(8,d,a)}var f=d.child;if(null!==f)f.return=d,Zs=f;else for(;null!==Zs;){var p=(d=Zs).sibling,h=d.return;if(il(d),d===c){Zs=null;break}if(null!==p){p.return=h,Zs=p;break}Zs=h}}}var m=a.alternate;if(null!==m){var v=m.child;if(null!==v){m.child=null;do{var g=v.sibling;v.sibling=null,v=g}while(null!==v)}}Zs=a}}if(2064&a.subtreeFlags&&null!==s)s.return=a,Zs=s;else e:for(;null!==Zs;){if(2048&(a=Zs).flags)switch(a.tag){case 0:case 11:case 15:nl(9,a,a.return)}var b=a.sibling;if(null!==b){b.return=a.return,Zs=b;break e}Zs=a.return}}var y=e.current;for(Zs=y;null!==Zs;){var x=(s=Zs).child;if(2064&s.subtreeFlags&&null!==x)x.return=s,Zs=x;else e:for(s=y;null!==Zs;){if(2048&(l=Zs).flags)try{switch(l.tag){case 0:case 11:case 15:rl(9,l)}}catch(e){Eu(l,l.return,e)}if(l===s){Zs=null;break e}var w=l.sibling;if(null!==w){w.return=l.return,Zs=w;break e}Zs=l.return}}if(Pl=o,Wo(),it&&"function"==typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(e){}r=!0}return r}finally{yt=n,Ol.transition=t}}return!1}function Su(e,t,n){e=Bi(e,t=ps(0,t=us(n,t),1),1),t=eu(),null!==e&&(gt(e,1,t),ru(e,t))}function Eu(e,t,n){if(3===e.tag)Su(e,e,n);else for(;null!==t;){if(3===t.tag){Su(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===ql||!ql.has(r))){t=Bi(t,e=hs(t,e=us(n,e),1),1),e=eu(),null!==t&&(gt(t,1,e),ru(t,e));break}}t=t.return}}function Cu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=eu(),e.pingedLanes|=e.suspendedLanes&n,Rl===e&&(Al&n)===n&&(4===Ml||3===Ml&&(130023424&Al)===Al&&500>Qe()-Vl?fu(e,0):Dl|=n),ru(e,t)}function _u(e,t){0===t&&(1&e.mode?(t=ct,!(130023424&(ct<<=1))&&(ct=4194304)):t=1);var n=eu();null!==(e=zi(e,t))&&(gt(e,t,n),ru(e,n))}function Ou(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),_u(e,n)}function Pu(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(i(314))}null!==r&&r.delete(t),_u(e,n)}function Ru(e,t){return Ye(e,t)}function Tu(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 Au(e,t,n,r){return new Tu(e,t,n,r)}function Iu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function ju(e,t){var n=e.alternate;return null===n?((n=Au(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 Mu(e,t,n,r,o,a){var s=2;if(r=e,"function"==typeof e)Iu(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case S:return zu(n.children,o,a,t);case E:s=8,o|=8;break;case C:return(e=Au(12,n,t,2|o)).elementType=C,e.lanes=a,e;case R:return(e=Au(13,n,t,o)).elementType=R,e.lanes=a,e;case T:return(e=Au(19,n,t,o)).elementType=T,e.lanes=a,e;case j:return Fu(n,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case _:s=10;break e;case O:s=9;break e;case P:s=11;break e;case A:s=14;break e;case I:s=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Au(s,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function zu(e,t,n,r){return(e=Au(7,e,r,t)).lanes=n,e}function Fu(e,t,n,r){return(e=Au(22,e,r,t)).elementType=j,e.lanes=n,e.stateNode={isHidden:!1},e}function Lu(e,t,n){return(e=Au(6,e,null,t)).lanes=n,e}function Du(e,t,n){return(t=Au(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Nu(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=vt(0),this.expirationTimes=vt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Bu(e,t,n,r,o,i,a,s,l){return e=new Nu(e,t,n,s,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Au(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Li(i),e}function Vu(e){if(!e)return Po;e:{if($e(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(jo(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(jo(n))return Fo(e,n,t)}return t}function $u(e,t,n,r,o,i,a,s,l){return(e=Bu(n,r,!0,e,0,i,0,s,l)).context=Vu(null),n=e.current,(i=Ni(r=eu(),o=tu(n))).callback=null!=t?t:null,Bi(n,i,o),e.current.lanes=o,gt(e,o,r),ru(e,r),e}function Wu(e,t,n,r){var o=t.current,i=eu(),a=tu(o);return n=Vu(n),null===t.context?t.context=n:t.pendingContext=n,(t=Ni(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Bi(o,t,a))&&(nu(e,o,a,i),Vi(e,o,a)),a}function Uu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Hu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function qu(e,t){Hu(e,t),(e=e.alternate)&&Hu(e,t)}Sl=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||To.current)ys=!0;else{if(!(e.lanes&n||128&t.flags))return ys=!1,function(e,t,n){switch(t.tag){case 3:Rs(t),hi();break;case 5:Zi(t);break;case 1:jo(t.type)&&Lo(t);break;case 4:Ki(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Oo(Si,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Oo(ea,1&ea.current),t.flags|=128,null):n&t.child.childLanes?Ls(e,t,n):(Oo(ea,1&ea.current),null!==(e=Us(e,t,n))?e.sibling:null);Oo(ea,1&ea.current);break;case 19:if(r=!!(n&t.childLanes),128&e.flags){if(r)return $s(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Oo(ea,ea.current),r)break;return null;case 22:case 23:return t.lanes=0,Es(e,t,n)}return Us(e,t,n)}(e,t,n);ys=!!(131072&e.flags)}else ys=!1,ii&&1048576&t.flags&&ei(t,Yo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ws(e,t),e=t.pendingProps;var o=Io(t,Ro.current);Ti(t,n),o=va(null,t,r,e,o,n);var a=ga();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,jo(r)?(a=!0,Lo(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Li(t),o.updater=os,t.stateNode=o,o._reactInternals=t,ls(t,r,e,n),t=Ps(null,t,r,!0,a,n)):(t.tag=0,ii&&a&&ti(t),xs(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ws(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return Iu(e)?1:0;if(null!=e){if((e=e.$$typeof)===P)return 11;if(e===A)return 14}return 2}(r),e=ns(r,e),o){case 0:t=_s(null,t,r,e,n);break e;case 1:t=Os(null,t,r,e,n);break e;case 11:t=ws(null,t,r,e,n);break e;case 14:t=ks(null,t,r,ns(r.type,e),n);break e}throw Error(i(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,_s(e,t,r,o=t.elementType===r?o:ns(r,o),n);case 1:return r=t.type,o=t.pendingProps,Os(e,t,r,o=t.elementType===r?o:ns(r,o),n);case 3:e:{if(Rs(t),null===e)throw Error(i(387));r=t.pendingProps,o=(a=t.memoizedState).element,Di(e,t),Wi(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Ts(e,t,r,n,o=us(Error(i(423)),t));break e}if(r!==o){t=Ts(e,t,r,n,o=us(Error(i(424)),t));break e}for(oi=uo(t.stateNode.containerInfo.firstChild),ri=t,ii=!0,ai=null,n=ki(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(hi(),r===o){t=Us(e,t,n);break e}xs(e,t,r,n)}t=t.child}return t;case 5:return Zi(t),null===e&&ci(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,s=o.children,no(r,o)?s=null:null!==a&&no(r,a)&&(t.flags|=32),Cs(e,t),xs(e,t,s,n),t.child;case 6:return null===e&&ci(t),null;case 13:return Ls(e,t,n);case 4:return Ki(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=wi(t,null,r,n):xs(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,ws(e,t,r,o=t.elementType===r?o:ns(r,o),n);case 7:return xs(e,t,t.pendingProps,n),t.child;case 8:case 12:return xs(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,s=o.value,Oo(Si,r._currentValue),r._currentValue=s,null!==a)if(sr(a.value,s)){if(a.children===o.children&&!To.current){t=Us(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var u=l.firstContext;null!==u;){if(u.context===r){if(1===a.tag){(u=Ni(-1,n&-n)).tag=2;var c=a.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}a.lanes|=n,null!==(u=a.alternate)&&(u.lanes|=n),Ri(a.return,n,t),l.lanes|=n;break}u=u.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(i(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),Ri(s,n,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}xs(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ti(t,n),r=r(o=Ai(o)),t.flags|=1,xs(e,t,r,n),t.child;case 14:return o=ns(r=t.type,t.pendingProps),ks(e,t,r,o=ns(r.type,o),n);case 15:return Ss(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ns(r,o),Ws(e,t),t.tag=1,jo(r)?(e=!0,Lo(t)):e=!1,Ti(t,n),as(t,r,o),ls(t,r,o,n),Ps(null,t,r,!0,e,n);case 19:return $s(e,t,n);case 22:return Es(e,t,n)}throw Error(i(156,t.tag))};var Yu="function"==typeof reportError?reportError:function(e){console.error(e)};function Xu(e){this._internalRoot=e}function Gu(e){this._internalRoot=e}function Ku(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Qu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zu(){}function Ju(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=Uu(a);s.call(e)}}Wu(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=Uu(a);i.call(e)}}var a=$u(t,r,e,0,null,!1,0,"",Zu);return e._reactRootContainer=a,e[mo]=a.current,$r(8===e.nodeType?e.parentNode:e),cu(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var s=r;r=function(){var e=Uu(l);s.call(e)}}var l=Bu(e,0,!1,null,0,!1,0,"",Zu);return e._reactRootContainer=l,e[mo]=l.current,$r(8===e.nodeType?e.parentNode:e),cu((function(){Wu(t,l,n,r)})),l}(n,t,e,o,r);return Uu(a)}Gu.prototype.render=Xu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));Wu(e,t,null,null)},Gu.prototype.unmount=Xu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;cu((function(){Wu(null,e,null,null)})),t[mo]=null}},Gu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Et();e={blockedOn:null,target:e,priority:t};for(var n=0;n<jt.length&&0!==t&&t<jt[n].priority;n++);jt.splice(n,0,e),0===n&&Lt(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(bt(t,1|n),ru(t,Qe()),!(6&Pl)&&($l=Qe()+500,Wo()))}break;case 13:cu((function(){var t=zi(e,1);if(null!==t){var n=eu();nu(t,e,1,n)}})),qu(e,1)}},kt=function(e){if(13===e.tag){var t=zi(e,134217728);null!==t&&nu(t,e,134217728,eu()),qu(e,134217728)}},St=function(e){if(13===e.tag){var t=tu(e),n=zi(e,t);null!==n&&nu(n,e,t,eu()),qu(e,t)}},Et=function(){return yt},Ct=function(e,t){var n=yt;try{return yt=e,t()}finally{yt=n}},ke=function(e,t,n){switch(t){case"input":if(Z(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=ko(r);if(!o)throw Error(i(90));Y(r),Z(r,o)}}}break;case"textarea":ie(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Pe=uu,Re=cu;var ec={usingClientEntryPoint:!1,Events:[xo,wo,ko,_e,Oe,uu]},tc={findFiberByHostInstance:yo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nc={bundleType:tc.bundleType,version:tc.version,rendererPackageName:tc.rendererPackageName,rendererConfig:tc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=He(e))?null:e.stateNode},findFiberByHostInstance:tc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var rc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rc.isDisabled&&rc.supportsFiber)try{ot=rc.inject(nc),it=rc}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ec,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Ku(t))throw Error(i(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:k,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Ku(e))throw Error(i(299));var n=!1,r="",o=Yu;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Bu(e,1,!1,null,0,n,0,r,o),e[mo]=t.current,$r(8===e.nodeType?e.parentNode:e),new Xu(t)},t.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(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return null===(e=He(t))?null:e.stateNode},t.flushSync=function(e){return cu(e)},t.hydrate=function(e,t,n){if(!Qu(t))throw Error(i(200));return Ju(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Ku(e))throw Error(i(405));var r=null!=n&&n.hydratedSources||null,o=!1,a="",s=Yu;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=$u(t,null,e,1,null!=n?n:null,o,0,a,s),e[mo]=t.current,$r(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 Gu(t)},t.render=function(e,t,n){if(!Qu(t))throw Error(i(200));return Ju(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Qu(e))throw Error(i(40));return!!e._reactRootContainer&&(cu((function(){Ju(null,null,e,!1,(function(){e._reactRootContainer=null,e[mo]=null}))})),!0)},t.unstable_batchedUpdates=uu,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Qu(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return Ju(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},961:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(2551)},115:e=>{var t="undefined"!=typeof Element,n="function"==typeof Map,r="function"==typeof Set,o="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){if(e.constructor!==a.constructor)return!1;var s,l,u,c;if(Array.isArray(e)){if((s=e.length)!=a.length)return!1;for(l=s;0!=l--;)if(!i(e[l],a[l]))return!1;return!0}if(n&&e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(c=e.entries();!(l=c.next()).done;)if(!a.has(l.value[0]))return!1;for(c=e.entries();!(l=c.next()).done;)if(!i(l.value[1],a.get(l.value[0])))return!1;return!0}if(r&&e instanceof Set&&a instanceof Set){if(e.size!==a.size)return!1;for(c=e.entries();!(l=c.next()).done;)if(!a.has(l.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(a)){if((s=e.length)!=a.length)return!1;for(l=s;0!=l--;)if(e[l]!==a[l])return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof a.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof a.toString)return e.toString()===a.toString();if((s=(u=Object.keys(e)).length)!==Object.keys(a).length)return!1;for(l=s;0!=l--;)if(!Object.prototype.hasOwnProperty.call(a,u[l]))return!1;if(t&&e instanceof Element)return!1;for(l=s;0!=l--;)if(("_owner"!==u[l]&&"__v"!==u[l]&&"__o"!==u[l]||!e.$$typeof)&&!i(e[u[l]],a[u[l]]))return!1;return!0}return e!=e&&a!=a}e.exports=function(e,t){try{return i(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},1020:(e,t,n)=>{"use strict";var r=n(6694),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,i={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)a.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:u,ref:c,props:i,_owner:s.current}}t.Fragment=i,t.jsx=u,t.jsxs=u},4848:(e,t,n)=>{"use strict";e.exports=n(1020)},7463:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(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,o=e.length,a=o>>>1;r<a;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(0>i(l,n))u<o&&0>i(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(u<o&&0>i(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function i(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 a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var u=[],c=[],d=1,f=null,p=3,h=!1,m=!1,v=!1,g="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function x(e){for(var t=r(c);null!==t;){if(null===t.callback)o(c);else{if(!(t.startTime<=e))break;o(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function w(e){if(v=!1,x(e),!m)if(null!==r(u))m=!0,j(k);else{var t=r(c);null!==t&&M(w,t.startTime-e)}}function k(e,n){m=!1,v&&(v=!1,b(_),_=-1),h=!0;var i=p;try{for(x(n),f=r(u);null!==f&&(!(f.expirationTime>n)||e&&!R());){var a=f.callback;if("function"==typeof a){f.callback=null,p=f.priorityLevel;var s=a(f.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?f.callback=s:f===r(u)&&o(u),x(n)}else o(u);f=r(u)}if(null!==f)var l=!0;else{var d=r(c);null!==d&&M(w,d.startTime-n),l=!1}return l}finally{f=null,p=i,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,E=!1,C=null,_=-1,O=5,P=-1;function R(){return!(t.unstable_now()-P<O)}function T(){if(null!==C){var e=t.unstable_now();P=e;var n=!0;try{n=C(!0,e)}finally{n?S():(E=!1,C=null)}}else E=!1}if("function"==typeof y)S=function(){y(T)};else if("undefined"!=typeof MessageChannel){var A=new MessageChannel,I=A.port2;A.port1.onmessage=T,S=function(){I.postMessage(null)}}else S=function(){g(T,0)};function j(e){C=e,E||(E=!0,S())}function M(e,n){_=g((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||h||(m=!0,j(k))},t.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"):O=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(u)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,o,i){var a=t.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?a+i:a,e){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 e={id:d++,callback:o,priorityLevel:e,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>a?(e.sortIndex=i,n(c,e),null===r(u)&&e===r(c)&&(v?(b(_),_=-1):v=!0,M(w,i-a))):(e.sortIndex=s,n(u,e),m||h||(m=!0,j(k))),e},t.unstable_shouldYield=R,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},9982:(e,t,n)=>{"use strict";e.exports=n(7463)},7604:(e,t,n)=>{var r;!function(){"use strict";var o={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function i(e){return function(e,t){var n,r,a,s,l,u,c,d,f,p=1,h=e.length,m="";for(r=0;r<h;r++)if("string"==typeof e[r])m+=e[r];else if("object"==typeof e[r]){if((s=e[r]).keys)for(n=t[p],a=0;a<s.keys.length;a++){if(null==n)throw new Error(i('[sprintf] Cannot access property "%s" of undefined value "%s"',s.keys[a],s.keys[a-1]));n=n[s.keys[a]]}else n=s.param_no?t[s.param_no]:t[p++];if(o.not_type.test(s.type)&&o.not_primitive.test(s.type)&&n instanceof Function&&(n=n()),o.numeric_arg.test(s.type)&&"number"!=typeof n&&isNaN(n))throw new TypeError(i("[sprintf] expecting number but found %T",n));switch(o.number.test(s.type)&&(d=n>=0),s.type){case"b":n=parseInt(n,10).toString(2);break;case"c":n=String.fromCharCode(parseInt(n,10));break;case"d":case"i":n=parseInt(n,10);break;case"j":n=JSON.stringify(n,null,s.width?parseInt(s.width):0);break;case"e":n=s.precision?parseFloat(n).toExponential(s.precision):parseFloat(n).toExponential();break;case"f":n=s.precision?parseFloat(n).toFixed(s.precision):parseFloat(n);break;case"g":n=s.precision?String(Number(n.toPrecision(s.precision))):parseFloat(n);break;case"o":n=(parseInt(n,10)>>>0).toString(8);break;case"s":n=String(n),n=s.precision?n.substring(0,s.precision):n;break;case"t":n=String(!!n),n=s.precision?n.substring(0,s.precision):n;break;case"T":n=Object.prototype.toString.call(n).slice(8,-1).toLowerCase(),n=s.precision?n.substring(0,s.precision):n;break;case"u":n=parseInt(n,10)>>>0;break;case"v":n=n.valueOf(),n=s.precision?n.substring(0,s.precision):n;break;case"x":n=(parseInt(n,10)>>>0).toString(16);break;case"X":n=(parseInt(n,10)>>>0).toString(16).toUpperCase()}o.json.test(s.type)?m+=n:(!o.number.test(s.type)||d&&!s.sign?f="":(f=d?"+":"-",n=n.toString().replace(o.sign,"")),u=s.pad_char?"0"===s.pad_char?"0":s.pad_char.charAt(1):" ",c=s.width-(f+n).length,l=s.width&&c>0?u.repeat(c):"",m+=s.align?f+n+l:"0"===u?f+l+n:l+f+n)}return m}(function(e){if(s[e])return s[e];for(var t,n=e,r=[],i=0;n;){if(null!==(t=o.text.exec(n)))r.push(t[0]);else if(null!==(t=o.modulo.exec(n)))r.push("%");else{if(null===(t=o.placeholder.exec(n)))throw new SyntaxError("[sprintf] unexpected placeholder");if(t[2]){i|=1;var a=[],l=t[2],u=[];if(null===(u=o.key.exec(l)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(a.push(u[1]);""!==(l=l.substring(u[0].length));)if(null!==(u=o.key_access.exec(l)))a.push(u[1]);else{if(null===(u=o.index_access.exec(l)))throw new SyntaxError("[sprintf] failed to parse named argument key");a.push(u[1])}t[2]=a}else i|=2;if(3===i)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");r.push({placeholder:t[0],param_no:t[1],keys:t[2],sign:t[3],pad_char:t[4],align:t[5],width:t[6],precision:t[7],type:t[8]})}n=n.substring(t[0].length)}return s[e]=r}(e),arguments)}function a(e,t){return i.apply(null,[e].concat(t||[]))}var s=Object.create(null);"undefined"!=typeof window&&(window.sprintf=i,window.vsprintf=a,void 0===(r=function(){return{sprintf:i,vsprintf:a}}.call(t,n,t,e))||(e.exports=r))}()},6694:e=>{"use strict";e.exports=React}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r](i,i.exports,n),i.loaded=!0,i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.nc=void 0,(()=>{"use strict";var e=n(6694),t=n.n(e),r=n(961);function o(e,t={}){let n=!1;function r(t){const n=`chakra-${(["container","root"].includes(t??"")?[e]:[e,t]).filter(Boolean).join("__")}`;return{className:n,selector:`.${n}`,toString:()=>t}}return{parts:function(...i){!function(){if(n)throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?");n=!0}();for(const e of i)t[e]=r(e);return o(e,t)},toPart:r,extend:function(...n){for(const e of n)e in t||(t[e]=r(e));return o(e,t)},selectors:function(){return Object.fromEntries(Object.entries(t).map((([e,t])=>[e,t.selector])))},classnames:function(){return Object.fromEntries(Object.entries(t).map((([e,t])=>[e,t.className])))},get keys(){return Object.keys(t)},__type:{}}}const i=o("accordion").parts("root","container","button","panel","icon"),a=o("alert").parts("title","description","container","icon","spinner"),s=o("avatar").parts("label","badge","container","excessLabel","group"),l=o("breadcrumb").parts("link","item","container","separator"),u=(o("button").parts(),o("checkbox").parts("control","icon","container","label")),c=(o("progress").parts("track","filledTrack","label"),o("drawer").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer")),d=o("editable").parts("preview","input","textarea"),f=o("form").parts("container","requiredIndicator","helperText"),p=o("formError").parts("text","icon"),h=o("input").parts("addon","field","element","group"),m=o("list").parts("container","item","icon"),v=o("menu").parts("button","list","item","groupTitle","icon","command","divider"),g=o("modal").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),b=o("numberinput").parts("root","field","stepperGroup","stepper"),y=(o("pininput").parts("field"),o("popover").parts("content","header","body","footer","popper","arrow","closeButton")),x=o("progress").parts("label","filledTrack","track"),w=o("radio").parts("container","control","label"),k=o("select").parts("field","icon"),S=o("slider").parts("container","track","thumb","filledTrack","mark"),E=o("stat").parts("container","label","helpText","number","icon"),C=o("switch").parts("container","track","thumb","label"),_=o("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),O=o("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),P=o("tag").parts("container","label","closeButton"),R=o("card").parts("container","header","body","footer");function T(e){return{definePartsStyle:e=>e,defineMultiStyleConfig:t=>({parts:e,...t})}}o("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");const{definePartsStyle:A,defineMultiStyleConfig:I}=T(i.keys),j=I({baseStyle:A({container:{borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},button:{transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},panel:{pt:"2",px:"4",pb:"5"},icon:{fontSize:"1.25em"}})});function M(e,t){return`var(${e}${t?`, ${t}`:""})`}function z(e,t=""){return function(e){return function(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}(function(e){return e.includes("\\.")||Number.isInteger(parseFloat(e.toString()))?e:e.replace(".","\\.")}(function(e,t="-"){return e.replace(/\s+/g,t)}(e.toString())))}(`--${function(e,t=""){return[t,e].filter(Boolean).join("-")}(e,t)}`)}function F(e,t,n){const r=z(e,n);return{variable:r,reference:M(r,t)}}function L(e,t,n){return Math.min(Math.max(e,n),t)}class D extends Error{constructor(e){super(`Failed to parse color: "${e}"`)}}var N=D;function B(e){if("string"!=typeof e)throw new N(e);if("transparent"===e.trim().toLowerCase())return[0,0,0,0];let t=e.trim();t=X.test(e)?function(e){const t=e.toLowerCase().trim(),n=$[function(e){let t=5381,n=e.length;for(;n;)t=33*t^e.charCodeAt(--n);return(t>>>0)%2341}(t)];if(!n)throw new N(e);return`#${n}`}(e):e;const n=U.exec(t);if(n){const e=Array.from(n).slice(1);return[...e.slice(0,3).map((e=>parseInt(W(e,2),16))),parseInt(W(e[3]||"f",2),16)/255]}const r=H.exec(t);if(r){const e=Array.from(r).slice(1);return[...e.slice(0,3).map((e=>parseInt(e,16))),parseInt(e[3]||"ff",16)/255]}const o=q.exec(t);if(o){const e=Array.from(o).slice(1);return[...e.slice(0,3).map((e=>parseInt(e,10))),parseFloat(e[3]||"1")]}const i=Y.exec(t);if(i){const[t,n,r,o]=Array.from(i).slice(1).map(parseFloat);if(L(0,100,n)!==n)throw new N(e);if(L(0,100,r)!==r)throw new N(e);return[...K(t,n,r),Number.isNaN(o)?1:o]}throw new N(e)}const V=e=>parseInt(e.replace(/_/g,""),36),$="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce(((e,t)=>{const n=V(t.substring(0,3)),r=V(t.substring(3)).toString(16);let o="";for(let e=0;e<6-r.length;e++)o+="0";return e[n]=`${o}${r}`,e}),{}),W=(e,t)=>Array.from(Array(t)).map((()=>e)).join(""),U=new RegExp(`^#${W("([a-f0-9])",3)}([a-f0-9])?$`,"i"),H=new RegExp(`^#${W("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),q=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${W(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),Y=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,X=/^[a-z]+$/i,G=e=>Math.round(255*e),K=(e,t,n)=>{let r=n/100;if(0===t)return[r,r,r].map(G);const o=(e%360+360)%360/60,i=(1-Math.abs(2*r-1))*(t/100),a=i*(1-Math.abs(o%2-1));let s=0,l=0,u=0;o>=0&&o<1?(s=i,l=a):o>=1&&o<2?(s=a,l=i):o>=2&&o<3?(l=i,u=a):o>=3&&o<4?(l=a,u=i):o>=4&&o<5?(s=a,u=i):o>=5&&o<6&&(s=i,u=a);const c=r-i/2;return[s+c,l+c,u+c].map(G)};function Q(e,t){const[n,r,o,i]=B(e);return function(e,t,n,r){return`rgba(${L(0,255,e).toFixed()}, ${L(0,255,t).toFixed()}, ${L(0,255,n).toFixed()}, ${parseFloat(L(0,1,r).toFixed(3))})`}(n,r,o,i-t)}const Z=(e,t,n)=>{const r=function(e,t,n,r,o){for(t=t.split?t.split("."):t,r=0;r<t.length;r++)e=e?e[t[r]]:o;return e===o?n:e}(e,`colors.${t}`,t);try{return function(e){const[t,n,r,o]=B(e);let i=e=>{const t=L(0,255,e).toString(16);return 1===t.length?`0${t}`:t};i(t),i(n),i(r),o<1&&i(Math.round(255*o))}(r),r}catch{return n??"#000000"}},J=(e,t)=>n=>Q(Z(n,e),1-t);function ee(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient(\n 45deg,\n ${t} 25%,\n transparent 25%,\n transparent 50%,\n ${t} 50%,\n ${t} 75%,\n transparent 75%,\n transparent\n )`,backgroundSize:`${e} ${e}`}}const{definePartsStyle:te,defineMultiStyleConfig:ne}=T(a.keys),re=F("alert-fg"),oe=F("alert-bg"),ie=te({container:{bg:oe.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:re.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:re.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function ae(e){const{theme:t,colorScheme:n}=e;return{light:`colors.${n}.100`,dark:J(`${n}.200`,.16)(t)}}const se=te((e=>{const{colorScheme:t}=e,n=ae(e);return{container:{[re.variable]:`colors.${t}.600`,[oe.variable]:n.light,_dark:{[re.variable]:`colors.${t}.200`,[oe.variable]:n.dark}}}})),le=te((e=>{const{colorScheme:t}=e,n=ae(e);return{container:{[re.variable]:`colors.${t}.600`,[oe.variable]:n.light,_dark:{[re.variable]:`colors.${t}.200`,[oe.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:re.reference}}})),ue=te((e=>{const{colorScheme:t}=e,n=ae(e);return{container:{[re.variable]:`colors.${t}.600`,[oe.variable]:n.light,_dark:{[re.variable]:`colors.${t}.200`,[oe.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:re.reference}}})),ce=te((e=>{const{colorScheme:t}=e;return{container:{[re.variable]:"colors.white",[oe.variable]:`colors.${t}.600`,_dark:{[re.variable]:"colors.gray.900",[oe.variable]:`colors.${t}.200`},color:re.reference}}})),de=ne({baseStyle:ie,variants:{subtle:se,"left-accent":le,"top-accent":ue,solid:ce},defaultProps:{variant:"subtle",colorScheme:"blue"}}),fe={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},pe={...fe,max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch",container:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px"}};function he(e,...t){return"function"==typeof e?e(...t):e}const{definePartsStyle:me,defineMultiStyleConfig:ve}=T(s.keys),ge=F("avatar-border-color"),be=F("avatar-bg"),ye=F("avatar-font-size"),xe=F("avatar-size"),we={borderRadius:"full",border:"0.2em solid",borderColor:ge.reference,[ge.variable]:"white",_dark:{[ge.variable]:"colors.gray.800"}},ke={bg:be.reference,fontSize:ye.reference,width:xe.reference,height:xe.reference,lineHeight:"1",[be.variable]:"colors.gray.200",_dark:{[be.variable]:"colors.whiteAlpha.400"}},Se=e=>{const{name:t,theme:n}=e,r=t?function(e){const t=`#${Math.floor(16777215*Math.random()).toString(16).padEnd(6,"0")}`;return e&&(n=e,0!==Object.keys(n).length)?e.string&&e.colors?function(e,t){let n=0;if(0===e.length)return t[0];for(let t=0;t<e.length;t+=1)n=e.charCodeAt(t)+((n<<5)-n),n|=0;return n=(n%t.length+t.length)%t.length,t[n]}(e.string,e.colors):e.string&&!e.colors?function(e){let t=0;if(0===e.length)return t.toString();for(let n=0;n<e.length;n+=1)t=e.charCodeAt(n)+((t<<5)-t),t|=0;let n="#";for(let e=0;e<3;e+=1)n+=`00${(t>>8*e&255).toString(16)}`.substr(-2);return n}(e.string):e.colors&&!e.string?function(e){return e[Math.floor(Math.random()*e.length)]}(e.colors):t:t;var n}({string:t}):"colors.gray.400",o=(e=>t=>"dark"===(e=>t=>{const n=(e=>{const[t,n,r]=B(e);return(299*t+587*n+114*r)/1e3})(Z(t,e));return n<128?"dark":"light"})(e)(t))(r)(n);let i="white";return o||(i="gray.800"),{bg:be.reference,fontSize:ye.reference,color:i,borderColor:ge.reference,verticalAlign:"top",width:xe.reference,height:xe.reference,"&:not([data-loaded])":{[be.variable]:r},[ge.variable]:"colors.white",_dark:{[ge.variable]:"colors.gray.800"}}},Ee={fontSize:ye.reference,lineHeight:"1"};function Ce(e){const t="100%"!==e?pe[e]:void 0;return me({container:{[xe.variable]:t??e,[ye.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[xe.variable]:t??e,[ye.variable]:`calc(${t??e} / 2.5)`}})}const _e=ve({baseStyle:me((e=>({badge:he(we,e),excessLabel:he(ke,e),container:he(Se,e),label:Ee}))),sizes:{"2xs":Ce(4),xs:Ce(6),sm:Ce(8),md:Ce(12),lg:Ce(16),xl:Ce(24),"2xl":Ce(32),full:Ce("100%")},defaultProps:{size:"md"}}),Oe=function(e){const t={};for(const n of["bg","color","shadow"])if(Array.isArray(n)){const[r,o]=n;t[r]=F(`${e}-${r}`,o)}else t[n]=F(`${e}-${n}`);return t}("badge"),Pe={baseStyle:{px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:Oe.bg.reference,color:Oe.color.reference,boxShadow:Oe.shadow.reference},variants:{solid:e=>{const{colorScheme:t,theme:n}=e,r=J(`${t}.500`,.6)(n);return{[Oe.bg.variable]:`colors.${t}.500`,[Oe.color.variable]:"colors.white",_dark:{[Oe.bg.variable]:r,[Oe.color.variable]:"colors.whiteAlpha.800"}}},subtle:e=>{const{colorScheme:t,theme:n}=e,r=J(`${t}.200`,.16)(n);return{[Oe.bg.variable]:`colors.${t}.100`,[Oe.color.variable]:`colors.${t}.800`,_dark:{[Oe.bg.variable]:r,[Oe.color.variable]:`colors.${t}.200`}}},outline:e=>{const{colorScheme:t,theme:n}=e,r=J(`${t}.200`,.8)(n);return{[Oe.color.variable]:`colors.${t}.500`,_dark:{[Oe.color.variable]:r},[Oe.shadow.variable]:`inset 0 0 0px 1px ${Oe.color.reference}`}}},defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:Re,definePartsStyle:Te}=T(l.keys),Ae=F("breadcrumb-link-decor"),Ie=Re({baseStyle:Te({link:{transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:Ae.reference,[Ae.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[Ae.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}}})});function je(e,t){return n=>"dark"===n.colorMode?t:e}function Me(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?"vertical"===t?n:r:{}}const ze=e=>{const{colorScheme:t,theme:n}=e;if("gray"===t)return{color:je("gray.800","whiteAlpha.900")(e),_hover:{bg:je("gray.100","whiteAlpha.200")(e)},_active:{bg:je("gray.200","whiteAlpha.300")(e)}};const r=J(`${t}.200`,.12)(n),o=J(`${t}.200`,.24)(n);return{color:je(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:je(`${t}.50`,r)(e)},_active:{bg:je(`${t}.100`,o)(e)}}},Fe={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},Le={baseStyle:{lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}},variants:{ghost:ze,outline:e=>{const{colorScheme:t}=e,n=je("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:"gray"===t?n:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...he(ze,e)}},solid:e=>{const{colorScheme:t}=e;if("gray"===t){const t=je("gray.100","whiteAlpha.200")(e);return{bg:t,color:je("gray.800","whiteAlpha.900")(e),_hover:{bg:je("gray.200","whiteAlpha.300")(e),_disabled:{bg:t}},_active:{bg:je("gray.300","whiteAlpha.400")(e)}}}const{bg:n=`${t}.500`,color:r="white",hoverBg:o=`${t}.600`,activeBg:i=`${t}.700`}=Fe[t]??{},a=je(n,`${t}.200`)(e);return{bg:a,color:je(r,"gray.800")(e),_hover:{bg:je(o,`${t}.300`)(e),_disabled:{bg:a}},_active:{bg:je(i,`${t}.400`)(e)}}},link:e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:je(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:je(`${t}.700`,`${t}.500`)(e)}}},unstyled:{bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"}},sizes:{lg:{h:"12",minW:"12",fontSize:"lg",px:"6"},md:{h:"10",minW:"10",fontSize:"md",px:"4"},sm:{h:"8",minW:"8",fontSize:"sm",px:"3"},xs:{h:"6",minW:"6",fontSize:"xs",px:"2"}},defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:De,defineMultiStyleConfig:Ne}=T(R.keys),Be=F("card-bg"),Ve=F("card-padding"),$e=F("card-shadow"),We=F("card-radius"),Ue=F("card-border-width","0"),He=F("card-border-color"),qe=De({container:{[Be.variable]:"colors.chakra-body-bg",backgroundColor:Be.reference,boxShadow:$e.reference,borderRadius:We.reference,color:"chakra-body-text",borderWidth:Ue.reference,borderColor:He.reference},body:{padding:Ve.reference,flex:"1 1 0%"},header:{padding:Ve.reference},footer:{padding:Ve.reference}}),Ye={sm:De({container:{[We.variable]:"radii.base",[Ve.variable]:"space.3"}}),md:De({container:{[We.variable]:"radii.md",[Ve.variable]:"space.5"}}),lg:De({container:{[We.variable]:"radii.xl",[Ve.variable]:"space.7"}})},Xe=Ne({baseStyle:qe,variants:{elevated:De({container:{[$e.variable]:"shadows.base",_dark:{[Be.variable]:"colors.gray.700"}}}),outline:De({container:{[Ue.variable]:"1px",[He.variable]:"colors.chakra-border-color"}}),filled:De({container:{[Be.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[Ve.variable]:0},header:{[Ve.variable]:0},footer:{[Ve.variable]:0}}},sizes:Ye,defaultProps:{variant:"elevated",size:"md"}}),{definePartsStyle:Ge,defineMultiStyleConfig:Ke}=T(u.keys),Qe=F("checkbox-size"),Ze=e=>{const{colorScheme:t}=e;return{w:Qe.reference,h:Qe.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:je(`${t}.500`,`${t}.200`)(e),borderColor:je(`${t}.500`,`${t}.200`)(e),color:je("white","gray.900")(e),_hover:{bg:je(`${t}.600`,`${t}.300`)(e),borderColor:je(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:je("gray.200","transparent")(e),bg:je("gray.200","whiteAlpha.300")(e),color:je("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:je(`${t}.500`,`${t}.200`)(e),borderColor:je(`${t}.500`,`${t}.200`)(e),color:je("white","gray.900")(e)},_disabled:{bg:je("gray.100","whiteAlpha.100")(e),borderColor:je("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:je("red.500","red.300")(e)}}},Je={_disabled:{cursor:"not-allowed"}},et={userSelect:"none",_disabled:{opacity:.4}},tt={transitionProperty:"transform",transitionDuration:"normal"},nt=Ke({baseStyle:Ge((e=>({icon:tt,container:Je,control:he(Ze,e),label:et}))),sizes:{sm:Ge({control:{[Qe.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:Ge({control:{[Qe.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:Ge({control:{[Qe.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},defaultProps:{size:"md",colorScheme:"blue"}});function rt(e){const t=function(e,t="-"){return e.replace(/\s+/g,t)}(e.toString());return t.includes("\\.")?e:function(e){return!Number.isInteger(parseFloat(e.toString()))}(e)?t.replace(".","\\."):e}function ot(e,t){return`var(${rt(e)}${t?`, ${t}`:""})`}function it(e,t){const n=function(e,t=""){return`--${function(e,t=""){return[t,rt(e)].filter(Boolean).join("-")}(e,t)}`}(e,t?.prefix);return{variable:n,reference:ot(n,(r=t?.fallback,"string"==typeof r?r:r?.reference))};var r}const at=it("close-button-size"),st=it("close-button-bg"),lt={baseStyle:{w:[at.reference],h:[at.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[st.variable]:"colors.blackAlpha.100",_dark:{[st.variable]:"colors.whiteAlpha.100"}},_active:{[st.variable]:"colors.blackAlpha.200",_dark:{[st.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:st.reference},sizes:{lg:{[at.variable]:"sizes.10",fontSize:"md"},md:{[at.variable]:"sizes.8",fontSize:"xs"},sm:{[at.variable]:"sizes.6",fontSize:"2xs"}},defaultProps:{size:"md"}},{variants:ut,defaultProps:ct}=Pe,dt={baseStyle:{fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:Oe.bg.reference,color:Oe.color.reference,boxShadow:Oe.shadow.reference},variants:ut,defaultProps:ct},{definePartsStyle:ft,defineMultiStyleConfig:pt}=T(c.keys),ht=F("drawer-bg"),mt=F("drawer-box-shadow");function vt(e){return ft("full"===e?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}const gt={bg:"blackAlpha.600",zIndex:"modal"},bt={display:"flex",zIndex:"modal",justifyContent:"center"},yt=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[ht.variable]:"colors.white",[mt.variable]:"shadows.lg",_dark:{[ht.variable]:"colors.gray.700",[mt.variable]:"shadows.dark-lg"},bg:ht.reference,boxShadow:mt.reference}},xt={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},wt={position:"absolute",top:"2",insetEnd:"3"},kt={px:"6",py:"2",flex:"1",overflow:"auto"},St={px:"6",py:"4"},Et=pt({baseStyle:ft((e=>({overlay:gt,dialogContainer:bt,dialog:he(yt,e),header:xt,closeButton:wt,body:kt,footer:St}))),sizes:{xs:vt("xs"),sm:vt("md"),md:vt("lg"),lg:vt("2xl"),xl:vt("4xl"),full:vt("full")},defaultProps:{size:"xs"}}),{definePartsStyle:Ct,defineMultiStyleConfig:_t}=T(d.keys),Ot=_t({baseStyle:Ct({preview:{borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},input:{borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},textarea:{borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}}})}),{definePartsStyle:Pt,defineMultiStyleConfig:Rt}=T(f.keys),Tt=F("form-control-color"),At=Rt({baseStyle:Pt({container:{width:"100%",position:"relative"},requiredIndicator:{marginStart:"1",[Tt.variable]:"colors.red.500",_dark:{[Tt.variable]:"colors.red.300"},color:Tt.reference},helperText:{mt:"2",[Tt.variable]:"colors.gray.600",_dark:{[Tt.variable]:"colors.whiteAlpha.600"},color:Tt.reference,lineHeight:"normal",fontSize:"sm"}})}),{definePartsStyle:It,defineMultiStyleConfig:jt}=T(p.keys),Mt=F("form-error-color"),zt=jt({baseStyle:It({text:{[Mt.variable]:"colors.red.500",_dark:{[Mt.variable]:"colors.red.300"},color:Mt.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},icon:{marginEnd:"0.5em",[Mt.variable]:"colors.red.500",_dark:{[Mt.variable]:"colors.red.300"},color:Mt.reference}})}),{definePartsStyle:Ft,defineMultiStyleConfig:Lt}=T(h.keys),Dt=F("input-height"),Nt=F("input-font-size"),Bt=F("input-padding"),Vt=F("input-border-radius"),$t=Ft({addon:{height:Dt.reference,fontSize:Nt.reference,px:Bt.reference,borderRadius:Vt.reference},field:{width:"100%",height:Dt.reference,fontSize:Nt.reference,px:Bt.reference,borderRadius:Vt.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),Wt={lg:{[Nt.variable]:"fontSizes.lg",[Bt.variable]:"space.4",[Vt.variable]:"radii.md",[Dt.variable]:"sizes.12"},md:{[Nt.variable]:"fontSizes.md",[Bt.variable]:"space.4",[Vt.variable]:"radii.md",[Dt.variable]:"sizes.10"},sm:{[Nt.variable]:"fontSizes.sm",[Bt.variable]:"space.3",[Vt.variable]:"radii.sm",[Dt.variable]:"sizes.8"},xs:{[Nt.variable]:"fontSizes.xs",[Bt.variable]:"space.2",[Vt.variable]:"radii.sm",[Dt.variable]:"sizes.6"}},Ut={lg:Ft({field:Wt.lg,group:Wt.lg}),md:Ft({field:Wt.md,group:Wt.md}),sm:Ft({field:Wt.sm,group:Wt.sm}),xs:Ft({field:Wt.xs,group:Wt.xs})};function Ht(e){const{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||je("blue.500","blue.300")(e),errorBorderColor:n||je("red.500","red.300")(e)}}const qt=Ft((e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Ht(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:je("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Z(t,r),boxShadow:`0 0 0 1px ${Z(t,r)}`},_focusVisible:{zIndex:1,borderColor:Z(t,n),boxShadow:`0 0 0 1px ${Z(t,n)}`}},addon:{border:"1px solid",borderColor:je("inherit","whiteAlpha.50")(e),bg:je("gray.100","whiteAlpha.300")(e)}}})),Yt=Ft((e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Ht(e);return{field:{border:"2px solid",borderColor:"transparent",bg:je("gray.100","whiteAlpha.50")(e),_hover:{bg:je("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Z(t,r)},_focusVisible:{bg:"transparent",borderColor:Z(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:je("gray.100","whiteAlpha.50")(e)}}})),Xt=Ft((e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Ht(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Z(t,r),boxShadow:`0px 1px 0px 0px ${Z(t,r)}`},_focusVisible:{borderColor:Z(t,n),boxShadow:`0px 1px 0px 0px ${Z(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}})),Gt=Lt({baseStyle:$t,sizes:Ut,variants:{outline:qt,filled:Yt,flushed:Xt,unstyled:Ft({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}})},defaultProps:{size:"md",variant:"outline"}}),Kt=F("kbd-bg"),Qt={baseStyle:{[Kt.variable]:"colors.gray.100",_dark:{[Kt.variable]:"colors.whiteAlpha.100"},bg:Kt.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"}},{defineMultiStyleConfig:Zt,definePartsStyle:Jt}=T(m.keys),en=Zt({baseStyle:Jt({icon:{marginEnd:"2",display:"inline",verticalAlign:"text-bottom"}})}),{defineMultiStyleConfig:tn,definePartsStyle:nn}=T(v.keys),rn=F("menu-bg"),on=F("menu-shadow"),an=tn({baseStyle:nn({button:{transitionProperty:"common",transitionDuration:"normal"},list:{[rn.variable]:"#fff",[on.variable]:"shadows.sm",_dark:{[rn.variable]:"colors.gray.700",[on.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:"dropdown",borderRadius:"md",borderWidth:"1px",bg:rn.reference,boxShadow:on.reference},item:{py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[rn.variable]:"colors.gray.100",_dark:{[rn.variable]:"colors.whiteAlpha.100"}},_active:{[rn.variable]:"colors.gray.200",_dark:{[rn.variable]:"colors.whiteAlpha.200"}},_expanded:{[rn.variable]:"colors.gray.100",_dark:{[rn.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:rn.reference},groupTitle:{mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},icon:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},command:{opacity:.6},divider:{border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6}})}),{defineMultiStyleConfig:sn,definePartsStyle:ln}=T(g.keys),un=F("modal-bg"),cn=F("modal-shadow"),dn={bg:"blackAlpha.600",zIndex:"modal"},fn=e=>{const{isCentered:t,scrollBehavior:n}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:"inside"===n?"hidden":"auto",overscrollBehaviorY:"none"}},pn=e=>{const{isCentered:t,scrollBehavior:n}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:"inside"===n?"calc(100% - 7.5rem)":void 0,[un.variable]:"colors.white",[cn.variable]:"shadows.lg",_dark:{[un.variable]:"colors.gray.700",[cn.variable]:"shadows.dark-lg"},bg:un.reference,boxShadow:cn.reference}},hn={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},mn={position:"absolute",top:"2",insetEnd:"3"},vn=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:"inside"===t?"auto":void 0}},gn={px:"6",py:"4"};function bn(e){return ln("full"===e?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}const yn=sn({baseStyle:ln((e=>({overlay:dn,dialogContainer:he(fn,e),dialog:he(pn,e),header:hn,closeButton:mn,body:he(vn,e),footer:gn}))),sizes:{xs:bn("xs"),sm:bn("sm"),md:bn("md"),lg:bn("lg"),xl:bn("xl"),"2xl":bn("2xl"),"3xl":bn("3xl"),"4xl":bn("4xl"),"5xl":bn("5xl"),"6xl":bn("6xl"),full:bn("full")},defaultProps:{size:"md"}});function xn(e){const t=typeof e;return null!=e&&("object"===t||"function"===t)&&!function(e){return Array.isArray(e)}(e)}function wn(e){return xn(e)&&e.reference?e.reference:String(e)}const kn=(e,...t)=>t.map(wn).join(` ${e} `).replace(/calc/g,""),Sn=(...e)=>`calc(${kn("+",...e)})`,En=(...e)=>`calc(${kn("-",...e)})`,Cn=(...e)=>`calc(${kn("*",...e)})`,_n=(...e)=>`calc(${kn("/",...e)})`,On=e=>{const t=wn(e);return null==t||Number.isNaN(parseFloat(t))?Cn(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},Pn=Object.assign((e=>({add:(...t)=>Pn(Sn(e,...t)),subtract:(...t)=>Pn(En(e,...t)),multiply:(...t)=>Pn(Cn(e,...t)),divide:(...t)=>Pn(_n(e,...t)),negate:()=>Pn(On(e)),toString:()=>e.toString()})),{add:Sn,subtract:En,multiply:Cn,divide:_n,negate:On}),Rn={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},{defineMultiStyleConfig:Tn,definePartsStyle:An}=T(b.keys),In=it("number-input-stepper-width"),jn=it("number-input-input-padding"),Mn=Pn(In).add("0.5rem").toString(),zn=it("number-input-bg"),Fn=it("number-input-color"),Ln=it("number-input-border-color"),Dn={[In.variable]:"sizes.6",[jn.variable]:Mn},Nn=e=>he(Gt.baseStyle,e)?.field??{},Bn={width:In.reference},Vn={borderStart:"1px solid",borderStartColor:Ln.reference,color:Fn.reference,bg:zn.reference,[Fn.variable]:"colors.chakra-body-text",[Ln.variable]:"colors.chakra-border-color",_dark:{[Fn.variable]:"colors.whiteAlpha.800",[Ln.variable]:"colors.whiteAlpha.300"},_active:{[zn.variable]:"colors.gray.200",_dark:{[zn.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}};function $n(e){const t=Gt.sizes?.[e],n={lg:"md",md:"md",sm:"sm",xs:"sm"},r=t.field?.fontSize??"md",o=Rn.fontSizes[r];return An({field:{...t.field,paddingInlineEnd:jn.reference,verticalAlign:"top"},stepper:{fontSize:Pn(o).multiply(.75).toString(),_first:{borderTopEndRadius:n[e]},_last:{borderBottomEndRadius:n[e],mt:"-1px",borderTopWidth:1}}})}const Wn=Tn({baseStyle:An((e=>({root:Dn,field:he(Nn,e)??{},stepperGroup:Bn,stepper:Vn}))),sizes:{xs:$n("xs"),sm:$n("sm"),md:$n("md"),lg:$n("lg")},variants:Gt.variants,defaultProps:Gt.defaultProps}),Un={baseStyle:{...Gt.baseStyle?.field,textAlign:"center"},sizes:{lg:{fontSize:"lg",w:12,h:12,borderRadius:"md"},md:{fontSize:"md",w:10,h:10,borderRadius:"md"},sm:{fontSize:"sm",w:8,h:8,borderRadius:"sm"},xs:{fontSize:"xs",w:6,h:6,borderRadius:"sm"}},variants:{outline:e=>he(Gt.variants?.outline,e)?.field??{},flushed:e=>he(Gt.variants?.flushed,e)?.field??{},filled:e=>he(Gt.variants?.filled,e)?.field??{},unstyled:Gt.variants?.unstyled.field??{}},defaultProps:Gt.defaultProps},{defineMultiStyleConfig:Hn,definePartsStyle:qn}=T(y.keys),Yn=it("popper-bg"),Xn=it("popper-arrow-bg"),Gn=it("popper-arrow-shadow-color"),Kn=Hn({baseStyle:qn({popper:{zIndex:"popover"},content:{[Yn.variable]:"colors.white",bg:Yn.reference,[Xn.variable]:Yn.reference,[Gn.variable]:"colors.gray.200",_dark:{[Yn.variable]:"colors.gray.700",[Gn.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},header:{px:3,py:2,borderBottomWidth:"1px"},body:{px:3,py:2},footer:{px:3,py:2,borderTopWidth:"1px"},closeButton:{position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2}})}),{defineMultiStyleConfig:Qn,definePartsStyle:Zn}=T(x.keys),Jn=e=>{const{colorScheme:t,theme:n,isIndeterminate:r,hasStripe:o}=e,i=je(ee(),ee("1rem","rgba(0,0,0,0.1)"))(e),a=je(`${t}.500`,`${t}.200`)(e),s=`linear-gradient(\n to right,\n transparent 0%,\n ${Z(n,a)} 50%,\n transparent 100%\n )`;return{...!r&&o&&i,...r?{bgImage:s}:{bgColor:a}}},er={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},tr=e=>({bg:je("gray.100","whiteAlpha.300")(e)}),nr=e=>({transitionProperty:"common",transitionDuration:"slow",...Jn(e)}),rr=Zn((e=>({label:er,filledTrack:nr(e),track:tr(e)}))),or=Qn({sizes:{xs:Zn({track:{h:"1"}}),sm:Zn({track:{h:"2"}}),md:Zn({track:{h:"3"}}),lg:Zn({track:{h:"4"}})},baseStyle:rr,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:ir,definePartsStyle:ar}=T(w.keys),sr=e=>{const t=he(nt.baseStyle,e)?.control;return{...t,borderRadius:"full",_checked:{...t?._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},lr=ir({baseStyle:ar((e=>({label:nt.baseStyle?.(e).label,container:nt.baseStyle?.(e).container,control:sr(e)}))),sizes:{md:ar({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:ar({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:ar({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:ur,definePartsStyle:cr}=T(k.keys),dr=F("select-bg"),fr={paddingInlineEnd:"8"},pr=ur({baseStyle:cr({field:{...Gt.baseStyle?.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:dr.reference,[dr.variable]:"colors.white",_dark:{[dr.variable]:"colors.gray.700"},"> option, > optgroup":{bg:dr.reference}},icon:{width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}}}),sizes:{lg:{...Gt.sizes?.lg,field:{...Gt.sizes?.lg.field,...fr}},md:{...Gt.sizes?.md,field:{...Gt.sizes?.md.field,...fr}},sm:{...Gt.sizes?.sm,field:{...Gt.sizes?.sm.field,...fr}},xs:{...Gt.sizes?.xs,field:{...Gt.sizes?.xs.field,...fr},icon:{insetEnd:"1"}}},variants:Gt.variants,defaultProps:Gt.defaultProps}),hr=F("skeleton-start-color"),mr=F("skeleton-end-color"),vr={baseStyle:{[hr.variable]:"colors.gray.100",[mr.variable]:"colors.gray.400",_dark:{[hr.variable]:"colors.gray.800",[mr.variable]:"colors.gray.600"},background:hr.reference,borderColor:mr.reference,opacity:.7,borderRadius:"sm"}},gr=F("skip-link-bg"),br={baseStyle:{borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[gr.variable]:"colors.white",_dark:{[gr.variable]:"colors.gray.700"},bg:gr.reference}}};function yr(e){return xn(e)&&e.reference?e.reference:String(e)}const xr=(e,...t)=>t.map(yr).join(` ${e} `).replace(/calc/g,""),wr=(...e)=>`calc(${xr("+",...e)})`,kr=(...e)=>`calc(${xr("-",...e)})`,Sr=(...e)=>`calc(${xr("*",...e)})`,Er=(...e)=>`calc(${xr("/",...e)})`,Cr=e=>{const t=yr(e);return null==t||Number.isNaN(parseFloat(t))?Sr(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},_r=Object.assign((e=>({add:(...t)=>_r(wr(e,...t)),subtract:(...t)=>_r(kr(e,...t)),multiply:(...t)=>_r(Sr(e,...t)),divide:(...t)=>_r(Er(e,...t)),negate:()=>_r(Cr(e)),toString:()=>e.toString()})),{add:wr,subtract:kr,multiply:Sr,divide:Er,negate:Cr}),{defineMultiStyleConfig:Or,definePartsStyle:Pr}=T(S.keys),Rr=F("slider-thumb-size"),Tr=F("slider-track-size"),Ar=F("slider-bg"),Ir=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...Me({orientation:t,vertical:{h:"100%",px:_r(Rr.reference).divide(2).toString()},horizontal:{w:"100%",py:_r(Rr.reference).divide(2).toString()}})}},jr=e=>({...Me({orientation:e.orientation,horizontal:{h:Tr.reference},vertical:{w:Tr.reference}}),overflow:"hidden",borderRadius:"sm",[Ar.variable]:"colors.gray.200",_dark:{[Ar.variable]:"colors.whiteAlpha.200"},_disabled:{[Ar.variable]:"colors.gray.300",_dark:{[Ar.variable]:"colors.whiteAlpha.300"}},bg:Ar.reference}),Mr=e=>{const{orientation:t}=e;return{...Me({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}}),w:Rr.reference,h:Rr.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}},zr=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[Ar.variable]:`colors.${t}.500`,_dark:{[Ar.variable]:`colors.${t}.200`},bg:Ar.reference}},Fr=Or({baseStyle:Pr((e=>({container:Ir(e),track:jr(e),thumb:Mr(e),filledTrack:zr(e)}))),sizes:{lg:Pr({container:{[Rr.variable]:"sizes.4",[Tr.variable]:"sizes.1"}}),md:Pr({container:{[Rr.variable]:"sizes.3.5",[Tr.variable]:"sizes.1"}}),sm:Pr({container:{[Rr.variable]:"sizes.2.5",[Tr.variable]:"sizes.0.5"}})},defaultProps:{size:"md",colorScheme:"blue"}}),Lr=it("spinner-size"),Dr={baseStyle:{width:[Lr.reference],height:[Lr.reference]},sizes:{xs:{[Lr.variable]:"sizes.3"},sm:{[Lr.variable]:"sizes.4"},md:{[Lr.variable]:"sizes.6"},lg:{[Lr.variable]:"sizes.8"},xl:{[Lr.variable]:"sizes.12"}},defaultProps:{size:"md"}},{defineMultiStyleConfig:Nr,definePartsStyle:Br}=T(E.keys),Vr=Nr({baseStyle:Br({container:{},label:{fontWeight:"medium"},helpText:{opacity:.8,marginBottom:"2"},number:{verticalAlign:"baseline",fontWeight:"semibold"},icon:{marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"}}),sizes:{md:Br({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},defaultProps:{size:"md"}}),{defineMultiStyleConfig:$r,definePartsStyle:Wr}=T(["stepper","step","title","description","indicator","separator","icon","number"]),Ur=F("stepper-indicator-size"),Hr=F("stepper-icon-size"),qr=F("stepper-title-font-size"),Yr=F("stepper-description-font-size"),Xr=F("stepper-accent-color"),Gr=Wr((({colorScheme:e})=>({stepper:{display:"flex",justifyContent:"space-between",gap:"4","&[data-orientation=vertical]":{flexDirection:"column",alignItems:"flex-start"},"&[data-orientation=horizontal]":{flexDirection:"row",alignItems:"center"},[Xr.variable]:`colors.${e}.500`,_dark:{[Xr.variable]:`colors.${e}.200`}},title:{fontSize:qr.reference,fontWeight:"medium"},description:{fontSize:Yr.reference,color:"chakra-subtle-text"},number:{fontSize:qr.reference},step:{flexShrink:0,position:"relative",display:"flex",gap:"2","&[data-orientation=horizontal]":{alignItems:"center"},flex:"1","&:last-of-type:not([data-stretch])":{flex:"initial"}},icon:{flexShrink:0,width:Hr.reference,height:Hr.reference},indicator:{flexShrink:0,borderRadius:"full",width:Ur.reference,height:Ur.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:Xr.reference},"&[data-status=complete]":{bg:Xr.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:Xr.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${Ur.reference} - 8px)`,top:`calc(${Ur.reference} + 4px)`,insetStart:`calc(${Ur.reference} / 2 - 1px)`}}}))),Kr=$r({baseStyle:Gr,sizes:{xs:Wr({stepper:{[Ur.variable]:"sizes.4",[Hr.variable]:"sizes.3",[qr.variable]:"fontSizes.xs",[Yr.variable]:"fontSizes.xs"}}),sm:Wr({stepper:{[Ur.variable]:"sizes.6",[Hr.variable]:"sizes.4",[qr.variable]:"fontSizes.sm",[Yr.variable]:"fontSizes.xs"}}),md:Wr({stepper:{[Ur.variable]:"sizes.8",[Hr.variable]:"sizes.5",[qr.variable]:"fontSizes.md",[Yr.variable]:"fontSizes.sm"}}),lg:Wr({stepper:{[Ur.variable]:"sizes.10",[Hr.variable]:"sizes.6",[qr.variable]:"fontSizes.lg",[Yr.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Qr,definePartsStyle:Zr}=T(C.keys),Jr=it("switch-track-width"),eo=it("switch-track-height"),to=it("switch-track-diff"),no=Pn.subtract(Jr,eo),ro=it("switch-thumb-x"),oo=it("switch-bg"),io=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[Jr.reference],height:[eo.reference],transitionProperty:"common",transitionDuration:"fast",[oo.variable]:"colors.gray.300",_dark:{[oo.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[oo.variable]:`colors.${t}.500`,_dark:{[oo.variable]:`colors.${t}.200`}},bg:oo.reference}},ao={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[eo.reference],height:[eo.reference],_checked:{transform:`translateX(${ro.reference})`}},so=Qr({baseStyle:Zr((e=>({container:{[to.variable]:no,[ro.variable]:to.reference,_rtl:{[ro.variable]:Pn(to).negate().toString()}},track:io(e),thumb:ao}))),sizes:{sm:Zr({container:{[Jr.variable]:"1.375rem",[eo.variable]:"sizes.3"}}),md:Zr({container:{[Jr.variable]:"1.875rem",[eo.variable]:"sizes.4"}}),lg:Zr({container:{[Jr.variable]:"2.875rem",[eo.variable]:"sizes.6"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:lo,definePartsStyle:uo}=T(_.keys),co=uo({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),fo={"&[data-is-numeric=true]":{textAlign:"end"}},po=uo((e=>{const{colorScheme:t}=e;return{th:{color:je("gray.600","gray.400")(e),borderBottom:"1px",borderColor:je(`${t}.100`,`${t}.700`)(e),...fo},td:{borderBottom:"1px",borderColor:je(`${t}.100`,`${t}.700`)(e),...fo},caption:{color:je("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}})),ho=uo((e=>{const{colorScheme:t}=e;return{th:{color:je("gray.600","gray.400")(e),borderBottom:"1px",borderColor:je(`${t}.100`,`${t}.700`)(e),...fo},td:{borderBottom:"1px",borderColor:je(`${t}.100`,`${t}.700`)(e),...fo},caption:{color:je("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:je(`${t}.100`,`${t}.700`)(e)},td:{background:je(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}})),mo=lo({baseStyle:co,variants:{simple:po,striped:ho,unstyled:{}},sizes:{sm:uo({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}),md:uo({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:uo({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),vo=F("tabs-color"),go=F("tabs-bg"),bo=F("tabs-border-color"),{defineMultiStyleConfig:yo,definePartsStyle:xo}=T(O.keys),wo=e=>{const{orientation:t}=e;return{display:"vertical"===t?"flex":"block"}},ko=e=>{const{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}},So=e=>{const{align:t="start",orientation:n}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:"vertical"===n?"column":"row"}},Eo={p:4},Co=xo((e=>({root:wo(e),tab:ko(e),tablist:So(e),tabpanel:Eo}))),_o={sm:xo({tab:{py:1,px:4,fontSize:"sm"}}),md:xo({tab:{fontSize:"md",py:2,px:4}}),lg:xo({tab:{fontSize:"lg",py:3,px:4}})},Oo=xo((e=>{const{colorScheme:t,orientation:n}=e,r="vertical"===n,o=r?"borderStart":"borderBottom",i=r?"marginStart":"marginBottom";return{tablist:{[o]:"2px solid",borderColor:"inherit"},tab:{[o]:"2px solid",borderColor:"transparent",[i]:"-2px",_selected:{[vo.variable]:`colors.${t}.600`,_dark:{[vo.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[go.variable]:"colors.gray.200",_dark:{[go.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:vo.reference,bg:go.reference}}})),Po=xo((e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[bo.variable]:"transparent",_selected:{[vo.variable]:`colors.${t}.600`,[bo.variable]:"colors.white",_dark:{[vo.variable]:`colors.${t}.300`,[bo.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:bo.reference},color:vo.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}})),Ro=xo((e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[go.variable]:"colors.gray.50",_dark:{[go.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[go.variable]:"colors.white",[vo.variable]:`colors.${t}.600`,_dark:{[go.variable]:"colors.gray.800",[vo.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:vo.reference,bg:go.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}})),To=xo((e=>{const{colorScheme:t,theme:n}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:Z(n,`${t}.700`),bg:Z(n,`${t}.100`)}}}})),Ao=xo((e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[vo.variable]:"colors.gray.600",_dark:{[vo.variable]:"inherit"},_selected:{[vo.variable]:"colors.white",[go.variable]:`colors.${t}.600`,_dark:{[vo.variable]:"colors.gray.800",[go.variable]:`colors.${t}.300`}},color:vo.reference,bg:go.reference}}})),Io=yo({baseStyle:Co,sizes:_o,variants:{line:Oo,enclosed:Po,"enclosed-colored":Ro,"soft-rounded":To,"solid-rounded":Ao,unstyled:xo({})},defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),{defineMultiStyleConfig:jo,definePartsStyle:Mo}=T(P.keys),zo=F("tag-bg"),Fo=F("tag-color"),Lo=F("tag-shadow"),Do=F("tag-min-height"),No=F("tag-min-width"),Bo=F("tag-font-size"),Vo=F("tag-padding-inline"),$o=Mo({container:{fontWeight:"medium",lineHeight:1.2,outline:0,[Fo.variable]:Oe.color.reference,[zo.variable]:Oe.bg.reference,[Lo.variable]:Oe.shadow.reference,color:Fo.reference,bg:zo.reference,boxShadow:Lo.reference,borderRadius:"md",minH:Do.reference,minW:No.reference,fontSize:Bo.reference,px:Vo.reference,_focusVisible:{[Lo.variable]:"shadows.outline"}},label:{lineHeight:1.2,overflow:"visible"},closeButton:{fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}}}),Wo={sm:Mo({container:{[Do.variable]:"sizes.5",[No.variable]:"sizes.5",[Bo.variable]:"fontSizes.xs",[Vo.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:Mo({container:{[Do.variable]:"sizes.6",[No.variable]:"sizes.6",[Bo.variable]:"fontSizes.sm",[Vo.variable]:"space.2"}}),lg:Mo({container:{[Do.variable]:"sizes.8",[No.variable]:"sizes.8",[Bo.variable]:"fontSizes.md",[Vo.variable]:"space.3"}})},Uo=jo({variants:{subtle:Mo((e=>({container:Pe.variants?.subtle(e)}))),solid:Mo((e=>({container:Pe.variants?.solid(e)}))),outline:Mo((e=>({container:Pe.variants?.outline(e)})))},baseStyle:$o,sizes:Wo,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),Ho={...Gt.baseStyle?.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},qo={outline:e=>Gt.variants?.outline(e).field??{},flushed:e=>Gt.variants?.flushed(e).field??{},filled:e=>Gt.variants?.filled(e).field??{},unstyled:Gt.variants?.unstyled.field??{}},Yo={baseStyle:Ho,sizes:{xs:Gt.sizes?.xs.field??{},sm:Gt.sizes?.sm.field??{},md:Gt.sizes?.md.field??{},lg:Gt.sizes?.lg.field??{}},variants:qo,defaultProps:{size:"md",variant:"outline"}},Xo=it("tooltip-bg"),Go=it("tooltip-fg"),Ko=it("popper-arrow-bg"),Qo={bg:Xo.reference,color:Go.reference,[Xo.variable]:"colors.gray.700",[Go.variable]:"colors.whiteAlpha.900",_dark:{[Xo.variable]:"colors.gray.300",[Go.variable]:"colors.gray.900"},[Ko.variable]:Xo.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},Zo={Accordion:j,Alert:de,Avatar:_e,Badge:Pe,Breadcrumb:Ie,Button:Le,Checkbox:nt,CloseButton:lt,Code:dt,Container:{baseStyle:{w:"100%",mx:"auto",maxW:"prose",px:"4"}},Divider:{baseStyle:{opacity:.6,borderColor:"inherit"},variants:{solid:{borderStyle:"solid"},dashed:{borderStyle:"dashed"}},defaultProps:{variant:"solid"}},Drawer:Et,Editable:Ot,Form:At,FormError:zt,FormLabel:{baseStyle:{fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}}},Heading:{baseStyle:{fontFamily:"heading",fontWeight:"bold"},sizes:{"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},defaultProps:{size:"xl"}},Input:Gt,Kbd:Qt,Link:{baseStyle:{transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}}},List:en,Menu:an,Modal:yn,NumberInput:Wn,PinInput:Un,Popover:Kn,Progress:or,Radio:lr,Select:pr,Skeleton:vr,SkipLink:br,Slider:Fr,Spinner:Dr,Stat:Vr,Switch:so,Table:mo,Tabs:Io,Tag:Uo,Textarea:Yo,Tooltip:{baseStyle:Qo},Card:Xe,Stepper:Kr},Jo={semanticTokens:{colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},direction:"ltr",...{breakpoints:{base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},zIndices:{hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},radii:{none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},blur:{none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},colors:{transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"}},...Rn,sizes:pe,shadows:{xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},space:fe,borders:{none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},transition:{property:{common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},easing:{"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},duration:{"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"}}},components:Zo,styles:{global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color"}}},config:{useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"}};var ei=n(4848);function ti(e){return null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function ni(e){return!(!e.parentElement||!ni(e.parentElement))||e.hidden}var ri=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),oi=Math.abs,ii=String.fromCharCode,ai=Object.assign;function si(e){return e.trim()}function li(e,t,n){return e.replace(t,n)}function ui(e,t){return e.indexOf(t)}function ci(e,t){return 0|e.charCodeAt(t)}function di(e,t,n){return e.slice(t,n)}function fi(e){return e.length}function pi(e){return e.length}function hi(e,t){return t.push(e),e}var mi=1,vi=1,gi=0,bi=0,yi=0,xi="";function wi(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:mi,column:vi,length:a,return:""}}function ki(e,t){return ai(wi("",null,null,"",null,null,0),e,{length:-e.length},t)}function Si(){return yi=bi>0?ci(xi,--bi):0,vi--,10===yi&&(vi=1,mi--),yi}function Ei(){return yi=bi<gi?ci(xi,bi++):0,vi++,10===yi&&(vi=1,mi++),yi}function Ci(){return ci(xi,bi)}function _i(){return bi}function Oi(e,t){return di(xi,e,t)}function Pi(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ri(e){return mi=vi=1,gi=fi(xi=e),bi=0,[]}function Ti(e){return xi="",e}function Ai(e){return si(Oi(bi-1,Mi(91===e?e+2:40===e?e+1:e)))}function Ii(e){for(;(yi=Ci())&&yi<33;)Ei();return Pi(e)>2||Pi(yi)>3?"":" "}function ji(e,t){for(;--t&&Ei()&&!(yi<48||yi>102||yi>57&&yi<65||yi>70&&yi<97););return Oi(e,_i()+(t<6&&32==Ci()&&32==Ei()))}function Mi(e){for(;Ei();)switch(yi){case e:return bi;case 34:case 39:34!==e&&39!==e&&Mi(yi);break;case 40:41===e&&Mi(e);break;case 92:Ei()}return bi}function zi(e,t){for(;Ei()&&e+yi!==57&&(e+yi!==84||47!==Ci()););return"/*"+Oi(t,bi-1)+"*"+ii(47===e?e:Ei())}function Fi(e){for(;!Pi(Ci());)Ei();return Oi(e,bi)}var Li="-ms-",Di="-moz-",Ni="-webkit-",Bi="comm",Vi="rule",$i="decl",Wi="@keyframes";function Ui(e,t){for(var n="",r=pi(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Hi(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case $i:return e.return=e.return||e.value;case Bi:return"";case Wi:return e.return=e.value+"{"+Ui(e.children,r)+"}";case Vi:e.value=e.props.join(",")}return fi(n=Ui(e.children,r))?e.return=e.value+"{"+n+"}":""}function qi(e){return Ti(Yi("",null,null,null,[""],e=Ri(e),0,[0],e))}function Yi(e,t,n,r,o,i,a,s,l){for(var u=0,c=0,d=a,f=0,p=0,h=0,m=1,v=1,g=1,b=0,y="",x=o,w=i,k=r,S=y;v;)switch(h=b,b=Ei()){case 40:if(108!=h&&58==ci(S,d-1)){-1!=ui(S+=li(Ai(b),"&","&\f"),"&\f")&&(g=-1);break}case 34:case 39:case 91:S+=Ai(b);break;case 9:case 10:case 13:case 32:S+=Ii(h);break;case 92:S+=ji(_i()-1,7);continue;case 47:switch(Ci()){case 42:case 47:hi(Gi(zi(Ei(),_i()),t,n),l);break;default:S+="/"}break;case 123*m:s[u++]=fi(S)*g;case 125*m:case 59:case 0:switch(b){case 0:case 125:v=0;case 59+c:-1==g&&(S=li(S,/\f/g,"")),p>0&&fi(S)-d&&hi(p>32?Ki(S+";",r,n,d-1):Ki(li(S," ","")+";",r,n,d-2),l);break;case 59:S+=";";default:if(hi(k=Xi(S,t,n,u,c,o,s,y,x=[],w=[],d),i),123===b)if(0===c)Yi(S,t,k,k,x,i,d,s,w);else switch(99===f&&110===ci(S,3)?100:f){case 100:case 108:case 109:case 115:Yi(e,k,k,r&&hi(Xi(e,k,k,0,0,o,s,y,o,x=[],d),w),o,w,d,s,r?x:w);break;default:Yi(S,k,k,k,[""],w,0,s,w)}}u=c=p=0,m=g=1,y=S="",d=a;break;case 58:d=1+fi(S),p=h;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==Si())continue;switch(S+=ii(b),b*m){case 38:g=c>0?1:(S+="\f",-1);break;case 44:s[u++]=(fi(S)-1)*g,g=1;break;case 64:45===Ci()&&(S+=Ai(Ei())),f=Ci(),c=d=fi(y=S+=Fi(_i())),b++;break;case 45:45===h&&2==fi(S)&&(m=0)}}return i}function Xi(e,t,n,r,o,i,a,s,l,u,c){for(var d=o-1,f=0===o?i:[""],p=pi(f),h=0,m=0,v=0;h<r;++h)for(var g=0,b=di(e,d+1,d=oi(m=a[h])),y=e;g<p;++g)(y=si(m>0?f[g]+" "+b:li(b,/&\f/g,f[g])))&&(l[v++]=y);return wi(e,t,n,0===o?Vi:s,l,u,c)}function Gi(e,t,n){return wi(e,t,n,Bi,ii(yi),di(e,2,-2),0)}function Ki(e,t,n,r){return wi(e,t,n,$i,di(e,0,r),di(e,r+1,-1),r)}var Qi=function(e,t,n){for(var r=0,o=0;r=o,o=Ci(),38===r&&12===o&&(t[n]=1),!Pi(o);)Ei();return Oi(e,bi)},Zi=new WeakMap,Ji=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Zi.get(n))&&!r){Zi.set(e,!0);for(var o=[],i=function(e,t){return Ti(function(e,t){var n=-1,r=44;do{switch(Pi(r)){case 0:38===r&&12===Ci()&&(t[n]=1),e[n]+=Qi(bi-1,t,n);break;case 2:e[n]+=Ai(r);break;case 4:if(44===r){e[++n]=58===Ci()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=ii(r)}}while(r=Ei());return e}(Ri(e),t))}(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var u=0;u<a.length;u++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[u]):a[u]+" "+i[s]}}},ea=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function ta(e,t){switch(function(e,t){return 45^ci(e,0)?(((t<<2^ci(e,0))<<2^ci(e,1))<<2^ci(e,2))<<2^ci(e,3):0}(e,t)){case 5103:return Ni+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ni+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ni+e+Di+e+Li+e+e;case 6828:case 4268:return Ni+e+Li+e+e;case 6165:return Ni+e+Li+"flex-"+e+e;case 5187:return Ni+e+li(e,/(\w+).+(:[^]+)/,Ni+"box-$1$2"+Li+"flex-$1$2")+e;case 5443:return Ni+e+Li+"flex-item-"+li(e,/flex-|-self/,"")+e;case 4675:return Ni+e+Li+"flex-line-pack"+li(e,/align-content|flex-|-self/,"")+e;case 5548:return Ni+e+Li+li(e,"shrink","negative")+e;case 5292:return Ni+e+Li+li(e,"basis","preferred-size")+e;case 6060:return Ni+"box-"+li(e,"-grow","")+Ni+e+Li+li(e,"grow","positive")+e;case 4554:return Ni+li(e,/([^-])(transform)/g,"$1"+Ni+"$2")+e;case 6187:return li(li(li(e,/(zoom-|grab)/,Ni+"$1"),/(image-set)/,Ni+"$1"),e,"")+e;case 5495:case 3959:return li(e,/(image-set\([^]*)/,Ni+"$1$`$1");case 4968:return li(li(e,/(.+:)(flex-)?(.*)/,Ni+"box-pack:$3"+Li+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ni+e+e;case 4095:case 3583:case 4068:case 2532:return li(e,/(.+)-inline(.+)/,Ni+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(fi(e)-1-t>6)switch(ci(e,t+1)){case 109:if(45!==ci(e,t+4))break;case 102:return li(e,/(.+:)(.+)-([^]+)/,"$1"+Ni+"$2-$3$1"+Di+(108==ci(e,t+3)?"$3":"$2-$3"))+e;case 115:return~ui(e,"stretch")?ta(li(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==ci(e,t+1))break;case 6444:switch(ci(e,fi(e)-3-(~ui(e,"!important")&&10))){case 107:return li(e,":",":"+Ni)+e;case 101:return li(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ni+(45===ci(e,14)?"inline-":"")+"box$3$1"+Ni+"$2$3$1"+Li+"$2box$3")+e}break;case 5936:switch(ci(e,t+11)){case 114:return Ni+e+Li+li(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ni+e+Li+li(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ni+e+Li+li(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ni+e+Li+e+e}return e}var na=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case $i:e.return=ta(e.value,e.length);break;case Wi:return Ui([ki(e,{value:li(e.value,"@","@"+Ni)})],r);case Vi:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return Ui([ki(e,{props:[li(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Ui([ki(e,{props:[li(t,/:(plac\w+)/,":"+Ni+"input-$1")]}),ki(e,{props:[li(t,/:(plac\w+)/,":-moz-$1")]}),ki(e,{props:[li(t,/:(plac\w+)/,Li+"input-$1")]})],r)}return""}))}}],ra=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,i=e.stylisPlugins||na,a={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)}));var l,u,c,d,f=[Hi,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],p=(u=[Ji,ea].concat(i,f),c=pi(u),function(e,t,n,r){for(var o="",i=0;i<c;i++)o+=u[i](e,t,n,r)||"";return o});o=function(e,t,n,r){l=n,function(e){Ui(qi(e),p)}(e?e+"{"+t.styles+"}":t.styles),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new ri({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return h.sheet.hydrate(s),h};function oa(){return oa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oa.apply(null,arguments)}var ia=function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}};function aa(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var sa=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},la=function(e,t,n){sa(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}},ua={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function ca(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var da=/[A-Z]|^ms/g,fa=/_EMO_([^_]+?)_([^]*?)_EMO_/g,pa=function(e){return 45===e.charCodeAt(1)},ha=function(e){return null!=e&&"boolean"!=typeof e},ma=ca((function(e){return pa(e)?e:e.replace(da,"-$&").toLowerCase()})),va=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(fa,(function(e,t,n){return ba={name:t,styles:n,next:ba},t}))}return 1===ua[e]||pa(e)||"number"!=typeof t||0===t?t:t+"px"};function ga(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return ba={name:o.name,styles:o.styles,next:ba},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)ba={name:a.name,styles:a.styles,next:ba},a=a.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=ga(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=i+"{"+t[s]+"}":ha(s)&&(r+=ma(i)+":"+va(i,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=ga(e,t,a);switch(i){case"animation":case"animationName":r+=ma(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var u=0;u<a.length;u++)ha(a[u])&&(r+=ma(i)+":"+va(i,a[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=ba,l=n(e);return ba=s,ga(e,t,l)}}var u=n;if(null==t)return u;var c=t[u];return void 0!==c?c:u}var ba,ya=/label:\s*([^\s;{]+)\s*(;|$)/g;function xa(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";ba=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=ga(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=ga(n,t,e[a]),r&&(o+=i[a]);ya.lastIndex=0;for(var s,l="";null!==(s=ya.exec(o));)l+="-"+s[1];var u=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:u,styles:o,next:ba}}var wa=!!e.useInsertionEffect&&e.useInsertionEffect,ka=wa||function(e){return e()},Sa=wa||e.useLayoutEffect,Ea=e.createContext("undefined"!=typeof HTMLElement?ra({key:"css"}):null),Ca=(Ea.Provider,function(t){return(0,e.forwardRef)((function(n,r){var o=(0,e.useContext)(Ea);return t(n,o,r)}))}),_a=e.createContext({}),Oa=ia((function(e){return ia((function(t){return function(e,t){return"function"==typeof t?t(e):oa({},e,t)}(e,t)}))})),Pa=function(t){var n=e.useContext(_a);return t.theme!==n&&(n=Oa(n)(t.theme)),e.createElement(_a.Provider,{value:n},t.children)},Ra={}.hasOwnProperty,Ta="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Aa=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return sa(t,n,r),ka((function(){return la(t,n,r)})),null},Ia=Ca((function(t,n,r){var o=t.css;"string"==typeof o&&void 0!==n.registered[o]&&(o=n.registered[o]);var i=t[Ta],a=[o],s="";"string"==typeof t.className?s=aa(n.registered,a,t.className):null!=t.className&&(s=t.className+" ");var l=xa(a,void 0,e.useContext(_a));s+=n.key+"-"+l.name;var u={};for(var c in t)Ra.call(t,c)&&"css"!==c&&c!==Ta&&(u[c]=t[c]);return u.className=s,r&&(u.ref=r),e.createElement(e.Fragment,null,e.createElement(Aa,{cache:n,serialized:l,isStringTag:"string"==typeof i}),e.createElement(i,u))})),ja=Ia;const Ma=(0,e.createContext)({});function za(){const t=(0,e.useContext)(Ma);if(void 0===t)throw new Error("useColorMode must be used within a ColorModeProvider");return t}function Fa(e,t){const{colorMode:n}=za();return"dark"===n?t:e}Ma.displayName="ColorModeContext";const La="chakra-ui-light",Da="chakra-ui-dark",Na="chakra-ui-color-mode",Ba=(Va=Na,{ssr:!1,type:"localStorage",get(e){if(!globalThis?.document)return e;let t;try{t=localStorage.getItem(Va)||e}catch(e){}return t||e},set(e){try{localStorage.setItem(Va,e)}catch(e){}}});var Va;const $a=()=>{},Wa=Boolean(globalThis?.document)?e.useLayoutEffect:e.useEffect;function Ua(e,t){return"cookie"===e.type&&e.ssr?e.get(t):t}const Ha=Ca((function(t,n){const{value:r,children:o,options:{useSystemColorMode:i,initialColorMode:a,disableTransitionOnChange:s}={},colorModeManager:l=Ba}=t,u="dark"===a?"dark":"light",[c,d]=(0,e.useState)((()=>Ua(l,u))),[f,p]=(0,e.useState)((()=>Ua(l))),{getSystemTheme:h,setClassName:m,setDataset:v,addListener:g}=(0,e.useMemo)((()=>function(e={}){const{preventTransition:t=!0,nonce:n}=e,r={setDataset:e=>{const n=t?r.preventTransition():void 0;document.documentElement.dataset.theme=e,document.documentElement.style.colorScheme=e,n?.()},setClassName(e){document.body.classList.add(e?Da:La),document.body.classList.remove(e?La:Da)},query:()=>window.matchMedia("(prefers-color-scheme: dark)"),getSystemTheme:e=>r.query().matches??"dark"===e?"dark":"light",addListener(e){const t=r.query(),n=t=>{e(t.matches?"dark":"light")};return"function"==typeof t.addListener?t.addListener(n):t.addEventListener("change",n),()=>{"function"==typeof t.removeListener?t.removeListener(n):t.removeEventListener("change",n)}},preventTransition(){const e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),void 0!==n&&(e.nonce=n),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),requestAnimationFrame((()=>{requestAnimationFrame((()=>{document.head.removeChild(e)}))}))}}};return r}({preventTransition:s,nonce:n?.nonce})),[s,n?.nonce]),b="system"!==a||c?c:f,y=(0,e.useCallback)((e=>{const t="system"===e?h():e;d(t),m("dark"===t),v(t),l.set(t)}),[l,h,m,v]);Wa((()=>{"system"===a&&p(h())}),[]),(0,e.useEffect)((()=>{const e=l.get();y(e||("system"!==a?u:"system"))}),[l,u,a,y]);const x=(0,e.useCallback)((()=>{y("dark"===b?"light":"dark")}),[b,y]);(0,e.useEffect)((()=>{if(i)return g(y)}),[i,g,y]);const w=(0,e.useMemo)((()=>({colorMode:r??b,toggleColorMode:r?$a:x,setColorMode:r?$a:y,forced:void 0!==r})),[b,x,y,r]);return(0,ei.jsx)(Ma.Provider,{value:w,children:o})}));Ha.displayName="ColorModeProvider",n(4146);var qa=function(t,n){var r=arguments;if(null==n||!Ra.call(n,"css"))return e.createElement.apply(void 0,r);var o=r.length,i=new Array(o);i[0]=ja,i[1]=function(e,t){var n={};for(var r in t)Ra.call(t,r)&&(n[r]=t[r]);return n[Ta]=e,n}(t,n);for(var a=2;a<o;a++)i[a]=r[a];return e.createElement.apply(null,i)},Ya=Ca((function(t,n){var r=xa([t.styles],void 0,e.useContext(_a)),o=e.useRef();return Sa((function(){var e=n.key+"-global",t=new n.sheet.constructor({key:e,nonce:n.sheet.nonce,container:n.sheet.container,speedy:n.sheet.isSpeedy}),i=!1,a=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return n.sheet.tags.length&&(t.before=n.sheet.tags[0]),null!==a&&(i=!0,a.setAttribute("data-emotion",e),t.hydrate([a])),o.current=[t,i],function(){t.flush()}}),[n]),Sa((function(){var e=o.current,t=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&la(n,r.next,!0),t.tags.length){var i=t.tags[t.tags.length-1].nextElementSibling;t.before=i,t.flush()}n.insert("",r,t,!1)}}),[n,r.name]),null}));function Xa(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return xa(t)}var Ga=function(){var e=Xa.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}};const Ka=String.raw,Qa=Ka`
:root,
:host {
--chakra-vh: 100vh;
}
@supports (height: -webkit-fill-available) {
:root,
:host {
--chakra-vh: -webkit-fill-available;
}
}
@supports (height: -moz-fill-available) {
:root,
:host {
--chakra-vh: -moz-fill-available;
}
}
@supports (height: 100dvh) {
:root,
:host {
--chakra-vh: 100dvh;
}
}
`,Za=()=>(0,ei.jsx)(Ya,{styles:Qa}),Ja=({scope:e=""})=>(0,ei.jsx)(Ya,{styles:Ka`
html {
line-height: 1.5;
-webkit-text-size-adjust: 100%;
font-family: system-ui, sans-serif;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
-moz-osx-font-smoothing: grayscale;
touch-action: manipulation;
}
body {
position: relative;
min-height: 100%;
margin: 0;
font-feature-settings: "kern";
}
${e} :where(*, *::before, *::after) {
border-width: 0;
border-style: solid;
box-sizing: border-box;
word-wrap: break-word;
}
main {
display: block;
}
${e} hr {
border-top-width: 1px;
box-sizing: content-box;
height: 0;
overflow: visible;
}
${e} :where(pre, code, kbd,samp) {
font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
font-size: 1em;
}
${e} a {
background-color: transparent;
color: inherit;
text-decoration: inherit;
}
${e} abbr[title] {
border-bottom: none;
text-decoration: underline;
-webkit-text-decoration: underline dotted;
text-decoration: underline dotted;
}
${e} :where(b, strong) {
font-weight: bold;
}
${e} small {
font-size: 80%;
}
${e} :where(sub,sup) {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
${e} sub {
bottom: -0.25em;
}
${e} sup {
top: -0.5em;
}
${e} img {
border-style: none;
}
${e} :where(button, input, optgroup, select, textarea) {
font-family: inherit;
font-size: 100%;
line-height: 1.15;
margin: 0;
}
${e} :where(button, input) {
overflow: visible;
}
${e} :where(button, select) {
text-transform: none;
}
${e} :where(
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner
) {
border-style: none;
padding: 0;
}
${e} fieldset {
padding: 0.35em 0.75em 0.625em;
}
${e} legend {
box-sizing: border-box;
color: inherit;
display: table;
max-width: 100%;
padding: 0;
white-space: normal;
}
${e} progress {
vertical-align: baseline;
}
${e} textarea {
overflow: auto;
}
${e} :where([type="checkbox"], [type="radio"]) {
box-sizing: border-box;
padding: 0;
}
${e} input[type="number"]::-webkit-inner-spin-button,
${e} input[type="number"]::-webkit-outer-spin-button {
-webkit-appearance: none !important;
}
${e} input[type="number"] {
-moz-appearance: textfield;
}
${e} input[type="search"] {
-webkit-appearance: textfield;
outline-offset: -2px;
}
${e} input[type="search"]::-webkit-search-decoration {
-webkit-appearance: none !important;
}
${e} ::-webkit-file-upload-button {
-webkit-appearance: button;
font: inherit;
}
${e} details {
display: block;
}
${e} summary {
display: list-item;
}
template {
display: none;
}
[hidden] {
display: none !important;
}
${e} :where(
blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre
) {
margin: 0;
}
${e} button {
background: transparent;
padding: 0;
}
${e} fieldset {
margin: 0;
padding: 0;
}
${e} :where(ol, ul) {
margin: 0;
padding: 0;
}
${e} textarea {
resize: vertical;
}
${e} :where(button, [role="button"]) {
cursor: pointer;
}
${e} button::-moz-focus-inner {
border: 0 !important;
}
${e} table {
border-collapse: collapse;
}
${e} :where(h1, h2, h3, h4, h5, h6) {
font-size: inherit;
font-weight: inherit;
}
${e} :where(button, input, optgroup, select, textarea) {
padding: 0;
line-height: inherit;
color: inherit;
}
${e} :where(img, svg, video, canvas, audio, iframe, embed, object) {
display: block;
}
${e} :where(img, video) {
max-width: 100%;
height: auto;
}
[data-js-focus-visible]
:focus:not([data-focus-visible-added]):not(
[data-focus-visible-disabled]
) {
outline: none;
box-shadow: none;
}
${e} select::-ms-expand {
display: none;
}
${Qa}
`});function es(e){const t=null==e?0:e.length;return t?e[t-1]:void 0}function ts(e){if(null==e)return e;const{unitless:t}=function(e){const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}(e);return t||"number"==typeof e?`${e}px`:e}const ns=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,rs=e=>Object.fromEntries(Object.entries(e).sort(ns));function os(e){const t=rs(e);return Object.assign(Object.values(t),t)}function is(e){return e?"number"==typeof(e=ts(e)??e)?`${e+-.02}`:e.replace(/(\d+\.?\d*)/u,(e=>`${parseFloat(e)+-.02}`)):e}function as(e,t){const n=["@media screen"];return e&&n.push("and",`(min-width: ${ts(e)})`),t&&n.push("and",`(max-width: ${ts(t)})`),n.join(" ")}function ss(e){if(!e)return null;e.base=e.base??"0px";const t=os(e),n=Object.entries(e).sort(ns).map((([e,t],n,r)=>{let[,o]=r[n+1]??[];return o=parseFloat(o)>0?is(o):void 0,{_minW:is(t),breakpoint:e,minW:t,maxW:o,maxWQuery:as(null,o),minWQuery:as(t),minMaxQuery:as(t,o)}})),r=function(e){const t=Object.keys(rs(e));return new Set(t)}(e),o=Array.from(r.values());return{keys:r,normalized:t,isResponsive(e){const t=Object.keys(e);return t.length>0&&t.every((e=>r.has(e)))},asObject:rs(e),asArray:os(e),details:n,get:e=>n.find((t=>t.breakpoint===e)),media:[null,...t.map((e=>as(e))).slice(1)],toArrayValue(e){if(!xn(e))throw new Error("toArrayValue: value must be an object");const t=o.map((t=>e[t]??null));for(;null===es(t);)t.pop();return t},toObjectValue(e){if(!Array.isArray(e))throw new Error("toObjectValue: value must be an array");return e.reduce(((e,t,n)=>{const r=o[n];return null!=r&&null!=t&&(e[r]=t),e}),{})}}}var ls=n(8394);const us=(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,cs=(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,ds=(e,t)=>`${e}:focus-visible ${t}`,fs=(e,t)=>`${e}:focus-within ${t}`,ps=(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,hs=(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,ms=(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,vs=(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,gs=e=>ys((t=>e(t,"&")),"[role=group]","[data-group]",".group"),bs=e=>ys((t=>e(t,"~ &")),"[data-peer]",".peer"),ys=(e,...t)=>t.map(e).join(", "),xs={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within, &[data-focus-within]",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty, &[data-empty]",_expanded:"&[aria-expanded=true], &[data-expanded], &[data-state=expanded]",_checked:"&[aria-checked=true], &[data-checked], &[data-state=checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate], &[data-state=indeterminate]",_groupOpen:gs(((e,t)=>`${e}[data-open], ${e}[open], ${e}[data-state=open] ${t}`)),_groupClosed:gs(((e,t)=>`${e}[data-closed], ${e}[data-state=closed] ${t}`)),_groupHover:gs(us),_peerHover:bs(us),_groupFocus:gs(cs),_peerFocus:bs(cs),_groupFocusVisible:gs(ds),_peerFocusVisible:bs(ds),_groupActive:gs(ps),_peerActive:bs(ps),_groupDisabled:gs(hs),_peerDisabled:bs(hs),_groupInvalid:gs(ms),_peerInvalid:bs(ms),_groupChecked:gs(vs),_peerChecked:bs(vs),_groupFocusWithin:gs(fs),_peerFocusWithin:bs(fs),_peerPlaceholderShown:bs(((e,t)=>`${e}:placeholder-shown ${t}`)),_placeholder:"&::placeholder, &[data-placeholder]",_placeholderShown:"&:placeholder-shown, &[data-placeholder-shown]",_fullScreen:"&:fullscreen, &[data-fullscreen]",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]",_open:"&[data-open], &[open], &[data-state=open]",_closed:"&[data-closed], &[data-state=closed]",_complete:"&[data-complete]",_incomplete:"&[data-incomplete]",_current:"&[data-current]"};function ws(e){const t=e.conditions??{},n=Object.fromEntries(Object.entries(t).map((([e,t])=>[`_${e}`,t])));return{...xs,...n}}function ks(e){return Object.keys(ws(e))}function Ss(e,t,n={}){const{stop:r,getKey:o}=n;return function e(n,i=[]){if(xn(n)||Array.isArray(n)){const a={};for(const[s,l]of Object.entries(n)){const u=o?.(s)??s,c=[...i,u];if(r?.(n,c))return t(n,i);a[u]=e(l,c)}return a}return t(n,i)}(e)}function Es(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}const Cs=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function _s(e){return Es(e,Cs)}function Os(e,t){return F(String(e).replace(/\./g,"-"),void 0,t)}function Ps(e,...t){return"function"==typeof e?e(...t):e}const Rs=e=>"string"==typeof e?e.replace(/!(important)?$/,"").trim():e;function Ts(e){const{scale:t,transform:n,compose:r}=e;return(e,o)=>{const i=((e,t)=>n=>{const r=String(t),o=(e=>/!(important)?$/.test(e))(r),i=Rs(r),a=e?`${e}.${i}`:i;let s=xn(n.__cssMap)&&a in n.__cssMap?n.__cssMap[a].varRef:t;return s=Rs(s),o?`${s} !important`:s})(t,e)(o);let a=n?.(i,o)??i;return r&&(a=r(a,o)),a}}const As=(...e)=>t=>e.reduce(((e,t)=>t(e)),t);function Is(e,t){return n=>{const r={property:n,scale:e};return r.transform=Ts({scale:e,transform:t}),r}}const js=({rtl:e,ltr:t})=>n=>"rtl"===n.direction?e:t,Ms=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"],zs={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},Fs={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"},Ls={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},Ds={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},Ns=new Set(Object.values(Ds)),Bs=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),Vs=e=>e.trim(),$s=e=>"string"==typeof e&&e.includes("(")&&e.includes(")"),Ws=e=>t=>`${e}(${t})`,Us={filter:e=>"auto"!==e?e:zs,backdropFilter:e=>"auto"!==e?e:Fs,ring:e=>function(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}(Us.px(e)),bgClip:e=>"text"===e?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e},transform:e=>"auto"===e?["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...Ms].join(" "):"auto-gpu"===e?["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...Ms].join(" "):e,vh:e=>"$100vh"===e?"var(--chakra-vh)":e,px(e){if(null==e)return e;const{unitless:t}=(e=>{const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}})(e);return t||"number"==typeof e?`${e}px`:e},fraction:e=>"number"!=typeof e||e>1?e:100*e+"%",float:(e,t)=>"rtl"===t.direction?{left:"right",right:"left"}[e]:e,degree(e){if(function(e){return/^var\(--.+\)$/.test(e)}(e)||null==e)return e;const t="string"==typeof e&&!e.endsWith("deg");return"number"==typeof e||t?`${e}deg`:e},gradient:(e,t)=>function(e,t){if(null==e||Bs.has(e))return e;if(!$s(e)&&!Bs.has(e))return`url('${e}')`;const n=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),r=n?.[1],o=n?.[2];if(!r||!o)return e;const i=r.includes("-gradient")?r:`${r}-gradient`,[a,...s]=o.split(",").map(Vs).filter(Boolean);if(0===s?.length)return e;const l=a in Ds?Ds[a]:a;s.unshift(l);const u=s.map((e=>{if(Ns.has(e))return e;const n=e.indexOf(" "),[r,o]=-1!==n?[e.substr(0,n),e.substr(n+1)]:[e],i=$s(o)?o:o&&o.split(" "),a=`colors.${r}`,s=a in t.__cssMap?t.__cssMap[a].varRef:r;return i?[s,...Array.isArray(i)?i:[i]].join(" "):s}));return`${i}(${u.join(", ")})`}(e,t??{}),blur:Ws("blur"),opacity:Ws("opacity"),brightness:Ws("brightness"),contrast:Ws("contrast"),dropShadow:Ws("drop-shadow"),grayscale:Ws("grayscale"),hueRotate:e=>Ws("hue-rotate")(Us.degree(e)),invert:Ws("invert"),saturate:Ws("saturate"),sepia:Ws("sepia"),bgImage:e=>null==e||$s(e)||Bs.has(e)?e:`url(${e})`,outline(e){const t="0"===String(e)||"none"===String(e);return null!==e&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){const{space:t,divide:n}=Ls[e]??{},r={flexDirection:e};return t&&(r[t]=1),n&&(r[n]=1),r}},Hs={borderWidths:Is("borderWidths"),borderStyles:Is("borderStyles"),colors:Is("colors"),borders:Is("borders"),gradients:Is("gradients",Us.gradient),radii:Is("radii",Us.px),space:Is("space",As(Us.vh,Us.px)),spaceT:Is("space",As(Us.vh,Us.px)),degreeT:e=>({property:e,transform:Us.degree}),prop:(e,t,n)=>({property:e,scale:t,...t&&{transform:Ts({scale:t,transform:n})}}),propT:(e,t)=>({property:e,transform:t}),sizes:Is("sizes",As(Us.vh,Us.px)),sizesT:Is("sizes",As(Us.vh,Us.fraction)),shadows:Is("shadows"),logical:function(e){const{property:t,scale:n,transform:r}=e;return{scale:n,property:js(t),transform:n?Ts({scale:n,compose:r}):r}},blur:Is("blur",Us.blur)},qs={background:Hs.colors("background"),backgroundColor:Hs.colors("backgroundColor"),backgroundImage:Hs.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:Us.bgClip},bgSize:Hs.prop("backgroundSize"),bgPosition:Hs.prop("backgroundPosition"),bg:Hs.colors("background"),bgColor:Hs.colors("backgroundColor"),bgPos:Hs.prop("backgroundPosition"),bgRepeat:Hs.prop("backgroundRepeat"),bgAttachment:Hs.prop("backgroundAttachment"),bgGradient:Hs.gradients("backgroundImage"),bgClip:{transform:Us.bgClip}};Object.assign(qs,{bgImage:qs.backgroundImage,bgImg:qs.backgroundImage});const Ys={border:Hs.borders("border"),borderWidth:Hs.borderWidths("borderWidth"),borderStyle:Hs.borderStyles("borderStyle"),borderColor:Hs.colors("borderColor"),borderRadius:Hs.radii("borderRadius"),borderTop:Hs.borders("borderTop"),borderBlockStart:Hs.borders("borderBlockStart"),borderTopLeftRadius:Hs.radii("borderTopLeftRadius"),borderStartStartRadius:Hs.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:Hs.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:Hs.radii("borderTopRightRadius"),borderStartEndRadius:Hs.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:Hs.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:Hs.borders("borderRight"),borderInlineEnd:Hs.borders("borderInlineEnd"),borderBottom:Hs.borders("borderBottom"),borderBlockEnd:Hs.borders("borderBlockEnd"),borderBottomLeftRadius:Hs.radii("borderBottomLeftRadius"),borderBottomRightRadius:Hs.radii("borderBottomRightRadius"),borderLeft:Hs.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:Hs.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:Hs.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:Hs.borders(["borderLeft","borderRight"]),borderInline:Hs.borders("borderInline"),borderY:Hs.borders(["borderTop","borderBottom"]),borderBlock:Hs.borders("borderBlock"),borderTopWidth:Hs.borderWidths("borderTopWidth"),borderBlockStartWidth:Hs.borderWidths("borderBlockStartWidth"),borderTopColor:Hs.colors("borderTopColor"),borderBlockStartColor:Hs.colors("borderBlockStartColor"),borderTopStyle:Hs.borderStyles("borderTopStyle"),borderBlockStartStyle:Hs.borderStyles("borderBlockStartStyle"),borderBottomWidth:Hs.borderWidths("borderBottomWidth"),borderBlockEndWidth:Hs.borderWidths("borderBlockEndWidth"),borderBottomColor:Hs.colors("borderBottomColor"),borderBlockEndColor:Hs.colors("borderBlockEndColor"),borderBottomStyle:Hs.borderStyles("borderBottomStyle"),borderBlockEndStyle:Hs.borderStyles("borderBlockEndStyle"),borderLeftWidth:Hs.borderWidths("borderLeftWidth"),borderInlineStartWidth:Hs.borderWidths("borderInlineStartWidth"),borderLeftColor:Hs.colors("borderLeftColor"),borderInlineStartColor:Hs.colors("borderInlineStartColor"),borderLeftStyle:Hs.borderStyles("borderLeftStyle"),borderInlineStartStyle:Hs.borderStyles("borderInlineStartStyle"),borderRightWidth:Hs.borderWidths("borderRightWidth"),borderInlineEndWidth:Hs.borderWidths("borderInlineEndWidth"),borderRightColor:Hs.colors("borderRightColor"),borderInlineEndColor:Hs.colors("borderInlineEndColor"),borderRightStyle:Hs.borderStyles("borderRightStyle"),borderInlineEndStyle:Hs.borderStyles("borderInlineEndStyle"),borderTopRadius:Hs.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:Hs.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:Hs.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:Hs.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(Ys,{rounded:Ys.borderRadius,roundedTop:Ys.borderTopRadius,roundedTopLeft:Ys.borderTopLeftRadius,roundedTopRight:Ys.borderTopRightRadius,roundedTopStart:Ys.borderStartStartRadius,roundedTopEnd:Ys.borderStartEndRadius,roundedBottom:Ys.borderBottomRadius,roundedBottomLeft:Ys.borderBottomLeftRadius,roundedBottomRight:Ys.borderBottomRightRadius,roundedBottomStart:Ys.borderEndStartRadius,roundedBottomEnd:Ys.borderEndEndRadius,roundedLeft:Ys.borderLeftRadius,roundedRight:Ys.borderRightRadius,roundedStart:Ys.borderInlineStartRadius,roundedEnd:Ys.borderInlineEndRadius,borderStart:Ys.borderInlineStart,borderEnd:Ys.borderInlineEnd,borderTopStartRadius:Ys.borderStartStartRadius,borderTopEndRadius:Ys.borderStartEndRadius,borderBottomStartRadius:Ys.borderEndStartRadius,borderBottomEndRadius:Ys.borderEndEndRadius,borderStartRadius:Ys.borderInlineStartRadius,borderEndRadius:Ys.borderInlineEndRadius,borderStartWidth:Ys.borderInlineStartWidth,borderEndWidth:Ys.borderInlineEndWidth,borderStartColor:Ys.borderInlineStartColor,borderEndColor:Ys.borderInlineEndColor,borderStartStyle:Ys.borderInlineStartStyle,borderEndStyle:Ys.borderInlineEndStyle});const Xs={color:Hs.colors("color"),textColor:Hs.colors("color"),fill:Hs.colors("fill"),stroke:Hs.colors("stroke"),accentColor:Hs.colors("accentColor"),textFillColor:Hs.colors("textFillColor")},Gs={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:Us.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:Hs.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:Hs.space("gap"),rowGap:Hs.space("rowGap"),columnGap:Hs.space("columnGap")};Object.assign(Gs,{flexDir:Gs.flexDirection});const Ks={width:Hs.sizesT("width"),inlineSize:Hs.sizesT("inlineSize"),height:Hs.sizes("height"),blockSize:Hs.sizes("blockSize"),boxSize:Hs.sizes(["width","height"]),minWidth:Hs.sizes("minWidth"),minInlineSize:Hs.sizes("minInlineSize"),minHeight:Hs.sizes("minHeight"),minBlockSize:Hs.sizes("minBlockSize"),maxWidth:Hs.sizes("maxWidth"),maxInlineSize:Hs.sizes("maxInlineSize"),maxHeight:Hs.sizes("maxHeight"),maxBlockSize:Hs.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{const n=`@media screen and (min-width: ${t.__breakpoints?.get(e)?.minW??e})`;return{[n]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{const n=`@media screen and (max-width: ${t.__breakpoints?.get(e)?._minW??e})`;return{[n]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:Hs.propT("float",Us.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(Ks,{w:Ks.width,h:Ks.height,minW:Ks.minWidth,maxW:Ks.maxWidth,minH:Ks.minHeight,maxH:Ks.maxHeight,overscroll:Ks.overscrollBehavior,overscrollX:Ks.overscrollBehaviorX,overscrollY:Ks.overscrollBehaviorY});const Qs={filter:{transform:Us.filter},blur:Hs.blur("--chakra-blur"),brightness:Hs.propT("--chakra-brightness",Us.brightness),contrast:Hs.propT("--chakra-contrast",Us.contrast),hueRotate:Hs.propT("--chakra-hue-rotate",Us.hueRotate),invert:Hs.propT("--chakra-invert",Us.invert),saturate:Hs.propT("--chakra-saturate",Us.saturate),dropShadow:Hs.propT("--chakra-drop-shadow",Us.dropShadow),backdropFilter:{transform:Us.backdropFilter},backdropBlur:Hs.blur("--chakra-backdrop-blur"),backdropBrightness:Hs.propT("--chakra-backdrop-brightness",Us.brightness),backdropContrast:Hs.propT("--chakra-backdrop-contrast",Us.contrast),backdropHueRotate:Hs.propT("--chakra-backdrop-hue-rotate",Us.hueRotate),backdropInvert:Hs.propT("--chakra-backdrop-invert",Us.invert),backdropSaturate:Hs.propT("--chakra-backdrop-saturate",Us.saturate)},Zs={ring:{transform:Us.ring},ringColor:Hs.colors("--chakra-ring-color"),ringOffset:Hs.prop("--chakra-ring-offset-width"),ringOffsetColor:Hs.colors("--chakra-ring-offset-color"),ringInset:Hs.prop("--chakra-ring-inset")},Js={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:Us.outline},outlineOffset:!0,outlineColor:Hs.colors("outlineColor")},el={gridGap:Hs.space("gridGap"),gridColumnGap:Hs.space("gridColumnGap"),gridRowGap:Hs.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},tl=(e=>{const t=new WeakMap;return(n,r,o,i)=>{if(void 0===n)return e(n,r,o);t.has(n)||t.set(n,new Map);const a=t.get(n);if(a.has(r))return a.get(r);const s=e(n,r,o,i);return a.set(r,s),s}})((function(e,t,n,r){const o="string"==typeof t?t.split("."):[t];for(r=0;r<o.length&&e;r+=1)e=e[o[r]];return void 0===e?n:e})),nl={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},rl={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},ol=(e,t,n)=>{const r={},o=tl(e,t,{});for(const e in o)e in n&&null!=n[e]||(r[e]=o[e]);return r},il={srOnly:{transform:e=>!0===e?nl:"focusable"===e?rl:{}},layerStyle:{processResult:!0,transform:(e,t,n)=>ol(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>ol(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>ol(t,e,n)}},al={position:!0,pos:Hs.prop("position"),zIndex:Hs.prop("zIndex","zIndices"),inset:Hs.spaceT("inset"),insetX:Hs.spaceT(["left","right"]),insetInline:Hs.spaceT("insetInline"),insetY:Hs.spaceT(["top","bottom"]),insetBlock:Hs.spaceT("insetBlock"),top:Hs.spaceT("top"),insetBlockStart:Hs.spaceT("insetBlockStart"),bottom:Hs.spaceT("bottom"),insetBlockEnd:Hs.spaceT("insetBlockEnd"),left:Hs.spaceT("left"),insetInlineStart:Hs.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:Hs.spaceT("right"),insetInlineEnd:Hs.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(al,{insetStart:al.insetInlineStart,insetEnd:al.insetInlineEnd});const sl={boxShadow:Hs.shadows("boxShadow"),mixBlendMode:!0,blendMode:Hs.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:Hs.prop("backgroundBlendMode"),opacity:!0};Object.assign(sl,{shadow:sl.boxShadow});const ll={margin:Hs.spaceT("margin"),marginTop:Hs.spaceT("marginTop"),marginBlockStart:Hs.spaceT("marginBlockStart"),marginRight:Hs.spaceT("marginRight"),marginInlineEnd:Hs.spaceT("marginInlineEnd"),marginBottom:Hs.spaceT("marginBottom"),marginBlockEnd:Hs.spaceT("marginBlockEnd"),marginLeft:Hs.spaceT("marginLeft"),marginInlineStart:Hs.spaceT("marginInlineStart"),marginX:Hs.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:Hs.spaceT("marginInline"),marginY:Hs.spaceT(["marginTop","marginBottom"]),marginBlock:Hs.spaceT("marginBlock"),padding:Hs.space("padding"),paddingTop:Hs.space("paddingTop"),paddingBlockStart:Hs.space("paddingBlockStart"),paddingRight:Hs.space("paddingRight"),paddingBottom:Hs.space("paddingBottom"),paddingBlockEnd:Hs.space("paddingBlockEnd"),paddingLeft:Hs.space("paddingLeft"),paddingInlineStart:Hs.space("paddingInlineStart"),paddingInlineEnd:Hs.space("paddingInlineEnd"),paddingX:Hs.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:Hs.space("paddingInline"),paddingY:Hs.space(["paddingTop","paddingBottom"]),paddingBlock:Hs.space("paddingBlock")};Object.assign(ll,{m:ll.margin,mt:ll.marginTop,mr:ll.marginRight,me:ll.marginInlineEnd,marginEnd:ll.marginInlineEnd,mb:ll.marginBottom,ml:ll.marginLeft,ms:ll.marginInlineStart,marginStart:ll.marginInlineStart,mx:ll.marginX,my:ll.marginY,p:ll.padding,pt:ll.paddingTop,py:ll.paddingY,px:ll.paddingX,pb:ll.paddingBottom,pl:ll.paddingLeft,ps:ll.paddingInlineStart,paddingStart:ll.paddingInlineStart,pr:ll.paddingRight,pe:ll.paddingInlineEnd,paddingEnd:ll.paddingInlineEnd});const ul={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:Hs.spaceT("scrollMargin"),scrollMarginTop:Hs.spaceT("scrollMarginTop"),scrollMarginBottom:Hs.spaceT("scrollMarginBottom"),scrollMarginLeft:Hs.spaceT("scrollMarginLeft"),scrollMarginRight:Hs.spaceT("scrollMarginRight"),scrollMarginX:Hs.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:Hs.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:Hs.spaceT("scrollPadding"),scrollPaddingTop:Hs.spaceT("scrollPaddingTop"),scrollPaddingBottom:Hs.spaceT("scrollPaddingBottom"),scrollPaddingLeft:Hs.spaceT("scrollPaddingLeft"),scrollPaddingRight:Hs.spaceT("scrollPaddingRight"),scrollPaddingX:Hs.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:Hs.spaceT(["scrollPaddingTop","scrollPaddingBottom"])},cl={fontFamily:Hs.prop("fontFamily","fonts"),fontSize:Hs.prop("fontSize","fontSizes",Us.px),fontWeight:Hs.prop("fontWeight","fontWeights"),lineHeight:Hs.prop("lineHeight","lineHeights"),letterSpacing:Hs.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(!0===e)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},dl={textDecorationColor:Hs.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:Hs.shadows("textShadow")},fl={clipPath:!0,transform:Hs.propT("transform",Us.transform),transformOrigin:!0,translateX:Hs.spaceT("--chakra-translate-x"),translateY:Hs.spaceT("--chakra-translate-y"),skewX:Hs.degreeT("--chakra-skew-x"),skewY:Hs.degreeT("--chakra-skew-y"),scaleX:Hs.prop("--chakra-scale-x"),scaleY:Hs.prop("--chakra-scale-y"),scale:Hs.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:Hs.degreeT("--chakra-rotate")},pl={listStyleType:!0,listStylePosition:!0,listStylePos:Hs.prop("listStylePosition"),listStyleImage:!0,listStyleImg:Hs.prop("listStyleImage")},hl={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:Hs.prop("transitionDuration","transition.duration"),transitionProperty:Hs.prop("transitionProperty","transition.property"),transitionTimingFunction:Hs.prop("transitionTimingFunction","transition.easing")},ml=ls({},qs,Ys,Xs,Gs,Ks,Qs,Zs,Js,el,il,al,sl,ll,ul,cl,dl,fl,pl,hl),vl=Object.assign({},ll,Ks,Gs,el,al);Object.keys(vl);const gl=(e,t)=>e.startsWith("--")&&"string"==typeof t&&!function(e){return/^var\(--.+\)$/.test(e)}(t),bl=(e,t)=>{if(null==t)return t;const n=t=>e.__cssMap?.[t]?.varRef,r=e=>n(e)??e,[o,i]=function(e){const t=[];let n="",r=!1;for(let o=0;o<e.length;o++){const i=e[o];"("===i?(r=!0,n+=i):")"===i?(r=!1,n+=i):","!==i||r?n+=i:(t.push(n),n="")}return n=n.trim(),n&&t.push(n),t}(t);return n(o)??r(i)??r(t)};const yl=e=>t=>function(e){const{configs:t={},pseudos:n={},theme:r}=e,o=(e,i=!1)=>{const a=Ps(e,r),s=(e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:n,toArrayValue:r,media:o}=t.__breakpoints,i={};for(const a in e){let s=Ps(e[a],t);if(null==s)continue;if(s=xn(s)&&n(s)?r(s):s,!Array.isArray(s)){i[a]=s;continue}const l=s.slice(0,o.length).length;for(let e=0;e<l;e+=1){const t=o?.[e];t?(i[t]=i[t]||{},null!=s[e]&&(i[t][a]=s[e])):i[a]=s[e]}}return i})(a)(r);let l={};for(let e in s){let u=Ps(s[e],r);e in n&&(e=n[e]),gl(e,u)&&(u=bl(r,u));let c=t[e];if(!0===c&&(c={property:e}),xn(u)){l[e]=l[e]??{},l[e]=ls({},l[e],o(u,!0));continue}let d=c?.transform?.(u,r,a)??u;d=c?.processResult?o(d,!0):d;const f=Ps(c?.property,r);if(!i&&c?.static){const e=Ps(c.static,r);l=ls({},l,e)}if(f&&Array.isArray(f))for(const e of f)l[e]=d;else f?"&"===f&&xn(d)?l=ls({},l,d):l[f]=d:xn(d)?l=ls({},l,d):l[e]=d}return l};return o}({theme:t,pseudos:ws(t),configs:ml})(e);function xl(t={}){const{name:n,strict:r=!0,hookName:o="useContext",providerName:i="Provider",errorMessage:a,defaultValue:s}=t,l=(0,e.createContext)(s);return l.displayName=n,[l.Provider,function t(){const n=(0,e.useContext)(l);if(!n&&r){const e=new Error(a??`${o} returned \`undefined\`. Seems you forgot to wrap component within ${i}`);throw e.name="ContextError",Error.captureStackTrace?.(e,t),e}return n},l]}const wl=(e=>{const t=new WeakMap;return(n,r,o,i)=>{if(void 0===n)return e(n,r,o);t.has(n)||t.set(n,new Map);const a=t.get(n);if(a.has(r))return a.get(r);const s=e(n,r,o,i);return a.set(r,s),s}})((function(e,t,n,r){const o="string"==typeof t?t.split("."):[t];for(r=0;r<o.length&&e;r+=1)e=e[o[r]];return void 0===e?n:e}));function kl(t){const{cssVarsRoot:n,theme:r,children:o}=t,i=(0,e.useMemo)((()=>function(e){const t=function(e){const{__cssMap:t,__cssVars:n,__breakpoints:r,...o}=e;return o}(e),{cssMap:n,cssVars:r}=function(e){const t=function(e){const t=_s(e),n=function(e){return e.semanticTokens}(e),r=ks(e),o=e=>r.includes(e)||"default"===e,i={};return Ss(t,((e,t)=>{null!=e&&(i[t.join(".")]={isSemantic:!1,value:e})})),Ss(n,((e,t)=>{null!=e&&(i[t.join(".")]={isSemantic:!0,value:e})}),{stop:e=>Object.keys(e).every(o)}),i}(e),n=e.config?.cssVarPrefix,r=ws(e);let o={};const i={};function a(e,r){const o=[String(e).split(".")[0],r].join(".");if(!t[o])return r;const{reference:i}=Os(o,n);return i}for(const[e,s]of Object.entries(t)){const{isSemantic:t,value:l}=s,{variable:u,reference:c}=Os(e,n);if(!t){if(e.startsWith("space")){const t=e.split("."),[n,...r]=t,o=`${n}.-${r.join(".")}`,a=_r.negate(l),s=_r.negate(c);i[o]={value:a,var:u,varRef:s}}o[u]=l,i[e]={value:l,var:u,varRef:c};continue}const d=xn(l)?l:{default:l};o=ls(o,Object.entries(d).reduce(((t,[n,o])=>{if(!o)return t;const i=a(e,`${o}`);return"default"===n?(t[u]=i,t):(t[r?.[n]??n]={[u]:i},t)}),{})),i[e]={value:c,var:u,varRef:c}}return{cssVars:o,cssMap:i}}(t);return Object.assign(t,{__cssVars:{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0",...r},__cssMap:n,__breakpoints:ss(t.breakpoints)}),t}(r)),[r]);return(0,ei.jsxs)(Pa,{theme:i,children:[(0,ei.jsx)(Sl,{root:n}),o]})}function Sl({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return(0,ei.jsx)(Ya,{styles:e=>({[t]:e.__cssVars})})}const[El,Cl]=xl({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});function _l(){const{colorMode:e}=za();return(0,ei.jsx)(Ya,{styles:t=>{const n=Ps(wl(t,"styles.global"),{theme:t,colorMode:e});if(n)return yl(n)(t)}})}const[Ol,Pl]=xl({strict:!1,name:"PortalManagerContext"});function Rl(e){const{children:t,zIndex:n}=e;return(0,ei.jsx)(Ol,{value:{zIndex:n},children:t})}Rl.displayName="PortalManager";const Tl=Boolean(globalThis?.document)?e.useLayoutEffect:e.useEffect,Al=(0,e.createContext)({getDocument:()=>document,getWindow:()=>window});function Il(t){const{children:n,environment:r,disabled:o}=t,i=(0,e.useRef)(null),a=(0,e.useMemo)((()=>r||{getDocument:()=>i.current?.ownerDocument??document,getWindow:()=>i.current?.ownerDocument.defaultView??window}),[r]),s=!o||!r;return(0,ei.jsxs)(Al.Provider,{value:a,children:[n,s&&(0,ei.jsx)("span",{id:"__chakra_env",hidden:!0,ref:i})]})}Al.displayName="EnvironmentContext",Il.displayName="EnvironmentProvider";const jl=e=>{const{children:t,colorModeManager:n,portalZIndex:r,resetScope:o,resetCSS:i=!0,theme:a={},environment:s,cssVarsRoot:l,disableEnvironment:u,disableGlobalStyle:c}=e,d=(0,ei.jsx)(Il,{environment:s,disabled:u,children:t});return(0,ei.jsx)(kl,{theme:a,cssVarsRoot:l,children:(0,ei.jsxs)(Ha,{colorModeManager:n,options:a.config,children:[i?(0,ei.jsx)(Ja,{scope:o}):(0,ei.jsx)(Za,{}),!c&&(0,ei.jsx)(_l,{}),r?(0,ei.jsx)(Rl,{zIndex:r,children:d}):d]})})};var Ml=function(e,t){return Ml=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Ml(e,t)};function zl(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Ml(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Fl=function(){return Fl=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},Fl.apply(this,arguments)};function Ll(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 Dl(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function Nl(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))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;const Bl=1/60*1e3,Vl="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),$l="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout((()=>e(Vl())),Bl);let Wl=!0,Ul=!1,Hl=!1;const ql={delta:0,timestamp:0},Yl=["read","update","preRender","render","postRender"],Xl=Yl.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,u=l?t:n;return i&&a.add(e),-1===u.indexOf(e)&&(u.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}((()=>Ul=!0)),e)),{}),Gl=Yl.reduce(((e,t)=>{const n=Xl[t];return e[t]=(e,t=!1,r=!1)=>(Ul||eu(),n.schedule(e,t,r)),e}),{}),Kl=Yl.reduce(((e,t)=>(e[t]=Xl[t].cancel,e)),{}),Ql=Yl.reduce(((e,t)=>(e[t]=()=>Xl[t].process(ql),e)),{}),Zl=e=>Xl[e].process(ql),Jl=e=>{Ul=!1,ql.delta=Wl?Bl:Math.max(Math.min(e-ql.timestamp,40),1),ql.timestamp=e,Hl=!0,Yl.forEach(Zl),Hl=!1,Ul&&(Wl=!1,$l(Jl))},eu=()=>{Ul=!0,Wl=!0,Hl||$l(Jl)},tu=()=>ql,nu=Gl;function ru(t){return(0,e.useEffect)((function(){return function(){return t()}}),[])}var ou=(0,e.createContext)(null);function iu(t){var n=(0,e.useRef)(null);return null===n.current&&(n.current=t()),n.current}var au=0;function su(){var e=au;return au++,e}var lu=function(t){var n=t.children,r=t.initial,o=t.isPresent,i=t.onExitComplete,a=t.custom,s=t.presenceAffectsLayout,l=iu(uu),u=iu(su),c=(0,e.useMemo)((function(){return{id:u,initial:r,isPresent:o,custom:a,onExitComplete:function(e){var t,n;l.set(e,!0);try{for(var r=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(l.values()),o=r.next();!o.done;o=r.next())if(!o.value)return}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}null==i||i()},register:function(e){return l.set(e,!1),function(){return l.delete(e)}}}}),s?void 0:[o]);return(0,e.useMemo)((function(){l.forEach((function(e,t){return l.set(t,!1)}))}),[o]),e.useEffect((function(){!o&&!l.size&&(null==i||i())}),[o]),e.createElement(ou.Provider,{value:c},n)};function uu(){return new Map}var cu=(0,e.createContext)({});function du(e){return e.key||""}var fu=function(t){var n=t.children,r=t.custom,o=t.initial,i=void 0===o||o,a=t.onExitComplete,s=t.exitBeforeEnter,l=t.presenceAffectsLayout,u=void 0===l||l,c=Dl(function(){var t=(0,e.useRef)(!1),n=Dl((0,e.useState)(0),2),r=n[0],o=n[1];ru((function(){return t.current=!0}));var i=(0,e.useCallback)((function(){!t.current&&o(r+1)}),[r]);return[(0,e.useCallback)((function(){return nu.postRender(i)}),[i]),r]}(),1),d=c[0],f=(0,e.useContext)(cu).forceRender;f&&(d=f);var p=(0,e.useRef)(!0),h=(0,e.useRef)(!0);(0,e.useEffect)((function(){return function(){h.current=!1}}),[]);var m=function(t){var n=[];return e.Children.forEach(t,(function(t){(0,e.isValidElement)(t)&&n.push(t)})),n}(n),v=(0,e.useRef)(m),g=(0,e.useRef)(new Map).current,b=(0,e.useRef)(new Set).current;if(function(e,t){e.forEach((function(e){var n=du(e);t.set(n,e)}))}(m,g),p.current)return p.current=!1,e.createElement(e.Fragment,null,m.map((function(t){return e.createElement(lu,{key:du(t),isPresent:!0,initial:!!i&&void 0,presenceAffectsLayout:u},t)})));for(var y=Nl([],Dl(m),!1),x=v.current.map(du),w=m.map(du),k=x.length,S=0;S<k;S++){var E=x[S];-1===w.indexOf(E)?b.add(E):b.delete(E)}return s&&b.size&&(y=[]),b.forEach((function(t){if(-1===w.indexOf(t)){var n=g.get(t);if(n){var o=x.indexOf(t);y.splice(o,0,e.createElement(lu,{key:du(n),isPresent:!1,onExitComplete:function(){g.delete(t),b.delete(t);var e=v.current.findIndex((function(e){return e.key===t}));if(v.current.splice(e,1),!b.size){if(v.current=m,!1===h.current)return;d(),a&&a()}},custom:r,presenceAffectsLayout:u},n))}}})),y=y.map((function(t){var n=t.key;return b.has(n)?t:e.createElement(lu,{key:du(t),isPresent:!0,presenceAffectsLayout:u},t)})),v.current=y,e.createElement(e.Fragment,null,b.size?y:y.map((function(t){return(0,e.cloneElement)(t)})))};const pu=(t,n)=>{const r=(0,e.useRef)(!1),o=(0,e.useRef)(!1);(0,e.useEffect)((()=>{if(r.current&&o.current)return t();o.current=!0}),n),(0,e.useEffect)((()=>(r.current=!0,()=>{r.current=!1})),[])};function hu(t,n=[]){const r=(0,e.useRef)(t);return(0,e.useEffect)((()=>{r.current=t})),(0,e.useCallback)(((...e)=>r.current?.(...e)),n)}function mu(){var t=(0,e.useContext)(ou);if(null===t)return[!0,null];var n=t.isPresent,r=t.onExitComplete,o=t.register,i=bu();return(0,e.useEffect)((function(){return o(i)}),[]),!n&&r?[!1,function(){return null==r?void 0:r(i)}]:[!0]}var vu=0,gu=function(){return vu++},bu=function(){return iu(gu)},yu=function(e){return{isEnabled:function(t){return e.some((function(e){return!!t[e]}))}}},xu={measureLayout:yu(["layout","layoutId","drag"]),animation:yu(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:yu(["exit"]),drag:yu(["drag","dragControls"]),focus:yu(["whileFocus"]),hover:yu(["whileHover","onHoverStart","onHoverEnd"]),tap:yu(["whileTap","onTap","onTapStart","onTapCancel"]),pan:yu(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:yu(["whileInView","onViewportEnter","onViewportLeave"])},wu=(0,e.createContext)({strict:!1}),ku=Object.keys(xu),Su=ku.length,Eu=(0,e.createContext)({transformPagePoint:function(e){return e},isStatic:!1}),Cu=(0,e.createContext)({}),_u="undefined"!=typeof window,Ou=_u?e.useLayoutEffect:e.useEffect;function Pu(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Ru(e){return Array.isArray(e)}function Tu(e){return"string"==typeof e||Ru(e)}function Au(e,t,n,r,o){var i;return void 0===r&&(r={}),void 0===o&&(o={}),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,o)),"string"==typeof t&&(t=null===(i=e.variants)||void 0===i?void 0:i[t]),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,o)),t}function Iu(e,t,n){var r=e.getProps();return Au(r,t,null!=n?n:r.custom,function(e){var t={};return e.forEachValue((function(e,n){return t[n]=e.get()})),t}(e),function(e){var t={};return e.forEachValue((function(e,n){return t[n]=e.getVelocity()})),t}(e))}function ju(e){var t;return"function"==typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||Tu(e.initial)||Tu(e.animate)||Tu(e.whileHover)||Tu(e.whileDrag)||Tu(e.whileTap)||Tu(e.whileFocus)||Tu(e.exit)}function Mu(e){return Boolean(ju(e)||e.variants)}function zu(e){return Array.isArray(e)?e.join(" "):e}const Fu=(e,t,n)=>-n*e+n*t+e;function Lu(e,t){return t?e*(1e3/t):0}function Du(e,t){-1===e.indexOf(t)&&e.push(t)}function Nu(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Bu=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return Du(this.subscriptions,e),function(){return Nu(t.subscriptions,e)}},e.prototype.notify=function(e,t,n){var r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(var o=0;o<r;o++){var i=this.subscriptions[o];i&&i(e,t,n)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),Vu=function(){function e(e){var t,n=this;this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new Bu,this.velocityUpdateSubscribers=new Bu,this.renderSubscribers=new Bu,this.canTrackVelocity=!1,this.updateAndNotify=function(e,t){void 0===t&&(t=!0),n.prev=n.current,n.current=e;var r=tu(),o=r.delta,i=r.timestamp;n.lastUpdated!==i&&(n.timeDelta=o,n.lastUpdated=i,nu.postRender(n.scheduleVelocityCheck)),n.prev!==n.current&&n.updateSubscribers.notify(n.current),n.velocityUpdateSubscribers.getSize()&&n.velocityUpdateSubscribers.notify(n.getVelocity()),t&&n.renderSubscribers.notify(n.current)},this.scheduleVelocityCheck=function(){return nu.postRender(n.velocityCheck)},this.velocityCheck=function(e){e.timestamp!==n.lastUpdated&&(n.prev=n.current,n.velocityUpdateSubscribers.notify(n.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t)))}return e.prototype.onChange=function(e){return this.updateSubscribers.add(e)},e.prototype.clearListeners=function(){this.updateSubscribers.clear()},e.prototype.onRenderRequest=function(e){return e(this.get()),this.renderSubscribers.add(e)},e.prototype.attach=function(e){this.passiveEffect=e},e.prototype.set=function(e,t){void 0===t&&(t=!0),t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)},e.prototype.get=function(){return this.current},e.prototype.getPrevious=function(){return this.prev},e.prototype.getVelocity=function(){return this.canTrackVelocity?Lu(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(e){var t=this;return this.stop(),new Promise((function(n){t.hasAnimated=!0,t.stopAnimation=e(n)})).then((function(){return t.clearAnimation()}))},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e}();function $u(e){return new Vu(e)}var Wu=function(e){return Boolean(null!==e&&"object"==typeof e&&e.getVelocity)};const Uu=(e,t,n)=>Math.min(Math.max(n,e),t);const Hu=12;function qu(e,t){return e*Math.sqrt(1-t*t)}const Yu=["duration","bounce"],Xu=["stiffness","damping","mass"];function Gu(e,t){return t.some((t=>void 0!==e[t]))}function Ku(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:o}=e,i=Ll(e,["from","to","restSpeed","restDelta"]);const a={done:!1,value:t};let{stiffness:s,damping:l,mass:u,velocity:c,duration:d,isResolvedFromDuration:f}=function(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!Gu(e,Xu)&&Gu(e,Yu)){const n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i,a=1-t;a=Uu(.05,1,a),e=Uu(.01,10,e/1e3),a<1?(o=t=>{const r=t*a,o=r*e;return.001-(r-n)/qu(t,a)*Math.exp(-o)},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),u=qu(Math.pow(t,2),a);return(.001-o(t)>0?-1:1)*((i-s)*l)/u}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,i=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let r=n;for(let n=1;n<Hu;n++)r-=e(r)/t(r);return r}(o,i,5/e);if(e*=1e3,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}}}(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}(i),p=Qu,h=Qu;function m(){const e=c?-c/1e3:0,r=n-t,i=l/(2*Math.sqrt(s*u)),a=Math.sqrt(s/u)/1e3;if(void 0===o&&(o=Math.min(Math.abs(n-t)/100,.4)),i<1){const t=qu(a,i);p=o=>{const s=Math.exp(-i*a*o);return n-s*((e+i*a*r)/t*Math.sin(t*o)+r*Math.cos(t*o))},h=n=>{const o=Math.exp(-i*a*n);return i*a*o*(Math.sin(t*n)*(e+i*a*r)/t+r*Math.cos(t*n))-o*(Math.cos(t*n)*(e+i*a*r)-t*r*Math.sin(t*n))}}else if(1===i)p=t=>n-Math.exp(-a*t)*(r+(e+a*r)*t);else{const t=a*Math.sqrt(i*i-1);p=o=>{const s=Math.exp(-i*a*o),l=Math.min(t*o,300);return n-s*((e+i*a*r)*Math.sinh(l)+t*r*Math.cosh(l))/t}}}return m(),{next:e=>{const t=p(e);if(f)a.done=e>=d;else{const i=1e3*h(e),s=Math.abs(i)<=r,l=Math.abs(n-t)<=o;a.done=s&&l}return a.value=a.done?n:t,a},flipTarget:()=>{c=-c,[t,n]=[n,t],m()}}}Ku.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;const Qu=e=>0,Zu=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},Ju=(e,t)=>n=>Math.max(Math.min(n,t),e),ec=e=>e%1?Number(e.toFixed(5)):e,tc=/(-)?([\d]*\.?[\d])+/g,nc=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,rc=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function oc(e){return"string"==typeof e}const ic={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},ac=Object.assign(Object.assign({},ic),{transform:Ju(0,1)}),sc=Object.assign(Object.assign({},ic),{default:1}),lc=(e,t)=>n=>Boolean(oc(n)&&rc.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),uc=(e,t,n)=>r=>{if(!oc(r))return r;const[o,i,a,s]=r.match(tc);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},cc=Ju(0,255),dc=Object.assign(Object.assign({},ic),{transform:e=>Math.round(cc(e))}),fc={test:lc("rgb","red"),parse:uc("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+dc.transform(e)+", "+dc.transform(t)+", "+dc.transform(n)+", "+ec(ac.transform(r))+")"},pc={test:lc("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),o=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),o=e.substr(4,1),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:fc.transform},hc=e=>({test:t=>oc(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),mc=hc("deg"),vc=hc("%"),gc=hc("px"),bc=hc("vh"),yc=hc("vw"),xc=Object.assign(Object.assign({},vc),{parse:e=>vc.parse(e)/100,transform:e=>vc.transform(100*e)}),wc={test:lc("hsl","hue"),parse:uc("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+vc.transform(ec(t))+", "+vc.transform(ec(n))+", "+ec(ac.transform(r))+")"};function kc(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}function Sc({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=kc(s,r,e+1/3),i=kc(s,r,e),a=kc(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}}const Ec=(e,t,n)=>{const r=e*e,o=t*t;return Math.sqrt(Math.max(0,n*(o-r)+r))},Cc=[pc,fc,wc],_c=e=>Cc.find((t=>t.test(e))),Oc=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,Pc=(e,t)=>{let n=_c(e),r=_c(t);Oc(e),Oc(t);let o=n.parse(e),i=r.parse(t);n===wc&&(o=Sc(o),n=fc),r===wc&&(i=Sc(i),r=fc);const a=Object.assign({},o);return e=>{for(const t in a)"alpha"!==t&&(a[t]=Ec(o[t],i[t],e));return a.alpha=Fu(o.alpha,i.alpha,e),n.transform(a)}},Rc={test:e=>fc.test(e)||pc.test(e)||wc.test(e),parse:e=>fc.test(e)?fc.parse(e):wc.test(e)?wc.parse(e):pc.parse(e),transform:e=>oc(e)?e:e.hasOwnProperty("red")?fc.transform(e):wc.transform(e)},Tc="${c}",Ac="${n}";function Ic(e){"number"==typeof e&&(e=`${e}`);const t=[];let n=0;const r=e.match(nc);r&&(n=r.length,e=e.replace(nc,Tc),t.push(...r.map(Rc.parse)));const o=e.match(tc);return o&&(e=e.replace(tc,Ac),t.push(...o.map(ic.parse))),{values:t,numColors:n,tokenised:e}}function jc(e){return Ic(e).values}function Mc(e){const{values:t,numColors:n,tokenised:r}=Ic(e),o=t.length;return e=>{let t=r;for(let r=0;r<o;r++)t=t.replace(r<n?Tc:Ac,r<n?Rc.transform(e[r]):ec(e[r]));return t}}const zc=e=>"number"==typeof e?0:e,Fc={test:function(e){var t,n,r,o;return isNaN(e)&&oc(e)&&(null!==(n=null===(t=e.match(tc))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(o=null===(r=e.match(nc))||void 0===r?void 0:r.length)&&void 0!==o?o:0)>0},parse:jc,createTransformer:Mc,getAnimatableNone:function(e){const t=jc(e);return Mc(e)(t.map(zc))}},Lc=e=>"number"==typeof e,Dc=(e,t)=>n=>t(e(n)),Nc=(...e)=>e.reduce(Dc);function Bc(e,t){return Lc(e)?n=>Fu(e,t,n):Rc.test(e)?Pc(e,t):Uc(e,t)}const Vc=(e,t)=>{const n=[...e],r=n.length,o=e.map(((e,n)=>Bc(e,t[n])));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}},$c=(e,t)=>{const n=Object.assign(Object.assign({},e),t),r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=Bc(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}};function Wc(e){const t=Fc.parse(e),n=t.length;let r=0,o=0,i=0;for(let e=0;e<n;e++)r||"number"==typeof t[e]?r++:void 0!==t[e].hue?i++:o++;return{parsed:t,numNumbers:r,numRGB:o,numHSL:i}}const Uc=(e,t)=>{const n=Fc.createTransformer(t),r=Wc(e),o=Wc(t);return r.numHSL===o.numHSL&&r.numRGB===o.numRGB&&r.numNumbers>=o.numNumbers?Nc(Vc(r.parsed,o.parsed),n):n=>`${n>0?t:e}`},Hc=(e,t)=>n=>Fu(e,t,n);function qc(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;t.length,!r||!Array.isArray(r)||r.length,e[0]>e[i-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const a=function(e,t,n){const r=[],o=n||("number"==typeof(i=e[0])?Hc:"string"==typeof i?Rc.test(i)?Pc:Uc:Array.isArray(i)?Vc:"object"==typeof i?$c:void 0);var i;const a=e.length-1;for(let n=0;n<a;n++){let i=o(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]:t;i=Nc(e,i)}r.push(i)}return r}(t,r,o),s=2===i?function([e,t],[n]){return r=>n(Zu(e,t,r))}(e,a):function(e,t){const n=e.length,r=n-1;return o=>{let i=0,a=!1;if(o<=e[0]?a=!0:o>=e[r]&&(i=r-1,a=!0),!a){let t=1;for(;t<n&&!(e[t]>o||t===r);t++);i=t-1}const s=Zu(e[i],e[i+1],o);return t[i](s)}}(e,a);return n?t=>s(Uu(e[0],e[i-1],t)):s}const Yc=e=>t=>1-e(1-t),Xc=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Gc=e=>t=>t*t*((e+1)*t-e),Kc=4/11,Qc=8/11,Zc=e=>e,Jc=e=>Math.pow(e,2);const ed=Yc(Jc),td=Xc(Jc),nd=e=>1-Math.sin(Math.acos(e)),rd=Yc(nd),od=Xc(rd),id=Gc(1.525),ad=Yc(id),sd=Xc(id),ld=(()=>{const e=Gc(1.525);return t=>(t*=2)<1?.5*e(t):.5*(2-Math.pow(2,-10*(t-1)))})(),ud=4356/361,cd=35442/1805,dd=16061/1805,fd=e=>{if(1===e||0===e)return e;const t=e*e;return e<Kc?7.5625*t:e<Qc?9.075*t-9.9*e+3.4:e<.9?ud*t-cd*e+dd:10.8*e*e-20.52*e+10.72},pd=Yc(fd);function hd(e,t){return e.map((()=>t||td)).splice(0,e.length-1)}function md({from:e=0,to:t=1,ease:n,offset:r,duration:o=300}){const i={done:!1,value:e},a=Array.isArray(t)?t:[e,t],s=function(e,t){return e.map((e=>e*t))}(r&&r.length===a.length?r:function(e){const t=e.length;return e.map(((e,n)=>0!==n?n/(t-1):0))}(a),o);function l(){return qc(s,a,{ease:Array.isArray(n)?n:hd(a,n)})}let u=l();return{next:e=>(i.value=u(e),i.done=e>=o,i),flipTarget:()=>{a.reverse(),u=l()}}}const vd={keyframes:md,spring:Ku,decay:function({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:o=.5,modifyTarget:i}){const a={done:!1,value:t};let s=n*e;const l=t+s,u=void 0===i?l:i(l);return u!==l&&(s=u-t),{next:e=>{const t=-s*Math.exp(-e/r);return a.done=!(t>o||t<-o),a.value=a.done?u:u+t,a},flipTarget:()=>{}}}},gd=1/60*1e3,bd="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),yd="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout((()=>e(bd())),gd);let xd=!0,wd=!1,kd=!1;const Sd={delta:0,timestamp:0},Ed=["read","update","preRender","render","postRender"],Cd=Ed.reduce(((e,t)=>(e[t]=function(){let e=[],t=[],n=0,r=!1,o=!1;const i=new WeakSet,a={schedule:(o,a=!1,s=!1)=>{const l=s&&r,u=l?e:t;return a&&i.add(o),-1===u.indexOf(o)&&(u.push(o),l&&r&&(n=e.length)),o},cancel:e=>{const n=t.indexOf(e);-1!==n&&t.splice(n,1),i.delete(e)},process:s=>{if(r)o=!0;else{if(r=!0,[e,t]=[t,e],t.length=0,n=e.length,n)for(let t=0;t<n;t++){const n=e[t];n(s),i.has(n)&&(a.schedule(n),wd=!0)}r=!1,o&&(o=!1,a.process(s))}}};return a}(),e)),{}),_d=Ed.reduce(((e,t)=>{const n=Cd[t];return e[t]=(e,t=!1,r=!1)=>(wd||Td(),n.schedule(e,t,r)),e}),{}),Od=Ed.reduce(((e,t)=>(e[t]=Cd[t].cancel,e)),{}),Pd=(Ed.reduce(((e,t)=>(e[t]=()=>Cd[t].process(Sd),e)),{}),e=>Cd[e].process(Sd)),Rd=e=>{wd=!1,Sd.delta=xd?gd:Math.max(Math.min(e-Sd.timestamp,40),1),Sd.timestamp=e,kd=!0,Ed.forEach(Pd),kd=!1,wd&&(xd=!1,yd(Rd))},Td=()=>{wd=!0,xd=!0,kd||yd(Rd)},Ad=_d;function Id(e,t,n=0){return e-t-n}const jd=e=>{const t=({delta:t})=>e(t);return{start:()=>Ad.update(t,!0),stop:()=>Od.update(t)}};function Md(e){var t,n,{from:r,autoplay:o=!0,driver:i=jd,elapsed:a=0,repeat:s=0,repeatType:l="loop",repeatDelay:u=0,onPlay:c,onStop:d,onComplete:f,onRepeat:p,onUpdate:h}=e,m=Ll(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let v,g,b,{to:y}=m,x=0,w=m.duration,k=!1,S=!0;const E=function(e){if(Array.isArray(e.to))return md;if(vd[e.type])return vd[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?md:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?Ku:md}(m);(null===(n=(t=E).needsInterpolation)||void 0===n?void 0:n.call(t,r,y))&&(b=qc([0,100],[r,y],{clamp:!1}),r=0,y=100);const C=E(Object.assign(Object.assign({},m),{from:r,to:y}));return o&&(null==c||c(),v=i((function(e){if(S||(e=-e),a+=e,!k){const e=C.next(Math.max(0,a));g=e.value,b&&(g=b(g)),k=S?e.done:a<=0}null==h||h(g),k&&(0===x&&(null!=w||(w=a)),x<s?function(e,t,n,r){return r?e>=t+n:e<=-n}(a,w,u,S)&&(x++,"reverse"===l?(S=x%2==0,a=function(e,t,n=0,r=!0){return r?Id(t+-e,t,n):t-(e-t)+n}(a,w,u,S)):(a=Id(a,w,u),"mirror"===l&&C.flipTarget()),k=!1,p&&p()):(v.stop(),f&&f()))})),v.start()),{stop:()=>{null==d||d(),v.stop()}}}var zd=function(e){return 1e3*e};const Fd=(e,t)=>1-3*t+3*e,Ld=(e,t)=>3*t-6*e,Dd=e=>3*e,Nd=(e,t,n)=>((Fd(t,n)*e+Ld(t,n))*e+Dd(t))*e,Bd=(e,t,n)=>3*Fd(t,n)*e*e+2*Ld(t,n)*e+Dd(t),Vd=.1;function $d(e,t,n,r){if(e===t&&n===r)return Zc;const o=new Float32Array(11);for(let t=0;t<11;++t)o[t]=Nd(t*Vd,e,n);return i=>0===i||1===i?i:Nd(function(t){let r=0,i=1;for(;10!==i&&o[i]<=t;++i)r+=Vd;--i;const a=r+(t-o[i])/(o[i+1]-o[i])*Vd,s=Bd(a,e,n);return s>=.001?function(e,t,n,r){for(let o=0;o<8;++o){const o=Bd(t,n,r);if(0===o)return t;t-=(Nd(t,n,r)-e)/o}return t}(t,a,e,n):0===s?a:function(e,t,n,r,o){let i,a,s=0;do{a=t+(n-t)/2,i=Nd(a,r,o)-e,i>0?n=a:t=a}while(Math.abs(i)>1e-7&&++s<10);return a}(t,r,r+Vd,e,n)}(i),t,r)}var Wd={linear:Zc,easeIn:Jc,easeInOut:td,easeOut:ed,circIn:nd,circInOut:od,circOut:rd,backIn:id,backInOut:sd,backOut:ad,anticipate:ld,bounceIn:pd,bounceInOut:e=>e<.5?.5*(1-fd(1-2*e)):.5*fd(2*e-1)+.5,bounceOut:fd},Ud=function(e){if(Array.isArray(e)){e.length;var t=Dl(e,4);return $d(t[0],t[1],t[2],t[3])}return"string"==typeof e?("Invalid easing type '".concat(e,"'"),Wd[e]):e},Hd=function(e,t){return!("zIndex"===e||"number"!=typeof t&&!Array.isArray(t)&&("string"!=typeof t||!Fc.test(t)||t.startsWith("url(")))},qd=function(e){return Array.isArray(e)},Yd=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},Xd=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}},Gd=function(){return{type:"keyframes",ease:"linear",duration:.3}},Kd=function(e){return{type:"keyframes",duration:.8,values:e}},Qd={x:Yd,y:Yd,z:Yd,rotate:Yd,rotateX:Yd,rotateY:Yd,rotateZ:Yd,scaleX:Xd,scaleY:Xd,scale:Xd,opacity:Gd,backgroundColor:Gd,color:Gd,default:Xd};const Zd=new Set(["brightness","contrast","saturate","opacity"]);function Jd(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(tc)||[];if(!r)return e;const o=n.replace(r,"");let i=Zd.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const ef=/([a-z-]*)\(.*?\)/g,tf=Object.assign(Object.assign({},Fc),{getAnimatableNone:e=>{const t=e.match(ef);return t?t.map(Jd).join(" "):e}});var nf=Fl(Fl({},ic),{transform:Math.round}),rf={borderWidth:gc,borderTopWidth:gc,borderRightWidth:gc,borderBottomWidth:gc,borderLeftWidth:gc,borderRadius:gc,radius:gc,borderTopLeftRadius:gc,borderTopRightRadius:gc,borderBottomRightRadius:gc,borderBottomLeftRadius:gc,width:gc,maxWidth:gc,height:gc,maxHeight:gc,size:gc,top:gc,right:gc,bottom:gc,left:gc,padding:gc,paddingTop:gc,paddingRight:gc,paddingBottom:gc,paddingLeft:gc,margin:gc,marginTop:gc,marginRight:gc,marginBottom:gc,marginLeft:gc,rotate:mc,rotateX:mc,rotateY:mc,rotateZ:mc,scale:sc,scaleX:sc,scaleY:sc,scaleZ:sc,skew:mc,skewX:mc,skewY:mc,distance:gc,translateX:gc,translateY:gc,translateZ:gc,x:gc,y:gc,z:gc,perspective:gc,transformPerspective:gc,opacity:ac,originX:xc,originY:xc,originZ:gc,zIndex:nf,fillOpacity:ac,strokeOpacity:ac,numOctaves:nf},of=Fl(Fl({},rf),{color:Rc,backgroundColor:Rc,outlineColor:Rc,fill:Rc,stroke:Rc,borderColor:Rc,borderTopColor:Rc,borderRightColor:Rc,borderBottomColor:Rc,borderLeftColor:Rc,filter:tf,WebkitFilter:tf}),af=function(e){return of[e]};function sf(e,t){var n,r=af(e);return r!==tf&&(r=Fc),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}var lf=function(e){return qd(e)?e[e.length-1]||0:e};function uf(e,t,n){var r,o,i,a;return Array.isArray(t.to)&&(null!==(r=e.duration)&&void 0!==r||(e.duration=.8)),function(e){Array.isArray(e.to)&&null===e.to[0]&&(e.to=Nl([],Dl(e.to),!1),e.to[0]=e.from)}(t),function(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from;var t=Ll(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=Fl(Fl({},e),(o=n,i=t.to,a=qd(i)?Kd:Qd[o]||Qd.default,Fl({to:i},a(i))))),Fl(Fl({},t),function(e){var t=e.ease,n=e.times,r=e.yoyo,o=e.flip,i=e.loop,a=Ll(e,["ease","times","yoyo","flip","loop"]),s=Fl({},a);return n&&(s.offset=n),a.duration&&(s.duration=zd(a.duration)),a.repeatDelay&&(s.repeatDelay=zd(a.repeatDelay)),t&&(s.ease=function(e){return Array.isArray(e)&&"number"!=typeof e[0]}(t)?t.map(Ud):Ud(t)),"tween"===a.type&&(s.type="keyframes"),(r||i||o)&&(r?s.repeatType="reverse":i?s.repeatType="loop":o&&(s.repeatType="mirror"),s.repeat=i||r||o||a.repeat),"spring"!==a.type&&(s.type="keyframes"),s}(e))}function cf(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function df(e){return"number"==typeof e?0:sf("",e)}function ff(e,t){return e[t]||e.default||e}function pf(e,t,n,r){return void 0===r&&(r={}),t.start((function(o){var i,a,s=function(e,t,n,r,o){var i,a=ff(r,e),s=null!==(i=a.from)&&void 0!==i?i:t.get(),l=Hd(e,n);"none"===s&&l&&"string"==typeof n?s=sf(e,n):cf(s)&&"string"==typeof n?s=df(n):!Array.isArray(n)&&cf(n)&&"string"==typeof s&&(n=df(s));var u=Hd(e,s);return"You are trying to animate ".concat(e,' from "').concat(s,'" to "').concat(n,'". ').concat(s," is not an animatable value - to enable this animation set ").concat(s," to a value animatable to ").concat(n," via the `style` property."),u&&l&&!1!==a.type?function(){var r={from:s,to:n,velocity:t.getVelocity(),onComplete:o,onUpdate:function(e){return t.set(e)}};return"inertia"===a.type||"decay"===a.type?function({from:e=0,velocity:t=0,min:n,max:r,power:o=.8,timeConstant:i=750,bounceStiffness:a=500,bounceDamping:s=10,restDelta:l=1,modifyTarget:u,driver:c,onUpdate:d,onComplete:f,onStop:p}){let h;function m(e){return void 0!==n&&e<n||void 0!==r&&e>r}function v(e){return void 0===n?r:void 0===r||Math.abs(n-e)<Math.abs(r-e)?n:r}function g(e){null==h||h.stop(),h=Md(Object.assign(Object.assign({},e),{driver:c,onUpdate:t=>{var n;null==d||d(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:f,onStop:p}))}function b(e){g(Object.assign({type:"spring",stiffness:a,damping:s,restDelta:l},e))}if(m(e))b({from:e,velocity:t,to:v(e)});else{let r=o*t+e;void 0!==u&&(r=u(r));const a=v(r),s=a===n?-1:1;let c,d;const f=e=>{c=d,d=e,t=Lu(e-c,Sd.delta),(1===s&&e>a||-1===s&&e<a)&&b({from:e,to:a,velocity:t})};g({type:"decay",from:e,velocity:t,timeConstant:i,power:o,restDelta:l,modifyTarget:u,onUpdate:m(r)?f:void 0})}return{stop:()=>null==h?void 0:h.stop()}}(Fl(Fl({},r),a)):Md(Fl(Fl({},uf(a,r,e)),{onUpdate:function(e){var t;r.onUpdate(e),null===(t=a.onUpdate)||void 0===t||t.call(a,e)},onComplete:function(){var e;r.onComplete(),null===(e=a.onComplete)||void 0===e||e.call(a)}}))}:function(){var e,r,i=lf(n);return t.set(i),o(),null===(e=null==a?void 0:a.onUpdate)||void 0===e||e.call(a,i),null===(r=null==a?void 0:a.onComplete)||void 0===r||r.call(a),{stop:function(){}}}}(e,t,n,r,o),l=function(e,t){var n,r;return null!==(r=null!==(n=(ff(e,t)||{}).delay)&&void 0!==n?n:e.delay)&&void 0!==r?r:0}(r,e),u=function(){return a=s()};return l?i=setTimeout(u,zd(l)):u(),function(){clearTimeout(i),null==a||a.stop()}}))}var hf=["TopLeft","TopRight","BottomLeft","BottomRight"],mf=hf.length,vf=function(e){return"string"==typeof e?parseFloat(e):e},gf=function(e){return"number"==typeof e||gc.test(e)};function bf(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}var yf=wf(0,.5,rd),xf=wf(.5,.95,Zc);function wf(e,t,n){return function(r){return r<e?0:r>t?1:n(Zu(e,t,r))}}function kf(e,t){e.min=t.min,e.max=t.max}function Sf(e,t){kf(e.x,t.x),kf(e.y,t.y)}function Ef(e){return void 0===e||1===e}function Cf(e){var t=e.scale,n=e.scaleX,r=e.scaleY;return!Ef(t)||!Ef(n)||!Ef(r)}function _f(e){return Cf(e)||Of(e.x)||Of(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function Of(e){return e&&"0%"!==e}function Pf(e,t,n){return n+t*(e-n)}function Rf(e,t,n,r,o){return void 0!==o&&(e=Pf(e,o,r)),Pf(e,n,r)+t}function Tf(e,t,n,r,o){void 0===t&&(t=0),void 0===n&&(n=1),e.min=Rf(e.min,t,n,r,o),e.max=Rf(e.max,t,n,r,o)}function Af(e,t){var n=t.x,r=t.y;Tf(e.x,n.translate,n.scale,n.originPoint),Tf(e.y,r.translate,r.scale,r.originPoint)}function If(e,t){e.min=e.min+t,e.max=e.max+t}function jf(e,t,n){var r=Dl(n,3),o=r[0],i=r[1],a=r[2],s=void 0!==t[a]?t[a]:.5,l=Fu(e.min,e.max,s);Tf(e,t[o],t[i],l,t.scale)}var Mf=["x","scaleX","originX"],zf=["y","scaleY","originY"];function Ff(e,t){jf(e.x,t,Mf),jf(e.y,t,zf)}const Lf=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),Df=e=>Lf(e)&&e.hasOwnProperty("z"),Nf=(e,t)=>Math.abs(e-t);function Bf(e,t){if(Lc(e)&&Lc(t))return Nf(e,t);if(Lf(e)&&Lf(t)){const n=Nf(e.x,t.x),r=Nf(e.y,t.y),o=Df(e)&&Df(t)?Nf(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(o,2))}}function Vf(e){return e.max-e.min}function $f(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=.01),Bf(e,t)<n}function Wf(e,t,n,r){void 0===r&&(r=.5),e.origin=r,e.originPoint=Fu(t.min,t.max,e.origin),e.scale=Vf(n)/Vf(t),($f(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Fu(n.min,n.max,e.origin)-e.originPoint,($f(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Uf(e,t,n,r){Wf(e.x,t.x,n.x,null==r?void 0:r.originX),Wf(e.y,t.y,n.y,null==r?void 0:r.originY)}function Hf(e,t,n){e.min=n.min+t.min,e.max=e.min+Vf(t)}function qf(e,t,n){e.min=t.min-n.min,e.max=e.min+Vf(t)}function Yf(e,t,n){qf(e.x,t.x,n.x),qf(e.y,t.y,n.y)}function Xf(e,t,n,r,o){return e=Pf(e-=t,1/n,r),void 0!==o&&(e=Pf(e,1/o,r)),e}function Gf(e,t,n,r,o){var i=Dl(n,3),a=i[0],s=i[1],l=i[2];!function(e,t,n,r,o,i,a){if(void 0===t&&(t=0),void 0===n&&(n=1),void 0===r&&(r=.5),void 0===i&&(i=e),void 0===a&&(a=e),vc.test(t)&&(t=parseFloat(t),t=Fu(a.min,a.max,t/100)-a.min),"number"==typeof t){var s=Fu(i.min,i.max,r);e===i&&(s-=t),e.min=Xf(e.min,t,n,s,o),e.max=Xf(e.max,t,n,s,o)}}(e,t[a],t[s],t[l],t.scale,r,o)}var Kf=["x","scaleX","originX"],Qf=["y","scaleY","originY"];function Zf(e,t,n,r){Gf(e.x,t,Kf,null==n?void 0:n.x,null==r?void 0:r.x),Gf(e.y,t,Qf,null==n?void 0:n.y,null==r?void 0:r.y)}function Jf(e){return 0===e.translate&&1===e.scale}function ep(e){return Jf(e.x)&&Jf(e.y)}function tp(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}var np=function(){function e(){this.members=[]}return e.prototype.add=function(e){Du(this.members,e),e.scheduleRender()},e.prototype.remove=function(e){if(Nu(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){var t=this.members[this.members.length-1];t&&this.promote(t)}},e.prototype.relegate=function(e){var t,n=this.members.findIndex((function(t){return e===t}));if(0===n)return!1;for(var r=n;r>=0;r--){var o=this.members[r];if(!1!==o.isPresent){t=o;break}}return!!t&&(this.promote(t),!0)},e.prototype.promote=function(e,t){var n,r=this.lead;e!==r&&(this.prevLead=r,this.lead=e,e.show(),r&&(r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues,e.snapshot.isShared=!0),(null===(n=e.root)||void 0===n?void 0:n.isUpdating)&&(e.isLayoutDirty=!0),!1===e.options.crossfade&&r.hide()))},e.prototype.exitAnimationComplete=function(){this.members.forEach((function(e){var t,n,r,o,i;null===(n=(t=e.options).onExitComplete)||void 0===n||n.call(t),null===(i=null===(r=e.resumingFrom)||void 0===r?void 0:(o=r.options).onExitComplete)||void 0===i||i.call(o)}))},e.prototype.scheduleRender=function(){this.members.forEach((function(e){e.instance&&e.scheduleRender(!1)}))},e.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},e}(),rp={};function op(e,t,n){var r=e.x.translate/t.x,o=e.y.translate/t.y,i="translate3d(".concat(r,"px, ").concat(o,"px, 0) ");if(n){var a=n.rotate,s=n.rotateX,l=n.rotateY;a&&(i+="rotate(".concat(a,"deg) ")),s&&(i+="rotateX(".concat(s,"deg) ")),l&&(i+="rotateY(".concat(l,"deg) "))}return"translate3d(0px, 0px, 0) scale(1, 1)"===(i+="scale(".concat(e.x.scale,", ").concat(e.y.scale,")"))?"none":i}function ip(e){return[e("x"),e("y")]}var ap=["","X","Y","Z"],sp=["transformPerspective","x","y","z"];function lp(e,t){return sp.indexOf(e)-sp.indexOf(t)}["translate","scale","rotate","skew"].forEach((function(e){return ap.forEach((function(t){return sp.push(e+t)}))}));var up=new Set(sp);function cp(e){return up.has(e)}var dp=new Set(["originX","originY","originZ"]);function fp(e){return dp.has(e)}var pp=function(e,t){return e.depth-t.depth},hp=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){Du(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){Nu(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(pp),this.isDirty=!1,this.children.forEach(e)},e}();function mp(e){var t,n=Wu(e)?e.get():e;return t=n,Boolean(t&&"object"==typeof t&&t.mix&&t.toValue)?n.toValue():n}var vp={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function gp(e){var t=e.attachResizeListener,n=e.defaultParent,r=e.measureScroll,o=e.resetTransform;return function(){function e(e,t,r){var o=this;void 0===t&&(t={}),void 0===r&&(r=null==n?void 0:n()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){o.isUpdating&&(o.isUpdating=!1,o.clearAllSnapshots())},this.updateProjection=function(){o.nodes.forEach(Ep),o.nodes.forEach(Cp)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=e,this.latestValues=t,this.root=r?r.root||r:this,this.path=r?Nl(Nl([],Dl(r.path),!1),[r],!1):[],this.parent=r,this.depth=r?r.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(var i=0;i<this.path.length;i++)this.path[i].shouldResetTransform=!0;this.root===this&&(this.nodes=new hp)}return e.prototype.addEventListener=function(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Bu),this.eventHandlers.get(e).add(t)},e.prototype.notifyListeners=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=this.eventHandlers.get(e);null==r||r.notify.apply(r,Nl([],Dl(t),!1))},e.prototype.hasListeners=function(e){return this.eventHandlers.has(e)},e.prototype.registerPotentialNode=function(e,t){this.potentialNodes.set(e,t)},e.prototype.mount=function(e,n){var r,o=this;if(void 0===n&&(n=!1),!this.instance){this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;var i=this.options,a=i.layoutId,s=i.layout,l=i.visualElement;if(l&&!l.getInstance()&&l.mount(e),this.root.nodes.add(this),null===(r=this.parent)||void 0===r||r.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),n&&(s||a)&&(this.isLayoutDirty=!0),t){var u,c=function(){return o.root.updateBlockedByResize=!1};t(e,(function(){o.root.updateBlockedByResize=!0,clearTimeout(u),u=setTimeout(c,250),vp.hasAnimatedSinceResize&&(vp.hasAnimatedSinceResize=!1,o.nodes.forEach(Sp))}))}a&&this.root.registerSharedNode(a,this),!1!==this.options.animate&&l&&(a||s)&&this.addEventListener("didUpdate",(function(e){var t,n,r,i,a,s=e.delta,u=e.hasLayoutChanged,c=e.hasRelativeTargetChanged,d=e.layout;if(o.isTreeAnimationBlocked())return o.target=void 0,void(o.relativeTarget=void 0);var f=null!==(n=null!==(t=o.options.transition)&&void 0!==t?t:l.getDefaultTransition())&&void 0!==n?n:Ap,p=l.getProps().onLayoutAnimationComplete,h=!o.targetLayout||!tp(o.targetLayout,d)||c,m=!u&&c;(null===(r=o.resumeFrom)||void 0===r?void 0:r.instance)||m||u&&(h||!o.currentAnimation)?(o.resumeFrom&&(o.resumingFrom=o.resumeFrom,o.resumingFrom.resumingFrom=void 0),o.setAnimationOrigin(s,m),o.startAnimation(Fl(Fl({},ff(f,"layout")),{onComplete:p}))):o.isLead()&&(null===(a=(i=o.options).onExitComplete)||void 0===a||a.call(i)),o.targetLayout=d}))}},e.prototype.unmount=function(){var e,t;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(e=this.getStack())||void 0===e||e.remove(this),null===(t=this.parent)||void 0===t||t.children.delete(this),this.instance=void 0,Kl.preRender(this.updateProjection)},e.prototype.blockUpdate=function(){this.updateManuallyBlocked=!0},e.prototype.unblockUpdate=function(){this.updateManuallyBlocked=!1},e.prototype.isUpdateBlocked=function(){return this.updateManuallyBlocked||this.updateBlockedByResize},e.prototype.isTreeAnimationBlocked=function(){var e;return this.isAnimationBlocked||(null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimationBlocked())||!1},e.prototype.startUpdate=function(){var e;this.isUpdateBlocked()||(this.isUpdating=!0,null===(e=this.nodes)||void 0===e||e.forEach(_p))},e.prototype.willUpdate=function(e){var t,n,r;if(void 0===e&&(e=!0),this.root.isUpdateBlocked())null===(n=(t=this.options).onExitComplete)||void 0===n||n.call(t);else if(!this.root.isUpdating&&this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var o=0;o<this.path.length;o++){var i=this.path[o];i.shouldResetTransform=!0,i.updateScroll()}var a=this.options,s=a.layoutId,l=a.layout;if(void 0!==s||l){var u=null===(r=this.options.visualElement)||void 0===r?void 0:r.getProps().transformTemplate;this.prevTransformTemplateValue=null==u?void 0:u(this.latestValues,""),this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}}},e.prototype.didUpdate=function(){if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(wp);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(Ip),this.potentialNodes.clear()),this.nodes.forEach(kp),this.nodes.forEach(bp),this.nodes.forEach(yp),this.clearAllSnapshots(),Ql.update(),Ql.preRender(),Ql.render())},e.prototype.clearAllSnapshots=function(){this.nodes.forEach(xp),this.sharedNodes.forEach(Op)},e.prototype.scheduleUpdateProjection=function(){nu.preRender(this.updateProjection,!1,!0)},e.prototype.scheduleCheckAfterUnmount=function(){var e=this;nu.postRender((function(){e.isLayoutDirty?e.root.didUpdate():e.root.checkUpdateFailed()}))},e.prototype.updateSnapshot=function(){if(!this.snapshot&&this.instance){var e=this.measure(),t=this.removeTransform(this.removeElementScroll(e));Mp(t),this.snapshot={measured:e,layout:t,latestValues:{}}}},e.prototype.updateLayout=function(){var e;if(this.instance&&(this.updateScroll(),this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty)){if(this.resumeFrom&&!this.resumeFrom.instance)for(var t=0;t<this.path.length;t++)this.path[t].updateScroll();var n=this.measure();Mp(n);var r=this.layout;this.layout={measured:n,actual:this.removeElementScroll(n)},this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),null===(e=this.options.visualElement)||void 0===e||e.notifyLayoutMeasure(this.layout.actual,null==r?void 0:r.actual)}},e.prototype.updateScroll=function(){this.options.layoutScroll&&this.instance&&(this.scroll=r(this.instance))},e.prototype.resetTransform=function(){var e;if(o){var t=this.isLayoutDirty||this.shouldResetTransform,n=this.projectionDelta&&!ep(this.projectionDelta),r=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate,i=null==r?void 0:r(this.latestValues,""),a=i!==this.prevTransformTemplateValue;t&&(n||_f(this.latestValues)||a)&&(o(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}},e.prototype.measure=function(){var e=this.options.visualElement;if(!e)return{x:{min:0,max:0},y:{min:0,max:0}};var t=e.measureViewportBox(),n=this.root.scroll;return n&&(If(t.x,n.x),If(t.y,n.y)),t},e.prototype.removeElementScroll=function(e){var t={x:{min:0,max:0},y:{min:0,max:0}};Sf(t,e);for(var n=0;n<this.path.length;n++){var r=this.path[n],o=r.scroll,i=r.options;r!==this.root&&o&&i.layoutScroll&&(If(t.x,o.x),If(t.y,o.y))}return t},e.prototype.applyTransform=function(e,t){void 0===t&&(t=!1);var n={x:{min:0,max:0},y:{min:0,max:0}};Sf(n,e);for(var r=0;r<this.path.length;r++){var o=this.path[r];!t&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Ff(n,{x:-o.scroll.x,y:-o.scroll.y}),_f(o.latestValues)&&Ff(n,o.latestValues)}return _f(this.latestValues)&&Ff(n,this.latestValues),n},e.prototype.removeTransform=function(e){var t,n={x:{min:0,max:0},y:{min:0,max:0}};Sf(n,e);for(var r=0;r<this.path.length;r++){var o=this.path[r];if(o.instance&&_f(o.latestValues)){Cf(o.latestValues)&&o.updateSnapshot();var i={x:{min:0,max:0},y:{min:0,max:0}};Sf(i,o.measure()),Zf(n,o.latestValues,null===(t=o.snapshot)||void 0===t?void 0:t.layout,i)}}return _f(this.latestValues)&&Zf(n,this.latestValues),n},e.prototype.setTargetDelta=function(e){this.targetDelta=e,this.root.scheduleUpdateProjection()},e.prototype.setOptions=function(e){var t;this.options=Fl(Fl(Fl({},this.options),e),{crossfade:null===(t=e.crossfade)||void 0===t||t})},e.prototype.clearMeasurements=function(){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},e.prototype.resolveTargetDelta=function(){var e,t,n,r,o=this.options,i=o.layout,a=o.layoutId;this.layout&&(i||a)&&(this.targetDelta||this.relativeTarget||(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Yf(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),Sf(this.relativeTarget,this.relativeTargetOrigin))),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&(null===(e=this.relativeParent)||void 0===e?void 0:e.target)?(t=this.target,n=this.relativeTarget,r=this.relativeParent.target,Hf(t.x,n.x,r.x),Hf(t.y,n.y,r.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):Sf(this.target,this.layout.actual),Af(this.target,this.targetDelta)):Sf(this.target,this.layout.actual),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&Boolean(this.relativeParent.resumingFrom)===Boolean(this.resumingFrom)&&!this.relativeParent.options.layoutScroll&&this.relativeParent.target&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Yf(this.relativeTargetOrigin,this.target,this.relativeParent.target),Sf(this.relativeTarget,this.relativeTargetOrigin)))))},e.prototype.getClosestProjectingParent=function(){if(this.parent&&!_f(this.parent.latestValues))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()},e.prototype.calcProjection=function(){var e,t=this.options,n=t.layout,r=t.layoutId;if(this.isTreeAnimating=Boolean((null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),this.layout&&(n||r)){var o=this.getLead();Sf(this.layoutCorrected,this.layout.actual),function(e,t,n,r){var o,i;void 0===r&&(r=!1);var a=n.length;if(a){var s,l;t.x=t.y=1;for(var u=0;u<a;u++)l=(s=n[u]).projectionDelta,"contents"!==(null===(i=null===(o=s.instance)||void 0===o?void 0:o.style)||void 0===i?void 0:i.display)&&(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Ff(e,{x:-s.scroll.x,y:-s.scroll.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,Af(e,l)),r&&_f(s.latestValues)&&Ff(e,s.latestValues))}}(this.layoutCorrected,this.treeScale,this.path,Boolean(this.resumingFrom)||this!==o);var i=o.target;if(i){this.projectionDelta||(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}});var a=this.treeScale.x,s=this.treeScale.y,l=this.projectionTransform;Uf(this.projectionDelta,this.layoutCorrected,i,this.latestValues),this.projectionTransform=op(this.projectionDelta,this.treeScale),this.projectionTransform===l&&this.treeScale.x===a&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",i))}}},e.prototype.hide=function(){this.isVisible=!1},e.prototype.show=function(){this.isVisible=!0},e.prototype.scheduleRender=function(e){var t,n,r;void 0===e&&(e=!0),null===(n=(t=this.options).scheduleRender)||void 0===n||n.call(t),e&&(null===(r=this.getStack())||void 0===r||r.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)},e.prototype.setAnimationOrigin=function(e,t){var n,r=this;void 0===t&&(t=!1);var o=this.snapshot,i=(null==o?void 0:o.latestValues)||{},a=Fl({},this.latestValues),s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!t;var l={x:{min:0,max:0},y:{min:0,max:0}},u=null==o?void 0:o.isShared,c=((null===(n=this.getStack())||void 0===n?void 0:n.members.length)||0)<=1,d=Boolean(u&&!c&&!0===this.options.crossfade&&!this.path.some(Tp));this.mixTargetDelta=function(t){var n,o,f,p,h,m=t/1e3;Pp(s.x,e.x,m),Pp(s.y,e.y,m),r.setTargetDelta(s),r.relativeTarget&&r.relativeTargetOrigin&&r.layout&&(null===(n=r.relativeParent)||void 0===n?void 0:n.layout)&&(Yf(l,r.layout.actual,r.relativeParent.layout.actual),o=r.relativeTarget,f=r.relativeTargetOrigin,p=l,h=m,Rp(o.x,f.x,p.x,h),Rp(o.y,f.y,p.y,h)),u&&(r.animationValues=a,function(e,t,n,r,o,i){var a,s,l,u;o?(e.opacity=Fu(0,null!==(a=n.opacity)&&void 0!==a?a:1,yf(r)),e.opacityExit=Fu(null!==(s=t.opacity)&&void 0!==s?s:1,0,xf(r))):i&&(e.opacity=Fu(null!==(l=t.opacity)&&void 0!==l?l:1,null!==(u=n.opacity)&&void 0!==u?u:1,r));for(var c=0;c<mf;c++){var d="border".concat(hf[c],"Radius"),f=bf(t,d),p=bf(n,d);void 0===f&&void 0===p||(f||(f=0),p||(p=0),0===f||0===p||gf(f)===gf(p)?(e[d]=Math.max(Fu(vf(f),vf(p),r),0),(vc.test(p)||vc.test(f))&&(e[d]+="%")):e[d]=p)}(t.rotate||n.rotate)&&(e.rotate=Fu(t.rotate||0,n.rotate||0,r))}(a,i,r.latestValues,m,d,c)),r.root.scheduleUpdateProjection(),r.scheduleRender()},this.mixTargetDelta(0)},e.prototype.startAnimation=function(e){var t,n,r=this;null===(t=this.currentAnimation)||void 0===t||t.stop(),this.resumingFrom&&(null===(n=this.resumingFrom.currentAnimation)||void 0===n||n.stop()),this.pendingAnimation&&(Kl.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=nu.update((function(){vp.hasAnimatedSinceResize=!0,r.currentAnimation=function(e,t,n){void 0===n&&(n={});var r=Wu(0)?0:$u(0);return pf("",r,1e3,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}(0,0,Fl(Fl({},e),{onUpdate:function(t){var n;r.mixTargetDelta(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:function(){var t;null===(t=e.onComplete)||void 0===t||t.call(e),r.completeAnimation()}})),r.resumingFrom&&(r.resumingFrom.currentAnimation=r.currentAnimation),r.pendingAnimation=void 0}))},e.prototype.completeAnimation=function(){var e;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(e=this.getStack())||void 0===e||e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")},e.prototype.finishAnimation=function(){var e;this.currentAnimation&&(null===(e=this.mixTargetDelta)||void 0===e||e.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()},e.prototype.applyTransformsToTarget=function(){var e=this.getLead(),t=e.targetWithTransforms,n=e.target,r=e.layout,o=e.latestValues;t&&n&&r&&(Sf(t,n),Ff(t,o),Uf(this.projectionDeltaWithTransform,this.layoutCorrected,t,o))},e.prototype.registerSharedNode=function(e,t){var n,r,o;this.sharedNodes.has(e)||this.sharedNodes.set(e,new np),this.sharedNodes.get(e).add(t),t.promote({transition:null===(n=t.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(o=null===(r=t.options.initialPromotionConfig)||void 0===r?void 0:r.shouldPreserveFollowOpacity)||void 0===o?void 0:o.call(r,t)})},e.prototype.isLead=function(){var e=this.getStack();return!e||e.lead===this},e.prototype.getLead=function(){var e;return this.options.layoutId&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this},e.prototype.getPrevLead=function(){var e;return this.options.layoutId?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0},e.prototype.getStack=function(){var e=this.options.layoutId;if(e)return this.root.sharedNodes.get(e)},e.prototype.promote=function(e){var t=void 0===e?{}:e,n=t.needsReset,r=t.transition,o=t.preserveFollowOpacity,i=this.getStack();i&&i.promote(this,o),n&&(this.projectionDelta=void 0,this.needsReset=!0),r&&this.setOptions({transition:r})},e.prototype.relegate=function(){var e=this.getStack();return!!e&&e.relegate(this)},e.prototype.resetRotation=function(){var e=this.options.visualElement;if(e){for(var t=!1,n={},r=0;r<ap.length;r++){var o="rotate"+ap[r];e.getStaticValue(o)&&(t=!0,n[o]=e.getStaticValue(o),e.setStaticValue(o,0))}if(t){for(var o in null==e||e.syncRender(),n)e.setStaticValue(o,n[o]);e.scheduleRender()}}},e.prototype.getProjectionStyles=function(e){var t,n,r,o,i,a;void 0===e&&(e={});var s={};if(!this.instance||this.isSVG)return s;if(!this.isVisible)return{visibility:"hidden"};s.visibility="";var l=null===(t=this.options.visualElement)||void 0===t?void 0:t.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=mp(e.pointerEvents)||"",s.transform=l?l(this.latestValues,""):"none",s;var u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){var c={};return this.options.layoutId&&(c.opacity=null!==(n=this.latestValues.opacity)&&void 0!==n?n:1,c.pointerEvents=mp(e.pointerEvents)||""),this.hasProjected&&!_f(this.latestValues)&&(c.transform=l?l({},""):"none",this.hasProjected=!1),c}var d=u.animationValues||u.latestValues;this.applyTransformsToTarget(),s.transform=op(this.projectionDeltaWithTransform,this.treeScale,d),l&&(s.transform=l(d,s.transform));var f=this.projectionDelta,p=f.x,h=f.y;for(var m in s.transformOrigin="".concat(100*p.origin,"% ").concat(100*h.origin,"% 0"),u.animationValues?s.opacity=u===this?null!==(o=null!==(r=d.opacity)&&void 0!==r?r:this.latestValues.opacity)&&void 0!==o?o:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:s.opacity=u===this?null!==(i=d.opacity)&&void 0!==i?i:"":null!==(a=d.opacityExit)&&void 0!==a?a:0,rp)if(void 0!==d[m]){var v=rp[m],g=v.correct,b=v.applyTo,y=g(d[m],u);if(b)for(var x=b.length,w=0;w<x;w++)s[b[w]]=y;else s[m]=y}return this.options.layoutId&&(s.pointerEvents=u===this?mp(e.pointerEvents)||"":"none"),s},e.prototype.clearSnapshot=function(){this.resumeFrom=this.snapshot=void 0},e.prototype.resetTree=function(){this.root.nodes.forEach((function(e){var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(wp),this.root.sharedNodes.clear()},e}()}function bp(e){e.updateLayout()}function yp(e){var t,n,r,o,i=null!==(n=null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)&&void 0!==n?n:e.snapshot;if(e.isLead()&&e.layout&&i&&e.hasListeners("didUpdate")){var a=e.layout,s=a.actual,l=a.measured;"size"===e.options.animationType?ip((function(e){var t=i.isShared?i.measured[e]:i.layout[e],n=Vf(t);t.min=s[e].min,t.max=t.min+n})):"position"===e.options.animationType&&ip((function(e){var t=i.isShared?i.measured[e]:i.layout[e],n=Vf(s[e]);t.max=t.min+n}));var u={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};Uf(u,s,i.layout);var c={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};i.isShared?Uf(c,e.applyTransform(l,!0),i.measured):Uf(c,s,i.layout);var d=!ep(u),f=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){var p=e.relativeParent,h=p.snapshot,m=p.layout;if(h&&m){var v={x:{min:0,max:0},y:{min:0,max:0}};Yf(v,i.layout,h.layout);var g={x:{min:0,max:0},y:{min:0,max:0}};Yf(g,s,m.actual),tp(v,g)||(f=!0)}}e.notifyListeners("didUpdate",{layout:s,snapshot:i,delta:c,layoutDelta:u,hasLayoutChanged:d,hasRelativeTargetChanged:f})}else e.isLead()&&(null===(o=(r=e.options).onExitComplete)||void 0===o||o.call(r));e.options.transition=void 0}function xp(e){e.clearSnapshot()}function wp(e){e.clearMeasurements()}function kp(e){e.resetTransform()}function Sp(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function Ep(e){e.resolveTargetDelta()}function Cp(e){e.calcProjection()}function _p(e){e.resetRotation()}function Op(e){e.removeLeadSnapshot()}function Pp(e,t,n){e.translate=Fu(t.translate,0,n),e.scale=Fu(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Rp(e,t,n,r){e.min=Fu(t.min,n.min,r),e.max=Fu(t.max,n.max,r)}function Tp(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}var Ap={duration:.45,ease:[.4,0,.1,1]};function Ip(e,t){for(var n=e.root,r=e.path.length-1;r>=0;r--)if(Boolean(e.path[r].instance)){n=e.path[r];break}var o=(n&&n!==e.root?n.instance:document).querySelector('[data-projection-id="'.concat(t,'"]'));o&&e.mount(o,!0)}function jp(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function Mp(e){jp(e.x),jp(e.y)}var zp=1,Fp=(0,e.createContext)({}),Lp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return zl(t,e),t.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},t.prototype.componentDidUpdate=function(){},t.prototype.updateProps=function(){var e=this.props,t=e.visualElement,n=e.props;t&&t.setProps(n)},t.prototype.render=function(){return this.props.children},t}(e.Component);function Dp(t){var n=t.preloadedFeatures,r=t.createVisualElement,o=t.projectionNodeConstructor,i=t.useRender,a=t.useVisualState,s=t.Component;return n&&function(e){for(var t in e)null!==e[t]&&("projectionNodeConstructor"===t?xu.projectionNodeConstructor=e[t]:xu[t].Component=e[t])}(n),(0,e.forwardRef)((function(t,n){var l=function(t){var n,r=t.layoutId,o=null===(n=(0,e.useContext)(cu))||void 0===n?void 0:n.id;return o&&void 0!==r?o+"-"+r:r}(t);t=Fl(Fl({},t),{layoutId:l});var u=(0,e.useContext)(Eu),c=null,d=function(t){var n=function(e,t){if(ju(e)){var n=e.initial,r=e.animate;return{initial:!1===n||Tu(n)?n:void 0,animate:Tu(r)?r:void 0}}return!1!==e.inherit?t:{}}(t,(0,e.useContext)(Cu)),r=n.initial,o=n.animate;return(0,e.useMemo)((function(){return{initial:r,animate:o}}),[zu(r),zu(o)])}(t),f=u.isStatic?void 0:iu((function(){if(vp.hasEverUpdated)return zp++})),p=a(t,u.isStatic);return!u.isStatic&&_u&&(d.visualElement=function(t,n,r,o){var i=(0,e.useContext)(wu),a=(0,e.useContext)(Cu).visualElement,s=(0,e.useContext)(ou),l=(0,e.useRef)(void 0);o||(o=i.renderer),!l.current&&o&&(l.current=o(t,{visualState:n,parent:a,props:r,presenceId:null==s?void 0:s.id,blockInitialAnimation:!1===(null==s?void 0:s.initial)}));var u=l.current;return Ou((function(){null==u||u.syncRender()})),(0,e.useEffect)((function(){var e;null===(e=null==u?void 0:u.animationState)||void 0===e||e.animateChanges()})),Ou((function(){return function(){return null==u?void 0:u.notifyUnmount()}}),[]),u}(s,p,Fl(Fl({},u),t),r),function(t,n,r,o){var i,a=n.layoutId,s=n.layout,l=n.drag,u=n.dragConstraints,c=n.layoutScroll,d=(0,e.useContext)(Fp);o&&r&&!(null==r?void 0:r.projection)&&(r.projection=new o(t,r.getLatestValues(),null===(i=r.parent)||void 0===i?void 0:i.projection),r.projection.setOptions({layoutId:a,layout:s,alwaysMeasureLayout:Boolean(l)||u&&Pu(u),visualElement:r,scheduleRender:function(){return r.scheduleRender()},animationType:"string"==typeof s?s:"both",initialPromotionConfig:d,layoutScroll:c}))}(f,t,d.visualElement,o||xu.projectionNodeConstructor),c=function(t,n){var r=[];if((0,e.useContext)(wu),!n)return null;for(var o=0;o<Su;o++){var i=ku[o],a=xu[i],s=a.isEnabled,l=a.Component;s(t)&&l&&r.push(e.createElement(l,Fl({key:i},t,{visualElement:n})))}return r}(t,d.visualElement)),e.createElement(Lp,{visualElement:d.visualElement,props:Fl(Fl({},u),t)},c,e.createElement(Cu.Provider,{value:d},i(s,t,f,function(t,n,r){return(0,e.useCallback)((function(e){var o;e&&(null===(o=t.mount)||void 0===o||o.call(t,e)),n&&(e?n.mount(e):n.unmount()),r&&("function"==typeof r?r(e):Pu(r)&&(r.current=e))}),[n])}(p,d.visualElement,n),p,u.isStatic,d.visualElement)))}))}function Np(e){function t(t,n){return void 0===n&&(n={}),Dp(e(t,n))}if("undefined"==typeof Proxy)return t;var n=new Map;return new Proxy(t,{get:function(e,r){return n.has(r)||n.set(r,t(r)),n.get(r)}})}var Bp=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function Vp(e){return"string"==typeof e&&!e.includes("-")&&!!(Bp.indexOf(e)>-1||/[A-Z]/.test(e))}function $p(e,t){var n=t.layout,r=t.layoutId;return cp(e)||fp(e)||(n||void 0!==r)&&(!!rp[e]||"opacity"===e)}var Wp={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function Up(e){return e.startsWith("--")}var Hp=function(e,t){return t&&"number"==typeof e?t.transform(e):e};function qp(e,t,n,r){var o,i=e.style,a=e.vars,s=e.transform,l=e.transformKeys,u=e.transformOrigin;l.length=0;var c=!1,d=!1,f=!0;for(var p in t){var h=t[p];if(Up(p))a[p]=h;else{var m=rf[p],v=Hp(h,m);if(cp(p)){if(c=!0,s[p]=v,l.push(p),!f)continue;h!==(null!==(o=m.default)&&void 0!==o?o:0)&&(f=!1)}else fp(p)?(u[p]=v,d=!0):i[p]=v}}c?i.transform=function(e,t,n,r){var o=e.transform,i=e.transformKeys,a=t.enableHardwareAcceleration,s=void 0===a||a,l=t.allowTransformNone,u=void 0===l||l,c="";i.sort(lp);for(var d=!1,f=i.length,p=0;p<f;p++){var h=i[p];c+="".concat(Wp[h]||h,"(").concat(o[h],") "),"z"===h&&(d=!0)}return!d&&s?c+="translateZ(0)":c=c.trim(),r?c=r(o,n?"":c):u&&n&&(c="none"),c}(e,n,f,r):r?i.transform=r({},""):!t.transform&&i.transform&&(i.transform="none"),d&&(i.transformOrigin=function(e){var t=e.originX,n=void 0===t?"50%":t,r=e.originY,o=void 0===r?"50%":r,i=e.originZ,a=void 0===i?0:i;return"".concat(n," ").concat(o," ").concat(a)}(u))}function Yp(e,t,n){for(var r in t)Wu(t[r])||$p(r,n)||(e[r]=t[r])}function Xp(t,n,r){var o={},i=function(t,n,r){var o={};return Yp(o,t.style||{},t),Object.assign(o,function(t,n,r){var o=t.transformTemplate;return(0,e.useMemo)((function(){var e={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};qp(e,n,{enableHardwareAcceleration:!r},o);var t=e.style;return Fl(Fl({},e.vars),t)}),[n])}(t,n,r)),t.transformValues&&(o=t.transformValues(o)),o}(t,n,r);return Boolean(t.drag)&&!1!==t.dragListener&&(o.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===t.drag?"none":"pan-".concat("x"===t.drag?"y":"x")),o.style=i,o}var Gp=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover","whileInView","onViewportEnter","onViewportLeave","viewport","layoutScroll"]);function Kp(e){return Gp.has(e)}var Qp,Zp=function(e){return!Kp(e)};try{(Qp=require("@emotion/is-prop-valid").default)&&(Zp=function(e){return e.startsWith("on")?!Kp(e):Qp(e)})}catch(e){}function Jp(e,t,n){return"string"==typeof e?e:gc.transform(t+n*e)}var eh={offset:"stroke-dashoffset",array:"stroke-dasharray"},th={offset:"strokeDashoffset",array:"strokeDasharray"};function nh(e,t,n,r){var o=t.attrX,i=t.attrY,a=t.originX,s=t.originY,l=t.pathLength,u=t.pathSpacing,c=void 0===u?1:u,d=t.pathOffset,f=void 0===d?0:d;qp(e,Ll(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),n,r),e.attrs=e.style,e.style={};var p=e.attrs,h=e.style,m=e.dimensions;p.transform&&(m&&(h.transform=p.transform),delete p.transform),m&&(void 0!==a||void 0!==s||h.transform)&&(h.transformOrigin=function(e,t,n){var r=Jp(t,e.x,e.width),o=Jp(n,e.y,e.height);return"".concat(r," ").concat(o)}(m,void 0!==a?a:.5,void 0!==s?s:.5)),void 0!==o&&(p.x=o),void 0!==i&&(p.y=i),void 0!==l&&function(e,t,n,r,o){void 0===n&&(n=1),void 0===r&&(r=0),void 0===o&&(o=!0),e.pathLength=1;var i=o?eh:th;e[i.offset]=gc.transform(-r);var a=gc.transform(t),s=gc.transform(n);e[i.array]="".concat(a," ").concat(s)}(p,l,c,f,!1)}var rh=function(){return Fl(Fl({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};function oh(t,n){var r=(0,e.useMemo)((function(){var e=rh();return nh(e,n,{enableHardwareAcceleration:!1},t.transformTemplate),Fl(Fl({},e.attrs),{style:Fl({},e.style)})}),[n]);if(t.style){var o={};Yp(o,t.style,t),r.style=Fl(Fl({},o),r.style)}return r}function ih(t){return void 0===t&&(t=!1),function(n,r,o,i,a,s){var l=a.latestValues,u=(Vp(n)?oh:Xp)(r,l,s),c=function(e,t,n){var r={};for(var o in e)(Zp(o)||!0===n&&Kp(o)||!t&&!Kp(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(r,"string"==typeof n,t),d=Fl(Fl(Fl({},c),u),{ref:i});return o&&(d["data-projection-id"]=o),(0,e.createElement)(n,d)}}var ah=/([a-z])([A-Z])/g,sh=function(e){return e.replace(ah,"$1-$2").toLowerCase()};function lh(e,t,n,r){var o=t.style,i=t.vars;for(var a in Object.assign(e.style,o,r&&r.getProjectionStyles(n)),i)e.style.setProperty(a,i[a])}var uh=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function ch(e,t){for(var n in lh(e,t),t.attrs)e.setAttribute(uh.has(n)?n:sh(n),t.attrs[n])}function dh(e){var t=e.style,n={};for(var r in t)(Wu(t[r])||$p(r,e))&&(n[r]=t[r]);return n}function fh(e){var t=dh(e);for(var n in e)Wu(e[n])&&(t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]);return t}function ph(e){return"object"==typeof e&&"function"==typeof e.start}function hh(e,t,n,r){var o=e.scrapeMotionValuesFromProps,i=e.createRenderState,a=e.onMount,s={latestValues:vh(t,n,r,o),renderState:i()};return a&&(s.mount=function(e){return a(t,e,s)}),s}var mh=function(t){return function(n,r){var o=(0,e.useContext)(Cu),i=(0,e.useContext)(ou);return r?hh(t,n,o,i):iu((function(){return hh(t,n,o,i)}))}};function vh(e,t,n,r){var o={},i=!1===(null==n?void 0:n.initial),a=r(e);for(var s in a)o[s]=mp(a[s]);var l=e.initial,u=e.animate,c=ju(e),d=Mu(e);t&&d&&!c&&!1!==e.inherit&&(null!=l||(l=t.initial),null!=u||(u=t.animate));var f=i||!1===l,p=f?u:l;return p&&"boolean"!=typeof p&&!ph(p)&&(Array.isArray(p)?p:[p]).forEach((function(t){var n=Au(e,t);if(n){var r=n.transitionEnd;n.transition;var i=Ll(n,["transitionEnd","transition"]);for(var a in i){var s=i[a];Array.isArray(s)&&(s=s[f?s.length-1:0]),null!==s&&(o[a]=s)}for(var a in r)o[a]=r[a]}})),o}var gh,bh={useVisualState:mh({scrapeMotionValuesFromProps:fh,createRenderState:rh,onMount:function(e,t,n){var r=n.renderState,o=n.latestValues;try{r.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}nh(r,o,{enableHardwareAcceleration:!1},e.transformTemplate),ch(t,r)}})},yh={useVisualState:mh({scrapeMotionValuesFromProps:dh,createRenderState:function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}}})};function xh(e,t,n,r){return e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n,r)}}function wh(t,n,r,o){(0,e.useEffect)((function(){var e=t.current;if(r&&e)return xh(e,n,r,o)}),[t,n,r,o])}function kh(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function Sh(e){return!!e.touches}!function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"}(gh||(gh={}));var Eh={pageX:0,pageY:0};function Ch(e,t){void 0===t&&(t="page");var n=e.touches[0]||e.changedTouches[0]||Eh;return{x:n[t+"X"],y:n[t+"Y"]}}function _h(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function Oh(e,t){return void 0===t&&(t="page"),{point:Sh(e)?Ch(e,t):_h(e,t)}}var Ph=function(e,t){void 0===t&&(t=!1);var n,r=function(t){return e(t,Oh(t))};return t?(n=r,function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}):r},Rh={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},Th={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function Ah(e){return _u&&null===window.onpointerdown?e:_u&&null===window.ontouchstart?Th[e]:_u&&null===window.onmousedown?Rh[e]:e}function Ih(e,t,n,r){return xh(e,Ah(t),Ph(n,"pointerdown"===t),r)}function jh(e,t,n,r){return wh(e,Ah(t),n&&Ph(n,"pointerdown"===t),r)}function Mh(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var zh=Mh("dragHorizontal"),Fh=Mh("dragVertical");function Lh(e){var t=!1;if("y"===e)t=Fh();else if("x"===e)t=zh();else{var n=zh(),r=Fh();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function Dh(){var e=Lh(!0);return!e||(e(),!1)}function Nh(e,t,n){return function(r,o){var i;kh(r)&&!Dh()&&(null===(i=e.animationState)||void 0===i||i.setActive(gh.Hover,t),null==n||n(r,o))}}var Bh=function(e,t){return!!t&&(e===t||Bh(e,t.parentElement))},Vh=new WeakMap,$h=new WeakMap,Wh=function(e){var t;null===(t=Vh.get(e.target))||void 0===t||t(e)},Uh=function(e){e.forEach(Wh)};var Hh={some:0,all:1};function qh(t,n,r,o){var i=o.root,a=o.margin,s=o.amount,l=void 0===s?"some":s,u=o.once;(0,e.useEffect)((function(){if(t){var e={root:null==i?void 0:i.current,rootMargin:a,threshold:"number"==typeof l?l:Hh[l]};return function(e,t,n){var r=function(e){var t=e.root,n=Ll(e,["root"]),r=t||document;$h.has(r)||$h.set(r,{});var o=$h.get(r),i=JSON.stringify(n);return o[i]||(o[i]=new IntersectionObserver(Uh,Fl({root:t},n))),o[i]}(t);return Vh.set(e,n),r.observe(e),function(){Vh.delete(e),r.unobserve(e)}}(r.getInstance(),e,(function(e){var t,o=e.isIntersecting;if(n.isInView!==o&&(n.isInView=o,!u||o||!n.hasEnteredView)){o&&(n.hasEnteredView=!0),null===(t=r.animationState)||void 0===t||t.setActive(gh.InView,o);var i=r.getProps(),a=o?i.onViewportEnter:i.onViewportLeave;null==a||a(e)}}))}}),[t,i,a,l])}function Yh(t,n,r){(0,e.useEffect)((function(){t&&requestAnimationFrame((function(){var e;n.hasEnteredView=!0;var t=r.getProps().onViewportEnter;null==t||t(null),null===(e=r.animationState)||void 0===e||e.setActive(gh.InView,!0)}))}),[t])}var Xh=function(e){return function(t){return e(t),null}},Gh={inView:Xh((function(t){var n=t.visualElement,r=t.whileInView,o=t.onViewportEnter,i=t.onViewportLeave,a=t.viewport,s=void 0===a?{}:a,l=(0,e.useRef)({hasEnteredView:!1,isInView:!1}),u=Boolean(r||o||i);s.once&&l.current.hasEnteredView&&(u=!1),("undefined"==typeof IntersectionObserver?Yh:qh)(u,l.current,n,s)})),tap:Xh((function(t){var n=t.onTap,r=t.onTapStart,o=t.onTapCancel,i=t.whileTap,a=t.visualElement,s=n||r||o||i,l=(0,e.useRef)(!1),u=(0,e.useRef)(null);function c(){var e;null===(e=u.current)||void 0===e||e.call(u),u.current=null}function d(){var e;return c(),l.current=!1,null===(e=a.animationState)||void 0===e||e.setActive(gh.Tap,!1),!Dh()}function f(e,t){d()&&(Bh(a.getInstance(),e.target)?null==n||n(e,t):null==o||o(e,t))}function p(e,t){d()&&(null==o||o(e,t))}jh(a,"pointerdown",s?function(e,t){var n;c(),l.current||(l.current=!0,u.current=Nc(Ih(window,"pointerup",f),Ih(window,"pointercancel",p)),null===(n=a.animationState)||void 0===n||n.setActive(gh.Tap,!0),null==r||r(e,t))}:void 0),ru(c)})),focus:Xh((function(e){var t=e.whileFocus,n=e.visualElement;wh(n,"focus",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(gh.Focus,!0)}:void 0),wh(n,"blur",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(gh.Focus,!1)}:void 0)})),hover:Xh((function(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,o=e.visualElement;jh(o,"pointerenter",t||r?Nh(o,!0,t):void 0),jh(o,"pointerleave",n||r?Nh(o,!1,n):void 0)}))};function Kh(e,t){if(!Array.isArray(t))return!1;var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var Qh=function(e){return function(t){return t.test(e)}},Zh=[ic,gc,vc,mc,yc,bc,{test:function(e){return"auto"===e},parse:function(e){return e}}],Jh=function(e){return Zh.find(Qh(e))},em=Nl(Nl([],Dl(Zh),!1),[Rc,Fc],!1),tm=function(e){return em.find(Qh(e))};function nm(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,$u(n))}function rm(e,t){if(t)return(t[e]||t.default||t).from}function om(e,t,n){var r;void 0===n&&(n={});var o=Iu(e,t,n.custom),i=(o||{}).transition,a=void 0===i?e.getDefaultTransition()||{}:i;n.transitionOverride&&(a=n.transitionOverride);var s=o?function(){return im(e,o,n)}:function(){return Promise.resolve()},l=(null===(r=e.variantChildren)||void 0===r?void 0:r.size)?function(r){void 0===r&&(r=0);var o=a.delayChildren,i=void 0===o?0:o,s=a.staggerChildren,l=a.staggerDirection;return function(e,t,n,r,o,i){void 0===n&&(n=0),void 0===r&&(r=0),void 0===o&&(o=1);var a=[],s=(e.variantChildren.size-1)*r,l=1===o?function(e){return void 0===e&&(e=0),e*r}:function(e){return void 0===e&&(e=0),s-e*r};return Array.from(e.variantChildren).sort(am).forEach((function(e,r){a.push(om(e,t,Fl(Fl({},i),{delay:n+l(r)})).then((function(){return e.notifyAnimationComplete(t)})))})),Promise.all(a)}(e,t,i+r,s,l,n)}:function(){return Promise.resolve()},u=a.when;if(u){var c=Dl("beforeChildren"===u?[s,l]:[l,s],2),d=c[0],f=c[1];return d().then(f)}return Promise.all([s(),l(n.delay)])}function im(e,t,n){var r,o=void 0===n?{}:n,i=o.delay,a=void 0===i?0:i,s=o.transitionOverride,l=o.type,u=e.makeTargetAnimatable(t),c=u.transition,d=void 0===c?e.getDefaultTransition():c,f=u.transitionEnd,p=Ll(u,["transition","transitionEnd"]);s&&(d=s);var h=[],m=l&&(null===(r=e.animationState)||void 0===r?void 0:r.getState()[l]);for(var v in p){var g=e.getValue(v),b=p[v];if(!(!g||void 0===b||m&&sm(m,v))){var y=pf(v,g,b,Fl({delay:a},d));h.push(y)}}return Promise.all(h).then((function(){f&&function(e,t){var n=Iu(e,t),r=n?e.makeTargetAnimatable(n,!1):{},o=r.transitionEnd,i=void 0===o?{}:o;r.transition;var a=Ll(r,["transitionEnd","transition"]);for(var s in a=Fl(Fl({},a),i))nm(e,s,lf(a[s]))}(e,f)}))}function am(e,t){return e.sortNodePosition(t)}function sm(e,t){var n=e.protectedKeys,r=e.needsAnimating,o=n.hasOwnProperty(t)&&!0!==r[t];return r[t]=!1,o}var lm=[gh.Animate,gh.InView,gh.Focus,gh.Hover,gh.Tap,gh.Drag,gh.Exit],um=Nl([],Dl(lm),!1).reverse(),cm=lm.length;function dm(e){var t,n=function(e){return function(t){return Promise.all(t.map((function(t){var n=t.animation,r=t.options;return function(e,t,n){var r;if(void 0===n&&(n={}),e.notifyAnimationStart(t),Array.isArray(t)){var o=t.map((function(t){return om(e,t,n)}));r=Promise.all(o)}else if("string"==typeof t)r=om(e,t,n);else{var i="function"==typeof t?Iu(e,t,n.custom):t;r=im(e,i,n)}return r.then((function(){return e.notifyAnimationComplete(t)}))}(e,n,r)})))}}(e),r=((t={})[gh.Animate]=fm(!0),t[gh.InView]=fm(),t[gh.Hover]=fm(),t[gh.Tap]=fm(),t[gh.Drag]=fm(),t[gh.Focus]=fm(),t[gh.Exit]=fm(),t),o={},i=!0,a=function(t,n){var r=Iu(e,n);if(r){r.transition;var o=r.transitionEnd,i=Ll(r,["transition","transitionEnd"]);t=Fl(Fl(Fl({},t),i),o)}return t};function s(t,s){for(var l,u=e.getProps(),c=e.getVariantContext(!0)||{},d=[],f=new Set,p={},h=1/0,m=function(n){var o=um[n],m=r[o],v=null!==(l=u[o])&&void 0!==l?l:c[o],g=Tu(v),b=o===s?m.isActive:null;!1===b&&(h=n);var y=v===c[o]&&v!==u[o]&&g;if(y&&i&&e.manuallyAnimateOnMount&&(y=!1),m.protectedKeys=Fl({},p),!m.isActive&&null===b||!v&&!m.prevProp||ph(v)||"boolean"==typeof v)return"continue";var x=function(e,t){return"string"==typeof t?t!==e:!!Ru(t)&&!Kh(t,e)}(m.prevProp,v),w=x||o===s&&m.isActive&&!y&&g||n>h&&g,k=Array.isArray(v)?v:[v],S=k.reduce(a,{});!1===b&&(S={});var E=m.prevResolvedValues,C=void 0===E?{}:E,_=Fl(Fl({},C),S),O=function(e){w=!0,f.delete(e),m.needsAnimating[e]=!0};for(var P in _){var R=S[P],T=C[P];p.hasOwnProperty(P)||(R!==T?qd(R)&&qd(T)?!Kh(R,T)||x?O(P):m.protectedKeys[P]=!0:void 0!==R?O(P):f.add(P):void 0!==R&&f.has(P)?O(P):m.protectedKeys[P]=!0)}m.prevProp=v,m.prevResolvedValues=S,m.isActive&&(p=Fl(Fl({},p),S)),i&&e.blockInitialAnimation&&(w=!1),w&&!y&&d.push.apply(d,Nl([],Dl(k.map((function(e){return{animation:e,options:Fl({type:o},t)}}))),!1))},v=0;v<cm;v++)m(v);if(o=Fl({},p),f.size){var g={};f.forEach((function(t){var n=e.getBaseTarget(t);void 0!==n&&(g[t]=n)})),d.push({animation:g})}var b=Boolean(d.length);return i&&!1===u.initial&&!e.manuallyAnimateOnMount&&(b=!1),i=!1,b?n(d):Promise.resolve()}return{isAnimated:function(e){return void 0!==o[e]},animateChanges:s,setActive:function(t,n,o){var i;return r[t].isActive===n?Promise.resolve():(null===(i=e.variantChildren)||void 0===i||i.forEach((function(e){var r;return null===(r=e.animationState)||void 0===r?void 0:r.setActive(t,n)})),r[t].isActive=n,s(o,t))},setAnimateFunction:function(t){n=t(e)},getState:function(){return r}}}function fm(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var pm={animation:Xh((function(t){var n=t.visualElement,r=t.animate;n.animationState||(n.animationState=dm(n)),ph(r)&&(0,e.useEffect)((function(){return r.subscribe(n)}),[r])})),exit:Xh((function(t){var n=t.custom,r=t.visualElement,o=Dl(mu(),2),i=o[0],a=o[1],s=(0,e.useContext)(ou);(0,e.useEffect)((function(){var e,t;r.isPresent=i;var o=null===(e=r.animationState)||void 0===e?void 0:e.setActive(gh.Exit,!i,{custom:null!==(t=null==s?void 0:s.custom)&&void 0!==t?t:n});!i&&(null==o||o.then(a))}),[i])}))},hm=function(){function e(e,t,n){var r=this,o=(void 0===n?{}:n).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(r.lastMoveEvent&&r.lastMoveEventInfo){var e=gm(r.lastMoveEventInfo,r.history),t=null!==r.startEvent,n=Bf(e.offset,{x:0,y:0})>=3;if(t||n){var o=e.point,i=tu().timestamp;r.history.push(Fl(Fl({},o),{timestamp:i}));var a=r.handlers,s=a.onStart,l=a.onMove;t||(s&&s(r.lastMoveEvent,e),r.startEvent=r.lastMoveEvent),l&&l(r.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){r.lastMoveEvent=e,r.lastMoveEventInfo=mm(t,r.transformPagePoint),kh(e)&&0===e.buttons?r.handlePointerUp(e,t):nu.update(r.updatePoint,!0)},this.handlePointerUp=function(e,t){r.end();var n=r.handlers,o=n.onEnd,i=n.onSessionEnd,a=gm(mm(t,r.transformPagePoint),r.history);r.startEvent&&o&&o(e,a),i&&i(e,a)},!(Sh(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=o;var i=mm(Oh(e),this.transformPagePoint),a=i.point,s=tu().timestamp;this.history=[Fl(Fl({},a),{timestamp:s})];var l=t.onSessionStart;l&&l(e,gm(i,this.history)),this.removeListeners=Nc(Ih(window,"pointermove",this.handlePointerMove),Ih(window,"pointerup",this.handlePointerUp),Ih(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),Kl.update(this.updatePoint)},e}();function mm(e,t){return t?{point:t(e.point)}:e}function vm(e,t){return{x:e.x-t.x,y:e.y-t.y}}function gm(e,t){var n=e.point;return{point:n,delta:vm(n,ym(t)),offset:vm(n,bm(t)),velocity:xm(t,.1)}}function bm(e){return e[0]}function ym(e){return e[e.length-1]}function xm(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,o=ym(e);n>=0&&(r=e[n],!(o.timestamp-r.timestamp>zd(t)));)n--;if(!r)return{x:0,y:0};var i=(o.timestamp-r.timestamp)/1e3;if(0===i)return{x:0,y:0};var 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 wm(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 km(e,t){var n,r=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&(r=(n=Dl([o,r],2))[0],o=n[1]),{min:r,max:o}}var Sm=.35;function Em(e,t,n){return{min:Cm(e,t),max:Cm(e,n)}}function Cm(e,t){var n;return"number"==typeof e?e:null!==(n=e[t])&&void 0!==n?n:0}function _m(e){var t=e.top;return{x:{min:e.left,max:e.right},y:{min:t,max:e.bottom}}}function Om(e,t){return _m(function(e,t){if(!t)return e;var 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))}var Pm=new WeakMap,Rm=function(){function e(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=e}return e.prototype.start=function(e,t){var n=this,r=(void 0===t?{}:t).snapToCursor,o=void 0!==r&&r;!1!==this.visualElement.isPresent&&(this.panSession=new hm(e,{onSessionStart:function(e){n.stopAnimation(),o&&n.snapToCursor(Oh(e,"page").point)},onStart:function(e,t){var r,o=n.getProps(),i=o.drag,a=o.dragPropagation,s=o.onDragStart;(!i||a||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=Lh(i),n.openGlobalLock))&&(n.isDragging=!0,n.currentDirection=null,n.resolveConstraints(),n.visualElement.projection&&(n.visualElement.projection.isAnimationBlocked=!0,n.visualElement.projection.target=void 0),ip((function(e){var t,r,o=n.getAxisMotionValue(e).get()||0;if(vc.test(o)){var i=null===(r=null===(t=n.visualElement.projection)||void 0===t?void 0:t.layout)||void 0===r?void 0:r.actual[e];i&&(o=Vf(i)*(parseFloat(o)/100))}n.originPoint[e]=o})),null==s||s(e,t),null===(r=n.visualElement.animationState)||void 0===r||r.setActive(gh.Drag,!0))},onMove:function(e,t){var r=n.getProps(),o=r.dragPropagation,i=r.dragDirectionLock,a=r.onDirectionLock,s=r.onDrag;if(o||n.openGlobalLock){var l=t.offset;if(i&&null===n.currentDirection)return n.currentDirection=function(e,t){void 0===t&&(t=10);var n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(l),void(null!==n.currentDirection&&(null==a||a(n.currentDirection)));n.updateAxis("x",t.point,l),n.updateAxis("y",t.point,l),n.visualElement.syncRender(),null==s||s(e,t)}},onSessionEnd:function(e,t){return n.stop(e,t)}},{transformPagePoint:this.visualElement.getTransformPagePoint()}))},e.prototype.stop=function(e,t){var n=this.isDragging;if(this.cancel(),n){var r=t.velocity;this.startAnimation(r);var o=this.getProps().onDragEnd;null==o||o(e,t)}},e.prototype.cancel=function(){var e,t;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(e=this.panSession)||void 0===e||e.end(),this.panSession=void 0,!this.getProps().dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(gh.Drag,!1)},e.prototype.updateAxis=function(e,t,n){var r=this.getProps().drag;if(n&&Tm(e,r,this.currentDirection)){var o=this.getAxisMotionValue(e),i=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(i=function(e,t,n){var r=t.min,o=t.max;return void 0!==r&&e<r?e=n?Fu(r,e,n.min):Math.max(e,r):void 0!==o&&e>o&&(e=n?Fu(o,e,n.max):Math.min(e,o)),e}(i,this.constraints[e],this.elastic[e])),o.set(i)}},e.prototype.resolveConstraints=function(){var e=this,t=this.getProps(),n=t.dragConstraints,r=t.dragElastic,o=(this.visualElement.projection||{}).layout,i=this.constraints;n&&Pu(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!n||!o)&&function(e,t){var n=t.top,r=t.left,o=t.bottom,i=t.right;return{x:wm(e.x,r,i),y:wm(e.y,n,o)}}(o.actual,n),this.elastic=function(e){return void 0===e&&(e=Sm),!1===e?e=0:!0===e&&(e=Sm),{x:Em(e,"left","right"),y:Em(e,"top","bottom")}}(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&ip((function(t){e.getAxisMotionValue(t)&&(e.constraints[t]=function(e,t){var n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(o.actual[t],e.constraints[t]))}))},e.prototype.resolveRefConstraints=function(){var e=this.getProps(),t=e.dragConstraints,n=e.onMeasureDragConstraints;if(!t||!Pu(t))return!1;var r=t.current,o=this.visualElement.projection;if(!o||!o.layout)return!1;var i=function(e,t,n){var r=Om(e,n),o=t.scroll;return o&&(If(r.x,o.x),If(r.y,o.y)),r}(r,o.root,this.visualElement.getTransformPagePoint()),a=function(e,t){return{x:km(e.x,t.x),y:km(e.y,t.y)}}(o.layout.actual,i);if(n){var s=n(function(e){var t=e.x,n=e.y;return{top:n.min,right:t.max,bottom:n.max,left:t.min}}(a));this.hasMutatedConstraints=!!s,s&&(a=_m(s))}return a},e.prototype.startAnimation=function(e){var t=this,n=this.getProps(),r=n.drag,o=n.dragMomentum,i=n.dragElastic,a=n.dragTransition,s=n.dragSnapToOrigin,l=n.onDragTransitionEnd,u=this.constraints||{},c=ip((function(n){var l;if(Tm(n,r,t.currentDirection)){var c=null!==(l=null==u?void 0:u[n])&&void 0!==l?l:{};s&&(c={min:0,max:0});var d=i?200:1e6,f=i?40:1e7,p=Fl(Fl({type:"inertia",velocity:o?e[n]:0,bounceStiffness:d,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10},a),c);return t.startAxisValueAnimation(n,p)}}));return Promise.all(c).then(l)},e.prototype.startAxisValueAnimation=function(e,t){return pf(e,this.getAxisMotionValue(e),0,t)},e.prototype.stopAnimation=function(){var e=this;ip((function(t){return e.getAxisMotionValue(t).stop()}))},e.prototype.getAxisMotionValue=function(e){var t,n,r="_drag"+e.toUpperCase();return this.visualElement.getProps()[r]||this.visualElement.getValue(e,null!==(n=null===(t=this.visualElement.getProps().initial)||void 0===t?void 0:t[e])&&void 0!==n?n:0)},e.prototype.snapToCursor=function(e){var t=this;ip((function(n){if(Tm(n,t.getProps().drag,t.currentDirection)){var r=t.visualElement.projection,o=t.getAxisMotionValue(n);if(r&&r.layout){var i=r.layout.actual[n],a=i.min,s=i.max;o.set(e[n]-Fu(a,s,.5))}}}))},e.prototype.scalePositionWithinConstraints=function(){var e,t=this,n=this.getProps(),r=n.drag,o=n.dragConstraints,i=this.visualElement.projection;if(Pu(o)&&i&&this.constraints){this.stopAnimation();var a={x:0,y:0};ip((function(e){var n,r,o,i,s,l=t.getAxisMotionValue(e);if(l){var u=l.get();a[e]=(n={min:u,max:u},r=t.constraints[e],o=.5,i=Vf(n),(s=Vf(r))>i?o=Zu(r.min,r.max-i,n.min):i>s&&(o=Zu(n.min,n.max-s,r.min)),Uu(0,1,o))}}));var s=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=s?s({},""):"none",null===(e=i.root)||void 0===e||e.updateScroll(),i.updateLayout(),this.resolveConstraints(),ip((function(e){if(Tm(e,r,null)){var n=t.getAxisMotionValue(e),o=t.constraints[e],i=o.min,s=o.max;n.set(Fu(i,s,a[e]))}}))}},e.prototype.addListeners=function(){var e,t=this;Pm.set(this.visualElement,this);var n=Ih(this.visualElement.getInstance(),"pointerdown",(function(e){var n=t.getProps(),r=n.drag,o=n.dragListener;r&&(void 0===o||o)&&t.start(e)})),r=function(){Pu(t.getProps().dragConstraints)&&(t.constraints=t.resolveRefConstraints())},o=this.visualElement.projection,i=o.addEventListener("measure",r);o&&!o.layout&&(null===(e=o.root)||void 0===e||e.updateScroll(),o.updateLayout()),r();var a=xh(window,"resize",(function(){t.scalePositionWithinConstraints()}));return o.addEventListener("didUpdate",(function(e){var n=e.delta,r=e.hasLayoutChanged;t.isDragging&&r&&(ip((function(e){var r=t.getAxisMotionValue(e);r&&(t.originPoint[e]+=n[e].translate,r.set(r.get()+n[e].translate))})),t.visualElement.syncRender())})),function(){a(),n(),i()}},e.prototype.getProps=function(){var e=this.visualElement.getProps(),t=e.drag,n=void 0!==t&&t,r=e.dragDirectionLock,o=void 0!==r&&r,i=e.dragPropagation,a=void 0!==i&&i,s=e.dragConstraints,l=void 0!==s&&s,u=e.dragElastic,c=void 0===u?Sm:u,d=e.dragMomentum,f=void 0===d||d;return Fl(Fl({},e),{drag:n,dragDirectionLock:o,dragPropagation:a,dragConstraints:l,dragElastic:c,dragMomentum:f})},e}();function Tm(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}var Am={pan:Xh((function(t){var n=t.onPan,r=t.onPanStart,o=t.onPanEnd,i=t.onPanSessionStart,a=t.visualElement,s=n||r||o||i,l=(0,e.useRef)(null),u=(0,e.useContext)(Eu).transformPagePoint,c={onSessionStart:i,onStart:r,onMove:n,onEnd:function(e,t){l.current=null,o&&o(e,t)}};(0,e.useEffect)((function(){null!==l.current&&l.current.updateHandlers(c)})),jh(a,"pointerdown",s&&function(e){l.current=new hm(e,c,{transformPagePoint:u})}),ru((function(){return l.current&&l.current.end()}))})),drag:Xh((function(t){var n=t.dragControls,r=t.visualElement,o=iu((function(){return new Rm(r)}));(0,e.useEffect)((function(){return n&&n.subscribe(o)}),[o,n]),(0,e.useEffect)((function(){return o.addListeners()}),[o])}))},Im=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","SetAxisTarget","Unmount"],jm=function(e){var t=e.treeType,n=void 0===t?"":t,r=e.build,o=e.getBaseTarget,i=e.makeTargetAnimatable,a=e.measureViewportBox,s=e.render,l=e.readValueFromInstance,u=e.removeValueFromRenderState,c=e.sortNodePosition,d=e.scrapeMotionValuesFromProps;return function(e,t){var f=e.parent,p=e.props,h=e.presenceId,m=e.blockInitialAnimation,v=e.visualState;void 0===t&&(t={});var g,b,y=!1,x=v.latestValues,w=v.renderState,k=function(){var e=Im.map((function(){return new Bu})),t={},n={clearAllListeners:function(){return e.forEach((function(e){return e.clear()}))},updatePropListeners:function(e){Im.forEach((function(r){var o,i="on"+r,a=e[i];null===(o=t[r])||void 0===o||o.call(t),a&&(t[r]=n[i](a))}))}};return e.forEach((function(e,t){n["on"+Im[t]]=function(t){return e.add(t)},n["notify"+Im[t]]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e.notify.apply(e,Nl([],Dl(t),!1))}})),n}(),S=new Map,E=new Map,C={},_=Fl({},x);function O(){g&&y&&(P(),s(g,w,p.style,z.projection))}function P(){r(z,w,x,t,p)}function R(){k.notifyUpdate(x)}var T=d(p);for(var A in T){var I=T[A];void 0!==x[A]&&Wu(I)&&I.set(x[A],!1)}var j=ju(p),M=Mu(p),z=Fl(Fl({treeType:n,current:null,depth:f?f.depth+1:0,parent:f,children:new Set,presenceId:h,variantChildren:M?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null==f?void 0:f.isMounted()),blockInitialAnimation:m,isMounted:function(){return Boolean(g)},mount:function(e){y=!0,g=z.current=e,z.projection&&z.projection.mount(e),M&&f&&!j&&(b=null==f?void 0:f.addVariantChild(z)),null==f||f.children.add(z),z.setProps(p)},unmount:function(){var e;null===(e=z.projection)||void 0===e||e.unmount(),Kl.update(R),Kl.render(O),E.forEach((function(e){return e()})),null==b||b(),null==f||f.children.delete(z),k.clearAllListeners(),g=void 0,y=!1},addVariantChild:function(e){var t,n=z.getClosestVariantNode();if(n)return null===(t=n.variantChildren)||void 0===t||t.add(e),function(){return n.variantChildren.delete(e)}},sortNodePosition:function(e){return c&&n===e.treeType?c(z.getInstance(),e.getInstance()):0},getClosestVariantNode:function(){return M?z:null==f?void 0:f.getClosestVariantNode()},getLayoutId:function(){return p.layoutId},getInstance:function(){return g},getStaticValue:function(e){return x[e]},setStaticValue:function(e,t){return x[e]=t},getLatestValues:function(){return x},setVisibility:function(e){z.isVisible!==e&&(z.isVisible=e,z.scheduleRender())},makeTargetAnimatable:function(e,t){return void 0===t&&(t=!0),i(z,e,p,t)},measureViewportBox:function(){return a(g,p)},addValue:function(e,t){z.hasValue(e)&&z.removeValue(e),S.set(e,t),x[e]=t.get(),function(e,t){var n=t.onChange((function(t){x[e]=t,p.onUpdate&&nu.update(R,!1,!0)})),r=t.onRenderRequest(z.scheduleRender);E.set(e,(function(){n(),r()}))}(e,t)},removeValue:function(e){var t;S.delete(e),null===(t=E.get(e))||void 0===t||t(),E.delete(e),delete x[e],u(e,w)},hasValue:function(e){return S.has(e)},getValue:function(e,t){var n=S.get(e);return void 0===n&&void 0!==t&&(n=$u(t),z.addValue(e,n)),n},forEachValue:function(e){return S.forEach(e)},readValue:function(e){var n;return null!==(n=x[e])&&void 0!==n?n:l(g,e,t)},setBaseTarget:function(e,t){_[e]=t},getBaseTarget:function(e){if(o){var t=o(p,e);if(void 0!==t&&!Wu(t))return t}return _[e]}},k),{build:function(){return P(),w},scheduleRender:function(){nu.render(O,!1,!0)},syncRender:O,setProps:function(e){(e.transformTemplate||p.transformTemplate)&&z.scheduleRender(),p=e,k.updatePropListeners(e),C=function(e,t,n){var r;for(var o in t){var i=t[o],a=n[o];if(Wu(i))e.addValue(o,i);else if(Wu(a))e.addValue(o,$u(i));else if(a!==i)if(e.hasValue(o)){var s=e.getValue(o);!s.hasAnimated&&s.set(i)}else e.addValue(o,$u(null!==(r=e.getStaticValue(o))&&void 0!==r?r:i))}for(var o in n)void 0===t[o]&&e.removeValue(o);return t}(z,d(p),C)},getProps:function(){return p},getVariant:function(e){var t;return null===(t=p.variants)||void 0===t?void 0:t[e]},getDefaultTransition:function(){return p.transition},getTransformPagePoint:function(){return p.transformPagePoint},getVariantContext:function(e){if(void 0===e&&(e=!1),e)return null==f?void 0:f.getVariantContext();if(!j){var t=(null==f?void 0:f.getVariantContext())||{};return void 0!==p.initial&&(t.initial=p.initial),t}for(var n={},r=0;r<zm;r++){var o=Mm[r],i=p[o];(Tu(i)||!1===i)&&(n[o]=i)}return n}});return z}},Mm=Nl(["initial"],Dl(lm),!1),zm=Mm.length;function Fm(e){return"string"==typeof e&&e.startsWith("var(--")}var Lm=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Dm(e,t,n){void 0===n&&(n=1),'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.');var r=Dl(function(e){var t=Lm.exec(e);if(!t)return[,];var n=Dl(t,3);return[n[1],n[2]]}(e),2),o=r[0],i=r[1];if(o){var a=window.getComputedStyle(t).getPropertyValue(o);return a?a.trim():Fm(i)?Dm(i,t,n+1):i}}var Nm,Bm=new Set(["width","height","top","left","right","bottom","x","y"]),Vm=function(e){return Bm.has(e)},$m=function(e,t){e.set(t,!1),e.set(t)},Wm=function(e){return e===ic||e===gc};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(Nm||(Nm={}));var Um=function(e,t){return parseFloat(e.split(", ")[t])},Hm=function(e,t){return function(n,r){var o=r.transform;if("none"===o||!o)return 0;var i=o.match(/^matrix3d\((.+)\)$/);if(i)return Um(i[1],t);var a=o.match(/^matrix\((.+)\)$/);return a?Um(a[1],e):0}},qm=new Set(["x","y","z"]),Ym=sp.filter((function(e){return!qm.has(e)})),Xm={width:function(e,t){var n=e.x,r=t.paddingLeft,o=void 0===r?"0":r,i=t.paddingRight,a=void 0===i?"0":i;return n.max-n.min-parseFloat(o)-parseFloat(a)},height:function(e,t){var n=e.y,r=t.paddingTop,o=void 0===r?"0":r,i=t.paddingBottom,a=void 0===i?"0":i;return n.max-n.min-parseFloat(o)-parseFloat(a)},top:function(e,t){var n=t.top;return parseFloat(n)},left:function(e,t){var n=t.left;return parseFloat(n)},bottom:function(e,t){var n=e.y,r=t.top;return parseFloat(r)+(n.max-n.min)},right:function(e,t){var n=e.x,r=t.left;return parseFloat(r)+(n.max-n.min)},x:Hm(4,13),y:Hm(5,14)};function Gm(e,t,n,r){return function(e){return Object.keys(e).some(Vm)}(t)?function(e,t,n,r){void 0===n&&(n={}),void 0===r&&(r={}),t=Fl({},t),r=Fl({},r);var o=Object.keys(t).filter(Vm),i=[],a=!1,s=[];if(o.forEach((function(o){var l=e.getValue(o);if(e.hasValue(o)){var u,c=n[o],d=Jh(c),f=t[o];if(qd(f)){var p=f.length,h=null===f[0]?1:0;c=f[h],d=Jh(c);for(var m=h;m<p;m++)u?Jh(f[m]):(u=Jh(f[m]))===d||Wm(d)&&Wm(u)}else u=Jh(f);if(d!==u)if(Wm(d)&&Wm(u)){var v=l.get();"string"==typeof v&&l.set(parseFloat(v)),"string"==typeof f?t[o]=parseFloat(f):Array.isArray(f)&&u===gc&&(t[o]=f.map(parseFloat))}else(null==d?void 0:d.transform)&&(null==u?void 0:u.transform)&&(0===c||0===f)?0===c?l.set(u.transform(c)):t[o]=d.transform(f):(a||(i=function(e){var t=[];return Ym.forEach((function(n){var r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t.length&&e.syncRender(),t}(e),a=!0),s.push(o),r[o]=void 0!==r[o]?r[o]:t[o],$m(l,f))}})),s.length){var l=function(e,t,n){var r=t.measureViewportBox(),o=t.getInstance(),i=getComputedStyle(o),a=i.display,s={};"none"===a&&t.setStaticValue("display",e.display||"block"),n.forEach((function(e){s[e]=Xm[e](r,i)})),t.syncRender();var l=t.measureViewportBox();return n.forEach((function(n){var r=t.getValue(n);$m(r,s[n]),e[n]=Xm[n](l,i)})),e}(t,e,s);return i.length&&i.forEach((function(t){var n=Dl(t,2),r=n[0],o=n[1];e.getValue(r).set(o)})),e.syncRender(),{target:l,transitionEnd:r}}return{target:t,transitionEnd:r}}(e,t,n,r):{target:t,transitionEnd:r}}var Km={treeType:"dom",readValueFromInstance:function(e,t){if(cp(t)){var n=af(t);return n&&n.default||0}var r,o=(r=e,window.getComputedStyle(r));return(Up(t)?o.getPropertyValue(t):o[t])||0},sortNodePosition:function(e,t){return 2&e.compareDocumentPosition(t)?1:-1},getBaseTarget:function(e,t){var n;return null===(n=e.style)||void 0===n?void 0:n[t]},measureViewportBox:function(e,t){return Om(e,t.transformPagePoint)},resetTransform:function(e,t,n){var r=n.transformTemplate;t.style.transform=r?r({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var n=t.vars,r=t.style;delete n[e],delete r[e]},makeTargetAnimatable:function(e,t,n,r){var o=n.transformValues;void 0===r&&(r=!0);var i=t.transition,a=t.transitionEnd,s=Ll(t,["transition","transitionEnd"]),l=function(e,t,n){var r,o,i={};for(var a in e)i[a]=null!==(r=rm(a,t))&&void 0!==r?r:null===(o=n.getValue(a))||void 0===o?void 0:o.get();return i}(s,i||{},e);if(o&&(a&&(a=o(a)),s&&(s=o(s)),l&&(l=o(l))),r){!function(e,t,n){var r,o,i,a,s=Object.keys(t).filter((function(t){return!e.hasValue(t)})),l=s.length;if(l)for(var u=0;u<l;u++){var c=s[u],d=t[c],f=null;Array.isArray(d)&&(f=d[0]),null===f&&(f=null!==(o=null!==(r=n[c])&&void 0!==r?r:e.readValue(c))&&void 0!==o?o:t[c]),null!=f&&("string"==typeof f&&(/^\-?\d*\.?\d+$/.test(f)||/^0[^.\s]+$/.test(f))?f=parseFloat(f):!tm(f)&&Fc.test(d)&&(f=sf(c,d)),e.addValue(c,$u(f)),null!==(i=(a=n)[c])&&void 0!==i||(a[c]=f),e.setBaseTarget(c,f))}}(e,s,l);var u=function(e,t,n,r){var o=function(e,t,n){var r,o=Ll(t,[]),i=e.getInstance();if(!(i instanceof Element))return{target:o,transitionEnd:n};for(var a in n&&(n=Fl({},n)),e.forEachValue((function(e){var t=e.get();if(Fm(t)){var n=Dm(t,i);n&&e.set(n)}})),o){var s=o[a];if(Fm(s)){var l=Dm(s,i);l&&(o[a]=l,n&&(null!==(r=n[a])&&void 0!==r||(n[a]=s)))}}return{target:o,transitionEnd:n}}(e,t,r);return Gm(e,t=o.target,n,r=o.transitionEnd)}(e,s,l,a);a=u.transitionEnd,s=u.target}return Fl({transition:i,transitionEnd:a},s)},scrapeMotionValuesFromProps:dh,build:function(e,t,n,r,o){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden"),qp(t,n,r,o.transformTemplate)},render:lh},Qm=jm(Km),Zm=jm(Fl(Fl({},Km),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return cp(t)?(null===(n=af(t))||void 0===n?void 0:n.default)||0:(t=uh.has(t)?t:sh(t),e.getAttribute(t))},scrapeMotionValuesFromProps:fh,build:function(e,t,n,r,o){nh(t,n,r,o.transformTemplate)},render:ch})),Jm=function(e,t){return Vp(e)?Zm(t,{enableHardwareAcceleration:!1}):Qm(t,{enableHardwareAcceleration:!0})};function ev(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var tv={correct:function(e,t){if(!t.target)return e;if("string"==typeof e){if(!gc.test(e))return e;e=parseFloat(e)}var n=ev(e,t.target.x),r=ev(e,t.target.y);return"".concat(n,"% ").concat(r,"%")}},nv="_$css",rv={correct:function(e,t){var n=t.treeScale,r=t.projectionDelta,o=e,i=e.includes("var("),a=[];i&&(e=e.replace(Lm,(function(e){return a.push(e),nv})));var s=Fc.parse(e);if(s.length>5)return o;var l=Fc.createTransformer(e),u="number"!=typeof s[0]?1:0,c=r.x.scale*n.x,d=r.y.scale*n.y;s[0+u]/=c,s[1+u]/=d;var f=Fu(c,d,.5);"number"==typeof s[2+u]&&(s[2+u]/=f),"number"==typeof s[3+u]&&(s[3+u]/=f);var p=l(s);if(i){var h=0;p=p.replace(nv,(function(){var e=a[h];return h++,e}))}return p}},ov=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return zl(t,e),t.prototype.componentDidMount=function(){var e,t=this,n=this.props,r=n.visualElement,o=n.layoutGroup,i=n.switchLayoutGroup,a=n.layoutId,s=r.projection;e=iv,Object.assign(rp,e),s&&((null==o?void 0:o.group)&&o.group.add(s),(null==i?void 0:i.register)&&a&&i.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",(function(){t.safeToRemove()})),s.setOptions(Fl(Fl({},s.options),{onExitComplete:function(){return t.safeToRemove()}}))),vp.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(e){var t=this,n=this.props,r=n.layoutDependency,o=n.visualElement,i=n.drag,a=n.isPresent,s=o.projection;return s?(s.isPresent=a,i||e.layoutDependency!==r||void 0===r?s.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?s.promote():s.relegate()||nu.postRender((function(){var e;(null===(e=s.getStack())||void 0===e?void 0:e.members.length)||t.safeToRemove()}))),null):null},t.prototype.componentDidUpdate=function(){var e=this.props.visualElement.projection;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.visualElement,n=e.layoutGroup,r=e.switchLayoutGroup,o=t.projection;o&&(o.scheduleCheckAfterUnmount(),(null==n?void 0:n.group)&&n.group.remove(o),(null==r?void 0:r.deregister)&&r.deregister(o))},t.prototype.safeToRemove=function(){var e=this.props.safeToRemove;null==e||e()},t.prototype.render=function(){return null},t}(e.Component),iv={borderRadius:Fl(Fl({},tv),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:tv,borderTopRightRadius:tv,borderBottomLeftRadius:tv,borderBottomRightRadius:tv,boxShadow:rv},av={measureLayout:function(t){var n=Dl(mu(),2),r=n[0],o=n[1],i=(0,e.useContext)(cu);return e.createElement(ov,Fl({},t,{layoutGroup:i,switchLayoutGroup:(0,e.useContext)(Fp),isPresent:r,safeToRemove:o}))}},sv=gp({attachResizeListener:function(e,t){return e.addEventListener("resize",t,{passive:!0}),function(){return e.removeEventListener("resize",t)}},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}}}),lv={current:void 0},uv=gp({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!lv.current){var e=new sv(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),lv.current=e}return lv.current},resetTransform:function(e,t){e.style.transform=null!=t?t:"none"}}),cv=Fl(Fl(Fl(Fl({},pm),Gh),Am),av),dv=Np((function(e,t){return function(e,t,n,r,o){var i=t.forwardMotionProps,a=void 0!==i&&i,s=Vp(e)?bh:yh;return Fl(Fl({},s),{preloadedFeatures:n,useRender:ih(a),createVisualElement:r,projectionNodeConstructor:o,Component:e})}(e,t,cv,Jm,uv)}));const fv=(e,t)=>e.find((e=>e.id===t));function pv(e,t){const n=hv(e,t);return{position:n,index:n?e[n].findIndex((e=>e.id===t)):-1}}function hv(e,t){for(const[n,r]of Object.entries(e))if(fv(r,t))return n}function mv(e){return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:"top"===e||"bottom"===e?"0 auto":void 0,top:e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,bottom:e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,right:e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",left:e.includes("right")?void 0:"env(safe-area-inset-left, 0px)"}}function vv(e){const t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}var gv=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,bv=ca((function(e){return gv.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),yv=function(e){return"theme"!==e},xv=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?bv:yv},wv=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},kv=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return sa(t,n,r),ka((function(){return la(t,n,r)})),null},Sv=function t(n,r){var o,i,a=n.__emotion_real===n,s=a&&n.__emotion_base||n;void 0!==r&&(o=r.label,i=r.target);var l=wv(n,r,a),u=l||xv(s),c=!u("as");return function(){var d=arguments,f=a&&void 0!==n.__emotion_styles?n.__emotion_styles.slice(0):[];if(void 0!==o&&f.push("label:"+o+";"),null==d[0]||void 0===d[0].raw)f.push.apply(f,d);else{f.push(d[0][0]);for(var p=d.length,h=1;h<p;h++)f.push(d[h],d[0][h])}var m=Ca((function(t,n,r){var o=c&&t.as||s,a="",d=[],p=t;if(null==t.theme){for(var h in p={},t)p[h]=t[h];p.theme=e.useContext(_a)}"string"==typeof t.className?a=aa(n.registered,d,t.className):null!=t.className&&(a=t.className+" ");var m=xa(f.concat(d),n.registered,p);a+=n.key+"-"+m.name,void 0!==i&&(a+=" "+i);var v=c&&void 0===l?xv(o):u,g={};for(var b in t)c&&"as"===b||v(b)&&(g[b]=t[b]);return g.className=a,r&&(g.ref=r),e.createElement(e.Fragment,null,e.createElement(kv,{cache:n,serialized:m,isStringTag:"string"==typeof o}),e.createElement(o,g))}));return m.displayName=void 0!==o?o:"Styled("+("string"==typeof s?s:s.displayName||s.name||"Component")+")",m.defaultProps=n.defaultProps,m.__emotion_real=m,m.__emotion_base=s,m.__emotion_styles=f,m.__emotion_forwardProp=l,Object.defineProperty(m,"toString",{value:function(){return"."+i}}),m.withComponent=function(e,n){return t(e,oa({},r,n,{shouldForwardProp:wv(m,n,!0)})).apply(void 0,f)},m}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){Sv[e]=Sv(e)}));const Ev=new Set([...Object.keys(ml),...ks({}),"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),Cv=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function _v(e){return(Cv.has(e)||!Ev.has(e))&&"_"!==e[0]}const Ov=(Pv=Sv).default||Pv;var Pv;function Rv(t,n){const{baseStyle:r,...o}=n??{};o.shouldForwardProp||(o.shouldForwardProp=_v);const i=(({baseStyle:e})=>t=>{const{theme:n,css:r,__css:o,sx:i,...a}=t,s=(e=>{const t=ws(e);return e=>{const n={...ml,...t};return Object.hasOwnProperty.call(n,e)}})(n),[l]=function(e,...t){const n=Object.getOwnPropertyDescriptors(e),r=Object.keys(n),o=e=>{const t={};for(let r=0;r<e.length;r++){const o=e[r];n[o]&&(Object.defineProperty(t,o,n[o]),delete n[o])}return t};return t.map((e=>o(Array.isArray(e)?e:r.filter(e)))).concat(o(r))}(a,s),u=function(e,...t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");const n={...e};for(const e of t)if(null!=e)for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(t in n&&delete n[t],n[t]=e[t]);return n}({},o,Ps(e,t),vv(l),i),c=yl(u)(t.theme);return r?[c,r]:c})({baseStyle:r}),a=Ov(t,o)(i);return(0,e.forwardRef)((function(t,n){const{children:r,...o}=t,{colorMode:i,forced:s}=za(),l=s?i:void 0;return(0,e.createElement)(a,{ref:n,"data-theme":l,...o},r)}))}const Tv=function(){const e=new Map;return new Proxy(Rv,{apply:(e,t,n)=>Rv(...n),get:(t,n)=>(e.has(n)||e.set(n,Rv(n)),e.get(n))})}(),Av={initial:e=>{const{position:t}=e,n=["top","bottom"].includes(t)?"y":"x";let r=["top-right","bottom-right"].includes(t)?1:-1;return"bottom"===t&&(r=1),{opacity:0,[n]:24*r}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},Iv=(0,e.memo)((t=>{const{id:n,message:r,onCloseComplete:o,onRequestRemove:i,requestClose:a=!1,position:s="bottom",duration:l=5e3,containerStyle:u,motionVariants:c=Av,toastSpacing:d="0.5rem"}=t,[f,p]=(0,e.useState)(l),h=null===(m=(0,e.useContext)(ou))||m.isPresent;var m;pu((()=>{h||o?.()}),[h]),pu((()=>{p(l)}),[l]);const v=()=>{h&&i()};(0,e.useEffect)((()=>{h&&a&&i()}),[h,a,i]),function(t,n){const r=hu(t);(0,e.useEffect)((()=>{if(null==n)return;let e=null;return e=window.setTimeout((()=>{r()}),n),()=>{e&&window.clearTimeout(e)}}),[n,r])}(v,f);const g=(0,e.useMemo)((()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:d,...u})),[u,d]),b=(0,e.useMemo)((()=>function(e){let t="center";return e.includes("right")&&(t="flex-end"),e.includes("left")&&(t="flex-start"),{display:"flex",flexDirection:"column",alignItems:t}}(s)),[s]);return(0,ei.jsx)(dv.div,{layout:!0,className:"chakra-toast",variants:c,initial:"initial",animate:"animate",exit:"exit",onHoverStart:()=>p(null),onHoverEnd:()=>p(l),custom:{position:s},style:b,children:(0,ei.jsx)(Tv.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:g,children:Ps(r,{id:n,onClose:v})})})}));function jv(e,t=[]){const n=Object.assign({},e);for(const e of t)e in n&&delete n[e];return n}function Mv(e){return jv(e,["styleConfig","size","variant","colorScheme"])}Iv.displayName="ToastComponent";const zv=(...e)=>e.filter(Boolean).join(" ");function Fv(t){return(0,e.forwardRef)(t)}function Lv(e,t){for(let n=t+1;n<e.length;n++)if(null!=e[n])return n;return-1}var Dv=n(115);function Nv(){const t=(0,e.useContext)(_a);if(!t)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return t}function Bv(t,n={}){const{styleConfig:r,...o}=n,{theme:i,colorMode:a}={...za(),theme:Nv()},s=t?wl(i,`components.${t}`):void 0,l=r||s,u=ls({theme:i,colorMode:a},l?.defaultProps??{},vv(jv(o,["children"]))),c=(0,e.useRef)({});if(l){const e=function(e){return t=>{const{variant:n,size:r,theme:o}=t,i=function(e){const t=e.__breakpoints;return function(e,n,r,o){if(!t)return;const i={},a=function(e,t){return Array.isArray(e)?e:xn(e)?t(e):null!=e?[e]:void 0}(r,t.toArrayValue);if(!a)return i;const s=a.length,l=1===s,u=!!e.parts;for(let r=0;r<s;r++){const s=t.details[r],c=t.details[Lv(a,r)],d=as(s.minW,c?._minW),f=Ps(e[n]?.[a[r]],o);f&&(u?e.parts?.forEach((e=>{ls(i,{[e]:l?f[e]:{[d]:f[e]}})})):u?i[d]=f:l?ls(i,f):i[d]=f)}return i}}(o);return ls({},Ps(e.baseStyle??{},t),i(e,"sizes",r,t),i(e,"variants",n,t))}}(l),t=e(u);Dv(c.current,t)||(c.current=t)}return c.current}function Vv(e,t={}){return Bv(e,t)}function $v(e,t={}){return Bv(e,t)}const Wv={path:(0,ei.jsxs)("g",{stroke:"currentColor",strokeWidth:"1.5",children:[(0,ei.jsx)("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),(0,ei.jsx)("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),(0,ei.jsx)("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},Uv=Fv(((e,t)=>{const{as:n,viewBox:r,color:o="currentColor",focusable:i=!1,children:a,className:s,__css:l,...u}=e,c={ref:t,focusable:i,className:zv("chakra-icon",s),__css:{w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...l,...Vv("Icon",e)}},d=r??Wv.viewBox;if(n&&"string"!=typeof n)return(0,ei.jsx)(Tv.svg,{as:n,...c,...u});const f=a??Wv.path;return(0,ei.jsx)(Tv.svg,{verticalAlign:"middle",viewBox:d,...c,...u,children:f})}));function Hv(e){return(0,ei.jsx)(Uv,{viewBox:"0 0 24 24",...e,children:(0,ei.jsx)("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}Uv.displayName="Icon";const qv=Ga({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Yv=Fv(((e,t)=>{const n=Vv("Spinner",e),{label:r="Loading...",thickness:o="2px",speed:i="0.45s",emptyColor:a="transparent",className:s,...l}=Mv(e),u=zv("chakra-spinner",s),c={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:a,borderLeftColor:a,animation:`${qv} ${i} linear infinite`,...n};return(0,ei.jsx)(Tv.div,{ref:t,__css:c,className:u,...l,children:r&&(0,ei.jsx)(Tv.span,{srOnly:!0,children:r})})}));Yv.displayName="Spinner";const[Xv,Gv]=xl({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[Kv,Qv]=xl({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),Zv={info:{icon:function(e){return(0,ei.jsx)(Uv,{viewBox:"0 0 24 24",...e,children:(0,ei.jsx)("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})},colorScheme:"blue"},warning:{icon:Hv,colorScheme:"orange"},success:{icon:function(e){return(0,ei.jsx)(Uv,{viewBox:"0 0 24 24",...e,children:(0,ei.jsx)("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})},colorScheme:"green"},error:{icon:Hv,colorScheme:"red"},loading:{icon:Yv,colorScheme:"blue"}},Jv=Fv((function(e,t){const{status:n="info",addRole:r=!0,...o}=Mv(e),i=e.colorScheme??function(e){return Zv[e].colorScheme}(n),a=$v("Alert",{...e,colorScheme:i}),s={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...a.container};return(0,ei.jsx)(Xv,{value:{status:n},children:(0,ei.jsx)(Kv,{value:a,children:(0,ei.jsx)(Tv.div,{"data-status":n,role:r?"alert":void 0,ref:t,...o,className:zv("chakra-alert",e.className),__css:s})})})}));function eg(e){const{status:t}=Gv(),n=function(e){return Zv[e].icon}(t),r=Qv(),o="loading"===t?r.spinner:r.icon;return(0,ei.jsx)(Tv.span,{display:"inherit","data-status":t,...e,className:zv("chakra-alert__icon",e.className),__css:o,children:e.children||(0,ei.jsx)(n,{h:"100%",w:"100%"})})}Jv.displayName="Alert",eg.displayName="AlertIcon";const tg=Fv((function(e,t){const n=Qv(),{status:r}=Gv();return(0,ei.jsx)(Tv.div,{ref:t,"data-status":r,...e,className:zv("chakra-alert__title",e.className),__css:n.title})}));tg.displayName="AlertTitle";const ng=Fv((function(e,t){const{status:n}=Gv(),r={display:"inline",...Qv().description};return(0,ei.jsx)(Tv.div,{ref:t,"data-status":n,...e,className:zv("chakra-alert__desc",e.className),__css:r})}));function rg(e){return(0,ei.jsx)(Uv,{focusable:"false","aria-hidden":!0,...e,children:(0,ei.jsx)("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}ng.displayName="AlertDescription";const og=Fv((function(e,t){const n=Vv("CloseButton",e),{children:r,isDisabled:o,__css:i,...a}=Mv(e);return(0,ei.jsx)(Tv.button,{type:"button","aria-label":"Close",ref:t,disabled:o,__css:{outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,...n,...i},...a,children:r||(0,ei.jsx)(rg,{width:"1em",height:"1em"})})}));og.displayName="CloseButton";const ig=e=>{const{status:t,variant:n="solid",id:r,title:o,isClosable:i,onClose:a,description:s,colorScheme:l,icon:u}=e,c=r?{root:`toast-${r}`,title:`toast-${r}-title`,description:`toast-${r}-description`}:void 0;return(0,ei.jsxs)(Jv,{addRole:!1,status:t,variant:n,id:c?.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:l,children:[(0,ei.jsx)(eg,{children:u}),(0,ei.jsxs)(Tv.div,{flex:"1",maxWidth:"100%",children:[o&&(0,ei.jsx)(tg,{id:c?.title,children:o}),s&&(0,ei.jsx)(ng,{id:c?.description,display:"block",children:s})]}),i&&(0,ei.jsx)(og,{size:"sm",onClick:a,position:"absolute",insetEnd:1,top:1})]})};function ag(e={}){const{render:t,toastComponent:n=ig}=e;return r=>"function"==typeof t?t({...r,...e}):(0,ei.jsx)(n,{...r,...e})}const sg=function(e){let t=e;const n=new Set,r=e=>{t=e(t),n.forEach((e=>e()))};return{getState:()=>t,subscribe:t=>(n.add(t),()=>{r((()=>e)),n.delete(t)}),removeToast:(e,t)=>{r((n=>({...n,[t]:n[t].filter((t=>t.id!=e))})))},notify:(e,t)=>{const n=function(e,t={}){lg+=1;const n=t.id??lg,r=t.position??"bottom";return{id:n,message:e,position:r,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>sg.removeToast(String(n),r),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}(e,t),{position:o,id:i}=n;return r((e=>{const t=o.includes("top")?[n,...e[o]??[]]:[...e[o]??[],n];return{...e,[o]:t}})),i},update:(e,t)=>{e&&r((n=>{const r={...n},{position:o,index:i}=pv(r,e);return o&&-1!==i&&(r[o][i]={...r[o][i],...t,message:ag(t)}),r}))},closeAll:({positions:e}={})=>{r((t=>(e??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce(((e,n)=>(e[n]=t[n].map((e=>({...e,requestClose:!0}))),e)),{...t})))},close:e=>{r((t=>{const n=hv(t,e);return n?{...t,[n]:t[n].map((t=>t.id==e?{...t,requestClose:!0}:t))}:t}))},isActive:e=>Boolean(pv(sg.getState(),e).position)}}({top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]});let lg=0;const[ug,cg]=xl({strict:!1,name:"PortalContext"}),dg="chakra-portal",fg=e=>(0,ei.jsx)("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),pg=t=>{const{appendToParentPortal:n,children:o}=t,[i,a]=(0,e.useState)(null),s=(0,e.useRef)(null),[,l]=(0,e.useState)({});(0,e.useEffect)((()=>l({})),[]);const u=cg(),c=Pl();Tl((()=>{if(!i)return;const e=i.ownerDocument,t=n?u??e.body:e.body;if(!t)return;s.current=e.createElement("div"),s.current.className=dg,t.appendChild(s.current),l({});const r=s.current;return()=>{t.contains(r)&&t.removeChild(r)}}),[i]);const d=c?.zIndex?(0,ei.jsx)(fg,{zIndex:c?.zIndex,children:o}):o;return s.current?(0,r.createPortal)((0,ei.jsx)(ug,{value:s.current,children:d}),s.current):(0,ei.jsx)("span",{ref:e=>{e&&a(e)}})},hg=t=>{const{children:n,containerRef:o,appendToParentPortal:i}=t,a=o.current,s=a??("undefined"!=typeof window?document.body:void 0),l=(0,e.useMemo)((()=>{const e=a?.ownerDocument.createElement("div");return e&&(e.className=dg),e}),[a]),[,u]=(0,e.useState)({});return Tl((()=>u({})),[]),Tl((()=>{if(l&&s)return s.appendChild(l),()=>{s.removeChild(l)}}),[l,s]),s&&l?(0,r.createPortal)((0,ei.jsx)(ug,{value:i?l:null,children:n}),l):null};function mg(e){const t={appendToParentPortal:!0,...e},{containerRef:n,...r}=t;return n?(0,ei.jsx)(hg,{containerRef:n,...r}):(0,ei.jsx)(pg,{...r})}mg.className=dg,mg.selector=".chakra-portal",mg.displayName="Portal";const[vg,gg]=xl({name:"ToastOptionsContext",strict:!1}),bg=t=>{const n=(0,e.useSyncExternalStore)(sg.subscribe,sg.getState,sg.getState),{motionVariants:r,component:o=Iv,portalProps:i,animatePresenceProps:a}=t,s=Object.keys(n).map((e=>{const t=n[e];return(0,ei.jsx)("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${e}`,id:`chakra-toast-manager-${e}`,style:mv(e),children:(0,ei.jsx)(fu,{...a,initial:!1,children:t.map((e=>(0,ei.jsx)(o,{motionVariants:r,...e},e.id)))})},e)}));return(0,ei.jsx)(mg,{...i,children:s})},yg=(xg=Jo,function({children:e,theme:t=xg,toastOptions:n,...r}){return(0,ei.jsxs)(jl,{theme:t,...r,children:[(0,ei.jsx)(vg,{value:n?.defaultOptions,children:e}),(0,ei.jsx)(bg,{...n})]})});var xg;const wg=Fv((function(e,t){const{direction:n,align:r,justify:o,wrap:i,basis:a,grow:s,shrink:l,...u}=e,c={display:"flex",flexDirection:n,alignItems:r,justifyContent:o,flexWrap:i,flexBasis:a,flexGrow:s,flexShrink:l};return(0,ei.jsx)(Tv.div,{ref:t,__css:c,...u})}));wg.displayName="Flex";const kg=Fv((function(e,t){const n=Vv("Heading",e),{className:r,...o}=Mv(e);return(0,ei.jsx)(Tv.h2,{ref:t,className:zv("chakra-heading",e.className),...o,__css:n})}));kg.displayName="Heading";const Sg=Fv((function(e,t){const n=Vv("Text",e),{className:r,align:o,decoration:i,casing:a,...s}=Mv(e),l=vv({textAlign:e.align,textDecoration:e.decoration,textTransform:e.casing});return(0,ei.jsx)(Tv.p,{ref:t,className:zv("chakra-text",e.className),...l,...s,__css:n})}));function Eg(...e){return t=>{e.forEach((e=>{!function(e,t){if(null!=e)if("function"!=typeof e)try{e.current=t}catch(n){throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}else e(t)}(e,t)}))}}function Cg(...t){return(0,e.useMemo)((()=>Eg(...t)),t)}Sg.displayName="Text";const _g=e=>e?"":void 0,Og=e=>!!e||void 0,[Pg,Rg]=xl({strict:!1,name:"ButtonGroupContext"});function Tg(t){const{children:n,className:r,...o}=t,i=(0,e.isValidElement)(n)?(0,e.cloneElement)(n,{"aria-hidden":!0,focusable:!1}):n,a=zv("chakra-button__icon",r);return(0,ei.jsx)(Tv.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...o,className:a,children:i})}function Ag(t){const{label:n,placement:r,spacing:o="0.5rem",children:i=(0,ei.jsx)(Yv,{color:"currentColor",width:"1em",height:"1em"}),className:a,__css:s,...l}=t,u=zv("chakra-button__spinner",a),c="start"===r?"marginEnd":"marginStart",d=(0,e.useMemo)((()=>({display:"flex",alignItems:"center",position:n?"relative":"absolute",[c]:n?o:0,fontSize:"1em",lineHeight:"normal",...s})),[s,n,c,o]);return(0,ei.jsx)(Tv.div,{className:u,...l,__css:d,children:i})}Tg.displayName="ButtonIcon",Ag.displayName="ButtonSpinner";const Ig=Fv(((t,n)=>{const r=Rg(),o=Vv("Button",{...r,...t}),{isDisabled:i=r?.isDisabled,isLoading:a,isActive:s,children:l,leftIcon:u,rightIcon:c,loadingText:d,iconSpacing:f="0.5rem",type:p,spinner:h,spinnerPlacement:m="start",className:v,as:g,shouldWrapChildren:b,...y}=Mv(t),x=(0,e.useMemo)((()=>{const e={...o?._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...o,...!!r&&{_focus:e}}}),[o,r]),{ref:w,type:k}=function(t){const[n,r]=(0,e.useState)(!t),o=(0,e.useCallback)((e=>{e&&r("BUTTON"===e.tagName)}),[]);return{ref:o,type:n?"button":void 0}}(g),S={rightIcon:c,leftIcon:u,iconSpacing:f,children:l,shouldWrapChildren:b};return(0,ei.jsxs)(Tv.button,{disabled:i||a,ref:Cg(n,w),as:g,type:p??k,"data-active":_g(s),"data-loading":_g(a),__css:x,className:zv("chakra-button",v),...y,children:[a&&"start"===m&&(0,ei.jsx)(Ag,{className:"chakra-button__spinner--start",label:d,placement:"start",spacing:f,children:h}),a?d||(0,ei.jsx)(Tv.span,{opacity:0,children:(0,ei.jsx)(jg,{...S})}):(0,ei.jsx)(jg,{...S}),a&&"end"===m&&(0,ei.jsx)(Ag,{className:"chakra-button__spinner--end",label:d,placement:"end",spacing:f,children:h})]})}));function jg(e){const{leftIcon:t,rightIcon:n,children:r,iconSpacing:o,shouldWrapChildren:i}=e;return i?(0,ei.jsxs)("span",{style:{display:"contents"},children:[t&&(0,ei.jsx)(Tg,{marginEnd:o,children:t}),r,n&&(0,ei.jsx)(Tg,{marginStart:o,children:n})]}):(0,ei.jsxs)(ei.Fragment,{children:[t&&(0,ei.jsx)(Tg,{marginEnd:o,children:t}),r,n&&(0,ei.jsx)(Tg,{marginStart:o,children:n})]})}Ig.displayName="Button";const Mg=Fv((function(e,t){const n=Vv("Link",e),{className:r,isExternal:o,...i}=Mv(e);return(0,ei.jsx)(Tv.a,{target:o?"_blank":void 0,rel:o?"noopener":void 0,ref:t,className:zv("chakra-link",r),...i,__css:n})}));Mg.displayName="Link";const zg=Tv("div");var Fg,Lg,Dg,Ng;zg.displayName="Box",n(7604),function(e,t){t=t||{}}(console.error),Fg={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},Lg=["(","?"],Dg={")":["("],":":["?","?:"]},Ng=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var Bg={"!":function(e){return!e},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"+":function(e,t){return e+t},"-":function(e,t){return e-t},"<":function(e,t){return e<t},"<=":function(e,t){return e<=t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,n){if(e)throw t;return n}};var Vg={contextDelimiter:"",onMissingKey:null};function $g(e,t){var n;for(n in this.data=e,this.pluralForms={},this.options={},Vg)this.options[n]=void 0!==t&&n in t?t[n]:Vg[n]}$g.prototype.getPluralForm=function(e,t){var n,r,o,i,a=this.pluralForms[e];return a||("function"!=typeof(o=(n=this.data[e][""])["Plural-Forms"]||n["plural-forms"]||n.plural_forms)&&(r=function(e){var t,n,r;for(t=e.split(";"),n=0;n<t.length;n++)if(0===(r=t[n].trim()).indexOf("plural="))return r.substr(7)}(n["Plural-Forms"]||n["plural-forms"]||n.plural_forms),i=function(e){var t=function(e){for(var t,n,r,o,i=[],a=[];t=e.match(Ng);){for(n=t[0],(r=e.substr(0,t.index).trim())&&i.push(r);o=a.pop();){if(Dg[n]){if(Dg[n][0]===o){n=Dg[n][1]||n;break}}else if(Lg.indexOf(o)>=0||Fg[o]<Fg[n]){a.push(o);break}i.push(o)}Dg[n]||a.push(n),e=e.substr(t.index+n.length)}return(e=e.trim())&&i.push(e),i.concat(a.reverse())}(e);return function(e){return function(e,t){var n,r,o,i,a,s,l=[];for(n=0;n<e.length;n++){if(a=e[n],i=Bg[a]){for(r=i.length,o=Array(r);r--;)o[r]=l.pop();try{s=i.apply(null,o)}catch(e){return e}}else s=t.hasOwnProperty(a)?t[a]:+a;l.push(s)}return l[0]}(t,e)}}(r),o=function(e){return+i({n:e})}),a=this.pluralForms[e]=o),a(t)},$g.prototype.dcnpgettext=function(e,t,n,r,o){var i,a,s;return i=void 0===o?0:this.getPluralForm(e,o),a=n,t&&(a=t+this.options.contextDelimiter+n),(s=this.data[e][a])&&s[i]?s[i]:(this.options.onMissingKey&&this.options.onMissingKey(n,e),0===i?n:r)};const Wg={plural_forms:e=>1===e?0:1},Ug=/^i18n\.(n?gettext|has_translation)(_|$)/,Hg=function(e){return"string"!=typeof e||""===e?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(e)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)},qg=function(e){return"string"!=typeof e||""===e?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(e)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(e)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)},Yg=function(e,t){return function(n,r,o,i=10){const a=e[t];if(!qg(n))return;if(!Hg(r))return;if("function"!=typeof o)return void console.error("The hook callback must be a function.");if("number"!=typeof i)return void console.error("If specified, the hook priority must be a number.");const s={callback:o,priority:i,namespace:r};if(a[n]){const e=a[n].handlers;let t;for(t=e.length;t>0&&!(i>=e[t-1].priority);t--);t===e.length?e[t]=s:e.splice(t,0,s),a.__current.forEach((e=>{e.name===n&&e.currentIndex>=t&&e.currentIndex++}))}else a[n]={handlers:[s],runs:0};"hookAdded"!==n&&e.doAction("hookAdded",n,r,o,i)}},Xg=function(e,t,n=!1){return function(r,o){const i=e[t];if(!qg(r))return;if(!n&&!Hg(o))return;if(!i[r])return 0;let a=0;if(n)a=i[r].handlers.length,i[r]={runs:i[r].runs,handlers:[]};else{const e=i[r].handlers;for(let t=e.length-1;t>=0;t--)e[t].namespace===o&&(e.splice(t,1),a++,i.__current.forEach((e=>{e.name===r&&e.currentIndex>=t&&e.currentIndex--})))}return"hookRemoved"!==r&&e.doAction("hookRemoved",r,o),a}},Gg=function(e,t){return function(n,r){const o=e[t];return void 0!==r?n in o&&o[n].handlers.some((e=>e.namespace===r)):n in o}},Kg=function(e,t,n=!1){return function(r,...o){const i=e[t];i[r]||(i[r]={handlers:[],runs:0}),i[r].runs++;const a=i[r].handlers;if(!a||!a.length)return n?o[0]:void 0;const s={name:r,currentIndex:0};for(i.__current.push(s);s.currentIndex<a.length;){const e=a[s.currentIndex].callback.apply(null,o);n&&(o[0]=e),s.currentIndex++}return i.__current.pop(),n?o[0]:void 0}},Qg=function(e,t){return function(){var n;const r=e[t];return null!==(n=r.__current[r.__current.length-1]?.name)&&void 0!==n?n:null}},Zg=function(e,t){return function(n){const r=e[t];return void 0===n?void 0!==r.__current[0]:!!r.__current[0]&&n===r.__current[0].name}},Jg=function(e,t){return function(n){const r=e[t];if(qg(n))return r[n]&&r[n].runs?r[n].runs:0}};class eb{constructor(){this.actions=Object.create(null),this.actions.__current=[],this.filters=Object.create(null),this.filters.__current=[],this.addAction=Yg(this,"actions"),this.addFilter=Yg(this,"filters"),this.removeAction=Xg(this,"actions"),this.removeFilter=Xg(this,"filters"),this.hasAction=Gg(this,"actions"),this.hasFilter=Gg(this,"filters"),this.removeAllActions=Xg(this,"actions",!0),this.removeAllFilters=Xg(this,"filters",!0),this.doAction=Kg(this,"actions"),this.applyFilters=Kg(this,"filters",!0),this.currentAction=Qg(this,"actions"),this.currentFilter=Qg(this,"filters"),this.doingAction=Zg(this,"actions"),this.doingFilter=Zg(this,"filters"),this.didAction=Jg(this,"actions"),this.didFilter=Jg(this,"filters")}}const tb=new eb,{addAction:nb,addFilter:rb,removeAction:ob,removeFilter:ib,hasAction:ab,hasFilter:sb,removeAllActions:lb,removeAllFilters:ub,doAction:cb,applyFilters:db,currentAction:fb,currentFilter:pb,doingAction:hb,doingFilter:mb,didAction:vb,didFilter:gb,actions:bb,filters:yb}=tb,xb=((e,t,n)=>{const r=new $g({}),o=new Set,i=()=>{o.forEach((e=>e()))},a=(e,t="default")=>{r.data[t]={...r.data[t],...e},r.data[t][""]={...Wg,...r.data[t]?.[""]},delete r.pluralForms[t]},s=(e,t)=>{a(e,t),i()},l=(e="default",t,n,o,i)=>(r.data[e]||a(void 0,e),r.dcnpgettext(e,t,n,o,i)),u=(e="default")=>e,c=(e,t,r)=>{let o=l(r,t,e);return n?(o=n.applyFilters("i18n.gettext_with_context",o,e,t,r),n.applyFilters("i18n.gettext_with_context_"+u(r),o,e,t,r)):o};if(n){const e=e=>{Ug.test(e)&&i()};n.addAction("hookAdded","core/i18n",e),n.addAction("hookRemoved","core/i18n",e)}return{getLocaleData:(e="default")=>r.data[e],setLocaleData:s,addLocaleData:(e,t="default")=>{r.data[t]={...r.data[t],...e,"":{...Wg,...r.data[t]?.[""],...e?.[""]}},delete r.pluralForms[t],i()},resetLocaleData:(e,t)=>{r.data={},r.pluralForms={},s(e,t)},subscribe:e=>(o.add(e),()=>o.delete(e)),__:(e,t)=>{let r=l(t,void 0,e);return n?(r=n.applyFilters("i18n.gettext",r,e,t),n.applyFilters("i18n.gettext_"+u(t),r,e,t)):r},_x:c,_n:(e,t,r,o)=>{let i=l(o,void 0,e,t,r);return n?(i=n.applyFilters("i18n.ngettext",i,e,t,r,o),n.applyFilters("i18n.ngettext_"+u(o),i,e,t,r,o)):i},_nx:(e,t,r,o,i)=>{let a=l(i,o,e,t,r);return n?(a=n.applyFilters("i18n.ngettext_with_context",a,e,t,r,o,i),n.applyFilters("i18n.ngettext_with_context_"+u(i),a,e,t,r,o,i)):a},isRTL:()=>"rtl"===c("ltr","text direction"),hasTranslation:(e,t,o)=>{const i=t?t+""+e:e;let a=!!r.data?.[null!=o?o:"default"]?.[i];return n&&(a=n.applyFilters("i18n.has_translation",a,e,t,o),a=n.applyFilters("i18n.has_translation_"+u(o),a,e,t,o)),a}}})(0,0,tb),wb=(xb.getLocaleData.bind(xb),xb.setLocaleData.bind(xb),xb.resetLocaleData.bind(xb),xb.subscribe.bind(xb),xb.__.bind(xb));xb._x.bind(xb),xb._n.bind(xb),xb._nx.bind(xb),xb.isRTL.bind(xb),xb.hasTranslation.bind(xb);const kb=(e,t)=>{let n,r,o=e.path;return"string"==typeof e.namespace&&"string"==typeof e.endpoint&&(n=e.namespace.replace(/^\/|\/$/g,""),r=e.endpoint.replace(/^\//,""),o=r?n+"/"+r:n),delete e.namespace,delete e.endpoint,t({...e,path:o})};function Sb(e){const t=e.split("?"),n=t[1],r=t[0];return n?r+"?"+n.split("&").map((e=>e.split("="))).map((e=>e.map(decodeURIComponent))).sort(((e,t)=>e[0].localeCompare(t[0]))).map((e=>e.map(encodeURIComponent))).map((e=>e.join("="))).join("&"):r}function Eb(e){try{return decodeURIComponent(e)}catch(t){return e}}function Cb(e){return(function(e){let t;try{t=new URL(e,"http://example.com").search.substring(1)}catch(e){}if(t)return t}(e)||"").replace(/\+/g,"%20").split("&").reduce(((e,t)=>{const[n,r=""]=t.split("=").filter(Boolean).map(Eb);return n&&function(e,t,n){const r=t.length,o=r-1;for(let i=0;i<r;i++){let r=t[i];!r&&Array.isArray(e)&&(r=e.length.toString()),r=["__proto__","constructor","prototype"].includes(r)?r.toUpperCase():r;const a=!isNaN(Number(t[i+1]));e[r]=i===o?n:e[r]||(a?[]:{}),Array.isArray(e[r])&&!a&&(e[r]={...e[r]}),e=e[r]}}(e,n.replace(/\]/g,"").split("["),r),e}),Object.create(null))}function _b(e,t){return Cb(e)[t]}function Ob(e="",t){if(!t||!Object.keys(t).length)return e;let n=e;const r=e.indexOf("?");return-1!==r&&(t=Object.assign(Cb(e),t),n=n.substr(0,r)),n+"?"+function(e){let t="";const n=Object.entries(e);let r;for(;r=n.shift();){let[e,o]=r;if(Array.isArray(o)||o&&o.constructor===Object){const t=Object.entries(o).reverse();for(const[r,o]of t)n.unshift([`${e}[${r}]`,o])}else void 0!==o&&(null===o&&(o=""),t+="&"+[e,o].map(encodeURIComponent).join("="))}return t.substr(1)}(t)}const Pb=(e,t)=>{let{path:n,url:r,...o}=e;return{...o,url:r&&Ob(r,t),path:n&&Ob(n,t)}},Rb=e=>e.json?e.json():Promise.reject(e),Tb=e=>{const{next:t}=(e=>{if(!e)return{};const t=e.match(/<([^>]+)>; rel="next"/);return t?{next:t[1]}:{}})(e.headers.get("link"));return t},Ab=async(e,t)=>{if(!1===e.parse)return t(e);if(!(e=>{const t=!!e.path&&-1!==e.path.indexOf("per_page=-1"),n=!!e.url&&-1!==e.url.indexOf("per_page=-1");return t||n})(e))return t(e);const n=await Wb({...Pb(e,{per_page:100}),parse:!1}),r=await Rb(n);if(!Array.isArray(r))return r;let o=Tb(n);if(!o)return r;let i=[].concat(r);for(;o;){const t=await Wb({...e,path:void 0,url:o,parse:!1}),n=await Rb(t);i=i.concat(n),o=Tb(t)}return i},Ib=new Set(["PATCH","PUT","DELETE"]),jb="GET";function Mb(e,t){return void 0!==_b(e,t)}const zb=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Promise.resolve(function(e){return arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?e:204===e.status?null:e.json?e.json():Promise.reject(e)}(e,t)).catch((e=>Fb(e,t)))};function Fb(e){if(arguments.length>1&&void 0!==arguments[1]&&!arguments[1])throw e;return(e=>{const t={code:"invalid_json",message:wb("The response is not a valid JSON response.")};if(!e||!e.json)throw t;return e.json().catch((()=>{throw t}))})(e).then((e=>{const t={code:"unknown_error",message:wb("An unknown error occurred.")};throw e||t}))}const Lb={Accept:"application/json, */*;q=0.1"},Db={credentials:"include"},Nb=[(e,t)=>("string"!=typeof e.url||Mb(e.url,"_locale")||(e.url=Ob(e.url,{_locale:"user"})),"string"!=typeof e.path||Mb(e.path,"_locale")||(e.path=Ob(e.path,{_locale:"user"})),t(e)),kb,(e,t)=>{const{method:n=jb}=e;return Ib.has(n.toUpperCase())&&(e={...e,headers:{...e.headers,"X-HTTP-Method-Override":n,"Content-Type":"application/json"},method:"POST"}),t(e)},Ab],Bb=e=>{if(e.status>=200&&e.status<300)return e;throw e};let Vb=e=>{const{url:t,path:n,data:r,parse:o=!0,...i}=e;let{body:a,headers:s}=e;return s={...Lb,...s},r&&(a=JSON.stringify(r),s["Content-Type"]="application/json"),window.fetch(t||n||window.location.href,{...Db,...i,body:a,headers:s}).then((e=>Promise.resolve(e).then(Bb).catch((e=>Fb(e,o))).then((e=>zb(e,o)))),(e=>{if(e&&"AbortError"===e.name)throw e;throw{code:"fetch_error",message:wb("You are probably offline.")}}))};function $b(e){const t=Nb.reduceRight(((e,t)=>n=>t(n,e)),Vb);return t(e).catch((t=>"rest_cookie_invalid_nonce"!==t.code?Promise.reject(t):window.fetch($b.nonceEndpoint).then(Bb).then((e=>e.text())).then((t=>($b.nonceMiddleware.nonce=t,$b(e))))))}$b.use=function(e){Nb.unshift(e)},$b.setFetchHandler=function(e){Vb=e},$b.createNonceMiddleware=function(e){const t=(e,n)=>{const{headers:r={}}=e;for(const o in r)if("x-wp-nonce"===o.toLowerCase()&&r[o]===t.nonce)return n(e);return n({...e,headers:{...r,"X-WP-Nonce":t.nonce}})};return t.nonce=e,t},$b.createPreloadingMiddleware=function(e){const t=Object.keys(e).reduce(((t,n)=>(t[Sb(n)]=e[n],t)),{});return(e,n)=>{const{parse:r=!0}=e;let o=e.path;if(!o&&e.url){const t=_b(e.url,"rest_route");"string"==typeof t&&(o=t)}if("string"==typeof o){const n=e.method||"GET",i=Sb(o);if("GET"===n&&t[i]){const e=t[i];return delete t[i],Promise.resolve(r?e.body:new window.Response(JSON.stringify(e.body),{status:200,statusText:"OK",headers:e.headers}))}if("OPTIONS"===n&&t[n]&&t[n][i]){const e=t[n][i];return delete t[n][i],Promise.resolve(r?e.body:e)}}return n(e)}},$b.createRootURLMiddleware=e=>(t,n)=>kb(t,(t=>{let r,o=t.url,i=t.path;return"string"==typeof i&&(r=e,-1!==e.indexOf("?")&&(i=i.replace("?","&")),i=i.replace(/^\//,""),"string"==typeof r&&-1!==r.indexOf("?")&&(i=i.replace("?","&")),o=r+i),n({...t,url:o})})),$b.fetchAllMiddleware=Ab,$b.mediaUploadMiddleware=(e,t)=>{if(!function(e){const t=!!e.method&&"POST"===e.method;return(!!e.path&&-1!==e.path.indexOf("/wp/v2/media")||!!e.url&&-1!==e.url.indexOf("/wp/v2/media"))&&t}(e))return t(e);let n=0;const r=e=>(n++,t({path:`/wp/v2/media/${e}/post-process`,method:"POST",data:{action:"create-image-subsizes"},parse:!1}).catch((()=>n<5?r(e):(t({path:`/wp/v2/media/${e}?force=true`,method:"DELETE"}),Promise.reject()))));return t({...e,parse:!1}).catch((t=>{const n=t.headers.get("x-wp-upload-attachment-id");return t.status>=500&&t.status<600&&n?r(n).catch((()=>!1!==e.parse?Promise.reject({code:"post_process",message:wb("Media upload failed. If this is a photo or a large image, please scale it down and try again.")}):Promise.reject(t))):Fb(t,e.parse)})).then((t=>zb(t,e.parse)))};const Wb=$b;n(918);const Ub=function(e){var n=e.steps,r=e.activeStep,o=e.siteURL;return t().createElement("div",{className:"user-registration-setup-wizard__header"},t().createElement("div",{className:"user-registration-setup-wizard__header--logo"},t().createElement("img",{src:"".concat(o,"/wp-content/plugins/user-registration/assets/images/onboard-icons/logo.png"),alt:""})),t().createElement("ul",{className:"user-registration-setup-wizard__header--nav"},n.map((function(e,n){return t().createElement("li",{key:n,className:"user-registration-setup-wizard__header--nav-item step ".concat(r.key===e.key?"active":""," ").concat(e.isDone?"done":""),id:"step-".concat(n+1)},t().createElement("span",{className:"step-label"},e.label),t().createElement("p",{className:"step-identifier"}))}))))};function Hb(...e){return function(t){e.some((e=>(e?.(t),t?.defaultPrevented)))}}const[qb,Yb]=xl({name:"CheckboxGroupContext",strict:!1});function Xb(e){return(0,ei.jsx)(Tv.svg,{width:"1.2em",viewBox:"0 0 12 10",style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16},...e,children:(0,ei.jsx)("polyline",{points:"1.5 6 4.5 9 10.5 1"})})}function Gb(e){return(0,ei.jsx)(Tv.svg,{width:"1.2em",viewBox:"0 0 24 24",style:{stroke:"currentColor",strokeWidth:4},...e,children:(0,ei.jsx)("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function Kb(e){const{isIndeterminate:t,isChecked:n,...r}=e,o=t?Gb:Xb;return n||t?(0,ei.jsx)(Tv.div,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:(0,ei.jsx)(o,{...r})}):null}var Qb=!1,Zb=null,Jb=!1,ey=!1,ty=new Set;function ny(e,t){ty.forEach((n=>n(e,t)))}var ry="undefined"!=typeof window&&null!=window.navigator&&/^Mac/.test(window.navigator.platform);function oy(e){var t;Jb=!0,(t=e).metaKey||!ry&&t.altKey||t.ctrlKey||"Control"===t.key||"Shift"===t.key||"Meta"===t.key||(Zb="keyboard",ny("keyboard",e))}function iy(e){if(Zb="pointer","mousedown"===e.type||"pointerdown"===e.type){Jb=!0;const t=e.composedPath?e.composedPath()[0]:e.target;let n=!1;try{n=t.matches(":focus-visible")}catch{}if(n)return;ny("pointer",e)}}function ay(e){var t;(0===(t=e).mozInputSource&&t.isTrusted||0===t.detail&&!t.pointerType)&&(Jb=!0,Zb="virtual")}function sy(e){e.target!==window&&e.target!==document&&(e.target instanceof Element&&e.target.hasAttribute("tabindex")||(Jb||ey||(Zb="virtual",ny("virtual",e)),Jb=!1,ey=!1))}function ly(){Jb=!1,ey=!0}function uy(){return"pointer"!==Zb}function cy(){if("undefined"==typeof document||Qb)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...t){Jb=!0,e.apply(this,t)},document.addEventListener("keydown",oy,!0),document.addEventListener("keyup",oy,!0),document.addEventListener("click",ay,!0),window.addEventListener("focus",sy,!0),window.addEventListener("blur",ly,!1),"undefined"!=typeof PointerEvent?(document.addEventListener("pointerdown",iy,!0),document.addEventListener("pointermove",iy,!0),document.addEventListener("pointerup",iy,!0)):(document.addEventListener("mousedown",iy,!0),document.addEventListener("mousemove",iy,!0),document.addEventListener("mouseup",iy,!0)),Qb=!0}function dy(e){cy(),e(uy());const t=()=>e(uy());return ty.add(t),()=>{ty.delete(t)}}const[fy,py]=xl({name:"FormControlStylesContext",errorMessage:"useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<FormControl />\" "}),[hy,my]=xl({strict:!1,name:"FormControlContext"}),vy=Fv((function(t,n){const r=$v("Form",t),o=Mv(t),{getRootProps:i,htmlProps:a,...s}=function(t){const{id:n,isRequired:r,isInvalid:o,isDisabled:i,isReadOnly:a,...s}=t,l=(0,e.useId)(),u=n||`field-${l}`,c=`${u}-label`,d=`${u}-feedback`,f=`${u}-helptext`,[p,h]=(0,e.useState)(!1),[m,v]=(0,e.useState)(!1),[g,b]=(0,e.useState)(!1),y=(0,e.useCallback)(((e={},t=null)=>({id:f,...e,ref:Eg(t,(e=>{e&&v(!0)}))})),[f]),x=(0,e.useCallback)(((e={},t=null)=>({...e,ref:t,"data-focus":_g(g),"data-disabled":_g(i),"data-invalid":_g(o),"data-readonly":_g(a),id:void 0!==e.id?e.id:c,htmlFor:void 0!==e.htmlFor?e.htmlFor:u})),[u,i,g,o,a,c]),w=(0,e.useCallback)(((e={},t=null)=>({id:d,...e,ref:Eg(t,(e=>{e&&h(!0)})),"aria-live":"polite"})),[d]),k=(0,e.useCallback)(((e={},t=null)=>({...e,...s,ref:t,role:"group","data-focus":_g(g),"data-disabled":_g(i),"data-invalid":_g(o),"data-readonly":_g(a)})),[s,i,g,o,a]),S=(0,e.useCallback)(((e={},t=null)=>({...e,ref:t,role:"presentation","aria-hidden":!0,children:e.children||"*"})),[]);return{isRequired:!!r,isInvalid:!!o,isReadOnly:!!a,isDisabled:!!i,isFocused:!!g,onFocus:()=>b(!0),onBlur:()=>b(!1),hasFeedbackText:p,setHasFeedbackText:h,hasHelpText:m,setHasHelpText:v,id:u,labelId:c,feedbackId:d,helpTextId:f,htmlProps:s,getHelpTextProps:y,getErrorMessageProps:w,getRootProps:k,getLabelProps:x,getRequiredIndicatorProps:S}}(o),l=zv("chakra-form-control",t.className);return(0,ei.jsx)(hy,{value:s,children:(0,ei.jsx)(fy,{value:r,children:(0,ei.jsx)(Tv.div,{...i({},n),className:l,__css:r.container})})})}));vy.displayName="FormControl";const gy=Fv((function(e,t){const n=my(),r=py(),o=zv("chakra-form__helper-text",e.className);return(0,ei.jsx)(Tv.div,{...n?.getHelpTextProps(e,t),__css:r.helperText,className:o})}));function by(e){const t=my(),{id:n,disabled:r,readOnly:o,required:i,isRequired:a,isInvalid:s,isReadOnly:l,isDisabled:u,onFocus:c,onBlur:d,...f}=e,p=e["aria-describedby"]?[e["aria-describedby"]]:[];return t?.hasFeedbackText&&t?.isInvalid&&p.push(t.feedbackId),t?.hasHelpText&&p.push(t.helpTextId),{...f,"aria-describedby":p.join(" ")||void 0,id:n??t?.id,isDisabled:r??u??t?.isDisabled,isReadOnly:o??l??t?.isReadOnly,isRequired:i??a??t?.isRequired,isInvalid:s??t?.isInvalid,onFocus:Hb(t?.onFocus,c),onBlur:Hb(t?.onBlur,d)}}gy.displayName="FormHelperText";const yy={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};function xy(t={}){const n=by(t),{isDisabled:r,isReadOnly:o,isRequired:i,isInvalid:a,id:s,onBlur:l,onFocus:u,"aria-describedby":c}=n,{defaultChecked:d,isChecked:f,isFocusable:p,onChange:h,isIndeterminate:m,name:v,value:g,tabIndex:b,"aria-label":y,"aria-labelledby":x,"aria-invalid":w,...k}=t,S=jv(k,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),E=hu(h),C=hu(l),_=hu(u),[O,P]=(0,e.useState)(!1),[R,T]=(0,e.useState)(!1),[A,I]=(0,e.useState)(!1),[j,M]=(0,e.useState)(!1);(0,e.useEffect)((()=>dy(P)),[]);const z=(0,e.useRef)(null),[F,L]=(0,e.useState)(!0),[D,N]=(0,e.useState)(!!d),B=void 0!==f,V=B?f:D,$=(0,e.useCallback)((e=>{o||r?e.preventDefault():(B||N(V?e.currentTarget.checked:!!m||e.currentTarget.checked),E?.(e))}),[o,r,V,B,m,E]);Tl((()=>{z.current&&(z.current.indeterminate=Boolean(m))}),[m]),pu((()=>{r&&T(!1)}),[r,T]),Tl((()=>{const e=z.current;if(!e?.form)return;const t=()=>{N(!!d)};return e.form.addEventListener("reset",t),()=>e.form?.removeEventListener("reset",t)}),[]);const W=r&&!p,U=(0,e.useCallback)((e=>{" "===e.key&&M(!0)}),[M]),H=(0,e.useCallback)((e=>{" "===e.key&&M(!1)}),[M]);Tl((()=>{z.current&&z.current.checked!==V&&N(z.current.checked)}),[z.current]);const q=(0,e.useCallback)(((e={},t=null)=>({...e,ref:t,"data-active":_g(j),"data-hover":_g(A),"data-checked":_g(V),"data-focus":_g(R),"data-focus-visible":_g(R&&O),"data-indeterminate":_g(m),"data-disabled":_g(r),"data-invalid":_g(a),"data-readonly":_g(o),"aria-hidden":!0,onMouseDown:Hb(e.onMouseDown,(e=>{R&&e.preventDefault(),M(!0)})),onMouseUp:Hb(e.onMouseUp,(()=>M(!1))),onMouseEnter:Hb(e.onMouseEnter,(()=>I(!0))),onMouseLeave:Hb(e.onMouseLeave,(()=>I(!1)))})),[j,V,r,R,O,A,m,a,o]),Y=(0,e.useCallback)(((e={},t=null)=>({...e,ref:t,"data-active":_g(j),"data-hover":_g(A),"data-checked":_g(V),"data-focus":_g(R),"data-focus-visible":_g(R&&O),"data-indeterminate":_g(m),"data-disabled":_g(r),"data-invalid":_g(a),"data-readonly":_g(o)})),[j,V,r,R,O,A,m,a,o]),X=(0,e.useCallback)(((e={},t=null)=>({...S,...e,ref:Eg(t,(e=>{e&&L("LABEL"===e.tagName)})),htmlFor:void 0!==e.htmlFor?e.htmlFor:F?s:void 0,onClick:Hb(e.onClick,(()=>{F||(z.current?.click(),requestAnimationFrame((()=>{z.current?.focus({preventScroll:!0})})))})),"data-disabled":_g(r),"data-checked":_g(V),"data-invalid":_g(a)})),[S,r,V,a,F,s]),G=(0,e.useCallback)(((e={},t=null)=>({...e,ref:Eg(z,t),type:"checkbox",name:v,value:g,id:s,tabIndex:b,onChange:Hb(e.onChange,$),onBlur:Hb(e.onBlur,C,(()=>T(!1))),onFocus:Hb(e.onFocus,_,(()=>T(!0))),onKeyDown:Hb(e.onKeyDown,U),onKeyUp:Hb(e.onKeyUp,H),required:i,checked:V,disabled:W,readOnly:o,"aria-label":y,"aria-labelledby":x,"aria-invalid":w?Boolean(w):a,"aria-describedby":c,"aria-disabled":r,style:yy})),[v,g,s,$,C,_,U,H,i,V,W,o,y,x,w,a,c,r,b]),K=(0,e.useCallback)(((e={},t=null)=>({...e,ref:t,onMouseDown:Hb(e.onMouseDown,wy),"data-disabled":_g(r),"data-checked":_g(V),"data-invalid":_g(a)})),[V,r,a]);return{state:{isInvalid:a,isFocused:R,isChecked:V,isActive:j,isHovered:A,isIndeterminate:m,isDisabled:r,isReadOnly:o,isRequired:i},getRootProps:X,getCheckboxProps:q,getIndicatorProps:Y,getInputProps:G,getLabelProps:K,htmlProps:S}}function wy(e){e.preventDefault(),e.stopPropagation()}const ky={display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0},Sy={cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"},Ey=Ga({from:{opacity:0,strokeDashoffset:16,transform:"scale(0.95)"},to:{opacity:1,strokeDashoffset:0,transform:"scale(1)"}}),Cy=Ga({from:{opacity:0},to:{opacity:1}}),_y=Ga({from:{transform:"scaleX(0.65)"},to:{transform:"scaleX(1)"}}),Oy=Fv((function(t,n){const r=Yb(),o=$v("Checkbox",{...r,...t}),i=Mv(t),{spacing:a="0.5rem",className:s,children:l,iconColor:u,iconSize:c,icon:d=(0,ei.jsx)(Kb,{}),isChecked:f,isDisabled:p=r?.isDisabled,onChange:h,inputProps:m,...v}=i;let g=f;r?.value&&i.value&&(g=r.value.includes(i.value));let b=h;r?.onChange&&i.value&&(b=function(...e){return function(...t){e.forEach((e=>e?.(...t)))}}(r.onChange,h));const{state:y,getInputProps:x,getCheckboxProps:w,getLabelProps:k,getRootProps:S}=xy({...v,isDisabled:p,isChecked:g,onChange:b}),E=function(t){const[n,r]=(0,e.useState)(t),[o,i]=(0,e.useState)(!1);return t!==n&&(i(!0),r(t)),o}(y.isChecked),C=(0,e.useMemo)((()=>({animation:E?y.isIndeterminate?`${Cy} 20ms linear, ${_y} 200ms linear`:`${Ey} 200ms linear`:void 0,...o.icon,...vv({fontSize:c,color:u})})),[u,c,E,y.isIndeterminate,o.icon]),_=(0,e.cloneElement)(d,{__css:C,isIndeterminate:y.isIndeterminate,isChecked:y.isChecked});return(0,ei.jsxs)(Tv.label,{__css:{...Sy,...o.container},className:zv("chakra-checkbox",s),...S(),children:[(0,ei.jsx)("input",{className:"chakra-checkbox__input",...x(m,n)}),(0,ei.jsx)(Tv.span,{__css:{...ky,...o.control},className:"chakra-checkbox__control",...w(),children:_}),l&&(0,ei.jsx)(Tv.span,{className:"chakra-checkbox__label",...k(),__css:{marginStart:a,...o.label},children:l})]})}));Oy.displayName="Checkbox";var Py=new WeakMap,Ry=new WeakMap,Ty={},Ay=0,Iy=function(e){return e&&(e.host||Iy(e.parentNode))},jy=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]"))),function(e,t,n,r){var o=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=Iy(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]);Ty[n]||(Ty[n]=new WeakMap);var i=Ty[n],a=[],s=new Set,l=new Set(o),u=function(e){e&&!s.has(e)&&(s.add(e),u(e.parentNode))};o.forEach(u);var c=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(s.has(e))c(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,l=(Py.get(e)||0)+1,u=(i.get(e)||0)+1;Py.set(e,l),i.set(e,u),a.push(e),1===l&&o&&Ry.set(e,!0),1===u&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}}))};return c(t),s.clear(),Ay++,function(){a.forEach((function(e){var t=Py.get(e)-1,o=i.get(e)-1;Py.set(e,t),i.set(e,o),t||(Ry.has(e)||e.removeAttribute(r),Ry.delete(e)),o||e.removeAttribute(n)})),--Ay||(Py=new WeakMap,Py=new WeakMap,Ry=new WeakMap,Ty={})}}(r,o,n,"aria-hidden")):function(){return null}},My=Object.defineProperty;const zy=new class{constructor(){((e,t,n)=>{((e,t,n)=>{t in e?My(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n)})(this,"modals"),this.modals=new Set}add(e){return this.modals.add(e),this.modals.size}remove(e){this.modals.delete(e)}isTopModal(e){return!!e&&e===Array.from(this.modals)[this.modals.size-1]}};function Fy(t,n){const[r,o]=(0,e.useState)(0);return(0,e.useEffect)((()=>{const e=t.current;if(e){if(n){const t=zy.add(e);o(t)}return()=>{zy.remove(e),o(0)}}}),[n,t]),r}function Ly(t){const{isOpen:n,onClose:r,id:o,closeOnOverlayClick:i=!0,closeOnEsc:a=!0,useInert:s=!0,onOverlayClick:l,onEsc:u}=t,c=(0,e.useRef)(null),d=(0,e.useRef)(null),[f,p,h]=function(t,...n){const r=(0,e.useId)(),o=t||r;return(0,e.useMemo)((()=>n.map((e=>`${e}-${o}`))),[o,n])}(o,"chakra-modal","chakra-modal--header","chakra-modal--body");!function(t,n){const r=t.current;(0,e.useEffect)((()=>{if(t.current&&n)return jy(t.current)}),[n,t,r])}(c,n&&s);const m=Fy(c,n),v=(0,e.useRef)(null),g=(0,e.useCallback)((e=>{v.current=e.target}),[]),b=(0,e.useCallback)((e=>{"Escape"===e.key&&(e.stopPropagation(),a&&r?.(),u?.())}),[a,r,u]),[y,x]=(0,e.useState)(!1),[w,k]=(0,e.useState)(!1),S=(0,e.useCallback)(((e={},t=null)=>({role:"dialog",...e,ref:Eg(t,c),id:f,tabIndex:-1,"aria-modal":!0,"aria-labelledby":y?p:void 0,"aria-describedby":w?h:void 0,onClick:Hb(e.onClick,(e=>e.stopPropagation()))})),[h,w,f,p,y]),E=(0,e.useCallback)((e=>{e.stopPropagation(),v.current===e.target&&zy.isTopModal(c.current)&&(i&&r?.(),l?.())}),[r,i,l]),C=(0,e.useCallback)(((e={},t=null)=>({...e,ref:Eg(t,d),onClick:Hb(e.onClick,E),onKeyDown:Hb(e.onKeyDown,b),onMouseDown:Hb(e.onMouseDown,g)})),[b,g,E]);return{isOpen:n,onClose:r,headerId:p,bodyId:h,setBodyMounted:k,setHeaderMounted:x,dialogRef:c,overlayRef:d,getDialogProps:S,getDialogContainerProps:C,index:m}}const[Dy,Ny]=xl({name:"ModalStylesContext",errorMessage:"useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Modal />\" "}),[By,Vy]=xl({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in `<Modal />`"}),$y=e=>{const t={scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,preserveScrollBarGap:!0,motionPreset:"scale",...e,lockFocusAcrossFrames:e.lockFocusAcrossFrames||!0},{portalProps:n,children:r,autoFocus:o,trapFocus:i,initialFocusRef:a,finalFocusRef:s,returnFocusOnClose:l,blockScrollOnMount:u,allowPinchZoom:c,preserveScrollBarGap:d,motionPreset:f,lockFocusAcrossFrames:p,animatePresenceProps:h,onCloseComplete:m}=t,v=$v("Modal",t),g={...Ly(t),autoFocus:o,trapFocus:i,initialFocusRef:a,finalFocusRef:s,returnFocusOnClose:l,blockScrollOnMount:u,allowPinchZoom:c,preserveScrollBarGap:d,motionPreset:f,lockFocusAcrossFrames:p};return(0,ei.jsx)(By,{value:g,children:(0,ei.jsx)(Dy,{value:v,children:(0,ei.jsx)(fu,{...h,onExitComplete:m,children:g.isOpen&&(0,ei.jsx)(mg,{...n,children:r})})})})};$y.displayName="Modal";const Wy={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},Uy={enter:{duration:.2,ease:Wy.easeOut},exit:{duration:.1,ease:Wy.easeIn}},Hy=(e,t)=>({...e,delay:"number"==typeof t?t:t?.enter}),qy=(e,t)=>({...e,delay:"number"==typeof t?t:t?.exit}),Yy={enter:({transition:e,transitionEnd:t,delay:n}={})=>({opacity:1,transition:e?.enter??Hy(Uy.enter,n),transitionEnd:t?.enter}),exit:({transition:e,transitionEnd:t,delay:n}={})=>({opacity:0,transition:e?.exit??qy(Uy.exit,n),transitionEnd:t?.exit})},Xy={initial:"exit",animate:"enter",exit:"exit",variants:Yy},Gy=(0,e.forwardRef)((function(e,t){const{unmountOnExit:n,in:r,className:o,transition:i,transitionEnd:a,delay:s,animatePresenceProps:l,...u}=e,c=r||n?"enter":"exit",d=!n||r&&n,f={transition:i,transitionEnd:a,delay:s};return(0,ei.jsx)(fu,{...l,custom:f,children:d&&(0,ei.jsx)(dv.div,{ref:t,className:zv("chakra-fade",o),custom:f,...Xy,animate:c,...u})})}));Gy.displayName="Fade";const Ky=Tv(dv.div),Qy=Fv(((e,t)=>{const{className:n,transition:r,motionProps:o,...i}=e,a=zv("chakra-modal__overlay",n),s={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...Ny().overlay},{motionPreset:l}=Vy(),u=o||("none"===l?{}:Xy);return(0,ei.jsx)(Ky,{...u,__css:s,ref:t,className:a,...i})}));Qy.displayName="ModalOverlay";var Zy="right-scroll-bar-position",Jy="width-before-scroll-bar";function ex(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var tx="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,nx=new WeakMap;function rx(t,n){var r,o,i,a=(r=n||null,o=function(e){return t.forEach((function(t){return ex(t,e)}))},(i=(0,e.useState)((function(){return{value:r,callback:o,facade:{get current(){return i.value},set current(e){var t=i.value;t!==e&&(i.value=e,i.callback(e,t))}}}}))[0]).callback=o,i.facade);return tx((function(){var e=nx.get(a);if(e){var n=new Set(e),r=new Set(t),o=a.current;n.forEach((function(e){r.has(e)||ex(e,null)})),r.forEach((function(e){n.has(e)||ex(e,o)}))}nx.set(a,t)}),[t]),a}function ox(e){return e}function ix(e,t){void 0===t&&(t=ox);var n=[],r=!1,o={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}}}};return o}function ax(e,t){return void 0===t&&(t=ox),ix(e,t)}function sx(e){void 0===e&&(e={});var t=ix(null);return t.options=Fl({async:!0,ssr:!1},e),t}var lx=sx(),ux=function(){},cx=e.forwardRef((function(t,n){var r=e.useRef(null),o=e.useState({onScrollCapture:ux,onWheelCapture:ux,onTouchMoveCapture:ux}),i=o[0],a=o[1],s=t.forwardProps,l=t.children,u=t.className,c=t.removeScrollBar,d=t.enabled,f=t.shards,p=t.sideCar,h=t.noIsolation,m=t.inert,v=t.allowPinchZoom,g=t.as,b=void 0===g?"div":g,y=t.gapMode,x=Ll(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=p,k=rx([r,n]),S=Fl(Fl({},x),i);return e.createElement(e.Fragment,null,d&&e.createElement(w,{sideCar:lx,removeScrollBar:c,shards:f,noIsolation:h,inert:m,setCallbacks:a,allowPinchZoom:!!v,lockRef:r,gapMode:y}),s?e.cloneElement(e.Children.only(l),Fl(Fl({},S),{ref:k})):e.createElement(b,Fl({},S,{className:u,ref:k}),l))}));cx.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},cx.classNames={fullWidth:Jy,zeroRight:Zy};var dx=function(t){var n=t.sideCar,r=Ll(t,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=n.read();if(!o)throw new Error("Sidecar medium not found");return e.createElement(o,Fl({},r))};dx.isSideCarExport=!0;var fx=function(){var e=0,t=null;return{add:function(r){var o;0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=n.nc;return t&&e.setAttribute("nonce",t),e}())&&(function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}(t,r),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},px=function(){var t,n=(t=fx(),function(n,r){e.useEffect((function(){return t.add(n),function(){t.remove()}}),[n&&r])});return function(e){var t=e.styles,r=e.dynamic;return n(t,r),null}},hx={left:0,top:0,right:0,gap:0},mx=function(e){return parseInt(e||"",10)||0},vx=px(),gx="data-scroll-locked",bx=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body[").concat(gx,"] {\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(Zy," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(Jy," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(Zy," .").concat(Zy," {\n right: 0 ").concat(r,";\n }\n \n .").concat(Jy," .").concat(Jy," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(gx,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},yx=function(){var e=parseInt(document.body.getAttribute(gx)||"0",10);return isFinite(e)?e:0},xx=function(t){var n=t.noRelative,r=t.noImportant,o=t.gapMode,i=void 0===o?"margin":o;e.useEffect((function(){return document.body.setAttribute(gx,(yx()+1).toString()),function(){var e=yx()-1;e<=0?document.body.removeAttribute(gx):document.body.setAttribute(gx,e.toString())}}),[]);var a=e.useMemo((function(){return function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return hx;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[mx(n),mx(r),mx(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])}}(i)}),[i]);return e.createElement(vx,{styles:bx(a,!n,i,r?"":"!important")})},wx=!1;if("undefined"!=typeof window)try{var kx=Object.defineProperty({},"passive",{get:function(){return wx=!0,!0}});window.addEventListener("test",kx,kx),window.removeEventListener("test",kx,kx)}catch(e){wx=!1}var Sx=!!wx&&{passive:!1},Ex=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},Cx=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),_x(e,r)){var o=Ox(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},_x=function(e,t){return"v"===e?function(e){return Ex(e,"overflowY")}(t):function(e){return Ex(e,"overflowX")}(t)},Ox=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},Px=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Rx=function(e){return[e.deltaX,e.deltaY]},Tx=function(e){return e&&"current"in e?e.current:e},Ax=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Ix=0,jx=[];function Mx(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const zx=(Fx=function(t){var n=e.useRef([]),r=e.useRef([0,0]),o=e.useRef(),i=e.useState(Ix++)[0],a=e.useState(px)[0],s=e.useRef(t);e.useEffect((function(){s.current=t}),[t]),e.useEffect((function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var e=Nl([t.lockRef.current],(t.shards||[]).map(Tx),!0).filter(Boolean);return e.forEach((function(e){return e.classList.add("allow-interactivity-".concat(i))})),function(){document.body.classList.remove("block-interactivity-".concat(i)),e.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(i))}))}}}),[t.inert,t.lockRef.current,t.shards]);var l=e.useCallback((function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var n,i=Px(e),a=r.current,l="deltaX"in e?e.deltaX:a[0]-i[0],u="deltaY"in e?e.deltaY:a[1]-i[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=Cx(d,c);if(!f)return!0;if(f?n=d:(n="v"===d?"h":"v",f=Cx(d,c)),!f)return!1;if(!o.current&&"changedTouches"in e&&(l||u)&&(o.current=n),!n)return!0;var p=o.current||n;return function(e,t,n,r){var o=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),i=o*r,a=n.target,s=t.contains(a),l=!1,u=i>0,c=0,d=0;do{var f=Ox(e,a),p=f[0],h=f[1]-f[2]-o*p;(p||h)&&_x(e,a)&&(c+=h,d+=p),a=a instanceof ShadowRoot?a.host:a.parentNode}while(!s&&a!==document.body||s&&(t.contains(a)||t===a));return(u&&(Math.abs(c)<1||!1)||!u&&(Math.abs(d)<1||!1))&&(l=!0),l}(p,t,e,"h"===p?l:u)}),[]),u=e.useCallback((function(e){var t=e;if(jx.length&&jx[jx.length-1]===a){var r="deltaY"in t?Rx(t):Px(t),o=n.current.filter((function(e){return e.name===t.type&&(e.target===t.target||t.target===e.shadowParent)&&(n=e.delta,o=r,n[0]===o[0]&&n[1]===o[1]);var n,o}))[0];if(o&&o.should)t.cancelable&&t.preventDefault();else if(!o){var i=(s.current.shards||[]).map(Tx).filter(Boolean).filter((function(e){return e.contains(t.target)}));(i.length>0?l(t,i[0]):!s.current.noIsolation)&&t.cancelable&&t.preventDefault()}}}),[]),c=e.useCallback((function(e,t,r,o){var i={name:e,delta:t,target:r,should:o,shadowParent:Mx(r)};n.current.push(i),setTimeout((function(){n.current=n.current.filter((function(e){return e!==i}))}),1)}),[]),d=e.useCallback((function(e){r.current=Px(e),o.current=void 0}),[]),f=e.useCallback((function(e){c(e.type,Rx(e),e.target,l(e,t.lockRef.current))}),[]),p=e.useCallback((function(e){c(e.type,Px(e),e.target,l(e,t.lockRef.current))}),[]);e.useEffect((function(){return jx.push(a),t.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",u,Sx),document.addEventListener("touchmove",u,Sx),document.addEventListener("touchstart",d,Sx),function(){jx=jx.filter((function(e){return e!==a})),document.removeEventListener("wheel",u,Sx),document.removeEventListener("touchmove",u,Sx),document.removeEventListener("touchstart",d,Sx)}}),[]);var h=t.removeScrollBar,m=t.inert;return e.createElement(e.Fragment,null,m?e.createElement(a,{styles:Ax(i)}):null,h?e.createElement(xx,{gapMode:t.gapMode}):null)},lx.useMedium(Fx),dx);var Fx,Lx=e.forwardRef((function(t,n){return e.createElement(cx,Fl({},t,{ref:n,sideCar:zx}))}));Lx.classNames=cx.classNames;const Dx=Lx;function Nx(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}var Bx="data-focus-lock",Vx="data-focus-lock-disabled",$x={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},Wx=ax({},(function(e){return{target:e.target,currentTarget:e.currentTarget}})),Ux=ax(),Hx=ax(),qx=sx({async:!0,ssr:"undefined"!=typeof document}),Yx=(0,e.createContext)(void 0),Xx=[],Gx=e.forwardRef((function(t,n){var r,o=e.useState(),i=o[0],a=o[1],s=e.useRef(),l=e.useRef(!1),u=e.useRef(null),c=e.useState({})[1],d=t.children,f=t.disabled,p=void 0!==f&&f,h=t.noFocusGuards,m=void 0!==h&&h,v=t.persistentFocus,g=void 0!==v&&v,b=t.crossFrame,y=void 0===b||b,x=t.autoFocus,w=void 0===x||x,k=(t.allowTextSelection,t.group),S=t.className,E=t.whiteList,C=t.hasPositiveIndices,_=t.shards,O=void 0===_?Xx:_,P=t.as,R=void 0===P?"div":P,T=t.lockProps,A=void 0===T?{}:T,I=t.sideCar,j=t.returnFocus,M=void 0!==j&&j,z=t.focusOptions,F=t.onActivation,L=t.onDeactivation,D=e.useState({})[0],N=e.useCallback((function(e){var t=e.captureFocusRestore;if(!u.current){var n,r=null==(n=document)?void 0:n.activeElement;u.current=r,r!==document.body&&(u.current=t(r))}s.current&&F&&F(s.current),l.current=!0,c()}),[F]),B=e.useCallback((function(){l.current=!1,L&&L(s.current),c()}),[L]),V=e.useCallback((function(e){var t=u.current;if(t){var n=("function"==typeof t?t():t)||document.body,r="function"==typeof M?M(n):M;if(r){var o="object"==typeof r?r:void 0;u.current=null,e?Promise.resolve().then((function(){return n.focus(o)})):n.focus(o)}}}),[M]),$=e.useCallback((function(e){l.current&&Wx.useMedium(e)}),[]),W=Ux.useMedium,U=e.useCallback((function(e){s.current!==e&&(s.current=e,a(e))}),[]),H=oa(((r={})[Vx]=p&&"disabled",r[Bx]=k,r),A),q=!0!==m,Y=q&&"tail"!==m,X=rx([n,U]),G=e.useMemo((function(){return{observed:s,shards:O,enabled:!p,active:l.current}}),[p,l.current,O,i]);return e.createElement(e.Fragment,null,q&&[e.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:p?-1:0,style:$x}),C?e.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:p?-1:1,style:$x}):null],!p&&e.createElement(I,{id:D,sideCar:qx,observed:i,disabled:p,persistentFocus:g,crossFrame:y,autoFocus:w,whiteList:E,shards:O,onActivation:N,onDeactivation:B,returnFocus:V,focusOptions:z,noFocusGuards:m}),e.createElement(R,oa({ref:X},H,{className:S,onBlur:W,onFocus:$}),e.createElement(Yx.Provider,{value:G},d)),Y&&e.createElement("div",{"data-focus-guard":!0,tabIndex:p?-1:0,style:$x}))}));Gx.propTypes={};const Kx=Gx;function Qx(e,t){return Qx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Qx(e,t)}function Zx(e){return Zx="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},Zx(e)}function Jx(e){var t=function(e){if("object"!=Zx(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Zx(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Zx(t)?t:t+""}function ew(e,t,n){return(t=Jx(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tw=function(e){for(var t=Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t},nw=function(e){return Array.isArray(e)?e:[e]},rw=function(e){return Array.isArray(e)?e[0]:e},ow=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},iw=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},aw=function(e,t){var n=e.get(t);if(void 0!==n)return n;var r=function(e,t){return!e||iw(e)||!function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e,null);return!(!t||!t.getPropertyValue||"none"!==t.getPropertyValue("display")&&"hidden"!==t.getPropertyValue("visibility"))}(e)&&!function(e){return e.hasAttribute("inert")}(e)&&t(ow(e))}(t,aw.bind(void 0,e));return e.set(t,r),r},sw=function(e,t){var n=e.get(t);if(void 0!==n)return n;var r=function(e,t){return!(e&&!iw(e))||!!dw(e)&&t(ow(e))}(t,sw.bind(void 0,e));return e.set(t,r),r},lw=function(e){return e.dataset},uw=function(e){return"INPUT"===e.tagName},cw=function(e){return uw(e)&&"radio"===e.type},dw=function(e){var t=e.getAttribute("data-no-autofocus");return![!0,"true",""].includes(t)},fw=function(e){var t;return Boolean(e&&(null===(t=lw(e))||void 0===t?void 0:t.focusGuard))},pw=function(e){return!fw(e)},hw=function(e){return Boolean(e)},mw=function(e,t){var n=Math.max(0,e.tabIndex),r=Math.max(0,t.tabIndex),o=n-r,i=e.index-t.index;if(o){if(!n)return 1;if(!r)return-1}return o||i},vw=function(e,t,n){return tw(e).map((function(e,t){var r=function(e){return e.tabIndex<0&&!e.hasAttribute("tabindex")?0:e.tabIndex}(e);return{node:e,index:t,tabIndex:n&&-1===r?(e.dataset||{}).focusGuard?0:-1:r}})).filter((function(e){return!t||e.tabIndex>=0})).sort(mw)},gw=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"].join(","),bw="".concat(gw,", [data-focus-guard]"),yw=function(e,t){return tw((e.shadowRoot||e).children).reduce((function(e,n){return e.concat(n.matches(t?bw:gw)?[n]:[],yw(n))}),[])},xw=function(e,t){return e.reduce((function(e,n){var r,o=yw(n,t),i=(r=[]).concat.apply(r,o.map((function(e){return function(e,t){var n;return e instanceof HTMLIFrameElement&&(null===(n=e.contentDocument)||void 0===n?void 0:n.body)?xw([e.contentDocument.body],t):[e]}(e,t)})));return e.concat(i,n.parentNode?tw(n.parentNode.querySelectorAll(gw)).filter((function(e){return e===n})):[])}),[])},ww=function(e,t){return tw(e).filter((function(e){return aw(t,e)})).filter((function(e){return function(e){return!((uw(e)||function(e){return"BUTTON"===e.tagName}(e))&&("hidden"===e.type||e.disabled))}(e)}))},kw=function(e,t){return void 0===t&&(t=new Map),tw(e).filter((function(e){return sw(t,e)}))},Sw=function(e,t,n){return vw(ww(xw(e,n),t),!0,n)},Ew=function(e,t){return vw(ww(xw(e),t),!1)},Cw=function(e,t){return e.shadowRoot?Cw(e.shadowRoot,t):!(void 0===Object.getPrototypeOf(e).contains||!Object.getPrototypeOf(e).contains.call(e,t))||tw(e.children).some((function(e){var n;if(e instanceof HTMLIFrameElement){var r=null===(n=e.contentDocument)||void 0===n?void 0:n.body;return!!r&&Cw(r,t)}return Cw(e,t)}))},_w=function(e){if(void 0===e&&(e=document),e&&e.activeElement){var t=e.activeElement;return t.shadowRoot?_w(t.shadowRoot):t instanceof HTMLIFrameElement&&function(){try{return t.contentWindow.document}catch(e){return}}()?_w(t.contentWindow.document):t}},Ow=function(e){return e.parentNode?Ow(e.parentNode):e},Pw=function(e){return nw(e).filter(Boolean).reduce((function(e,t){var n=t.getAttribute(Bx);return e.push.apply(e,n?function(e){for(var t=new Set,n=e.length,r=0;r<n;r+=1)for(var o=r+1;o<n;o+=1){var i=e[r].compareDocumentPosition(e[o]);(i&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(o),(i&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter((function(e,n){return!t.has(n)}))}(tw(Ow(t).querySelectorAll("[".concat(Bx,'="').concat(n,'"]:not([').concat(Vx,'="disabled"])')))):[t]),e}),[])},Rw=function(e,t){return void 0===t&&(t=_w(rw(e).ownerDocument)),!(!t||t.dataset&&t.dataset.focusGuard)&&Pw(e).some((function(e){return Cw(e,t)||function(e,t){return Boolean(tw(e.querySelectorAll("iframe")).some((function(e){return function(e,t){return e===t}(e,t)})))}(e,t)}))},Tw=function(e,t){e&&("focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus())},Aw=function(e,t){return cw(e)&&e.name?function(e,t){return t.filter(cw).filter((function(t){return t.name===e.name})).filter((function(e){return e.checked}))[0]||e}(e,t):e},Iw=function(e){return e[0]&&e.length>1?Aw(e[0],e):e[0]},jw=function(e,t){return e.indexOf(Aw(t,e))},Mw="NEW_FOCUS",zw=function(e,t,n){var r,o=e.map((function(e){return e.node})),i=kw(o.filter((r=n,function(e){var t,n=null===(t=lw(e))||void 0===t?void 0:t.autofocus;return e.autofocus||void 0!==n&&"false"!==n||r.indexOf(e)>=0})));return i&&i.length?Iw(i):Iw(kw(t))},Fw=function(e,t){return void 0===t&&(t=[]),t.push(e),e.parentNode&&Fw(e.parentNode.host||e.parentNode,t),t},Lw=function(e,t){for(var n=Fw(e),r=Fw(t),o=0;o<n.length;o+=1){var i=n[o];if(r.indexOf(i)>=0)return i}return!1},Dw=function(e,t,n){var r=nw(e),o=nw(t),i=r[0],a=!1;return o.filter(Boolean).forEach((function(e){a=Lw(a||e,e)||a,n.filter(Boolean).forEach((function(e){var t=Lw(i,e);t&&(a=!a||Cw(t,a)?t:Lw(t,a))}))})),a},Nw=function(e,t){return e.reduce((function(e,n){return e.concat(function(e,t){return ww((n=e.querySelectorAll("[".concat("data-autofocus-inside","]")),tw(n).map((function(e){return xw([e])})).reduce((function(e,t){return e.concat(t)}),[])),t);var n}(n,t))}),[])},Bw=function(e,t){var n=_w(nw(e).length>0?document:rw(e).ownerDocument),r=Pw(e).filter(pw),o=Dw(n||e,e,r),i=new Map,a=Ew(r,i),s=a.filter((function(e){var t=e.node;return pw(t)}));if(s[0]){var l,u,c,d=Ew([o],i).map((function(e){return e.node})),f=(l=d,u=s,c=new Map,u.forEach((function(e){return c.set(e.node,e)})),l.map((function(e){return c.get(e)})).filter(hw)),p=f.map((function(e){return e.node})),h=f.filter((function(e){return e.tabIndex>=0})).map((function(e){return e.node})),m=function(e,t,n,r,o){var i=e.length,a=e[0],s=e[i-1],l=fw(r);if(!(r&&e.indexOf(r)>=0)){var u=void 0!==r?n.indexOf(r):-1,c=o?n.indexOf(o):u,d=o?e.indexOf(o):-1;if(-1===u)return-1!==d?d:Mw;if(-1===d)return Mw;var f,p,h=u-c,m=n.indexOf(a),v=n.indexOf(s),g=(f=n,p=new Set,f.forEach((function(e){return p.add(Aw(e,f))})),f.filter((function(e){return p.has(e)}))),b=(void 0!==r?g.indexOf(r):-1)-(o?g.indexOf(o):u);if(!h&&d>=0)return d;if(0===t.length)return d;var y=jw(e,t[0]),x=jw(e,t[t.length-1]);return u<=m&&l&&Math.abs(h)>1?x:u>=v&&l&&Math.abs(h)>1?y:h&&Math.abs(b)>1?d:u<=m?x:u>v?y:h?Math.abs(h)>1?d:(i+d+h)%i:void 0}}(p,h,d,n,t);if(m===Mw){var v=zw(a,h,Nw(r,i))||zw(a,p,Nw(r,i));return v?{node:v}:void console.warn("focus-lock: cannot find any node to move focus into")}return void 0===m?m:f[m]}},Vw=0,$w=!1,Ww=function(e,t,n){void 0===n&&(n={});var r=Bw(e,t);if(!$w&&r){if(Vw>2)return console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),$w=!0,void setTimeout((function(){$w=!1}),1);Vw++,Tw(r.node,n.focusOptions),Vw--}};function Uw(e){if(!e)return null;if("undefined"==typeof WeakRef)return function(){return e||null};var t=e?new WeakRef(e):null;return function(){return(null==t?void 0:t.deref())||null}}var Hw=function(e){var t=function(e){if(!e)return null;for(var t=[],n=e;n&&n!==document.body;)t.push({current:Uw(n),parent:Uw(n.parentElement),left:Uw(n.previousElementSibling),right:Uw(n.nextElementSibling)}),n=n.parentElement;return{element:Uw(e),stack:t,ownerDocument:e.ownerDocument}}(e);return function(){return function(e){var t,n,r,o,i;if(e)for(var a=e.stack,s=e.ownerDocument,l=new Map,u=0,c=a;u<c.length;u++){var d=c[u],f=null===(t=d.parent)||void 0===t?void 0:t.call(d);if(f&&s.contains(f)){for(var p=null===(n=d.left)||void 0===n?void 0:n.call(d),h=d.current(),m=f.contains(h)?h:void 0,v=null===(r=d.right)||void 0===r?void 0:r.call(d),g=Sw([f],l),b=null!==(i=null!==(o=null!=m?m:null==p?void 0:p.nextElementSibling)&&void 0!==o?o:v)&&void 0!==i?i:p;b;){for(var y=0,x=g;y<x.length;y++){var w=x[y];if(null==b?void 0:b.contains(w.node))return w.node}b=b.nextElementSibling}if(g.length)return g[0].node}}}(t)}},qw=function(e,t,n){void 0===t&&(t={});var r=function(e){return Object.assign({scope:document.body,cycle:!0,onlyTabbable:!0},e)}(t),o=function(e,t,n){if(!e||!t)return console.error("no element or scope given"),{};var r=nw(t);if(r.every((function(t){return!Cw(t,e)})))return console.error("Active element is not contained in the scope"),{};var o=n?Sw(r,new Map):Ew(r,new Map),i=o.findIndex((function(t){return t.node===e}));return-1!==i?{prev:o[i-1],next:o[i+1],first:o[0],last:o[o.length-1]}:void 0}(e,r.scope,r.onlyTabbable);if(o){var i=n(o,r.cycle);i&&Tw(i.node,r.focusOptions)}},Yw=function(e,t,n){var r,o,i,a,s=(o=e,i=null===(r=t.onlyTabbable)||void 0===r||r,{first:(a=i?Sw(nw(o),new Map):Ew(nw(o),new Map))[0],last:a[a.length-1]})[n];s&&Tw(s.node,t.focusOptions)};function Xw(e){setTimeout(e,1)}var Gw=function(e){return e&&"current"in e?e.current:e},Kw=function(){return document&&document.activeElement===document.body},Qw=null,Zw=null,Jw=function(){return null},ek=null,tk=!1,nk=!1,rk=function(){return!0};function ok(e,t,n,r){var o=null,i=e;do{var a=r[i];if(a.guard)a.node.dataset.focusAutoGuard&&(o=a);else{if(!a.lockItem)break;if(i!==e)return;o=null}}while((i+=n)!==t);o&&(o.node.tabIndex=0)}var ik=function e(t,n,r){return n&&(n.host===t&&(!n.activeElement||r.contains(n.activeElement))||n.parentNode&&e(t,n.parentNode,r))},ak=function(e){return Ew(e,new Map)},sk=function(){var e,t,n,r,o,i,a=!1;if(Qw){var s=Qw,l=s.observed,u=s.persistentFocus,c=s.autoFocus,d=s.shards,f=s.crossFrame,p=s.focusOptions,h=s.noFocusGuards,m=l||ek&&ek.portaledElement;if(Kw()&&Zw&&(!document.body.contains(Zw)||function(e){return!ak([e.parentNode]).some((function(t){return t.node===e}))}(Zw))){Zw=null;var v=Jw();v&&v.focus()}var g=document&&document.activeElement;if(m){var b=[m].concat(d.map(Gw).filter(Boolean));if(g&&!function(e){return(Qw.whiteList||rk)(e)}(g)||(u||function(){if(!(f?Boolean(tk):"meanwhile"===tk)||!h||!Zw||nk)return!1;var e=ak(b),t=e.findIndex((function(e){return e.node===Zw}));return 0===t||t===e.length-1}()||!(Kw()||function(e){void 0===e&&(e=document);var t=_w(e);return!!t&&tw(e.querySelectorAll("[".concat("data-no-focus-lock","]"))).some((function(e){return Cw(e,t)}))}())||!Zw&&c)&&(m&&!(Rw(b)||g&&function(e,t){return t.some((function(t){return ik(e,t,t)}))}(g,b)||(i=g,ek&&ek.portaledElement===i))&&(document&&!Zw&&g&&!c?(g.blur&&g.blur(),document.body.focus()):(a=Ww(b,Zw,{focusOptions:p}),ek={})),tk=!1,Zw=document&&document.activeElement,Jw=Hw(Zw)),document&&g!==document.activeElement&&document.querySelector("[data-focus-auto-guard]")){var y=document&&document.activeElement,x=(t=Pw(e=b).filter(pw),n=Dw(e,e,t),r=vw(xw([n],!0),!0,!0),o=xw(t,!1),r.map((function(e){var t=e.node;return{node:t,index:e.index,lockItem:o.indexOf(t)>=0,guard:fw(t)}}))),w=x.map((function(e){return e.node})).indexOf(y);w>-1&&(x.filter((function(e){var t=e.guard,n=e.node;return t&&n.dataset.focusAutoGuard})).forEach((function(e){return e.node.removeAttribute("tabIndex")})),ok(w,x.length,1,x),ok(w,-1,-1,x))}}}return a},lk=function(e){sk()&&e&&(e.stopPropagation(),e.preventDefault())},uk=function(){return Xw(sk)},ck=function(){nk=!0},dk=function(){nk=!1,tk="just",Xw((function(){tk="meanwhile"}))},fk={moveFocusInside:Ww,focusInside:Rw,focusNextElement:function(e,t){void 0===t&&(t={}),qw(e,t,(function(e,t){var n=e.next,r=e.first;return n||t&&r}))},focusPrevElement:function(e,t){void 0===t&&(t={}),qw(e,t,(function(e,t){var n=e.prev,r=e.last;return n||t&&r}))},focusFirstElement:function(e,t){void 0===t&&(t={}),Yw(e,t,"first")},focusLastElement:function(e,t){void 0===t&&(t={}),Yw(e,t,"last")},captureFocusRestore:Hw};Wx.assignSyncMedium((function(e){var t=e.target,n=e.currentTarget;n.contains(t)||(ek={observerNode:n,portaledElement:t})})),Ux.assignMedium(uk),Hx.assignMedium((function(e){return e(fk)}));const pk=(hk=function(e){return e.filter((function(e){return!e.disabled}))},mk=function(e){var t=e.slice(-1)[0];t&&!Qw&&(document.addEventListener("focusin",lk),document.addEventListener("focusout",uk),window.addEventListener("focus",ck),window.addEventListener("blur",dk));var n=Qw,r=n&&t&&t.id===n.id;Qw=t,n&&!r&&(n.onDeactivation(),e.filter((function(e){return e.id===n.id})).length||n.returnFocus(!t)),t?(Zw=null,r&&n.observed===t.observed||t.onActivation(fk),sk(),Xw(sk)):(document.removeEventListener("focusin",lk),document.removeEventListener("focusout",uk),window.removeEventListener("focus",ck),window.removeEventListener("blur",dk),Zw=null)},function(n){var r,o=[];function i(){r=hk(o.map((function(e){return e.props}))),mk(r)}var a=function(e){function a(){return e.apply(this,arguments)||this}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Qx(e,t)}(a,e),a.peek=function(){return r};var s=a.prototype;return s.componentDidMount=function(){o.push(this),i()},s.componentDidUpdate=function(){i()},s.componentWillUnmount=function(){var e=o.indexOf(this);o.splice(e,1),i()},s.render=function(){return t().createElement(n,this.props)},a}(e.PureComponent);return ew(a,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(n)+")"),a})((function(){return null}));var hk,mk,vk=e.forwardRef((function(t,n){return e.createElement(Kx,oa({sideCar:pk,ref:n},t))})),gk=Kx.propTypes||{};gk.sideCar,Nx(gk,["sideCar"]),vk.propTypes={};const bk=vk,yk=e=>e.hasAttribute("tabindex");function xk(e){if(!ti(e)||ni(e)||function(e){return!0===Boolean(e.getAttribute("disabled"))||!0===Boolean(e.getAttribute("aria-disabled"))}(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const n={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in n?n[t]():!!function(e){const t=e.getAttribute("contenteditable");return"false"!==t&&null!=t}(e)||yk(e)}const wk=["input:not(:disabled):not([disabled])","select:not(:disabled):not([disabled])","textarea:not(:disabled):not([disabled])","embed","iframe","object","a[href]","area[href]","button:not(:disabled):not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"].join();const kk=bk.default??bk,Sk=t=>{const{initialFocusRef:n,finalFocusRef:r,contentRef:o,restoreFocus:i,children:a,isDisabled:s,autoFocus:l,persistentFocus:u,lockFocusAcrossFrames:c}=t,d=(0,e.useCallback)((()=>{n?.current?n.current.focus():o?.current&&0===function(e){const t=Array.from(e.querySelectorAll(wk));return t.unshift(e),t.filter((e=>xk(e)&&(e=>e.offsetWidth>0&&e.offsetHeight>0)(e)))}(o.current).length&&requestAnimationFrame((()=>{o.current?.focus()}))}),[n,o]),f=(0,e.useCallback)((()=>{r?.current?.focus()}),[r]),p=i&&!r;return(0,ei.jsx)(kk,{crossFrame:c,persistentFocus:u,autoFocus:l,disabled:s,onActivation:d,onDeactivation:f,returnFocus:p,children:a})};function Ek(t){const{autoFocus:n,trapFocus:r,dialogRef:o,initialFocusRef:i,blockScrollOnMount:a,allowPinchZoom:s,finalFocusRef:l,returnFocusOnClose:u,preserveScrollBarGap:c,lockFocusAcrossFrames:d,isOpen:f}=Vy(),[p,h]=mu();(0,e.useEffect)((()=>{!p&&h&&setTimeout(h)}),[p,h]);const m=Fy(o,f);return(0,ei.jsx)(Sk,{autoFocus:n,isDisabled:!r,initialFocusRef:i,finalFocusRef:l,restoreFocus:u,contentRef:o,lockFocusAcrossFrames:d,children:(0,ei.jsx)(Dx,{removeScrollBar:!c,allowPinchZoom:s,enabled:1===m&&a,forwardProps:!0,children:t.children})})}Sk.displayName="FocusLock";const Ck={initial:({offsetX:e,offsetY:t,transition:n,transitionEnd:r,delay:o})=>({opacity:0,x:e,y:t,transition:n?.exit??qy(Uy.exit,o),transitionEnd:r?.exit}),enter:({transition:e,transitionEnd:t,delay:n})=>({opacity:1,x:0,y:0,transition:e?.enter??Hy(Uy.enter,n),transitionEnd:t?.enter}),exit:({offsetY:e,offsetX:t,transition:n,transitionEnd:r,reverse:o,delay:i})=>{const a={x:t,y:e};return{opacity:0,transition:n?.exit??qy(Uy.exit,i),...o?{...a,transitionEnd:r?.exit}:{transitionEnd:{...a,...r?.exit}}}}},_k={initial:"initial",animate:"enter",exit:"exit",variants:Ck},Ok=(0,e.forwardRef)((function(e,t){const{unmountOnExit:n,in:r,reverse:o=!0,className:i,offsetX:a=0,offsetY:s=8,transition:l,transitionEnd:u,delay:c,animatePresenceProps:d,...f}=e,p=!n||r&&n,h=r||n?"enter":"exit",m={offsetX:a,offsetY:s,reverse:o,transition:l,transitionEnd:u,delay:c};return(0,ei.jsx)(fu,{...d,custom:m,children:p&&(0,ei.jsx)(dv.div,{ref:t,className:zv("chakra-offset-slide",i),custom:m,..._k,animate:h,...f})})}));Ok.displayName="SlideFade";const Pk={exit:({reverse:e,initialScale:t,transition:n,transitionEnd:r,delay:o})=>({opacity:0,...e?{scale:t,transitionEnd:r?.exit}:{transitionEnd:{scale:t,...r?.exit}},transition:n?.exit??qy(Uy.exit,o)}),enter:({transitionEnd:e,transition:t,delay:n})=>({opacity:1,scale:1,transition:t?.enter??Hy(Uy.enter,n),transitionEnd:e?.enter})},Rk={initial:"exit",animate:"enter",exit:"exit",variants:Pk},Tk=(0,e.forwardRef)((function(e,t){const{unmountOnExit:n,in:r,reverse:o=!0,initialScale:i=.95,className:a,transition:s,transitionEnd:l,delay:u,animatePresenceProps:c,...d}=e,f=!n||r&&n,p=r||n?"enter":"exit",h={initialScale:i,reverse:o,transition:s,transitionEnd:l,delay:u};return(0,ei.jsx)(fu,{...c,custom:h,children:f&&(0,ei.jsx)(dv.div,{ref:t,className:zv("chakra-offset-slide",a),...Rk,animate:p,custom:h,...d})})}));Tk.displayName="ScaleFade";const Ak={slideInBottom:{..._k,custom:{offsetY:16,reverse:!0}},slideInRight:{..._k,custom:{offsetX:16,reverse:!0}},slideInTop:{..._k,custom:{offsetY:-16,reverse:!0}},slideInLeft:{..._k,custom:{offsetX:-16,reverse:!0}},scale:{...Rk,custom:{initialScale:.95,reverse:!0}},none:{}},Ik=Tv(dv.section),jk=e=>Ak[e||"none"],Mk=(0,e.forwardRef)(((e,t)=>{const{preset:n,motionProps:r=jk(n),...o}=e;return(0,ei.jsx)(Ik,{ref:t,...r,...o})}));Mk.displayName="ModalTransition";const zk=Fv(((e,t)=>{const{className:n,children:r,containerProps:o,motionProps:i,...a}=e,{getDialogProps:s,getDialogContainerProps:l}=Vy(),u=s(a,t),c=l(o),d=zv("chakra-modal__content",n),f=Ny(),p={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...f.dialog},h={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...f.dialogContainer},{motionPreset:m}=Vy();return(0,ei.jsx)(Ek,{children:(0,ei.jsx)(Tv.div,{...c,className:"chakra-modal__content-container",tabIndex:-1,__css:h,children:(0,ei.jsx)(Mk,{preset:m,motionProps:i,className:d,...u,__css:p,children:r})})})}));zk.displayName="ModalContent";const Fk=Fv(((t,n)=>{const{className:r,...o}=t,{headerId:i,setHeaderMounted:a}=Vy();(0,e.useEffect)((()=>(a(!0),()=>a(!1))),[a]);const s=zv("chakra-modal__header",r),l={flex:0,...Ny().header};return(0,ei.jsx)(Tv.header,{ref:n,className:s,id:i,...o,__css:l})}));Fk.displayName="ModalHeader";const Lk=Fv(((t,n)=>{const{className:r,...o}=t,{bodyId:i,setBodyMounted:a}=Vy();(0,e.useEffect)((()=>(a(!0),()=>a(!1))),[a]);const s=zv("chakra-modal__body",r),l=Ny();return(0,ei.jsx)(Tv.div,{ref:n,className:s,id:i,...o,__css:l.body})}));Lk.displayName="ModalBody";const Dk=Fv(((e,t)=>{const{className:n,...r}=e,o=zv("chakra-modal__footer",n),i={display:"flex",alignItems:"center",justifyContent:"flex-end",...Ny().footer};return(0,ei.jsx)(Tv.footer,{ref:t,...r,__css:i,className:o})}));Dk.displayName="ModalFooter";var Nk=(0,e.createContext)(),Bk=function(n){var r=n.reducer,o=n.initialState,i=n.children;return t().createElement(Nk.Provider,{value:(0,e.useReducer)(r,o)},i)},Vk=function(){return(0,e.useContext)(Nk)};function $k(e){return $k="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},$k(e)}function Wk(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 Uk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wk(Object(n),!0).forEach((function(t){Hk(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wk(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Hk(e,t,n){return(t=function(e){var t=function(e){if("object"!=$k(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=$k(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==$k(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var qk="GET_SETTINGS";function Yk(e){return Yk="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},Yk(e)}function Xk(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 Gk(e,t,n){return(t=function(e){var t=function(e){if("object"!=Yk(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Yk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Yk(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kk(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,u=!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(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Qk(e,t);var n={}.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)?Qk(e,t):void 0}}(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.")}()}function Qk(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Zk=function(n){var r=Kk(Vk(),2),o=r[0],i=o.settings,a=(o.isPro,r[1]),s=Kk((0,e.useState)(n),2),l=s[0],u=s[1],c=function(e){var t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xk(Object(n),!0).forEach((function(t){Gk(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xk(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},i);t.user_registration_allow_usage_tracking="allow"===e?"yes":"no",a({type:qk,settings:t})};return t().createElement($y,{isOpen:l,size:"xl",isCentered:!0},t().createElement(Qy,null),t().createElement(zk,null,t().createElement(Fk,null,"Contribute to the enhancement"),t().createElement(Lk,null,t().createElement(Sg,{fontSize:"16px"},t().createElement(Sg,{fontSize:"16px"},wb("Help us improve the plugin's features by sharing","user-registration")," ",t().createElement(Mg,{href:"https://docs.wpuserregistration.com/docs/miscellaneous-settings/#1-toc-title",isExternal:!0,color:"#475BB2"},wb("non-sensitive plugin data","user-registration")," "),wb("with us.","user-registration")))),t().createElement(Dk,null,t().createElement(Ig,{variant:"ghost",onClick:function(){c("disallow"),u(!1)}},"No Thanks"),t().createElement(Ig,{colorScheme:"blue",mr:3,onClick:function(){c("allow"),u(!1)}},"Allow"))))};function Jk(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const eS=function(){var n=function(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,u=!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(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Jk(e,t);var n={}.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)?Jk(e,t):void 0}}(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.")}()}((0,e.useState)(!1),2),r=n[0],o=(n[1],"undefined"!=typeof _UR_WIZARD_&&_UR_WIZARD_),i=o.defaultFormId,a=o.registrationPageSlug,s=o.myAccountPageSlug,l=function(e,n){return t().createElement(zg,{bg:"#F8F9FC",w:"100%",p:4,color:"#383838",mt:3,border:"1px solid #DEE0E9",borderRadius:"md"},t().createElement(wg,{justify:"space-between",align:"center"},t().createElement(Oy,{isChecked:!0,isReadOnly:!0},t().createElement(Sg,{fontSize:"15px",fontWeight:600,color:"#383838"},wb("registration_page"===n?"Registration Page":"My Account Page","user-registration")),t().createElement(Sg,{fontSize:"13px",color:"#6B6B6B"},"/"+e)),t().createElement(Sg,{fontSize:"12px",color:"#475BB2"},wb("Installed","user-registration"))))};return t().createElement(e.Fragment,null,r?"":t().createElement(Zk,{openPopup:!0}),t().createElement(zg,{bg:"#F8F9FC",w:"100%",p:4,color:"#383838",mt:3,borderRadius:"md"},t().createElement(wg,{justify:"space-between",align:"center"},t().createElement(Oy,{isChecked:!0,isReadOnly:!0},t().createElement(Sg,{fontSize:"15px",fontWeight:600,color:"#383838"},wb("Default Registration Form","user-registration")),i&&t().createElement(Sg,{fontSize:"13px",color:"#6B6B6B"},"Form id : ",i)),t().createElement(wg,{align:"center"},t().createElement(Sg,{fontSize:"12px",color:"#475BB2"},wb("Installed","user-registration"))))),l(a,"registration_page"),l(s,"my_account_page"))},tS=e=>(0,ei.jsx)(Tv.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});tS.displayName="StackItem";const nS=Object.freeze(["base","sm","md","lg","xl","2xl"]),rS=Fv(((t,n)=>{const{isInline:r,direction:o,align:i,justify:a,spacing:s="0.5rem",wrap:l,children:u,divider:c,className:d,shouldWrapChildren:f,...p}=t,h=r?"row":o??"column",m=(0,e.useMemo)((()=>function(e){const{spacing:t,direction:n}=e,r={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":(o=n,i=e=>r[e],Array.isArray(o)?o.map((e=>null===e?null:i(e))):xn(o)?Object.keys(o).reduce(((e,t)=>(e[t]=i(o[t]),e)),{}):null!=o?i(o):null)};var o,i}({spacing:s,direction:h})),[s,h]),v=!!c,g=!f&&!v,b=(0,e.useMemo)((()=>{const t=function(t){return e.Children.toArray(t).filter((t=>(0,e.isValidElement)(t)))}(u);return g?t:t.map(((n,r)=>{const o=void 0!==n.key?n.key:r,i=r+1===t.length,a=f?(0,ei.jsx)(tS,{children:n},o):n;if(!v)return a;const s=(0,e.cloneElement)(c,{__css:m}),l=i?null:s;return(0,ei.jsxs)(e.Fragment,{children:[a,l]},o)}))}),[c,m,v,g,f,u]),y=zv("chakra-stack",d);return(0,ei.jsx)(Tv.div,{ref:n,display:"flex",alignItems:i,justifyContent:a,flexDirection:h,flexWrap:l,gap:v?void 0:s,className:y,...p,children:b})}));function oS(t={}){const{onChange:n,value:r,defaultValue:o,name:i,isDisabled:a,isFocusable:s,isNative:l,...u}=t,[c,d]=(0,e.useState)(o||""),f=void 0!==r,p=f?r:c,h=(0,e.useRef)(null),m=(0,e.useCallback)((()=>{const e=h.current;if(!e)return;let t="input:not(:disabled):checked";const n=e.querySelector(t);if(n)return void n.focus();t="input:not(:disabled)";const r=e.querySelector(t);r?.focus()}),[]),v=(0,e.useId)(),g=i||`radio-${v}`,b=(0,e.useCallback)((e=>{const t=function(e){return e&&xn(e)&&xn(e.target)}(e)?e.target.value:e;f||d(t),n?.(String(t))}),[n,f]);return{getRootProps:(0,e.useCallback)(((e={},t=null)=>({...e,ref:Eg(t,h),role:"radiogroup"})),[]),getRadioProps:(0,e.useCallback)(((e={},t=null)=>{const n=l?"checked":"isChecked";return{...e,ref:t,name:g,[n]:null!=p?e.value===p:void 0,onChange(e){b(e)},"data-radiogroup":!0}}),[l,g,b,p]),name:g,ref:h,focus:m,setValue:d,value:p,onChange:b,isDisabled:a,isFocusable:s,htmlProps:u}}rS.displayName="Stack";const[iS,aS]=xl({name:"RadioGroupContext",strict:!1}),sS=Fv(((t,n)=>{const{colorScheme:r,size:o,variant:i,children:a,className:s,isDisabled:l,isFocusable:u,...c}=t,{value:d,onChange:f,getRootProps:p,name:h,htmlProps:m}=oS(c),v=(0,e.useMemo)((()=>({name:h,size:o,onChange:f,colorScheme:r,value:d,variant:i,isDisabled:l,isFocusable:u})),[h,o,f,r,d,i,l,u]);return(0,ei.jsx)(iS,{value:v,children:(0,ei.jsx)(Tv.div,{...p(m,n),className:zv("chakra-radio-group",s),children:a})})}));function lS(e){e.preventDefault(),e.stopPropagation()}sS.displayName="RadioGroup";const uS=Fv((function(e,t){const{htmlWidth:n,htmlHeight:r,alt:o,...i}=e;return(0,ei.jsx)("img",{width:n,height:r,ref:t,alt:o,...i})}));uS.displayName="NativeImage";const cS=Fv((function(t,n){const{fallbackSrc:r,fallback:o,src:i,srcSet:a,align:s,fit:l,loading:u,ignoreFallback:c,crossOrigin:d,fallbackStrategy:f="beforeLoadOrError",referrerPolicy:p,...h}=t,m=null!=u||c||!(void 0!==r||void 0!==o),v=function(t){const{loading:n,src:r,srcSet:o,onLoad:i,onError:a,crossOrigin:s,sizes:l,ignoreFallback:u}=t,[c,d]=(0,e.useState)("pending");(0,e.useEffect)((()=>{d(r?"loading":"pending")}),[r]);const f=(0,e.useRef)(),p=(0,e.useCallback)((()=>{if(!r)return;h();const e=new Image;e.src=r,s&&(e.crossOrigin=s),o&&(e.srcset=o),l&&(e.sizes=l),n&&(e.loading=n),e.onload=e=>{h(),d("loaded"),i?.(e)},e.onerror=e=>{h(),d("failed"),a?.(e)},f.current=e}),[r,s,o,l,i,a,n]),h=()=>{f.current&&(f.current.onload=null,f.current.onerror=null,f.current=null)};return Tl((()=>{if(!u)return"loading"===c&&p(),()=>{h()}}),[c,p,u]),u?"loaded":c}({...t,crossOrigin:d,ignoreFallback:m}),g=((e,t)=>"loaded"!==e&&"beforeLoadOrError"===t||"failed"===e&&"onError"===t)(v,f),b={ref:n,objectFit:l,objectPosition:s,...m?h:jv(h,["onError","onLoad"])};return g?o||(0,ei.jsx)(Tv.img,{as:uS,className:"chakra-image__placeholder",src:r,...b}):(0,ei.jsx)(Tv.img,{as:uS,src:i,srcSet:a,crossOrigin:d,loading:u,referrerPolicy:p,className:"chakra-image",...b})}));cS.displayName="Image";const dS=Fv((function(t,n){const r=$v("Switch",t),{spacing:o="0.5rem",children:i,...a}=Mv(t),{getIndicatorProps:s,getInputProps:l,getCheckboxProps:u,getRootProps:c,getLabelProps:d}=xy(a),f=(0,e.useMemo)((()=>({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0,...r.container})),[r.container]),p=(0,e.useMemo)((()=>({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer",...r.track})),[r.track]),h=(0,e.useMemo)((()=>({userSelect:"none",marginStart:o,...r.label})),[o,r.label]);return(0,ei.jsxs)(Tv.label,{...c(),className:zv("chakra-switch",t.className),__css:f,children:[(0,ei.jsx)("input",{className:"chakra-switch__input",...l({},n)}),(0,ei.jsx)(Tv.span,{...u(),className:"chakra-switch__track",__css:p,children:(0,ei.jsx)(Tv.span,{__css:r.thumb,className:"chakra-switch__thumb",...s()})}),i&&(0,ei.jsx)(Tv.span,{className:"chakra-switch__label",...d(),__css:h,children:i})]})}));dS.displayName="Switch";const fS=Fv(((e,t)=>(0,ei.jsx)(rS,{align:"center",...e,direction:"row",ref:t})));fS.displayName="HStack";const pS=Fv((function(e,t){const n=Vv("FormLabel",e),r=Mv(e),{className:o,children:i,requiredIndicator:a=(0,ei.jsx)(hS,{}),optionalIndicator:s=null,...l}=r,u=my(),c=u?.getLabelProps(l,t)??{ref:t,...l};return(0,ei.jsxs)(Tv.label,{...c,className:zv("chakra-form__label",r.className),__css:{display:"block",textAlign:"start",...n},children:[i,u?.isRequired?a:s]})}));pS.displayName="FormLabel";const hS=Fv((function(e,t){const n=my(),r=py();if(!n?.isRequired)return null;const o=zv("chakra-form__required-indicator",e.className);return(0,ei.jsx)(Tv.span,{...n?.getRequiredIndicatorProps(e,t),__css:r.requiredIndicator,className:o})}));hS.displayName="RequiredIndicator";const mS={exit:{scale:.85,opacity:0,transition:{opacity:{duration:.15,easings:"easeInOut"},scale:{duration:.2,easings:"easeInOut"}}},enter:{scale:1,opacity:1,transition:{opacity:{easings:"easeOut",duration:.2},scale:{duration:.2,ease:[.175,.885,.4,1.1]}}}};function vS(t={}){const{onClose:n,onOpen:r,isOpen:o,id:i}=t,a=hu(r),s=hu(n),[l,u]=(0,e.useState)(t.defaultIsOpen||!1),c=void 0!==o?o:l,d=void 0!==o,f=(0,e.useId)(),p=i??`disclosure-${f}`,h=(0,e.useCallback)((()=>{d||u(!1),s?.()}),[d,s]),m=(0,e.useCallback)((()=>{d||u(!0),a?.()}),[d,a]),v=(0,e.useCallback)((()=>{c?h():m()}),[c,m,h]);return{isOpen:c,onOpen:m,onClose:h,onToggle:v,isControlled:d,getButtonProps:function(e={}){return{...e,"aria-expanded":c,"aria-controls":p,onClick(t){e.onClick?.(t),v()}}},getDisclosureProps:function(e={}){return{...e,hidden:!c,id:p}}}}function gS(t,n,r,o){const i=hu(r);return(0,e.useEffect)((()=>{const e="function"==typeof t?t():t??document;if(r&&e)return e.addEventListener(n,i,o),()=>{e.removeEventListener(n,i,o)}}),[n,t,o,i,r]),()=>{const e="function"==typeof t?t():t??document;e?.removeEventListener(n,i,o)}}function bS(e){return["html","body","#document"].includes(e.localName)?e.ownerDocument.body:ti(e)&&function(e){const t=e.ownerDocument.defaultView||window,{overflow:n,overflowX:r,overflowY:o}=t.getComputedStyle(e);return/auto|scroll|overlay|hidden/.test(n+o+r)}(e)?e:bS(function(e){return"html"===e.localName?e:e.assignedSlot||e.parentElement||e.ownerDocument.documentElement}(e))}function yS(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function xS(e){return e instanceof yS(e).Element||e instanceof Element}function wS(e){return e instanceof yS(e).HTMLElement||e instanceof HTMLElement}function kS(e){return"undefined"!=typeof ShadowRoot&&(e instanceof yS(e).ShadowRoot||e instanceof ShadowRoot)}var SS=Math.max,ES=Math.min,CS=Math.round;function _S(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function OS(){return!/^((?!chrome|android).)*safari/i.test(_S())}function PS(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&wS(e)&&(o=e.offsetWidth>0&&CS(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&CS(r.height)/e.offsetHeight||1);var a=(xS(e)?yS(e):window).visualViewport,s=!OS()&&n,l=(r.left+(s&&a?a.offsetLeft:0))/o,u=(r.top+(s&&a?a.offsetTop:0))/i,c=r.width/o,d=r.height/i;return{width:c,height:d,top:u,right:l+c,bottom:u+d,left:l,x:l,y:u}}function RS(e){var t=yS(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function TS(e){return e?(e.nodeName||"").toLowerCase():null}function AS(e){return((xS(e)?e.ownerDocument:e.document)||window.document).documentElement}function IS(e){return PS(AS(e)).left+RS(e).scrollLeft}function jS(e){return yS(e).getComputedStyle(e)}function MS(e){var t=jS(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function zS(e,t,n){void 0===n&&(n=!1);var r=wS(t),o=wS(t)&&function(e){var t=e.getBoundingClientRect(),n=CS(t.width)/e.offsetWidth||1,r=CS(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),i=AS(t),a=PS(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==TS(t)||MS(i))&&(s=function(e){return e!==yS(e)&&wS(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:RS(e);var t}(t)),wS(t)?((l=PS(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=IS(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function FS(e){var t=PS(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function LS(e){return"html"===TS(e)?e:e.assignedSlot||e.parentNode||(kS(e)?e.host:null)||AS(e)}function DS(e){return["html","body","#document"].indexOf(TS(e))>=0?e.ownerDocument.body:wS(e)&&MS(e)?e:DS(LS(e))}function NS(e,t){var n;void 0===t&&(t=[]);var r=DS(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=yS(r),a=o?[i].concat(i.visualViewport||[],MS(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(NS(LS(a)))}function BS(e){return["table","td","th"].indexOf(TS(e))>=0}function VS(e){return wS(e)&&"fixed"!==jS(e).position?e.offsetParent:null}function $S(e){for(var t=yS(e),n=VS(e);n&&BS(n)&&"static"===jS(n).position;)n=VS(n);return n&&("html"===TS(n)||"body"===TS(n)&&"static"===jS(n).position)?t:n||function(e){var t=/firefox/i.test(_S());if(/Trident/i.test(_S())&&wS(e)&&"fixed"===jS(e).position)return null;var n=LS(e);for(kS(n)&&(n=n.host);wS(n)&&["html","body"].indexOf(TS(n))<0;){var r=jS(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var WS="top",US="bottom",HS="right",qS="left",YS="auto",XS=[WS,US,HS,qS],GS="start",KS="end",QS="viewport",ZS="popper",JS=XS.reduce((function(e,t){return e.concat([t+"-"+GS,t+"-"+KS])}),[]),eE=[].concat(XS,[YS]).reduce((function(e,t){return e.concat([t,t+"-"+GS,t+"-"+KS])}),[]),tE=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function nE(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var rE={placement:"bottom",modifiers:[],strategy:"absolute"};function oE(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function iE(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?rE:o;return function(e,t,n){void 0===n&&(n=i);var o,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},rE,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],u=!1,c={state:s,setOptions:function(n){var o="function"==typeof n?n(s.options):n;d(),s.options=Object.assign({},i,s.options,o),s.scrollParents={reference:xS(e)?NS(e):e.contextElement?NS(e.contextElement):[],popper:NS(t)};var a,u,f=function(e){var t=nE(e);return tE.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((a=[].concat(r,s.options.modifiers),u=a.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(u).map((function(e){return u[e]}))));return s.orderedModifiers=f.filter((function(e){return e.enabled})),s.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:s,name:t,instance:c,options:r});l.push(i||function(){})}})),c.update()},forceUpdate:function(){if(!u){var e=s.elements,t=e.reference,n=e.popper;if(oE(t,n)){s.rects={reference:zS(t,$S(n),"fixed"===s.options.strategy),popper:FS(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<s.orderedModifiers.length;r++)if(!0!==s.reset){var o=s.orderedModifiers[r],i=o.fn,a=o.options,l=void 0===a?{}:a,d=o.name;"function"==typeof i&&(s=i({state:s,options:l,name:d,instance:c})||s)}else s.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){c.forceUpdate(),e(s)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(o())}))}))),a}),destroy:function(){d(),u=!0}};if(!oE(e,t))return c;function d(){l.forEach((function(e){return e()})),l=[]}return c.setOptions(n).then((function(e){!u&&n.onFirstUpdate&&n.onFirstUpdate(e)})),c}}var aE={passive:!0};const sE={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,s=void 0===a||a,l=yS(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach((function(e){e.addEventListener("scroll",n.update,aE)})),s&&l.addEventListener("resize",n.update,aE),function(){i&&u.forEach((function(e){e.removeEventListener("scroll",n.update,aE)})),s&&l.removeEventListener("resize",n.update,aE)}},data:{}};function lE(e){return e.split("-")[0]}function uE(e){return e.split("-")[1]}function cE(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function dE(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?lE(o):null,a=o?uE(o):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(i){case WS:t={x:s,y:n.y-r.height};break;case US:t={x:s,y:n.y+n.height};break;case HS:t={x:n.x+n.width,y:l};break;case qS:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var u=i?cE(i):null;if(null!=u){var c="y"===u?"height":"width";switch(a){case GS:t[u]=t[u]-(n[c]/2-r[c]/2);break;case KS:t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}const fE={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=dE({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var pE={top:"auto",right:"auto",bottom:"auto",left:"auto"};function hE(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=a.x,p=void 0===f?0:f,h=a.y,m=void 0===h?0:h,v="function"==typeof c?c({x:p,y:m}):{x:p,y:m};p=v.x,m=v.y;var g=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),y=qS,x=WS,w=window;if(u){var k=$S(n),S="clientHeight",E="clientWidth";k===yS(n)&&"static"!==jS(k=AS(n)).position&&"absolute"===s&&(S="scrollHeight",E="scrollWidth"),(o===WS||(o===qS||o===HS)&&i===KS)&&(x=US,m-=(d&&k===w&&w.visualViewport?w.visualViewport.height:k[S])-r.height,m*=l?1:-1),o!==qS&&(o!==WS&&o!==US||i!==KS)||(y=HS,p-=(d&&k===w&&w.visualViewport?w.visualViewport.width:k[E])-r.width,p*=l?1:-1)}var C,_=Object.assign({position:s},u&&pE),O=!0===c?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:CS(n*o)/o||0,y:CS(r*o)/o||0}}({x:p,y:m},yS(n)):{x:p,y:m};return p=O.x,m=O.y,l?Object.assign({},_,((C={})[x]=b?"0":"",C[y]=g?"0":"",C.transform=(w.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",C)):Object.assign({},_,((t={})[x]=b?m+"px":"",t[y]=g?p+"px":"",t.transform="",t))}const mE={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,l=void 0===s||s,u={placement:lE(t.placement),variation:uE(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,hE(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,hE(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},vE={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];wS(o)&&TS(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});wS(r)&&TS(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},gE={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=eE.reduce((function(e,n){return e[n]=function(e,t,n){var r=lE(e),o=[qS,WS].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[qS,HS].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e}),{}),s=a[t.placement],l=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}};var bE={left:"right",right:"left",bottom:"top",top:"bottom"};function yE(e){return e.replace(/left|right|bottom|top/g,(function(e){return bE[e]}))}var xE={start:"end",end:"start"};function wE(e){return e.replace(/start|end/g,(function(e){return xE[e]}))}function kE(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&kS(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function SE(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function EE(e,t,n){return t===QS?SE(function(e,t){var n=yS(e),r=AS(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var u=OS();(u||!u&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+IS(e),y:l}}(e,n)):xS(t)?function(e,t){var n=PS(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):SE(function(e){var t,n=AS(e),r=RS(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=SS(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=SS(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+IS(e),l=-r.scrollTop;return"rtl"===jS(o||n).direction&&(s+=SS(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(AS(e)))}function CE(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function _E(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function OE(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,s=n.boundary,l=void 0===s?"clippingParents":s,u=n.rootBoundary,c=void 0===u?QS:u,d=n.elementContext,f=void 0===d?ZS:d,p=n.altBoundary,h=void 0!==p&&p,m=n.padding,v=void 0===m?0:m,g=CE("number"!=typeof v?v:_E(v,XS)),b=f===ZS?"reference":ZS,y=e.rects.popper,x=e.elements[h?b:f],w=function(e,t,n,r){var o="clippingParents"===t?function(e){var t=NS(LS(e)),n=["absolute","fixed"].indexOf(jS(e).position)>=0&&wS(e)?$S(e):e;return xS(n)?t.filter((function(e){return xS(e)&&kE(e,n)&&"body"!==TS(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce((function(t,n){var o=EE(e,n,r);return t.top=SS(o.top,t.top),t.right=ES(o.right,t.right),t.bottom=ES(o.bottom,t.bottom),t.left=SS(o.left,t.left),t}),EE(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}(xS(x)?x:x.contextElement||AS(e.elements.popper),l,c,a),k=PS(e.elements.reference),S=dE({reference:k,element:y,strategy:"absolute",placement:o}),E=SE(Object.assign({},y,S)),C=f===ZS?E:k,_={top:w.top-C.top+g.top,bottom:C.bottom-w.bottom+g.bottom,left:w.left-C.left+g.left,right:C.right-w.right+g.right},O=e.modifiersData.offset;if(f===ZS&&O){var P=O[o];Object.keys(_).forEach((function(e){var t=[HS,US].indexOf(e)>=0?1:-1,n=[WS,US].indexOf(e)>=0?"y":"x";_[e]+=P[n]*t}))}return _}const PE={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,h=void 0===p||p,m=n.allowedAutoPlacements,v=t.options.placement,g=lE(v),b=l||(g!==v&&h?function(e){if(lE(e)===YS)return[];var t=yE(e);return[wE(e),t,wE(t)]}(v):[yE(v)]),y=[v].concat(b).reduce((function(e,n){return e.concat(lE(n)===YS?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=void 0===l?eE:l,c=uE(r),d=c?s?JS:JS.filter((function(e){return uE(e)===c})):XS,f=d.filter((function(e){return u.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,n){return t[n]=OE(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[lE(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),x=t.rects.reference,w=t.rects.popper,k=new Map,S=!0,E=y[0],C=0;C<y.length;C++){var _=y[C],O=lE(_),P=uE(_)===GS,R=[WS,US].indexOf(O)>=0,T=R?"width":"height",A=OE(t,{placement:_,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),I=R?P?HS:qS:P?US:WS;x[T]>w[T]&&(I=yE(I));var j=yE(I),M=[];if(i&&M.push(A[O]<=0),s&&M.push(A[I]<=0,A[j]<=0),M.every((function(e){return e}))){E=_,S=!1;break}k.set(_,M)}if(S)for(var z=function(e){var t=y.find((function(t){var n=k.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return E=t,"break"},F=h?3:1;F>0&&"break"!==z(F);F--);t.placement!==E&&(t.modifiersData[r]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function RE(e,t,n){return SS(e,ES(t,n))}const TE={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,f=n.tether,p=void 0===f||f,h=n.tetherOffset,m=void 0===h?0:h,v=OE(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),g=lE(t.placement),b=uE(t.placement),y=!b,x=cE(g),w="x"===x?"y":"x",k=t.modifiersData.popperOffsets,S=t.rects.reference,E=t.rects.popper,C="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,_="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),O=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,P={x:0,y:0};if(k){if(i){var R,T="y"===x?WS:qS,A="y"===x?US:HS,I="y"===x?"height":"width",j=k[x],M=j+v[T],z=j-v[A],F=p?-E[I]/2:0,L=b===GS?S[I]:E[I],D=b===GS?-E[I]:-S[I],N=t.elements.arrow,B=p&&N?FS(N):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},$=V[T],W=V[A],U=RE(0,S[I],B[I]),H=y?S[I]/2-F-U-$-_.mainAxis:L-U-$-_.mainAxis,q=y?-S[I]/2+F+U+W+_.mainAxis:D+U+W+_.mainAxis,Y=t.elements.arrow&&$S(t.elements.arrow),X=Y?"y"===x?Y.clientTop||0:Y.clientLeft||0:0,G=null!=(R=null==O?void 0:O[x])?R:0,K=j+q-G,Q=RE(p?ES(M,j+H-G-X):M,j,p?SS(z,K):z);k[x]=Q,P[x]=Q-j}if(s){var Z,J="x"===x?WS:qS,ee="x"===x?US:HS,te=k[w],ne="y"===w?"height":"width",re=te+v[J],oe=te-v[ee],ie=-1!==[WS,qS].indexOf(g),ae=null!=(Z=null==O?void 0:O[w])?Z:0,se=ie?re:te-S[ne]-E[ne]-ae+_.altAxis,le=ie?te+S[ne]+E[ne]-ae-_.altAxis:oe,ue=p&&ie?function(e,t,n){var r=RE(e,t,n);return r>n?n:r}(se,te,le):RE(p?se:re,te,p?le:oe);k[w]=ue,P[w]=ue-te}t.modifiersData[r]=P}},requiresIfExists:["offset"]},AE={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=lE(n.placement),l=cE(s),u=[qS,HS].indexOf(s)>=0?"height":"width";if(i&&a){var c=function(e,t){return CE("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:_E(e,XS))}(o.padding,n),d=FS(i),f="y"===l?WS:qS,p="y"===l?US:HS,h=n.rects.reference[u]+n.rects.reference[l]-a[l]-n.rects.popper[u],m=a[l]-n.rects.reference[l],v=$S(i),g=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,b=h/2-m/2,y=c[f],x=g-d[u]-c[p],w=g/2-d[u]/2+b,k=RE(y,w,x),S=l;n.modifiersData[r]=((t={})[S]=k,t.centerOffset=k-w,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&kE(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function IE(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function jE(e){return[WS,HS,US,qS].some((function(t){return e[t]>=0}))}const ME={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=OE(t,{elementContext:"reference"}),s=OE(t,{altBoundary:!0}),l=IE(a,r),u=IE(s,o,i),c=jE(l),d=jE(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}};var zE=iE({defaultModifiers:[sE,fE,mE,vE,gE,PE,TE,AE,ME]});const FE=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),LE={arrowShadowColor:FE("--popper-arrow-shadow-color"),arrowSize:FE("--popper-arrow-size","8px"),arrowSizeHalf:FE("--popper-arrow-size-half"),arrowBg:FE("--popper-arrow-bg"),transformOrigin:FE("--popper-transform-origin"),arrowOffset:FE("--popper-arrow-offset")},DE={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},NE={scroll:!0,resize:!0};function BE(e){let t;return t="object"==typeof e?{enabled:!0,options:{...NE,...e}}:{enabled:e,options:NE},t}const VE={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>()=>{const t=e.elements.reference;e.elements.popper.style.width=`${t.offsetWidth}px`}},$E={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{WE(e)},effect:({state:e})=>()=>{WE(e)}},WE=e=>{var t;e.elements.popper.style.setProperty(LE.transformOrigin.var,(t=e.placement,DE[t]))},UE={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{HE(e)}},HE=e=>{if(!e.placement)return;const t=qE(e.placement);if(e.elements?.arrow&&t){Object.assign(e.elements.arrow.style,{[t.property]:t.value,width:LE.arrowSize.varRef,height:LE.arrowSize.varRef,zIndex:-1});const n={[LE.arrowSizeHalf.var]:`calc(${LE.arrowSize.varRef} / 2 - 1px)`,[LE.arrowOffset.var]:`calc(${LE.arrowSizeHalf.varRef} * -1)`};for(const t in n)e.elements.arrow.style.setProperty(t,n[t])}},qE=e=>e.startsWith("top")?{property:"bottom",value:LE.arrowOffset.varRef}:e.startsWith("bottom")?{property:"top",value:LE.arrowOffset.varRef}:e.startsWith("left")?{property:"right",value:LE.arrowOffset.varRef}:e.startsWith("right")?{property:"left",value:LE.arrowOffset.varRef}:void 0,YE={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{XE(e)},effect:({state:e})=>()=>{XE(e)}},XE=e=>{if(!e.elements.arrow)return;const t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!t)return;const n=(r=e.placement).includes("top")?"1px 1px 0px 0 var(--popper-arrow-shadow-color)":r.includes("bottom")?"-1px -1px 0px 0 var(--popper-arrow-shadow-color)":r.includes("right")?"-1px 1px 0px 0 var(--popper-arrow-shadow-color)":r.includes("left")?"1px -1px 0px 0 var(--popper-arrow-shadow-color)":void 0;var r;n&&t.style.setProperty("--popper-arrow-default-shadow",n),Object.assign(t.style,{transform:"rotate(45deg)",background:LE.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},GE={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},KE={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function QE(t={}){const{enabled:n=!0,modifiers:r,placement:o="bottom",strategy:i="absolute",arrowPadding:a=8,eventListeners:s=!0,offset:l,gutter:u=8,flip:c=!0,boundary:d="clippingParents",preventOverflow:f=!0,matchWidth:p,direction:h="ltr"}=t,m=(0,e.useRef)(null),v=(0,e.useRef)(null),g=(0,e.useRef)(null),b=function(e,t="ltr"){const n=GE[e]?.[t]||e;return"ltr"===t?n:KE[e]??n}(o,h),y=(0,e.useRef)((()=>{})),x=(0,e.useCallback)((()=>{n&&m.current&&v.current&&(y.current?.(),g.current=zE(m.current,v.current,{placement:b,modifiers:[YE,UE,$E,{...VE,enabled:!!p},{name:"eventListeners",...BE(s)},{name:"arrow",options:{padding:a}},{name:"offset",options:{offset:l??[0,u]}},{name:"flip",enabled:!!c,options:{padding:8}},{name:"preventOverflow",enabled:!!f,options:{boundary:d}},...r??[]],strategy:i}),g.current.forceUpdate(),y.current=g.current.destroy)}),[b,n,r,p,s,a,l,u,c,f,d,i]);(0,e.useEffect)((()=>()=>{m.current||v.current||(g.current?.destroy(),g.current=null)}),[]);const w=(0,e.useCallback)((e=>{m.current=e,x()}),[x]),k=(0,e.useCallback)(((e={},t=null)=>({...e,ref:Eg(w,t)})),[w]),S=(0,e.useCallback)((e=>{v.current=e,x()}),[x]),E=(0,e.useCallback)(((e={},t=null)=>({...e,ref:Eg(S,t),style:{...e.style,position:i,minWidth:p?void 0:"max-content",inset:"0 auto auto 0"}})),[i,S,p]),C=(0,e.useCallback)(((e={},t=null)=>{const{size:n,shadowColor:r,bg:o,style:i,...a}=e;return{...a,ref:t,"data-popper-arrow":"",style:ZE(e)}}),[]),_=(0,e.useCallback)(((e={},t=null)=>({...e,ref:t,"data-popper-arrow-inner":""})),[]);return{update(){g.current?.update()},forceUpdate(){g.current?.forceUpdate()},transformOrigin:LE.transformOrigin.varRef,referenceRef:w,popperRef:S,getPopperProps:E,getArrowProps:C,getArrowInnerProps:_,getReferenceProps:k}}function ZE(e){const{size:t,shadowColor:n,bg:r,style:o}=e,i={...o,position:"absolute"};return t&&(i["--popper-arrow-size"]=t),n&&(i["--popper-arrow-shadow-color"]=n),r&&(i["--popper-arrow-bg"]=r),i}const JE=e=>e.current?.ownerDocument||document,eC=e=>e.current?.ownerDocument?.defaultView||window;function tC(t={}){const{openDelay:n=0,closeDelay:r=0,closeOnClick:o=!0,closeOnMouseDown:i,closeOnScroll:a,closeOnPointerDown:s=i,closeOnEsc:l=!0,onOpen:u,onClose:c,placement:d,id:f,isOpen:p,defaultIsOpen:h,arrowSize:m=10,arrowShadowColor:v,arrowPadding:g,modifiers:b,isDisabled:y,gutter:x,offset:w,direction:k,...S}=t,{isOpen:E,onOpen:C,onClose:_}=vS({isOpen:p,defaultIsOpen:h,onOpen:u,onClose:c}),{referenceRef:O,getPopperProps:P,getArrowInnerProps:R,getArrowProps:T}=QE({enabled:E,placement:d,arrowPadding:g,modifiers:b,gutter:x,offset:w,direction:k}),A=(0,e.useId)(),I=`tooltip-${f??A}`,j=(0,e.useRef)(null),M=(0,e.useRef)(),z=(0,e.useCallback)((()=>{M.current&&(clearTimeout(M.current),M.current=void 0)}),[]),F=(0,e.useRef)(),L=(0,e.useCallback)((()=>{F.current&&(clearTimeout(F.current),F.current=void 0)}),[]),D=(0,e.useCallback)((()=>{L(),_()}),[_,L]),N=function(t,n){return(0,e.useEffect)((()=>{const e=JE(t);return e.addEventListener(nC,n),()=>e.removeEventListener(nC,n)}),[n,t]),()=>{const e=JE(t),n=eC(t);e.dispatchEvent(new n.CustomEvent(nC))}}(j,D),B=(0,e.useCallback)((()=>{if(!y&&!M.current){E&&N();const e=eC(j);M.current=e.setTimeout(C,n)}}),[N,y,E,C,n]),V=(0,e.useCallback)((()=>{z();const e=eC(j);F.current=e.setTimeout(D,r)}),[r,D,z]),$=(0,e.useCallback)((()=>{E&&o&&V()}),[o,V,E]),W=(0,e.useCallback)((()=>{E&&s&&V()}),[s,V,E]),U=(0,e.useCallback)((e=>{E&&"Escape"===e.key&&V()}),[E,V]);gS((()=>JE(j)),"keydown",l?U:void 0),gS((()=>{if(!a)return null;const e=j.current;if(!e)return null;const t=bS(e);return"body"===t.localName?eC(j):t}),"scroll",(()=>{E&&a&&D()}),{passive:!0,capture:!0}),(0,e.useEffect)((()=>{y&&(z(),E&&_())}),[y,E,_,z]),(0,e.useEffect)((()=>()=>{z(),L()}),[z,L]),gS((()=>j.current),"pointerleave",V);const H=(0,e.useCallback)(((e={},t=null)=>({...e,ref:Eg(j,t,O),onPointerEnter:Hb(e.onPointerEnter,(e=>{"touch"!==e.pointerType&&B()})),onClick:Hb(e.onClick,$),onPointerDown:Hb(e.onPointerDown,W),onFocus:Hb(e.onFocus,B),onBlur:Hb(e.onBlur,V),"aria-describedby":E?I:void 0})),[B,V,W,E,I,$,O]),q=(0,e.useCallback)(((e={},t=null)=>P({...e,style:{...e.style,[LE.arrowSize.var]:m?`${m}px`:void 0,[LE.arrowShadowColor.var]:v}},t)),[P,m,v]),Y=(0,e.useCallback)(((e={},t=null)=>{const n={...e.style,position:"relative",transformOrigin:LE.transformOrigin.varRef};return{ref:t,...S,...e,id:I,role:"tooltip",style:n}}),[S,I]);return{isOpen:E,show:B,hide:V,getTriggerProps:H,getTooltipProps:Y,getTooltipPositionerProps:q,getArrowProps:T,getArrowInnerProps:R}}const nC="chakra-ui:close-tooltip",rC=Tv(dv.div),oC=Fv(((t,n)=>{const r=Vv("Tooltip",t),o=Mv(t),i=Nv(),{children:a,label:s,shouldWrapChildren:l,"aria-label":u,hasArrow:c,bg:d,portalProps:f,background:p,backgroundColor:h,bgColor:m,motionProps:v,animatePresenceProps:g,...b}=o,y=p??h??d??m;if(y){r.bg=y;const e=function(e,t,n){return e.__cssMap?.[`colors.${n}`]?.varRef??n}(i,0,y);r[LE.arrowBg.var]=e}const x=tC({...b,direction:i.direction});let w;if("string"==typeof a||l)w=(0,ei.jsx)(Tv.span,{display:"inline-block",tabIndex:0,...x.getTriggerProps(),children:a});else{const t=e.Children.only(a);w=(0,e.cloneElement)(t,x.getTriggerProps(t.props,t.ref))}const k=!!u,S=x.getTooltipProps({},n),E=k?jv(S,["role","id"]):S,C=Es(S,["role","id"]);return s?(0,ei.jsxs)(ei.Fragment,{children:[w,(0,ei.jsx)(fu,{...g,children:x.isOpen&&(0,ei.jsx)(mg,{...f,children:(0,ei.jsx)(Tv.div,{...x.getTooltipPositionerProps(),__css:{zIndex:r.zIndex,pointerEvents:"none"},children:(0,ei.jsxs)(rC,{variants:mS,initial:"exit",animate:"enter",exit:"exit",...v,...E,__css:r,children:[s,k&&(0,ei.jsx)(Tv.span,{srOnly:!0,...C,children:u}),c&&(0,ei.jsx)(Tv.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper",children:(0,ei.jsx)(Tv.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:r.bg}})})]})})})})]}):(0,ei.jsx)(ei.Fragment,{children:a})}));function iC(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 aC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?iC(Object(n),!0).forEach((function(t){ew(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iC(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sC(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function lC(e,t){if(e){if("string"==typeof e)return sC(e,t);var n={}.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)?sC(e,t):void 0}}function uC(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,u=!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(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||lC(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.")}()}function cC(e,t){if(null==e)return{};var n,r,o=Nx(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}oC.displayName="Tooltip";var dC=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function fC(t){var n=t.defaultInputValue,r=void 0===n?"":n,o=t.defaultMenuIsOpen,i=void 0!==o&&o,a=t.defaultValue,s=void 0===a?null:a,l=t.inputValue,u=t.menuIsOpen,c=t.onChange,d=t.onInputChange,f=t.onMenuClose,p=t.onMenuOpen,h=t.value,m=cC(t,dC),v=uC((0,e.useState)(void 0!==l?l:r),2),g=v[0],b=v[1],y=uC((0,e.useState)(void 0!==u?u:i),2),x=y[0],w=y[1],k=uC((0,e.useState)(void 0!==h?h:s),2),S=k[0],E=k[1],C=(0,e.useCallback)((function(e,t){"function"==typeof c&&c(e,t),E(e)}),[c]),_=(0,e.useCallback)((function(e,t){var n;"function"==typeof d&&(n=d(e,t)),b(void 0!==n?n:e)}),[d]),O=(0,e.useCallback)((function(){"function"==typeof p&&p(),w(!0)}),[p]),P=(0,e.useCallback)((function(){"function"==typeof f&&f(),w(!1)}),[f]),R=void 0!==l?l:g,T=void 0!==u?u:x,A=void 0!==h?h:S;return aC(aC({},m),{},{inputValue:R,menuIsOpen:T,onChange:C,onInputChange:_,onMenuClose:P,onMenuOpen:O,value:A})}function pC(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,Jx(r.key),r)}}function hC(e){return hC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},hC(e)}function mC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(mC=function(){return!!e})()}function vC(e){return function(e){if(Array.isArray(e))return sC(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||lC(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.")}()}const gC=Math.min,bC=Math.max,yC=Math.round,xC=Math.floor,wC=e=>({x:e,y:e});function kC(){return"undefined"!=typeof window}function SC(e){return _C(e)?(e.nodeName||"").toLowerCase():"#document"}function EC(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function CC(e){var t;return null==(t=(_C(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function _C(e){return!!kC()&&(e instanceof Node||e instanceof EC(e).Node)}function OC(e){return!!kC()&&(e instanceof Element||e instanceof EC(e).Element)}function PC(e){return!!kC()&&(e instanceof HTMLElement||e instanceof EC(e).HTMLElement)}function RC(e){return!(!kC()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof EC(e).ShadowRoot)}function TC(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=AC(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function AC(e){return EC(e).getComputedStyle(e)}function IC(e){const t=function(e){if("html"===SC(e))return e;const t=e.assignedSlot||e.parentNode||RC(e)&&e.host||CC(e);return RC(t)?t.host:t}(e);return function(e){return["html","body","#document"].includes(SC(e))}(t)?e.ownerDocument?e.ownerDocument.body:e.body:PC(t)&&TC(t)?t:IC(t)}function jC(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=IC(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=EC(o);if(i){const e=MC(a);return t.concat(a,a.visualViewport||[],TC(o)?o:[],e&&n?jC(e):[])}return t.concat(o,jC(o,[],n))}function MC(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function zC(e){return OC(e)?e:e.contextElement}function FC(e){const t=zC(e);if(!PC(t))return wC(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=function(e){const t=AC(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=PC(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=yC(n)!==i||yC(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}(t);let a=(i?yC(n.width):n.width)/r,s=(i?yC(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const LC=wC(0);function DC(e){const t=EC(e);return"undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:LC}function NC(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=zC(e);let a=wC(1);t&&(r?OC(r)&&(a=FC(r)):a=FC(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==EC(e))&&t}(i,n,r)?DC(i):wC(0);let l=(o.left+s.x)/a.x,u=(o.top+s.y)/a.y,c=o.width/a.x,d=o.height/a.y;if(i){const e=EC(i),t=r&&OC(r)?EC(r):r;let n=e,o=MC(n);for(;o&&r&&t!==n;){const e=FC(o),t=o.getBoundingClientRect(),r=AC(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,u*=e.y,c*=e.x,d*=e.y,l+=i,u+=a,n=EC(o),o=MC(n)}}return function(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}({width:c,height:d,x:l,y:u})}const BC=e.useLayoutEffect;var VC=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],$C=function(){};function WC(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function UC(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&i.push("".concat(WC(e,a)));return i.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var HC=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===Zx(e)&&null!==e?[e]:[];var t},qC=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,aC({},cC(e,VC))},YC=function(e,t,n){var r=e.cx,o=e.getStyles,i=e.getClassNames,a=e.className;return{css:o(t,e),className:r(null!=n?n:{},i(t,e),a)}};function XC(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function GC(e){return XC(e)?window.pageYOffset:e.scrollTop}function KC(e,t){XC(e)?window.scrollTo(0,t):e.scrollTop=t}function QC(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:$C,o=GC(e),i=t-o,a=0;!function t(){var s=function(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}(a+=10,o,i,n);KC(e,s),a<n?window.requestAnimationFrame(t):r(e)}()}function ZC(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?KC(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&KC(e,Math.max(t.offsetTop-o,0))}function JC(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var e_=!1,t_={get passive(){return e_=!0}},n_="undefined"!=typeof window?window:{};n_.addEventListener&&n_.removeEventListener&&(n_.addEventListener("p",$C,t_),n_.removeEventListener("p",$C,!1));var r_=e_;function o_(e){return null!=e}function i_(e,t,n){return e?t:n}var a_=["children","innerProps"],s_=["children","innerProps"];var l_,u_=function(e){return"auto"===e?"bottom":e},c_=(0,e.createContext)(null),d_=function(t){var n=t.children,r=t.minMenuHeight,o=t.maxMenuHeight,i=t.menuPlacement,a=t.menuPosition,s=t.menuShouldScrollIntoView,l=t.theme,u=((0,e.useContext)(c_)||{}).setPortalPlacement,c=(0,e.useRef)(null),d=uC((0,e.useState)(o),2),f=d[0],p=d[1],h=uC((0,e.useState)(null),2),m=h[0],v=h[1],g=l.spacing.controlHeight;return BC((function(){var e=c.current;if(e){var t="fixed"===a,n=function(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var c,d=l.getBoundingClientRect().height,f=n.getBoundingClientRect(),p=f.bottom,h=f.height,m=f.top,v=n.offsetParent.getBoundingClientRect().top,g=a||XC(c=l)?window.innerHeight:c.clientHeight,b=GC(l),y=parseInt(getComputedStyle(n).marginBottom,10),x=parseInt(getComputedStyle(n).marginTop,10),w=v-x,k=g-m,S=w+b,E=d-b-m,C=p-g+b+y,_=b+m-x,O=160;switch(o){case"auto":case"bottom":if(k>=h)return{placement:"bottom",maxHeight:t};if(E>=h&&!a)return i&&QC(l,C,O),{placement:"bottom",maxHeight:t};if(!a&&E>=r||a&&k>=r)return i&&QC(l,C,O),{placement:"bottom",maxHeight:a?k-y:E-y};if("auto"===o||a){var P=t,R=a?w:S;return R>=r&&(P=Math.min(R-y-s,t)),{placement:"top",maxHeight:P}}if("bottom"===o)return i&&KC(l,C),{placement:"bottom",maxHeight:t};break;case"top":if(w>=h)return{placement:"top",maxHeight:t};if(S>=h&&!a)return i&&QC(l,_,O),{placement:"top",maxHeight:t};if(!a&&S>=r||a&&w>=r){var T=t;return(!a&&S>=r||a&&w>=r)&&(T=a?w-x:S-x),i&&QC(l,_,O),{placement:"top",maxHeight:T}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return u}({maxHeight:o,menuEl:e,minHeight:r,placement:i,shouldScroll:s&&!t,isFixedPosition:t,controlHeight:g});p(n.maxHeight),v(n.placement),null==u||u(n.placement)}}),[o,i,a,s,r,u,g]),n({ref:c,placerProps:aC(aC({},t),{},{placement:m||u_(i),maxHeight:f})})},f_=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return aC({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},p_=f_,h_=f_,m_=["size"],v_=["innerProps","isRtl","size"],g_={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},b_=function(e){var t=e.size,n=cC(e,m_);return qa("svg",oa({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:g_},n))},y_=function(e){return qa(b_,oa({size:20},e),qa("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},x_=function(e){return qa(b_,oa({size:20},e),qa("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},w_=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return aC({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*o,":hover":{color:n?i.neutral80:i.neutral40}})},k_=w_,S_=w_,E_=Ga(l_||(l_=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"]))),C_=function(e){var t=e.delay,n=e.offset;return qa("span",{css:Xa({animation:"".concat(E_," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},__=["data"],O_=["innerRef","isDisabled","isHidden","inputClassName"],P_={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},R_={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":aC({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},P_)},T_=function(e){return aC({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},P_)},A_=function(e){var t=e.children,n=e.innerProps;return qa("div",n,t)},I_={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return qa("div",oa({},YC(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||qa(y_,null))},Control:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,i=e.innerProps,a=e.menuIsOpen;return qa("div",oa({ref:o},YC(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":a}),i,{"aria-disabled":n||void 0}),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return qa("div",oa({},YC(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||qa(x_,null))},DownChevron:x_,CrossIcon:y_,Group:function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,i=e.Heading,a=e.headingProps,s=e.innerProps,l=e.label,u=e.theme,c=e.selectProps;return qa("div",oa({},YC(e,"group",{group:!0}),s),qa(i,oa({},a,{selectProps:c,theme:u,getStyles:r,getClassNames:o,cx:n}),l),qa("div",null,t))},GroupHeading:function(e){var t=qC(e);t.data;var n=cC(t,__);return qa("div",oa({},YC(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return qa("div",oa({},YC(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return qa("span",oa({},t,YC(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=qC(e),o=r.innerRef,i=r.isDisabled,a=r.isHidden,s=r.inputClassName,l=cC(r,O_);return qa("div",oa({},YC(e,"input",{"input-container":!0}),{"data-value":n||""}),qa("input",oa({className:t({input:!0},s),ref:o,style:T_(a),disabled:i},l)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,o=void 0===r?4:r,i=cC(e,v_);return qa("div",oa({},YC(aC(aC({},i),{},{innerProps:t,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),qa(C_,{delay:0,offset:n}),qa(C_,{delay:160,offset:!0}),qa(C_,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return qa("div",oa({},YC(e,"menu",{menu:!0}),{ref:n},r),t)},MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return qa("div",oa({},YC(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},n),t)},MenuPortal:function(t){var n=t.appendTo,o=t.children,i=t.controlElement,a=t.innerProps,s=t.menuPlacement,l=t.menuPosition,u=(0,e.useRef)(null),c=(0,e.useRef)(null),d=uC((0,e.useState)(u_(s)),2),f=d[0],p=d[1],h=(0,e.useMemo)((function(){return{setPortalPlacement:p}}),[]),m=uC((0,e.useState)(null),2),v=m[0],g=m[1],b=(0,e.useCallback)((function(){if(i){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(i),t="fixed"===l?0:window.pageYOffset,n=e[f]+t;n===(null==v?void 0:v.offset)&&e.left===(null==v?void 0:v.rect.left)&&e.width===(null==v?void 0:v.rect.width)||g({offset:n,rect:e})}}),[i,l,f,null==v?void 0:v.offset,null==v?void 0:v.rect.left,null==v?void 0:v.rect.width]);BC((function(){b()}),[b]);var y=(0,e.useCallback)((function(){"function"==typeof c.current&&(c.current(),c.current=null),i&&u.current&&(c.current=function(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,u=zC(e),c=o||i?[...u?jC(u):[],...jC(t)]:[];c.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=u&&s?function(e,t){let n,r=null;const o=CC(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const{left:u,top:c,width:d,height:f}=e.getBoundingClientRect();if(s||t(),!d||!f)return;const p={rootMargin:-xC(c)+"px "+-xC(o.clientWidth-(u+d))+"px "+-xC(o.clientHeight-(c+f))+"px "+-xC(u)+"px",threshold:bC(0,gC(1,l))||1};let h=!0;function m(e){const t=e[0].intersectionRatio;if(t!==l){if(!h)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}h=!1}try{r=new IntersectionObserver(m,{...p,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(m,p)}r.observe(e)}(!0),i}(u,n):null;let f,p=-1,h=null;a&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),u&&!l&&h.observe(u),h.observe(t));let m=l?NC(e):null;return l&&function t(){const r=NC(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(),()=>{var e;c.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=h)||e.disconnect(),h=null,l&&cancelAnimationFrame(f)}}(i,u.current,b,{elementResize:"ResizeObserver"in window}))}),[i,b]);BC((function(){y()}),[y]);var x=(0,e.useCallback)((function(e){u.current=e,y()}),[y]);if(!n&&"fixed"!==l||!v)return null;var w=qa("div",oa({ref:x},YC(aC(aC({},t),{},{offset:v.offset,position:l,rect:v.rect}),"menuPortal",{"menu-portal":!0}),a),o);return qa(c_.Provider,{value:h},n?(0,r.createPortal)(w,n):w)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,o=cC(e,s_);return qa("div",oa({},YC(aC(aC({},o),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,r=e.innerProps,o=cC(e,a_);return qa("div",oa({},YC(aC(aC({},o),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:function(e){var t=e.children,n=e.components,r=e.data,o=e.innerProps,i=e.isDisabled,a=e.removeProps,s=e.selectProps,l=n.Container,u=n.Label,c=n.Remove;return qa(l,{data:r,innerProps:aC(aC({},YC(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),o),selectProps:s},qa(u,{data:r,innerProps:aC({},YC(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),qa(c,{data:r,innerProps:aC(aC({},YC(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:s}))},MultiValueContainer:A_,MultiValueLabel:A_,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return qa("div",oa({role:"button"},n),t||qa(y_,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.innerRef,a=e.innerProps;return qa("div",oa({},YC(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":o}),{ref:i,"aria-disabled":n},a),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return qa("div",oa({},YC(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return qa("div",oa({},YC(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return qa("div",oa({},YC(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,o=e.hasValue;return qa("div",oa({},YC(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},j_=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function M_(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((r=e[n])===(o=t[n])||j_(r)&&j_(o)))return!1;var r,o;return!0}for(var z_={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},F_=function(e){return qa("span",oa({css:z_},e))},L_={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,o=e.context,i=e.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,i=void 0===o?"":o,a=e.selectValue,s=e.isDisabled,l=e.isSelected,u=e.isAppleDevice,c=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(i," focused, ").concat(c(a,n),".");if("menu"===t&&u){var d=s?" disabled":"",f="".concat(l?" selected":"").concat(d);return"".concat(i).concat(f,", ").concat(c(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},D_=function(t){var n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,i=t.focusableOptions,a=t.isFocused,s=t.selectValue,l=t.selectProps,u=t.id,c=t.isAppleDevice,d=l.ariaLiveMessages,f=l.getOptionLabel,p=l.inputValue,h=l.isMulti,m=l.isOptionDisabled,v=l.isSearchable,g=l.menuIsOpen,b=l.options,y=l.screenReaderStatus,x=l.tabSelectsValue,w=l.isLoading,k=l["aria-label"],S=l["aria-live"],E=(0,e.useMemo)((function(){return aC(aC({},L_),d||{})}),[d]),C=(0,e.useMemo)((function(){var e,t="";if(n&&E.onChange){var r=n.option,o=n.options,i=n.removedValue,a=n.removedValues,l=n.value,u=i||r||(e=l,Array.isArray(e)?null:e),c=u?f(u):"",d=o||a||void 0,p=d?d.map(f):[],h=aC({isDisabled:u&&m(u,s),label:c,labels:p},n);t=E.onChange(h)}return t}),[n,E,m,s,f]),_=(0,e.useMemo)((function(){var e="",t=r||o,n=!!(r&&s&&s.includes(r));if(t&&E.onFocus){var a={focused:t,label:f(t),isDisabled:m(t,s),isSelected:n,options:i,context:t===r?"menu":"value",selectValue:s,isAppleDevice:c};e=E.onFocus(a)}return e}),[r,o,f,m,E,i,s,c]),O=(0,e.useMemo)((function(){var e="";if(g&&b.length&&!w&&E.onFilter){var t=y({count:i.length});e=E.onFilter({inputValue:p,resultsMessage:t})}return e}),[i,p,g,E,b,y,w]),P="initial-input-focus"===(null==n?void 0:n.action),R=(0,e.useMemo)((function(){var e="";if(E.guidance){var t=o?"value":g?"menu":"input";e=E.guidance({"aria-label":k,context:t,isDisabled:r&&m(r,s),isMulti:h,isSearchable:v,tabSelectsValue:x,isInitialFocus:P})}return e}),[k,r,o,h,m,v,g,E,s,x,P]),T=qa(e.Fragment,null,qa("span",{id:"aria-selection"},C),qa("span",{id:"aria-focused"},_),qa("span",{id:"aria-results"},O),qa("span",{id:"aria-guidance"},R));return qa(e.Fragment,null,qa(F_,{id:u},P&&T),qa(F_,{"aria-live":S,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!P&&T))},N_=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],B_=new RegExp("["+N_.map((function(e){return e.letters})).join("")+"]","g"),V_={},$_=0;$_<N_.length;$_++)for(var W_=N_[$_],U_=0;U_<W_.letters.length;U_++)V_[W_.letters[U_]]=W_.base;var H_=function(e){return e.replace(B_,(function(e){return V_[e]}))},q_=function(e,t){void 0===t&&(t=M_);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}(H_),Y_=function(e){return e.replace(/^\s+|\s+$/g,"")},X_=function(e){return"".concat(e.label," ").concat(e.value)},G_=["innerRef"];function K_(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=Object.entries(e).filter((function(e){var t=uC(e,1)[0];return!n.includes(t)}));return o.reduce((function(e,t){var n=uC(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})}(cC(e,G_),"onExited","in","enter","exit","appear");return qa("input",oa({ref:t},n,{css:Xa({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var Q_=["boxSizing","height","overflow","paddingRight","position"],Z_={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function J_(e){e.preventDefault()}function eO(e){e.stopPropagation()}function tO(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function nO(){return"ontouchstart"in window||navigator.maxTouchPoints}var rO=!("undefined"==typeof window||!window.document||!window.document.createElement),oO=0,iO={capture:!1,passive:!1},aO=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},sO={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function lO(t){var n=t.children,r=t.lockEnabled,o=t.captureEnabled,i=function(t){var n=t.isEnabled,r=t.onBottomArrive,o=t.onBottomLeave,i=t.onTopArrive,a=t.onTopLeave,s=(0,e.useRef)(!1),l=(0,e.useRef)(!1),u=(0,e.useRef)(0),c=(0,e.useRef)(null),d=(0,e.useCallback)((function(e,t){if(null!==c.current){var n=c.current,u=n.scrollTop,d=n.scrollHeight,f=n.clientHeight,p=c.current,h=t>0,m=d-f-u,v=!1;m>t&&s.current&&(o&&o(e),s.current=!1),h&&l.current&&(a&&a(e),l.current=!1),h&&t>m?(r&&!s.current&&r(e),p.scrollTop=d,v=!0,s.current=!0):!h&&-t>u&&(i&&!l.current&&i(e),p.scrollTop=0,v=!0,l.current=!0),v&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}}),[r,o,i,a]),f=(0,e.useCallback)((function(e){d(e,e.deltaY)}),[d]),p=(0,e.useCallback)((function(e){u.current=e.changedTouches[0].clientY}),[]),h=(0,e.useCallback)((function(e){var t=u.current-e.changedTouches[0].clientY;d(e,t)}),[d]),m=(0,e.useCallback)((function(e){if(e){var t=!!r_&&{passive:!1};e.addEventListener("wheel",f,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",h,t)}}),[h,p,f]),v=(0,e.useCallback)((function(e){e&&(e.removeEventListener("wheel",f,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",h,!1))}),[h,p,f]);return(0,e.useEffect)((function(){if(n){var e=c.current;return m(e),function(){v(e)}}}),[n,m,v]),function(e){c.current=e}}({isEnabled:void 0===o||o,onBottomArrive:t.onBottomArrive,onBottomLeave:t.onBottomLeave,onTopArrive:t.onTopArrive,onTopLeave:t.onTopLeave}),a=function(t){var n=t.isEnabled,r=t.accountForScrollbars,o=void 0===r||r,i=(0,e.useRef)({}),a=(0,e.useRef)(null),s=(0,e.useCallback)((function(e){if(rO){var t=document.body,n=t&&t.style;if(o&&Q_.forEach((function(e){var t=n&&n[e];i.current[e]=t})),o&&oO<1){var r=parseInt(i.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+r||0;Object.keys(Z_).forEach((function(e){var t=Z_[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&nO()&&(t.addEventListener("touchmove",J_,iO),e&&(e.addEventListener("touchstart",tO,iO),e.addEventListener("touchmove",eO,iO))),oO+=1}}),[o]),l=(0,e.useCallback)((function(e){if(rO){var t=document.body,n=t&&t.style;oO=Math.max(oO-1,0),o&&oO<1&&Q_.forEach((function(e){var t=i.current[e];n&&(n[e]=t)})),t&&nO()&&(t.removeEventListener("touchmove",J_,iO),e&&(e.removeEventListener("touchstart",tO,iO),e.removeEventListener("touchmove",eO,iO)))}}),[o]);return(0,e.useEffect)((function(){if(n){var e=a.current;return s(e),function(){l(e)}}}),[n,s,l]),function(e){a.current=e}}({isEnabled:r});return qa(e.Fragment,null,r&&qa("div",{onClick:aO,css:sO}),n((function(e){i(e),a(e)})))}var uO={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},cO=function(e){var t=e.name,n=e.onFocus;return qa("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:uO,value:"",onChange:function(){}})};function dO(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function fO(){return dO(/^Mac/i)}var pO=function(e){return e.label},hO=function(e){return e.value},mO={clearIndicator:S_,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.theme,i=o.colors,a=o.borderRadius;return aC({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:o.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:r?i.primary:i.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:r?i.primary:i.neutral30}})},dropdownIndicator:k_,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,o=n.spacing;return aC({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*o.baseUnit,paddingRight:3*o.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return aC({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(e,t){var n=e.isDisabled,r=e.value,o=e.theme,i=o.spacing,a=o.colors;return aC(aC({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},R_),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,o=e.theme,i=o.colors,a=o.spacing.baseUnit;return aC({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*a})},loadingMessage:h_,menu:function(e,t){var n,r=e.placement,o=e.theme,i=o.borderRadius,a=o.spacing,s=o.colors;return aC((ew(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),ew(n,"position","absolute"),ew(n,"width","100%"),ew(n,"zIndex",1),n),t?{}:{backgroundColor:s.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return aC({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors;return aC({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,o=n.colors,i=e.cropWithEllipsis;return aC({overflow:"hidden",textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors,a=e.isFocused;return aC({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:a?i.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:p_,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.theme,a=i.spacing,s=i.colors;return aC({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?s.primary:r?s.primary25:"transparent",color:n?s.neutral20:o?s.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:o?s.primary:s.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,o=n.colors;return aC({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing,i=r.colors;return aC({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?i.neutral40:i.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,o=e.hasValue,i=e.selectProps.controlShouldRenderValue;return aC({alignItems:"center",display:r&&o&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},vO={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},gO={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:JC(),captureMenuScroll:!JC(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=aC({ignoreCase:!0,ignoreAccents:!0,stringify:X_,trim:!0,matchFrom:"any"},void 0),r=n.ignoreCase,o=n.ignoreAccents,i=n.stringify,a=n.trim,s=n.matchFrom,l=a?Y_(t):t,u=a?Y_(i(e)):i(e);return r&&(l=l.toLowerCase(),u=u.toLowerCase()),o&&(l=q_(l),u=H_(u)),"start"===s?u.substr(0,l.length)===l:u.indexOf(l)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:pO,getOptionValue:hO,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function bO(e,t,n,r){return{type:"option",data:t,isDisabled:_O(e,t,n),isSelected:OO(e,t,n),label:EO(e,t),value:CO(e,t),index:r}}function yO(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return bO(e,n,t,r)})).filter((function(t){return kO(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=bO(e,n,t,r);return kO(e,i)?i:void 0})).filter(o_)}function xO(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,vC(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function wO(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,vC(n.options.map((function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}})))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e}),[])}function kO(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,a=t.label,s=t.value;return(!RO(e)||!i)&&PO(e,{label:a,value:s,data:o},r)}var SO=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},EO=function(e,t){return e.getOptionLabel(t)},CO=function(e,t){return e.getOptionValue(t)};function _O(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function OO(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=CO(e,t);return n.some((function(t){return CO(e,t)===r}))}function PO(e,t,n){return!e.filterOption||e.filterOption(t,n)}var RO=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},TO=1,AO=function(t){!function(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&&Qx(e,t)}(r,t);var n=function(e){var t=mC();return function(){var n,r=hC(e);if(t){var o=hC(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==Zx(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}(r);function r(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(t=n.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.isAppleDevice=fO()||dO(/^iPhone/i)||dO(/^iPad/i)||fO()&&navigator.maxTouchPoints>1,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,o=r.onChange,i=r.name;n.name=i,t.ariaOnChange(e,n),o(e,n)},t.setValue=function(e,n,r){var o=t.props,i=o.closeMenuOnSelect,a=o.isMulti,s=o.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:s}),i&&(t.setState({inputIsHiddenAfterUpdate:!a}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,o=n.isMulti,i=n.name,a=t.state.selectValue,s=o&&t.isOptionSelected(e,a),l=t.isOptionDisabled(e,a);if(s){var u=t.getOptionValue(e);t.setValue(a.filter((function(e){return t.getOptionValue(e)!==u})),"deselect-option",e)}else{if(l)return void t.ariaOnChange(e,{action:"select-option",option:e,name:i});o?t.setValue([].concat(vC(a),[e]),"select-option",e):t.setValue(e,"select-option")}r&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,r=t.state.selectValue,o=t.getOptionValue(e),i=r.filter((function(e){return t.getOptionValue(e)!==o})),a=i_(n,i,i[0]||null);t.onChange(a,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(i_(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,r=n[n.length-1],o=n.slice(0,n.length-1),i=i_(e,o,o[0]||null);r&&t.onChange(i,{action:"pop-value",removedValue:r})},t.getFocusedOptionId=function(e){return SO(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return wO(yO(t.props,t.state.selectValue),t.getElementId("option"))},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return UC.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return EO(t.props,e)},t.getOptionValue=function(e){return CO(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,o=mO[e](n,r);o.boxSizing="border-box";var i=t.props.styles[e];return i?i(o,n):o},t.getClassNames=function(e,n){var r,o;return null===(r=(o=t.props.classNames)[e])||void 0===r?void 0:r.call(o,n)},t.getElementId=function(e){return"".concat(t.state.instancePrefix,"-").concat(e)},t.getComponents=function(){return e=t.props,aC(aC({},I_),e.components);var e},t.buildCategorizedOptions=function(){return yO(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return xO(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:aC({value:e},n)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():n&&t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||t.props.isDisabled)){var n=t.props,r=n.isMulti,o=n.menuIsOpen;t.focusInput(),o?(t.setState({inputIsHiddenAfterUpdate:!r}),t.onMenuClose()):t.openMenu("first"),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout((function(){return t.focusInput()})))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&XC(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var o=Math.abs(r.clientX-t.initialTouchX),i=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=o>5||i>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,r=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(r,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){if(!t.blockOptionHover&&t.state.focusedOption!==e){var n=t.getFocusableOptions().indexOf(e);t.setState({focusedOption:e,focusedOptionId:n>-1?t.getFocusedOptionId(e):null})}},t.shouldHideSelectedOptions=function(){return RO(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,o=n.backspaceRemovesValue,i=n.escapeClearsValue,a=n.inputValue,s=n.isClearable,l=n.isDisabled,u=n.menuIsOpen,c=n.onKeyDown,d=n.tabSelectsValue,f=n.openMenuOnFocus,p=t.state,h=p.focusedOption,m=p.focusedValue,v=p.selectValue;if(!(l||"function"==typeof c&&(c(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||a)return;t.focusValue("previous");break;case"ArrowRight":if(!r||a)return;t.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)t.removeValue(m);else{if(!o)return;r?t.popValue():s&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!u||!d||!h||f&&t.isOptionSelected(h,v))return;t.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(u){if(!h)return;if(t.isComposing)return;t.selectOption(h);break}return;case"Escape":u?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:a}),t.onMenuClose()):s&&i&&t.clearValue();break;case" ":if(a)return;if(!u){t.openMenu("first");break}if(!h)return;t.selectOption(h);break;case"ArrowUp":u?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":u?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!u)return;t.focusOption("pageup");break;case"PageDown":if(!u)return;t.focusOption("pagedown");break;case"Home":if(!u)return;t.focusOption("first");break;case"End":if(!u)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.state.instancePrefix="react-select-"+(t.props.instanceId||++TO),t.state.selectValue=HC(e.value),e.menuIsOpen&&t.state.selectValue.length){var o=t.getFocusableOptionsWithIds(),i=t.buildFocusableOptions(),a=i.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=o,t.state.focusedOption=i[a],t.state.focusedOptionId=SO(o,i[a])}return t}return function(e,t,n){t&&pC(e.prototype,t),n&&pC(e,n),Object.defineProperty(e,"prototype",{writable:!1})}(r,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&ZC(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),o&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(ZC(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var s=i.indexOf(r[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a],focusedOptionId:this.getFocusedOptionId(i[a])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o<i&&(a=o+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,i=r.indexOf(n);n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[o])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(vO):aC(aC({},vO),this.props.theme):vO}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,i=this.selectOption,a=this.setValue,s=this.props,l=s.isMulti,u=s.isRtl,c=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:l,isRtl:u,options:c,selectOption:i,selectProps:s,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return _O(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return OO(this.props,e,t)}},{key:"filterOption",value:function(e,t){return PO(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var t=this.props,n=t.isDisabled,r=t.isSearchable,o=t.inputId,i=t.inputValue,a=t.tabIndex,s=t.form,l=t.menuIsOpen,u=t.required,c=this.getComponents().Input,d=this.state,f=d.inputIsHidden,p=d.ariaSelection,h=this.commonProps,m=o||this.getElementId("input"),v=aC(aC(aC({"aria-autocomplete":"list","aria-expanded":l,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":u,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},l&&{"aria-controls":this.getElementId("listbox")}),!r&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==p?void 0:p.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return r?e.createElement(c,oa({},h,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:m,innerRef:this.getInputRef,isDisabled:n,isHidden:f,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:s,type:"text",value:i},v)):e.createElement(K_,oa({id:m,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:$C,onFocus:this.onInputFocus,disabled:n,tabIndex:a,inputMode:"none",form:s,value:""},v))}},{key:"renderPlaceholderOrValue",value:function(){var t=this,n=this.getComponents(),r=n.MultiValue,o=n.MultiValueContainer,i=n.MultiValueLabel,a=n.MultiValueRemove,s=n.SingleValue,l=n.Placeholder,u=this.commonProps,c=this.props,d=c.controlShouldRenderValue,f=c.isDisabled,p=c.isMulti,h=c.inputValue,m=c.placeholder,v=this.state,g=v.selectValue,b=v.focusedValue,y=v.isFocused;if(!this.hasValue()||!d)return h?null:e.createElement(l,oa({},u,{key:"placeholder",isDisabled:f,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),m);if(p)return g.map((function(n,s){var l=n===b,c="".concat(t.getOptionLabel(n),"-").concat(t.getOptionValue(n));return e.createElement(r,oa({},u,{components:{Container:o,Label:i,Remove:a},isFocused:l,isDisabled:f,key:c,index:s,removeProps:{onClick:function(){return t.removeValue(n)},onTouchEnd:function(){return t.removeValue(n)},onMouseDown:function(e){e.preventDefault()}},data:n}),t.formatOptionLabel(n,"value"))}));if(h)return null;var x=g[0];return e.createElement(s,oa({},u,{data:x,isDisabled:f}),this.formatOptionLabel(x,"value"))}},{key:"renderClearIndicator",value:function(){var t=this.getComponents().ClearIndicator,n=this.commonProps,r=this.props,o=r.isDisabled,i=r.isLoading,a=this.state.isFocused;if(!this.isClearable()||!t||o||!this.hasValue()||i)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return e.createElement(t,oa({},n,{innerProps:s,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var t=this.getComponents().LoadingIndicator,n=this.commonProps,r=this.props,o=r.isDisabled,i=r.isLoading,a=this.state.isFocused;return t&&i?e.createElement(t,oa({},n,{innerProps:{"aria-hidden":"true"},isDisabled:o,isFocused:a})):null}},{key:"renderIndicatorSeparator",value:function(){var t=this.getComponents(),n=t.DropdownIndicator,r=t.IndicatorSeparator;if(!n||!r)return null;var o=this.commonProps,i=this.props.isDisabled,a=this.state.isFocused;return e.createElement(r,oa({},o,{isDisabled:i,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var t=this.getComponents().DropdownIndicator;if(!t)return null;var n=this.commonProps,r=this.props.isDisabled,o=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return e.createElement(t,oa({},n,{innerProps:i,isDisabled:r,isFocused:o}))}},{key:"renderMenu",value:function(){var t=this,n=this.getComponents(),r=n.Group,o=n.GroupHeading,i=n.Menu,a=n.MenuList,s=n.MenuPortal,l=n.LoadingMessage,u=n.NoOptionsMessage,c=n.Option,d=this.commonProps,f=this.state.focusedOption,p=this.props,h=p.captureMenuScroll,m=p.inputValue,v=p.isLoading,g=p.loadingMessage,b=p.minMenuHeight,y=p.maxMenuHeight,x=p.menuIsOpen,w=p.menuPlacement,k=p.menuPosition,S=p.menuPortalTarget,E=p.menuShouldBlockScroll,C=p.menuShouldScrollIntoView,_=p.noOptionsMessage,O=p.onMenuScrollToTop,P=p.onMenuScrollToBottom;if(!x)return null;var R,T=function(n,r){var o=n.type,i=n.data,a=n.isDisabled,s=n.isSelected,l=n.label,u=n.value,p=f===i,h=a?void 0:function(){return t.onOptionHover(i)},m=a?void 0:function(){return t.selectOption(i)},v="".concat(t.getElementId("option"),"-").concat(r),g={id:v,onClick:m,onMouseMove:h,onMouseOver:h,tabIndex:-1,role:"option","aria-selected":t.isAppleDevice?void 0:s};return e.createElement(c,oa({},d,{innerProps:g,data:i,isDisabled:a,isSelected:s,key:v,label:l,type:o,value:u,isFocused:p,innerRef:p?t.getFocusedOptionRef:void 0}),t.formatOptionLabel(n.data,"menu"))};if(this.hasOptions())R=this.getCategorizedOptions().map((function(n){if("group"===n.type){var i=n.data,a=n.options,s=n.index,l="".concat(t.getElementId("group"),"-").concat(s),u="".concat(l,"-heading");return e.createElement(r,oa({},d,{key:l,data:i,options:a,Heading:o,headingProps:{id:u,data:n.data},label:t.formatGroupLabel(n.data)}),n.options.map((function(e){return T(e,"".concat(s,"-").concat(e.index))})))}if("option"===n.type)return T(n,"".concat(n.index))}));else if(v){var A=g({inputValue:m});if(null===A)return null;R=e.createElement(l,d,A)}else{var I=_({inputValue:m});if(null===I)return null;R=e.createElement(u,d,I)}var j={minMenuHeight:b,maxMenuHeight:y,menuPlacement:w,menuPosition:k,menuShouldScrollIntoView:C},M=e.createElement(d_,oa({},d,j),(function(n){var r=n.ref,o=n.placerProps,s=o.placement,l=o.maxHeight;return e.createElement(i,oa({},d,j,{innerRef:r,innerProps:{onMouseDown:t.onMenuMouseDown,onMouseMove:t.onMenuMouseMove},isLoading:v,placement:s}),e.createElement(lO,{captureEnabled:h,onTopArrive:O,onBottomArrive:P,lockEnabled:E},(function(n){return e.createElement(a,oa({},d,{innerRef:function(e){t.getMenuListRef(e),n(e)},innerProps:{role:"listbox","aria-multiselectable":d.isMulti,id:t.getElementId("listbox")},isLoading:v,maxHeight:l,focusedOption:f}),R)})))}));return S||"fixed"===k?e.createElement(s,oa({},d,{appendTo:S,controlElement:this.controlRef,menuPlacement:w,menuPosition:k}),M):M}},{key:"renderFormField",value:function(){var t=this,n=this.props,r=n.delimiter,o=n.isDisabled,i=n.isMulti,a=n.name,s=n.required,l=this.state.selectValue;if(s&&!this.hasValue()&&!o)return e.createElement(cO,{name:a,onFocus:this.onValueInputFocus});if(a&&!o){if(i){if(r){var u=l.map((function(e){return t.getOptionValue(e)})).join(r);return e.createElement("input",{name:a,type:"hidden",value:u})}var c=l.length>0?l.map((function(n,r){return e.createElement("input",{key:"i-".concat(r),name:a,type:"hidden",value:t.getOptionValue(n)})})):e.createElement("input",{name:a,type:"hidden",value:""});return e.createElement("div",null,c)}var d=l[0]?this.getOptionValue(l[0]):"";return e.createElement("input",{name:a,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var t=this.commonProps,n=this.state,r=n.ariaSelection,o=n.focusedOption,i=n.focusedValue,a=n.isFocused,s=n.selectValue,l=this.getFocusableOptions();return e.createElement(D_,oa({},t,{id:this.getElementId("live-region"),ariaSelection:r,focusedOption:o,focusedValue:i,isFocused:a,selectValue:s,focusableOptions:l,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var t=this.getComponents(),n=t.Control,r=t.IndicatorsContainer,o=t.SelectContainer,i=t.ValueContainer,a=this.props,s=a.className,l=a.id,u=a.isDisabled,c=a.menuIsOpen,d=this.state.isFocused,f=this.commonProps=this.getCommonProps();return e.createElement(o,oa({},f,{className:s,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:u,isFocused:d}),this.renderLiveRegion(),e.createElement(n,oa({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:u,isFocused:d,menuIsOpen:c}),e.createElement(i,oa({},f,{isDisabled:u}),this.renderPlaceholderOrValue(),this.renderInput()),e.createElement(r,oa({},f,{isDisabled:u}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,a=t.isFocused,s=t.prevWasFocused,l=t.instancePrefix,u=e.options,c=e.value,d=e.menuIsOpen,f=e.inputValue,p=e.isMulti,h=HC(c),m={};if(n&&(c!==n.value||u!==n.options||d!==n.menuIsOpen||f!==n.inputValue)){var v=d?function(e,t){return xO(yO(e,t))}(e,h):[],g=d?wO(yO(e,h),"".concat(l,"-option")):[],b=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,h):null,y=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,v);m={selectValue:h,focusedOption:y,focusedOptionId:SO(g,y),focusableOptionsWithIds:g,focusedValue:b,clearFocusValueOnUpdate:!1}}var x=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},w=i,k=a&&s;return a&&!k&&(w={value:i_(p,h,h[0]||null),options:h,action:"initial-input-focus"},k=!s),"initial-input-focus"===(null==i?void 0:i.action)&&(w=null),aC(aC(aC({},m),x),{},{prevProps:e,ariaSelection:w,prevWasFocused:k})}}]),r}(e.Component);AO.defaultProps=gO;var IO=(0,e.forwardRef)((function(t,n){var r=fC(t);return e.createElement(AO,oa({ref:n},r))}));function jO(t,n){const r=function(t){const n=xn(t)?t:{fallback:t??"base"},r=Nv().__breakpoints.details.map((({minMaxQuery:e,breakpoint:t})=>({breakpoint:t,query:e.replace("@media screen and ","")}))),o=r.map((e=>e.breakpoint===n.fallback)),i=function(t,n={}){const{ssr:r=!0,fallback:o}=n,{getWindow:i}=function({defer:t}={}){const[,n]=(0,e.useReducer)((e=>e+1),0);return Tl((()=>{t&&n()}),[t]),(0,e.useContext)(Al)}(),a=Array.isArray(t)?t:[t];let s=Array.isArray(o)?o:[o];s=s.filter((e=>null!=e));const[l,u]=(0,e.useState)((()=>a.map(((e,t)=>({media:e,matches:r?!!s[t]:i().matchMedia(e).matches})))));return(0,e.useEffect)((()=>{const e=i();u(a.map((t=>({media:t,matches:e.matchMedia(t).matches}))));const t=a.map((t=>e.matchMedia(t))),n=e=>{u((t=>t.slice().map((t=>t.media===e.media?{...t,matches:e.matches}:t))))};return t.forEach((e=>{"function"==typeof e.addListener?e.addListener(n):e.addEventListener("change",n)})),()=>{t.forEach((e=>{"function"==typeof e.removeListener?e.removeListener(n):e.removeEventListener("change",n)}))}}),[i]),l.map((e=>e.matches))}(r.map((e=>e.query)),{fallback:o,ssr:n.ssr}).findIndex((e=>1==e));return r[i]?.breakpoint??n.fallback}(xn(n)?n:{fallback:n??"base"}),o=Nv();if(!r)return;const i=Array.from(o.__breakpoints?.keys||[]),a=Array.isArray(t)?Object.fromEntries(Object.entries(function(e,t=nS){const n={};return e.forEach(((e,r)=>{const o=t[r];null!=e&&(n[o]=e)})),n}(t,i)).map((([e,t])=>[e,t]))):t;return function(e,t,n=nS){let r=Object.keys(e).indexOf(t);if(-1!==r)return e[t];let o=n.indexOf(t);for(;o>=0;){const t=n[o];if(e.hasOwnProperty(t)){r=o;break}o-=1}return-1!==r?e[n[r]]:void 0}(a,r,i)}const MO=Fv((function(e,t){const{borderLeftWidth:n,borderBottomWidth:r,borderTopWidth:o,borderRightWidth:i,borderWidth:a,borderStyle:s,borderColor:l,...u}=Vv("Divider",e),{className:c,orientation:d="horizontal",__css:f,...p}=Mv(e),h={vertical:{borderLeftWidth:n||i||a||"1px",height:"100%"},horizontal:{borderBottomWidth:r||o||a||"1px",width:"100%"}};return(0,ei.jsx)(Tv.hr,{ref:t,"aria-orientation":d,...p,__css:{...u,border:"0",borderColor:l,borderStyle:s,...h[d],...f},className:zv("chakra-divider",c)})}));function zO(e,t){const n=e.composedPath?.()[0]??e.target;return!(n&&!FO(n).contains(n))&&!t.current?.contains(n)}function FO(e){return e?.ownerDocument??document}function LO(e){return ti(e)?e.ownerDocument:document}function DO(e){const t=e.current;if(!t)return!1;const n=function(e){return LO(e).activeElement}(t);return!(!n||t.contains(n)||(r=n,!(r&&ti(r)&&xk(r))||(e=>yk(e)&&-1===e.tabIndex)(r)));var r}function NO(e){return e.sort(((e,t)=>{const n=e.compareDocumentPosition(t);if(n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(n&Node.DOCUMENT_POSITION_DISCONNECTED||n&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0}))}function BO(e,t,n){let r=e+1;return n&&r>=t&&(r=0),r}function VO(e,t,n){let r=e-1;return n&&r<0&&(r=t),r}MO.displayName="Divider";const $O="undefined"!=typeof window?e.useLayoutEffect:e.useEffect;var WO=Object.defineProperty,UO=(e,t,n)=>(((e,t,n)=>{t in e?WO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);class HO{constructor(){UO(this,"descendants",new Map),UO(this,"register",(e=>{var t;if(null!=e)return"object"==typeof(t=e)&&"nodeType"in t&&t.nodeType===Node.ELEMENT_NODE?this.registerNode(e):t=>{this.registerNode(t,e)}})),UO(this,"unregister",(e=>{this.descendants.delete(e);const t=NO(Array.from(this.descendants.keys()));this.assignIndex(t)})),UO(this,"destroy",(()=>{this.descendants.clear()})),UO(this,"assignIndex",(e=>{this.descendants.forEach((t=>{const n=e.indexOf(t.node);t.index=n,t.node.dataset.index=t.index.toString()}))})),UO(this,"count",(()=>this.descendants.size)),UO(this,"enabledCount",(()=>this.enabledValues().length)),UO(this,"values",(()=>Array.from(this.descendants.values()).sort(((e,t)=>e.index-t.index)))),UO(this,"enabledValues",(()=>this.values().filter((e=>!e.disabled)))),UO(this,"item",(e=>{if(0!==this.count())return this.values()[e]})),UO(this,"enabledItem",(e=>{if(0!==this.enabledCount())return this.enabledValues()[e]})),UO(this,"first",(()=>this.item(0))),UO(this,"firstEnabled",(()=>this.enabledItem(0))),UO(this,"last",(()=>this.item(this.descendants.size-1))),UO(this,"lastEnabled",(()=>{const e=this.enabledValues().length-1;return this.enabledItem(e)})),UO(this,"indexOf",(e=>e?this.descendants.get(e)?.index??-1:-1)),UO(this,"enabledIndexOf",(e=>null==e?-1:this.enabledValues().findIndex((t=>t.node.isSameNode(e))))),UO(this,"next",((e,t=!0)=>{const n=BO(e,this.count(),t);return this.item(n)})),UO(this,"nextEnabled",((e,t=!0)=>{const n=this.item(e);if(!n)return;const r=BO(this.enabledIndexOf(n.node),this.enabledCount(),t);return this.enabledItem(r)})),UO(this,"prev",((e,t=!0)=>{const n=VO(e,this.count()-1,t);return this.item(n)})),UO(this,"prevEnabled",((e,t=!0)=>{const n=this.item(e);if(!n)return;const r=VO(this.enabledIndexOf(n.node),this.enabledCount()-1,t);return this.enabledItem(r)})),UO(this,"registerNode",((e,t)=>{if(!e||this.descendants.has(e))return;const n=NO(Array.from(this.descendants.keys()).concat(e));t?.disabled&&(t.disabled=!!t.disabled);const r={node:e,index:-1,...t};this.descendants.set(e,r),this.assignIndex(n)}))}}const[qO,YO,XO,GO]=function(){const[t,n]=xl({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});return[t,n,()=>{const t=(0,e.useRef)(new HO);return $O((()=>()=>t.current.destroy())),t.current},t=>{const r=n(),[o,i]=(0,e.useState)(-1),a=(0,e.useRef)(null);$O((()=>()=>{a.current&&r.unregister(a.current)}),[]),$O((()=>{if(!a.current)return;const e=Number(a.current.dataset.index);o==e||Number.isNaN(e)||i(e)}));const s=t?r.register(t):r.register;return{descendants:r,index:o,enabledIndex:r.enabledIndexOf(a.current),register:Eg(s,a)}}]}(),[KO,QO]=xl({strict:!1,name:"MenuContext"});function ZO(t={}){const{id:n,closeOnSelect:r=!0,closeOnBlur:o=!0,initialFocusRef:i,autoSelect:a=!0,isLazy:s,isOpen:l,defaultIsOpen:u,onClose:c,onOpen:d,placement:f="bottom-start",lazyBehavior:p="unmount",direction:h,computePositionOnMount:m=!1,...v}=t,g=(0,e.useRef)(null),b=(0,e.useRef)(null),y=(0,e.useRef)(!0),x=XO(),w=(0,e.useCallback)((()=>{requestAnimationFrame((()=>{g.current?.focus({preventScroll:!1})}))}),[]),k=(0,e.useCallback)((()=>{const e=setTimeout((()=>{if(i)i.current?.focus();else if(x.count()){const e=x.firstEnabled();e&&A(e.index)}else g.current?.focus({preventScroll:!1})}));F.current.add(e)}),[x,i]),S=(0,e.useCallback)((()=>{const e=setTimeout((()=>{if(x.count()){const e=x.lastEnabled();e&&A(e.index)}else g.current?.focus({preventScroll:!1})}));F.current.add(e)}),[x]),E=(0,e.useCallback)((()=>{d?.(),a?k():w()}),[a,k,w,d]),{isOpen:C,onOpen:_,onClose:O,onToggle:P}=vS({isOpen:l,defaultIsOpen:u,onClose:c,onOpen:E});!function(t){const{ref:n,handler:r,enabled:o=!0}=t,i=hu(r),a=(0,e.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;(0,e.useEffect)((()=>{if(!o)return;const e=e=>{zO(e,n)&&(a.isPointerDown=!0)},t=e=>{a.ignoreEmulatedMouseEvents?a.ignoreEmulatedMouseEvents=!1:a.isPointerDown&&r&&zO(e,n)&&(a.isPointerDown=!1,i(e))},s=e=>{a.ignoreEmulatedMouseEvents=!0,r&&a.isPointerDown&&zO(e,n)&&(a.isPointerDown=!1,i(e))},l=FO(n.current);return l.addEventListener("mousedown",e,!0),l.addEventListener("mouseup",t,!0),l.addEventListener("touchstart",e,!0),l.addEventListener("touchend",s,!0),()=>{l.removeEventListener("mousedown",e,!0),l.removeEventListener("mouseup",t,!0),l.removeEventListener("touchstart",e,!0),l.removeEventListener("touchend",s,!0)}}),[r,n,i,a,o])}({enabled:C&&o,ref:g,handler:e=>{const t=e.composedPath?.()?.[0]??e.target;b.current?.contains(t)||O()}});const R=QE({...v,enabled:C||m,placement:f,direction:h}),[T,A]=(0,e.useState)(-1);!function(e,t){const{shouldFocus:n,visible:r,focusRef:o}=t,i=n&&!r;pu((()=>{if(!i)return;if(DO(e))return;const t=o?.current||e.current;let n;return t?(n=requestAnimationFrame((()=>{t.focus({preventScroll:!0})})),()=>{cancelAnimationFrame(n)}):void 0}),[i,e,o])}(g,{focusRef:b,visible:C,shouldFocus:!0});const I=function(t){const{isOpen:n,ref:r}=t,[o,i]=(0,e.useState)(n),[a,s]=(0,e.useState)(!1);return(0,e.useEffect)((()=>{a||(i(n),s(!0))}),[n,a,o]),gS((()=>r.current),"animationend",(()=>{i(n)})),{present:!(!n&&!o),onComplete(){const e=function(e){return LO(e)?.defaultView??window}(r.current),t=new e.CustomEvent("animationend",{bubbles:!0});r.current?.dispatchEvent(t)}}}({isOpen:C,ref:g}),[j,M]=function(t,...n){const r=function(t,n){const r=(0,e.useId)();return(0,e.useMemo)((()=>t||[n,r].filter(Boolean).join("-")),[t,n,r])}(t);return(0,e.useMemo)((()=>n.map((e=>`${e}-${r}`))),[r,n])}(n,"menu-button","menu-list"),z=(0,e.useCallback)((()=>{_(),w()}),[_,w]),F=(0,e.useRef)(new Set([]));(0,e.useEffect)((()=>{const e=F.current;return()=>{e.forEach((e=>clearTimeout(e))),e.clear()}}),[]),pu((()=>{C||(A(-1),g.current?.scrollTo(0,0))}),[C]),pu((()=>{C&&-1===T&&w()}),[T,C]),(0,e.useEffect)((()=>{if(!C)return;const e=x.item(T);e?.node?.focus({preventScroll:!y.current})}),[x,T,C]);const L=(0,e.useCallback)((()=>{_(),k()}),[k,_]),D=(0,e.useCallback)((()=>{y.current=!0,_(),S()}),[_,S]),N=(0,e.useCallback)((()=>{const e=function(e){return e?.ownerDocument??document}(g.current),t=g.current?.contains(e.activeElement);if(!C||t)return;const n=x.item(T)?.node;n?.focus({preventScroll:!y.current})}),[C,T,x]);return{openAndFocusMenu:z,openAndFocusFirstItem:L,openAndFocusLastItem:D,onTransitionEnd:N,unstable__animationState:I,descendants:x,popper:R,buttonId:j,menuId:M,forceUpdate:R.forceUpdate,orientation:"vertical",isOpen:C,onToggle:P,onOpen:_,onClose:O,menuRef:g,buttonRef:b,focusedIndex:T,closeOnSelect:r,closeOnBlur:o,autoSelect:a,setFocusedIndex:A,isLazy:s,lazyBehavior:p,initialFocusRef:i,scrollIntoViewRef:y}}const[JO,eP]=xl({name:"MenuStylesContext",errorMessage:"useMenuStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Menu />\" "}),tP=t=>{const{children:n}=t,r=$v("Menu",t),o=Mv(t),{direction:i}=Nv(),{descendants:a,...s}=ZO({...o,direction:i}),l=(0,e.useMemo)((()=>s),[s]),{isOpen:u,onClose:c,forceUpdate:d}=l;return(0,ei.jsx)(qO,{value:a,children:(0,ei.jsx)(KO,{value:l,children:(0,ei.jsx)(JO,{value:r,children:Ps(n,{isOpen:u,onClose:c,forceUpdate:d})})})})};tP.displayName="Menu";const nP=t=>{const{className:n,children:r,...o}=t,i=eP(),a=e.Children.only(r),s=(0,e.isValidElement)(a)?(0,e.cloneElement)(a,{focusable:"false","aria-hidden":!0,className:zv("chakra-menu__icon",a.props.className)}):null,l=zv("chakra-menu__icon-wrapper",n);return(0,ei.jsx)(Tv.span,{className:l,...o,__css:i.icon,children:s})};nP.displayName="MenuIcon";var rP=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],oP=function(){var e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0,n=String(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toLowerCase(),r=String(t.getOptionValue(e)).toLowerCase(),o=String(t.getOptionLabel(e)).toLowerCase();return r===n||o===n},iP={formatCreateLabel:function(e){return'Create "'.concat(e,'"')},isValidNewOption:function(e,t,n,r){return!(!e||t.some((function(t){return oP(e,t,r)}))||n.some((function(t){return oP(e,t,r)})))},getNewOptionData:function(e,t){return{label:t,value:e,__isNew__:!0}}};function aP(t){var n=t.allowCreateWhileLoading,r=void 0!==n&&n,o=t.createOptionPosition,i=void 0===o?"last":o,a=t.formatCreateLabel,s=void 0===a?iP.formatCreateLabel:a,l=t.isValidNewOption,u=void 0===l?iP.isValidNewOption:l,c=t.getNewOptionData,d=void 0===c?iP.getNewOptionData:c,f=t.onCreateOption,p=t.options,h=void 0===p?[]:p,m=t.onChange,v=cC(t,rP),g=v.getOptionValue,b=void 0===g?hO:g,y=v.getOptionLabel,x=void 0===y?pO:y,w=v.inputValue,k=v.isLoading,S=v.isMulti,E=v.value,C=v.name,_=(0,e.useMemo)((function(){return u(w,HC(E),h,{getOptionValue:b,getOptionLabel:x})?d(w,s(w)):void 0}),[s,d,x,b,w,u,h,E]),O=(0,e.useMemo)((function(){return!r&&k||!_?h:"first"===i?[_].concat(vC(h)):[].concat(vC(h),[_])}),[r,i,k,_,h]),P=(0,e.useCallback)((function(e,t){if("select-option"!==t.action)return m(e,t);var n=Array.isArray(e)?e:[e];if(n[n.length-1]!==_)m(e,t);else if(f)f(w);else{var r=d(w,w),o={action:"create-option",name:C,option:r};m(i_(S,[].concat(vC(HC(E)),[r]),r),o)}}),[d,w,S,C,_,f,m,E]);return aC(aC({},v),{},{options:O,onChange:P})}var sP=(0,e.forwardRef)((function(t,n){var r=aP(fC(t));return e.createElement(AO,oa({ref:n},r))})),lP=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"];function uP(t){var n=t.defaultOptions,r=void 0!==n&&n,o=t.cacheOptions,i=void 0!==o&&o,a=t.loadOptions;t.options;var s=t.isLoading,l=void 0!==s&&s,u=t.onInputChange,c=t.filterOption,d=void 0===c?null:c,f=cC(t,lP),p=f.inputValue,h=(0,e.useRef)(void 0),m=(0,e.useRef)(!1),v=uC((0,e.useState)(Array.isArray(r)?r:void 0),2),g=v[0],b=v[1],y=uC((0,e.useState)(void 0!==p?p:""),2),x=y[0],w=y[1],k=uC((0,e.useState)(!0===r),2),S=k[0],E=k[1],C=uC((0,e.useState)(void 0),2),_=C[0],O=C[1],P=uC((0,e.useState)([]),2),R=P[0],T=P[1],A=uC((0,e.useState)(!1),2),I=A[0],j=A[1],M=uC((0,e.useState)({}),2),z=M[0],F=M[1],L=uC((0,e.useState)(void 0),2),D=L[0],N=L[1],B=uC((0,e.useState)(void 0),2),V=B[0],$=B[1];i!==V&&(F({}),$(i)),r!==D&&(b(Array.isArray(r)?r:void 0),N(r)),(0,e.useEffect)((function(){return m.current=!0,function(){m.current=!1}}),[]);var W=(0,e.useCallback)((function(e,t){if(!a)return t();var n=a(e,t);n&&"function"==typeof n.then&&n.then(t,(function(){return t()}))}),[a]);(0,e.useEffect)((function(){!0===r&&W(x,(function(e){m.current&&(b(e||[]),E(!!h.current))}))}),[]);var U=(0,e.useCallback)((function(e,t){var n=function(e,t,n){if(n){var r=n(e,t);if("string"==typeof r)return r}return e}(e,t,u);if(!n)return h.current=void 0,w(""),O(""),T([]),E(!1),void j(!1);if(i&&z[n])w(n),O(n),T(z[n]),E(!1),j(!1);else{var r=h.current={};w(n),E(!0),j(!_),W(n,(function(e){m&&r===h.current&&(h.current=void 0,E(!1),O(n),T(e||[]),j(!1),F(e?aC(aC({},z),{},ew({},n,e)):z))}))}}),[i,W,_,z,u]),H=I?[]:x&&_?R:g||[];return aC(aC({},f),{},{options:H,isLoading:S||l,onInputChange:U,filterOption:d})}var cP=(0,e.forwardRef)((function(t,n){var r=fC(uP(t));return e.createElement(AO,oa({ref:n},r))})),dP=(0,e.forwardRef)((function(t,n){var r=aP(fC(uP(t)));return e.createElement(AO,oa({ref:n},r))})),fP=e=>{let{className:t,clearValue:n,cx:r,getStyles:o,getClassNames:i,getValue:a,hasValue:s,isMulti:l,isRtl:u,options:c,selectOption:d,selectProps:f,setValue:p,theme:h,...m}=e;return{...m}},pP=e=>{let t=(e=>(e=>"string"==typeof e&&["sm","md","lg"].includes(e))(e)?e:"xs"===e?"sm":"xl"===e?"lg":"md")(Nv().components.Input.defaultProps.size),n=null!=e?e:t;return jO("string"==typeof n?[n]:n,{fallback:"md"})||t},hP=e=>(0,ei.jsx)(Uv,{role:"presentation",focusable:"false","aria-hidden":"true",...e,children:(0,ei.jsx)("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),mP=e=>(0,ei.jsx)(Uv,{focusable:"false","aria-hidden":!0,...e,children:(0,ei.jsx)("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})}),vP=e=>e?{bottom:"top",top:"bottom"}[e]:"top",gP=e=>(0,ei.jsx)("svg",{viewBox:"0 0 14 14",width:"1em",height:"1em",...e,children:(0,ei.jsx)("polygon",{fill:"currentColor",points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"})}),bP=e=>"object"==typeof e&&null!==e&&"isFixed"in e&&"boolean"==typeof e.isFixed,yP=e=>(0,ei.jsx)(Uv,{verticalAlign:"inherit",viewBox:"0 0 512 512",...e,children:(0,ei.jsx)("path",{fill:"currentColor",d:"M289.94 256l95-95A24 24 0 00351 127l-95 95-95-95a24 24 0 00-34 34l95 95-95 95a24 24 0 1034 34l95-95 95 95a24 24 0 0034-34z"})}),xP={ClearIndicator:e=>{let{children:t,className:n,cx:r,innerProps:o,selectProps:{chakraStyles:i,size:a}}=e,s={...Vv("CloseButton",{size:pP(a)}),marginX:1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,cursor:"pointer"},l=null!=i&&i.clearIndicator?i.clearIndicator(s,e):s,u={width:"1em",height:"1em"},c=null!=i&&i.crossIcon?i.crossIcon(u,e):u;return(0,ei.jsx)(zg,{role:"button",className:r({indicator:!0,"clear-indicator":!0},n),sx:l,"aria-label":"Clear selected options",...o,children:t||(0,ei.jsx)(mP,{sx:c})})},Control:e=>{let{className:t,cx:n,children:r,innerRef:o,innerProps:i,isDisabled:a,isFocused:s,menuIsOpen:l,selectProps:{chakraStyles:u,size:c,variant:d,focusBorderColor:f,errorBorderColor:p,isInvalid:h,isReadOnly:m}}=e,v=pP(c),{field:{height:g,h:b,...y}}=$v("Input",{size:v,variant:d,focusBorderColor:f,errorBorderColor:p}),x={...y,position:"relative",display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:"wrap",padding:0,overflow:"hidden",height:"auto",minH:g||b,...a?{pointerEvents:"none"}:{}},w=null!=u&&u.control?u.control(x,e):x;return(0,ei.jsx)(zg,{ref:o,className:n({control:!0,"control--is-disabled":a,"control--is-focused":s,"control--menu-is-open":l},t),sx:w,...i,"data-focus":!!s||void 0,"data-focus-visible":!!s||void 0,"data-invalid":!!h||void 0,"data-disabled":!!a||void 0,"data-readonly":!!m||void 0,children:r})},DropdownIndicator:e=>{let{children:t,className:n,cx:r,innerProps:o,selectProps:{chakraStyles:i,useBasicStyles:a,size:s,focusBorderColor:l,errorBorderColor:u,variant:c}}=e,d=pP(s),f=$v("Input",{size:d,variant:c,focusBorderColor:l,errorBorderColor:u}),p={sm:"16px",md:"20px",lg:"24px"}[d],h={...f.addon,display:"flex",alignItems:"center",justifyContent:"center",height:"100%",borderRadius:0,borderWidth:0,fontSize:p,...a&&{background:"transparent",padding:0,width:6,marginRight:2,marginLeft:1,cursor:"inherit"}},m=null!=i&&i.dropdownIndicator?i.dropdownIndicator(h,e):h,v={height:"1em",width:"1em"},g=null!=i&&i.downChevron?i.downChevron(v,e):v;return(0,ei.jsx)(zg,{...o,className:r({indicator:!0,"dropdown-indicator":!0},n),sx:m,children:t||(0,ei.jsx)(hP,{sx:g})})},Group:e=>{let{children:t,className:n,cx:r,theme:o,getStyles:i,Heading:a,headingProps:s,label:l,selectProps:u,innerProps:c,getClassNames:d}=e,{chakraStyles:f}=u,p={},h=null!=f&&f.group?f.group(p,e):p;return(0,ei.jsxs)(zg,{...c,className:r({group:!0},n),sx:h,children:[(0,ei.jsx)(a,{...s,selectProps:u,cx:r,theme:o,getStyles:i,getClassNames:d,children:l}),(0,ei.jsx)(zg,{children:t})]})},GroupHeading:e=>{let{cx:t,className:n,selectProps:{chakraStyles:r,size:o,hasStickyGroupHeaders:i}}=e,{data:a,...s}=fP(e),l=$v("Menu"),u=pP(o),c={...l.groupTitle,fontSize:{sm:"xs",md:"sm",lg:"md"}[u],padding:{sm:"0.4rem 0.8rem",md:"0.5rem 1rem",lg:"0.6rem 1.2rem"}[u],margin:0,borderBottomWidth:i?"1px":0,position:i?"sticky":"static",top:-2,bg:l.list.bg,zIndex:1},d=null!=r&&r.groupHeading?r.groupHeading(c,e):c;return(0,ei.jsx)(zg,{...s,className:t({"group-heading":!0},n),sx:d})},IndicatorSeparator:e=>{let{className:t,cx:n,selectProps:{chakraStyles:r,useBasicStyles:o,variant:i}}=e,a={opacity:1,...o||"outline"!==i?{display:"none"}:{}},s=null!=r&&r.indicatorSeparator?r.indicatorSeparator(a,e):a;return(0,ei.jsx)(MO,{className:n({"indicator-separator":!0},t),sx:s,orientation:"vertical"})},IndicatorsContainer:e=>{let{children:t,className:n,cx:r,innerProps:o,selectProps:{chakraStyles:i}}=e,a={display:"flex",alignItems:"center",alignSelf:"stretch",flexShrink:0},s=null!=i&&i.indicatorsContainer?i.indicatorsContainer(a,e):a;return(0,ei.jsx)(zg,{...o,className:r({indicators:!0},n),sx:s,children:t})},Input:e=>{let{className:t,cx:n,value:r,selectProps:{chakraStyles:o,isReadOnly:i}}=e,{innerRef:a,isDisabled:s,isHidden:l,inputClassName:u,...c}=fP(e),d={gridArea:"1 / 2",minW:"2px",border:0,margin:0,outline:0,padding:0},f={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content",color:"inherit",marginX:"0.125rem",paddingY:"0.125rem",visibility:s?"hidden":"visible",transform:r?"translateZ(0)":"",_after:{content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre",padding:0,...d}},p=null!=o&&o.inputContainer?o.inputContainer(f,e):f,h={background:0,opacity:l?0:1,width:"100%",...d},m=null!=o&&o.input?o.input(h,e):h;return(0,ei.jsx)(zg,{className:n({"input-container":!0},t),"data-value":r||"",sx:p,children:(0,ei.jsx)(Tv.input,{className:n({input:!0},u),ref:a,sx:m,disabled:s,readOnly:!!i||void 0,...c})})},LoadingIndicator:e=>{let{className:t,cx:n,innerProps:r,selectProps:{chakraStyles:o,size:i},color:a,emptyColor:s,speed:l,thickness:u,spinnerSize:c}=e,d={sm:"xs",md:"sm",lg:"md"}[pP(i)],f={marginRight:3},p=null!=o&&o.loadingIndicator?o.loadingIndicator(f,e):f;return(0,ei.jsx)(Yv,{className:n({indicator:!0,"loading-indicator":!0},t),sx:p,...r,size:c||d,color:a,emptyColor:s,speed:l,thickness:u})},LoadingMessage:e=>{let{children:t,className:n,cx:r,innerProps:o,selectProps:{chakraStyles:i,size:a}}=e,s=pP(a),l={color:"chakra-subtle-text",textAlign:"center",paddingY:{sm:"6px",md:"8px",lg:"10px"}[s],fontSize:s},u=null!=i&&i.loadingMessage?i.loadingMessage(l,e):l;return(0,ei.jsx)(zg,{...o,className:r({"menu-notice":!0,"menu-notice--loading":!0},n),sx:u,children:t})},Menu:e=>{let{className:t,cx:n,children:r,innerProps:o,innerRef:i,placement:a,selectProps:{chakraStyles:s}}=e,l={position:"absolute",[vP(a)]:"100%",marginY:"8px",width:"100%",zIndex:1},u=null!=s&&s.menu?s.menu(l,e):l;return(0,ei.jsx)(tP,{children:(0,ei.jsx)(zg,{...o,ref:i,className:n({menu:!0},t),sx:u,children:r})})},MenuList:e=>{var t;let{className:n,cx:r,innerRef:o,children:i,maxHeight:a,isMulti:s,innerProps:l,selectProps:{chakraStyles:u,size:c,variant:d,focusBorderColor:f,errorBorderColor:p}}=e,h=$v("Menu"),m=$v("Input",{size:pP(c),variant:d,focusBorderColor:f,errorBorderColor:p}).field,v={...h.list,minW:"100%",maxHeight:`${a}px`,overflowY:"auto","--input-border-radius":null==m?void 0:m["--input-border-radius"],borderRadius:(null==m?void 0:m.borderRadius)||(null==(t=h.list)?void 0:t.borderRadius),position:"relative",WebkitOverflowScrolling:"touch"},g=null!=u&&u.menuList?u.menuList(v,e):v;return(0,ei.jsx)(zg,{...l,className:r({"menu-list":!0,"menu-list--is-multi":s},n),sx:g,ref:o,children:i})},MultiValue:e=>{let{children:t,className:n,components:r,cx:o,data:i,innerProps:a,isDisabled:s,isFocused:l,removeProps:u,selectProps:c,cropWithEllipsis:d}=e,{Container:f,Label:p,Remove:h}=r,{chakraStyles:m,colorScheme:v,tagVariant:g,size:b}=c,y=pP(b),x="",w="",k=!1;(e=>"object"==typeof e&&null!==e&&"colorScheme"in e&&"string"==typeof e.colorScheme)(i)&&(x=i.colorScheme),(e=>"object"==typeof e&&null!==e&&"variant"in e&&"string"==typeof e.variant)(i)&&(w=i.variant),bP(i)&&(k=i.isFixed);let S=$v("Tag",{size:y,colorScheme:x||v,variant:w||g||(k?"solid":"subtle")}),E={...S.container,display:"flex",alignItems:"center",minWidth:0,margin:"0.125rem"},C=null!=m&&m.multiValue?m.multiValue(E,e):E,_={...S.label,overflow:"hidden",textOverflow:d||void 0===d?"ellipsis":void 0,whiteSpace:"nowrap"},O=null!=m&&m.multiValueLabel?m.multiValueLabel(_,e):_,P={...S.closeButton,display:"flex",alignItems:"center",justifyContent:"center"},R=null!=m&&m.multiValueRemove?m.multiValueRemove(P,e):P;return(0,ei.jsxs)(f,{data:i,innerProps:{className:o({"multi-value":!0,"multi-value--is-disabled":s},n),...a},sx:C,selectProps:c,children:[(0,ei.jsx)(p,{data:i,innerProps:{className:o({"multi-value__label":!0},n)},sx:O,selectProps:c,children:t}),(0,ei.jsx)(h,{data:i,innerProps:{className:o({"multi-value__remove":!0},n),"aria-label":`Remove ${t||"option"}`,...u},sx:R,selectProps:c,isFocused:l})]})},MultiValueContainer:e=>{let{children:t,innerProps:n,sx:r}=e;return(0,ei.jsx)(Tv.span,{...n,sx:r,children:t})},MultiValueLabel:e=>{let{children:t,innerProps:n,sx:r}=e;return(0,ei.jsx)(Tv.span,{...n,sx:r,children:t})},MultiValueRemove:e=>{let{children:t,innerProps:n,isFocused:r,data:o,sx:i}=e;return bP(o)&&o.isFixed?null:(0,ei.jsx)(zg,{...n,role:"button",sx:i,"data-focus":!!r||void 0,"data-focus-visible":!!r||void 0,children:t||(0,ei.jsx)(yP,{})})},NoOptionsMessage:e=>{let{children:t,className:n,cx:r,innerProps:o,selectProps:{chakraStyles:i,size:a}}=e,s=pP(a),l={color:"chakra-subtle-text",textAlign:"center",paddingY:{sm:"6px",md:"8px",lg:"10px"}[s],fontSize:s},u=null!=i&&i.noOptionsMessage?i.noOptionsMessage(l,e):l;return(0,ei.jsx)(zg,{...o,className:r({"menu-notice":!0,"menu-notice--no-options":!0},n),sx:u,children:t})},Option:e=>{let{className:t,cx:n,innerRef:r,innerProps:o,children:i,isFocused:a,isDisabled:s,isSelected:l,selectProps:{chakraStyles:u,size:c,isMulti:d,hideSelectedOptions:f,selectedOptionStyle:p,selectedOptionColorScheme:h}}=e,m=$v("Menu").item,v=pP(c),g=Fa(`${h}.500`,`${h}.300`),b=Fa("white","black"),y="check"===p&&(!d||!1===f),x={...m,cursor:"pointer",display:"flex",alignItems:"center",width:"100%",textAlign:"start",fontSize:v,paddingX:{sm:"0.6rem",md:"0.8rem",lg:"1rem"}[v],paddingY:{sm:"0.3rem",md:"0.4rem",lg:"0.5rem"}[v],..."color"===p&&l?{bg:g,color:b,_active:{bg:g}}:{}},w=null!=u&&u.option?u.option(x,e):x;return(0,ei.jsxs)(zg,{...o,className:n({option:!0,"option--is-disabled":s,"option--is-focused":a,"option--is-selected":l},t),sx:w,ref:r,"data-focus":!!a||void 0,"aria-disabled":!!s||void 0,"aria-selected":l,children:[y&&(0,ei.jsx)(nP,{fontSize:"0.8em",marginEnd:"0.75rem",opacity:l?1:0,children:(0,ei.jsx)(gP,{})}),i]})},Placeholder:e=>{let{children:t,className:n,cx:r,innerProps:o,selectProps:{chakraStyles:i}}=e,a={gridArea:"1 / 1 / 2 / 3",color:"chakra-placeholder-color",mx:"0.125rem",userSelect:"none"},s=null!=i&&i.placeholder?i.placeholder(a,e):a;return(0,ei.jsx)(zg,{...o,className:r({placeholder:!0},n),sx:s,children:t})},SelectContainer:e=>{let{children:t,className:n,cx:r,innerProps:o,isDisabled:i,isRtl:a,hasValue:s,selectProps:{chakraStyles:l}}=e,u={position:"relative",direction:a?"rtl":void 0,...i?{cursor:"not-allowed"}:{}},c=null!=l&&l.container?l.container(u,e):u;return(0,ei.jsx)(zg,{...o,className:r({"--is-disabled":i,"--is-rtl":a,"--has-value":s},n),sx:c,children:t})},SingleValue:e=>{let{children:t,className:n,cx:r,isDisabled:o,innerProps:i,selectProps:{chakraStyles:a}}=e,s={gridArea:"1 / 1 / 2 / 3",mx:"0.125rem",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},l=null!=a&&a.singleValue?a.singleValue(s,e):s;return(0,ei.jsx)(zg,{className:r({"single-value":!0,"single-value--is-disabled":o},n),sx:l,...i,children:t})},ValueContainer:e=>{let{children:t,className:n,cx:r,isMulti:o,hasValue:i,innerProps:a,selectProps:{chakraStyles:s,size:l,variant:u,focusBorderColor:c,errorBorderColor:d,controlShouldRenderValue:f}}=e,p={display:o&&i&&f?"flex":"grid",alignItems:"center",flex:1,paddingY:"2px",paddingX:$v("Input",{size:pP(l),variant:u,focusBorderColor:c,errorBorderColor:d}).field.px,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},h=null!=s&&s.valueContainer?s.valueContainer(p,e):p;return(0,ei.jsx)(zg,{...a,className:r({"value-container":!0,"value-container--is-multi":o,"value-container--has-value":i},n),sx:h,children:t})}},wP=xP,kP=({components:e={},theme:t,size:n,colorScheme:r="gray",isDisabled:o,isInvalid:i,isReadOnly:a,required:s,isRequired:l,inputId:u,tagVariant:c,selectedOptionStyle:d="color",selectedOptionColorScheme:f,selectedOptionColor:p,variant:h,focusBorderColor:m,errorBorderColor:v,chakraStyles:g={},onFocus:b,onBlur:y,menuIsOpen:x,...w})=>{var k;let S=Nv(),{variant:E}=S.components.Input.defaultProps,C=function(e){const{isDisabled:t,isInvalid:n,isReadOnly:r,isRequired:o,...i}=by(e);return{...i,disabled:t,readOnly:r,required:o,"aria-invalid":Og(n),"aria-required":Og(o),"aria-readonly":Og(r)}}({id:u,isDisabled:o,isInvalid:i,isRequired:l,isReadOnly:a,onFocus:b,onBlur:y}),_=null!=x?x:!C.readOnly&&void 0,O=d;["color","check"].includes(d)||(O="color");let P=f||p||"blue";return"string"!=typeof P&&(P="blue"),{components:{...wP,...e},colorScheme:r,size:n,tagVariant:c,selectedOptionStyle:O,selectedOptionColorScheme:P,variant:null!=h?h:E,chakraStyles:g,focusBorderColor:m,errorBorderColor:v,onFocus:C.onFocus,onBlur:C.onBlur,isDisabled:C.disabled,isInvalid:!!C["aria-invalid"],inputId:C.id,isReadOnly:C.readOnly,required:null!=s?s:C.required,menuIsOpen:_,...w,"aria-invalid":null!=(k=w["aria-invalid"])?k:C["aria-invalid"]}},SP=(0,e.forwardRef)(((e,t)=>{let n=kP(e);return(0,ei.jsx)(IO,{ref:t,...n})}));function EP(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 CP(e,t,n){return(t=function(e){var t=function(e){if("object"!=OP(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=OP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==OP(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _P(){return _P=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_P.apply(null,arguments)}function OP(e){return OP="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},OP(e)}function PP(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}(0,e.forwardRef)(((e,t)=>{let n=kP(e);return(0,ei.jsx)(sP,{ref:t,...n})})),(0,e.forwardRef)(((e,t)=>{let n=kP(e);return(0,ei.jsx)(cP,{ref:t,...n})})),(0,e.forwardRef)(((e,t)=>{let n=kP(e);return(0,ei.jsx)(dP,{ref:t,...n})}));const RP=function(n){var r=n.setting,o=n.onBoardIconsURL,i=function(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,u=!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(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return PP(e,t);var n={}.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)?PP(e,t):void 0}}(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.")}()}(Vk(),2),a=i[0].settings,s=i[1],l=function(){var e=[];if(r.options){var t=[r.default];Object.keys(r.options).map((function(n,o){return a[r.id]&&("string"!=typeof a[r.id]&&Object.values(a[r.id]).includes(n)?t.push(o):t=n===a[r.id]?[o]:t),e.default="object"===OP(t)&&t.filter((function(e,n){return t.indexOf(e)===n})),e.push({label:r.options[n],value:n})}))}return e},u=function(n){var i=n.radioProps,a=n.label,s=n.identifier,l=n.color,u=n.backgroundColor,c=function(t={}){const{defaultChecked:n,isChecked:r,isFocusable:o,isDisabled:i,isReadOnly:a,isRequired:s,onChange:l,isInvalid:u,name:c,value:d,id:f,"data-radiogroup":p,"aria-describedby":h,...m}=t,v=`radio-${(0,e.useId)()}`,g=my(),b=aS();let y=!g||b||p?v:g.id;y=f??y;const x=i??g?.isDisabled,w=a??g?.isReadOnly,k=s??g?.isRequired,S=u??g?.isInvalid,[E,C]=(0,e.useState)(!1),[_,O]=(0,e.useState)(!1),[P,R]=(0,e.useState)(!1),[T,A]=(0,e.useState)(!1),[I,j]=(0,e.useState)(Boolean(n)),M=void 0!==r,z=M?r:I;(0,e.useEffect)((()=>dy(C)),[]);const F=(0,e.useCallback)((e=>{w||x?e.preventDefault():(M||j(e.currentTarget.checked),l?.(e))}),[M,x,w,l]),L=(0,e.useCallback)((e=>{" "===e.key&&A(!0)}),[A]),D=(0,e.useCallback)((e=>{" "===e.key&&A(!1)}),[A]),N=(0,e.useCallback)(((e={},t=null)=>({...e,ref:t,"data-active":_g(T),"data-hover":_g(P),"data-disabled":_g(x),"data-invalid":_g(S),"data-checked":_g(z),"data-focus":_g(_),"data-focus-visible":_g(_&&E),"data-readonly":_g(w),"aria-hidden":!0,onMouseDown:Hb(e.onMouseDown,(()=>A(!0))),onMouseUp:Hb(e.onMouseUp,(()=>A(!1))),onMouseEnter:Hb(e.onMouseEnter,(()=>R(!0))),onMouseLeave:Hb(e.onMouseLeave,(()=>R(!1)))})),[T,P,x,S,z,_,w,E]),{onFocus:B,onBlur:V}=g??{},$=(0,e.useCallback)(((e={},t=null)=>{const n=x&&!o;return{...e,id:y,ref:t,type:"radio",name:c,value:d,onChange:Hb(e.onChange,F),onBlur:Hb(V,e.onBlur,(()=>O(!1))),onFocus:Hb(B,e.onFocus,(()=>O(!0))),onKeyDown:Hb(e.onKeyDown,L),onKeyUp:Hb(e.onKeyUp,D),checked:z,disabled:n,readOnly:w,required:k,"aria-invalid":Og(S),"aria-disabled":Og(n),"aria-required":Og(k),"data-readonly":_g(w),"aria-describedby":h,style:yy}}),[x,o,y,c,d,F,V,B,L,D,z,w,k,S,h]);return{state:{isInvalid:S,isFocused:_,isChecked:z,isActive:T,isHovered:P,isDisabled:x,isReadOnly:w,isRequired:k},getRadioProps:N,getInputProps:$,getLabelProps:(e={},t=null)=>({...e,ref:t,onMouseDown:Hb(e.onMouseDown,lS),"data-disabled":_g(x),"data-checked":_g(z),"data-invalid":_g(S)}),getRootProps:(e,t=null)=>({htmlFor:y,...e,ref:t,"data-disabled":_g(x),"data-checked":_g(z),"data-invalid":_g(S)}),htmlProps:m}}(i),d=c.state,f=c.getInputProps,p=c.getRadioProps,h=f(),m=p();return t().createElement(zg,{as:"label",marginleft:"0px !important",marginBottom:"0px"},t().createElement("input",h),t().createElement(zg,_P({},m,{cursor:"pointer",borderWidth:"1px",borderRadius:"7px",boxShadow:"md",borderColor:"user_registration_form_setting_minimum_password_strength"===r.id?"#6B6B6B":"#E9E9E9",_checked:{bg:u,borderColor:l},_focus:{boxShadow:"outline"},px:5,py:3,style:{flex:"1 0 30%"}}),"user_registration_login_options_form_template"===r.id||"user_registration_form_template"===r.id||"user_registration_my_account_layout"===r.id?t().createElement(wg,{direction:"column",align:"center"},t().createElement(cS,{src:"".concat(o,"/").concat(s,".png")}),t().createElement(Sg,{fontSize:"12px",fontWeight:"600",color:d.isChecked&&l,mt:2},a)):t().createElement(Sg,{fontSize:"14px",fontWeight:"600",color:d.isChecked?l:"user_registration_form_setting_minimum_password_strength"===r.id?"#6B6B6B":"#212121"},a)))},c=function(e,t,n){var o=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?EP(Object(n),!0).forEach((function(t){CP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},a);if("checkbox"===e)o[t]=n.target.checked?"yes":"no";else if("select"===e)o[t]=n.value;else if("radio"===e)o[t]=Object.keys(r.options)[n];else{var i=[];n.map((function(e){i.push(e.value)})),o[t]=i}s({type:qk,settings:o})},d=function(e){return t().createElement(Uv,_P({viewBox:"0 0 24 24"},e),t().createElement("path",{fill:"#6B6B6B",stroke:"#6B6B6B","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m6 9 6 6 6-6H6Z"}))};return t().createElement(wg,{justify:"space-between",align:"center"},t().createElement(wg,{align:"center",flex:"0 0 40%"},t().createElement(pS,{sx:{fontWeight:"600",fontSize:"15px"}},r.title),t().createElement(oC,{label:r.desc,hasArrow:!0,fontSize:"14px",fontWeight:"400px",backgroundColor:"#383838"},t().createElement("span",{className:"dashicons dashicons-editor-help",style:{color:"#BABABA",marginBottom:"5px"}}))),function(){switch(r.type){case"checkbox":return t().createElement(dS,{flex:"0 0 60%",className:"user-registration-setup-wizard__body--checkbox",name:r.id,id:r.id,onChange:function(e){return c(r.type,r.id,e)},isChecked:"yes"===a[r.id],defaultChecked:r.default});case"select":return t().createElement(SP,{icon:t().createElement(d,null),flex:"0 0 60%",focusBorderColor:"blue.500",className:"user-registration-setup-wizard__body--select",name:r.id,id:r.id,options:l(),onChange:function(e){return c(r.type,r.id,e)},defaultValue:l()[l().default],variant:"outline"});case"multiselect":var e=[];return l().default.map((function(t){return e.push(l()[t])})),t().createElement(SP,{icon:t().createElement(d,null),flex:"0 0 60%",isMulti:!0,focusBorderColor:"blue.500",className:"user-registration-setup-wizard__body--select",name:r.id,id:r.id,options:l(),onChange:function(e){return c(r.type,r.id,e)},defaultValue:e});case"radio":var n={activeBackgroundColor:"#F9FAFC",activeFontColor:"#475BB2"};"user_registration_form_setting_minimum_password_strength"!==r.id||3!=r.default||r.color||(r.color={activeBackgroundColor:"#F5FFF4",activeFontColor:"#4CC741"});var o=oS({name:r.id,defaultValue:a[r.id]?(p=Object.keys(r.options),Object.fromEntries(Object.entries(p).map((function(e){return e.reverse()}))))[a[r.id]]:r.default.toString(),onChange:function(e){"user_registration_form_setting_minimum_password_strength"===r.id&&(0==e?(n.activeBackgroundColor="#FFF4F4",n.activeFontColor="#F25656"):1==e?(n.activeBackgroundColor="#FFFAF5",n.activeFontColor="#EE9936"):2==e?(n.activeBackgroundColor="#FFFCF1",n.activeFontColor="#FFC700"):(n.activeBackgroundColor="#F5FFF4",n.activeFontColor="#4CC741")),r.color=n,c(r.type,r.id,e)}}),i=o.getRootProps,s=o.getRadioProps,f=i();return t().createElement(fS,_P({},f,{sx:{flexWrap:"wrap",gap:"10px"},flex:"1 0 60%"}),Object.keys(r.options).map((function(e,n){return t().createElement(u,{key:e,radioProps:s({value:n.toString()}),label:r.options[e],identifier:e,color:r.color&&r.color.activeFontColor?r.color.activeFontColor:"#475BB2",backgroundColor:r.color&&r.color.activeBackgroundColor?r.color.activeBackgroundColor:"#F9FAFC"})})))}var p}())};function TP(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const AP=function(e){var n=e.sectionSettings,r=e.siteURL,o=e.onBoardIconsURL,i=function(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,u=!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(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return TP(e,t);var n={}.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)?TP(e,t):void 0}}(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.")}()}(Vk(),1)[0].settings;return t().createElement(rS,{direction:"column",spacing:"8",mt:5},n&&n.settings.map((function(e,n){return"user_registration_form_setting_minimum_password_strength"!==e.id||void 0!==i.user_registration_form_setting_enable_strong_password&&"no"!==i.user_registration_form_setting_enable_strong_password?t().createElement(RP,{key:n,setting:e,siteURL:r,onBoardIconsURL:o}):""})))},IP=function(e){var n=e.sectionSettings;return t().createElement(rS,{direction:"column",spacing:"8",mt:5},n.settings.map((function(e,n){return t().createElement(RP,{key:n,setting:e})})))},jP=function(e){var n=e.sectionSettings,r=e.siteURL,o=e.onBoardIconsURL;return t().createElement(rS,{direction:"column",spacing:"8",mt:5},n&&n.settings.map((function(e,n){return t().createElement(RP,{key:n,setting:e,siteURL:r,onBoardIconsURL:o})})))},MP=function(e){var n=e.onBoardIconsURL;return t().createElement(wg,{direction:"column",justifyContent:"space-between",alignItems:"center"},t().createElement(cS,{htmlWidth:"65px",htmlHeight:"65px",src:"".concat(n,"/green-tick-icon.png"),alt:"Onboard Finish"}),t().createElement(kg,{as:"h2",fontSize:"22px",fontWeight:"600",mb:4,mt:4,color:"#222222"},wb("Congratulations, You’re all set! 🎉","user-registration")),t().createElement(zg,{w:"100%",p:4,color:"#2D3559",mt:3,borderTop:"1px solid #DEE0E9"},t().createElement(Sg,{fontSize:"18px",fontWeight:"600",mb:4,mt:4,color:"#383838",textAlign:"center"},wb("Our Popular Addons","user-registration")),t().createElement(wg,{justify:"space-between",wrap:"wrap",gap:"10px"},t().createElement(wg,{flex:"0 0 49%",padding:"10px",justifyContent:"space-between",gap:"10px",width:"358px",height:"125px",borderRadius:"7px",_hover:{boxShadow:"0px 6px 20px rgba(71, 91, 178, 0.08)"},bg:"#FAFAFA"},t().createElement(cS,{htmlWidth:"140px",htmlHeight:"105px",src:"".concat(n,"/advanced-fields.png"),alt:"Advanced Fields",borderRadius:"5px"}),t().createElement(wg,{direction:"column"},t().createElement(Sg,{fontSize:"15px",fontWeight:"600",mt:"6px",mb:"6px",color:"#383838"},wb("Advanced Fields","user-registration")),t().createElement(Sg,{fontSize:"12px",fontWeight:"400",noOfLines:4},wb("Offers extra fields like Section Title, Phone, Profile Picture, HTML, Time Picker, and WYSIWYG for complex forms.","user-registration")))),t().createElement(wg,{flex:"0 0 49%",padding:"10px",justifyContent:"space-between",gap:"10px",width:"358px",height:"125px",borderRadius:"7px",_hover:{boxShadow:"0px 6px 20px rgba(71, 91, 178, 0.08)"},bg:"#FAFAFA"},t().createElement(cS,{htmlWidth:"140px",htmlHeight:"105px",src:"".concat(n,"/woo-extension.png"),alt:"WooCommerce",borderRadius:"5px"}),t().createElement(wg,{direction:"column"},t().createElement(Sg,{fontSize:"15px",fontWeight:"600",mt:"6px",mb:"6px",color:"#383838"},wb("WooCommerce","user-registration")),t().createElement(Sg,{fontSize:"12px",fontWeight:"400",noOfLines:4},wb("Integrate WooCommerce plugin for user registration, enabling user account management of billing, shipping, and orders","user-registration")))),t().createElement(wg,{flex:"0 0 49%",padding:"10px",justifyContent:"space-between",width:"358px",height:"125px",borderRadius:"7px",_hover:{boxShadow:"0px 6px 20px rgba(71, 91, 178, 0.08)"},bg:"#FAFAFA",gap:"10px"},t().createElement(cS,{htmlWidth:"140px",htmlHeight:"105px",src:"".concat(n,"/content-restriction.png"),alt:"Content Restriction",borderRadius:"5px",objectFit:"cover"}),t().createElement(wg,{direction:"column"},t().createElement(Sg,{fontSize:"15px",fontWeight:"600",mt:"6px",mb:"6px",color:"#383838"},wb("Content Restriction","user-registration")),t().createElement(Sg,{fontSize:"12px",fontWeight:"400",noOfLines:4},wb("Easily restrict page or post content to logged-in users or specific user roles with this addon.","user-registration")))),t().createElement(wg,{flex:"0 0 49%",padding:"10px",justifyContent:"space-between",height:"125px",borderRadius:"7px",_hover:{boxShadow:"0px 6px 20px rgba(71, 91, 178, 0.08)"},bg:"#FAFAFA",width:"358px",gap:"10px"},t().createElement(cS,{htmlWidth:"140px",htmlHeight:"105px",src:"".concat(n,"/customize-my-account.png"),alt:"Customize My Account",borderRadius:"5px"}),t().createElement(wg,{direction:"column"},t().createElement(Sg,{fontSize:"15px",fontWeight:"600",mt:"6px",mb:"6px",color:"#383838"},wb("Customize My Account","user-registration")),t().createElement(Sg,{fontSize:"12px",fontWeight:"400",noOfLines:4},wb("Easily create, edit, delete, and sort custom tabs on the account page with custom content","user-registration"))))),t().createElement("center",null,t().createElement(Mg,{href:"https://wpuserregistration.com/features/",isExternal:!0},t().createElement(Ig,{variant:"link",mr:10,ml:10,pt:"6",fontStyle:"italic",textDecoration:"underline",fontSize:"14px",fontWeight:"600",gap:"10px",className:"button-tertiary",background:"none !important",color:"#475BB2 !important",border:"none !important"},wb("View All Addons","user-registration"),t().createElement("svg",{width:"10",height:"11",viewBox:"0 0 10 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t().createElement("path",{d:"M3.75 0.5V1.33333H8.575L0 9.90833L0.591667 10.5L9.16667 1.925V6.75H10V0.5H3.75Z",fill:"#475BB2"})))))))};function zP(e){return zP="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},zP(e)}function FP(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 LP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?FP(Object(n),!0).forEach((function(t){DP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function DP(e,t,n){return(t=function(e){var t=function(e){if("object"!=zP(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=zP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==zP(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function NP(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,u=!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(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return BP(e,t);var n={}.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)?BP(e,t):void 0}}(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.")}()}function BP(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const VP=function(){var n=NP(Vk(),2),r=n[0],o=r.settings,i=r.registrationPageLink,a=n[1],s=NP((0,e.useState)(!1),2),l=s[0],u=s[1],c=NP((0,e.useState)(!1),2),d=c[0],f=c[1],p="undefined"!=typeof _UR_WIZARD_&&_UR_WIZARD_,h=p.adminURL,m=p.siteURL,v=p.defaultFormURL,g=p.urRestApiNonce,b=p.onBoardIconsURL,y=p.restURL,x=p.registrationPageURL,w=NP((0,e.useState)([{key:"install_pages",label:wb("Install Pages","user-registration"),title:wb("Install Pages","user-registration"),description:wb("The following pages have been created automatically.","user-registration"),isDone:!0,component:t().createElement(eS,null)},{key:"general_settings",label:wb("General","user-registration"),title:wb("General Settings","user-registration"),description:wb("Customize your general settings as per your preference.","user-registration"),isDone:!1,component:t().createElement(IP,null)},{key:"registration_settings",label:wb("Registration","user-registration"),title:wb("Registration Settings","user-registration"),description:wb("Customize your registration settings as per your preference.","user-registration"),isDone:!1,component:t().createElement(AP,null)},{key:"my_account_settings",label:wb("My Account","user-registration"),title:wb("My Account Settings","user-registration"),description:wb("Customize my account page settings as per your preference.","user-registration"),isDone:!1,component:t().createElement(jP,null)},{key:"final_step",label:wb("Final Step","user-registration"),isDone:!1,component:t().createElement(MP,null)}]),2),k=w[0],S=w[1],E=NP((0,e.useState)(k[0]),2),C=E[0],_=E[1];(0,e.useEffect)((function(){if(Object.keys(o).length<1)Wb({path:y+"user-registration/v1/getting-started",headers:{"X-WP-Nonce":g}}).then((function(e){var t=k.map((function(t){return t.sectionSettings=e.options[t.key]?e.options[t.key]:{},LP({},t)})),n={};Object.keys(e.options).map((function(t){e.options[t].settings.map((function(e){n[e.id]=e.default}))})),S(t),a({type:qk,settings:n})}));else{var e=new URLSearchParams(window.location.href);if(e.get("step")&&!d){var t=k.findIndex((function(t){return t.key===e.get("step")}));if("final_step"===e.get("step"))return;S((function(t){return t.map((function(t){return t.key===e.get("step")&&("install_pages"===e.get("step")?null!==e.get("installed")?t.isDone=!0:t.isDone=!1:t.isDone=!0),t}))})),"install_pages"===e.get("step")?null!==e.get("installed")?_(k[t+1]):_(k[t]):_(k[t+1])}}}),[o]);var O=function(){var e=k.findIndex((function(e){return e.key===C.key}));S((function(e){return e.map((function(e){return e.key===C.key&&(e.isDone=!0),e}))})),_(k[e+1]),f(!0)},P=function(e){var t=LP({},o);"no"===o.user_registration_form_setting_enable_strong_password&&(t=Object.keys(o).filter((function(e){return"user_registration_form_setting_minimum_password_strength"!==e})).reduce((function(e,t){return e[t]=o[t],e}),{})),"final_step"===C.key&&((t=LP({},t)).user_registration_end_setup_wizard=!0),Wb({path:y+"user-registration/v1/getting-started/save",method:"POST",headers:{"X-WP-Nonce":g},data:{settings:t}}).then((function(t){t.success&&(""!==e?window.location.href=e:O())}))};return t().createElement(yg,null,Object.keys(o).length>0?t().createElement(t().Fragment,null,t().createElement(Ub,{steps:k,activeStep:C,siteURL:m}),t().createElement("div",{className:"user-registration-setup-wizard__body"},k[k.length-1].key===C.key?(0,e.cloneElement)(C.component,{sectionSettings:C.sectionSettings&&{},siteURL:m,onBoardIconsURL:b}):t().createElement(wg,{direction:"column",justifyContent:"space-between",alignItems:"left"},C.title&&t().createElement(kg,{as:"h2",size:"lg",fontSize:"22px",mb:4,color:"#383838",fontWeight:"600"},C.title),C.description&&t().createElement(Sg,{fontSize:"16px",as:"i",color:"#6B6B6B"},C.description),(0,e.cloneElement)(C.component,{sectionSettings:C.sectionSettings,siteURL:m,onBoardIconsURL:b}))),t().createElement("div",{className:"user-registration-setup-wizard__footer"},t().createElement("div",{className:"user-registration-setup-wizard__footer--left"},k[k.length-1].key===C.key?t().createElement(Ig,{variant:"outline",colorScheme:"gray",onClick:function(){u(!0),P(void 0===i?x:i)},disabled:l,style:{backgroundColor:"#FAFAFA",color:"#6B6B6B",border:"1px solid #999999"}},wb("View Registration Page","user-registration")):k[0].key!==C.key?t().createElement(Ig,{variant:"outline",onClick:function(){var e=k.findIndex((function(e){return e.key===C.key}));0!==e&&(S((function(e){return e.map((function(e){return e.key===C.key&&(e.isDone=!1),e}))})),_(k[e-1]))},style:{backgroundColor:"#FAFAFA",color:"#6B6B6B",border:"1px solid #999999"}},wb("Back","user-registration")):""),t().createElement("div",{className:"user-registration-setup-wizard__footer--right"},k[k.length-1].key===C.key?t().createElement(Ig,{colorScheme:"blue",backgroundColor:"#475BB2 !important",color:"#FAFAFA !important",onClick:function(){u(!0),P(v+"&end-setup-wizard=1")},disabled:l},wb("Edit Default Form","user-registration")):t().createElement(t().Fragment,null,k[0].key!==C.key&&t().createElement(Ig,{variant:"link",colorScheme:"gray",onClick:function(){var e=LP({},o);C.sectionSettings.settings.map((function(t){e=Object.keys(e).filter((function(e){return e!==t.id})).reduce((function(t,n){return t[n]=e[n],t}),{})})),a({type:qk,settings:e}),O()},mr:10,ml:10,fontStyle:"italic",textDecoration:"underline",fontSize:"14px",fontWeight:"400",background:"none !important",color:"#6B6B6B !important",border:"none !important"},wb("Skip this step","user-registration")),t().createElement(Ig,{colorScheme:"blue",backgroundColor:"#475BB2 !important",color:"#FAFAFA !important",disabled:k[k.length-1].key===C.key,onClick:function(){P("")}},wb("Next","user-registration"))))),t().createElement("center",null,t().createElement(Mg,null,t().createElement(Ig,{variant:"link",disabled:l,onClick:function(){u(!0);var e="my_account_settings"===C.key||"final_step"===C.key?"":"&activeStep=".concat(C.key);P("".concat(h,"admin.php?page=user-registration-dashboard&end-setup-wizard=1").concat(e))},mr:10,ml:10,pt:"6",fontStyle:"italic",textDecoration:"underline",fontSize:"16px",fontWeight:"400",gap:"10px",className:"button-tertiary",background:"none !important",color:"#6B6B6B !important",border:"none !important"},wb("Go to dashboard","user-registration"),t().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",fill:"currentColor",className:"bi bi-arrow-right",viewBox:"0 0 16 16",marginleft:"100px"},t().createElement("path",{fillRule:"evenodd",d:"M1 8a.5.5 0 0 1 .5-.5h11.793l-3.147-3.146a.5.5 0 0 1 .708-.708l4 4a.5.5 0 0 1 0 .708l-4 4a.5.5 0 0 1-.708-.708L13.293 8.5H1.5A.5.5 0 0 1 1 8z"})))))):t().createElement(zg,{display:"flex",justifyContent:"center",padding:"250px"},t().createElement(Yv,{size:"lg"})))};document.getElementById("user-registration-setup-wizard")&&r.render(t().createElement(Bk,{initialState:{settings:{},isPro:!1},reducer:function(e,t){switch(t.type){case qk:return Uk(Uk({},e),{},{settings:t.settings});case"GET_DEFAULT_REGISTRATION_PAGE":return Uk(Uk({},e),{},{registrationPageLink:t.registrationPageLink});case"GET_IS_PRO":return Uk(Uk({},e),{},{isPro:t.isPro});default:return e}}},t().createElement(VP,null)),document.getElementById("user-registration-setup-wizard"))})()})();