/*! 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 l(e){var t;(t=o.length?o.pop():new s).task=e,r(t)}function s(){this.task=null}e.exports=l,s.prototype.call=function(){try{this.task.call()}catch(e){l.onerror?l.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 l(){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 s,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?(s=1,u=new f(l),c=document.createTextNode(""),u.observe(c,{characterData:!0}),o=function(){s=-s,c.data=s}):o=p(l),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},l={};function s(e){return r.isMemo(e)?a:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[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 l=s(t),m=s(n),v=0;v<a.length;++v){var g=a[v];if(!(i[g]||r&&r[g]||m&&m[g]||l&&l[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,l=n?Symbol.for("react.profiler"):60114,s=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 l:case a:case p:return e;default:switch(e=e&&e.$$typeof){case u:case f:case v:case m:case s: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=s,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=v,t.Memo=m,t.Portal=o,t.Profiler=l,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)===s},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)===l},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===l||e===a||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===s||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 AsyncFunction]",l="[object Function]",s="[object GeneratorFunction]",u="[object Null]",c="[object Object]",d="[object Proxy]",f="[object Undefined]",p=/^\[object .+?Constructor\]$/,h=/^(?:0|[1-9]\d*)$/,m={};m["[object Float32Array]"]=m["[object Float64Array]"]=m["[object Int8Array]"]=m["[object Int16Array]"]=m["[object Int32Array]"]=m["[object Uint8Array]"]=m["[object Uint8ClampedArray]"]=m["[object Uint16Array]"]=m["[object Uint32Array]"]=!0,m[i]=m["[object Array]"]=m["[object ArrayBuffer]"]=m["[object Boolean]"]=m["[object DataView]"]=m["[object Date]"]=m["[object Error]"]=m[l]=m["[object Map]"]=m["[object Number]"]=m[c]=m["[object RegExp]"]=m["[object Set]"]=m["[object String]"]=m["[object WeakMap]"]=!1;var v,g,b,y="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,x="object"==typeof self&&self&&self.Object===Object&&self,w=y||x||Function("return this")(),k=t&&!t.nodeType&&t,S=k&&e&&!e.nodeType&&e,E=S&&S.exports===k,C=E&&y.process,_=function(){try{return S&&S.require&&S.require("util").types||C&&C.binding&&C.binding("util")}catch(e){}}(),O=_&&_.isTypedArray,P=Array.prototype,T=Function.prototype,R=Object.prototype,A=w["__core-js_shared__"],z=T.toString,I=R.hasOwnProperty,M=(v=/[^.]+$/.exec(A&&A.keys&&A.keys.IE_PROTO||""))?"Symbol(src)_1."+v:"",j=R.toString,F=z.call(Object),L=RegExp("^"+z.call(I).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),D=E?w.Buffer:void 0,N=w.Symbol,B=w.Uint8Array,V=(D&&D.allocUnsafe,g=Object.getPrototypeOf,b=Object,function(e){return g(b(e))}),$=Object.create,W=R.propertyIsEnumerable,U=P.splice,H=N?N.toStringTag:void 0,q=function(){try{var e=fe(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Y=D?D.isBuffer:void 0,X=Math.max,G=Date.now,Q=fe(w,"Map"),K=fe(Object,"create"),Z=function(){function e(){}return function(t){if(!Ee(t))return{};if($)return $(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function J(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 ee(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 te(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 ne(e){var t=this.__data__=new ee(e);this.size=t.size}function re(e,t,n){(void 0!==n&&!ge(e[t],n)||void 0===n&&!(t in e))&&ae(e,t,n)}function oe(e,t,n){var r=e[t];I.call(e,t)&&ge(r,n)&&(void 0!==n||t in e)||ae(e,t,n)}function ie(e,t){for(var n=e.length;n--;)if(ge(e[n][0],t))return n;return-1}function ae(e,t,n){"__proto__"==t&&q?q(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}J.prototype.clear=function(){this.__data__=K?K(null):{},this.size=0},J.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},J.prototype.get=function(e){var t=this.__data__;if(K){var n=t[e];return n===r?void 0:n}return I.call(t,e)?t[e]:void 0},J.prototype.has=function(e){var t=this.__data__;return K?void 0!==t[e]:I.call(t,e)},J.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=K&&void 0===t?r:t,this},ee.prototype.clear=function(){this.__data__=[],this.size=0},ee.prototype.delete=function(e){var t=this.__data__,n=ie(t,e);return!(n<0||(n==t.length-1?t.pop():U.call(t,n,1),--this.size,0))},ee.prototype.get=function(e){var t=this.__data__,n=ie(t,e);return n<0?void 0:t[n][1]},ee.prototype.has=function(e){return ie(this.__data__,e)>-1},ee.prototype.set=function(e,t){var n=this.__data__,r=ie(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},te.prototype.clear=function(){this.size=0,this.__data__={hash:new J,map:new(Q||ee),string:new J}},te.prototype.delete=function(e){var t=de(this,e).delete(e);return this.size-=t?1:0,t},te.prototype.get=function(e){return de(this,e).get(e)},te.prototype.has=function(e){return de(this,e).has(e)},te.prototype.set=function(e,t){var n=de(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},ne.prototype.clear=function(){this.__data__=new ee,this.size=0},ne.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ne.prototype.get=function(e){return this.__data__.get(e)},ne.prototype.has=function(e){return this.__data__.has(e)},ne.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ee){var r=n.__data__;if(!Q||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new te(r)}return n.set(e,t),this.size=n.size,this};function le(e){return null==e?void 0===e?f:u:H&&H in Object(e)?function(e){var t=I.call(e,H),n=e[H];try{e[H]=void 0;var r=!0}catch(e){}var o=j.call(e);return r&&(t?e[H]=n:delete e[H]),o}(e):function(e){return j.call(e)}(e)}function se(e){return Ce(e)&&le(e)==i}function ue(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 l=i[++r];if(!1===t(o[l],l,o))break}}(t,(function(i,a){if(o||(o=new ne),Ee(i))!function(e,t,n,r,o,i,a){var l=me(e,n),s=me(t,n),u=a.get(s);if(u)re(e,n,u);else{var d,f,p,h,m,v=i?i(l,s,n+"",e,t,a):void 0,g=void 0===v;if(g){var b=ye(s),y=!b&&we(s),x=!b&&!y&&_e(s);v=s,b||y||x?ye(l)?v=l:Ce(m=l)&&xe(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,t){return e.slice()}(s)):x?(g=!1,h=new(p=(d=s).buffer).constructor(p.byteLength),new B(h).set(new B(p)),f=h,v=new d.constructor(f,d.byteOffset,d.length)):v=[]:function(e){if(!Ce(e)||le(e)!=c)return!1;var t=V(e);if(null===t)return!0;var n=I.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&z.call(n)==F}(s)||be(s)?(v=l,be(l)?v=function(e){return function(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var l=t[i],s=void 0;void 0===s&&(s=e[l]),o?ae(n,l,s):oe(n,l,s)}return n}(e,Oe(e))}(l):Ee(l)&&!ke(l)||(v=function(e){return"function"!=typeof e.constructor||he(e)?{}:Z(V(e))}(s))):g=!1}g&&(a.set(s,v),o(v,s,r,i,a),a.delete(s)),re(e,n,v)}}(e,t,a,n,ue,r,o);else{var l=r?r(me(e,a),i,a+"",e,t,o):void 0;void 0===l&&(l=i),re(e,a,l)}}),Oe)}var ce=q?function(e,t){return q(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:Re;function de(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 fe(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!Ee(e)||function(e){return!!M&&M in e}(e))&&(ke(e)?L:p).test(function(e){if(null!=e){try{return z.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}(n)?n:void 0}function pe(e,t){var n=typeof e;return!!(t=null==t?o:t)&&("number"==n||"symbol"!=n&&h.test(e))&&e>-1&&e%1==0&&e<t}function he(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||R)}function me(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var ve=function(e){var t=0,n=0;return function(){var r=G(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(ce);function ge(e,t){return e===t||e!=e&&t!=t}var be=se(function(){return arguments}())?se:function(e){return Ce(e)&&I.call(e,"callee")&&!W.call(e,"callee")},ye=Array.isArray;function xe(e){return null!=e&&Se(e.length)&&!ke(e)}var we=Y||function(){return!1};function ke(e){if(!Ee(e))return!1;var t=le(e);return t==l||t==s||t==a||t==d}function Se(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function Ee(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ce(e){return null!=e&&"object"==typeof e}var _e=O?function(e){return function(t){return e(t)}}(O):function(e){return Ce(e)&&Se(e.length)&&!!m[le(e)]};function Oe(e){return xe(e)?function(e,t){var n=ye(e),r=!n&&be(e),o=!n&&!r&&we(e),i=!n&&!r&&!o&&_e(e),a=n||r||o||i,l=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],s=l.length;for(var u in e)!t&&!I.call(e,u)||a&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||pe(u,s))||l.push(u);return l}(e,!0):function(e){if(!Ee(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=he(e),n=[];for(var r in e)("constructor"!=r||!t&&I.call(e,r))&&n.push(r);return n}(e)}var Pe,Te=(Pe=function(e,t,n,r){ue(e,t,n,r)},function(e,t){return ve(function(e,t,n){return t=X(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=X(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var l=Array(t+1);++o<t;)l[o]=r[o];return l[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,l)}}(e,t,Re),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=Pe.length>3&&"function"==typeof o?(r--,o):void 0,i&&function(e,t,n){if(!Ee(n))return!1;var r=typeof t;return!!("number"==r?xe(n)&&pe(t,n.length):"string"==r&&t in n)&&ge(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&&Pe(e,a,n,o)}return e})));function Re(e){return e}e.exports=Te},918:(e,t,n)=>{"use strict";e.exports=n(7706)},9551:(e,t,n)=>{"use strict";var r=n(9795);function o(){}var i=null,a={};function l(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 s(e,t){for(;3===e._y;)e=e._z;if(l._B&&l._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 l)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,l._C&&l._C(e,t),d(e)}function d(e){if(1===e._x&&(s(e,e._A),e._A=null),2===e._x){for(var t=0;t<e._A.length;t++)s(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,r,o){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=l,l._B=null,l._C=null,l._D=o,l.prototype.then=function(e,t){if(this.constructor!==l)return function(e,t,n){return new e.constructor((function(r,i){var a=new l(o);a.then(r,i),s(e,new f(t,n,a))}))}(this,e,t);var n=new l(o);return s(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),l=c(void 0),s=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 l;if(!0===e)return o;if(!1===e)return i;if(0===e)return s;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,l){if(l&&("object"==typeof l||"function"==typeof l)){if(l instanceof r&&l.then===r.prototype.then){for(;3===l._y;)l=l._z;return 1===l._y?i(a,l._z):(2===l._y&&n(l._z),void l.then((function(e){i(a,e)}),n))}var s=l.then;if("function"==typeof s)return void new r(s.bind(l)).then((function(e){i(a,e)}),n)}t[a]=l,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 l(e){i||(i=!0,t(e))}function s(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(l,s)}))}))}},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";e.exports=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,l={};function s(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(l[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"),T=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),z=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var I=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var M=Symbol.iterator;function j(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,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(1!==a||1!==l)do{if(a--,0>--l||o[a]!==i[l]){var s="\n"+o[a].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}}while(1<=a&&0<=l);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 T:return"Suspense";case R: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 z: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 Q(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 K(e,t){null!=(t=t.checked)&&y(e,"checked",t,!1)}function Z(e,t){K(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 le(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 se(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?le(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 Te(){}var Re=!1;function Ae(e,t,n){if(Re)return e(t,n);Re=!0;try{return Pe(e,t,n)}finally{Re=!1,(null!==Se||null!==Ee)&&(Te(),Oe())}}function ze(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 Ie=!1;if(c)try{var Me={};Object.defineProperty(Me,"passive",{get:function(){Ie=!0}}),window.addEventListener("test",Me,Me),window.removeEventListener("test",Me,Me)}catch(ce){Ie=!1}function je(e,t,n,r,o,i,a,l,s){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,l,s){Fe=!1,Le=null,je.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 l=!1,s=o.child;s;){if(s===n){l=!0,n=o,r=a;break}if(s===r){l=!0,r=o,n=a;break}s=s.sibling}if(!l){for(s=a.child;s;){if(s===n){l=!0,n=a,r=o;break}if(s===r){l=!0,r=a,n=o;break}s=s.sibling}if(!l)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,Qe=o.unstable_requestPaint,Ke=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-(lt(e)/st|0)|0},lt=Math.log,st=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 l=a&~o;0!==l?r=dt(l):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,Tt=null,Rt=null,At=new Map,zt=new Map,It=[],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 jt(e,t){switch(e){case"focusin":case"focusout":Pt=null;break;case"dragenter":case"dragleave":Tt=null;break;case"mouseover":case"mouseout":Rt=null;break;case"pointerover":case"pointerout":At.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":zt.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!==Tt&&Dt(Tt)&&(Tt=null),null!==Rt&&Dt(Rt)&&(Rt=null),At.forEach(Nt),zt.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!==Tt&&Vt(Tt,e),null!==Rt&&Vt(Rt,e),At.forEach(t),zt.forEach(t),n=0;n<It.length;n++)(r=It[n]).blockedOn===e&&(r.blockedOn=null);for(;0<It.length&&null===(n=It[0]).blockedOn;)Lt(n),null===n.blockedOn&&It.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),jt(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 Tt=Ft(Tt,e,t,n,r,o),!0;case"mouseover":return Rt=Ft(Rt,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,zt.set(i,Ft(zt.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(jt(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 Qt(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 Kt=null,Zt=null,Jt=null;function en(){if(Jt)return Jt;var e,t,n=Zt,r=n.length,o="value"in Kt?Kt.value:Kt.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,ln,sn,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!==sn&&(sn&&"mousemove"===e.type?(an=e.screenX-sn.screenX,ln=e.screenY-sn.screenY):ln=an=0,sn=e),an)},movementY:function(e){return"movementY"in e?e.movementY:ln}}),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})),Tn=on(L({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),Rn=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}),zn=on(An),In=[9,13,27,32],Mn=c&&"CompositionEvent"in window,jn=null;c&&"documentMode"in document&&(jn=document.documentMode);var Fn=c&&"TextEvent"in window&&!jn,Ln=c&&(!Mn||jn&&8<jn&&11>=jn),Dn=String.fromCharCode(32),Nn=!1;function Bn(e,t){switch(e){case"keyup":return-1!==In.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 Qn(e,t){if("change"===e)return t}var Kn=!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;Kn=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 lr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function sr(e,t){if(lr(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)||!lr(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&&sr(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"),Tr=Cr("transitionend"),Rr=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 zr(e,t){Rr.set(e,t),s(t,[e])}for(var Ir=0;Ir<Ar.length;Ir++){var Mr=Ar[Ir];zr(Mr.toLowerCase(),"on"+(Mr[0].toUpperCase()+Mr.slice(1)))}zr(_r,"onAnimationEnd"),zr(Or,"onAnimationIteration"),zr(Pr,"onAnimationStart"),zr("dblclick","onDoubleClick"),zr("focusin","onFocus"),zr("focusout","onBlur"),zr(Tr,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),s("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),s("onBeforeInput",["compositionend","keypress","textInput","paste"]),s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var jr="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(jr));function Lr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,l,s,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 l=r[a],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==i&&o.isPropagationStopped())break e;Lr(o,l,u),i=s}else for(a=0;a<r.length;a++){if(s=(l=r[a]).instance,u=l.currentTarget,l=l.listener,s!==i&&o.isPropagationStopped())break e;Lr(o,l,u),i=s}}}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(Qt(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,!Ie||"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 l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var s=a.tag;if((3===s||4===s)&&((s=a.stateNode.containerInfo)===o||8===s.nodeType&&s.parentNode===o))return;a=a.return}for(;null!==l;){if(null===(a=yo(l)))return;if(5===(s=a.tag)||6===s){r=i=a;continue e}l=l.parentNode}}r=r.return}Ae((function(){var r=i,o=we(n),a=[];e:{var l=Rr.get(e);if(void 0!==l){var s=cn,u=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":s=On;break;case"focusin":u="focus",s=vn;break;case"focusout":u="blur",s=vn;break;case"beforeblur":case"afterblur":s=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":s=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Tn;break;case _r:case Or:case Pr:s=gn;break;case Tr:s=Rn;break;case"scroll":s=fn;break;case"wheel":s=zn;break;case"copy":case"cut":case"paste":s=yn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Pn}var c=!!(4&t),d=!c&&"scroll"===e,f=c?null!==l?l+"Capture":null:l;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=ze(h,f))&&c.push(Hr(h,m,p))),d)break;h=h.return}0<c.length&&(l=new s(l,u,null,n,o),a.push({event:l,listeners:c}))}}if(!(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===xe||!(u=n.relatedTarget||n.fromElement)||!yo(u)&&!u[mo])&&(s||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(u=(u=n.relatedTarget||n.toElement)?yo(u):null)&&(u!==(d=$e(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(s=null,u=r),s!==u)){if(c=hn,m="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Pn,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==s?l:wo(s),p=null==u?l:wo(u),(l=new c(m,h+"leave",s,n,o)).target=d,l.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,s&&u)e:{for(f=u,h=0,p=c=s;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!==s&&Xr(a,l,s,c,!1),null!==u&&null!==d&&Xr(a,d,u,c,!0)}if("select"===(s=(l=r?wo(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var v=Qn;else if(Un(l))if(Kn)v=ar;else{v=or;var g=rr}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(v=ir);switch(v&&(v=v(e,r))?Hn(a,v,n,o):(g&&g(e,l,r),"focusout"===e&&(g=l._wrapperState)&&g.controlled&&"number"===l.type&&ee(l,"number",l.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(Kt=o)?Kt.value:Kt.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=Kt=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=ze(e,n))&&r.unshift(Hr(e,i,o)),null!=(i=ze(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 l=n,s=l.alternate,u=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==u&&(l=u,o?null!=(s=ze(n,i))&&a.unshift(Hr(n,s,l)):o||null!=(s=ze(n,i))&&a.push(Hr(n,s,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Gr=/\r\n?/g,Qr=/\u0000|\uFFFD/g;function Kr(e){return("string"==typeof e?e:""+e).replace(Gr,"\n").replace(Qr,"")}function Zr(e,t,n){if(t=Kr(t),Kr(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(lo)}:ro;function lo(e){setTimeout((function(){throw e}))}function so(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={},To=Co(Po),Ro=Co(!1),Ao=Po;function zo(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 Io(e){return null!=e.childContextTypes}function Mo(){_o(Ro),_o(To)}function jo(e,t,n){if(To.current!==Po)throw Error(i(168));Oo(To,t),Oo(Ro,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=To.current,Oo(To,e),Oo(Ro,Ro.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(Ro),_o(To),Oo(To,e)):_o(Ro),Oo(Ro,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,Qo=null,Ko=1,Zo="";function Jo(e,t){Uo[Ho++]=Yo,Uo[Ho++]=qo,qo=e,Yo=t}function ei(e,t,n){Xo[Go++]=Ko,Xo[Go++]=Zo,Xo[Go++]=Qo,Qo=e;var r=Ko;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,Ko=1<<32-at(t)+o|n<<o|r,Zo=i+e}else Ko=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===Qo;)Qo=Xo[--Go],Xo[Go]=null,Zo=Xo[--Go],Xo[Go]=null,Ko=Xo[--Go],Xo[Go]=null}var ri=null,oi=null,ii=!1,ai=null;function li(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 si(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!==Qo?{id:Ko,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(!si(e,t)){if(ui(e))throw Error(i(418));t=uo(n.nextSibling);var r=ri;t&&si(e,t)?li(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;)li(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=Iu(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 l(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(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===z&&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=ju(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 z:return f(e,(0,t._init)(t._payload),n)}if(te(t)||j(t))return(t=ju(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:s(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 z:return p(e,t,(o=n._init)(n._payload),r)}if(te(n)||j(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 s(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 z:return h(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||j(r))return d(t,e=e.get(n)||null,r,o,null);bi(t,r)}return null}function m(o,i,l,s){for(var u=null,c=null,d=i,m=i=0,v=null;null!==d&&m<l.length;m++){d.index>m?(v=d,d=null):v=d.sibling;var g=p(o,d,l[m],s);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===l.length)return n(o,d),ii&&Jo(o,m),u;if(null===d){for(;m<l.length;m++)null!==(d=f(o,l[m],s))&&(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<l.length;m++)null!==(v=h(d,o,m,l[m],s))&&(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,l,s,u){var c=j(s);if("function"!=typeof c)throw Error(i(150));if(null==(s=c.call(s)))throw Error(i(151));for(var d=c=null,m=l,v=l=0,g=null,b=s.next();null!==m&&!b.done;v++,b=s.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),l=a(y,l,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=s.next())null!==(b=f(o,b.value,u))&&(l=a(b,l,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=s.next())null!==(b=h(m,o,v,b.value,u))&&(e&&null!==b.alternate&&m.delete(null===b.key?v:b.key),l=a(b,l,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,s){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===z&&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=ju(a.props.children,r.mode,s,a.key)).return=r,r=i):((s=Mu(a.type,a.key,a.props,null,r.mode,s)).ref=gi(r,i,a),s.return=r,r=s)}return l(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,s)).return=r,r=i}return l(r);case z:return e(r,i,(c=a._init)(a._payload),s)}if(te(a))return m(r,i,a,s);if(j(a))return v(r,i,a,s);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,s)).return=r,r=i),l(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 Ti(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 Ri(e,t){Ei=e,_i=Ci=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(yl=!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 zi=null;function Ii(e){null===zi?zi=[e]:zi.push(e)}function Mi(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Ii(t)):(n.next=o.next,o.next=n),t.interleaved=n,ji(e,r)}function ji(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&Ps){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,ji(e,n)}return null===(o=r.interleaved)?(t.next=t,Ii(r)):(t.next=o.next,o.next=t),r.interleaved=t,ji(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,l=o.shared.pending;if(null!==l){o.shared.pending=null;var s=l,u=s.next;s.next=null,null===a?i=u:a.next=u,a=s;var c=e.alternate;null!==c&&(l=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===l?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=s)}if(null!==i){var d=o.baseState;for(a=0,c=u=s=null,l=i;;){var f=l.lane,p=l.eventTime;if((r&f)===f){null!==c&&(c=c.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var h=e,m=l;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!==l.callback&&0!==l.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[l]:f.push(l))}else p={eventTime:p,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===c?(u=c=p,s=d):c=c.next=p,a|=f;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(f=l).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===c&&(s=d),o.baseState=s,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);Fs|=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 Qi(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:se(null,"");break;default:t=se(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}_o(qi),Oo(qi,t)}function Ki(){_o(qi),_o(Yi),_o(Xi)}function Zi(e){Gi(Xi.current);var t=Gi(qi.current),n=se(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,la=null,sa=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(!lr(e[n],t[n]))return!1;return!0}function va(e,t,n,r,o,a){if(aa=a,la=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,oa.current=null===e||null===e.memoizedState?Ja:el,e=n(r,o),da){a=0;do{if(da=!1,fa=0,25<=a)throw Error(i(301));a+=1,ua=sa=null,t.updateQueue=null,oa.current=tl,e=n(r,o)}while(da)}if(oa.current=Za,t=null!==sa&&null!==sa.next,aa=0,ua=sa=la=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?la.memoizedState=ua=e:ua=ua.next=e,ua}function ya(){if(null===sa){var e=la.alternate;e=null!==e?e.memoizedState:null}else e=sa.next;var t=null===ua?la.memoizedState:ua.next;if(null!==t)ua=t,sa=e;else{if(null===e)throw Error(i(310));e={memoizedState:(sa=e).memoizedState,baseState:sa.baseState,baseQueue:sa.baseQueue,queue:sa.queue,next:null},null===ua?la.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=sa,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var l=o.next;o.next=a.next,a.next=l}r.baseQueue=o=a,n.pending=null}if(null!==o){a=o.next,r=r.baseState;var s=l=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?(s=u=f,l=r):u=u.next=f,la.lanes|=d,Fs|=d}c=c.next}while(null!==c&&c!==a);null===u?l=r:u.next=s,lr(r,t.memoizedState)||(yl=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=u,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{a=o.lane,la.lanes|=a,Fs|=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 l=o=o.next;do{a=e(a,l.action),l=l.next}while(l!==o);lr(a,t.memoizedState)||(yl=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Sa(){}function Ea(e,t){var n=la,r=ya(),o=t(),a=!lr(r.memoizedState,o);if(a&&(r.memoizedState=o,yl=!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===Ts)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=la.updateQueue)?(t={lastEffect:null,stores:null},la.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)&&Ta(e)}function Oa(e,t,n){return n((function(){Pa(t)&&Ta(e)}))}function Pa(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!lr(e,n)}catch(e){return!0}}function Ta(e){var t=ji(e,1);null!==t&&nu(t,e,1,-1)}function Ra(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,la,e),[t.memoizedState,e]}function Aa(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=la.updateQueue)?(t={lastEffect:null,stores:null},la.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 za(){return ya().memoizedState}function Ia(e,t,n,r){var o=ba();la.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!==sa){var a=sa.memoizedState;if(i=a.destroy,null!==r&&ma(r,a.deps))return void(o.memoizedState=Aa(t,n,i,r))}la.flags|=e,o.memoizedState=Aa(1|t,n,i,r)}function ja(e,t){return Ia(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?(lr(n,t)||(n=mt(),la.lanes|=n,Fs|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,yl=!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)?Qa(t,n):null!==(n=Mi(e,t,n,r))&&(nu(n,e,r,eu()),Ka(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))Qa(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,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,lr(l,a)){var s=t.interleaved;return null===s?(o.next=o,Ii(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Mi(e,t,o,r))&&(nu(n,e,r,o=eu()),Ka(n,t,r))}}function Ga(e){var t=e.alternate;return e===la||null!==t&&t===la}function Qa(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 Ka(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:ja,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ia(4194308,4,Na.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ia(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ia(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,la,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ba().memoizedState=e},useState:Ra,useDebugValue:Va,useDeferredValue:function(e){return ba().memoizedState=e},useTransition:function(){var e=Ra(!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=la,o=ba();if(ii){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===Ts)throw Error(i(349));30&aa||Ca(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,ja(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=Ts.identifierPrefix;if(ii){var n=Zo;t=":"+t+"R"+(n=(Ko&~(1<<32-at(Ko)-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},el={readContext:Ai,useCallback:$a,useContext:Ai,useEffect:Fa,useImperativeHandle:Ba,useInsertionEffect:La,useLayoutEffect:Da,useMemo:Wa,useReducer:wa,useRef:za,useState:function(){return wa(xa)},useDebugValue:Va,useDeferredValue:function(e){return Ua(ya(),sa.memoizedState,e)},useTransition:function(){return[wa(xa)[0],ya().memoizedState]},useMutableSource:Sa,useSyncExternalStore:Ea,useId:qa,unstable_isNewReconciler:!1},tl={readContext:Ai,useCallback:$a,useContext:Ai,useEffect:Fa,useImperativeHandle:Ba,useInsertionEffect:La,useLayoutEffect:Da,useMemo:Wa,useReducer:ka,useRef:za,useState:function(){return ka(xa)},useDebugValue:Va,useDeferredValue:function(e){var t=ya();return null===sa?t.memoizedState=e:Ua(t,sa.memoizedState,e)},useTransition:function(){return[ka(xa)[0],ya().memoizedState]},useMutableSource:Sa,useSyncExternalStore:Ea,useId:qa,unstable_isNewReconciler:!1};function nl(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 rl(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 ol={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 il(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!(t.prototype&&t.prototype.isPureReactComponent&&sr(n,r)&&sr(o,i))}function al(e,t,n){var r=!1,o=Po,i=t.contextType;return"object"==typeof i&&null!==i?i=Ai(i):(o=Io(t)?Ao:To.current,i=(r=null!=(r=t.contextTypes))?zo(e,o):Po),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ol,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function ll(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&&ol.enqueueReplaceState(t,t.state,null)}function sl(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=Io(t)?Ao:To.current,o.context=zo(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(rl(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&&ol.enqueueReplaceState(o,o.state,null),Wi(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function ul(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 cl(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function dl(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var fl="function"==typeof WeakMap?WeakMap:Map;function pl(e,t,n){(n=Ni(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Us||(Us=!0,Hs=r),dl(0,t)},n}function hl(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(){dl(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){dl(0,t),"function"!=typeof r&&(null===qs?qs=new Set([this]):qs.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ml(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fl;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 vl(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 gl(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 bl=x.ReactCurrentOwner,yl=!1;function xl(e,t,n,r){t.child=null===e?ki(t,null,n,r):wi(t,e.child,n,r)}function wl(e,t,n,r,o){n=n.render;var i=t.ref;return Ri(t,o),r=va(e,t,n,r,i,o),n=ga(),null===e||yl?(ii&&n&&ti(t),t.flags|=1,xl(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ul(e,t,o))}function kl(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||zu(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,Sl(e,t,i,r,o))}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:sr)(a,r)&&e.ref===t.ref)return Ul(e,t,o)}return t.flags|=1,(e=Iu(i,r)).ref=t.ref,e.return=t,t.child=e}function Sl(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(sr(i,r)&&e.ref===t.ref){if(yl=!1,t.pendingProps=r=i,!(e.lanes&o))return t.lanes=e.lanes,Ul(e,t,o);131072&e.flags&&(yl=!0)}}return _l(e,t,n,r,o)}function El(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(Is,zs),zs|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Oo(Is,zs),zs|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Oo(Is,zs),zs|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Oo(Is,zs),zs|=r;return xl(e,t,o,n),t.child}function Cl(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function _l(e,t,n,r,o){var i=Io(n)?Ao:To.current;return i=zo(t,i),Ri(t,o),n=va(e,t,n,r,i,o),r=ga(),null===e||yl?(ii&&r&&ti(t),t.flags|=1,xl(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ul(e,t,o))}function Ol(e,t,n,r,o){if(Io(n)){var i=!0;Lo(t)}else i=!1;if(Ri(t,o),null===t.stateNode)Wl(e,t),al(t,n,r),sl(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,u=n.contextType;u="object"==typeof u&&null!==u?Ai(u):zo(t,u=Io(n)?Ao:To.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||s!==u)&&ll(t,a,r,u),Fi=!1;var f=t.memoizedState;a.state=f,Wi(t,r,a,o),s=t.memoizedState,l!==r||f!==s||Ro.current||Fi?("function"==typeof c&&(rl(t,n,c,r),s=t.memoizedState),(l=Fi||il(t,n,l,r,f,s,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=s),a.props=r,a.state=s,a.context=u,r=l):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Di(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:nl(t.type,l),a.props=u,d=t.pendingProps,f=a.context,s="object"==typeof(s=n.contextType)&&null!==s?Ai(s):zo(t,s=Io(n)?Ao:To.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==d||f!==s)&&ll(t,a,r,s),Fi=!1,f=t.memoizedState,a.state=f,Wi(t,r,a,o);var h=t.memoizedState;l!==d||f!==h||Ro.current||Fi?("function"==typeof p&&(rl(t,n,p,r),h=t.memoizedState),(u=Fi||il(t,n,u,r,f,h,s)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,s),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,s)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=s,r=u):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Pl(e,t,n,r,i,o)}function Pl(e,t,n,r,o,i){Cl(e,t);var a=!!(128&t.flags);if(!r&&!a)return o&&Do(t,n,!1),Ul(e,t,i);r=t.stateNode,bl.current=t;var l=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,l,i)):xl(e,t,l,i),t.memoizedState=r.state,o&&Do(t,n,!0),t.child}function Tl(e){var t=e.stateNode;t.pendingContext?jo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&jo(0,t.context,!1),Qi(e,t.containerInfo)}function Rl(e,t,n,r,o){return hi(),mi(o),t.flags|=256,xl(e,t,n,r),t.child}var Al,zl,Il,Ml,jl={dehydrated:null,treeContext:null,retryLane:0};function Fl(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ll(e,t,n){var r,o=t.pendingProps,a=ea.current,l=!1,s=!!(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&!!(2&a)),r?(l=!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):(s=o.children,e=o.fallback,l?(o=t.mode,l=t.child,s={mode:"hidden",children:s},1&o||null===l?l=Fu(s,o,0,null):(l.childLanes=0,l.pendingProps=s),e=ju(e,o,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Fl(n),t.memoizedState=jl,e):Dl(t,s));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,o,a,l){if(n)return 256&t.flags?(t.flags&=-257,Nl(e,t,l,r=cl(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=ju(a,o,l,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,1&t.mode&&wi(t,e.child,null,l),t.child.memoizedState=Fl(l),t.memoizedState=jl,a);if(!(1&t.mode))return Nl(e,t,l,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var s=r.dgst;return r=s,Nl(e,t,l,r=cl(a=Error(i(419)),r,void 0))}if(s=!!(l&e.childLanes),yl||s){if(null!==(r=Ts)){switch(l&-l){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|l)?0:o)&&o!==a.retryLane&&(a.retryLane=o,ji(e,o),nu(r,e,o,-1))}return mu(),Nl(e,t,l,r=cl(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++]=Ko,Xo[Go++]=Zo,Xo[Go++]=Qo,Ko=e.id,Zo=e.overflow,Qo=t),(t=Dl(t,r.children)).flags|=4096,t)}(e,t,s,o,r,a,n);if(l){l=o.fallback,s=t.mode,r=(a=e.child).sibling;var u={mode:"hidden",children:o.children};return 1&s||t.child===a?(o=Iu(a,u)).subtreeFlags=14680064&a.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=u,t.deletions=null),null!==r?l=Iu(r,l):(l=ju(l,s,n,null)).flags|=2,l.return=t,o.return=t,o.sibling=l,t.child=o,o=l,l=t.child,s=null===(s=e.child.memoizedState)?Fl(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},l.memoizedState=s,l.childLanes=e.childLanes&~n,t.memoizedState=jl,o}return e=(l=e.child).sibling,o=Iu(l,{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 Dl(e,t){return(t=Fu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Nl(e,t,n,r){return null!==r&&mi(r),wi(t,e.child,null,n),(e=Dl(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Bl(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ti(e.return,t,n)}function Vl(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 $l(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(xl(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&&Bl(e,n,t);else if(19===e.tag)Bl(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),Vl(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}Vl(t,!0,n,null,i);break;case"together":Vl(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Wl(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ul(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Fs|=t.lanes,!(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Iu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Iu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Hl(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 ql(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 Yl(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 ql(t),null;case 1:case 17:return Io(t.type)&&Mo(),ql(t),null;case 3:return r=t.stateNode,Ki(),_o(Ro),_o(To),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))),zl(e,t),ql(t),null;case 5:Ji(t);var o=Gi(Xi.current);if(n=t.type,null!==e&&null!=t.stateNode)Il(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 ql(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<jr.length;o++)Nr(jr[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":Q(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 s in be(n,a),o=null,a)if(a.hasOwnProperty(s)){var u=a[s];"children"===s?"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]):l.hasOwnProperty(s)&&null!=u&&"onScroll"===s&&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{s=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=le(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),"select"===n&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[po]=t,e[ho]=r,Al(e,t,!1,!1),t.stateNode=e;e:{switch(s=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<jr.length;o++)Nr(jr[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":Q(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&&(l.hasOwnProperty(a)?null!=c&&"onScroll"===a&&Nr("scroll",e):null!=c&&y(e,a,c,s))}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 ql(t),null;case 6:if(e&&null!=t.stateNode)Ml(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 ql(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;ql(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===Ms&&(Ms=3):mu())),null!==t.updateQueue&&(t.flags|=4),ql(t),null);case 4:return Ki(),zl(e,t),null===e&&$r(t.stateNode.containerInfo),ql(t),null;case 10:return Pi(t.type._context),ql(t),null;case 19:if(_o(ea),null===(a=t.memoizedState))return ql(t),null;if(r=!!(128&t.flags),null===(s=a.rendering))if(r)Hl(a,!1);else{if(0!==Ms||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(s=ta(e))){for(t.flags|=128,Hl(a,!1),null!==(r=s.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(s=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=s.childLanes,a.lanes=s.lanes,a.child=s.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=s.memoizedProps,a.memoizedState=s.memoizedState,a.updateQueue=s.updateQueue,a.type=s.type,e=s.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&&Ke()>$s&&(t.flags|=128,r=!0,Hl(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ta(s))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Hl(a,!0),null===a.tail&&"hidden"===a.tailMode&&!s.alternate&&!ii)return ql(t),null}else 2*Ke()-a.renderingStartTime>$s&&1073741824!==n&&(t.flags|=128,r=!0,Hl(a,!1),t.lanes=4194304);a.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=a.last)?n.sibling=s:t.child=s,a.last=s)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Ke(),t.sibling=null,n=ea.current,Oo(ea,r?1&n|2:1&n),t):(ql(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&zs)&&(ql(t),6&t.subtreeFlags&&(t.flags|=8192)):ql(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function Xl(e,t){switch(ni(t),t.tag){case 1:return Io(t.type)&&Mo(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Ki(),_o(Ro),_o(To),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 Ki(),null;case 10:return Pi(t.type._context),null;case 22:case 23:return du(),null;default:return null}}Al=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}},zl=function(){},Il=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 s=o[c];for(i in s)s.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(l.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var u=r[c];if(s=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&u!==s&&(null!=u||null!=s))if("style"===c)if(s){for(i in s)!s.hasOwnProperty(i)||u&&u.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in u)u.hasOwnProperty(i)&&s[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,s=s?s.__html:void 0,null!=u&&s!==u&&(a=a||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(a=a||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(l.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Nr("scroll",e),a||s===u||(a=[])):(a=a||[]).push(c,u))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},Ml=function(e,t,n,r){n!==r&&(t.flags|=4)};var Gl=!1,Ql=!1,Kl="function"==typeof WeakSet?WeakSet:Set,Zl=null;function Jl(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 es(e,t,n){try{n()}catch(n){Eu(e,t,n)}}var ts=!1;function ns(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&&es(t,n,i)}o=o.next}while(o!==r)}}function rs(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 os(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 is(e){var t=e.alternate;null!==t&&(e.alternate=null,is(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 as(e){return 5===e.tag||3===e.tag||4===e.tag}function ls(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||as(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 ss(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(ss(e,t,n),e=e.sibling;null!==e;)ss(e,t,n),e=e.sibling}function us(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(us(e,t,n),e=e.sibling;null!==e;)us(e,t,n),e=e.sibling}var cs=null,ds=!1;function fs(e,t,n){for(n=n.child;null!==n;)ps(e,t,n),n=n.sibling}function ps(e,t,n){if(it&&"function"==typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Ql||Jl(n,t);case 6:var r=cs,o=ds;cs=null,fs(e,t,n),ds=o,null!==(cs=r)&&(ds?(e=cs,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):cs.removeChild(n.stateNode));break;case 18:null!==cs&&(ds?(e=cs,n=n.stateNode,8===e.nodeType?so(e.parentNode,n):1===e.nodeType&&so(e,n),$t(e)):so(cs,n.stateNode));break;case 4:r=cs,o=ds,cs=n.stateNode.containerInfo,ds=!0,fs(e,t,n),cs=r,ds=o;break;case 0:case 11:case 14:case 15:if(!Ql&&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)&&es(n,t,a),o=o.next}while(o!==r)}fs(e,t,n);break;case 1:if(!Ql&&(Jl(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)}fs(e,t,n);break;case 21:fs(e,t,n);break;case 22:1&n.mode?(Ql=(r=Ql)||null!==n.memoizedState,fs(e,t,n),Ql=r):fs(e,t,n);break;default:fs(e,t,n)}}function hs(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Kl),t.forEach((function(t){var r=Pu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ms(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,l=t,s=l;e:for(;null!==s;){switch(s.tag){case 5:cs=s.stateNode,ds=!1;break e;case 3:case 4:cs=s.stateNode.containerInfo,ds=!0;break e}s=s.return}if(null===cs)throw Error(i(160));ps(a,l,o),cs=null,ds=!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;)vs(t,e),t=t.sibling}function vs(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ms(t,e),gs(e),4&r){try{ns(3,e,e.return),rs(3,e)}catch(t){Eu(e,e.return,t)}try{ns(5,e,e.return)}catch(t){Eu(e,e.return,t)}}break;case 1:ms(t,e),gs(e),512&r&&null!==n&&Jl(n,n.return);break;case 5:if(ms(t,e),gs(e),512&r&&null!==n&&Jl(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,l=null!==n?n.memoizedProps:a,s=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===s&&"radio"===a.type&&null!=a.name&&K(o,a),ye(s,l);var c=ye(s,a);for(l=0;l<u.length;l+=2){var d=u[l],f=u[l+1];"style"===d?ve(o,f):"dangerouslySetInnerHTML"===d?de(o,f):"children"===d?fe(o,f):y(o,d,f,c)}switch(s){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(ms(t,e),gs(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(ms(t,e),gs(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{$t(t.containerInfo)}catch(t){Eu(e,e.return,t)}break;case 4:default:ms(t,e),gs(e);break;case 13:ms(t,e),gs(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(Vs=Ke())),4&r&&hs(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Ql=(c=Ql)||d,ms(t,e),Ql=c):ms(t,e),gs(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&1&e.mode)for(Zl=e,d=e.child;null!==d;){for(f=Zl=d;null!==Zl;){switch(h=(p=Zl).child,p.tag){case 0:case 11:case 14:case 15:ns(4,p,p.return);break;case 1:Jl(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:Jl(p,p.return);break;case 22:if(null!==p.memoizedState){ws(f);continue}}null!==h?(h.return=p,Zl=h):ws(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":(s=f.stateNode,l=null!=(u=f.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,s.style.display=me("display",l))}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:ms(t,e),gs(e),4&r&&hs(e);case 21:}}function gs(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(as(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),us(e,ls(e),o);break;case 3:case 4:var a=r.stateNode.containerInfo;ss(e,ls(e),a);break;default:throw Error(i(161))}}catch(t){Eu(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bs(e,t,n){Zl=e,ys(e,t,n)}function ys(e,t,n){for(var r=!!(1&e.mode);null!==Zl;){var o=Zl,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||Gl;if(!a){var l=o.alternate,s=null!==l&&null!==l.memoizedState||Ql;l=Gl;var u=Ql;if(Gl=a,(Ql=s)&&!u)for(Zl=o;null!==Zl;)s=(a=Zl).child,22===a.tag&&null!==a.memoizedState?ks(o):null!==s?(s.return=a,Zl=s):ks(o);for(;null!==i;)Zl=i,ys(i,t,n),i=i.sibling;Zl=o,Gl=l,Ql=u}xs(e)}else 8772&o.subtreeFlags&&null!==i?(i.return=o,Zl=i):xs(e)}}function xs(e){for(;null!==Zl;){var t=Zl;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Ql||rs(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Ql)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:nl(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 l=t.updateQueue;if(null!==l){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Ui(t,l,n)}break;case 5:var s=t.stateNode;if(null===n&&4&t.flags){n=s;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))}Ql||512&t.flags&&os(t)}catch(e){Eu(t,t.return,e)}}if(t===e){Zl=null;break}if(null!==(n=t.sibling)){n.return=t.return,Zl=n;break}Zl=t.return}}function ws(e){for(;null!==Zl;){var t=Zl;if(t===e){Zl=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Zl=n;break}Zl=t.return}}function ks(e){for(;null!==Zl;){var t=Zl;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rs(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{os(t)}catch(e){Eu(t,i,e)}break;case 5:var a=t.return;try{os(t)}catch(e){Eu(t,a,e)}}}catch(e){Eu(t,t.return,e)}if(t===e){Zl=null;break}var l=t.sibling;if(null!==l){l.return=t.return,Zl=l;break}Zl=t.return}}var Ss,Es=Math.ceil,Cs=x.ReactCurrentDispatcher,_s=x.ReactCurrentOwner,Os=x.ReactCurrentBatchConfig,Ps=0,Ts=null,Rs=null,As=0,zs=0,Is=Co(0),Ms=0,js=null,Fs=0,Ls=0,Ds=0,Ns=null,Bs=null,Vs=0,$s=1/0,Ws=null,Us=!1,Hs=null,qs=null,Ys=!1,Xs=null,Gs=0,Qs=0,Ks=null,Zs=-1,Js=0;function eu(){return 6&Ps?Ke():-1!==Zs?Zs:Zs=Ke()}function tu(e){return 1&e.mode?2&Ps&&0!==As?As&-As:null!==vi.transition?(0===Js&&(Js=mt()),Js):0!==(e=yt)?e:e=void 0===(e=window.event)?16:Qt(e.type):1}function nu(e,t,n,r){if(50<Qs)throw Qs=0,Ks=null,Error(i(185));gt(e,n,r),2&Ps&&e===Ts||(e===Ts&&(!(2&Ps)&&(Ls|=n),4===Ms&&lu(e,As)),ru(e,r),1===n&&0===Ps&&!(1&t.mode)&&($s=Ke()+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),l=1<<a,s=o[a];-1===s?l&n&&!(l&r)||(o[a]=pt(l,t)):s<=t&&(e.expiredLanes|=l),i&=~l}}(e,t);var r=ft(e,e===Ts?As: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)}(su.bind(null,e)):$o(su.bind(null,e)),ao((function(){!(6&Ps)&&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=Tu(n,ou.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ou(e,t){if(Zs=-1,Js=0,6&Ps)throw Error(i(327));var n=e.callbackNode;if(ku()&&e.callbackNode!==n)return null;var r=ft(e,e===Ts?As:0);if(0===r)return null;if(30&r||r&e.expiredLanes||t)t=vu(e,r);else{t=r;var o=Ps;Ps|=2;var a=hu();for(Ts===e&&As===t||(Ws=null,$s=Ke()+500,fu(e,t));;)try{bu();break}catch(t){pu(e,t)}Oi(),Cs.current=a,Ps=o,null!==Rs?t=0:(Ts=null,As=0,t=Ms)}if(0!==t){if(2===t&&0!==(o=ht(e))&&(r=o,t=iu(e,o)),1===t)throw n=js,fu(e,0),lu(e,r),ru(e,Ke()),n;if(6===t)lu(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(!lr(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=js,fu(e,0),lu(e,r),ru(e,Ke()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(i(345));case 2:case 5:wu(e,Bs,Ws);break;case 3:if(lu(e,r),(130023424&r)===r&&10<(t=Vs+500-Ke())){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,Bs,Ws),t);break}wu(e,Bs,Ws);break;case 4:if(lu(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var l=31-at(r);a=1<<l,(l=t[l])>o&&(o=l),r&=~a}if(r=o,10<(r=(120>(r=Ke()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Es(r/1960))-r)){e.timeoutHandle=ro(wu.bind(null,e,Bs,Ws),r);break}wu(e,Bs,Ws);break;default:throw Error(i(329))}}}return ru(e,Ke()),e.callbackNode===n?ou.bind(null,e):null}function iu(e,t){var n=Ns;return e.current.memoizedState.isDehydrated&&(fu(e,t).flags|=256),2!==(e=vu(e,t))&&(t=Bs,Bs=n,null!==t&&au(t)),e}function au(e){null===Bs?Bs=e:Bs.push.apply(Bs,e)}function lu(e,t){for(t&=~Ds,t&=~Ls,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 su(e){if(6&Ps)throw Error(i(327));ku();var t=ft(e,0);if(!(1&t))return ru(e,Ke()),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=js,fu(e,0),lu(e,t),ru(e,Ke()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,wu(e,Bs,Ws),ru(e,Ke()),null}function uu(e,t){var n=Ps;Ps|=1;try{return e(t)}finally{0===(Ps=n)&&($s=Ke()+500,Bo&&Wo())}}function cu(e){null!==Xs&&0===Xs.tag&&!(6&Ps)&&ku();var t=Ps;Ps|=1;var n=Os.transition,r=yt;try{if(Os.transition=null,yt=1,e)return e()}finally{yt=r,Os.transition=n,!(6&(Ps=t))&&Wo()}}function du(){zs=Is.current,_o(Is)}function fu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Rs)for(n=Rs.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Mo();break;case 3:Ki(),_o(Ro),_o(To),ra();break;case 5:Ji(r);break;case 4:Ki();break;case 13:case 19:_o(ea);break;case 10:Pi(r.type._context);break;case 22:case 23:du()}n=n.return}if(Ts=e,Rs=e=Iu(e.current,null),As=zs=t,Ms=0,js=null,Ds=Ls=Fs=0,Bs=Ns=null,null!==zi){for(t=0;t<zi.length;t++)if(null!==(r=(n=zi[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}zi=null}return e}function pu(e,t){for(;;){var n=Rs;try{if(Oi(),oa.current=Za,ca){for(var r=la.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ca=!1}if(aa=0,ua=sa=la=null,da=!1,fa=0,_s.current=null,null===n||null===n.return){Ms=1,js=t,Rs=null;break}e:{var a=e,l=n.return,s=n,u=t;if(t=As,s.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,d=s,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=vl(l);if(null!==h){h.flags&=-257,gl(h,l,s,0,t),1&h.mode&&ml(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)){ml(a,c,t),mu();break e}u=Error(i(426))}else if(ii&&1&s.mode){var g=vl(l);if(null!==g){!(65536&g.flags)&&(g.flags|=256),gl(g,l,s,0,t),mi(ul(u,s));break e}}a=u=ul(u,s),4!==Ms&&(Ms=2),null===Ns?Ns=[a]:Ns.push(a),a=l;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,$i(a,pl(0,u,t));break e;case 1:s=u;var b=a.type,y=a.stateNode;if(!(128&a.flags||"function"!=typeof b.getDerivedStateFromError&&(null===y||"function"!=typeof y.componentDidCatch||null!==qs&&qs.has(y)))){a.flags|=65536,t&=-t,a.lanes|=t,$i(a,hl(a,s,t));break e}}a=a.return}while(null!==a)}xu(n)}catch(e){t=e,Rs===n&&null!==n&&(Rs=n=n.return);continue}break}}function hu(){var e=Cs.current;return Cs.current=Za,null===e?Za:e}function mu(){0!==Ms&&3!==Ms&&2!==Ms||(Ms=4),null===Ts||!(268435455&Fs)&&!(268435455&Ls)||lu(Ts,As)}function vu(e,t){var n=Ps;Ps|=2;var r=hu();for(Ts===e&&As===t||(Ws=null,fu(e,t));;)try{gu();break}catch(t){pu(e,t)}if(Oi(),Ps=n,Cs.current=r,null!==Rs)throw Error(i(261));return Ts=null,As=0,Ms}function gu(){for(;null!==Rs;)yu(Rs)}function bu(){for(;null!==Rs&&!Ge();)yu(Rs)}function yu(e){var t=Ss(e.alternate,e,zs);e.memoizedProps=e.pendingProps,null===t?xu(e):Rs=t,_s.current=null}function xu(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Xl(n,t)))return n.flags&=32767,void(Rs=n);if(null===e)return Ms=6,void(Rs=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Yl(n,t,zs)))return void(Rs=n);if(null!==(t=t.sibling))return void(Rs=t);Rs=t=e}while(null!==t);0===Ms&&(Ms=5)}function wu(e,t,n){var r=yt,o=Os.transition;try{Os.transition=null,yt=1,function(e,t,n,r){do{ku()}while(null!==Xs);if(6&Ps)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===Ts&&(Rs=Ts=null,As=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||Ys||(Ys=!0,Tu(tt,(function(){return ku(),null}))),a=!!(15990&n.flags),15990&n.subtreeFlags||a){a=Os.transition,Os.transition=null;var l=yt;yt=1;var s=Ps;Ps|=4,_s.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 l=0,s=-1,u=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||0!==o&&3!==f.nodeType||(s=l+o),f!==a||0!==r&&3!==f.nodeType||(u=l+r),3===f.nodeType&&(l+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++c===o&&(s=l),p===a&&++d===r&&(u=l),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}n=-1===s||-1===u?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(to={focusedElem:e,selectionRange:n},Ut=!1,Zl=t;null!==Zl;)if(e=(t=Zl).child,1028&t.subtreeFlags&&null!==e)e.return=t,Zl=e;else for(;null!==Zl;){t=Zl;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:nl(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,Zl=e;break}Zl=t.return}m=ts,ts=!1}(e,n),vs(n,e),hr(to),Ut=!!eo,to=eo=null,e.current=n,bs(n,e,o),Qe(),Ps=s,yt=l,Os.transition=a}else e.current=n;if(Ys&&(Ys=!1,Xs=e,Gs=o),0===(a=e.pendingLanes)&&(qs=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,Ke()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((o=t[n]).value,{componentStack:o.stack,digest:o.digest});if(Us)throw Us=!1,e=Hs,Hs=null,e;!!(1&Gs)&&0!==e.tag&&ku(),1&(a=e.pendingLanes)?e===Ks?Qs++:(Qs=0,Ks=e):Qs=0,Wo()}(e,t,n,r)}finally{Os.transition=o,yt=r}return null}function ku(){if(null!==Xs){var e=xt(Gs),t=Os.transition,n=yt;try{if(Os.transition=null,yt=16>e?16:e,null===Xs)var r=!1;else{if(e=Xs,Xs=null,Gs=0,6&Ps)throw Error(i(331));var o=Ps;for(Ps|=4,Zl=e.current;null!==Zl;){var a=Zl,l=a.child;if(16&Zl.flags){var s=a.deletions;if(null!==s){for(var u=0;u<s.length;u++){var c=s[u];for(Zl=c;null!==Zl;){var d=Zl;switch(d.tag){case 0:case 11:case 15:ns(8,d,a)}var f=d.child;if(null!==f)f.return=d,Zl=f;else for(;null!==Zl;){var p=(d=Zl).sibling,h=d.return;if(is(d),d===c){Zl=null;break}if(null!==p){p.return=h,Zl=p;break}Zl=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)}}Zl=a}}if(2064&a.subtreeFlags&&null!==l)l.return=a,Zl=l;else e:for(;null!==Zl;){if(2048&(a=Zl).flags)switch(a.tag){case 0:case 11:case 15:ns(9,a,a.return)}var b=a.sibling;if(null!==b){b.return=a.return,Zl=b;break e}Zl=a.return}}var y=e.current;for(Zl=y;null!==Zl;){var x=(l=Zl).child;if(2064&l.subtreeFlags&&null!==x)x.return=l,Zl=x;else e:for(l=y;null!==Zl;){if(2048&(s=Zl).flags)try{switch(s.tag){case 0:case 11:case 15:rs(9,s)}}catch(e){Eu(s,s.return,e)}if(s===l){Zl=null;break e}var w=s.sibling;if(null!==w){w.return=s.return,Zl=w;break e}Zl=s.return}}if(Ps=o,Wo(),it&&"function"==typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(e){}r=!0}return r}finally{yt=n,Os.transition=t}}return!1}function Su(e,t,n){e=Bi(e,t=pl(0,t=ul(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===qs||!qs.has(r))){t=Bi(t,e=hl(t,e=ul(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,Ts===e&&(As&n)===n&&(4===Ms||3===Ms&&(130023424&As)===As&&500>Ke()-Vs?fu(e,0):Ds|=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=ji(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 Tu(e,t){return Ye(e,t)}function Ru(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 Ru(e,t,n,r)}function zu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Iu(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 l=2;if(r=e,"function"==typeof e)zu(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case S:return ju(n.children,o,a,t);case E:l=8,o|=8;break;case C:return(e=Au(12,n,t,2|o)).elementType=C,e.lanes=a,e;case T:return(e=Au(13,n,t,o)).elementType=T,e.lanes=a,e;case R:return(e=Au(19,n,t,o)).elementType=R,e.lanes=a,e;case I:return Fu(n,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case _:l=10;break e;case O:l=9;break e;case P:l=11;break e;case A:l=14;break e;case z:l=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Au(l,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function ju(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=I,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,l,s){return e=new Nu(e,t,n,l,s),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(Io(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(Io(n))return Fo(e,n,t)}return t}function $u(e,t,n,r,o,i,a,l,s){return(e=Bu(n,r,!0,e,0,i,0,l,s)).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)}Ss=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ro.current)yl=!0;else{if(!(e.lanes&n||128&t.flags))return yl=!1,function(e,t,n){switch(t.tag){case 3:Tl(t),hi();break;case 5:Zi(t);break;case 1:Io(t.type)&&Lo(t);break;case 4:Qi(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?Ll(e,t,n):(Oo(ea,1&ea.current),null!==(e=Ul(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 $l(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,El(e,t,n)}return Ul(e,t,n)}(e,t,n);yl=!!(131072&e.flags)}else yl=!1,ii&&1048576&t.flags&&ei(t,Yo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Wl(e,t),e=t.pendingProps;var o=zo(t,To.current);Ri(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,Io(r)?(a=!0,Lo(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Li(t),o.updater=ol,t.stateNode=o,o._reactInternals=t,sl(t,r,e,n),t=Pl(null,t,r,!0,a,n)):(t.tag=0,ii&&a&&ti(t),xl(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Wl(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return zu(e)?1:0;if(null!=e){if((e=e.$$typeof)===P)return 11;if(e===A)return 14}return 2}(r),e=nl(r,e),o){case 0:t=_l(null,t,r,e,n);break e;case 1:t=Ol(null,t,r,e,n);break e;case 11:t=wl(null,t,r,e,n);break e;case 14:t=kl(null,t,r,nl(r.type,e),n);break e}throw Error(i(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,_l(e,t,r,o=t.elementType===r?o:nl(r,o),n);case 1:return r=t.type,o=t.pendingProps,Ol(e,t,r,o=t.elementType===r?o:nl(r,o),n);case 3:e:{if(Tl(t),null===e)throw Error(i(387));r=t.pendingProps,o=(a=t.memoizedState).element,Di(e,t),Wi(t,r,null,n);var l=t.memoizedState;if(r=l.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Rl(e,t,r,n,o=ul(Error(i(423)),t));break e}if(r!==o){t=Rl(e,t,r,n,o=ul(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=Ul(e,t,n);break e}xl(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,l=o.children,no(r,o)?l=null:null!==a&&no(r,a)&&(t.flags|=32),Cl(e,t),xl(e,t,l,n),t.child;case 6:return null===e&&ci(t),null;case 13:return Ll(e,t,n);case 4:return Qi(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=wi(t,null,r,n):xl(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,wl(e,t,r,o=t.elementType===r?o:nl(r,o),n);case 7:return xl(e,t,t.pendingProps,n),t.child;case 8:case 12:return xl(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,l=o.value,Oo(Si,r._currentValue),r._currentValue=l,null!==a)if(lr(a.value,l)){if(a.children===o.children&&!Ro.current){t=Ul(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var s=a.dependencies;if(null!==s){l=a.child;for(var u=s.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),Ti(a.return,n,t),s.lanes|=n;break}u=u.next}}else if(10===a.tag)l=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(l=a.return))throw Error(i(341));l.lanes|=n,null!==(s=l.alternate)&&(s.lanes|=n),Ti(l,n,t),l=a.sibling}else l=a.child;if(null!==l)l.return=a;else for(l=a;null!==l;){if(l===t){l=null;break}if(null!==(a=l.sibling)){a.return=l.return,l=a;break}l=l.return}a=l}xl(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ri(t,n),r=r(o=Ai(o)),t.flags|=1,xl(e,t,r,n),t.child;case 14:return o=nl(r=t.type,t.pendingProps),kl(e,t,r,o=nl(r.type,o),n);case 15:return Sl(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:nl(r,o),Wl(e,t),t.tag=1,Io(r)?(e=!0,Lo(t)):e=!1,Ri(t,n),al(t,r,o),sl(t,r,o,n),Pl(null,t,r,!0,e,n);case 19:return $l(e,t,n);case 22:return El(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 Qu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Ku(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 l=o;o=function(){var e=Uu(a);l.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 l=r;r=function(){var e=Uu(s);l.call(e)}}var s=Bu(e,0,!1,null,0,!1,0,"",Zu);return e._reactRootContainer=s,e[mo]=s.current,$r(8===e.nodeType?e.parentNode:e),cu((function(){Wu(t,s,n,r)})),s}(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<It.length&&0!==t&&t<It[n].priority;n++);It.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,Ke()),!(6&Ps)&&($s=Ke()+500,Wo()))}break;case 13:cu((function(){var t=ji(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=ji(e,134217728);null!==t&&nu(t,e,134217728,eu()),qu(e,134217728)}},St=function(e){if(13===e.tag){var t=tu(e),n=ji(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,Te=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(!Qu(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(!Qu(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(!Ku(t))throw Error(i(200));return Ju(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Qu(e))throw Error(i(405));var r=null!=n&&n.hydratedSources||null,o=!1,a="",l=Yu;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(l=n.onRecoverableError)),t=$u(t,null,e,1,null!=n?n:null,o,0,a,l),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(!Ku(t))throw Error(i(200));return Ju(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Ku(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(!Ku(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 l,s,u,c;if(Array.isArray(e)){if((l=e.length)!=a.length)return!1;for(s=l;0!=s--;)if(!i(e[s],a[s]))return!1;return!0}if(n&&e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(c=e.entries();!(s=c.next()).done;)if(!a.has(s.value[0]))return!1;for(c=e.entries();!(s=c.next()).done;)if(!i(s.value[1],a.get(s.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();!(s=c.next()).done;)if(!a.has(s.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(a)){if((l=e.length)!=a.length)return!1;for(s=l;0!=s--;)if(e[s]!==a[s])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((l=(u=Object.keys(e)).length)!==Object.keys(a).length)return!1;for(s=l;0!=s--;)if(!Object.prototype.hasOwnProperty.call(a,u[s]))return!1;if(t&&e instanceof Element)return!1;for(s=l;0!=s--;)if(("_owner"!==u[s]&&"__v"!==u[s]&&"__o"!==u[s]||!e.$$typeof)&&!i(e[u[s]],a[u[s]]))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,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={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)&&!s.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:l.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 l=2*(r+1)-1,s=e[l],u=l+1,c=e[u];if(0>i(s,n))u<o&&0>i(c,s)?(e[r]=c,e[u]=n,r=u):(e[r]=s,e[l]=n,r=l);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 l=Date,s=l.now();t.unstable_now=function(){return l.now()-s}}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,I(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&&!T());){var a=f.callback;if("function"==typeof a){f.callback=null,p=f.priorityLevel;var l=a(f.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?f.callback=l:f===r(u)&&o(u),x(n)}else o(u);f=r(u)}if(null!==f)var s=!0;else{var d=r(c);null!==d&&M(w,d.startTime-n),s=!1}return s}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 T(){return!(t.unstable_now()-P<O)}function R(){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(R)};else if("undefined"!=typeof MessageChannel){var A=new MessageChannel,z=A.port2;A.port1.onmessage=R,S=function(){z.postMessage(null)}}else S=function(){g(R,0)};function I(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,I(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 l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:i,expirationTime:l=i+l,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=l,n(u,e),m||h||(m=!0,I(k))),e},t.unstable_shouldYield=T,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,l,s,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((l=e[r]).keys)for(n=t[p],a=0;a<l.keys.length;a++){if(null==n)throw new Error(i('[sprintf] Cannot access property "%s" of undefined value "%s"',l.keys[a],l.keys[a-1]));n=n[l.keys[a]]}else n=l.param_no?t[l.param_no]:t[p++];if(o.not_type.test(l.type)&&o.not_primitive.test(l.type)&&n instanceof Function&&(n=n()),o.numeric_arg.test(l.type)&&"number"!=typeof n&&isNaN(n))throw new TypeError(i("[sprintf] expecting number but found %T",n));switch(o.number.test(l.type)&&(d=n>=0),l.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,l.width?parseInt(l.width):0);break;case"e":n=l.precision?parseFloat(n).toExponential(l.precision):parseFloat(n).toExponential();break;case"f":n=l.precision?parseFloat(n).toFixed(l.precision):parseFloat(n);break;case"g":n=l.precision?String(Number(n.toPrecision(l.precision))):parseFloat(n);break;case"o":n=(parseInt(n,10)>>>0).toString(8);break;case"s":n=String(n),n=l.precision?n.substring(0,l.precision):n;break;case"t":n=String(!!n),n=l.precision?n.substring(0,l.precision):n;break;case"T":n=Object.prototype.toString.call(n).slice(8,-1).toLowerCase(),n=l.precision?n.substring(0,l.precision):n;break;case"u":n=parseInt(n,10)>>>0;break;case"v":n=n.valueOf(),n=l.precision?n.substring(0,l.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(l.type)?m+=n:(!o.number.test(l.type)||d&&!l.sign?f="":(f=d?"+":"-",n=n.toString().replace(o.sign,"")),u=l.pad_char?"0"===l.pad_char?"0":l.pad_char.charAt(1):" ",c=l.width-(f+n).length,s=l.width&&c>0?u.repeat(c):"",m+=l.align?f+n+s:"0"===u?f+s+n:s+f+n)}return m}(function(e){if(l[e])return l[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=[],s=t[2],u=[];if(null===(u=o.key.exec(s)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(a.push(u[1]);""!==(s=s.substring(u[0].length));)if(null!==(u=o.key_access.exec(s)))a.push(u[1]);else{if(null===(u=o.index_access.exec(s)))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 l[e]=r}(e),arguments)}function a(e,t){return i.apply(null,[e].concat(t||[]))}var l=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),o=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){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),i=Math.abs,a=String.fromCharCode,l=Object.assign;function s(e){return e.trim()}function u(e,t,n){return e.replace(t,n)}function c(e,t){return e.indexOf(t)}function d(e,t){return 0|e.charCodeAt(t)}function f(e,t,n){return e.slice(t,n)}function p(e){return e.length}function h(e){return e.length}function m(e,t){return t.push(e),e}var v=1,g=1,b=0,y=0,x=0,w="";function k(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:v,column:g,length:a,return:""}}function S(e,t){return l(k("",null,null,"",null,null,0),e,{length:-e.length},t)}function E(){return x=y>0?d(w,--y):0,g--,10===x&&(g=1,v--),x}function C(){return x=y<b?d(w,y++):0,g++,10===x&&(g=1,v++),x}function _(){return d(w,y)}function O(){return y}function P(e,t){return f(w,e,t)}function T(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 R(e){return v=g=1,b=p(w=e),y=0,[]}function A(e){return w="",e}function z(e){return s(P(y-1,j(91===e?e+2:40===e?e+1:e)))}function I(e){for(;(x=_())&&x<33;)C();return T(e)>2||T(x)>3?"":" "}function M(e,t){for(;--t&&C()&&!(x<48||x>102||x>57&&x<65||x>70&&x<97););return P(e,O()+(t<6&&32==_()&&32==C()))}function j(e){for(;C();)switch(x){case e:return y;case 34:case 39:34!==e&&39!==e&&j(x);break;case 40:41===e&&j(e);break;case 92:C()}return y}function F(e,t){for(;C()&&e+x!==57&&(e+x!==84||47!==_()););return"/*"+P(t,y-1)+"*"+a(47===e?e:C())}function L(e){for(;!T(_());)C();return P(e,y)}var D="-ms-",N="-moz-",B="-webkit-",V="comm",$="rule",W="decl",U="@keyframes";function H(e,t){for(var n="",r=h(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function q(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case W:return e.return=e.return||e.value;case V:return"";case U:return e.return=e.value+"{"+H(e.children,r)+"}";case $:e.value=e.props.join(",")}return p(n=H(e.children,r))?e.return=e.value+"{"+n+"}":""}function Y(e){return A(X("",null,null,null,[""],e=R(e),0,[0],e))}function X(e,t,n,r,o,i,l,s,f){for(var h=0,v=0,g=l,b=0,y=0,x=0,w=1,k=1,S=1,P=0,T="",R=o,A=i,j=r,D=T;k;)switch(x=P,P=C()){case 40:if(108!=x&&58==d(D,g-1)){-1!=c(D+=u(z(P),"&","&\f"),"&\f")&&(S=-1);break}case 34:case 39:case 91:D+=z(P);break;case 9:case 10:case 13:case 32:D+=I(x);break;case 92:D+=M(O()-1,7);continue;case 47:switch(_()){case 42:case 47:m(Q(F(C(),O()),t,n),f);break;default:D+="/"}break;case 123*w:s[h++]=p(D)*S;case 125*w:case 59:case 0:switch(P){case 0:case 125:k=0;case 59+v:-1==S&&(D=u(D,/\f/g,"")),y>0&&p(D)-g&&m(y>32?K(D+";",r,n,g-1):K(u(D," ","")+";",r,n,g-2),f);break;case 59:D+=";";default:if(m(j=G(D,t,n,h,v,o,s,T,R=[],A=[],g),i),123===P)if(0===v)X(D,t,j,j,R,i,g,s,A);else switch(99===b&&110===d(D,3)?100:b){case 100:case 108:case 109:case 115:X(e,j,j,r&&m(G(e,j,j,0,0,o,s,T,o,R=[],g),A),o,A,g,s,r?R:A);break;default:X(D,j,j,j,[""],A,0,s,A)}}h=v=y=0,w=S=1,T=D="",g=l;break;case 58:g=1+p(D),y=x;default:if(w<1)if(123==P)--w;else if(125==P&&0==w++&&125==E())continue;switch(D+=a(P),P*w){case 38:S=v>0?1:(D+="\f",-1);break;case 44:s[h++]=(p(D)-1)*S,S=1;break;case 64:45===_()&&(D+=z(C())),b=_(),v=g=p(T=D+=L(O())),P++;break;case 45:45===x&&2==p(D)&&(w=0)}}return i}function G(e,t,n,r,o,a,l,c,d,p,m){for(var v=o-1,g=0===o?a:[""],b=h(g),y=0,x=0,w=0;y<r;++y)for(var S=0,E=f(e,v+1,v=i(x=l[y])),C=e;S<b;++S)(C=s(x>0?g[S]+" "+E:u(E,/&\f/g,g[S])))&&(d[w++]=C);return k(e,t,n,0===o?$:c,d,p,m)}function Q(e,t,n){return k(e,t,n,V,a(x),f(e,2,-2),0)}function K(e,t,n,r){return k(e,t,n,W,f(e,0,r),f(e,r+1,-1),r)}var Z=function(e,t,n){for(var r=0,o=0;r=o,o=_(),38===r&&12===o&&(t[n]=1),!T(o);)C();return P(e,y)},J=new WeakMap,ee=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)||J.get(n))&&!r){J.set(e,!0);for(var o=[],i=function(e,t){return A(function(e,t){var n=-1,r=44;do{switch(T(r)){case 0:38===r&&12===_()&&(t[n]=1),e[n]+=Z(y-1,t,n);break;case 2:e[n]+=z(r);break;case 4:if(44===r){e[++n]=58===_()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=a(r)}}while(r=C());return e}(R(e),t))}(t,o),l=n.props,s=0,u=0;s<i.length;s++)for(var c=0;c<l.length;c++,u++)e.props[u]=o[s]?i[s].replace(/&\f/g,l[c]):l[c]+" "+i[s]}}},te=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function ne(e,t){switch(function(e,t){return 45^d(e,0)?(((t<<2^d(e,0))<<2^d(e,1))<<2^d(e,2))<<2^d(e,3):0}(e,t)){case 5103:return B+"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 B+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return B+e+N+e+D+e+e;case 6828:case 4268:return B+e+D+e+e;case 6165:return B+e+D+"flex-"+e+e;case 5187:return B+e+u(e,/(\w+).+(:[^]+)/,B+"box-$1$2"+D+"flex-$1$2")+e;case 5443:return B+e+D+"flex-item-"+u(e,/flex-|-self/,"")+e;case 4675:return B+e+D+"flex-line-pack"+u(e,/align-content|flex-|-self/,"")+e;case 5548:return B+e+D+u(e,"shrink","negative")+e;case 5292:return B+e+D+u(e,"basis","preferred-size")+e;case 6060:return B+"box-"+u(e,"-grow","")+B+e+D+u(e,"grow","positive")+e;case 4554:return B+u(e,/([^-])(transform)/g,"$1"+B+"$2")+e;case 6187:return u(u(u(e,/(zoom-|grab)/,B+"$1"),/(image-set)/,B+"$1"),e,"")+e;case 5495:case 3959:return u(e,/(image-set\([^]*)/,B+"$1$`$1");case 4968:return u(u(e,/(.+:)(flex-)?(.*)/,B+"box-pack:$3"+D+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+B+e+e;case 4095:case 3583:case 4068:case 2532:return u(e,/(.+)-inline(.+)/,B+"$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(p(e)-1-t>6)switch(d(e,t+1)){case 109:if(45!==d(e,t+4))break;case 102:return u(e,/(.+:)(.+)-([^]+)/,"$1"+B+"$2-$3$1"+N+(108==d(e,t+3)?"$3":"$2-$3"))+e;case 115:return~c(e,"stretch")?ne(u(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==d(e,t+1))break;case 6444:switch(d(e,p(e)-3-(~c(e,"!important")&&10))){case 107:return u(e,":",":"+B)+e;case 101:return u(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+B+(45===d(e,14)?"inline-":"")+"box$3$1"+B+"$2$3$1"+D+"$2box$3")+e}break;case 5936:switch(d(e,t+11)){case 114:return B+e+D+u(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return B+e+D+u(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return B+e+D+u(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return B+e+D+e+e}return e}var re=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case W:e.return=ne(e.value,e.length);break;case U:return H([S(e,{value:u(e.value,"@","@"+B)})],r);case $:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return H([S(e,{props:[u(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return H([S(e,{props:[u(t,/:(plac\w+)/,":"+B+"input-$1")]}),S(e,{props:[u(t,/:(plac\w+)/,":-moz-$1")]}),S(e,{props:[u(t,/:(plac\w+)/,D+"input-$1")]})],r)}return""}))}}],oe=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,i,a=e.stylisPlugins||re,l={},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++)l[t[n]]=!0;s.push(e)}));var u,c,d,f,p=[q,(f=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&f(e)})],m=(c=[ee,te].concat(a,p),d=h(c),function(e,t,n,r){for(var o="",i=0;i<d;i++)o+=c[i](e,t,n,r)||"";return o});i=function(e,t,n,r){u=n,function(e){H(Y(e),m)}(e?e+"{"+t.styles+"}":t.styles),r&&(v.inserted[t.name]=!0)};var v={key:t,sheet:new o({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:l,registered:{},insert:i};return v.sheet.hydrate(s),v};function ie(){return ie=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},ie.apply(null,arguments)}var ae=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 le(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var se=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},ue=function(e,t,n){se(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)}},ce={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,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 de(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var fe=/[A-Z]|^ms/g,pe=/_EMO_([^_]+?)_([^]*?)_EMO_/g,he=function(e){return 45===e.charCodeAt(1)},me=function(e){return null!=e&&"boolean"!=typeof e},ve=de((function(e){return he(e)?e:e.replace(fe,"-$&").toLowerCase()})),ge=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(pe,(function(e,t,n){return ye={name:t,styles:n,next:ye},t}))}return 1===ce[e]||he(e)||"number"!=typeof t||0===t?t:t+"px"};function be(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return ye={name:n.name,styles:n.styles,next:ye},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)ye={name:r.name,styles:r.styles,next:ye},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=be(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":me(a)&&(r+=ve(i)+":"+ge(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=be(e,t,a);switch(i){case"animation":case"animationName":r+=ve(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var s=0;s<a.length;s++)me(a[s])&&(r+=ve(i)+":"+ge(i,a[s])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=ye,i=n(e);return ye=o,be(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var ye,xe=/label:\s*([^\s;\n{]+)\s*(;|$)/g,we=function(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="";ye=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=be(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=be(n,t,e[a]),r&&(o+=i[a]);xe.lastIndex=0;for(var l,s="";null!==(l=xe.exec(o));)s+="-"+l[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)+s;return{name:u,styles:o,next:ye}},ke=!!e.useInsertionEffect&&e.useInsertionEffect,Se=ke||function(e){return e()},Ee=ke||e.useLayoutEffect,Ce={}.hasOwnProperty,_e=e.createContext("undefined"!=typeof HTMLElement?oe({key:"css"}):null);_e.Provider;var Oe=function(t){return(0,e.forwardRef)((function(n,r){var o=(0,e.useContext)(_e);return t(n,o,r)}))},Pe=e.createContext({}),Te=ae((function(e){return ae((function(t){return function(e,t){return"function"==typeof t?t(e):ie({},e,t)}(e,t)}))})),Re=function(t){var n=e.useContext(Pe);return t.theme!==n&&(n=Te(n)(t.theme)),e.createElement(Pe.Provider,{value:n},t.children)},Ae="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",ze=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return se(t,n,r),Se((function(){return ue(t,n,r)})),null},Ie=Oe((function(t,n,r){var o=t.css;"string"==typeof o&&void 0!==n.registered[o]&&(o=n.registered[o]);var i=t[Ae],a=[o],l="";"string"==typeof t.className?l=le(n.registered,a,t.className):null!=t.className&&(l=t.className+" ");var s=we(a,void 0,e.useContext(Pe));l+=n.key+"-"+s.name;var u={};for(var c in t)Ce.call(t,c)&&"css"!==c&&c!==Ae&&(u[c]=t[c]);return u.ref=r,u.className=l,e.createElement(e.Fragment,null,e.createElement(ze,{cache:n,serialized:s,isStringTag:"string"==typeof i}),e.createElement(i,u))})),Me=Ie,je=(n(4146),function(t,n){var r=arguments;if(null==n||!Ce.call(n,"css"))return e.createElement.apply(void 0,r);var o=r.length,i=new Array(o);i[0]=Me,i[1]=function(e,t){var n={};for(var r in t)Ce.call(t,r)&&(n[r]=t[r]);return n[Ae]=e,n}(t,n);for(var a=2;a<o;a++)i[a]=r[a];return e.createElement.apply(null,i)}),Fe=Oe((function(t,n){var r=t.styles,o=we([r],void 0,e.useContext(Pe)),i=e.useRef();return Ee((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}),r=!1,a=document.querySelector('style[data-emotion="'+e+" "+o.name+'"]');return n.sheet.tags.length&&(t.before=n.sheet.tags[0]),null!==a&&(r=!0,a.setAttribute("data-emotion",e),t.hydrate([a])),i.current=[t,r],function(){t.flush()}}),[n]),Ee((function(){var e=i.current,t=e[0];if(e[1])e[1]=!1;else{if(void 0!==o.next&&ue(n,o.next,!0),t.tags.length){var r=t.tags[t.tags.length-1].nextElementSibling;t.before=r,t.flush()}n.insert("",o,t,!1)}}),[n,o.name]),null}));function Le(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return we(t)}var De=function(){var e=Le.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_"}}},Ne=n(4848),Be=String.raw,Ve=Be`
: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;
}
}
`,$e=()=>(0,Ne.jsx)(Fe,{styles:Ve}),We=({scope:e=""})=>(0,Ne.jsx)(Fe,{styles:Be`
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;
}
${Ve}
`});function Ue(t={}){const{name:n,strict:r=!0,hookName:o="useContext",providerName:i="Provider",errorMessage:a,defaultValue:l}=t,s=(0,e.createContext)(l);return s.displayName=n,[s.Provider,function t(){var n;const l=(0,e.useContext)(s);if(!l&&r){const e=new Error(null!=a?a:`${o} returned \`undefined\`. Seems you forgot to wrap component within ${i}`);throw e.name="ContextError",null==(n=Error.captureStackTrace)||n.call(Error,e,t),e}return l},s]}var[He,qe]=Ue({strict:!1,name:"PortalManagerContext"});function Ye(e){const{children:t,zIndex:n}=e;return(0,Ne.jsx)(He,{value:{zIndex:n},children:t})}Ye.displayName="PortalManager";var Xe=(0,e.createContext)({});function Ge(){const t=(0,e.useContext)(Xe);if(void 0===t)throw new Error("useColorMode must be used within a ColorModeProvider");return t}function Qe(e,t){const{colorMode:n}=Ge();return"dark"===n?t:e}Xe.displayName="ColorModeContext";var Ke=(...e)=>e.filter(Boolean).join(" ");function Ze(e){const t=typeof e;return null!=e&&("object"===t||"function"===t)&&!Array.isArray(e)}function Je(e,...t){return et(e)?e(...t):e}var et=e=>"function"==typeof e,tt=e=>e?"":void 0,nt=e=>!!e||void 0;function rt(...e){return function(t){e.some((e=>(null==e||e(t),null==t?void 0:t.defaultPrevented)))}}var ot=n(8394),it=e=>"string"==typeof e?e.replace(/!(important)?$/,"").trim():e,at=(e,t)=>n=>{const r=String(t),o=(e=>/!(important)?$/.test(e))(r),i=it(r),a=e?`${e}.${i}`:i;let l=Ze(n.__cssMap)&&a in n.__cssMap?n.__cssMap[a].varRef:t;return l=it(l),o?`${l} !important`:l};function lt(e){const{scale:t,transform:n,compose:r}=e;return(e,o)=>{var i;const a=at(t,e)(o);let l=null!=(i=null==n?void 0:n(a,o))?i:a;return r&&(l=r(l,o)),l}}var st=(...e)=>t=>e.reduce(((e,t)=>t(e)),t);function ut(e,t){return n=>{const r={property:n,scale:e};return r.transform=lt({scale:e,transform:t}),r}}var ct=({rtl:e,ltr:t})=>n=>"rtl"===n.direction?e:t,dt=["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))"],ft={"--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(" ")},pt={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,/*!*/ /*!*/)"},ht={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},mt={"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"},vt=new Set(Object.values(mt)),gt=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),bt=e=>e.trim(),yt=e=>"string"==typeof e&&e.includes("(")&&e.includes(")"),xt=e=>t=>`${e}(${t})`,wt={filter:e=>"auto"!==e?e:ft,backdropFilter:e=>"auto"!==e?e:pt,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(", ")}}(wt.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))",...dt].join(" "):"auto-gpu"===e?["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...dt].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||gt.has(e))return e;if(!yt(e)&&!gt.has(e))return`url('${e}')`;const n=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),r=null==n?void 0:n[1],o=null==n?void 0:n[2];if(!r||!o)return e;const i=r.includes("-gradient")?r:`${r}-gradient`,[a,...l]=o.split(",").map(bt).filter(Boolean);if(0===(null==l?void 0:l.length))return e;const s=a in mt?mt[a]:a;return l.unshift(s),`${i}(${l.map((e=>{if(vt.has(e))return e;const n=e.indexOf(" "),[r,o]=-1!==n?[e.substr(0,n),e.substr(n+1)]:[e],i=yt(o)?o:o&&o.split(" "),a=`colors.${r}`,l=a in t.__cssMap?t.__cssMap[a].varRef:r;return i?[l,...Array.isArray(i)?i:[i]].join(" "):l})).join(", ")})`}(e,null!=t?t:{}),blur:xt("blur"),opacity:xt("opacity"),brightness:xt("brightness"),contrast:xt("contrast"),dropShadow:xt("drop-shadow"),grayscale:xt("grayscale"),hueRotate:e=>xt("hue-rotate")(wt.degree(e)),invert:xt("invert"),saturate:xt("saturate"),sepia:xt("sepia"),bgImage:e=>null==e||yt(e)||gt.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){var t;const{space:n,divide:r}=null!=(t=ht[e])?t:{},o={flexDirection:e};return n&&(o[n]=1),r&&(o[r]=1),o}},kt={borderWidths:ut("borderWidths"),borderStyles:ut("borderStyles"),colors:ut("colors"),borders:ut("borders"),gradients:ut("gradients",wt.gradient),radii:ut("radii",wt.px),space:ut("space",st(wt.vh,wt.px)),spaceT:ut("space",st(wt.vh,wt.px)),degreeT:e=>({property:e,transform:wt.degree}),prop:(e,t,n)=>({property:e,scale:t,...t&&{transform:lt({scale:t,transform:n})}}),propT:(e,t)=>({property:e,transform:t}),sizes:ut("sizes",st(wt.vh,wt.px)),sizesT:ut("sizes",st(wt.vh,wt.fraction)),shadows:ut("shadows"),logical:function(e){const{property:t,scale:n,transform:r}=e;return{scale:n,property:ct(t),transform:n?lt({scale:n,compose:r}):r}},blur:ut("blur",wt.blur)},St={background:kt.colors("background"),backgroundColor:kt.colors("backgroundColor"),backgroundImage:kt.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:wt.bgClip},bgSize:kt.prop("backgroundSize"),bgPosition:kt.prop("backgroundPosition"),bg:kt.colors("background"),bgColor:kt.colors("backgroundColor"),bgPos:kt.prop("backgroundPosition"),bgRepeat:kt.prop("backgroundRepeat"),bgAttachment:kt.prop("backgroundAttachment"),bgGradient:kt.gradients("backgroundImage"),bgClip:{transform:wt.bgClip}};Object.assign(St,{bgImage:St.backgroundImage,bgImg:St.backgroundImage});var Et={border:kt.borders("border"),borderWidth:kt.borderWidths("borderWidth"),borderStyle:kt.borderStyles("borderStyle"),borderColor:kt.colors("borderColor"),borderRadius:kt.radii("borderRadius"),borderTop:kt.borders("borderTop"),borderBlockStart:kt.borders("borderBlockStart"),borderTopLeftRadius:kt.radii("borderTopLeftRadius"),borderStartStartRadius:kt.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:kt.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:kt.radii("borderTopRightRadius"),borderStartEndRadius:kt.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:kt.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:kt.borders("borderRight"),borderInlineEnd:kt.borders("borderInlineEnd"),borderBottom:kt.borders("borderBottom"),borderBlockEnd:kt.borders("borderBlockEnd"),borderBottomLeftRadius:kt.radii("borderBottomLeftRadius"),borderBottomRightRadius:kt.radii("borderBottomRightRadius"),borderLeft:kt.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:kt.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:kt.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:kt.borders(["borderLeft","borderRight"]),borderInline:kt.borders("borderInline"),borderY:kt.borders(["borderTop","borderBottom"]),borderBlock:kt.borders("borderBlock"),borderTopWidth:kt.borderWidths("borderTopWidth"),borderBlockStartWidth:kt.borderWidths("borderBlockStartWidth"),borderTopColor:kt.colors("borderTopColor"),borderBlockStartColor:kt.colors("borderBlockStartColor"),borderTopStyle:kt.borderStyles("borderTopStyle"),borderBlockStartStyle:kt.borderStyles("borderBlockStartStyle"),borderBottomWidth:kt.borderWidths("borderBottomWidth"),borderBlockEndWidth:kt.borderWidths("borderBlockEndWidth"),borderBottomColor:kt.colors("borderBottomColor"),borderBlockEndColor:kt.colors("borderBlockEndColor"),borderBottomStyle:kt.borderStyles("borderBottomStyle"),borderBlockEndStyle:kt.borderStyles("borderBlockEndStyle"),borderLeftWidth:kt.borderWidths("borderLeftWidth"),borderInlineStartWidth:kt.borderWidths("borderInlineStartWidth"),borderLeftColor:kt.colors("borderLeftColor"),borderInlineStartColor:kt.colors("borderInlineStartColor"),borderLeftStyle:kt.borderStyles("borderLeftStyle"),borderInlineStartStyle:kt.borderStyles("borderInlineStartStyle"),borderRightWidth:kt.borderWidths("borderRightWidth"),borderInlineEndWidth:kt.borderWidths("borderInlineEndWidth"),borderRightColor:kt.colors("borderRightColor"),borderInlineEndColor:kt.colors("borderInlineEndColor"),borderRightStyle:kt.borderStyles("borderRightStyle"),borderInlineEndStyle:kt.borderStyles("borderInlineEndStyle"),borderTopRadius:kt.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:kt.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:kt.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:kt.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(Et,{rounded:Et.borderRadius,roundedTop:Et.borderTopRadius,roundedTopLeft:Et.borderTopLeftRadius,roundedTopRight:Et.borderTopRightRadius,roundedTopStart:Et.borderStartStartRadius,roundedTopEnd:Et.borderStartEndRadius,roundedBottom:Et.borderBottomRadius,roundedBottomLeft:Et.borderBottomLeftRadius,roundedBottomRight:Et.borderBottomRightRadius,roundedBottomStart:Et.borderEndStartRadius,roundedBottomEnd:Et.borderEndEndRadius,roundedLeft:Et.borderLeftRadius,roundedRight:Et.borderRightRadius,roundedStart:Et.borderInlineStartRadius,roundedEnd:Et.borderInlineEndRadius,borderStart:Et.borderInlineStart,borderEnd:Et.borderInlineEnd,borderTopStartRadius:Et.borderStartStartRadius,borderTopEndRadius:Et.borderStartEndRadius,borderBottomStartRadius:Et.borderEndStartRadius,borderBottomEndRadius:Et.borderEndEndRadius,borderStartRadius:Et.borderInlineStartRadius,borderEndRadius:Et.borderInlineEndRadius,borderStartWidth:Et.borderInlineStartWidth,borderEndWidth:Et.borderInlineEndWidth,borderStartColor:Et.borderInlineStartColor,borderEndColor:Et.borderInlineEndColor,borderStartStyle:Et.borderInlineStartStyle,borderEndStyle:Et.borderInlineEndStyle});var Ct={color:kt.colors("color"),textColor:kt.colors("color"),fill:kt.colors("fill"),stroke:kt.colors("stroke")},_t={boxShadow:kt.shadows("boxShadow"),mixBlendMode:!0,blendMode:kt.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:kt.prop("backgroundBlendMode"),opacity:!0};Object.assign(_t,{shadow:_t.boxShadow});var Ot={filter:{transform:wt.filter},blur:kt.blur("--chakra-blur"),brightness:kt.propT("--chakra-brightness",wt.brightness),contrast:kt.propT("--chakra-contrast",wt.contrast),hueRotate:kt.propT("--chakra-hue-rotate",wt.hueRotate),invert:kt.propT("--chakra-invert",wt.invert),saturate:kt.propT("--chakra-saturate",wt.saturate),dropShadow:kt.propT("--chakra-drop-shadow",wt.dropShadow),backdropFilter:{transform:wt.backdropFilter},backdropBlur:kt.blur("--chakra-backdrop-blur"),backdropBrightness:kt.propT("--chakra-backdrop-brightness",wt.brightness),backdropContrast:kt.propT("--chakra-backdrop-contrast",wt.contrast),backdropHueRotate:kt.propT("--chakra-backdrop-hue-rotate",wt.hueRotate),backdropInvert:kt.propT("--chakra-backdrop-invert",wt.invert),backdropSaturate:kt.propT("--chakra-backdrop-saturate",wt.saturate)},Pt={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:wt.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:kt.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:kt.space("gap"),rowGap:kt.space("rowGap"),columnGap:kt.space("columnGap")};Object.assign(Pt,{flexDir:Pt.flexDirection});var Tt={gridGap:kt.space("gridGap"),gridColumnGap:kt.space("gridColumnGap"),gridRowGap:kt.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},Rt={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:wt.outline},outlineOffset:!0,outlineColor:kt.colors("outlineColor")},At={width:kt.sizesT("width"),inlineSize:kt.sizesT("inlineSize"),height:kt.sizes("height"),blockSize:kt.sizes("blockSize"),boxSize:kt.sizes(["width","height"]),minWidth:kt.sizes("minWidth"),minInlineSize:kt.sizes("minInlineSize"),minHeight:kt.sizes("minHeight"),minBlockSize:kt.sizes("minBlockSize"),maxWidth:kt.sizes("maxWidth"),maxInlineSize:kt.sizes("maxInlineSize"),maxHeight:kt.sizes("maxHeight"),maxBlockSize:kt.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{var n,r,o;const i=`@media screen and (min-width: ${null!=(o=null==(r=null==(n=t.__breakpoints)?void 0:n.get(e))?void 0:r.minW)?o:e})`;return{[i]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var n,r,o;const i=`@media screen and (max-width: ${null!=(o=null==(r=null==(n=t.__breakpoints)?void 0:n.get(e))?void 0:r._minW)?o:e})`;return{[i]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:kt.propT("float",wt.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(At,{w:At.width,h:At.height,minW:At.minWidth,maxW:At.maxWidth,minH:At.minHeight,maxH:At.maxHeight,overscroll:At.overscrollBehavior,overscrollX:At.overscrollBehaviorX,overscrollY:At.overscrollBehaviorY});var zt={listStyleType:!0,listStylePosition:!0,listStylePos:kt.prop("listStylePosition"),listStyleImage:!0,listStyleImg:kt.prop("listStyleImage")},It=(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 l=e(n,r,o,i);return a.set(r,l),l}})((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})),Mt={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},jt={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},Ft=(e,t,n)=>{const r={},o=It(e,t,{});for(const e in o)e in n&&null!=n[e]||(r[e]=o[e]);return r},Lt={srOnly:{transform:e=>!0===e?Mt:"focusable"===e?jt:{}},layerStyle:{processResult:!0,transform:(e,t,n)=>Ft(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>Ft(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>Ft(t,e,n)}},Dt={position:!0,pos:kt.prop("position"),zIndex:kt.prop("zIndex","zIndices"),inset:kt.spaceT("inset"),insetX:kt.spaceT(["left","right"]),insetInline:kt.spaceT("insetInline"),insetY:kt.spaceT(["top","bottom"]),insetBlock:kt.spaceT("insetBlock"),top:kt.spaceT("top"),insetBlockStart:kt.spaceT("insetBlockStart"),bottom:kt.spaceT("bottom"),insetBlockEnd:kt.spaceT("insetBlockEnd"),left:kt.spaceT("left"),insetInlineStart:kt.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:kt.spaceT("right"),insetInlineEnd:kt.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Dt,{insetStart:Dt.insetInlineStart,insetEnd:Dt.insetInlineEnd});var Nt={ring:{transform:wt.ring},ringColor:kt.colors("--chakra-ring-color"),ringOffset:kt.prop("--chakra-ring-offset-width"),ringOffsetColor:kt.colors("--chakra-ring-offset-color"),ringInset:kt.prop("--chakra-ring-inset")},Bt={margin:kt.spaceT("margin"),marginTop:kt.spaceT("marginTop"),marginBlockStart:kt.spaceT("marginBlockStart"),marginRight:kt.spaceT("marginRight"),marginInlineEnd:kt.spaceT("marginInlineEnd"),marginBottom:kt.spaceT("marginBottom"),marginBlockEnd:kt.spaceT("marginBlockEnd"),marginLeft:kt.spaceT("marginLeft"),marginInlineStart:kt.spaceT("marginInlineStart"),marginX:kt.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:kt.spaceT("marginInline"),marginY:kt.spaceT(["marginTop","marginBottom"]),marginBlock:kt.spaceT("marginBlock"),padding:kt.space("padding"),paddingTop:kt.space("paddingTop"),paddingBlockStart:kt.space("paddingBlockStart"),paddingRight:kt.space("paddingRight"),paddingBottom:kt.space("paddingBottom"),paddingBlockEnd:kt.space("paddingBlockEnd"),paddingLeft:kt.space("paddingLeft"),paddingInlineStart:kt.space("paddingInlineStart"),paddingInlineEnd:kt.space("paddingInlineEnd"),paddingX:kt.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:kt.space("paddingInline"),paddingY:kt.space(["paddingTop","paddingBottom"]),paddingBlock:kt.space("paddingBlock")};Object.assign(Bt,{m:Bt.margin,mt:Bt.marginTop,mr:Bt.marginRight,me:Bt.marginInlineEnd,marginEnd:Bt.marginInlineEnd,mb:Bt.marginBottom,ml:Bt.marginLeft,ms:Bt.marginInlineStart,marginStart:Bt.marginInlineStart,mx:Bt.marginX,my:Bt.marginY,p:Bt.padding,pt:Bt.paddingTop,py:Bt.paddingY,px:Bt.paddingX,pb:Bt.paddingBottom,pl:Bt.paddingLeft,ps:Bt.paddingInlineStart,paddingStart:Bt.paddingInlineStart,pr:Bt.paddingRight,pe:Bt.paddingInlineEnd,paddingEnd:Bt.paddingInlineEnd});var Vt={textDecorationColor:kt.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:kt.shadows("textShadow")},$t={clipPath:!0,transform:kt.propT("transform",wt.transform),transformOrigin:!0,translateX:kt.spaceT("--chakra-translate-x"),translateY:kt.spaceT("--chakra-translate-y"),skewX:kt.degreeT("--chakra-skew-x"),skewY:kt.degreeT("--chakra-skew-y"),scaleX:kt.prop("--chakra-scale-x"),scaleY:kt.prop("--chakra-scale-y"),scale:kt.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:kt.degreeT("--chakra-rotate")},Wt={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:kt.prop("transitionDuration","transition.duration"),transitionProperty:kt.prop("transitionProperty","transition.property"),transitionTimingFunction:kt.prop("transitionTimingFunction","transition.easing")},Ut={fontFamily:kt.prop("fontFamily","fonts"),fontSize:kt.prop("fontSize","fontSizes",wt.px),fontWeight:kt.prop("fontWeight","fontWeights"),lineHeight:kt.prop("lineHeight","lineHeights"),letterSpacing:kt.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"}},Ht={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:kt.spaceT("scrollMargin"),scrollMarginTop:kt.spaceT("scrollMarginTop"),scrollMarginBottom:kt.spaceT("scrollMarginBottom"),scrollMarginLeft:kt.spaceT("scrollMarginLeft"),scrollMarginRight:kt.spaceT("scrollMarginRight"),scrollMarginX:kt.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:kt.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:kt.spaceT("scrollPadding"),scrollPaddingTop:kt.spaceT("scrollPaddingTop"),scrollPaddingBottom:kt.spaceT("scrollPaddingBottom"),scrollPaddingLeft:kt.spaceT("scrollPaddingLeft"),scrollPaddingRight:kt.spaceT("scrollPaddingRight"),scrollPaddingX:kt.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:kt.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function qt(e){return Ze(e)&&e.reference?e.reference:String(e)}var Yt=(e,...t)=>t.map(qt).join(` ${e} `).replace(/calc/g,""),Xt=(...e)=>`calc(${Yt("+",...e)})`,Gt=(...e)=>`calc(${Yt("-",...e)})`,Qt=(...e)=>`calc(${Yt("*",...e)})`,Kt=(...e)=>`calc(${Yt("/",...e)})`,Zt=e=>{const t=qt(e);return null==t||Number.isNaN(parseFloat(t))?Qt(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},Jt=Object.assign((e=>({add:(...t)=>Jt(Xt(e,...t)),subtract:(...t)=>Jt(Gt(e,...t)),multiply:(...t)=>Jt(Qt(e,...t)),divide:(...t)=>Jt(Kt(e,...t)),negate:()=>Jt(Zt(e)),toString:()=>e.toString()})),{add:Xt,subtract:Gt,multiply:Qt,divide:Kt,negate:Zt});function en(e,t){return`var(${e}${t?`, ${t}`:""})`}function tn(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 nn(e,t,n){const r=tn(e,n);return{variable:r,reference:en(r,t)}}function rn(e){const t=null==e?0:e.length;return t?e[t-1]:void 0}function on(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}var an=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,ln=e=>Object.fromEntries(Object.entries(e).sort(an));function sn(e){const t=ln(e);return Object.assign(Object.values(t),t)}function un(e){var t;return e?"number"==typeof(e=null!=(t=on(e))?t:e)?`${e+-.02}`:e.replace(/(\d+\.?\d*)/u,(e=>`${parseFloat(e)+-.02}`)):e}function cn(e,t){const n=["@media screen"];return e&&n.push("and",`(min-width: ${on(e)})`),t&&n.push("and",`(max-width: ${on(t)})`),n.join(" ")}function dn(e){var t;if(!e)return null;e.base=null!=(t=e.base)?t:"0px";const n=sn(e),r=Object.entries(e).sort(an).map((([e,t],n,r)=>{var o;let[,i]=null!=(o=r[n+1])?o:[];return i=parseFloat(i)>0?un(i):void 0,{_minW:un(t),breakpoint:e,minW:t,maxW:i,maxWQuery:cn(null,i),minWQuery:cn(t),minMaxQuery:cn(t,i)}})),o=function(e){const t=Object.keys(ln(e));return new Set(t)}(e),i=Array.from(o.values());return{keys:o,normalized:n,isResponsive(e){const t=Object.keys(e);return t.length>0&&t.every((e=>o.has(e)))},asObject:ln(e),asArray:sn(e),details:r,get:e=>r.find((t=>t.breakpoint===e)),media:[null,...n.map((e=>cn(e))).slice(1)],toArrayValue(e){if(!Ze(e))throw new Error("toArrayValue: value must be an object");const t=i.map((t=>{var n;return null!=(n=e[t])?n:null}));for(;null===rn(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=i[n];return null!=r&&null!=t&&(e[r]=t),e}),{})}}}var fn=(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,pn=(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,hn=(e,t)=>`${e}:focus-visible ${t}`,mn=(e,t)=>`${e}:focus-within ${t}`,vn=(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,gn=(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,bn=(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,yn=(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,xn=e=>kn((t=>e(t,"&")),"[role=group]","[data-group]",".group"),wn=e=>kn((t=>e(t,"~ &")),"[data-peer]",".peer"),kn=(e,...t)=>t.map(e).join(", "),Sn={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&: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",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-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]",_groupHover:xn(fn),_peerHover:wn(fn),_groupFocus:xn(pn),_peerFocus:wn(pn),_groupFocusVisible:xn(hn),_peerFocusVisible:wn(hn),_groupActive:xn(vn),_peerActive:wn(vn),_groupDisabled:xn(gn),_peerDisabled:wn(gn),_groupInvalid:xn(bn),_peerInvalid:wn(bn),_groupChecked:xn(yn),_peerChecked:wn(yn),_groupFocusWithin:xn(mn),_peerFocusWithin:wn(mn),_peerPlaceholderShown:wn(((e,t)=>`${e}:placeholder-shown ${t}`)),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&: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]"},En=Object.keys(Sn);function Cn(e,t){return nn(String(e).replace(/\./g,"-"),void 0,t)}function _n(e,t,n={}){const{stop:r,getKey:o}=n;return function e(n,i=[]){var a;if(function(e){return"object"==typeof e&&null!=e&&!Array.isArray(e)}(n)||Array.isArray(n)){const l={};for(const[s,u]of Object.entries(n)){const c=null!=(a=null==o?void 0:o(s))?a:s,d=[...i,c];if(null==r?void 0:r(n,d))return t(n,i);l[c]=e(u,d)}return l}return t(n,i)}(e)}var On=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"],Pn=e=>En.includes(e)||"default"===e;var Tn=ot({},St,Et,Ct,Pt,At,Ot,Nt,Rt,Tt,Lt,Dt,_t,Bt,Ht,Ut,Vt,$t,zt,Wt),Rn=Object.assign({},Bt,At,Pt,Tt,Dt),An=(Object.keys(Rn),[...Object.keys(Tn),...En]),zn={...Tn,...Sn},In=e=>e in zn,Mn=(e,t)=>e.startsWith("--")&&"string"==typeof t&&!function(e){return/^var\(--.+\)$/.test(e)}(t),jn=(e,t)=>{var n,r;if(null==t)return t;const o=t=>{var n,r;return null==(r=null==(n=e.__cssMap)?void 0:n[t])?void 0:r.varRef},i=e=>{var t;return null!=(t=o(e))?t:e},[a,l]=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 null!=(r=null!=(n=o(a))?n:i(l))?r:i(t)};var Fn=e=>t=>function(e){const{configs:t={},pseudos:n={},theme:r}=e,o=(e,i=!1)=>{var a,l,s;const u=Je(e,r),c=(e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:n,toArrayValue:r,media:o}=t.__breakpoints,i={};for(const a in e){let l=Je(e[a],t);if(null==l)continue;if(l=Ze(l)&&n(l)?r(l):l,!Array.isArray(l)){i[a]=l;continue}const s=l.slice(0,o.length).length;for(let e=0;e<s;e+=1){const t=null==o?void 0:o[e];t?(i[t]=i[t]||{},null!=l[e]&&(i[t][a]=l[e])):i[a]=l[e]}}return i})(u)(r);let d={};for(let e in c){let f=Je(c[e],r);e in n&&(e=n[e]),Mn(e,f)&&(f=jn(r,f));let p=t[e];if(!0===p&&(p={property:e}),Ze(f)){d[e]=null!=(a=d[e])?a:{},d[e]=ot({},d[e],o(f,!0));continue}let h=null!=(s=null==(l=null==p?void 0:p.transform)?void 0:l.call(p,f,r,u))?s:f;h=(null==p?void 0:p.processResult)?o(h,!0):h;const m=Je(null==p?void 0:p.property,r);if(!i&&(null==p?void 0:p.static)){const e=Je(p.static,r);d=ot({},d,e)}if(m&&Array.isArray(m))for(const e of m)d[e]=h;else m?"&"===m&&Ze(h)?d=ot({},d,h):d[m]=h:Ze(h)?d=ot({},d,h):d[e]=h}return d};return o}({theme:t,pseudos:Sn,configs:Tn})(e);function Ln(e){return{definePartsStyle:e=>e,defineMultiStyleConfig:t=>({parts:e,...t})}}function Dn(e,t){for(let n=t+1;n<e.length;n++)if(null!=e[n])return n;return-1}function Nn(e){return function(e,t=[]){const n=Object.assign({},e);for(const e of t)e in n&&delete n[e];return n}(e,["styleConfig","size","variant","colorScheme"])}var Bn=(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 l=e(n,r,o,i);return a.set(r,l),l}})((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 Vn(e,t){const n={};return Object.keys(e).forEach((r=>{const o=e[r];t(o,r,e)&&(n[r]=o)})),n}var $n=e=>Vn(e,(e=>null!=e));function Wn(e,...t){return"function"==typeof e?e(...t):e}function Un(t){const{cssVarsRoot:n,theme:r,children:o}=t,i=(0,e.useMemo)((()=>function(e){var t;const n=function(e){const{__cssMap:t,__cssVars:n,__breakpoints:r,...o}=e;return o}(e),r=function(e){return function(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}(e,On)}(n),o=function(e){return e.semanticTokens}(n),i=function({tokens:e,semanticTokens:t}){const n={};return _n(e,((e,t)=>{null!=e&&(n[t.join(".")]={isSemantic:!1,value:e})})),_n(t,((e,t)=>{null!=e&&(n[t.join(".")]={isSemantic:!0,value:e})}),{stop:e=>Object.keys(e).every(Pn)}),n}({tokens:r,semanticTokens:o}),a=null==(t=n.config)?void 0:t.cssVarPrefix,{cssMap:l,cssVars:s}=function(e,t){let n={};const r={};for(const[o,i]of Object.entries(e)){const{isSemantic:a,value:l}=i,{variable:s,reference:u}=Cn(o,null==t?void 0:t.cssVarPrefix);if(!a){if(o.startsWith("space")){const e=o.split("."),[t,...n]=e,i=`${t}.-${n.join(".")}`,a=Jt.negate(l),c=Jt.negate(u);r[i]={value:a,var:s,varRef:c}}n[s]=l,r[o]={value:l,var:s,varRef:u};continue}const c=n=>{const r=[String(o).split(".")[0],n].join(".");if(!e[r])return n;const{reference:i}=Cn(r,null==t?void 0:t.cssVarPrefix);return i},d=Ze(l)?l:{default:l};n=ot(n,Object.entries(d).reduce(((e,[t,n])=>{var r,o;if(!n)return e;const i=c(`${n}`);return"default"===t?(e[s]=i,e):(e[null!=(o=null==(r=Sn)?void 0:r[t])?o:t]={[s]:i},e)}),{})),r[o]={value:u,var:s,varRef:u}}return{cssVars:n,cssMap:r}}(i,{cssVarPrefix:a});return Object.assign(n,{__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",...s},__cssMap:l,__breakpoints:dn(n.breakpoints)}),n}(r)),[r]);return(0,Ne.jsxs)(Re,{theme:i,children:[(0,Ne.jsx)(Hn,{root:n}),o]})}function Hn({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return(0,Ne.jsx)(Fe,{styles:e=>({[t]:e.__cssVars})})}var[qn,Yn]=function(t={}){const{strict:n=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:o}=t,i=(0,e.createContext)(void 0);return i.displayName=o,[i.Provider,function t(){var o;const a=(0,e.useContext)(i);if(!a&&n){const e=new Error(r);throw e.name="ContextError",null==(o=Error.captureStackTrace)||o.call(Error,e,t),e}return a},i]}({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});function Xn(){const{colorMode:e}=Ge();return(0,Ne.jsx)(Fe,{styles:t=>{const n=Wn(Bn(t,"styles.global"),{theme:t,colorMode:e});if(n)return Fn(n)(t)}})}var Gn,Qn="chakra-ui-light",Kn="chakra-ui-dark",Zn="chakra-ui-color-mode",Jn=(Gn=Zn,{ssr:!1,type:"localStorage",get(e){if(!(null==globalThis?void 0:globalThis.document))return e;let t;try{t=localStorage.getItem(Gn)||e}catch(e){}return t||e},set(e){try{localStorage.setItem(Gn,e)}catch(e){}}});var er=Boolean(null==globalThis?void 0:globalThis.document)?e.useLayoutEffect:e.useEffect,tr=()=>{};function nr(e,t){return"cookie"===e.type&&e.ssr?e.get(t):t}function rr(t){const{value:n,children:r,options:{useSystemColorMode:o,initialColorMode:i,disableTransitionOnChange:a}={},colorModeManager:l=Jn}=t,s="dark"===i?"dark":"light",[u,c]=(0,e.useState)((()=>nr(l,s))),[d,f]=(0,e.useState)((()=>nr(l))),{getSystemTheme:p,setClassName:h,setDataset:m,addListener:v}=(0,e.useMemo)((()=>function(e={}){const{preventTransition:t=!0}=e,n={setDataset:e=>{const r=t?n.preventTransition():void 0;document.documentElement.dataset.theme=e,document.documentElement.style.colorScheme=e,null==r||r()},setClassName(e){document.body.classList.add(e?Kn:Qn),document.body.classList.remove(e?Qn:Kn)},query:()=>window.matchMedia("(prefers-color-scheme: dark)"),getSystemTheme(e){var t;return(null!=(t=n.query().matches)?t:"dark"===e)?"dark":"light"},addListener(e){const t=n.query(),r=t=>{e(t.matches?"dark":"light")};return"function"==typeof t.addListener?t.addListener(r):t.addEventListener("change",r),()=>{"function"==typeof t.removeListener?t.removeListener(r):t.removeEventListener("change",r)}},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}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),requestAnimationFrame((()=>{requestAnimationFrame((()=>{document.head.removeChild(e)}))}))}}};return n}({preventTransition:a})),[a]),g="system"!==i||u?u:d,b=(0,e.useCallback)((e=>{const t="system"===e?p():e;c(t),h("dark"===t),m(t),l.set(t)}),[l,p,h,m]);er((()=>{"system"===i&&f(p())}),[]),(0,e.useEffect)((()=>{const e=l.get();b(e||("system"!==i?s:"system"))}),[l,s,i,b]);const y=(0,e.useCallback)((()=>{b("dark"===g?"light":"dark")}),[g,b]);(0,e.useEffect)((()=>{if(o)return v(b)}),[o,v,b]);const x=(0,e.useMemo)((()=>({colorMode:null!=n?n:g,toggleColorMode:n?tr:y,setColorMode:n?tr:b,forced:void 0!==n})),[g,y,b,n]);return(0,Ne.jsx)(Xe.Provider,{value:x,children:r})}rr.displayName="ColorModeProvider";var or=(0,e.createContext)({getDocument:()=>document,getWindow:()=>window});function ir(t){const{children:n,environment:r,disabled:o}=t,i=(0,e.useRef)(null),a=(0,e.useMemo)((()=>r||{getDocument:()=>{var e,t;return null!=(t=null==(e=i.current)?void 0:e.ownerDocument)?t:document},getWindow:()=>{var e,t;return null!=(t=null==(e=i.current)?void 0:e.ownerDocument.defaultView)?t:window}}),[r]),l=!o||!r;return(0,Ne.jsxs)(or.Provider,{value:a,children:[n,l&&(0,Ne.jsx)("span",{id:"__chakra_env",hidden:!0,ref:i})]})}or.displayName="EnvironmentContext",ir.displayName="EnvironmentProvider";var ar=e=>{const{children:t,colorModeManager:n,portalZIndex:r,resetScope:o,resetCSS:i=!0,theme:a={},environment:l,cssVarsRoot:s,disableEnvironment:u,disableGlobalStyle:c}=e,d=(0,Ne.jsx)(ir,{environment:l,disabled:u,children:t});return(0,Ne.jsx)(Un,{theme:a,cssVarsRoot:s,children:(0,Ne.jsxs)(rr,{colorModeManager:n,options:a.config,children:[i?(0,Ne.jsx)(We,{scope:o}):(0,Ne.jsx)($e,{}),!c&&(0,Ne.jsx)(Xn,{}),r?(0,Ne.jsx)(Ye,{zIndex:r,children:d}):d]})})},lr={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"}},sr={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"},ur={...sr,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"}},cr={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"},linkedin:{50:"#E8F4F9",100:"#CFEDFB",200:"#9BDAF3",300:"#68C7EC",400:"#34B3E4",500:"#00A0DC",600:"#008CC9",700:"#0077B5",800:"#005E93",900:"#004471"},facebook:{50:"#E8F4F9",100:"#D9DEE9",200:"#B7C2DA",300:"#6482C0",400:"#4267B2",500:"#385898",600:"#314E89",700:"#29487D",800:"#223B67",900:"#1E355B"},messenger:{50:"#D0E6FF",100:"#B9DAFF",200:"#A2CDFF",300:"#7AB8FF",400:"#2E90FF",500:"#0078FF",600:"#0063D1",700:"#0052AC",800:"#003C7E",900:"#002C5C"},whatsapp:{50:"#dffeec",100:"#b9f5d0",200:"#90edb3",300:"#65e495",400:"#3cdd78",500:"#22c35e",600:"#179848",700:"#0c6c33",800:"#01421c",900:"#001803"},twitter:{50:"#E5F4FD",100:"#C8E9FB",200:"#A8DCFA",300:"#83CDF7",400:"#57BBF5",500:"#1DA1F2",600:"#1A94DA",700:"#1681BF",800:"#136B9E",900:"#0D4D71"},telegram:{50:"#E3F2F9",100:"#C5E4F3",200:"#A2D4EC",300:"#7AC1E4",400:"#47A9DA",500:"#0088CC",600:"#007AB8",700:"#006BA1",800:"#005885",900:"#003F5E"}},...lr,sizes:ur,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:sr,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"}}},{defineMultiStyleConfig:dr,definePartsStyle:fr}=Ln(["stepper","step","title","description","indicator","separator","icon","number"]),pr=nn("stepper-indicator-size"),hr=nn("stepper-icon-size"),mr=nn("stepper-title-font-size"),vr=nn("stepper-description-font-size"),gr=nn("stepper-accent-color"),br=fr((({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"},[gr.variable]:`colors.${e}.500`,_dark:{[gr.variable]:`colors.${e}.200`}},title:{fontSize:mr.reference,fontWeight:"medium"},description:{fontSize:vr.reference,color:"chakra-subtle-text"},number:{fontSize:mr.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:pr.reference,height:pr.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:gr.reference},"&[data-status=complete]":{bg:gr.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:gr.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${pr.reference} - 8px)`,top:`calc(${pr.reference} + 4px)`,insetStart:`calc(${pr.reference} / 2 - 1px)`}}}))),yr=dr({baseStyle:br,sizes:{xs:fr({stepper:{[pr.variable]:"sizes.4",[hr.variable]:"sizes.3",[mr.variable]:"fontSizes.xs",[vr.variable]:"fontSizes.xs"}}),sm:fr({stepper:{[pr.variable]:"sizes.6",[hr.variable]:"sizes.4",[mr.variable]:"fontSizes.sm",[vr.variable]:"fontSizes.xs"}}),md:fr({stepper:{[pr.variable]:"sizes.8",[hr.variable]:"sizes.5",[mr.variable]:"fontSizes.md",[vr.variable]:"fontSizes.sm"}}),lg:fr({stepper:{[pr.variable]:"sizes.10",[hr.variable]:"sizes.6",[mr.variable]:"fontSizes.lg",[vr.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}});function xr(e,t={}){let n=!1;function r(t){const n=`chakra-${(["container","root"].includes(null!=t?t:"")?[e]:[e,t]).filter(Boolean).join("__")}`;return{className:n,selector:`.${n}`,toString:()=>t}}return{parts:function(...o){!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 o)t[e]=r(e);return xr(e,t)},toPart:r,extend:function(...n){for(const e of n)e in t||(t[e]=r(e));return xr(e,t)},selectors:function(){const e=Object.fromEntries(Object.entries(t).map((([e,t])=>[e,t.selector])));return e},classnames:function(){const e=Object.fromEntries(Object.entries(t).map((([e,t])=>[e,t.className])));return e},get keys(){return Object.keys(t)},__type:{}}}var wr=xr("accordion").parts("root","container","button","panel").extend("icon"),kr=xr("alert").parts("title","description","container").extend("icon","spinner"),Sr=xr("avatar").parts("label","badge","container").extend("excessLabel","group"),Er=xr("breadcrumb").parts("link","item","container").extend("separator"),Cr=(xr("button").parts(),xr("checkbox").parts("control","icon","container").extend("label")),_r=(xr("progress").parts("track","filledTrack").extend("label"),xr("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer")),Or=xr("editable").parts("preview","input","textarea"),Pr=xr("form").parts("container","requiredIndicator","helperText"),Tr=xr("formError").parts("text","icon"),Rr=xr("input").parts("addon","field","element","group"),Ar=xr("list").parts("container","item","icon"),zr=xr("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),Ir=xr("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),Mr=xr("numberinput").parts("root","field","stepperGroup","stepper"),jr=(xr("pininput").parts("field"),xr("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton")),Fr=xr("progress").parts("label","filledTrack","track"),Lr=xr("radio").parts("container","control","label"),Dr=xr("select").parts("field","icon"),Nr=xr("slider").parts("container","track","thumb","filledTrack","mark"),Br=xr("stat").parts("container","label","helpText","number","icon"),Vr=xr("switch").parts("container","track","thumb","label"),$r=xr("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),Wr=xr("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),Ur=xr("tag").parts("container","label","closeButton"),Hr=xr("card").parts("container","header","body","footer");function qr(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 Yr(e,t){return`var(${qr(e)}${t?`, ${t}`:""})`}function Xr(e,t){const n=function(e,t=""){return`--${function(e,t=""){return[t,qr(e)].filter(Boolean).join("-")}(e,t)}`}(e,null==t?void 0:t.prefix);return{variable:n,reference:Yr(n,(r=null==t?void 0:t.fallback,"string"==typeof r?r:null==r?void 0:r.reference))};var r}function Gr(e){return Ze(e)&&e.reference?e.reference:String(e)}xr("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");var Qr=(e,...t)=>t.map(Gr).join(` ${e} `).replace(/calc/g,""),Kr=(...e)=>`calc(${Qr("+",...e)})`,Zr=(...e)=>`calc(${Qr("-",...e)})`,Jr=(...e)=>`calc(${Qr("*",...e)})`,eo=(...e)=>`calc(${Qr("/",...e)})`,to=e=>{const t=Gr(e);return null==t||Number.isNaN(parseFloat(t))?Jr(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},no=Object.assign((e=>({add:(...t)=>no(Kr(e,...t)),subtract:(...t)=>no(Zr(e,...t)),multiply:(...t)=>no(Jr(e,...t)),divide:(...t)=>no(eo(e,...t)),negate:()=>no(to(e)),toString:()=>e.toString()})),{add:Kr,subtract:Zr,multiply:Jr,divide:eo,negate:to}),{defineMultiStyleConfig:ro,definePartsStyle:oo}=Ln(Vr.keys),io=Xr("switch-track-width"),ao=Xr("switch-track-height"),lo=Xr("switch-track-diff"),so=no.subtract(io,ao),uo=Xr("switch-thumb-x"),co=Xr("switch-bg"),fo=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[io.reference],height:[ao.reference],transitionProperty:"common",transitionDuration:"fast",[co.variable]:"colors.gray.300",_dark:{[co.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[co.variable]:`colors.${t}.500`,_dark:{[co.variable]:`colors.${t}.200`}},bg:co.reference}},po={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[ao.reference],height:[ao.reference],_checked:{transform:`translateX(${uo.reference})`}},ho=ro({baseStyle:oo((e=>({container:{[lo.variable]:so,[uo.variable]:lo.reference,_rtl:{[uo.variable]:no(lo).negate().toString()}},track:fo(e),thumb:po}))),sizes:{sm:oo({container:{[io.variable]:"1.375rem",[ao.variable]:"sizes.3"}}),md:oo({container:{[io.variable]:"1.875rem",[ao.variable]:"sizes.4"}}),lg:oo({container:{[io.variable]:"2.875rem",[ao.variable]:"sizes.6"}})},defaultProps:{size:"md",colorScheme:"blue"}});function mo(e,t){return n=>"dark"===n.colorMode?t:e}function vo(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?"vertical"===t?n:r:{}}var{defineMultiStyleConfig:go,definePartsStyle:bo}=Ln($r.keys),yo=bo({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"}}),xo={"&[data-is-numeric=true]":{textAlign:"end"}},wo=bo((e=>{const{colorScheme:t}=e;return{th:{color:mo("gray.600","gray.400")(e),borderBottom:"1px",borderColor:mo(`${t}.100`,`${t}.700`)(e),...xo},td:{borderBottom:"1px",borderColor:mo(`${t}.100`,`${t}.700`)(e),...xo},caption:{color:mo("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}})),ko=bo((e=>{const{colorScheme:t}=e;return{th:{color:mo("gray.600","gray.400")(e),borderBottom:"1px",borderColor:mo(`${t}.100`,`${t}.700`)(e),...xo},td:{borderBottom:"1px",borderColor:mo(`${t}.100`,`${t}.700`)(e),...xo},caption:{color:mo("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:mo(`${t}.100`,`${t}.700`)(e)},td:{background:mo(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}})),So=go({baseStyle:yo,variants:{simple:wo,striped:ko,unstyled:{}},sizes:{sm:bo({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:bo({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:bo({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"}});function Eo(e,t,n){return Math.min(Math.max(e,n),t)}class Co extends Error{constructor(e){super(`Failed to parse color: "${e}"`)}}var _o=Co;function Oo(e){if("string"!=typeof e)throw new _o(e);if("transparent"===e.trim().toLowerCase())return[0,0,0,0];let t=e.trim();t=jo.test(e)?function(e){const t=e.toLowerCase().trim(),n=To[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 _o(e);return`#${n}`}(e):e;const n=Ao.exec(t);if(n){const e=Array.from(n).slice(1);return[...e.slice(0,3).map((e=>parseInt(Ro(e,2),16))),parseInt(Ro(e[3]||"f",2),16)/255]}const r=zo.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=Io.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=Mo.exec(t);if(i){const[t,n,r,o]=Array.from(i).slice(1).map(parseFloat);if(Eo(0,100,n)!==n)throw new _o(e);if(Eo(0,100,r)!==r)throw new _o(e);return[...Lo(t,n,r),Number.isNaN(o)?1:o]}throw new _o(e)}const Po=e=>parseInt(e.replace(/_/g,""),36),To="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=Po(t.substring(0,3)),r=Po(t.substring(3)).toString(16);let o="";for(let e=0;e<6-r.length;e++)o+="0";return e[n]=`${o}${r}`,e}),{}),Ro=(e,t)=>Array.from(Array(t)).map((()=>e)).join(""),Ao=new RegExp(`^#${Ro("([a-f0-9])",3)}([a-f0-9])?$`,"i"),zo=new RegExp(`^#${Ro("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),Io=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${Ro(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),Mo=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,jo=/^[a-z]+$/i,Fo=e=>Math.round(255*e),Lo=(e,t,n)=>{let r=n/100;if(0===t)return[r,r,r].map(Fo);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 l=0,s=0,u=0;o>=0&&o<1?(l=i,s=a):o>=1&&o<2?(l=a,s=i):o>=2&&o<3?(s=i,u=a):o>=3&&o<4?(s=a,u=i):o>=4&&o<5?(l=a,u=i):o>=5&&o<6&&(l=i,u=a);const c=r-i/2;return[l+c,s+c,u+c].map(Fo)};function Do(e,t){const[n,r,o,i]=Oo(e);return function(e,t,n,r){return`rgba(${Eo(0,255,e).toFixed()}, ${Eo(0,255,t).toFixed()}, ${Eo(0,255,n).toFixed()}, ${parseFloat(Eo(0,1,r).toFixed(3))})`}(n,r,o,i-t)}var No=(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]=Oo(e);let i=e=>{const t=Eo(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 null!=n?n:"#000000"}},Bo=(e,t)=>n=>Do(No(n,e),1-t);function Vo(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}`}}var $o=nn("tabs-color"),Wo=nn("tabs-bg"),Uo=nn("tabs-border-color"),{defineMultiStyleConfig:Ho,definePartsStyle:qo}=Ln(Wr.keys),Yo=e=>{const{orientation:t}=e;return{display:"vertical"===t?"flex":"block"}},Xo=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}}},Go=e=>{const{align:t="start",orientation:n}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:"vertical"===n?"column":"row"}},Qo={p:4},Ko=qo((e=>({root:Yo(e),tab:Xo(e),tablist:Go(e),tabpanel:Qo}))),Zo={sm:qo({tab:{py:1,px:4,fontSize:"sm"}}),md:qo({tab:{fontSize:"md",py:2,px:4}}),lg:qo({tab:{fontSize:"lg",py:3,px:4}})},Jo=qo((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:{[$o.variable]:`colors.${t}.600`,_dark:{[$o.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[Wo.variable]:"colors.gray.200",_dark:{[Wo.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:$o.reference,bg:Wo.reference}}})),ei=qo((e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[Uo.variable]:"transparent",_selected:{[$o.variable]:`colors.${t}.600`,[Uo.variable]:"colors.white",_dark:{[$o.variable]:`colors.${t}.300`,[Uo.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:Uo.reference},color:$o.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}})),ti=qo((e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[Wo.variable]:"colors.gray.50",_dark:{[Wo.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[Wo.variable]:"colors.white",[$o.variable]:`colors.${t}.600`,_dark:{[Wo.variable]:"colors.gray.800",[$o.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:$o.reference,bg:Wo.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}})),ni=qo((e=>{const{colorScheme:t,theme:n}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:No(n,`${t}.700`),bg:No(n,`${t}.100`)}}}})),ri=qo((e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[$o.variable]:"colors.gray.600",_dark:{[$o.variable]:"inherit"},_selected:{[$o.variable]:"colors.white",[Wo.variable]:`colors.${t}.600`,_dark:{[$o.variable]:"colors.gray.800",[Wo.variable]:`colors.${t}.300`}},color:$o.reference,bg:Wo.reference}}})),oi=Ho({baseStyle:Ko,sizes:Zo,variants:{line:Jo,enclosed:ei,"enclosed-colored":ti,"soft-rounded":ni,"solid-rounded":ri,unstyled:qo({})},defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),ii=function(e,t){const n={};for(const t of["bg","color","shadow"])if(Array.isArray(t)){const[r,o]=t;n[r]=nn(`${e}-${r}`,o)}else n[t]=nn(`${e}-${t}`);return n}("badge"),ai={baseStyle:{px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:ii.bg.reference,color:ii.color.reference,boxShadow:ii.shadow.reference},variants:{solid:e=>{const{colorScheme:t,theme:n}=e,r=Bo(`${t}.500`,.6)(n);return{[ii.bg.variable]:`colors.${t}.500`,[ii.color.variable]:"colors.white",_dark:{[ii.bg.variable]:r,[ii.color.variable]:"colors.whiteAlpha.800"}}},subtle:e=>{const{colorScheme:t,theme:n}=e,r=Bo(`${t}.200`,.16)(n);return{[ii.bg.variable]:`colors.${t}.100`,[ii.color.variable]:`colors.${t}.800`,_dark:{[ii.bg.variable]:r,[ii.color.variable]:`colors.${t}.200`}}},outline:e=>{const{colorScheme:t,theme:n}=e,r=Bo(`${t}.200`,.8)(n);return{[ii.color.variable]:`colors.${t}.500`,_dark:{[ii.color.variable]:r},[ii.shadow.variable]:`inset 0 0 0px 1px ${ii.color.reference}`}}},defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:li,definePartsStyle:si}=Ln(Ur.keys),ui=nn("tag-bg"),ci=nn("tag-color"),di=nn("tag-shadow"),fi=nn("tag-min-height"),pi=nn("tag-min-width"),hi=nn("tag-font-size"),mi=nn("tag-padding-inline"),vi=si({container:{fontWeight:"medium",lineHeight:1.2,outline:0,[ci.variable]:ii.color.reference,[ui.variable]:ii.bg.reference,[di.variable]:ii.shadow.reference,color:ci.reference,bg:ui.reference,boxShadow:di.reference,borderRadius:"md",minH:fi.reference,minW:pi.reference,fontSize:hi.reference,px:mi.reference,_focusVisible:{[di.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}}}),gi={sm:si({container:{[fi.variable]:"sizes.5",[pi.variable]:"sizes.5",[hi.variable]:"fontSizes.xs",[mi.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:si({container:{[fi.variable]:"sizes.6",[pi.variable]:"sizes.6",[hi.variable]:"fontSizes.sm",[mi.variable]:"space.2"}}),lg:si({container:{[fi.variable]:"sizes.8",[pi.variable]:"sizes.8",[hi.variable]:"fontSizes.md",[mi.variable]:"space.3"}})},bi={subtle:si((e=>{var t;return{container:null==(t=ai.variants)?void 0:t.subtle(e)}})),solid:si((e=>{var t;return{container:null==(t=ai.variants)?void 0:t.solid(e)}})),outline:si((e=>{var t;return{container:null==(t=ai.variants)?void 0:t.outline(e)}}))},yi=li({variants:bi,baseStyle:vi,sizes:gi,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:xi,defineMultiStyleConfig:wi}=Ln(Rr.keys),ki=nn("input-height"),Si=nn("input-font-size"),Ei=nn("input-padding"),Ci=nn("input-border-radius"),_i=xi({addon:{height:ki.reference,fontSize:Si.reference,px:Ei.reference,borderRadius:Ci.reference},field:{width:"100%",height:ki.reference,fontSize:Si.reference,px:Ei.reference,borderRadius:Ci.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),Oi={lg:{[Si.variable]:"fontSizes.lg",[Ei.variable]:"space.4",[Ci.variable]:"radii.md",[ki.variable]:"sizes.12"},md:{[Si.variable]:"fontSizes.md",[Ei.variable]:"space.4",[Ci.variable]:"radii.md",[ki.variable]:"sizes.10"},sm:{[Si.variable]:"fontSizes.sm",[Ei.variable]:"space.3",[Ci.variable]:"radii.sm",[ki.variable]:"sizes.8"},xs:{[Si.variable]:"fontSizes.xs",[Ei.variable]:"space.2",[Ci.variable]:"radii.sm",[ki.variable]:"sizes.6"}},Pi={lg:xi({field:Oi.lg,group:Oi.lg}),md:xi({field:Oi.md,group:Oi.md}),sm:xi({field:Oi.sm,group:Oi.sm}),xs:xi({field:Oi.xs,group:Oi.xs})};function Ti(e){const{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||mo("blue.500","blue.300")(e),errorBorderColor:n||mo("red.500","red.300")(e)}}var Ri,Ai,zi,Ii,Mi,ji,Fi,Li,Di,Ni,Bi,Vi=xi((e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Ti(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:mo("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:No(t,r),boxShadow:`0 0 0 1px ${No(t,r)}`},_focusVisible:{zIndex:1,borderColor:No(t,n),boxShadow:`0 0 0 1px ${No(t,n)}`}},addon:{border:"1px solid",borderColor:mo("inherit","whiteAlpha.50")(e),bg:mo("gray.100","whiteAlpha.300")(e)}}})),$i=xi((e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Ti(e);return{field:{border:"2px solid",borderColor:"transparent",bg:mo("gray.100","whiteAlpha.50")(e),_hover:{bg:mo("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:No(t,r)},_focusVisible:{bg:"transparent",borderColor:No(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:mo("gray.100","whiteAlpha.50")(e)}}})),Wi=xi((e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Ti(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:No(t,r),boxShadow:`0px 1px 0px 0px ${No(t,r)}`},_focusVisible:{borderColor:No(t,n),boxShadow:`0px 1px 0px 0px ${No(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}})),Ui=wi({baseStyle:_i,sizes:Pi,variants:{outline:Vi,filled:$i,flushed:Wi,unstyled:xi({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}})},defaultProps:{size:"md",variant:"outline"}}),Hi={...null==(Ri=Ui.baseStyle)?void 0:Ri.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},qi={outline:e=>{var t,n;return null!=(n=null==(t=Ui.variants)?void 0:t.outline(e).field)?n:{}},flushed:e=>{var t,n;return null!=(n=null==(t=Ui.variants)?void 0:t.flushed(e).field)?n:{}},filled:e=>{var t,n;return null!=(n=null==(t=Ui.variants)?void 0:t.filled(e).field)?n:{}},unstyled:null!=(zi=null==(Ai=Ui.variants)?void 0:Ai.unstyled.field)?zi:{}},Yi={baseStyle:Hi,sizes:{xs:null!=(Mi=null==(Ii=Ui.sizes)?void 0:Ii.xs.field)?Mi:{},sm:null!=(Fi=null==(ji=Ui.sizes)?void 0:ji.sm.field)?Fi:{},md:null!=(Di=null==(Li=Ui.sizes)?void 0:Li.md.field)?Di:{},lg:null!=(Bi=null==(Ni=Ui.sizes)?void 0:Ni.lg.field)?Bi:{}},variants:qi,defaultProps:{size:"md",variant:"outline"}},Xi=Xr("tooltip-bg"),Gi=Xr("tooltip-fg"),Qi=Xr("popper-arrow-bg"),Ki={baseStyle:{bg:Xi.reference,color:Gi.reference,[Xi.variable]:"colors.gray.700",[Gi.variable]:"colors.whiteAlpha.900",_dark:{[Xi.variable]:"colors.gray.300",[Gi.variable]:"colors.gray.900"},[Qi.variable]:Xi.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"}},{defineMultiStyleConfig:Zi,definePartsStyle:Ji}=Ln(Fr.keys),ea=e=>{const{colorScheme:t,theme:n,isIndeterminate:r,hasStripe:o}=e,i=mo(Vo(),Vo("1rem","rgba(0,0,0,0.1)"))(e),a=mo(`${t}.500`,`${t}.200`)(e),l=`linear-gradient(\n to right,\n transparent 0%,\n ${No(n,a)} 50%,\n transparent 100%\n )`;return{...!r&&o&&i,...r?{bgImage:l}:{bgColor:a}}},ta={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},na=e=>({bg:mo("gray.100","whiteAlpha.300")(e)}),ra=e=>({transitionProperty:"common",transitionDuration:"slow",...ea(e)}),oa=Ji((e=>({label:ta,filledTrack:ra(e),track:na(e)}))),ia=Zi({sizes:{xs:Ji({track:{h:"1"}}),sm:Ji({track:{h:"2"}}),md:Ji({track:{h:"3"}}),lg:Ji({track:{h:"4"}})},baseStyle:oa,defaultProps:{size:"md",colorScheme:"blue"}});function aa(e,...t){return"function"==typeof e?e(...t):e}var la,sa,ua,ca,da,fa,pa,ha,ma,{definePartsStyle:va,defineMultiStyleConfig:ga}=Ln(Cr.keys),ba=nn("checkbox-size"),ya=e=>{const{colorScheme:t}=e;return{w:ba.reference,h:ba.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:mo(`${t}.500`,`${t}.200`)(e),borderColor:mo(`${t}.500`,`${t}.200`)(e),color:mo("white","gray.900")(e),_hover:{bg:mo(`${t}.600`,`${t}.300`)(e),borderColor:mo(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:mo("gray.200","transparent")(e),bg:mo("gray.200","whiteAlpha.300")(e),color:mo("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:mo(`${t}.500`,`${t}.200`)(e),borderColor:mo(`${t}.500`,`${t}.200`)(e),color:mo("white","gray.900")(e)},_disabled:{bg:mo("gray.100","whiteAlpha.100")(e),borderColor:mo("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:mo("red.500","red.300")(e)}}},xa={_disabled:{cursor:"not-allowed"}},wa={userSelect:"none",_disabled:{opacity:.4}},ka={transitionProperty:"transform",transitionDuration:"normal"},Sa=ga({baseStyle:va((e=>({icon:ka,container:xa,control:aa(ya,e),label:wa}))),sizes:{sm:va({control:{[ba.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:va({control:{[ba.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:va({control:{[ba.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Ea,definePartsStyle:Ca}=Ln(Lr.keys),_a=e=>{var t;const n=null==(t=aa(Sa.baseStyle,e))?void 0:t.control;return{...n,borderRadius:"full",_checked:{...null==n?void 0:n._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},Oa=Ca((e=>{var t,n,r,o;return{label:null==(n=(t=Sa).baseStyle)?void 0:n.call(t,e).label,container:null==(o=(r=Sa).baseStyle)?void 0:o.call(r,e).container,control:_a(e)}})),Pa=Ea({baseStyle:Oa,sizes:{md:Ca({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:Ca({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:Ca({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Ta,definePartsStyle:Ra}=Ln(Dr.keys),Aa=nn("select-bg"),za={paddingInlineEnd:"8"},Ia=Ta({baseStyle:Ra({field:{...null==(la=Ui.baseStyle)?void 0:la.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:Aa.reference,[Aa.variable]:"colors.white",_dark:{[Aa.variable]:"colors.gray.700"},"> option, > optgroup":{bg:Aa.reference}},icon:{width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}}}),sizes:{lg:{...null==(sa=Ui.sizes)?void 0:sa.lg,field:{...null==(ua=Ui.sizes)?void 0:ua.lg.field,...za}},md:{...null==(ca=Ui.sizes)?void 0:ca.md,field:{...null==(da=Ui.sizes)?void 0:da.md.field,...za}},sm:{...null==(fa=Ui.sizes)?void 0:fa.sm,field:{...null==(pa=Ui.sizes)?void 0:pa.sm.field,...za}},xs:{...null==(ha=Ui.sizes)?void 0:ha.xs,field:{...null==(ma=Ui.sizes)?void 0:ma.xs.field,...za},icon:{insetEnd:"1"}}},variants:Ui.variants,defaultProps:Ui.defaultProps}),Ma=nn("skeleton-start-color"),ja=nn("skeleton-end-color"),Fa={baseStyle:{[Ma.variable]:"colors.gray.100",[ja.variable]:"colors.gray.400",_dark:{[Ma.variable]:"colors.gray.800",[ja.variable]:"colors.gray.600"},background:Ma.reference,borderColor:ja.reference,opacity:.7,borderRadius:"sm"}},La=nn("skip-link-bg"),Da={baseStyle:{borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[La.variable]:"colors.white",_dark:{[La.variable]:"colors.gray.700"},bg:La.reference}}},{defineMultiStyleConfig:Na,definePartsStyle:Ba}=Ln(Nr.keys),Va=nn("slider-thumb-size"),$a=nn("slider-track-size"),Wa=nn("slider-bg"),Ua=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...vo({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},Ha=e=>({...vo({orientation:e.orientation,horizontal:{h:$a.reference},vertical:{w:$a.reference}}),overflow:"hidden",borderRadius:"sm",[Wa.variable]:"colors.gray.200",_dark:{[Wa.variable]:"colors.whiteAlpha.200"},_disabled:{[Wa.variable]:"colors.gray.300",_dark:{[Wa.variable]:"colors.whiteAlpha.300"}},bg:Wa.reference}),qa=e=>{const{orientation:t}=e;return{...vo({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:Va.reference,h:Va.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"}}},Ya=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[Wa.variable]:`colors.${t}.500`,_dark:{[Wa.variable]:`colors.${t}.200`},bg:Wa.reference}},Xa=Na({baseStyle:Ba((e=>({container:Ua(e),track:Ha(e),thumb:qa(e),filledTrack:Ya(e)}))),sizes:{lg:Ba({container:{[Va.variable]:"sizes.4",[$a.variable]:"sizes.1"}}),md:Ba({container:{[Va.variable]:"sizes.3.5",[$a.variable]:"sizes.1"}}),sm:Ba({container:{[Va.variable]:"sizes.2.5",[$a.variable]:"sizes.0.5"}})},defaultProps:{size:"md",colorScheme:"blue"}}),Ga=Xr("spinner-size"),Qa={baseStyle:{width:[Ga.reference],height:[Ga.reference]},sizes:{xs:{[Ga.variable]:"sizes.3"},sm:{[Ga.variable]:"sizes.4"},md:{[Ga.variable]:"sizes.6"},lg:{[Ga.variable]:"sizes.8"},xl:{[Ga.variable]:"sizes.12"}},defaultProps:{size:"md"}},{defineMultiStyleConfig:Ka,definePartsStyle:Za}=Ln(Br.keys),Ja=Ka({baseStyle:Za({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:Za({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},defaultProps:{size:"md"}}),el=nn("kbd-bg"),tl={baseStyle:{[el.variable]:"colors.gray.100",_dark:{[el.variable]:"colors.whiteAlpha.100"},bg:el.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"}},{defineMultiStyleConfig:nl,definePartsStyle:rl}=Ln(Ar.keys),ol=nl({baseStyle:rl({icon:{marginEnd:"2",display:"inline",verticalAlign:"text-bottom"}})}),{defineMultiStyleConfig:il,definePartsStyle:al}=Ln(zr.keys),ll=nn("menu-bg"),sl=nn("menu-shadow"),ul=il({baseStyle:al({button:{transitionProperty:"common",transitionDuration:"normal"},list:{[ll.variable]:"#fff",[sl.variable]:"shadows.sm",_dark:{[ll.variable]:"colors.gray.700",[sl.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:ll.reference,boxShadow:sl.reference},item:{py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[ll.variable]:"colors.gray.100",_dark:{[ll.variable]:"colors.whiteAlpha.100"}},_active:{[ll.variable]:"colors.gray.200",_dark:{[ll.variable]:"colors.whiteAlpha.200"}},_expanded:{[ll.variable]:"colors.gray.100",_dark:{[ll.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:ll.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:cl,definePartsStyle:dl}=Ln(Ir.keys),fl=nn("modal-bg"),pl=nn("modal-shadow"),hl={bg:"blackAlpha.600",zIndex:"modal"},ml=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"}},vl=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,[fl.variable]:"colors.white",[pl.variable]:"shadows.lg",_dark:{[fl.variable]:"colors.gray.700",[pl.variable]:"shadows.dark-lg"},bg:fl.reference,boxShadow:pl.reference}},gl={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},bl={position:"absolute",top:"2",insetEnd:"3"},yl=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:"inside"===t?"auto":void 0}},xl={px:"6",py:"4"};function wl(e){return dl("full"===e?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var kl=cl({baseStyle:dl((e=>({overlay:hl,dialogContainer:aa(ml,e),dialog:aa(vl,e),header:gl,closeButton:bl,body:aa(yl,e),footer:xl}))),sizes:{xs:wl("xs"),sm:wl("sm"),md:wl("md"),lg:wl("lg"),xl:wl("xl"),"2xl":wl("2xl"),"3xl":wl("3xl"),"4xl":wl("4xl"),"5xl":wl("5xl"),"6xl":wl("6xl"),full:wl("full")},defaultProps:{size:"md"}}),{defineMultiStyleConfig:Sl,definePartsStyle:El}=Ln(Mr.keys),Cl=Xr("number-input-stepper-width"),_l=Xr("number-input-input-padding"),Ol=no(Cl).add("0.5rem").toString(),Pl=Xr("number-input-bg"),Tl=Xr("number-input-color"),Rl=Xr("number-input-border-color"),Al={[Cl.variable]:"sizes.6",[_l.variable]:Ol},zl=e=>{var t,n;return null!=(n=null==(t=aa(Ui.baseStyle,e))?void 0:t.field)?n:{}},Il={width:Cl.reference},Ml={borderStart:"1px solid",borderStartColor:Rl.reference,color:Tl.reference,bg:Pl.reference,[Tl.variable]:"colors.chakra-body-text",[Rl.variable]:"colors.chakra-border-color",_dark:{[Tl.variable]:"colors.whiteAlpha.800",[Rl.variable]:"colors.whiteAlpha.300"},_active:{[Pl.variable]:"colors.gray.200",_dark:{[Pl.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},jl=El((e=>{var t;return{root:Al,field:null!=(t=aa(zl,e))?t:{},stepperGroup:Il,stepper:Ml}}));function Fl(e){var t,n,r;const o=null==(t=Ui.sizes)?void 0:t[e],i={lg:"md",md:"md",sm:"sm",xs:"sm"},a=null!=(r=null==(n=o.field)?void 0:n.fontSize)?r:"md",l=lr.fontSizes[a];return El({field:{...o.field,paddingInlineEnd:_l.reference,verticalAlign:"top"},stepper:{fontSize:no(l).multiply(.75).toString(),_first:{borderTopEndRadius:i[e]},_last:{borderBottomEndRadius:i[e],mt:"-1px",borderTopWidth:1}}})}var Ll,Dl,Nl,Bl=Sl({baseStyle:jl,sizes:{xs:Fl("xs"),sm:Fl("sm"),md:Fl("md"),lg:Fl("lg")},variants:Ui.variants,defaultProps:Ui.defaultProps}),Vl={...null==(Ll=Ui.baseStyle)?void 0:Ll.field,textAlign:"center"},$l={outline:e=>{var t,n,r;return null!=(r=null==(n=aa(null==(t=Ui.variants)?void 0:t.outline,e))?void 0:n.field)?r:{}},flushed:e=>{var t,n,r;return null!=(r=null==(n=aa(null==(t=Ui.variants)?void 0:t.flushed,e))?void 0:n.field)?r:{}},filled:e=>{var t,n,r;return null!=(r=null==(n=aa(null==(t=Ui.variants)?void 0:t.filled,e))?void 0:n.field)?r:{}},unstyled:null!=(Nl=null==(Dl=Ui.variants)?void 0:Dl.unstyled.field)?Nl:{}},Wl={baseStyle:Vl,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:$l,defaultProps:Ui.defaultProps},{defineMultiStyleConfig:Ul,definePartsStyle:Hl}=Ln(jr.keys),ql=Xr("popper-bg"),Yl=Xr("popper-arrow-bg"),Xl=Xr("popper-arrow-shadow-color"),Gl=Ul({baseStyle:Hl({popper:{zIndex:10},content:{[ql.variable]:"colors.white",bg:ql.reference,[Yl.variable]:ql.reference,[Xl.variable]:"colors.gray.200",_dark:{[ql.variable]:"colors.gray.700",[Xl.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}})}),{definePartsStyle:Ql,defineMultiStyleConfig:Kl}=Ln(_r.keys),Zl=nn("drawer-bg"),Jl=nn("drawer-box-shadow");function es(e){return Ql("full"===e?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var ts={bg:"blackAlpha.600",zIndex:"modal"},ns={display:"flex",zIndex:"modal",justifyContent:"center"},rs=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[Zl.variable]:"colors.white",[Jl.variable]:"shadows.lg",_dark:{[Zl.variable]:"colors.gray.700",[Jl.variable]:"shadows.dark-lg"},bg:Zl.reference,boxShadow:Jl.reference}},os={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},is={position:"absolute",top:"2",insetEnd:"3"},as={px:"6",py:"2",flex:"1",overflow:"auto"},ls={px:"6",py:"4"},ss=Kl({baseStyle:Ql((e=>({overlay:ts,dialogContainer:ns,dialog:aa(rs,e),header:os,closeButton:is,body:as,footer:ls}))),sizes:{xs:es("xs"),sm:es("md"),md:es("lg"),lg:es("2xl"),xl:es("4xl"),full:es("full")},defaultProps:{size:"xs"}}),{definePartsStyle:us,defineMultiStyleConfig:cs}=Ln(Or.keys),ds=cs({baseStyle:us({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:fs,defineMultiStyleConfig:ps}=Ln(Pr.keys),hs=nn("form-control-color"),ms=ps({baseStyle:fs({container:{width:"100%",position:"relative"},requiredIndicator:{marginStart:"1",[hs.variable]:"colors.red.500",_dark:{[hs.variable]:"colors.red.300"},color:hs.reference},helperText:{mt:"2",[hs.variable]:"colors.gray.600",_dark:{[hs.variable]:"colors.whiteAlpha.600"},color:hs.reference,lineHeight:"normal",fontSize:"sm"}})}),{definePartsStyle:vs,defineMultiStyleConfig:gs}=Ln(Tr.keys),bs=nn("form-error-color"),ys=gs({baseStyle:vs({text:{[bs.variable]:"colors.red.500",_dark:{[bs.variable]:"colors.red.300"},color:bs.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},icon:{marginEnd:"0.5em",[bs.variable]:"colors.red.500",_dark:{[bs.variable]:"colors.red.300"},color:bs.reference}})}),{defineMultiStyleConfig:xs,definePartsStyle:ws}=Ln(Er.keys),ks=nn("breadcrumb-link-decor"),Ss=xs({baseStyle:ws({link:{transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:ks.reference,[ks.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[ks.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}}})}),Es=e=>{const{colorScheme:t,theme:n}=e;if("gray"===t)return{color:mo("gray.800","whiteAlpha.900")(e),_hover:{bg:mo("gray.100","whiteAlpha.200")(e)},_active:{bg:mo("gray.200","whiteAlpha.300")(e)}};const r=Bo(`${t}.200`,.12)(n),o=Bo(`${t}.200`,.24)(n);return{color:mo(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:mo(`${t}.50`,r)(e)},_active:{bg:mo(`${t}.100`,o)(e)}}},Cs={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},_s={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:Es,outline:e=>{const{colorScheme:t}=e,n=mo("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"},...aa(Es,e)}},solid:e=>{var t;const{colorScheme:n}=e;if("gray"===n){const t=mo("gray.100","whiteAlpha.200")(e);return{bg:t,color:mo("gray.800","whiteAlpha.900")(e),_hover:{bg:mo("gray.200","whiteAlpha.300")(e),_disabled:{bg:t}},_active:{bg:mo("gray.300","whiteAlpha.400")(e)}}}const{bg:r=`${n}.500`,color:o="white",hoverBg:i=`${n}.600`,activeBg:a=`${n}.700`}=null!=(t=Cs[n])?t:{},l=mo(r,`${n}.200`)(e);return{bg:l,color:mo(o,"gray.800")(e),_hover:{bg:mo(i,`${n}.300`)(e),_disabled:{bg:l}},_active:{bg:mo(a,`${n}.400`)(e)}}},link:e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:mo(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:mo(`${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:Os,defineMultiStyleConfig:Ps}=Ln(Hr.keys),Ts=nn("card-bg"),Rs=nn("card-padding"),As=nn("card-shadow"),zs=nn("card-radius"),Is=nn("card-border-width","0"),Ms=nn("card-border-color"),js=Os({container:{[Ts.variable]:"colors.chakra-body-bg",backgroundColor:Ts.reference,boxShadow:As.reference,borderRadius:zs.reference,color:"chakra-body-text",borderWidth:Is.reference,borderColor:Ms.reference},body:{padding:Rs.reference,flex:"1 1 0%"},header:{padding:Rs.reference},footer:{padding:Rs.reference}}),Fs={sm:Os({container:{[zs.variable]:"radii.base",[Rs.variable]:"space.3"}}),md:Os({container:{[zs.variable]:"radii.md",[Rs.variable]:"space.5"}}),lg:Os({container:{[zs.variable]:"radii.xl",[Rs.variable]:"space.7"}})},Ls=Ps({baseStyle:js,variants:{elevated:Os({container:{[As.variable]:"shadows.base",_dark:{[Ts.variable]:"colors.gray.700"}}}),outline:Os({container:{[Is.variable]:"1px",[Ms.variable]:"colors.chakra-border-color"}}),filled:Os({container:{[Ts.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[Rs.variable]:0},header:{[Rs.variable]:0},footer:{[Rs.variable]:0}}},sizes:Fs,defaultProps:{variant:"elevated",size:"md"}}),Ds=Xr("close-button-size"),Ns=Xr("close-button-bg"),Bs={baseStyle:{w:[Ds.reference],h:[Ds.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[Ns.variable]:"colors.blackAlpha.100",_dark:{[Ns.variable]:"colors.whiteAlpha.100"}},_active:{[Ns.variable]:"colors.blackAlpha.200",_dark:{[Ns.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:Ns.reference},sizes:{lg:{[Ds.variable]:"sizes.10",fontSize:"md"},md:{[Ds.variable]:"sizes.8",fontSize:"xs"},sm:{[Ds.variable]:"sizes.6",fontSize:"2xs"}},defaultProps:{size:"md"}},{variants:Vs,defaultProps:$s}=ai,Ws={baseStyle:{fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:ii.bg.reference,color:ii.color.reference,boxShadow:ii.shadow.reference},variants:Vs,defaultProps:$s},{definePartsStyle:Us,defineMultiStyleConfig:Hs}=Ln(wr.keys),qs=Hs({baseStyle:Us({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"}})}),{definePartsStyle:Ys,defineMultiStyleConfig:Xs}=Ln(kr.keys),Gs=nn("alert-fg"),Qs=nn("alert-bg"),Ks=Ys({container:{bg:Qs.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:Gs.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:Gs.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function Zs(e){const{theme:t,colorScheme:n}=e;return{light:`colors.${n}.100`,dark:Bo(`${n}.200`,.16)(t)}}var Js=Ys((e=>{const{colorScheme:t}=e,n=Zs(e);return{container:{[Gs.variable]:`colors.${t}.600`,[Qs.variable]:n.light,_dark:{[Gs.variable]:`colors.${t}.200`,[Qs.variable]:n.dark}}}})),eu=Ys((e=>{const{colorScheme:t}=e,n=Zs(e);return{container:{[Gs.variable]:`colors.${t}.600`,[Qs.variable]:n.light,_dark:{[Gs.variable]:`colors.${t}.200`,[Qs.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:Gs.reference}}})),tu=Ys((e=>{const{colorScheme:t}=e,n=Zs(e);return{container:{[Gs.variable]:`colors.${t}.600`,[Qs.variable]:n.light,_dark:{[Gs.variable]:`colors.${t}.200`,[Qs.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:Gs.reference}}})),nu=Ys((e=>{const{colorScheme:t}=e;return{container:{[Gs.variable]:"colors.white",[Qs.variable]:`colors.${t}.600`,_dark:{[Gs.variable]:"colors.gray.900",[Qs.variable]:`colors.${t}.200`},color:Gs.reference}}})),ru=Xs({baseStyle:Ks,variants:{subtle:Js,"left-accent":eu,"top-accent":tu,solid:nu},defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:ou,defineMultiStyleConfig:iu}=Ln(Sr.keys),au=nn("avatar-border-color"),lu=nn("avatar-bg"),su=nn("avatar-font-size"),uu=nn("avatar-size"),cu={borderRadius:"full",border:"0.2em solid",borderColor:au.reference,[au.variable]:"white",_dark:{[au.variable]:"colors.gray.800"}},du={bg:lu.reference,fontSize:su.reference,width:uu.reference,height:uu.reference,lineHeight:"1",[lu.variable]:"colors.gray.200",_dark:{[lu.variable]:"colors.whiteAlpha.400"}},fu=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]=Oo(e);return(299*t+587*n+114*r)/1e3})(No(t,e));return n<128?"dark":"light"})(e)(t))(r)(n);let i="white";return o||(i="gray.800"),{bg:lu.reference,fontSize:su.reference,color:i,borderColor:au.reference,verticalAlign:"top",width:uu.reference,height:uu.reference,"&:not([data-loaded])":{[lu.variable]:r},[au.variable]:"colors.white",_dark:{[au.variable]:"colors.gray.800"}}},pu={fontSize:su.reference,lineHeight:"1"};function hu(e){const t="100%"!==e?ur[e]:void 0;return ou({container:{[uu.variable]:null!=t?t:e,[su.variable]:`calc(${null!=t?t:e} / 2.5)`},excessLabel:{[uu.variable]:null!=t?t:e,[su.variable]:`calc(${null!=t?t:e} / 2.5)`}})}var mu={Accordion:qs,Alert:ru,Avatar:iu({baseStyle:ou((e=>({badge:aa(cu,e),excessLabel:aa(du,e),container:aa(fu,e),label:pu}))),sizes:{"2xs":hu(4),xs:hu(6),sm:hu(8),md:hu(12),lg:hu(16),xl:hu(24),"2xl":hu(32),full:hu("100%")},defaultProps:{size:"md"}}),Badge:ai,Breadcrumb:Ss,Button:_s,Checkbox:Sa,CloseButton:Bs,Code:Ws,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:ss,Editable:ds,Form:ms,FormError:ys,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:Ui,Kbd:tl,Link:{baseStyle:{transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}}},List:ol,Menu:ul,Modal:kl,NumberInput:Bl,PinInput:Wl,Popover:Gl,Progress:ia,Radio:Pa,Select:Ia,Skeleton:Fa,SkipLink:Da,Slider:Xa,Spinner:Qa,Stat:Ja,Switch:ho,Table:So,Tabs:oi,Tag:yi,Textarea:Yi,Tooltip:Ki,Card:Ls,Stepper:yr},vu={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"}}},gu={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"}}},bu={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},yu={semanticTokens:vu,direction:"ltr",...cr,components:mu,styles:gu,config:bu},xu={semanticTokens:vu,direction:"ltr",components:{},...cr,styles:gu,config:bu},wu=(e,t)=>e.find((e=>e.id===t));function ku(e,t){const n=Su(e,t);return{position:n,index:n?e[n].findIndex((e=>e.id===t)):-1}}function Su(e,t){for(const[n,r]of Object.entries(e))if(wu(r,t))return n}function Eu(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 Cu(t,n=[]){const r=(0,e.useRef)(t);return(0,e.useEffect)((()=>{r.current=t})),(0,e.useCallback)(((...e)=>{var t;return null==(t=r.current)?void 0:t.call(r,...e)}),n)}function _u(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})),[])}var Ou=(0,e.createContext)(null);function Pu(t){var n=(0,e.useRef)(null);return null===n.current&&(n.current=t()),n.current}function Tu(){var t=(0,e.useContext)(Ou);if(null===t)return[!0,null];var n=t.isPresent,r=t.onExitComplete,o=t.register,i=zu();return(0,e.useEffect)((function(){return o(i)}),[]),!n&&r?[!1,function(){return null==r?void 0:r(i)}]:[!0]}var Ru=0,Au=function(){return Ru++},zu=function(){return Pu(Au)},Iu=function(e,t){return Iu=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])},Iu(e,t)};function Mu(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}Iu(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var ju=function(){return ju=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},ju.apply(this,arguments)};function Fu(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 Lu(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 Du(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;var Nu=function(e){return{isEnabled:function(t){return e.some((function(e){return!!t[e]}))}}},Bu={measureLayout:Nu(["layout","layoutId","drag"]),animation:Nu(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:Nu(["exit"]),drag:Nu(["drag","dragControls"]),focus:Nu(["whileFocus"]),hover:Nu(["whileHover","onHoverStart","onHoverEnd"]),tap:Nu(["whileTap","onTap","onTapStart","onTapCancel"]),pan:Nu(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:Nu(["whileInView","onViewportEnter","onViewportLeave"])},Vu=(0,e.createContext)({strict:!1}),$u=Object.keys(Bu),Wu=$u.length,Uu=(0,e.createContext)({transformPagePoint:function(e){return e},isStatic:!1}),Hu=(0,e.createContext)({}),qu="undefined"!=typeof window,Yu=qu?e.useLayoutEffect:e.useEffect;function Xu(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Gu(e){return Array.isArray(e)}function Qu(e){return"string"==typeof e||Gu(e)}function Ku(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 Zu(e,t,n){var r=e.getProps();return Ku(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)||Qu(e.initial)||Qu(e.animate)||Qu(e.whileHover)||Qu(e.whileDrag)||Qu(e.whileTap)||Qu(e.whileFocus)||Qu(e.exit)}function ec(e){return Boolean(Ju(e)||e.variants)}function tc(e){return Array.isArray(e)?e.join(" "):e}const nc=1/60*1e3,rc="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),oc="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout((()=>e(rc())),nc);let ic=!0,ac=!1,lc=!1;const sc={delta:0,timestamp:0},uc=["read","update","preRender","render","postRender"],cc=uc.reduce(((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,o=!1,i=!1;const a=new WeakSet,l={schedule:(e,i=!1,l=!1)=>{const s=l&&o,u=s?t:n;return i&&a.add(e),-1===u.indexOf(e)&&(u.push(e),s&&o&&(r=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),a.delete(e)},process:s=>{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(s),a.has(r)&&(l.schedule(r),e())}o=!1,i&&(i=!1,l.process(s))}}};return l}((()=>ac=!0)),e)),{}),dc=uc.reduce(((e,t)=>{const n=cc[t];return e[t]=(e,t=!1,r=!1)=>(ac||vc(),n.schedule(e,t,r)),e}),{}),fc=uc.reduce(((e,t)=>(e[t]=cc[t].cancel,e)),{}),pc=uc.reduce(((e,t)=>(e[t]=()=>cc[t].process(sc),e)),{}),hc=e=>cc[e].process(sc),mc=e=>{ac=!1,sc.delta=ic?nc:Math.max(Math.min(e-sc.timestamp,40),1),sc.timestamp=e,lc=!0,uc.forEach(hc),lc=!1,ac&&(ic=!1,oc(mc))},vc=()=>{ac=!0,ic=!0,lc||oc(mc)},gc=()=>sc,bc=dc,yc=(e,t,n)=>-n*e+n*t+e;function xc(e,t){return t?e*(1e3/t):0}function wc(e,t){-1===e.indexOf(t)&&e.push(t)}function kc(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Sc=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return wc(this.subscriptions,e),function(){return kc(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}(),Ec=function(){function e(e){var t,n=this;this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new Sc,this.velocityUpdateSubscribers=new Sc,this.renderSubscribers=new Sc,this.canTrackVelocity=!1,this.updateAndNotify=function(e,t){void 0===t&&(t=!0),n.prev=n.current,n.current=e;var r=gc(),o=r.delta,i=r.timestamp;n.lastUpdated!==i&&(n.timeDelta=o,n.lastUpdated=i,bc.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 bc.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?xc(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 Cc(e){return new Ec(e)}var _c=function(e){return Boolean(null!==e&&"object"==typeof e&&e.getVelocity)},Oc=function(){},Pc=function(){};const Tc=(e,t,n)=>Math.min(Math.max(n,e),t),Rc=.001,Ac=.01,zc=10,Ic=.05,Mc=1;const jc=12;function Fc(e,t){return e*Math.sqrt(1-t*t)}const Lc=["duration","bounce"],Dc=["stiffness","damping","mass"];function Nc(e,t){return t.some((t=>void 0!==e[t]))}function Bc(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:o}=e,i=Fu(e,["from","to","restSpeed","restDelta"]);const a={done:!1,value:t};let{stiffness:l,damping:s,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(!Nc(e,Dc)&&Nc(e,Lc)){const n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;Oc(e<=1e3*zc,"Spring duration must be 10 seconds or less");let a=1-t;a=Tc(Ic,Mc,a),e=Tc(Ac,zc,e/1e3),a<1?(o=t=>{const r=t*a,o=r*e,i=r-n,l=Fc(t,a),s=Math.exp(-o);return Rc-i/l*s},i=t=>{const r=t*a*e,i=r*n+n,l=Math.pow(a,2)*Math.pow(t,2)*e,s=Math.exp(-r),u=Fc(Math.pow(t,2),a);return(-o(t)+Rc>0?-1:1)*((i-l)*s)/u}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-Rc,i=t=>Math.exp(-t*e)*(e*e*(n-t)));const l=function(e,t,n){let r=n;for(let n=1;n<jc;n++)r-=e(r)/t(r);return r}(o,i,5/e);if(e*=1e3,isNaN(l))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(l,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=Vc,h=Vc;function m(){const e=c?-c/1e3:0,r=n-t,i=s/(2*Math.sqrt(l*u)),a=Math.sqrt(l/u)/1e3;if(void 0===o&&(o=Math.min(Math.abs(n-t)/100,.4)),i<1){const t=Fc(a,i);p=o=>{const l=Math.exp(-i*a*o);return n-l*((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 l=Math.exp(-i*a*o),s=Math.min(t*o,300);return n-l*((e+i*a*r)*Math.sinh(s)+t*r*Math.cosh(s))/t}}}return m(),{next:e=>{const t=p(e);if(f)a.done=e>=d;else{const i=1e3*h(e),l=Math.abs(i)<=r,s=Math.abs(n-t)<=o;a.done=l&&s}return a.value=a.done?n:t,a},flipTarget:()=>{c=-c,[t,n]=[n,t],m()}}}Bc.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;const Vc=e=>0,$c=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},Wc=(e,t)=>n=>Math.max(Math.min(n,t),e),Uc=e=>e%1?Number(e.toFixed(5)):e,Hc=/(-)?([\d]*\.?[\d])+/g,qc=/(#[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,Yc=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function Xc(e){return"string"==typeof e}const Gc={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},Qc=Object.assign(Object.assign({},Gc),{transform:Wc(0,1)}),Kc=Object.assign(Object.assign({},Gc),{default:1}),Zc=(e,t)=>n=>Boolean(Xc(n)&&Yc.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Jc=(e,t,n)=>r=>{if(!Xc(r))return r;const[o,i,a,l]=r.match(Hc);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:void 0!==l?parseFloat(l):1}},ed=Wc(0,255),td=Object.assign(Object.assign({},Gc),{transform:e=>Math.round(ed(e))}),nd={test:Zc("rgb","red"),parse:Jc("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+td.transform(e)+", "+td.transform(t)+", "+td.transform(n)+", "+Uc(Qc.transform(r))+")"},rd={test:Zc("#"),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:nd.transform},od=e=>({test:t=>Xc(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),id=od("deg"),ad=od("%"),ld=od("px"),sd=od("vh"),ud=od("vw"),cd=Object.assign(Object.assign({},ad),{parse:e=>ad.parse(e)/100,transform:e=>ad.transform(100*e)}),dd={test:Zc("hsl","hue"),parse:Jc("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ad.transform(Uc(t))+", "+ad.transform(Uc(n))+", "+Uc(Qc.transform(r))+")"};function fd(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 pd({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,l=2*n-r;o=fd(l,r,e+1/3),i=fd(l,r,e),a=fd(l,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 hd=(e,t,n)=>{const r=e*e,o=t*t;return Math.sqrt(Math.max(0,n*(o-r)+r))},md=[rd,nd,dd],vd=e=>md.find((t=>t.test(e))),gd=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,bd=(e,t)=>{let n=vd(e),r=vd(t);Pc(!!n,gd(e)),Pc(!!r,gd(t));let o=n.parse(e),i=r.parse(t);n===dd&&(o=pd(o),n=nd),r===dd&&(i=pd(i),r=nd);const a=Object.assign({},o);return e=>{for(const t in a)"alpha"!==t&&(a[t]=hd(o[t],i[t],e));return a.alpha=yc(o.alpha,i.alpha,e),n.transform(a)}},yd={test:e=>nd.test(e)||rd.test(e)||dd.test(e),parse:e=>nd.test(e)?nd.parse(e):dd.test(e)?dd.parse(e):rd.parse(e),transform:e=>Xc(e)?e:e.hasOwnProperty("red")?nd.transform(e):dd.transform(e)},xd="${c}",wd="${n}";function kd(e){"number"==typeof e&&(e=`${e}`);const t=[];let n=0;const r=e.match(qc);r&&(n=r.length,e=e.replace(qc,xd),t.push(...r.map(yd.parse)));const o=e.match(Hc);return o&&(e=e.replace(Hc,wd),t.push(...o.map(Gc.parse))),{values:t,numColors:n,tokenised:e}}function Sd(e){return kd(e).values}function Ed(e){const{values:t,numColors:n,tokenised:r}=kd(e),o=t.length;return e=>{let t=r;for(let r=0;r<o;r++)t=t.replace(r<n?xd:wd,r<n?yd.transform(e[r]):Uc(e[r]));return t}}const Cd=e=>"number"==typeof e?0:e,_d={test:function(e){var t,n,r,o;return isNaN(e)&&Xc(e)&&(null!==(n=null===(t=e.match(Hc))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(o=null===(r=e.match(qc))||void 0===r?void 0:r.length)&&void 0!==o?o:0)>0},parse:Sd,createTransformer:Ed,getAnimatableNone:function(e){const t=Sd(e);return Ed(e)(t.map(Cd))}},Od=e=>"number"==typeof e,Pd=(e,t)=>n=>t(e(n)),Td=(...e)=>e.reduce(Pd);function Rd(e,t){return Od(e)?n=>yc(e,t,n):yd.test(e)?bd(e,t):Md(e,t)}const Ad=(e,t)=>{const n=[...e],r=n.length,o=e.map(((e,n)=>Rd(e,t[n])));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}},zd=(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]=Rd(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}};function Id(e){const t=_d.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 Md=(e,t)=>{const n=_d.createTransformer(t),r=Id(e),o=Id(t);return r.numHSL===o.numHSL&&r.numRGB===o.numRGB&&r.numNumbers>=o.numNumbers?Td(Ad(r.parsed,o.parsed),n):(Oc(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),n=>`${n>0?t:e}`)},jd=(e,t)=>n=>yc(e,t,n);function Fd(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;Pc(i===t.length,"Both input and output ranges must be the same length"),Pc(!r||!Array.isArray(r)||r.length===i-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[i-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const a=function(e,t,n){const r=[],o=n||("number"==typeof(i=e[0])?jd:"string"==typeof i?yd.test(i)?bd:Md:Array.isArray(i)?Ad:"object"==typeof i?zd: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=Td(e,i)}r.push(i)}return r}(t,r,o),l=2===i?function([e,t],[n]){return r=>n($c(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 l=$c(e[i],e[i+1],o);return t[i](l)}}(e,a);return n?t=>l(Tc(e[0],e[i-1],t)):l}const Ld=e=>t=>1-e(1-t),Dd=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Nd=e=>t=>t*t*((e+1)*t-e),Bd=4/11,Vd=8/11,$d=e=>e,Wd=(2,e=>Math.pow(e,2));const Ud=Ld(Wd),Hd=Dd(Wd),qd=e=>1-Math.sin(Math.acos(e)),Yd=Ld(qd),Xd=Dd(Yd),Gd=Nd(1.525),Qd=Ld(Gd),Kd=Dd(Gd),Zd=(e=>{const t=Nd(1.525);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})(),Jd=4356/361,ef=35442/1805,tf=16061/1805,nf=e=>{if(1===e||0===e)return e;const t=e*e;return e<Bd?7.5625*t:e<Vd?9.075*t-9.9*e+3.4:e<.9?Jd*t-ef*e+tf:10.8*e*e-20.52*e+10.72},rf=Ld(nf);function of(e,t){return e.map((()=>t||Hd)).splice(0,e.length-1)}function af({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],l=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 s(){return Fd(l,a,{ease:Array.isArray(n)?n:of(a,n)})}let u=s();return{next:e=>(i.value=u(e),i.done=e>=o,i),flipTarget:()=>{a.reverse(),u=s()}}}const lf={keyframes:af,spring:Bc,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 l=n*e;const s=t+l,u=void 0===i?s:i(s);return u!==s&&(l=u-t),{next:e=>{const t=-l*Math.exp(-e/r);return a.done=!(t>o||t<-o),a.value=a.done?u:u+t,a},flipTarget:()=>{}}}},sf=1/60*1e3,uf="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),cf="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout((()=>e(uf())),sf);let df=!0,ff=!1,pf=!1;const hf={delta:0,timestamp:0},mf=["read","update","preRender","render","postRender"],vf=mf.reduce(((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,o=!1,i=!1;const a=new WeakSet,l={schedule:(e,i=!1,l=!1)=>{const s=l&&o,u=s?t:n;return i&&a.add(e),-1===u.indexOf(e)&&(u.push(e),s&&o&&(r=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),a.delete(e)},process:e=>{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(e),a.has(r)&&(l.schedule(r),ff=!0)}o=!1,i&&(i=!1,l.process(e))}}};return l}(),e)),{}),gf=mf.reduce(((e,t)=>{const n=vf[t];return e[t]=(e,t=!1,r=!1)=>(ff||wf(),n.schedule(e,t,r)),e}),{}),bf=mf.reduce(((e,t)=>(e[t]=vf[t].cancel,e)),{}),yf=(mf.reduce(((e,t)=>(e[t]=()=>vf[t].process(hf),e)),{}),e=>vf[e].process(hf)),xf=e=>{ff=!1,hf.delta=df?sf:Math.max(Math.min(e-hf.timestamp,40),1),hf.timestamp=e,pf=!0,mf.forEach(yf),pf=!1,ff&&(df=!1,cf(xf))},wf=()=>{ff=!0,df=!0,pf||cf(xf)},kf=()=>hf,Sf=gf;function Ef(e,t,n=0){return e-t-n}const Cf=e=>{const t=({delta:t})=>e(t);return{start:()=>Sf.update(t,!0),stop:()=>bf.update(t)}};function _f(e){var t,n,{from:r,autoplay:o=!0,driver:i=Cf,elapsed:a=0,repeat:l=0,repeatType:s="loop",repeatDelay:u=0,onPlay:c,onStop:d,onComplete:f,onRepeat:p,onUpdate:h}=e,m=Fu(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 af;if(lf[e.type])return lf[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?af:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?Bc:af}(m);(null===(n=(t=E).needsInterpolation)||void 0===n?void 0:n.call(t,r,y))&&(b=Fd([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<l?function(e,t,n,r){return r?e>=t+n:e<=-n}(a,w,u,S)&&(x++,"reverse"===s?(S=x%2==0,a=function(e,t,n=0,r=!0){return r?Ef(t+-e,t,n):t-(e-t)+n}(a,w,u,S)):(a=Ef(a,w,u),"mirror"===s&&C.flipTarget()),k=!1,p&&p()):(v.stop(),f&&f()))})),v.start()),{stop:()=>{null==d||d(),v.stop()}}}var Of=function(e){return 1e3*e};const Pf=(e,t)=>1-3*t+3*e,Tf=(e,t)=>3*t-6*e,Rf=e=>3*e,Af=(e,t,n)=>((Pf(t,n)*e+Tf(t,n))*e+Rf(t))*e,zf=(e,t,n)=>3*Pf(t,n)*e*e+2*Tf(t,n)*e+Rf(t),If=.1;function Mf(e,t,n,r){if(e===t&&n===r)return $d;const o=new Float32Array(11);for(let t=0;t<11;++t)o[t]=Af(t*If,e,n);return i=>0===i||1===i?i:Af(function(t){let r=0,i=1;for(;10!==i&&o[i]<=t;++i)r+=If;--i;const a=r+(t-o[i])/(o[i+1]-o[i])*If,l=zf(a,e,n);return l>=.001?function(e,t,n,r){for(let o=0;o<8;++o){const o=zf(t,n,r);if(0===o)return t;t-=(Af(t,n,r)-e)/o}return t}(t,a,e,n):0===l?a:function(e,t,n,r,o){let i,a,l=0;do{a=t+(n-t)/2,i=Af(a,r,o)-e,i>0?n=a:t=a}while(Math.abs(i)>1e-7&&++l<10);return a}(t,r,r+If,e,n)}(i),t,r)}var jf={linear:$d,easeIn:Wd,easeInOut:Hd,easeOut:Ud,circIn:qd,circInOut:Xd,circOut:Yd,backIn:Gd,backInOut:Kd,backOut:Qd,anticipate:Zd,bounceIn:rf,bounceInOut:e=>e<.5?.5*(1-nf(1-2*e)):.5*nf(2*e-1)+.5,bounceOut:nf},Ff=function(e){if(Array.isArray(e)){Pc(4===e.length,"Cubic bezier arrays must contain four numerical values.");var t=Lu(e,4);return Mf(t[0],t[1],t[2],t[3])}return"string"==typeof e?(Pc(void 0!==jf[e],"Invalid easing type '".concat(e,"'")),jf[e]):e},Lf=function(e){return Array.isArray(e)&&"number"!=typeof e[0]},Df=function(e,t){return!("zIndex"===e||"number"!=typeof t&&!Array.isArray(t)&&("string"!=typeof t||!_d.test(t)||t.startsWith("url(")))},Nf=function(e){return Array.isArray(e)},Bf=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},Vf=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}},$f=function(){return{type:"keyframes",ease:"linear",duration:.3}},Wf=function(e){return{type:"keyframes",duration:.8,values:e}},Uf={x:Bf,y:Bf,z:Bf,rotate:Bf,rotateX:Bf,rotateY:Bf,rotateZ:Bf,scaleX:Vf,scaleY:Vf,scale:Vf,opacity:$f,backgroundColor:$f,color:$f,default:Vf},Hf=function(e,t){var n;return n=Nf(t)?Wf:Uf[e]||Uf.default,ju({to:t},n(t))};const qf=new Set(["brightness","contrast","saturate","opacity"]);function Yf(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(Hc)||[];if(!r)return e;const o=n.replace(r,"");let i=qf.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const Xf=/([a-z-]*)\(.*?\)/g,Gf=Object.assign(Object.assign({},_d),{getAnimatableNone:e=>{const t=e.match(Xf);return t?t.map(Yf).join(" "):e}});var Qf=ju(ju({},Gc),{transform:Math.round}),Kf={borderWidth:ld,borderTopWidth:ld,borderRightWidth:ld,borderBottomWidth:ld,borderLeftWidth:ld,borderRadius:ld,radius:ld,borderTopLeftRadius:ld,borderTopRightRadius:ld,borderBottomRightRadius:ld,borderBottomLeftRadius:ld,width:ld,maxWidth:ld,height:ld,maxHeight:ld,size:ld,top:ld,right:ld,bottom:ld,left:ld,padding:ld,paddingTop:ld,paddingRight:ld,paddingBottom:ld,paddingLeft:ld,margin:ld,marginTop:ld,marginRight:ld,marginBottom:ld,marginLeft:ld,rotate:id,rotateX:id,rotateY:id,rotateZ:id,scale:Kc,scaleX:Kc,scaleY:Kc,scaleZ:Kc,skew:id,skewX:id,skewY:id,distance:ld,translateX:ld,translateY:ld,translateZ:ld,x:ld,y:ld,z:ld,perspective:ld,transformPerspective:ld,opacity:Qc,originX:cd,originY:cd,originZ:ld,zIndex:Qf,fillOpacity:Qc,strokeOpacity:Qc,numOctaves:Qf},Zf=ju(ju({},Kf),{color:yd,backgroundColor:yd,outlineColor:yd,fill:yd,stroke:yd,borderColor:yd,borderTopColor:yd,borderRightColor:yd,borderBottomColor:yd,borderLeftColor:yd,filter:Gf,WebkitFilter:Gf}),Jf=function(e){return Zf[e]};function ep(e,t){var n,r=Jf(e);return r!==Gf&&(r=_d),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}var tp={current:!1},np=function(e){return Boolean(e&&"object"==typeof e&&e.mix&&e.toValue)},rp=function(e){return Nf(e)?e[e.length-1]||0:e},op=!1;function ip(e,t,n,r,o){var i,a=sp(r,e),l=null!==(i=a.from)&&void 0!==i?i:t.get(),s=Df(e,n);"none"===l&&s&&"string"==typeof n?l=ep(e,n):ap(l)&&"string"==typeof n?l=lp(n):!Array.isArray(n)&&ap(n)&&"string"==typeof l&&(n=lp(l));var u=Df(e,l);return Oc(u===s,"You are trying to animate ".concat(e,' from "').concat(l,'" to "').concat(n,'". ').concat(l," is not an animatable value - to enable this animation set ").concat(l," to a value animatable to ").concat(n," via the `style` property.")),u&&s&&!1!==a.type?function(){var r={from:l,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:l=10,restDelta:s=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=_f(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:l,restDelta:s},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),l=a===n?-1:1;let c,d;const f=e=>{c=d,d=e,t=xc(e-c,kf().delta),(1===l&&e>a||-1===l&&e<a)&&b({from:e,to:a,velocity:t})};g({type:"decay",from:e,velocity:t,timeConstant:i,power:o,restDelta:s,modifyTarget:u,onUpdate:m(r)?f:void 0})}return{stop:()=>null==h?void 0:h.stop()}}(ju(ju({},r),a)):_f(ju(ju({},function(e,t,n){var r;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=Du([],Lu(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=Fu(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=ju(ju({},e),Hf(n,t.to))),ju(ju({},t),function(e){var t=e.ease,n=e.times,r=e.yoyo,o=e.flip,i=e.loop,a=Fu(e,["ease","times","yoyo","flip","loop"]),l=ju({},a);return n&&(l.offset=n),a.duration&&(l.duration=Of(a.duration)),a.repeatDelay&&(l.repeatDelay=Of(a.repeatDelay)),t&&(l.ease=Lf(t)?t.map(Ff):Ff(t)),"tween"===a.type&&(l.type="keyframes"),(r||i||o)&&(Oc(!op,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),op=!0,r?l.repeatType="reverse":i?l.repeatType="loop":o&&(l.repeatType="mirror"),l.repeat=i||r||o||a.repeat),"spring"!==a.type&&(l.type="keyframes"),l}(e))}(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=rp(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(){}}}}function ap(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function lp(e){return"number"==typeof e?0:ep("",e)}function sp(e,t){return e[t]||e.default||e}function up(e,t,n,r){return void 0===r&&(r={}),tp.current&&(r={type:!1}),t.start((function(o){var i,a,l=ip(e,t,n,r,o),s=function(e,t){var n,r;return null!==(r=null!==(n=(sp(e,t)||{}).delay)&&void 0!==n?n:e.delay)&&void 0!==r?r:0}(r,e),u=function(){return a=l()};return s?i=setTimeout(u,Of(s)):u(),function(){clearTimeout(i),null==a||a.stop()}}))}var cp=["TopLeft","TopRight","BottomLeft","BottomRight"],dp=cp.length,fp=function(e){return"string"==typeof e?parseFloat(e):e},pp=function(e){return"number"==typeof e||ld.test(e)};function hp(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}var mp=gp(0,.5,Yd),vp=gp(.5,.95,$d);function gp(e,t,n){return function(r){return r<e?0:r>t?1:n($c(e,t,r))}}function bp(e,t){e.min=t.min,e.max=t.max}function yp(e,t){bp(e.x,t.x),bp(e.y,t.y)}function xp(e){return void 0===e||1===e}function wp(e){var t=e.scale,n=e.scaleX,r=e.scaleY;return!xp(t)||!xp(n)||!xp(r)}function kp(e){return wp(e)||Sp(e.x)||Sp(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function Sp(e){return e&&"0%"!==e}function Ep(e,t,n){return n+t*(e-n)}function Cp(e,t,n,r,o){return void 0!==o&&(e=Ep(e,o,r)),Ep(e,n,r)+t}function _p(e,t,n,r,o){void 0===t&&(t=0),void 0===n&&(n=1),e.min=Cp(e.min,t,n,r,o),e.max=Cp(e.max,t,n,r,o)}function Op(e,t){var n=t.x,r=t.y;_p(e.x,n.translate,n.scale,n.originPoint),_p(e.y,r.translate,r.scale,r.originPoint)}function Pp(e,t){e.min=e.min+t,e.max=e.max+t}function Tp(e,t,n){var r=Lu(n,3),o=r[0],i=r[1],a=r[2],l=void 0!==t[a]?t[a]:.5,s=yc(e.min,e.max,l);_p(e,t[o],t[i],s,t.scale)}var Rp=["x","scaleX","originX"],Ap=["y","scaleY","originY"];function zp(e,t){Tp(e.x,t,Rp),Tp(e.y,t,Ap)}const Ip=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),Mp=e=>Ip(e)&&e.hasOwnProperty("z"),jp=(e,t)=>Math.abs(e-t);function Fp(e,t){if(Od(e)&&Od(t))return jp(e,t);if(Ip(e)&&Ip(t)){const n=jp(e.x,t.x),r=jp(e.y,t.y),o=Mp(e)&&Mp(t)?jp(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(o,2))}}function Lp(e){return e.max-e.min}function Dp(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=.01),Fp(e,t)<n}function Np(e,t,n,r){void 0===r&&(r=.5),e.origin=r,e.originPoint=yc(t.min,t.max,e.origin),e.scale=Lp(n)/Lp(t),(Dp(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=yc(n.min,n.max,e.origin)-e.originPoint,(Dp(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Bp(e,t,n,r){Np(e.x,t.x,n.x,null==r?void 0:r.originX),Np(e.y,t.y,n.y,null==r?void 0:r.originY)}function Vp(e,t,n){e.min=n.min+t.min,e.max=e.min+Lp(t)}function $p(e,t,n){e.min=t.min-n.min,e.max=e.min+Lp(t)}function Wp(e,t,n){$p(e.x,t.x,n.x),$p(e.y,t.y,n.y)}function Up(e,t,n,r,o){return e=Ep(e-=t,1/n,r),void 0!==o&&(e=Ep(e,1/o,r)),e}function Hp(e,t,n,r,o){var i=Lu(n,3),a=i[0],l=i[1],s=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),ad.test(t)&&(t=parseFloat(t),t=yc(a.min,a.max,t/100)-a.min),"number"==typeof t){var l=yc(i.min,i.max,r);e===i&&(l-=t),e.min=Up(e.min,t,n,l,o),e.max=Up(e.max,t,n,l,o)}}(e,t[a],t[l],t[s],t.scale,r,o)}var qp=["x","scaleX","originX"],Yp=["y","scaleY","originY"];function Xp(e,t,n,r){Hp(e.x,t,qp,null==n?void 0:n.x,null==r?void 0:r.x),Hp(e.y,t,Yp,null==n?void 0:n.y,null==r?void 0:r.y)}var Gp=function(){return{x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}},Qp=function(){return{x:{min:0,max:0},y:{min:0,max:0}}};function Kp(e){return 0===e.translate&&1===e.scale}function Zp(e){return Kp(e.x)&&Kp(e.y)}function Jp(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 eh=function(){function e(){this.members=[]}return e.prototype.add=function(e){wc(this.members,e),e.scheduleRender()},e.prototype.remove=function(e){if(kc(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}(),th={},nh="translate3d(0px, 0px, 0) scale(1, 1)";function rh(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,l=n.rotateX,s=n.rotateY;a&&(i+="rotate(".concat(a,"deg) ")),l&&(i+="rotateX(".concat(l,"deg) ")),s&&(i+="rotateY(".concat(s,"deg) "))}return(i+="scale(".concat(e.x.scale,", ").concat(e.y.scale,")"))===nh?"none":i}function oh(e){return[e("x"),e("y")]}var ih=["","X","Y","Z"],ah=["transformPerspective","x","y","z"];function lh(e,t){return ah.indexOf(e)-ah.indexOf(t)}["translate","scale","rotate","skew"].forEach((function(e){return ih.forEach((function(t){return ah.push(e+t)}))}));var sh=new Set(ah);function uh(e){return sh.has(e)}var ch=new Set(["originX","originY","originZ"]);function dh(e){return ch.has(e)}var fh=function(e,t){return e.depth-t.depth},ph=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){wc(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){kc(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(fh),this.isDirty=!1,this.children.forEach(e)},e}();function hh(e){var t=_c(e)?e.get():e;return np(t)?t.toValue():t}var mh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function vh(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(Sh),o.nodes.forEach(Eh)},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?Du(Du([],Lu(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 ph)}return e.prototype.addEventListener=function(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Sc),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,Du([],Lu(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,l=i.layout,s=i.visualElement;if(s&&!s.getInstance()&&s.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&&(l||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),mh.hasAnimatedSinceResize&&(mh.hasAnimatedSinceResize=!1,o.nodes.forEach(kh))}))}a&&this.root.registerSharedNode(a,this),!1!==this.options.animate&&s&&(a||l)&&this.addEventListener("didUpdate",(function(e){var t,n,r,i,a,l=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:s.getDefaultTransition())&&void 0!==n?n:Rh,p=s.getProps().onLayoutAnimationComplete,h=!o.targetLayout||!Jp(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(l,m),o.startAnimation(ju(ju({},sp(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,fc.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(Ch))},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,l=a.layoutId,s=a.layout;if(void 0!==l||s){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(xh);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(Ah),this.potentialNodes.clear()),this.nodes.forEach(wh),this.nodes.forEach(gh),this.nodes.forEach(bh),this.clearAllSnapshots(),pc.update(),pc.preRender(),pc.render())},e.prototype.clearAllSnapshots=function(){this.nodes.forEach(yh),this.sharedNodes.forEach(_h)},e.prototype.scheduleUpdateProjection=function(){bc.preRender(this.updateProjection,!1,!0)},e.prototype.scheduleCheckAfterUnmount=function(){var e=this;bc.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));Ih(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();Ih(n);var r=this.layout;this.layout={measured:n,actual:this.removeElementScroll(n)},this.layoutCorrected=Qp(),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&&!Zp(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||kp(this.latestValues)||a)&&(o(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}},e.prototype.measure=function(){var e=this.options.visualElement;if(!e)return Qp();var t=e.measureViewportBox(),n=this.root.scroll;return n&&(Pp(t.x,n.x),Pp(t.y,n.y)),t},e.prototype.removeElementScroll=function(e){var t=Qp();yp(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&&(Pp(t.x,o.x),Pp(t.y,o.y))}return t},e.prototype.applyTransform=function(e,t){void 0===t&&(t=!1);var n=Qp();yp(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&&zp(n,{x:-o.scroll.x,y:-o.scroll.y}),kp(o.latestValues)&&zp(n,o.latestValues)}return kp(this.latestValues)&&zp(n,this.latestValues),n},e.prototype.removeTransform=function(e){var t,n=Qp();yp(n,e);for(var r=0;r<this.path.length;r++){var o=this.path[r];if(o.instance&&kp(o.latestValues)){wp(o.latestValues)&&o.updateSnapshot();var i=Qp();yp(i,o.measure()),Xp(n,o.latestValues,null===(t=o.snapshot)||void 0===t?void 0:t.layout,i)}}return kp(this.latestValues)&&Xp(n,this.latestValues),n},e.prototype.setTargetDelta=function(e){this.targetDelta=e,this.root.scheduleUpdateProjection()},e.prototype.setOptions=function(e){var t;this.options=ju(ju(ju({},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=Qp(),this.relativeTargetOrigin=Qp(),Wp(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),yp(this.relativeTarget,this.relativeTargetOrigin))),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target=Qp(),this.targetWithTransforms=Qp()),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,Vp(t.x,n.x,r.x),Vp(t.y,n.y,r.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):yp(this.target,this.layout.actual),Op(this.target,this.targetDelta)):yp(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=Qp(),this.relativeTargetOrigin=Qp(),Wp(this.relativeTargetOrigin,this.target,this.relativeParent.target),yp(this.relativeTarget,this.relativeTargetOrigin)))))},e.prototype.getClosestProjectingParent=function(){if(this.parent&&!kp(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();yp(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 l,s;t.x=t.y=1;for(var u=0;u<a;u++)s=(l=n[u]).projectionDelta,"contents"!==(null===(i=null===(o=l.instance)||void 0===o?void 0:o.style)||void 0===i?void 0:i.display)&&(r&&l.options.layoutScroll&&l.scroll&&l!==l.root&&zp(e,{x:-l.scroll.x,y:-l.scroll.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,Op(e,s)),r&&kp(l.latestValues)&&zp(e,l.latestValues))}}(this.layoutCorrected,this.treeScale,this.path,Boolean(this.resumingFrom)||this!==o);var i=o.target;if(i){this.projectionDelta||(this.projectionDelta=Gp(),this.projectionDeltaWithTransform=Gp());var a=this.treeScale.x,l=this.treeScale.y,s=this.projectionTransform;Bp(this.projectionDelta,this.layoutCorrected,i,this.latestValues),this.projectionTransform=rh(this.projectionDelta,this.treeScale),this.projectionTransform===s&&this.treeScale.x===a&&this.treeScale.y===l||(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=ju({},this.latestValues),l=Gp();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!t;var s=Qp(),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(Th));this.mixTargetDelta=function(t){var n,o,f,p,h,m=t/1e3;Oh(l.x,e.x,m),Oh(l.y,e.y,m),r.setTargetDelta(l),r.relativeTarget&&r.relativeTargetOrigin&&r.layout&&(null===(n=r.relativeParent)||void 0===n?void 0:n.layout)&&(Wp(s,r.layout.actual,r.relativeParent.layout.actual),o=r.relativeTarget,f=r.relativeTargetOrigin,p=s,h=m,Ph(o.x,f.x,p.x,h),Ph(o.y,f.y,p.y,h)),u&&(r.animationValues=a,function(e,t,n,r,o,i){var a,l,s,u;o?(e.opacity=yc(0,null!==(a=n.opacity)&&void 0!==a?a:1,mp(r)),e.opacityExit=yc(null!==(l=t.opacity)&&void 0!==l?l:1,0,vp(r))):i&&(e.opacity=yc(null!==(s=t.opacity)&&void 0!==s?s:1,null!==(u=n.opacity)&&void 0!==u?u:1,r));for(var c=0;c<dp;c++){var d="border".concat(cp[c],"Radius"),f=hp(t,d),p=hp(n,d);void 0===f&&void 0===p||(f||(f=0),p||(p=0),0===f||0===p||pp(f)===pp(p)?(e[d]=Math.max(yc(fp(f),fp(p),r),0),(ad.test(p)||ad.test(f))&&(e[d]+="%")):e[d]=p)}(t.rotate||n.rotate)&&(e.rotate=yc(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&&(fc.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=bc.update((function(){mh.hasAnimatedSinceResize=!0,r.currentAnimation=function(e,t,n){void 0===n&&(n={});var r=_c(0)?0:Cc(0);return up("",r,1e3,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}(0,0,ju(ju({},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&&(yp(t,n),zp(t,o),Bp(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 eh),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<ih.length;r++){var o="rotate"+ih[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 l={};if(!this.instance||this.isSVG)return l;if(!this.isVisible)return{visibility:"hidden"};l.visibility="";var s=null===(t=this.options.visualElement)||void 0===t?void 0:t.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,l.opacity="",l.pointerEvents=hh(e.pointerEvents)||"",l.transform=s?s(this.latestValues,""):"none",l;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=hh(e.pointerEvents)||""),this.hasProjected&&!kp(this.latestValues)&&(c.transform=s?s({},""):"none",this.hasProjected=!1),c}var d=u.animationValues||u.latestValues;this.applyTransformsToTarget(),l.transform=rh(this.projectionDeltaWithTransform,this.treeScale,d),s&&(l.transform=s(d,l.transform));var f=this.projectionDelta,p=f.x,h=f.y;for(var m in l.transformOrigin="".concat(100*p.origin,"% ").concat(100*h.origin,"% 0"),u.animationValues?l.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:l.opacity=u===this?null!==(i=d.opacity)&&void 0!==i?i:"":null!==(a=d.opacityExit)&&void 0!==a?a:0,th)if(void 0!==d[m]){var v=th[m],g=v.correct,b=v.applyTo,y=g(d[m],u);if(b)for(var x=b.length,w=0;w<x;w++)l[b[w]]=y;else l[m]=y}return this.options.layoutId&&(l.pointerEvents=u===this?hh(e.pointerEvents)||"":"none"),l},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(xh),this.root.sharedNodes.clear()},e}()}function gh(e){e.updateLayout()}function bh(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,l=a.actual,s=a.measured;"size"===e.options.animationType?oh((function(e){var t=i.isShared?i.measured[e]:i.layout[e],n=Lp(t);t.min=l[e].min,t.max=t.min+n})):"position"===e.options.animationType&&oh((function(e){var t=i.isShared?i.measured[e]:i.layout[e],n=Lp(l[e]);t.max=t.min+n}));var u=Gp();Bp(u,l,i.layout);var c=Gp();i.isShared?Bp(c,e.applyTransform(s,!0),i.measured):Bp(c,l,i.layout);var d=!Zp(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=Qp();Wp(v,i.layout,h.layout);var g=Qp();Wp(g,l,m.actual),Jp(v,g)||(f=!0)}}e.notifyListeners("didUpdate",{layout:l,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 yh(e){e.clearSnapshot()}function xh(e){e.clearMeasurements()}function wh(e){e.resetTransform()}function kh(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function Sh(e){e.resolveTargetDelta()}function Eh(e){e.calcProjection()}function Ch(e){e.resetRotation()}function _h(e){e.removeLeadSnapshot()}function Oh(e,t,n){e.translate=yc(t.translate,0,n),e.scale=yc(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Ph(e,t,n,r){e.min=yc(t.min,n.min,r),e.max=yc(t.max,n.max,r)}function Th(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}var Rh={duration:.45,ease:[.4,0,.1,1]};function Ah(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 zh(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function Ih(e){zh(e.x),zh(e.y)}var Mh=1,jh=(0,e.createContext)({}),Fh=(0,e.createContext)({}),Lh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Mu(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 Dh(t){var n=t.preloadedFeatures,r=t.createVisualElement,o=t.projectionNodeConstructor,i=t.useRender,a=t.useVisualState,l=t.Component;return n&&function(e){for(var t in e)null!==e[t]&&("projectionNodeConstructor"===t?Bu.projectionNodeConstructor=e[t]:Bu[t].Component=e[t])}(n),(0,e.forwardRef)((function(t,n){var s=function(t){var n,r=t.layoutId,o=null===(n=(0,e.useContext)(jh))||void 0===n?void 0:n.id;return o&&void 0!==r?o+"-"+r:r}(t);t=ju(ju({},t),{layoutId:s});var u=(0,e.useContext)(Uu),c=null,d=function(t){var n=function(e,t){if(Ju(e)){var n=e.initial,r=e.animate;return{initial:!1===n||Qu(n)?n:void 0,animate:Qu(r)?r:void 0}}return!1!==e.inherit?t:{}}(t,(0,e.useContext)(Hu)),r=n.initial,o=n.animate;return(0,e.useMemo)((function(){return{initial:r,animate:o}}),[tc(r),tc(o)])}(t),f=u.isStatic?void 0:Pu((function(){if(mh.hasEverUpdated)return Mh++})),p=a(t,u.isStatic);return!u.isStatic&&qu&&(d.visualElement=function(t,n,r,o){var i=(0,e.useContext)(Vu),a=(0,e.useContext)(Hu).visualElement,l=(0,e.useContext)(Ou),s=(0,e.useRef)(void 0);o||(o=i.renderer),!s.current&&o&&(s.current=o(t,{visualState:n,parent:a,props:r,presenceId:null==l?void 0:l.id,blockInitialAnimation:!1===(null==l?void 0:l.initial)}));var u=s.current;return Yu((function(){null==u||u.syncRender()})),(0,e.useEffect)((function(){var e;null===(e=null==u?void 0:u.animationState)||void 0===e||e.animateChanges()})),Yu((function(){return function(){return null==u?void 0:u.notifyUnmount()}}),[]),u}(l,p,ju(ju({},u),t),r),function(t,n,r,o){var i,a=n.layoutId,l=n.layout,s=n.drag,u=n.dragConstraints,c=n.layoutScroll,d=(0,e.useContext)(Fh);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:l,alwaysMeasureLayout:Boolean(s)||u&&Xu(u),visualElement:r,scheduleRender:function(){return r.scheduleRender()},animationType:"string"==typeof l?l:"both",initialPromotionConfig:d,layoutScroll:c}))}(f,t,d.visualElement,o||Bu.projectionNodeConstructor),c=function(t,n,r){var o=[];if((0,e.useContext)(Vu),!n)return null;for(var i=0;i<Wu;i++){var a=$u[i],l=Bu[a],s=l.isEnabled,u=l.Component;s(t)&&u&&o.push(e.createElement(u,ju({key:a},t,{visualElement:n})))}return o}(t,d.visualElement)),e.createElement(Lh,{visualElement:d.visualElement,props:ju(ju({},u),t)},c,e.createElement(Hu.Provider,{value:d},i(l,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):Xu(r)&&(r.current=e))}),[n])}(p,d.visualElement,n),p,u.isStatic,d.visualElement)))}))}function Nh(e){function t(t,n){return void 0===n&&(n={}),Dh(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 Bh=["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 Vh(e){return"string"==typeof e&&!e.includes("-")&&!!(Bh.indexOf(e)>-1||/[A-Z]/.test(e))}function $h(e,t){var n=t.layout,r=t.layoutId;return uh(e)||dh(e)||(n||void 0!==r)&&(!!th[e]||"opacity"===e)}var Wh={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function Uh(e){return e.startsWith("--")}var Hh=function(e,t){return t&&"number"==typeof e?t.transform(e):e};function qh(e,t,n,r){var o,i=e.style,a=e.vars,l=e.transform,s=e.transformKeys,u=e.transformOrigin;s.length=0;var c=!1,d=!1,f=!0;for(var p in t){var h=t[p];if(Uh(p))a[p]=h;else{var m=Kf[p],v=Hh(h,m);if(uh(p)){if(c=!0,l[p]=v,s.push(p),!f)continue;h!==(null!==(o=m.default)&&void 0!==o?o:0)&&(f=!1)}else dh(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,l=void 0===a||a,s=t.allowTransformNone,u=void 0===s||s,c="";i.sort(lh);for(var d=!1,f=i.length,p=0;p<f;p++){var h=i[p];c+="".concat(Wh[h]||h,"(").concat(o[h],") "),"z"===h&&(d=!0)}return!d&&l?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))}var Yh=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function Xh(e,t,n){for(var r in t)_c(t[r])||$h(r,n)||(e[r]=t[r])}function Gh(t,n,r){var o={},i=function(t,n,r){var o={};return Xh(o,t.style||{},t),Object.assign(o,function(t,n,r){var o=t.transformTemplate;return(0,e.useMemo)((function(){var e=Yh();qh(e,n,{enableHardwareAcceleration:!r},o);var t=e.vars,i=e.style;return ju(ju({},t),i)}),[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 Qh=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 Kh(e){return Qh.has(e)}var Zh,Jh=function(e){return!Kh(e)};try{(Zh=require("@emotion/is-prop-valid").default)&&(Jh=function(e){return e.startsWith("on")?!Kh(e):Zh(e)})}catch(Ri){}function em(e,t,n){return"string"==typeof e?e:ld.transform(t+n*e)}var tm={offset:"stroke-dashoffset",array:"stroke-dasharray"},nm={offset:"strokeDashoffset",array:"strokeDasharray"};function rm(e,t,n,r){var o=t.attrX,i=t.attrY,a=t.originX,l=t.originY,s=t.pathLength,u=t.pathSpacing,c=void 0===u?1:u,d=t.pathOffset,f=void 0===d?0:d;qh(e,Fu(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!==l||h.transform)&&(h.transformOrigin=function(e,t,n){var r=em(t,e.x,e.width),o=em(n,e.y,e.height);return"".concat(r," ").concat(o)}(m,void 0!==a?a:.5,void 0!==l?l:.5)),void 0!==o&&(p.x=o),void 0!==i&&(p.y=i),void 0!==s&&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?tm:nm;e[i.offset]=ld.transform(-r);var a=ld.transform(t),l=ld.transform(n);e[i.array]="".concat(a," ").concat(l)}(p,s,c,f,!1)}var om=function(){return ju(ju({},Yh()),{attrs:{}})};function im(t,n){var r=(0,e.useMemo)((function(){var e=om();return rm(e,n,{enableHardwareAcceleration:!1},t.transformTemplate),ju(ju({},e.attrs),{style:ju({},e.style)})}),[n]);if(t.style){var o={};Xh(o,t.style,t),r.style=ju(ju({},o),r.style)}return r}function am(t){return void 0===t&&(t=!1),function(n,r,o,i,a,l){var s=a.latestValues,u=(Vh(n)?im:Gh)(r,s,l),c=function(e,t,n){var r={};for(var o in e)(Jh(o)||!0===n&&Kh(o)||!t&&!Kh(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(r,"string"==typeof n,t),d=ju(ju(ju({},c),u),{ref:i});return o&&(d["data-projection-id"]=o),(0,e.createElement)(n,d)}}var lm=/([a-z])([A-Z])/g,sm=function(e){return e.replace(lm,"$1-$2").toLowerCase()};function um(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 cm=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function dm(e,t){for(var n in um(e,t),t.attrs)e.setAttribute(cm.has(n)?n:sm(n),t.attrs[n])}function fm(e){var t=e.style,n={};for(var r in t)(_c(t[r])||$h(r,e))&&(n[r]=t[r]);return n}function pm(e){var t=fm(e);for(var n in e)_c(e[n])&&(t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]);return t}function hm(e){return"object"==typeof e&&"function"==typeof e.start}function mm(e,t,n,r){var o=e.scrapeMotionValuesFromProps,i=e.createRenderState,a=e.onMount,l={latestValues:gm(t,n,r,o),renderState:i()};return a&&(l.mount=function(e){return a(t,e,l)}),l}var vm=function(t){return function(n,r){var o=(0,e.useContext)(Hu),i=(0,e.useContext)(Ou);return r?mm(t,n,o,i):Pu((function(){return mm(t,n,o,i)}))}};function gm(e,t,n,r){var o={},i=!1===(null==n?void 0:n.initial),a=r(e);for(var l in a)o[l]=hh(a[l]);var s=e.initial,u=e.animate,c=Ju(e),d=ec(e);t&&d&&!c&&!1!==e.inherit&&(null!=s||(s=t.initial),null!=u||(u=t.animate));var f=i||!1===s,p=f?u:s;return p&&"boolean"!=typeof p&&!hm(p)&&(Array.isArray(p)?p:[p]).forEach((function(t){var n=Ku(e,t);if(n){var r=n.transitionEnd;n.transition;var i=Fu(n,["transitionEnd","transition"]);for(var a in i){var l=i[a];Array.isArray(l)&&(l=l[f?l.length-1:0]),null!==l&&(o[a]=l)}for(var a in r)o[a]=r[a]}})),o}var bm,ym={useVisualState:vm({scrapeMotionValuesFromProps:pm,createRenderState:om,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}}rm(r,o,{enableHardwareAcceleration:!1},e.transformTemplate),dm(t,r)}})},xm={useVisualState:vm({scrapeMotionValuesFromProps:fm,createRenderState:Yh})};function wm(e,t,n,r){return e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n,r)}}function km(t,n,r,o){(0,e.useEffect)((function(){var e=t.current;if(r&&e)return wm(e,n,r,o)}),[t,n,r,o])}function Sm(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function Em(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"}(bm||(bm={}));var Cm={pageX:0,pageY:0};function _m(e,t){void 0===t&&(t="page");var n=e.touches[0]||e.changedTouches[0]||Cm;return{x:n[t+"X"],y:n[t+"Y"]}}function Om(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function Pm(e,t){return void 0===t&&(t="page"),{point:Em(e)?_m(e,t):Om(e,t)}}var Tm=function(e,t){void 0===t&&(t=!1);var n,r=function(t){return e(t,Pm(t))};return t?(n=r,function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}):r},Rm=function(){return qu&&null===window.onpointerdown},Am=function(){return qu&&null===window.ontouchstart},zm=function(){return qu&&null===window.onmousedown},Im={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},Mm={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function jm(e){return Rm()?e:Am()?Mm[e]:zm()?Im[e]:e}function Fm(e,t,n,r){return wm(e,jm(t),Tm(n,"pointerdown"===t),r)}function Lm(e,t,n,r){return km(e,jm(t),n&&Tm(n,"pointerdown"===t),r)}function Dm(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var Nm=Dm("dragHorizontal"),Bm=Dm("dragVertical");function Vm(e){var t=!1;if("y"===e)t=Bm();else if("x"===e)t=Nm();else{var n=Nm(),r=Bm();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function $m(){var e=Vm(!0);return!e||(e(),!1)}function Wm(e,t,n){return function(r,o){var i;Sm(r)&&!$m()&&(null===(i=e.animationState)||void 0===i||i.setActive(bm.Hover,t),null==n||n(r,o))}}var Um=function(e,t){return!!t&&(e===t||Um(e,t.parentElement))};function Hm(t){return(0,e.useEffect)((function(){return function(){return t()}}),[])}var qm=new WeakMap,Ym=new WeakMap,Xm=function(e){var t;null===(t=qm.get(e.target))||void 0===t||t(e)},Gm=function(e){e.forEach(Xm)};var Qm={some:0,all:1};function Km(t,n,r,o){var i=o.root,a=o.margin,l=o.amount,s=void 0===l?"some":l,u=o.once;(0,e.useEffect)((function(){if(t){var e={root:null==i?void 0:i.current,rootMargin:a,threshold:"number"==typeof s?s:Qm[s]};return function(e,t,n){var r=function(e){var t=e.root,n=Fu(e,["root"]),r=t||document;Ym.has(r)||Ym.set(r,{});var o=Ym.get(r),i=JSON.stringify(n);return o[i]||(o[i]=new IntersectionObserver(Gm,ju({root:t},n))),o[i]}(t);return qm.set(e,n),r.observe(e),function(){qm.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(bm.InView,o);var i=r.getProps(),a=o?i.onViewportEnter:i.onViewportLeave;null==a||a(e)}}))}}),[t,i,a,s])}function Zm(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(bm.InView,!0)}))}),[t])}var Jm=function(e){return function(t){return e(t),null}},ev={inView:Jm((function(t){var n=t.visualElement,r=t.whileInView,o=t.onViewportEnter,i=t.onViewportLeave,a=t.viewport,l=void 0===a?{}:a,s=(0,e.useRef)({hasEnteredView:!1,isInView:!1}),u=Boolean(r||o||i);l.once&&s.current.hasEnteredView&&(u=!1),("undefined"==typeof IntersectionObserver?Zm:Km)(u,s.current,n,l)})),tap:Jm((function(t){var n=t.onTap,r=t.onTapStart,o=t.onTapCancel,i=t.whileTap,a=t.visualElement,l=n||r||o||i,s=(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(),s.current=!1,null===(e=a.animationState)||void 0===e||e.setActive(bm.Tap,!1),!$m()}function f(e,t){d()&&(Um(a.getInstance(),e.target)?null==n||n(e,t):null==o||o(e,t))}function p(e,t){d()&&(null==o||o(e,t))}Lm(a,"pointerdown",l?function(e,t){var n;c(),s.current||(s.current=!0,u.current=Td(Fm(window,"pointerup",f),Fm(window,"pointercancel",p)),null===(n=a.animationState)||void 0===n||n.setActive(bm.Tap,!0),null==r||r(e,t))}:void 0),Hm(c)})),focus:Jm((function(e){var t=e.whileFocus,n=e.visualElement;km(n,"focus",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(bm.Focus,!0)}:void 0),km(n,"blur",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(bm.Focus,!1)}:void 0)})),hover:Jm((function(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,o=e.visualElement;Lm(o,"pointerenter",t||r?Wm(o,!0,t):void 0),Lm(o,"pointerleave",n||r?Wm(o,!1,n):void 0)}))};function tv(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 nv=function(e){return function(t){return t.test(e)}},rv=[Gc,ld,ad,id,ud,sd,{test:function(e){return"auto"===e},parse:function(e){return e}}],ov=function(e){return rv.find(nv(e))},iv=Du(Du([],Lu(rv),!1),[yd,_d],!1),av=function(e){return iv.find(nv(e))};function lv(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Cc(n))}function sv(e,t){if(t)return(t[e]||t.default||t).from}function uv(e,t,n){var r;void 0===n&&(n={});var o=Zu(e,t,n.custom),i=(o||{}).transition,a=void 0===i?e.getDefaultTransition()||{}:i;n.transitionOverride&&(a=n.transitionOverride);var l=o?function(){return cv(e,o,n)}:function(){return Promise.resolve()},s=(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,l=a.staggerChildren,s=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=[],l=(e.variantChildren.size-1)*r,s=1===o?function(e){return void 0===e&&(e=0),e*r}:function(e){return void 0===e&&(e=0),l-e*r};return Array.from(e.variantChildren).sort(dv).forEach((function(e,r){a.push(uv(e,t,ju(ju({},i),{delay:n+s(r)})).then((function(){return e.notifyAnimationComplete(t)})))})),Promise.all(a)}(e,t,i+r,l,s,n)}:function(){return Promise.resolve()},u=a.when;if(u){var c=Lu("beforeChildren"===u?[l,s]:[s,l],2),d=c[0],f=c[1];return d().then(f)}return Promise.all([l(),s(n.delay)])}function cv(e,t,n){var r,o=void 0===n?{}:n,i=o.delay,a=void 0===i?0:i,l=o.transitionOverride,s=o.type,u=e.makeTargetAnimatable(t),c=u.transition,d=void 0===c?e.getDefaultTransition():c,f=u.transitionEnd,p=Fu(u,["transition","transitionEnd"]);l&&(d=l);var h=[],m=s&&(null===(r=e.animationState)||void 0===r?void 0:r.getState()[s]);for(var v in p){var g=e.getValue(v),b=p[v];if(!(!g||void 0===b||m&&fv(m,v))){var y=up(v,g,b,ju({delay:a},d));h.push(y)}}return Promise.all(h).then((function(){f&&function(e,t){var n=Zu(e,t),r=n?e.makeTargetAnimatable(n,!1):{},o=r.transitionEnd,i=void 0===o?{}:o;r.transition;var a=Fu(r,["transitionEnd","transition"]);for(var l in a=ju(ju({},a),i))lv(e,l,rp(a[l]))}(e,f)}))}function dv(e,t){return e.sortNodePosition(t)}function fv(e,t){var n=e.protectedKeys,r=e.needsAnimating,o=n.hasOwnProperty(t)&&!0!==r[t];return r[t]=!1,o}var pv=[bm.Animate,bm.InView,bm.Focus,bm.Hover,bm.Tap,bm.Drag,bm.Exit],hv=Du([],Lu(pv),!1).reverse(),mv=pv.length;function vv(e){var t=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 uv(e,t,n)}));r=Promise.all(o)}else if("string"==typeof t)r=uv(e,t,n);else{var i="function"==typeof t?Zu(e,t,n.custom):t;r=cv(e,i,n)}return r.then((function(){return e.notifyAnimationComplete(t)}))}(e,n,r)})))}}(e),n=function(){var e;return(e={})[bm.Animate]=gv(!0),e[bm.InView]=gv(),e[bm.Hover]=gv(),e[bm.Tap]=gv(),e[bm.Drag]=gv(),e[bm.Focus]=gv(),e[bm.Exit]=gv(),e}(),r={},o=!0,i=function(t,n){var r=Zu(e,n);if(r){r.transition;var o=r.transitionEnd,i=Fu(r,["transition","transitionEnd"]);t=ju(ju(ju({},t),i),o)}return t};function a(a,l){for(var s,u=e.getProps(),c=e.getVariantContext(!0)||{},d=[],f=new Set,p={},h=1/0,m=function(t){var r=hv[t],m=n[r],v=null!==(s=u[r])&&void 0!==s?s:c[r],g=Qu(v),b=r===l?m.isActive:null;!1===b&&(h=t);var y=v===c[r]&&v!==u[r]&&g;if(y&&o&&e.manuallyAnimateOnMount&&(y=!1),m.protectedKeys=ju({},p),!m.isActive&&null===b||!v&&!m.prevProp||hm(v)||"boolean"==typeof v)return"continue";var x=function(e,t){return"string"==typeof t?t!==e:!!Gu(t)&&!tv(t,e)}(m.prevProp,v),w=x||r===l&&m.isActive&&!y&&g||t>h&&g,k=Array.isArray(v)?v:[v],S=k.reduce(i,{});!1===b&&(S={});var E=m.prevResolvedValues,C=void 0===E?{}:E,_=ju(ju({},C),S),O=function(e){w=!0,f.delete(e),m.needsAnimating[e]=!0};for(var P in _){var T=S[P],R=C[P];p.hasOwnProperty(P)||(T!==R?Nf(T)&&Nf(R)?!tv(T,R)||x?O(P):m.protectedKeys[P]=!0:void 0!==T?O(P):f.add(P):void 0!==T&&f.has(P)?O(P):m.protectedKeys[P]=!0)}m.prevProp=v,m.prevResolvedValues=S,m.isActive&&(p=ju(ju({},p),S)),o&&e.blockInitialAnimation&&(w=!1),w&&!y&&d.push.apply(d,Du([],Lu(k.map((function(e){return{animation:e,options:ju({type:r},a)}}))),!1))},v=0;v<mv;v++)m(v);if(r=ju({},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 o&&!1===u.initial&&!e.manuallyAnimateOnMount&&(b=!1),o=!1,b?t(d):Promise.resolve()}return{isAnimated:function(e){return void 0!==r[e]},animateChanges:a,setActive:function(t,r,o){var i;return n[t].isActive===r?Promise.resolve():(null===(i=e.variantChildren)||void 0===i||i.forEach((function(e){var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)})),n[t].isActive=r,a(o,t))},setAnimateFunction:function(n){t=n(e)},getState:function(){return n}}}function gv(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var bv={animation:Jm((function(t){var n=t.visualElement,r=t.animate;n.animationState||(n.animationState=vv(n)),hm(r)&&(0,e.useEffect)((function(){return r.subscribe(n)}),[r])})),exit:Jm((function(t){var n=t.custom,r=t.visualElement,o=Lu(Tu(),2),i=o[0],a=o[1],l=(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(bm.Exit,!i,{custom:null!==(t=null==l?void 0:l.custom)&&void 0!==t?t:n});!i&&(null==o||o.then(a))}),[i])}))},yv=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=kv(r.lastMoveEventInfo,r.history),t=null!==r.startEvent,n=Fp(e.offset,{x:0,y:0})>=3;if(t||n){var o=e.point,i=gc().timestamp;r.history.push(ju(ju({},o),{timestamp:i}));var a=r.handlers,l=a.onStart,s=a.onMove;t||(l&&l(r.lastMoveEvent,e),r.startEvent=r.lastMoveEvent),s&&s(r.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){r.lastMoveEvent=e,r.lastMoveEventInfo=xv(t,r.transformPagePoint),Sm(e)&&0===e.buttons?r.handlePointerUp(e,t):bc.update(r.updatePoint,!0)},this.handlePointerUp=function(e,t){r.end();var n=r.handlers,o=n.onEnd,i=n.onSessionEnd,a=kv(xv(t,r.transformPagePoint),r.history);r.startEvent&&o&&o(e,a),i&&i(e,a)},!(Em(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=o;var i=xv(Pm(e),this.transformPagePoint),a=i.point,l=gc().timestamp;this.history=[ju(ju({},a),{timestamp:l})];var s=t.onSessionStart;s&&s(e,kv(i,this.history)),this.removeListeners=Td(Fm(window,"pointermove",this.handlePointerMove),Fm(window,"pointerup",this.handlePointerUp),Fm(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),fc.update(this.updatePoint)},e}();function xv(e,t){return t?{point:t(e.point)}:e}function wv(e,t){return{x:e.x-t.x,y:e.y-t.y}}function kv(e,t){var n=e.point;return{point:n,delta:wv(n,Ev(t)),offset:wv(n,Sv(t)),velocity:Cv(t,.1)}}function Sv(e){return e[0]}function Ev(e){return e[e.length-1]}function Cv(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,o=Ev(e);n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Of(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 _v(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 Ov(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=Lu([o,r],2))[0],o=n[1]),{min:r,max:o}}var Pv=.35;function Tv(e,t,n){return{min:Rv(e,t),max:Rv(e,n)}}function Rv(e,t){var n;return"number"==typeof e?e:null!==(n=e[t])&&void 0!==n?n:0}function Av(e){var t=e.top;return{x:{min:e.left,max:e.right},y:{min:t,max:e.bottom}}}function zv(e,t){return Av(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 Iv=new WeakMap,Mv=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=Qp(),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 yv(e,{onSessionStart:function(e){n.stopAnimation(),o&&n.snapToCursor(Pm(e,"page").point)},onStart:function(e,t){var r,o=n.getProps(),i=o.drag,a=o.dragPropagation,l=o.onDragStart;(!i||a||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=Vm(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),oh((function(e){var t,r,o=n.getAxisMotionValue(e).get()||0;if(ad.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=Lp(i)*(parseFloat(o)/100))}n.originPoint[e]=o})),null==l||l(e,t),null===(r=n.visualElement.animationState)||void 0===r||r.setActive(bm.Drag,!0))},onMove:function(e,t){var r=n.getProps(),o=r.dragPropagation,i=r.dragDirectionLock,a=r.onDirectionLock,l=r.onDrag;if(o||n.openGlobalLock){var s=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}(s),void(null!==n.currentDirection&&(null==a||a(n.currentDirection)));n.updateAxis("x",t.point,s),n.updateAxis("y",t.point,s),n.visualElement.syncRender(),null==l||l(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(bm.Drag,!1)},e.prototype.updateAxis=function(e,t,n){var r=this.getProps().drag;if(n&&jv(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?yc(r,e,n.min):Math.max(e,r):void 0!==o&&e>o&&(e=n?yc(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&&Xu(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:_v(e.x,r,i),y:_v(e.y,n,o)}}(o.actual,n),this.elastic=function(e){return void 0===e&&(e=Pv),!1===e?e=0:!0===e&&(e=Pv),{x:Tv(e,"left","right"),y:Tv(e,"top","bottom")}}(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&oh((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||!Xu(t))return!1;var r=t.current;Pc(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");var o=this.visualElement.projection;if(!o||!o.layout)return!1;var i=function(e,t,n){var r=zv(e,n),o=t.scroll;return o&&(Pp(r.x,o.x),Pp(r.y,o.y)),r}(r,o.root,this.visualElement.getTransformPagePoint()),a=function(e,t){return{x:Ov(e.x,t.x),y:Ov(e.y,t.y)}}(o.layout.actual,i);if(n){var l=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=!!l,l&&(a=Av(l))}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,l=n.dragSnapToOrigin,s=n.onDragTransitionEnd,u=this.constraints||{},c=oh((function(n){var s;if(jv(n,r,t.currentDirection)){var c=null!==(s=null==u?void 0:u[n])&&void 0!==s?s:{};l&&(c={min:0,max:0});var d=i?200:1e6,f=i?40:1e7,p=ju(ju({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(s)},e.prototype.startAxisValueAnimation=function(e,t){return up(e,this.getAxisMotionValue(e),0,t)},e.prototype.stopAnimation=function(){var e=this;oh((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;oh((function(n){if(jv(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,l=i.max;o.set(e[n]-yc(a,l,.5))}}}))},e.prototype.scalePositionWithinConstraints=function(){var e,t=this,n=this.getProps(),r=n.drag,o=n.dragConstraints,i=this.visualElement.projection;if(Xu(o)&&i&&this.constraints){this.stopAnimation();var a={x:0,y:0};oh((function(e){var n,r,o,i,l,s=t.getAxisMotionValue(e);if(s){var u=s.get();a[e]=(n={min:u,max:u},r=t.constraints[e],o=.5,i=Lp(n),(l=Lp(r))>i?o=$c(r.min,r.max-i,n.min):i>l&&(o=$c(n.min,n.max-l,r.min)),Tc(0,1,o))}}));var l=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=l?l({},""):"none",null===(e=i.root)||void 0===e||e.updateScroll(),i.updateLayout(),this.resolveConstraints(),oh((function(e){if(jv(e,r,null)){var n=t.getAxisMotionValue(e),o=t.constraints[e],i=o.min,l=o.max;n.set(yc(i,l,a[e]))}}))}},e.prototype.addListeners=function(){var e,t=this;Iv.set(this.visualElement,this);var n=Fm(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(){Xu(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=wm(window,"resize",(function(){t.scalePositionWithinConstraints()}));return o.addEventListener("didUpdate",(function(e){var n=e.delta,r=e.hasLayoutChanged;t.isDragging&&r&&(oh((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,l=e.dragConstraints,s=void 0!==l&&l,u=e.dragElastic,c=void 0===u?Pv:u,d=e.dragMomentum,f=void 0===d||d;return ju(ju({},e),{drag:n,dragDirectionLock:o,dragPropagation:a,dragConstraints:s,dragElastic:c,dragMomentum:f})},e}();function jv(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}var Fv={pan:Jm((function(t){var n=t.onPan,r=t.onPanStart,o=t.onPanEnd,i=t.onPanSessionStart,a=t.visualElement,l=n||r||o||i,s=(0,e.useRef)(null),u=(0,e.useContext)(Uu).transformPagePoint,c={onSessionStart:i,onStart:r,onMove:n,onEnd:function(e,t){s.current=null,o&&o(e,t)}};(0,e.useEffect)((function(){null!==s.current&&s.current.updateHandlers(c)})),Lm(a,"pointerdown",l&&function(e){s.current=new yv(e,c,{transformPagePoint:u})}),Hm((function(){return s.current&&s.current.end()}))})),drag:Jm((function(t){var n=t.dragControls,r=t.visualElement,o=Pu((function(){return new Mv(r)}));(0,e.useEffect)((function(){return n&&n.subscribe(o)}),[o,n]),(0,e.useEffect)((function(){return o.addListeners()}),[o])}))},Lv=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","SetAxisTarget","Unmount"],Dv=function(e){var t=e.treeType,n=void 0===t?"":t,r=e.build,o=e.getBaseTarget,i=e.makeTargetAnimatable,a=e.measureViewportBox,l=e.render,s=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=Lv.map((function(){return new Sc})),t={},n={clearAllListeners:function(){return e.forEach((function(e){return e.clear()}))},updatePropListeners:function(e){Lv.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"+Lv[t]]=function(t){return e.add(t)},n["notify"+Lv[t]]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e.notify.apply(e,Du([],Lu(t),!1))}})),n}(),S=new Map,E=new Map,C={},_=ju({},x);function O(){g&&y&&(P(),l(g,w,p.style,j.projection))}function P(){r(j,w,x,t,p)}function T(){k.notifyUpdate(x)}var R=d(p);for(var A in R){var z=R[A];void 0!==x[A]&&_c(z)&&z.set(x[A],!1)}var I=Ju(p),M=ec(p),j=ju(ju({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=j.current=e,j.projection&&j.projection.mount(e),M&&f&&!I&&(b=null==f?void 0:f.addVariantChild(j)),null==f||f.children.add(j),j.setProps(p)},unmount:function(){var e;null===(e=j.projection)||void 0===e||e.unmount(),fc.update(T),fc.render(O),E.forEach((function(e){return e()})),null==b||b(),null==f||f.children.delete(j),k.clearAllListeners(),g=void 0,y=!1},addVariantChild:function(e){var t,n=j.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(j.getInstance(),e.getInstance()):0},getClosestVariantNode:function(){return M?j: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){j.isVisible!==e&&(j.isVisible=e,j.scheduleRender())},makeTargetAnimatable:function(e,t){return void 0===t&&(t=!0),i(j,e,p,t)},measureViewportBox:function(){return a(g,p)},addValue:function(e,t){j.hasValue(e)&&j.removeValue(e),S.set(e,t),x[e]=t.get(),function(e,t){var n=t.onChange((function(t){x[e]=t,p.onUpdate&&bc.update(T,!1,!0)})),r=t.onRenderRequest(j.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=Cc(t),j.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:s(g,e,t)},setBaseTarget:function(e,t){_[e]=t},getBaseTarget:function(e){if(o){var t=o(p,e);if(void 0!==t&&!_c(t))return t}return _[e]}},k),{build:function(){return P(),w},scheduleRender:function(){bc.render(O,!1,!0)},syncRender:O,setProps:function(e){(e.transformTemplate||p.transformTemplate)&&j.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(_c(i))e.addValue(o,i);else if(_c(a))e.addValue(o,Cc(i));else if(a!==i)if(e.hasValue(o)){var l=e.getValue(o);!l.hasAnimated&&l.set(i)}else e.addValue(o,Cc(null!==(r=e.getStaticValue(o))&&void 0!==r?r:i))}for(var o in n)void 0===t[o]&&e.removeValue(o);return t}(j,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(!I){var t=(null==f?void 0:f.getVariantContext())||{};return void 0!==p.initial&&(t.initial=p.initial),t}for(var n={},r=0;r<Bv;r++){var o=Nv[r],i=p[o];(Qu(i)||!1===i)&&(n[o]=i)}return n}});return j}},Nv=Du(["initial"],Lu(pv),!1),Bv=Nv.length;function Vv(e){return"string"==typeof e&&e.startsWith("var(--")}var $v=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Wv(e,t,n){void 0===n&&(n=1),Pc(n<=4,'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.'));var r=Lu(function(e){var t=$v.exec(e);if(!t)return[,];var n=Lu(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():Vv(i)?Wv(i,t,n+1):i}}var Uv,Hv=new Set(["width","height","top","left","right","bottom","x","y"]),qv=function(e){return Hv.has(e)},Yv=function(e,t){e.set(t,!1),e.set(t)},Xv=function(e){return e===Gc||e===ld};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(Uv||(Uv={}));var Gv=function(e,t){return parseFloat(e.split(", ")[t])},Qv=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 Gv(i[1],t);var a=o.match(/^matrix\((.+)\)$/);return a?Gv(a[1],e):0}},Kv=new Set(["x","y","z"]),Zv=ah.filter((function(e){return!Kv.has(e)})),Jv={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:Qv(4,13),y:Qv(5,14)};function eg(e,t,n,r){return function(e){return Object.keys(e).some(qv)}(t)?function(e,t,n,r){void 0===n&&(n={}),void 0===r&&(r={}),t=ju({},t),r=ju({},r);var o=Object.keys(t).filter(qv),i=[],a=!1,l=[];if(o.forEach((function(o){var s=e.getValue(o);if(e.hasValue(o)){var u,c=n[o],d=ov(c),f=t[o];if(Nf(f)){var p=f.length,h=null===f[0]?1:0;c=f[h],d=ov(c);for(var m=h;m<p;m++)u?Pc(ov(f[m])===u,"All keyframes must be of the same type"):(u=ov(f[m]),Pc(u===d||Xv(d)&&Xv(u),"Keyframes must be of the same dimension as the current value"))}else u=ov(f);if(d!==u)if(Xv(d)&&Xv(u)){var v=s.get();"string"==typeof v&&s.set(parseFloat(v)),"string"==typeof f?t[o]=parseFloat(f):Array.isArray(f)&&u===ld&&(t[o]=f.map(parseFloat))}else(null==d?void 0:d.transform)&&(null==u?void 0:u.transform)&&(0===c||0===f)?0===c?s.set(u.transform(c)):t[o]=d.transform(f):(a||(i=function(e){var t=[];return Zv.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),l.push(o),r[o]=void 0!==r[o]?r[o]:t[o],Yv(s,f))}})),l.length){var s=function(e,t,n){var r=t.measureViewportBox(),o=t.getInstance(),i=getComputedStyle(o),a=i.display,l={};"none"===a&&t.setStaticValue("display",e.display||"block"),n.forEach((function(e){l[e]=Jv[e](r,i)})),t.syncRender();var s=t.measureViewportBox();return n.forEach((function(n){var r=t.getValue(n);Yv(r,l[n]),e[n]=Jv[n](s,i)})),e}(t,e,l);return i.length&&i.forEach((function(t){var n=Lu(t,2),r=n[0],o=n[1];e.getValue(r).set(o)})),e.syncRender(),{target:s,transitionEnd:r}}return{target:t,transitionEnd:r}}(e,t,n,r):{target:t,transitionEnd:r}}var tg={treeType:"dom",readValueFromInstance:function(e,t){if(uh(t)){var n=Jf(t);return n&&n.default||0}var r,o=(r=e,window.getComputedStyle(r));return(Uh(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 zv(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,l=Fu(t,["transition","transitionEnd"]),s=function(e,t,n){var r,o,i={};for(var a in e)i[a]=null!==(r=sv(a,t))&&void 0!==r?r:null===(o=n.getValue(a))||void 0===o?void 0:o.get();return i}(l,i||{},e);if(o&&(a&&(a=o(a)),l&&(l=o(l)),s&&(s=o(s))),r){!function(e,t,n){var r,o,i,a,l=Object.keys(t).filter((function(t){return!e.hasValue(t)})),s=l.length;if(s)for(var u=0;u<s;u++){var c=l[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):!av(f)&&_d.test(d)&&(f=ep(c,d)),e.addValue(c,Cc(f)),null!==(i=(a=n)[c])&&void 0!==i||(a[c]=f),e.setBaseTarget(c,f))}}(e,l,s);var u=function(e,t,n,r){var o=function(e,t,n){var r,o=Fu(t,[]),i=e.getInstance();if(!(i instanceof Element))return{target:o,transitionEnd:n};for(var a in n&&(n=ju({},n)),e.forEachValue((function(e){var t=e.get();if(Vv(t)){var n=Wv(t,i);n&&e.set(n)}})),o){var l=o[a];if(Vv(l)){var s=Wv(l,i);s&&(o[a]=s,n&&(null!==(r=n[a])&&void 0!==r||(n[a]=l)))}}return{target:o,transitionEnd:n}}(e,t,r);return eg(e,t=o.target,n,r=o.transitionEnd)}(e,l,s,a);a=u.transitionEnd,l=u.target}return ju({transition:i,transitionEnd:a},l)},scrapeMotionValuesFromProps:fm,build:function(e,t,n,r,o){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden"),qh(t,n,r,o.transformTemplate)},render:um},ng=Dv(tg),rg=Dv(ju(ju({},tg),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return uh(t)?(null===(n=Jf(t))||void 0===n?void 0:n.default)||0:(t=cm.has(t)?t:sm(t),e.getAttribute(t))},scrapeMotionValuesFromProps:pm,build:function(e,t,n,r,o){rm(t,n,r,o.transformTemplate)},render:dm})),og=function(e,t){return Vh(e)?rg(t,{enableHardwareAcceleration:!1}):ng(t,{enableHardwareAcceleration:!0})};function ig(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var ag={correct:function(e,t){if(!t.target)return e;if("string"==typeof e){if(!ld.test(e))return e;e=parseFloat(e)}var n=ig(e,t.target.x),r=ig(e,t.target.y);return"".concat(n,"% ").concat(r,"%")}},lg="_$css",sg={correct:function(e,t){var n=t.treeScale,r=t.projectionDelta,o=e,i=e.includes("var("),a=[];i&&(e=e.replace($v,(function(e){return a.push(e),lg})));var l=_d.parse(e);if(l.length>5)return o;var s=_d.createTransformer(e),u="number"!=typeof l[0]?1:0,c=r.x.scale*n.x,d=r.y.scale*n.y;l[0+u]/=c,l[1+u]/=d;var f=yc(c,d,.5);"number"==typeof l[2+u]&&(l[2+u]/=f),"number"==typeof l[3+u]&&(l[3+u]/=f);var p=s(l);if(i){var h=0;p=p.replace(lg,(function(){var e=a[h];return h++,e}))}return p}},ug=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Mu(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,l=r.projection;e=cg,Object.assign(th,e),l&&((null==o?void 0:o.group)&&o.group.add(l),(null==i?void 0:i.register)&&a&&i.register(l),l.root.didUpdate(),l.addEventListener("animationComplete",(function(){t.safeToRemove()})),l.setOptions(ju(ju({},l.options),{onExitComplete:function(){return t.safeToRemove()}}))),mh.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,l=o.projection;return l?(l.isPresent=a,i||e.layoutDependency!==r||void 0===r?l.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?l.promote():l.relegate()||bc.postRender((function(){var e;(null===(e=l.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),cg={borderRadius:ju(ju({},ag),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:ag,borderTopRightRadius:ag,borderBottomLeftRadius:ag,borderBottomRightRadius:ag,boxShadow:sg},dg={measureLayout:function(t){var n=Lu(Tu(),2),r=n[0],o=n[1],i=(0,e.useContext)(jh);return e.createElement(ug,ju({},t,{layoutGroup:i,switchLayoutGroup:(0,e.useContext)(Fh),isPresent:r,safeToRemove:o}))}},fg=vh({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}}}),pg={current:void 0},hg=vh({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!pg.current){var e=new fg(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),pg.current=e}return pg.current},resetTransform:function(e,t){e.style.transform=null!=t?t:"none"}}),mg=ju(ju(ju(ju({},bv),ev),Fv),dg),vg=Nh((function(e,t){return function(e,t,n,r,o){var i=t.forwardMotionProps,a=void 0!==i&&i,l=Vh(e)?ym:xm;return ju(ju({},l),{preloadedFeatures:n,useRender:am(a),createVisualElement:r,projectionNodeConstructor:o,Component:e})}(e,t,mg,og,hg)})),gg=new Set([...An,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),bg=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function yg(e){return bg.has(e)||!gg.has(e)}var xg,wg=/^((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|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)-.*))$/,kg=de((function(e){return wg.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),Sg=function(e){return"theme"!==e},Eg=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?kg:Sg},Cg=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},_g=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return se(t,n,r),Se((function(){return ue(t,n,r)})),null},Og=function t(n,r){var o,i,a=n.__emotion_real===n,l=a&&n.__emotion_base||n;void 0!==r&&(o=r.label,i=r.target);var s=Cg(n,r,a),u=s||Eg(l),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=Oe((function(t,n,r){var o=c&&t.as||l,a="",d=[],p=t;if(null==t.theme){for(var h in p={},t)p[h]=t[h];p.theme=e.useContext(Pe)}"string"==typeof t.className?a=le(n.registered,d,t.className):null!=t.className&&(a=t.className+" ");var m=we(f.concat(d),n.registered,p);a+=n.key+"-"+m.name,void 0!==i&&(a+=" "+i);var v=c&&void 0===s?Eg(o):u,g={};for(var b in t)c&&"as"===b||v(b)&&(g[b]=t[b]);return g.className=a,g.ref=r,e.createElement(e.Fragment,null,e.createElement(_g,{cache:n,serialized:m,isStringTag:"string"==typeof o}),e.createElement(o,g))}));return m.displayName=void 0!==o?o:"Styled("+("string"==typeof l?l:l.displayName||l.name||"Component")+")",m.defaultProps=n.defaultProps,m.__emotion_real=m,m.__emotion_base=l,m.__emotion_styles=f,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return"."+i}}),m.withComponent=function(e,n){return t(e,ie({},r,n,{shouldForwardProp:Cg(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){Og[e]=Og(e)}));var Pg=null!=(xg=Og.default)?xg:Og;function Tg(t,n){const{baseStyle:r,...o}=null!=n?n:{};o.shouldForwardProp||(o.shouldForwardProp=yg);const i=(({baseStyle:e})=>t=>{const{theme:n,css:r,__css:o,sx:i,...a}=t,l=Vn(a,((e,t)=>In(t))),s=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,Wn(e,t),$n(l),i),u=Fn(s)(t.theme);return r?[u,r]:u})({baseStyle:r}),a=Pg(t,o)(i);return e.forwardRef((function(t,n){const{colorMode:r,forced:o}=Ge();return e.createElement(a,{ref:n,"data-theme":o?r:void 0,...t})}))}var Rg=function(){const e=new Map;return new Proxy(Tg,{apply:(e,t,n)=>Tg(...n),get:(t,n)=>(e.has(n)||e.set(n,Tg(n)),e.get(n))})}(),Ag={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]}}},zg=(0,e.memo)((t=>{const{id:n,message:r,onCloseComplete:o,onRequestRemove:i,requestClose:a=!1,position:l="bottom",duration:s=5e3,containerStyle:u,motionVariants:c=Ag,toastSpacing:d="0.5rem"}=t,[f,p]=(0,e.useState)(s),h=null===(m=(0,e.useContext)(Ou))||m.isPresent;var m;_u((()=>{h||null==o||o()}),[h]),_u((()=>{p(s)}),[s]);const v=()=>{h&&i()};(0,e.useEffect)((()=>{h&&a&&i()}),[h,a,i]),function(t,n){const r=Cu(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}}(l)),[l]);return(0,Ne.jsx)(vg.div,{layout:!0,className:"chakra-toast",variants:c,initial:"initial",animate:"animate",exit:"exit",onHoverStart:()=>p(null),onHoverEnd:()=>p(s),custom:{position:l},style:b,children:(0,Ne.jsx)(Rg.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:g,children:Je(r,{id:n,onClose:v})})})}));function Ig(t){return(0,e.forwardRef)(t)}function Mg(){const t=(0,e.useContext)(Pe);if(!t)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return t}zg.displayName="ToastComponent";var jg=n(115);function Fg(t,n={}){var r;const{styleConfig:o,...i}=n,{theme:a,colorMode:l}={...Ge(),theme:Mg()},s=t?Bn(a,`components.${t}`):void 0,u=o||s,c=ot({theme:a,colorMode:l},null!=(r=null==u?void 0:u.defaultProps)?r:{},$n(function(e,t){const n={};return Object.keys(e).forEach((r=>{t.includes(r)||(n[r]=e[r])})),n}(i,["children"]))),d=(0,e.useRef)({});if(u){const e=function(e){return t=>{var n;const{variant:r,size:o,theme:i}=t,a=function(e){const t=e.__breakpoints;return function(e,n,r,o){var i,a;if(!t)return;const l={},s=function(e,t){return Array.isArray(e)?e:Ze(e)?t(e):null!=e?[e]:void 0}(r,t.toArrayValue);if(!s)return l;const u=s.length,c=1===u,d=!!e.parts;for(let r=0;r<u;r++){const u=t.details[r],f=t.details[Dn(s,r)],p=cn(u.minW,null==f?void 0:f._minW),h=Je(null==(i=e[n])?void 0:i[s[r]],o);h&&(d?null==(a=e.parts)||a.forEach((e=>{ot(l,{[e]:c?h[e]:{[p]:h[e]}})})):d?l[p]=h:c?ot(l,h):l[p]=h)}return l}}(i);return ot({},Je(null!=(n=e.baseStyle)?n:{},t),a(e,"sizes",o,t),a(e,"variants",r,t))}}(u),t=e(c);jg(d.current,t)||(d.current=t)}return d.current}function Lg(e,t={}){return Fg(e,t)}function Dg(e,t={}){return Fg(e,t)}var Ng={path:(0,Ne.jsxs)("g",{stroke:"currentColor",strokeWidth:"1.5",children:[(0,Ne.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,Ne.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,Ne.jsx)("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},Bg=Ig(((e,t)=>{const{as:n,viewBox:r,color:o="currentColor",focusable:i=!1,children:a,className:l,__css:s,...u}=e,c={ref:t,focusable:i,className:Ke("chakra-icon",l),__css:{w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...s,...Lg("Icon",e)}},d=null!=r?r:Ng.viewBox;if(n&&"string"!=typeof n)return(0,Ne.jsx)(Rg.svg,{as:n,...c,...u});const f=null!=a?a:Ng.path;return(0,Ne.jsx)(Rg.svg,{verticalAlign:"middle",viewBox:d,...c,...u,children:f})}));function Vg(e){return(0,Ne.jsx)(Bg,{viewBox:"0 0 24 24",...e,children:(0,Ne.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"})})}Bg.displayName="Icon";var $g=De({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Wg=Ig(((e,t)=>{const n=Lg("Spinner",e),{label:r="Loading...",thickness:o="2px",speed:i="0.45s",emptyColor:a="transparent",className:l,...s}=Nn(e),u=Ke("chakra-spinner",l),c={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:a,borderLeftColor:a,animation:`${$g} ${i} linear infinite`,...n};return(0,Ne.jsx)(Rg.div,{ref:t,__css:c,className:u,...s,children:r&&(0,Ne.jsx)(Rg.span,{srOnly:!0,children:r})})}));Wg.displayName="Spinner";var[Ug,Hg]=Ue({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[qg,Yg]=Ue({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),Xg={info:{icon:function(e){return(0,Ne.jsx)(Bg,{viewBox:"0 0 24 24",...e,children:(0,Ne.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:Vg,colorScheme:"orange"},success:{icon:function(e){return(0,Ne.jsx)(Bg,{viewBox:"0 0 24 24",...e,children:(0,Ne.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:Vg,colorScheme:"red"},loading:{icon:Wg,colorScheme:"blue"}},Gg=Ig((function(e,t){var n;const{status:r="info",addRole:o=!0,...i}=Nn(e),a=null!=(n=e.colorScheme)?n:function(e){return Xg[e].colorScheme}(r),l=Dg("Alert",{...e,colorScheme:a}),s={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...l.container};return(0,Ne.jsx)(Ug,{value:{status:r},children:(0,Ne.jsx)(qg,{value:l,children:(0,Ne.jsx)(Rg.div,{"data-status":r,role:o?"alert":void 0,ref:t,...i,className:Ke("chakra-alert",e.className),__css:s})})})}));function Qg(e){const{status:t}=Hg(),n=function(e){return Xg[e].icon}(t),r=Yg(),o="loading"===t?r.spinner:r.icon;return(0,Ne.jsx)(Rg.span,{display:"inherit","data-status":t,...e,className:Ke("chakra-alert__icon",e.className),__css:o,children:e.children||(0,Ne.jsx)(n,{h:"100%",w:"100%"})})}Gg.displayName="Alert",Qg.displayName="AlertIcon";var Kg=Ig((function(e,t){const n=Yg(),{status:r}=Hg();return(0,Ne.jsx)(Rg.div,{ref:t,"data-status":r,...e,className:Ke("chakra-alert__title",e.className),__css:n.title})}));Kg.displayName="AlertTitle";var Zg=Ig((function(e,t){const n=Yg(),{status:r}=Hg(),o={display:"inline",...n.description};return(0,Ne.jsx)(Rg.div,{ref:t,"data-status":r,...e,className:Ke("chakra-alert__desc",e.className),__css:o})}));function Jg(e){return(0,Ne.jsx)(Bg,{focusable:"false","aria-hidden":!0,...e,children:(0,Ne.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"})})}Zg.displayName="AlertDescription";var eb=Ig((function(e,t){const n=Lg("CloseButton",e),{children:r,isDisabled:o,__css:i,...a}=Nn(e);return(0,Ne.jsx)(Rg.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,Ne.jsx)(Jg,{width:"1em",height:"1em"})})}));eb.displayName="CloseButton";var tb=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={}){var n,r;nb+=1;const o=null!=(n=t.id)?n:nb,i=null!=(r=t.position)?r:"bottom";return{id:o,message:e,position:i,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>tb.removeToast(String(o),i),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}(e,t),{position:o,id:i}=n;return r((e=>{var t,r;const i=o.includes("top")?[n,...null!=(t=e[o])?t:[]]:[...null!=(r=e[o])?r:[],n];return{...e,[o]:i}})),i},update:(e,t)=>{e&&r((n=>{const r={...n},{position:o,index:i}=ku(r,e);return o&&-1!==i&&(r[o][i]={...r[o][i],...t,message:ob(t)}),r}))},closeAll:({positions:e}={})=>{r((t=>(null!=e?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=Su(t,e);return n?{...t,[n]:t[n].map((t=>t.id==e?{...t,requestClose:!0}:t))}:t}))},isActive:e=>Boolean(ku(tb.getState(),e).position)}}({top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]}),nb=0,rb=e=>{const{status:t,variant:n="solid",id:r,title:o,isClosable:i,onClose:a,description:l,colorScheme:s,icon:u}=e,c=r?{root:`toast-${r}`,title:`toast-${r}-title`,description:`toast-${r}-description`}:void 0;return(0,Ne.jsxs)(Gg,{addRole:!1,status:t,variant:n,id:null==c?void 0:c.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:s,children:[(0,Ne.jsx)(Qg,{children:u}),(0,Ne.jsxs)(Rg.div,{flex:"1",maxWidth:"100%",children:[o&&(0,Ne.jsx)(Kg,{id:null==c?void 0:c.title,children:o}),l&&(0,Ne.jsx)(Zg,{id:null==c?void 0:c.description,display:"block",children:l})]}),i&&(0,Ne.jsx)(eb,{size:"sm",onClick:a,position:"absolute",insetEnd:1,top:1})]})};function ob(e={}){const{render:t,toastComponent:n=rb}=e;return r=>"function"==typeof t?t({...r,...e}):(0,Ne.jsx)(n,{...r,...e})}var ib=0;function ab(){var e=ib;return ib++,e}var lb=function(t){var n=t.children,r=t.initial,o=t.isPresent,i=t.onExitComplete,a=t.custom,l=t.presenceAffectsLayout,s=Pu(sb),u=Pu(ab),c=(0,e.useMemo)((function(){return{id:u,initial:r,isPresent:o,custom:a,onExitComplete:function(e){var t,n;s.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.")}(s.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 s.set(e,!1),function(){return s.delete(e)}}}}),l?void 0:[o]);return(0,e.useMemo)((function(){s.forEach((function(e,t){return s.set(t,!1)}))}),[o]),e.useEffect((function(){!o&&!s.size&&(null==i||i())}),[o]),e.createElement(Ou.Provider,{value:c},n)};function sb(){return new Map}function ub(e){return e.key||""}var cb=function(t){var n=t.children,r=t.custom,o=t.initial,i=void 0===o||o,a=t.onExitComplete,l=t.exitBeforeEnter,s=t.presenceAffectsLayout,u=void 0===s||s,c=Lu(function(){var t=(0,e.useRef)(!1),n=Lu((0,e.useState)(0),2),r=n[0],o=n[1];Hm((function(){return t.current=!0}));var i=(0,e.useCallback)((function(){!t.current&&o(r+1)}),[r]);return[(0,e.useCallback)((function(){return bc.postRender(i)}),[i]),r]}(),1),d=c[0],f=(0,e.useContext)(jh).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=ub(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(lb,{key:ub(t),isPresent:!0,initial:!!i&&void 0,presenceAffectsLayout:u},t)})));for(var y=Du([],Lu(m),!1),x=v.current.map(ub),w=m.map(ub),k=x.length,S=0;S<k;S++){var E=x[S];-1===w.indexOf(E)?b.add(E):b.delete(E)}return l&&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(lb,{key:ub(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(lb,{key:ub(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)})))},[db,fb]=Ue({strict:!1,name:"PortalContext"}),pb="chakra-portal",hb=e=>(0,Ne.jsx)("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),mb=t=>{const{appendToParentPortal:n,children:o}=t,[i,a]=(0,e.useState)(null),l=(0,e.useRef)(null),[,s]=(0,e.useState)({});(0,e.useEffect)((()=>s({})),[]);const u=fb(),c=qe();er((()=>{if(!i)return;const e=i.ownerDocument,t=n&&null!=u?u:e.body;if(!t)return;l.current=e.createElement("div"),l.current.className=pb,t.appendChild(l.current),s({});const r=l.current;return()=>{t.contains(r)&&t.removeChild(r)}}),[i]);const d=(null==c?void 0:c.zIndex)?(0,Ne.jsx)(hb,{zIndex:null==c?void 0:c.zIndex,children:o}):o;return l.current?(0,r.createPortal)((0,Ne.jsx)(db,{value:l.current,children:d}),l.current):(0,Ne.jsx)("span",{ref:e=>{e&&a(e)}})},vb=t=>{const{children:n,containerRef:o,appendToParentPortal:i}=t,a=o.current,l=null!=a?a:"undefined"!=typeof window?document.body:void 0,s=(0,e.useMemo)((()=>{const e=null==a?void 0:a.ownerDocument.createElement("div");return e&&(e.className=pb),e}),[a]),[,u]=(0,e.useState)({});return er((()=>u({})),[]),er((()=>{if(s&&l)return l.appendChild(s),()=>{l.removeChild(s)}}),[s,l]),l&&s?(0,r.createPortal)((0,Ne.jsx)(db,{value:i?s:null,children:n}),s):null};function gb(e){const t={appendToParentPortal:!0,...e},{containerRef:n,...r}=t;return n?(0,Ne.jsx)(vb,{containerRef:n,...r}):(0,Ne.jsx)(mb,{...r})}gb.className=pb,gb.selector=".chakra-portal",gb.displayName="Portal";var[bb,yb]=Ue({name:"ToastOptionsContext",strict:!1}),xb=t=>{const n=(0,e.useSyncExternalStore)(tb.subscribe,tb.getState,tb.getState),{motionVariants:r,component:o=zg,portalProps:i}=t,a=Object.keys(n).map((e=>{const t=n[e];return(0,Ne.jsx)("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${e}`,id:`chakra-toast-manager-${e}`,style:Eu(e),children:(0,Ne.jsx)(cb,{initial:!1,children:t.map((e=>(0,Ne.jsx)(o,{motionVariants:r,...e},e.id)))})},e)}));return(0,Ne.jsx)(gb,{...i,children:a})},wb=e=>function({children:t,theme:n=e,toastOptions:r,...o}){return(0,Ne.jsxs)(ar,{theme:n,...o,children:[(0,Ne.jsx)(bb,{value:null==r?void 0:r.defaultOptions,children:t}),(0,Ne.jsx)(xb,{...r})]})},kb=wb(yu),Sb=(wb(xu),Ig((function(e,t){const{direction:n,align:r,justify:o,wrap:i,basis:a,grow:l,shrink:s,...u}=e,c={display:"flex",flexDirection:n,alignItems:r,justifyContent:o,flexWrap:i,flexBasis:a,flexGrow:l,flexShrink:s};return(0,Ne.jsx)(Rg.div,{ref:t,__css:c,...u})})));Sb.displayName="Flex";var Eb=Ig((function(e,t){const n=Lg("Heading",e),{className:r,...o}=Nn(e);return(0,Ne.jsx)(Rg.h2,{ref:t,className:Ke("chakra-heading",e.className),...o,__css:n})}));Eb.displayName="Heading";var Cb=Ig((function(e,t){const n=Lg("Text",e),{className:r,align:o,decoration:i,casing:a,...l}=Nn(e),s=function(e){const t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}({textAlign:e.align,textDecoration:e.decoration,textTransform:e.casing});return(0,Ne.jsx)(Rg.p,{ref:t,className:Ke("chakra-text",e.className),...s,...l,__css:n})}));Cb.displayName="Text";var[_b,Ob]=Ue({strict:!1,name:"ButtonGroupContext"});function Pb(t){const{children:n,className:r,...o}=t,i=(0,e.isValidElement)(n)?(0,e.cloneElement)(n,{"aria-hidden":!0,focusable:!1}):n,a=Ke("chakra-button__icon",r);return(0,Ne.jsx)(Rg.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...o,className:a,children:i})}function Tb(t){const{label:n,placement:r,spacing:o="0.5rem",children:i=(0,Ne.jsx)(Wg,{color:"currentColor",width:"1em",height:"1em"}),className:a,__css:l,...s}=t,u=Ke("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",...l})),[l,n,c,o]);return(0,Ne.jsx)(Rg.div,{className:u,...s,__css:d,children:i})}function Rb(...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 Ab(...t){return(0,e.useMemo)((()=>Rb(...t)),t)}Pb.displayName="ButtonIcon",Tb.displayName="ButtonSpinner";var zb=Ig(((t,n)=>{const r=Ob(),o=Lg("Button",{...r,...t}),{isDisabled:i=(null==r?void 0:r.isDisabled),isLoading:a,isActive:l,children:s,leftIcon:u,rightIcon:c,loadingText:d,iconSpacing:f="0.5rem",type:p,spinner:h,spinnerPlacement:m="start",className:v,as:g,...b}=Nn(t),y=(0,e.useMemo)((()=>{const e={...null==o?void 0: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:x,type:w}=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),k={rightIcon:c,leftIcon:u,iconSpacing:f,children:s};return(0,Ne.jsxs)(Rg.button,{ref:Ab(n,x),as:g,type:null!=p?p:w,"data-active":tt(l),"data-loading":tt(a),__css:y,className:Ke("chakra-button",v),...b,disabled:i||a,children:[a&&"start"===m&&(0,Ne.jsx)(Tb,{className:"chakra-button__spinner--start",label:d,placement:"start",spacing:f,children:h}),a?d||(0,Ne.jsx)(Rg.span,{opacity:0,children:(0,Ne.jsx)(Ib,{...k})}):(0,Ne.jsx)(Ib,{...k}),a&&"end"===m&&(0,Ne.jsx)(Tb,{className:"chakra-button__spinner--end",label:d,placement:"end",spacing:f,children:h})]})}));function Ib(e){const{leftIcon:t,rightIcon:n,children:r,iconSpacing:o}=e;return(0,Ne.jsxs)(Ne.Fragment,{children:[t&&(0,Ne.jsx)(Pb,{marginEnd:o,children:t}),r,n&&(0,Ne.jsx)(Pb,{marginStart:o,children:n})]})}zb.displayName="Button";var Mb,jb,Fb,Lb,Db=Ig((function(e,t){const n=Lg("Link",e),{className:r,isExternal:o,...i}=Nn(e);return(0,Ne.jsx)(Rg.a,{target:o?"_blank":void 0,rel:o?"noopener":void 0,ref:t,className:Ke("chakra-link",r),...i,__css:n})}));Db.displayName="Link",n(7604),function(e,t){t=t||{}}(console.error),Mb={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},jb=["(","?"],Fb={")":["("],":":["?","?:"]},Lb=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var Nb={"!":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 Bb={contextDelimiter:"",onMissingKey:null};function Vb(e,t){var n;for(n in this.data=e,this.pluralForms={},this.options={},Bb)this.options[n]=void 0!==t&&n in t?t[n]:Bb[n]}Vb.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(Lb);){for(n=t[0],(r=e.substr(0,t.index).trim())&&i.push(r);o=a.pop();){if(Fb[n]){if(Fb[n][0]===o){n=Fb[n][1]||n;break}}else if(jb.indexOf(o)>=0||Mb[o]<Mb[n]){a.push(o);break}i.push(o)}Fb[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,l,s=[];for(n=0;n<e.length;n++){if(a=e[n],i=Nb[a]){for(r=i.length,o=Array(r);r--;)o[r]=s.pop();try{l=i.apply(null,o)}catch(e){return e}}else l=t.hasOwnProperty(a)?t[a]:+a;s.push(l)}return s[0]}(t,e)}}(r),o=function(e){return+i({n:e})}),a=this.pluralForms[e]=o),a(t)},Vb.prototype.dcnpgettext=function(e,t,n,r,o){var i,a,l;return i=void 0===o?0:this.getPluralForm(e,o),a=n,t&&(a=t+this.options.contextDelimiter+n),(l=this.data[e][a])&&l[i]?l[i]:(this.options.onMissingKey&&this.options.onMissingKey(n,e),0===i?n:r)};const $b={plural_forms:e=>1===e?0:1},Wb=/^i18n\.(n?gettext|has_translation)(_|$)/,Ub=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)},Hb=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)},qb=function(e,t){return function(n,r,o,i=10){const a=e[t];if(!Hb(n))return;if(!Ub(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 l={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]=l:e.splice(t,0,l),a.__current.forEach((e=>{e.name===n&&e.currentIndex>=t&&e.currentIndex++}))}else a[n]={handlers:[l],runs:0};"hookAdded"!==n&&e.doAction("hookAdded",n,r,o,i)}},Yb=function(e,t,n=!1){return function(r,o){const i=e[t];if(!Hb(r))return;if(!n&&!Ub(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}},Xb=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}},Gb=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 l={name:r,currentIndex:0};for(i.__current.push(l);l.currentIndex<a.length;){const e=a[l.currentIndex].callback.apply(null,o);n&&(o[0]=e),l.currentIndex++}return i.__current.pop(),n?o[0]:void 0}},Qb=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}},Kb=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}},Zb=function(e,t){return function(n){const r=e[t];if(Hb(n))return r[n]&&r[n].runs?r[n].runs:0}};class Jb{constructor(){this.actions=Object.create(null),this.actions.__current=[],this.filters=Object.create(null),this.filters.__current=[],this.addAction=qb(this,"actions"),this.addFilter=qb(this,"filters"),this.removeAction=Yb(this,"actions"),this.removeFilter=Yb(this,"filters"),this.hasAction=Xb(this,"actions"),this.hasFilter=Xb(this,"filters"),this.removeAllActions=Yb(this,"actions",!0),this.removeAllFilters=Yb(this,"filters",!0),this.doAction=Gb(this,"actions"),this.applyFilters=Gb(this,"filters",!0),this.currentAction=Qb(this,"actions"),this.currentFilter=Qb(this,"filters"),this.doingAction=Kb(this,"actions"),this.doingFilter=Kb(this,"filters"),this.didAction=Zb(this,"actions"),this.didFilter=Zb(this,"filters")}}const ey=new Jb,{addAction:ty,addFilter:ny,removeAction:ry,removeFilter:oy,hasAction:iy,hasFilter:ay,removeAllActions:ly,removeAllFilters:sy,doAction:uy,applyFilters:cy,currentAction:dy,currentFilter:fy,doingAction:py,doingFilter:hy,didAction:my,didFilter:vy,actions:gy,filters:by}=ey,yy=((e,t,n)=>{const r=new Vb({}),o=new Set,i=()=>{o.forEach((e=>e()))},a=(e,t="default")=>{r.data[t]={...r.data[t],...e},r.data[t][""]={...$b,...r.data[t]?.[""]},delete r.pluralForms[t]},l=(e,t)=>{a(e,t),i()},s=(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=s(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=>{Wb.test(e)&&i()};n.addAction("hookAdded","core/i18n",e),n.addAction("hookRemoved","core/i18n",e)}return{getLocaleData:(e="default")=>r.data[e],setLocaleData:l,addLocaleData:(e,t="default")=>{r.data[t]={...r.data[t],...e,"":{...$b,...r.data[t]?.[""],...e?.[""]}},delete r.pluralForms[t],i()},resetLocaleData:(e,t)=>{r.data={},r.pluralForms={},l(e,t)},subscribe:e=>(o.add(e),()=>o.delete(e)),__:(e,t)=>{let r=s(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=s(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=s(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,ey),xy=(yy.getLocaleData.bind(yy),yy.setLocaleData.bind(yy),yy.resetLocaleData.bind(yy),yy.subscribe.bind(yy),yy.__.bind(yy));yy._x.bind(yy),yy._n.bind(yy),yy._nx.bind(yy),yy.isRTL.bind(yy),yy.hasTranslation.bind(yy);const wy=(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 ky(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 Sy(e){try{return decodeURIComponent(e)}catch(t){return e}}function Ey(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(Sy);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 Cy(e,t){return Ey(e)[t]}function _y(e="",t){if(!t||!Object.keys(t).length)return e;let n=e;const r=e.indexOf("?");return-1!==r&&(t=Object.assign(Ey(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 Oy=(e,t)=>{let{path:n,url:r,...o}=e;return{...o,url:r&&_y(r,t),path:n&&_y(n,t)}},Py=e=>e.json?e.json():Promise.reject(e),Ty=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},Ry=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 $y({...Oy(e,{per_page:100}),parse:!1}),r=await Py(n);if(!Array.isArray(r))return r;let o=Ty(n);if(!o)return r;let i=[].concat(r);for(;o;){const t=await $y({...e,path:void 0,url:o,parse:!1}),n=await Py(t);i=i.concat(n),o=Ty(t)}return i},Ay=new Set(["PATCH","PUT","DELETE"]),zy="GET";function Iy(e,t){return void 0!==Cy(e,t)}const My=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=>jy(e,t)))};function jy(e){if(arguments.length>1&&void 0!==arguments[1]&&!arguments[1])throw e;return(e=>{const t={code:"invalid_json",message:xy("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:xy("An unknown error occurred.")};throw e||t}))}const Fy={Accept:"application/json, */*;q=0.1"},Ly={credentials:"include"},Dy=[(e,t)=>("string"!=typeof e.url||Iy(e.url,"_locale")||(e.url=_y(e.url,{_locale:"user"})),"string"!=typeof e.path||Iy(e.path,"_locale")||(e.path=_y(e.path,{_locale:"user"})),t(e)),wy,(e,t)=>{const{method:n=zy}=e;return Ay.has(n.toUpperCase())&&(e={...e,headers:{...e.headers,"X-HTTP-Method-Override":n,"Content-Type":"application/json"},method:"POST"}),t(e)},Ry],Ny=e=>{if(e.status>=200&&e.status<300)return e;throw e};let By=e=>{const{url:t,path:n,data:r,parse:o=!0,...i}=e;let{body:a,headers:l}=e;return l={...Fy,...l},r&&(a=JSON.stringify(r),l["Content-Type"]="application/json"),window.fetch(t||n||window.location.href,{...Ly,...i,body:a,headers:l}).then((e=>Promise.resolve(e).then(Ny).catch((e=>jy(e,o))).then((e=>My(e,o)))),(e=>{if(e&&"AbortError"===e.name)throw e;throw{code:"fetch_error",message:xy("You are probably offline.")}}))};function Vy(e){const t=Dy.reduceRight(((e,t)=>n=>t(n,e)),By);return t(e).catch((t=>"rest_cookie_invalid_nonce"!==t.code?Promise.reject(t):window.fetch(Vy.nonceEndpoint).then(Ny).then((e=>e.text())).then((t=>(Vy.nonceMiddleware.nonce=t,Vy(e))))))}Vy.use=function(e){Dy.unshift(e)},Vy.setFetchHandler=function(e){By=e},Vy.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},Vy.createPreloadingMiddleware=function(e){const t=Object.keys(e).reduce(((t,n)=>(t[ky(n)]=e[n],t)),{});return(e,n)=>{const{parse:r=!0}=e;let o=e.path;if(!o&&e.url){const t=Cy(e.url,"rest_route");"string"==typeof t&&(o=t)}if("string"==typeof o){const n=e.method||"GET",i=ky(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)}},Vy.createRootURLMiddleware=e=>(t,n)=>wy(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})})),Vy.fetchAllMiddleware=Ry,Vy.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:xy("Media upload failed. If this is a photo or a large image, please scale it down and try again.")}):Promise.reject(t))):jy(t,e.parse)})).then((t=>My(t,e.parse)))};const $y=Vy;var Wy=n(918);const Uy=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"}))}))))};var Hy=Rg("div");Hy.displayName="Box";var qy=Ig((function(e,t){const{size:n,centerContent:r=!0,...o}=e,i=r?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return(0,Ne.jsx)(Hy,{ref:t,boxSize:n,__css:{...i,flexShrink:0,flexGrow:0},...o})}));qy.displayName="Square";var Yy=Ig((function(e,t){const{size:n,...r}=e;return(0,Ne.jsx)(qy,{size:n,ref:t,borderRadius:"9999px",...r})}));Yy.displayName="Circle";var[Xy,Gy]=Ue({name:"CheckboxGroupContext",strict:!1});function Qy(e){return(0,Ne.jsx)(Rg.svg,{width:"1.2em",viewBox:"0 0 12 10",style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16},...e,children:(0,Ne.jsx)("polyline",{points:"1.5 6 4.5 9 10.5 1"})})}function Ky(e){return(0,Ne.jsx)(Rg.svg,{width:"1.2em",viewBox:"0 0 24 24",style:{stroke:"currentColor",strokeWidth:4},...e,children:(0,Ne.jsx)("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function Zy(e){const{isIndeterminate:t,isChecked:n,...r}=e,o=t?Ky:Qy;return n||t?(0,Ne.jsx)(Rg.div,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:(0,Ne.jsx)(o,{...r})}):null}var[Jy,ex]=Ue({name:"FormControlStylesContext",errorMessage:"useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<FormControl />\" "}),[tx,nx]=Ue({strict:!1,name:"FormControlContext"}),rx=Ig((function(t,n){const r=Dg("Form",t),o=Nn(t),{getRootProps:i,htmlProps:a,...l}=function(t){const{id:n,isRequired:r,isInvalid:o,isDisabled:i,isReadOnly:a,...l}=t,s=(0,e.useId)(),u=n||`field-${s}`,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:Rb(t,(e=>{e&&v(!0)}))})),[f]),x=(0,e.useCallback)(((e={},t=null)=>({...e,ref:t,"data-focus":tt(g),"data-disabled":tt(i),"data-invalid":tt(o),"data-readonly":tt(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:Rb(t,(e=>{e&&h(!0)})),"aria-live":"polite"})),[d]),k=(0,e.useCallback)(((e={},t=null)=>({...e,...l,ref:t,role:"group","data-focus":tt(g),"data-disabled":tt(i),"data-invalid":tt(o),"data-readonly":tt(a)})),[l,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:l,getHelpTextProps:y,getErrorMessageProps:w,getRootProps:k,getLabelProps:x,getRequiredIndicatorProps:S}}(o),s=Ke("chakra-form-control",t.className);return(0,Ne.jsx)(tx,{value:l,children:(0,Ne.jsx)(Jy,{value:r,children:(0,Ne.jsx)(Rg.div,{...i({},n),className:s,__css:r.container})})})}));rx.displayName="FormControl";var ox=Ig((function(e,t){const n=nx(),r=ex(),o=Ke("chakra-form__helper-text",e.className);return(0,Ne.jsx)(Rg.div,{...null==n?void 0:n.getHelpTextProps(e,t),__css:r.helperText,className:o})}));function ix(e){var t,n,r;const o=nx(),{id:i,disabled:a,readOnly:l,required:s,isRequired:u,isInvalid:c,isReadOnly:d,isDisabled:f,onFocus:p,onBlur:h,...m}=e,v=e["aria-describedby"]?[e["aria-describedby"]]:[];return(null==o?void 0:o.hasFeedbackText)&&(null==o?void 0:o.isInvalid)&&v.push(o.feedbackId),(null==o?void 0:o.hasHelpText)&&v.push(o.helpTextId),{...m,"aria-describedby":v.join(" ")||void 0,id:null!=i?i:null==o?void 0:o.id,isDisabled:null!=(t=null!=a?a:f)?t:null==o?void 0:o.isDisabled,isReadOnly:null!=(n=null!=l?l:d)?n:null==o?void 0:o.isReadOnly,isRequired:null!=(r=null!=s?s:u)?r:null==o?void 0:o.isRequired,isInvalid:null!=c?c:null==o?void 0:o.isInvalid,onFocus:rt(null==o?void 0:o.onFocus,p),onBlur:rt(null==o?void 0:o.onBlur,h)}}ox.displayName="FormHelperText";var ax={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},lx=()=>"undefined"!=typeof document,sx=!1,ux=null,cx=!1,dx=!1,fx=new Set;function px(e,t){fx.forEach((n=>n(e,t)))}var hx="undefined"!=typeof window&&null!=window.navigator&&/^Mac/.test(window.navigator.platform);function mx(e){var t;cx=!0,(t=e).metaKey||!hx&&t.altKey||t.ctrlKey||"Control"===t.key||"Shift"===t.key||"Meta"===t.key||(ux="keyboard",px("keyboard",e))}function vx(e){if(ux="pointer","mousedown"===e.type||"pointerdown"===e.type){cx=!0;const t=e.composedPath?e.composedPath()[0]:e.target;let n=!1;try{n=t.matches(":focus-visible")}catch{}if(n)return;px("pointer",e)}}function gx(e){var t;(0===(t=e).mozInputSource&&t.isTrusted||0===t.detail&&!t.pointerType)&&(cx=!0,ux="virtual")}function bx(e){e.target!==window&&e.target!==document&&(cx||dx||(ux="virtual",px("virtual",e)),cx=!1,dx=!1)}function yx(){cx=!1,dx=!0}function xx(){return"pointer"!==ux}function wx(e){(function(){if(!lx()||sx)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...t){cx=!0,e.apply(this,t)},document.addEventListener("keydown",mx,!0),document.addEventListener("keyup",mx,!0),document.addEventListener("click",gx,!0),window.addEventListener("focus",bx,!0),window.addEventListener("blur",yx,!1),"undefined"!=typeof PointerEvent?(document.addEventListener("pointerdown",vx,!0),document.addEventListener("pointermove",vx,!0),document.addEventListener("pointerup",vx,!0)):(document.addEventListener("mousedown",vx,!0),document.addEventListener("mousemove",vx,!0),document.addEventListener("mouseup",vx,!0)),sx=!0})(),e(xx());const t=()=>e(xx());return fx.add(t),()=>{fx.delete(t)}}function kx(t={}){const n=ix(t),{isDisabled:r,isReadOnly:o,isRequired:i,isInvalid:a,id:l,onBlur:s,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=function(e,t=[]){const n=Object.assign({},e);for(const e of t)e in n&&delete n[e];return n}(k,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),E=Cu(h),C=Cu(s),_=Cu(u),[O,P]=(0,e.useState)(!1),[T,R]=(0,e.useState)(!1),[A,z]=(0,e.useState)(!1),[I,M]=(0,e.useState)(!1);(0,e.useEffect)((()=>wx(P)),[]);const j=(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.target.checked:!!m||e.target.checked),null==E||E(e))}),[o,r,V,B,m,E]);er((()=>{j.current&&(j.current.indeterminate=Boolean(m))}),[m]),_u((()=>{r&&R(!1)}),[r,R]),er((()=>{const e=j.current;if(!(null==e?void 0:e.form))return;const t=()=>{N(!!d)};return e.form.addEventListener("reset",t),()=>{var n;return null==(n=e.form)?void 0:n.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]);er((()=>{j.current&&j.current.checked!==V&&N(j.current.checked)}),[j.current]);const q=(0,e.useCallback)(((e={},t=null)=>({...e,ref:t,"data-active":tt(I),"data-hover":tt(A),"data-checked":tt(V),"data-focus":tt(T),"data-focus-visible":tt(T&&O),"data-indeterminate":tt(m),"data-disabled":tt(r),"data-invalid":tt(a),"data-readonly":tt(o),"aria-hidden":!0,onMouseDown:rt(e.onMouseDown,(e=>{T&&e.preventDefault(),M(!0)})),onMouseUp:rt(e.onMouseUp,(()=>M(!1))),onMouseEnter:rt(e.onMouseEnter,(()=>z(!0))),onMouseLeave:rt(e.onMouseLeave,(()=>z(!1)))})),[I,V,r,T,O,A,m,a,o]),Y=(0,e.useCallback)(((e={},t=null)=>({...e,ref:t,"data-active":tt(I),"data-hover":tt(A),"data-checked":tt(V),"data-focus":tt(T),"data-focus-visible":tt(T&&O),"data-indeterminate":tt(m),"data-disabled":tt(r),"data-invalid":tt(a),"data-readonly":tt(o)})),[I,V,r,T,O,A,m,a,o]),X=(0,e.useCallback)(((e={},t=null)=>({...S,...e,ref:Rb(t,(e=>{e&&L("LABEL"===e.tagName)})),onClick:rt(e.onClick,(()=>{var e;F||(null==(e=j.current)||e.click(),requestAnimationFrame((()=>{var e;null==(e=j.current)||e.focus({preventScroll:!0})})))})),"data-disabled":tt(r),"data-checked":tt(V),"data-invalid":tt(a)})),[S,r,V,a,F]),G=(0,e.useCallback)(((e={},t=null)=>({...e,ref:Rb(j,t),type:"checkbox",name:v,value:g,id:l,tabIndex:b,onChange:rt(e.onChange,$),onBlur:rt(e.onBlur,C,(()=>R(!1))),onFocus:rt(e.onFocus,_,(()=>R(!0))),onKeyDown:rt(e.onKeyDown,U),onKeyUp:rt(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:ax})),[v,g,l,$,C,_,U,H,i,V,W,o,y,x,w,a,c,r,b]),Q=(0,e.useCallback)(((e={},t=null)=>({...e,ref:t,onMouseDown:rt(e.onMouseDown,Sx),"data-disabled":tt(r),"data-checked":tt(V),"data-invalid":tt(a)})),[V,r,a]);return{state:{isInvalid:a,isFocused:T,isChecked:V,isActive:I,isHovered:A,isIndeterminate:m,isDisabled:r,isReadOnly:o,isRequired:i},getRootProps:X,getCheckboxProps:q,getIndicatorProps:Y,getInputProps:G,getLabelProps:Q,htmlProps:S}}function Sx(e){e.preventDefault(),e.stopPropagation()}var Ex={display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0},Cx={cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"},_x=De({from:{opacity:0,strokeDashoffset:16,transform:"scale(0.95)"},to:{opacity:1,strokeDashoffset:0,transform:"scale(1)"}}),Ox=De({from:{opacity:0},to:{opacity:1}}),Px=De({from:{transform:"scaleX(0.65)"},to:{transform:"scaleX(1)"}}),Tx=Ig((function(t,n){const r=Gy(),o=Dg("Checkbox",{...r,...t}),i=Nn(t),{spacing:a="0.5rem",className:l,children:s,iconColor:u,iconSize:c,icon:d=(0,Ne.jsx)(Zy,{}),isChecked:f,isDisabled:p=(null==r?void 0:r.isDisabled),onChange:h,inputProps:m,...v}=i;let g=f;(null==r?void 0:r.value)&&i.value&&(g=r.value.includes(i.value));let b=h;(null==r?void 0:r.onChange)&&i.value&&(b=function(...e){return function(t){e.forEach((e=>{null==e||e(t)}))}}(r.onChange,h));const{state:y,getInputProps:x,getCheckboxProps:w,getLabelProps:k,getRootProps:S}=kx({...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?`${Ox} 20ms linear, ${Px} 200ms linear`:`${_x} 200ms linear`:void 0,fontSize:c,color:u,...o.icon})),[u,c,E,y.isIndeterminate,o.icon]),_=(0,e.cloneElement)(d,{__css:C,isIndeterminate:y.isIndeterminate,isChecked:y.isChecked});return(0,Ne.jsxs)(Rg.label,{__css:{...Cx,...o.container},className:Ke("chakra-checkbox",l),...S(),children:[(0,Ne.jsx)("input",{className:"chakra-checkbox__input",...x(m,n)}),(0,Ne.jsx)(Rg.span,{__css:{...Ex,...o.control},className:"chakra-checkbox__control",...w(),children:_}),s&&(0,Ne.jsx)(Rg.span,{className:"chakra-checkbox__label",...k(),__css:{marginStart:a,...o.label},children:s})]})}));Tx.displayName="Checkbox";var Rx=e=>(0,Ne.jsx)(Rg.circle,{cx:50,cy:50,r:42,fill:"transparent",...e});Rx.displayName="Circle";var Ax=De({"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260"}}),zx=De({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}});De({"0%":{left:"-40%"},"100%":{left:"100%"}}),De({from:{backgroundPosition:"1rem 0"},to:{backgroundPosition:"0 0"}});var Ix=e=>{const{size:t,isIndeterminate:n,...r}=e;return(0,Ne.jsx)(Rg.svg,{viewBox:"0 0 100 100",__css:{width:t,height:t,animation:n?`${zx} 2s linear infinite`:void 0},...r})};Ix.displayName="Shape";var Mx=Ig(((e,t)=>{var n;const{size:r="48px",max:o=100,min:i=0,valueText:a,getValueText:l,value:s,capIsRound:u,children:c,thickness:d="10px",color:f="#0078d4",trackColor:p="#edebe9",isIndeterminate:h,...m}=e,v=function(e){const{value:t=0,min:n,max:r,valueText:o,getValueText:i,isIndeterminate:a,role:l="progressbar"}=e,s=function(e,t,n){return 100*(e-t)/(n-t)}(t,n,r);return{bind:{"data-indeterminate":a?"":void 0,"aria-valuemax":r,"aria-valuemin":n,"aria-valuenow":a?void 0:t,"aria-valuetext":(()=>{if(null!=t)return"function"==typeof i?i(t,s):o})(),role:l},percent:s,value:t}}({min:i,max:o,value:s,valueText:a,getValueText:l,isIndeterminate:h}),g=h?void 0:2.64*(null!=(n=v.percent)?n:0),b=h?{css:{animation:`${Ax} 1.5s linear infinite`}}:{strokeDashoffset:66,strokeDasharray:null==g?void 0:`${g} ${264-g}`,transitionProperty:"stroke-dasharray, stroke",transitionDuration:"0.6s",transitionTimingFunction:"ease"},y={display:"inline-block",position:"relative",verticalAlign:"middle",fontSize:r};return(0,Ne.jsxs)(Rg.div,{ref:t,className:"chakra-progress",...v.bind,...m,__css:y,children:[(0,Ne.jsxs)(Ix,{size:r,isIndeterminate:h,children:[(0,Ne.jsx)(Rx,{stroke:p,strokeWidth:d,className:"chakra-progress__track"}),(0,Ne.jsx)(Rx,{stroke:f,strokeWidth:d,className:"chakra-progress__indicator",strokeLinecap:u?"round":void 0,opacity:0!==v.value||h?void 0:0,...b})]}),c]})}));Mx.displayName="CircularProgress";var jx=Rg("div",{baseStyle:{fontSize:"0.24em",top:"50%",left:"50%",width:"100%",textAlign:"center",position:"absolute",transform:"translate(-50%, -50%)"}});jx.displayName="CircularProgressLabel";var Fx=Object.defineProperty,Lx=new class{constructor(){((e,t,n)=>{((e,t,n)=>{t in e?Fx(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 Map}add(e){return this.modals.set(e,this.modals.size+1),this.modals.size}remove(e){this.modals.delete(e)}isTopModal(e){return!!e&&this.modals.get(e)===this.modals.size}};function Dx(t,n){const[r,o]=(0,e.useState)(0);return(0,e.useEffect)((()=>{const e=t.current;if(e){if(n){const t=Lx.add(e);o(t)}return()=>{Lx.remove(e),o(0)}}}),[n,t]),r}var Nx=new WeakMap,Bx=new WeakMap,Vx={},$x=0,Wx=function(e){return e&&(e.host||Wx(e.parentNode))},Ux=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=Wx(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]);Vx[n]||(Vx[n]=new WeakMap);var i=Vx[n],a=[],l=new Set,s=new Set(o),u=function(e){e&&!l.has(e)&&(l.add(e),u(e.parentNode))};o.forEach(u);var c=function(e){e&&!s.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(l.has(e))c(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,s=(Nx.get(e)||0)+1,u=(i.get(e)||0)+1;Nx.set(e,s),i.set(e,u),a.push(e),1===s&&o&&Bx.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),l.clear(),$x++,function(){a.forEach((function(e){var t=Nx.get(e)-1,o=i.get(e)-1;Nx.set(e,t),i.set(e,o),t||(Bx.has(e)||e.removeAttribute(r),Bx.delete(e)),o||e.removeAttribute(n)})),--$x||(Nx=new WeakMap,Nx=new WeakMap,Bx=new WeakMap,Vx={})}}(r,o,n,"aria-hidden")):function(){return null}};function Hx(t){const{isOpen:n,onClose:r,id:o,closeOnOverlayClick:i=!0,closeOnEsc:a=!0,useInert:l=!0,onOverlayClick:s,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 Ux(t.current)}),[n,t,r])}(c,n&&l);const m=Dx(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&&(null==r||r()),null==u||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:Rb(t,c),id:f,tabIndex:-1,"aria-modal":!0,"aria-labelledby":y?p:void 0,"aria-describedby":w?h:void 0,onClick:rt(e.onClick,(e=>e.stopPropagation()))})),[h,w,f,p,y]),E=(0,e.useCallback)((e=>{e.stopPropagation(),v.current===e.target&&Lx.isTopModal(c.current)&&(i&&(null==r||r()),null==s||s())}),[r,i,s]),C=(0,e.useCallback)(((e={},t=null)=>({...e,ref:Rb(t,d),onClick:rt(e.onClick,E),onKeyDown:rt(e.onKeyDown,b),onMouseDown:rt(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}}var[qx,Yx]=Ue({name:"ModalStylesContext",errorMessage:"useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Modal />\" "}),[Xx,Gx]=Ue({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in `<Modal />`"}),Qx=e=>{const t={scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale",lockFocusAcrossFrames:!0,...e},{portalProps:n,children:r,autoFocus:o,trapFocus:i,initialFocusRef:a,finalFocusRef:l,returnFocusOnClose:s,blockScrollOnMount:u,allowPinchZoom:c,preserveScrollBarGap:d,motionPreset:f,lockFocusAcrossFrames:p,onCloseComplete:h}=t,m=Dg("Modal",t),v={...Hx(t),autoFocus:o,trapFocus:i,initialFocusRef:a,finalFocusRef:l,returnFocusOnClose:s,blockScrollOnMount:u,allowPinchZoom:c,preserveScrollBarGap:d,motionPreset:f,lockFocusAcrossFrames:p};return(0,Ne.jsx)(Xx,{value:v,children:(0,Ne.jsx)(qx,{value:m,children:(0,Ne.jsx)(cb,{onExitComplete:h,children:v.isOpen&&(0,Ne.jsx)(gb,{...n,children:r})})})})};Qx.displayName="Modal";var Kx={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},Zx={enter:{duration:.2,ease:Kx.easeOut},exit:{duration:.1,ease:Kx.easeIn}},Jx=(e,t)=>({...e,delay:"number"==typeof t?t:null==t?void 0:t.enter}),ew=(e,t)=>({...e,delay:"number"==typeof t?t:null==t?void 0:t.exit}),tw={enter:({transition:e,transitionEnd:t,delay:n}={})=>{var r;return{opacity:1,transition:null!=(r=null==e?void 0:e.enter)?r:Jx(Zx.enter,n),transitionEnd:null==t?void 0:t.enter}},exit:({transition:e,transitionEnd:t,delay:n}={})=>{var r;return{opacity:0,transition:null!=(r=null==e?void 0:e.exit)?r:ew(Zx.exit,n),transitionEnd:null==t?void 0:t.exit}}},nw={initial:"exit",animate:"enter",exit:"exit",variants:tw},rw=(0,e.forwardRef)((function(e,t){const{unmountOnExit:n,in:r,className:o,transition:i,transitionEnd:a,delay:l,...s}=e,u=r||n?"enter":"exit",c=!n||r&&n,d={transition:i,transitionEnd:a,delay:l};return(0,Ne.jsx)(cb,{custom:d,children:c&&(0,Ne.jsx)(vg.div,{ref:t,className:Ke("chakra-fade",o),custom:d,...nw,animate:u,...s})})}));rw.displayName="Fade";var ow=Rg(vg.div),iw=Ig(((e,t)=>{const{className:n,transition:r,motionProps:o,...i}=e,a=Ke("chakra-modal__overlay",n),l={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...Yx().overlay},{motionPreset:s}=Gx(),u=o||("none"===s?{}:nw);return(0,Ne.jsx)(ow,{...u,__css:l,ref:t,className:a,...i})}));iw.displayName="ModalOverlay";var aw={initial:({offsetX:e,offsetY:t,transition:n,transitionEnd:r,delay:o})=>{var i;return{opacity:0,x:e,y:t,transition:null!=(i=null==n?void 0:n.exit)?i:ew(Zx.exit,o),transitionEnd:null==r?void 0:r.exit}},enter:({transition:e,transitionEnd:t,delay:n})=>{var r;return{opacity:1,x:0,y:0,transition:null!=(r=null==e?void 0:e.enter)?r:Jx(Zx.enter,n),transitionEnd:null==t?void 0:t.enter}},exit:({offsetY:e,offsetX:t,transition:n,transitionEnd:r,reverse:o,delay:i})=>{var a;const l={x:t,y:e};return{opacity:0,transition:null!=(a=null==n?void 0:n.exit)?a:ew(Zx.exit,i),...o?{...l,transitionEnd:null==r?void 0:r.exit}:{transitionEnd:{...l,...null==r?void 0:r.exit}}}}},lw={initial:"initial",animate:"enter",exit:"exit",variants:aw},sw=(0,e.forwardRef)((function(e,t){const{unmountOnExit:n,in:r,reverse:o=!0,className:i,offsetX:a=0,offsetY:l=8,transition:s,transitionEnd:u,delay:c,...d}=e,f=!n||r&&n,p=r||n?"enter":"exit",h={offsetX:a,offsetY:l,reverse:o,transition:s,transitionEnd:u,delay:c};return(0,Ne.jsx)(cb,{custom:h,children:f&&(0,Ne.jsx)(vg.div,{ref:t,className:Ke("chakra-offset-slide",i),custom:h,...lw,animate:p,...d})})}));sw.displayName="SlideFade";var uw={exit:({reverse:e,initialScale:t,transition:n,transitionEnd:r,delay:o})=>{var i;return{opacity:0,...e?{scale:t,transitionEnd:null==r?void 0:r.exit}:{transitionEnd:{scale:t,...null==r?void 0:r.exit}},transition:null!=(i=null==n?void 0:n.exit)?i:ew(Zx.exit,o)}},enter:({transitionEnd:e,transition:t,delay:n})=>{var r;return{opacity:1,scale:1,transition:null!=(r=null==t?void 0:t.enter)?r:Jx(Zx.enter,n),transitionEnd:null==e?void 0:e.enter}}},cw={initial:"exit",animate:"enter",exit:"exit",variants:uw},dw=(0,e.forwardRef)((function(e,t){const{unmountOnExit:n,in:r,reverse:o=!0,initialScale:i=.95,className:a,transition:l,transitionEnd:s,delay:u,...c}=e,d=!n||r&&n,f=r||n?"enter":"exit",p={initialScale:i,reverse:o,transition:l,transitionEnd:s,delay:u};return(0,Ne.jsx)(cb,{custom:p,children:d&&(0,Ne.jsx)(vg.div,{ref:t,className:Ke("chakra-offset-slide",a),...cw,animate:f,custom:p,...c})})}));dw.displayName="ScaleFade";var fw={slideInBottom:{...lw,custom:{offsetY:16,reverse:!0}},slideInRight:{...lw,custom:{offsetX:16,reverse:!0}},slideInTop:{...lw,custom:{offsetY:-16,reverse:!0}},slideInLeft:{...lw,custom:{offsetX:-16,reverse:!0}},scale:{...cw,custom:{initialScale:.95,reverse:!0}},none:{}},pw=Rg(vg.section),hw=e=>fw[e||"none"],mw=(0,e.forwardRef)(((e,t)=>{const{preset:n,motionProps:r=hw(n),...o}=e;return(0,Ne.jsx)(pw,{ref:t,...r,...o})}));function vw(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}mw.displayName="ModalTransition";var gw="data-focus-lock",bw="data-focus-lock-disabled";function yw(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var xw="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,ww=new WeakMap;function kw(t,n){var r,o,i,a=(r=n||null,o=function(e){return t.forEach((function(t){return yw(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 xw((function(){var e=ww.get(a);if(e){var n=new Set(e),r=new Set(t),o=a.current;n.forEach((function(e){r.has(e)||yw(e,null)})),r.forEach((function(e){n.has(e)||yw(e,o)}))}ww.set(a,t)}),[t]),a}var Sw={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"};function Ew(e){return e}function Cw(e,t){void 0===t&&(t=Ew);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 _w(e,t){return void 0===t&&(t=Ew),Cw(e,t)}function Ow(e){void 0===e&&(e={});var t=Cw(null);return t.options=ju({async:!0,ssr:!1},e),t}var Pw=_w({},(function(e){return{target:e.target,currentTarget:e.currentTarget}})),Tw=_w(),Rw=_w(),Aw=Ow({async:!0,ssr:"undefined"!=typeof document}),zw=(0,e.createContext)(void 0),Iw=[],Mw=e.forwardRef((function(t,n){var r,o=e.useState(),i=o[0],a=o[1],l=e.useRef(),s=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===_?Iw:_,P=t.as,T=void 0===P?"div":P,R=t.lockProps,A=void 0===R?{}:R,z=t.sideCar,I=t.returnFocus,M=void 0!==I&&I,j=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))}l.current&&F&&F(l.current),s.current=!0,c()}),[F]),B=e.useCallback((function(){s.current=!1,L&&L(l.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){s.current&&Pw.useMedium(e)}),[]),W=Tw.useMedium,U=e.useCallback((function(e){l.current!==e&&(l.current=e,a(e))}),[]),H=ie(((r={})[bw]=p&&"disabled",r[gw]=k,r),A),q=!0!==m,Y=q&&"tail"!==m,X=kw([n,U]),G=e.useMemo((function(){return{observed:l,shards:O,enabled:!p,active:s.current}}),[p,s.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:Sw}),C?e.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:p?-1:1,style:Sw}):null],!p&&e.createElement(z,{id:D,sideCar:Aw,observed:i,disabled:p,persistentFocus:g,crossFrame:y,autoFocus:w,whiteList:E,shards:O,onActivation:N,onDeactivation:B,returnFocus:V,focusOptions:j}),e.createElement(T,ie({ref:X},H,{className:S,onBlur:W,onFocus:$}),e.createElement(zw.Provider,{value:G},d)),Y&&e.createElement("div",{"data-focus-guard":!0,tabIndex:p?-1:0,style:Sw}))}));Mw.propTypes={};const jw=Mw;function Fw(e,t){return Fw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Fw(e,t)}function Lw(e){return Lw="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},Lw(e)}function Dw(e){var t=function(e,t){if("object"!=Lw(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Lw(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Lw(t)?t:t+""}function Nw(e,t,n){return(t=Dw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Bw=function(e){for(var t=Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t},Vw=function(e){return Array.isArray(e)?e:[e]},$w=function(e){return Array.isArray(e)?e[0]:e},Ww=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},Uw=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},Hw=function(e,t){var n=e.get(t);if(void 0!==n)return n;var r=function(e,t){return!e||Uw(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(Ww(e))}(t,Hw.bind(void 0,e));return e.set(t,r),r},qw=function(e,t){var n=e.get(t);if(void 0!==n)return n;var r=function(e,t){return!(e&&!Uw(e))||!!Qw(e)&&t(Ww(e))}(t,qw.bind(void 0,e));return e.set(t,r),r},Yw=function(e){return e.dataset},Xw=function(e){return"INPUT"===e.tagName},Gw=function(e){return Xw(e)&&"radio"===e.type},Qw=function(e){var t=e.getAttribute("data-no-autofocus");return![!0,"true",""].includes(t)},Kw=function(e){var t;return Boolean(e&&(null===(t=Yw(e))||void 0===t?void 0:t.focusGuard))},Zw=function(e){return!Kw(e)},Jw=function(e){return Boolean(e)},ek=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},tk=function(e,t,n){return Bw(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(ek)},nk=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"].join(","),rk="".concat(nk,", [data-focus-guard]"),ok=function(e,t){return Bw((e.shadowRoot||e).children).reduce((function(e,n){return e.concat(n.matches(t?rk:nk)?[n]:[],ok(n))}),[])},ik=function(e,t){return e.reduce((function(e,n){var r,o=ok(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)?ik([e.contentDocument.body],t):[e]}(e,t)})));return e.concat(i,n.parentNode?Bw(n.parentNode.querySelectorAll(nk)).filter((function(e){return e===n})):[])}),[])},ak=function(e,t){return Bw(e).filter((function(e){return Hw(t,e)})).filter((function(e){return function(e){return!((Xw(e)||function(e){return"BUTTON"===e.tagName}(e))&&("hidden"===e.type||e.disabled))}(e)}))},lk=function(e,t){return void 0===t&&(t=new Map),Bw(e).filter((function(e){return qw(t,e)}))},sk=function(e,t,n){return tk(ak(ik(e,n),t),!0,n)},uk=function(e,t){return tk(ak(ik(e),t),!1)},ck=function(e,t){return e.shadowRoot?ck(e.shadowRoot,t):!(void 0===Object.getPrototypeOf(e).contains||!Object.getPrototypeOf(e).contains.call(e,t))||Bw(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&&ck(r,t)}return ck(e,t)}))},dk=function(e){if(void 0===e&&(e=document),e&&e.activeElement){var t=e.activeElement;return t.shadowRoot?dk(t.shadowRoot):t instanceof HTMLIFrameElement&&function(e){try{return t.contentWindow.document}catch(e){return}}()?dk(t.contentWindow.document):t}},fk=function(e){return e.parentNode?fk(e.parentNode):e},pk=function(e){return Vw(e).filter(Boolean).reduce((function(e,t){var n=t.getAttribute(gw);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)}))}(Bw(fk(t).querySelectorAll("[".concat(gw,'="').concat(n,'"]:not([').concat(bw,'="disabled"])')))):[t]),e}),[])},hk=function(e,t){return void 0===t&&(t=dk($w(e).ownerDocument)),!(!t||t.dataset&&t.dataset.focusGuard)&&pk(e).some((function(e){return ck(e,t)||function(e,t){return Boolean(Bw(e.querySelectorAll("iframe")).some((function(e){return function(e,t){return e===t}(e,t)})))}(e,t)}))},mk=function(e,t){e&&("focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus())},vk=function(e,t){return Gw(e)&&e.name?function(e,t){return t.filter(Gw).filter((function(t){return t.name===e.name})).filter((function(e){return e.checked}))[0]||e}(e,t):e},gk=function(e){return e[0]&&e.length>1?vk(e[0],e):e[0]},bk=function(e,t){return e.indexOf(vk(t,e))},yk="NEW_FOCUS",xk=function(e,t,n){var r,o=e.map((function(e){return e.node})),i=lk(o.filter((r=n,function(e){var t,n=null===(t=Yw(e))||void 0===t?void 0:t.autofocus;return e.autofocus||void 0!==n&&"false"!==n||r.indexOf(e)>=0})));return i&&i.length?gk(i):gk(lk(t))},wk=function(e,t){return void 0===t&&(t=[]),t.push(e),e.parentNode&&wk(e.parentNode.host||e.parentNode,t),t},kk=function(e,t){for(var n=wk(e),r=wk(t),o=0;o<n.length;o+=1){var i=n[o];if(r.indexOf(i)>=0)return i}return!1},Sk=function(e,t,n){var r=Vw(e),o=Vw(t),i=r[0],a=!1;return o.filter(Boolean).forEach((function(e){a=kk(a||e,e)||a,n.filter(Boolean).forEach((function(e){var t=kk(i,e);t&&(a=!a||ck(t,a)?t:kk(t,a))}))})),a},Ek=function(e,t){return e.reduce((function(e,n){return e.concat(function(e,t){return ak((n=e.querySelectorAll("[".concat("data-autofocus-inside","]")),Bw(n).map((function(e){return ik([e])})).reduce((function(e,t){return e.concat(t)}),[])),t);var n}(n,t))}),[])},Ck=function(e,t){var n=dk(Vw(e).length>0?document:$w(e).ownerDocument),r=pk(e).filter(Zw),o=Sk(n||e,e,r),i=new Map,a=uk(r,i),l=a.filter((function(e){var t=e.node;return Zw(t)}));if(l[0]){var s,u,c,d=uk([o],i).map((function(e){return e.node})),f=(s=d,u=l,c=new Map,u.forEach((function(e){return c.set(e.node,e)})),s.map((function(e){return c.get(e)})).filter(Jw)),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],l=e[i-1],s=Kw(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:yk;if(-1===d)return yk;var f,p,h=u-c,m=n.indexOf(a),v=n.indexOf(l),g=(f=n,p=new Set,f.forEach((function(e){return p.add(vk(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=bk(e,t[0]),x=bk(e,t[t.length-1]);return u<=m&&s&&Math.abs(h)>1?x:u>=v&&s&&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===yk){var v=xk(a,h,Ek(r,i))||xk(a,p,Ek(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]}},_k=0,Ok=!1,Pk=function(e,t,n){void 0===n&&(n={});var r=Ck(e,t);if(!Ok&&r){if(_k>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"),Ok=!0,void setTimeout((function(){Ok=!1}),1);_k++,mk(r.node,n.focusOptions),_k--}},Tk=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=Vw(t);if(r.every((function(t){return!ck(t,e)})))return console.error("Active element is not contained in the scope"),{};var o=n?sk(r,new Map):uk(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&&mk(i.node,r.focusOptions)}},Rk=function(e,t,n){var r,o,i,a,l=(o=e,i=null===(r=t.onlyTabbable)||void 0===r||r,{first:(a=i?sk(Vw(o),new Map):uk(Vw(o),new Map))[0],last:a[a.length-1]})[n];l&&mk(l.node,t.focusOptions)};function Ak(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}}function zk(e){setTimeout(e,1)}var Ik=function(e){return e&&"current"in e?e.current:e},Mk=null,jk=null,Fk=null,Lk=!1,Dk=function(){return!0};function Nk(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 Bk=function e(t,n,r){return n&&(n.host===t&&(!n.activeElement||r.contains(n.activeElement))||n.parentNode&&e(t,n.parentNode,r))},Vk=function(){var e,t,n,r,o,i,a=!1;if(Mk){var l=Mk,s=l.observed,u=l.persistentFocus,c=l.autoFocus,d=l.shards,f=l.crossFrame,p=l.focusOptions,h=s||Fk&&Fk.portaledElement,m=document&&document.activeElement;if(h){var v=[h].concat(d.map(Ik).filter(Boolean));if(m&&!function(e){return(Mk.whiteList||Dk)(e)}(m)||(u||(f?Boolean(Lk):"meanwhile"===Lk)||!(document&&document.activeElement===document.body||function(e){void 0===e&&(e=document);var t=dk(e);return!!t&&Bw(e.querySelectorAll("[".concat("data-no-focus-lock","]"))).some((function(e){return ck(e,t)}))}())||!jk&&c)&&(h&&!(hk(v)||m&&function(e,t){return t.some((function(t){return Bk(e,t,t)}))}(m,v)||(i=m,Fk&&Fk.portaledElement===i))&&(document&&!jk&&m&&!c?(m.blur&&m.blur(),document.body.focus()):(a=Pk(v,jk,{focusOptions:p}),Fk={})),Lk=!1,jk=document&&document.activeElement),document&&m!==document.activeElement&&document.querySelector("[data-focus-auto-guard]")){var g=document&&document.activeElement,b=(t=pk(e=v).filter(Zw),n=Sk(e,e,t),r=tk(ik([n],!0),!0,!0),o=ik(t,!1),r.map((function(e){var t=e.node;return{node:t,index:e.index,lockItem:o.indexOf(t)>=0,guard:Kw(t)}}))),y=b.map((function(e){return e.node})).indexOf(g);y>-1&&(b.filter((function(e){var t=e.guard,n=e.node;return t&&n.dataset.focusAutoGuard})).forEach((function(e){return e.node.removeAttribute("tabIndex")})),Nk(y,b.length,1,b),Nk(y,-1,-1,b))}}}return a},$k=function(e){Vk()&&e&&(e.stopPropagation(),e.preventDefault())},Wk=function(){return zk(Vk)},Uk=function(){Lk="just",zk((function(){Lk="meanwhile"}))},Hk={moveFocusInside:Pk,focusInside:hk,focusNextElement:function(e,t){void 0===t&&(t={}),Tk(e,t,(function(e,t){var n=e.next,r=e.first;return n||t&&r}))},focusPrevElement:function(e,t){void 0===t&&(t={}),Tk(e,t,(function(e,t){var n=e.prev,r=e.last;return n||t&&r}))},focusFirstElement:function(e,t){void 0===t&&(t={}),Rk(e,t,"first")},focusLastElement:function(e,t){void 0===t&&(t={}),Rk(e,t,"last")},captureFocusRestore:function(e){var t=function(e){if(!e)return null;for(var t=[],n=e;n&&n!==document.body;)t.push({current:Ak(n),parent:Ak(n.parentElement),left:Ak(n.previousElementSibling),right:Ak(n.nextElementSibling)}),n=n.parentElement;return{element:Ak(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,l=e.ownerDocument,s=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&&l.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=sk([f],s),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)}}};Pw.assignSyncMedium((function(e){var t=e.target,n=e.currentTarget;n.contains(t)||(Fk={observerNode:n,portaledElement:t})})),Tw.assignMedium(Wk),Rw.assignMedium((function(e){return e(Hk)}));const qk=(Yk=function(e){return e.filter((function(e){return!e.disabled}))},Xk=function(e){var t=e.slice(-1)[0];t&&!Mk&&(document.addEventListener("focusin",$k),document.addEventListener("focusout",Wk),window.addEventListener("blur",Uk));var n=Mk,r=n&&t&&t.id===n.id;Mk=t,n&&!r&&(n.onDeactivation(),e.filter((function(e){return e.id===n.id})).length||n.returnFocus(!t)),t?(jk=null,r&&n.observed===t.observed||t.onActivation(Hk),Vk(),zk(Vk)):(document.removeEventListener("focusin",$k),document.removeEventListener("focusout",Wk),window.removeEventListener("blur",Uk),jk=null)},function(n){var r,o=[];function i(){r=Yk(o.map((function(e){return e.props}))),Xk(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,Fw(e,t)}(a,e),a.peek=function(){return r};var l=a.prototype;return l.componentDidMount=function(){o.push(this),i()},l.componentDidUpdate=function(){i()},l.componentWillUnmount=function(){var e=o.indexOf(this);o.splice(e,1),i()},l.render=function(){return t().createElement(n,this.props)},a}(e.PureComponent);return Nw(a,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(n)+")"),a})((function(){return null}));var Yk,Xk,Gk=e.forwardRef((function(t,n){return e.createElement(jw,ie({sideCar:qk,ref:n},t))})),Qk=jw.propTypes||{};Qk.sideCar,vw(Qk,["sideCar"]),Gk.propTypes={};const Kk=Gk;function Zk(e){return null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function Jk(e){var t;return!!Zk(e)&&e instanceof(null!=(t=e.ownerDocument.defaultView)?t:window).HTMLElement}function eS(e){return Zk(e)?e.ownerDocument:document}var tS=e=>e.hasAttribute("tabindex"),nS=e=>tS(e)&&-1===e.tabIndex;function rS(e){return!(!e.parentElement||!rS(e.parentElement))||e.hidden}function oS(e){if(!Jk(e)||rS(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)||tS(e)}var iS,aS=["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();var lS=null!=(iS=Kk.default)?iS:Kk,sS=t=>{const{initialFocusRef:n,finalFocusRef:r,contentRef:o,restoreFocus:i,children:a,isDisabled:l,autoFocus:s,persistentFocus:u,lockFocusAcrossFrames:c}=t,d=(0,e.useCallback)((()=>{(null==n?void 0:n.current)?n.current.focus():(null==o?void 0:o.current)&&0===function(e){const t=Array.from(e.querySelectorAll(aS));return t.unshift(e),t.filter((e=>oS(e)&&(e=>e.offsetWidth>0&&e.offsetHeight>0)(e)))}(o.current).length&&requestAnimationFrame((()=>{var e;null==(e=o.current)||e.focus()}))}),[n,o]),f=(0,e.useCallback)((()=>{var e;null==(e=null==r?void 0:r.current)||e.focus()}),[r]),p=i&&!r;return(0,Ne.jsx)(lS,{crossFrame:c,persistentFocus:u,autoFocus:s,disabled:l,onActivation:d,onDeactivation:f,returnFocus:p,children:a})};sS.displayName="FocusLock";var uS="right-scroll-bar-position",cS="width-before-scroll-bar",dS=Ow(),fS=function(){},pS=e.forwardRef((function(t,n){var r=e.useRef(null),o=e.useState({onScrollCapture:fS,onWheelCapture:fS,onTouchMoveCapture:fS}),i=o[0],a=o[1],l=t.forwardProps,s=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=Fu(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=p,k=kw([r,n]),S=ju(ju({},x),i);return e.createElement(e.Fragment,null,d&&e.createElement(w,{sideCar:dS,removeScrollBar:c,shards:f,noIsolation:h,inert:m,setCallbacks:a,allowPinchZoom:!!v,lockRef:r,gapMode:y}),l?e.cloneElement(e.Children.only(s),ju(ju({},S),{ref:k})):e.createElement(b,ju({},S,{className:u,ref:k}),s))}));pS.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},pS.classNames={fullWidth:cS,zeroRight:uS};var hS=function(t){var n=t.sideCar,r=Fu(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,ju({},r))};hS.isSideCarExport=!0;var mS=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)}}},vS=function(){var t,n=(t=mS(),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}},gS={left:0,top:0,right:0,gap:0},bS=function(e){return parseInt(e||"",10)||0},yS=vS(),xS="data-scroll-locked",wS=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,l=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(l,"px ").concat(r,";\n }\n body[").concat(xS,"] {\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(l,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(uS," {\n right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(cS," {\n margin-right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(uS," .").concat(uS," {\n right: 0 ").concat(r,";\n }\n \n .").concat(cS," .").concat(cS," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(xS,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(l,"px;\n }\n")},kS=function(){var e=parseInt(document.body.getAttribute(xS)||"0",10);return isFinite(e)?e:0},SS=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(xS,(kS()+1).toString()),function(){var e=kS()-1;e<=0?document.body.removeAttribute(xS):document.body.setAttribute(xS,e.toString())}}),[]);var a=e.useMemo((function(){return function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return gS;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[bS(n),bS(r),bS(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(yS,{styles:wS(a,!n,i,r?"":"!important")})},ES=!1;if("undefined"!=typeof window)try{var CS=Object.defineProperty({},"passive",{get:function(){return ES=!0,!0}});window.addEventListener("test",CS,CS),window.removeEventListener("test",CS,CS)}catch(e){ES=!1}var _S=!!ES&&{passive:!1},OS=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])},PS=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),TS(e,r)){var o=RS(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},TS=function(e,t){return"v"===e?function(e){return OS(e,"overflowY")}(t):function(e){return OS(e,"overflowX")}(t)},RS=function(e,t){return"v"===e?function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]}(t):function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t)},AS=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},zS=function(e){return[e.deltaX,e.deltaY]},IS=function(e){return e&&"current"in e?e.current:e},MS=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},jS=0,FS=[];function LS(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const DS=(NS=function(t){var n=e.useRef([]),r=e.useRef([0,0]),o=e.useRef(),i=e.useState(jS++)[0],a=e.useState(vS)[0],l=e.useRef(t);e.useEffect((function(){l.current=t}),[t]),e.useEffect((function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var e=Du([t.lockRef.current],(t.shards||[]).map(IS),!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 s=e.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!l.current.allowPinchZoom;var n,i=AS(e),a=r.current,s="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(s)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=PS(d,c);if(!f)return!0;if(f?n=d:(n="v"===d?"h":"v",f=PS(d,c)),!f)return!1;if(!o.current&&"changedTouches"in e&&(s||u)&&(o.current=n),!n)return!0;var p=o.current||n;return function(e,t,n,r,o){var i=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=i*r,l=n.target,s=t.contains(l),u=!1,c=a>0,d=0,f=0;do{var p=RS(e,l),h=p[0],m=p[1]-p[2]-i*h;(h||m)&&TS(e,l)&&(d+=m,f+=h),l=l instanceof ShadowRoot?l.host:l.parentNode}while(!s&&l!==document.body||s&&(t.contains(l)||t===l));return(c&&(Math.abs(d)<1||!1)||!c&&(Math.abs(f)<1||!1))&&(u=!0),u}(p,t,e,"h"===p?s:u)}),[]),u=e.useCallback((function(e){var t=e;if(FS.length&&FS[FS.length-1]===a){var r="deltaY"in t?zS(t):AS(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=(l.current.shards||[]).map(IS).filter(Boolean).filter((function(e){return e.contains(t.target)}));(i.length>0?s(t,i[0]):!l.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:LS(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=AS(e),o.current=void 0}),[]),f=e.useCallback((function(e){c(e.type,zS(e),e.target,s(e,t.lockRef.current))}),[]),p=e.useCallback((function(e){c(e.type,AS(e),e.target,s(e,t.lockRef.current))}),[]);e.useEffect((function(){return FS.push(a),t.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",u,_S),document.addEventListener("touchmove",u,_S),document.addEventListener("touchstart",d,_S),function(){FS=FS.filter((function(e){return e!==a})),document.removeEventListener("wheel",u,_S),document.removeEventListener("touchmove",u,_S),document.removeEventListener("touchstart",d,_S)}}),[]);var h=t.removeScrollBar,m=t.inert;return e.createElement(e.Fragment,null,m?e.createElement(a,{styles:MS(i)}):null,h?e.createElement(SS,{gapMode:t.gapMode}):null)},dS.useMedium(NS),hS);var NS,BS=e.forwardRef((function(t,n){return e.createElement(pS,ju({},t,{ref:n,sideCar:DS}))}));BS.classNames=pS.classNames;const VS=BS;function $S(t){const{autoFocus:n,trapFocus:r,dialogRef:o,initialFocusRef:i,blockScrollOnMount:a,allowPinchZoom:l,finalFocusRef:s,returnFocusOnClose:u,preserveScrollBarGap:c,lockFocusAcrossFrames:d,isOpen:f}=Gx(),[p,h]=Tu();(0,e.useEffect)((()=>{!p&&h&&setTimeout(h)}),[p,h]);const m=Dx(o,f);return(0,Ne.jsx)(sS,{autoFocus:n,isDisabled:!r,initialFocusRef:i,finalFocusRef:s,restoreFocus:u,contentRef:o,lockFocusAcrossFrames:d,children:(0,Ne.jsx)(VS,{removeScrollBar:!c,allowPinchZoom:l,enabled:1===m&&a,forwardProps:!0,children:t.children})})}var WS=Ig(((e,t)=>{const{className:n,children:r,containerProps:o,motionProps:i,...a}=e,{getDialogProps:l,getDialogContainerProps:s}=Gx(),u=l(a,t),c=s(o),d=Ke("chakra-modal__content",n),f=Yx(),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}=Gx();return(0,Ne.jsx)($S,{children:(0,Ne.jsx)(Rg.div,{...c,className:"chakra-modal__content-container",tabIndex:-1,__css:h,children:(0,Ne.jsx)(mw,{preset:m,motionProps:i,className:d,...u,__css:p,children:r})})})}));WS.displayName="ModalContent";var US=Ig(((t,n)=>{const{className:r,...o}=t,{headerId:i,setHeaderMounted:a}=Gx();(0,e.useEffect)((()=>(a(!0),()=>a(!1))),[a]);const l=Ke("chakra-modal__header",r),s={flex:0,...Yx().header};return(0,Ne.jsx)(Rg.header,{ref:n,className:l,id:i,...o,__css:s})}));US.displayName="ModalHeader";var HS=Ig(((t,n)=>{const{className:r,...o}=t,{bodyId:i,setBodyMounted:a}=Gx();(0,e.useEffect)((()=>(a(!0),()=>a(!1))),[a]);const l=Ke("chakra-modal__body",r),s=Yx();return(0,Ne.jsx)(Rg.div,{ref:n,className:l,id:i,...o,__css:s.body})}));HS.displayName="ModalBody";var qS=Ig(((e,t)=>{const{className:n,...r}=e,o=Ke("chakra-modal__footer",n),i={display:"flex",alignItems:"center",justifyContent:"flex-end",...Yx().footer};return(0,Ne.jsx)(Rg.footer,{ref:t,...r,__css:i,className:o})}));qS.displayName="ModalFooter";var YS=(0,e.createContext)(),XS=function(n){var r=n.reducer,o=n.initialState,i=n.children;return t().createElement(YS.Provider,{value:(0,e.useReducer)(r,o)},i)},GS=function(){return(0,e.useContext)(YS)};function QS(e){return QS="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},QS(e)}function KS(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 ZS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?KS(Object(n),!0).forEach((function(t){JS(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function JS(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=QS(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=QS(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==QS(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var eE="GET_SETTINGS",tE="GET_INSTALL_PAGE",nE="GET_DEFAULT_FORM",rE="GET_IS_PRO";function oE(e){return oE="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},oE(e)}function iE(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 aE(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=oE(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=oE(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==oE(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lE(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,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return sE(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)?sE(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 sE(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 uE=function(n){var r=lE(GS(),2),o=r[0],i=o.settings,a=o.isPro,l=r[1],s=lE((0,e.useState)(n),2),u=s[0],c=s[1],d=function(e){var t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?iE(Object(n),!0).forEach((function(t){aE(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iE(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",l({type:eE,settings:t})};return t().createElement(Qx,{isOpen:u,size:"xl",isCentered:!0},t().createElement(iw,null),t().createElement(WS,null,t().createElement(US,null,"Contribute to the enhancement"),t().createElement(HS,null,a?t().createElement(Cb,{fontSize:"16px"},"Help us improve the plugin's features by sharing"," ",t().createElement(Db,{href:"https://docs.wpuserregistration.com/docs/miscellaneous-settings/#1-toc-title",isExternal:!0,color:"#475BB2"},"non-sensitive plugin data")," ","with us."):t().createElement(Cb,{fontSize:"16px"},"Help us improve the plugin's features and receive an instant discount coupon with occasional email updates by sharing"," ",t().createElement(Db,{href:"https://docs.wpuserregistration.com/docs/miscellaneous-settings/#1-toc-title",isExternal:!0,color:"#475BB2"},"non-sensitive plugin data")," ","with us.")),t().createElement(qS,null,t().createElement(zb,{variant:"ghost",onClick:function(){d("disallow"),c(!1)}},"No Thanks"),t().createElement(zb,{colorScheme:"blue",mr:3,onClick:function(){d("allow"),c(!1)}},"Allow"))))};function cE(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,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return dE(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)?dE(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 dE(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 fE=function(){var n=cE(GS(),1)[0],r=n.installPage,o=n.defaultFormId,i=cE((0,e.useState)(0),2),a=i[0],l=i[1],s=cE((0,e.useState)(!1),2),u=s[0];s[1],(0,e.useEffect)((function(){if("installing"===r.registration_page.status||"installing"===r.my_account_page.status){var e=setInterval((function(){l((function(e){return e<100?e+20:e=0}))}),840);return function(){clearInterval(e)}}l(0)}),[r]);var c=function(e,n){return t().createElement(Hy,{bg:"installed"===e.status?"#F8F9FC":"#FAFAFC",w:"100%",p:4,color:"not_installed"!==e.status?"#2D3559":"#C4C4C4",mt:3,border:"1px solid #DEE0E9",borderRadius:"md"},t().createElement(Sb,{justify:"space-between",align:"center"},t().createElement(Tx,{isChecked:"installed"===e.status,isReadOnly:!0},t().createElement(Cb,{fontSize:"15px",fontWeight:600,color:"installed"===e.status?"#383838":"#BABABA"},xy("registration_page"===n?"Registration Page":"My Account Page","user-registration")),"not_installed"!==e.status&&t().createElement(Cb,{fontSize:"13px",color:"#6B6B6B"},e.slug)),"installing"===e.status?t().createElement(Sb,{align:"center"},t().createElement(Cb,{fontSize:"12px",color:"#475BB2"},xy("Installing...","user-registration")),t().createElement(Mx,{value:a,size:"30px",thickness:"15px",color:"blue.300",ml:3},t().createElement(jx,null,a," %"))):"installed"===e.status&&t().createElement(Cb,{fontSize:"12px",color:"#475BB2"},xy("Installed","user-registration"))))};return t().createElement(e.Fragment,null,u?"":t().createElement(uE,{openPopup:!0}),t().createElement(Hy,{bg:"#F8F9FC",w:"100%",p:4,color:"#383838",mt:3,borderRadius:"md"},t().createElement(Sb,{justify:"space-between",align:"center"},t().createElement(Tx,{isChecked:!0,isReadOnly:!0},t().createElement(Cb,{fontSize:"15px",fontWeight:600,color:"#383838"},xy("Default Registration Form","user-registration")),o&&t().createElement(Cb,{fontSize:"13px",color:"#6B6B6B"},"Form id : ",o)),t().createElement(Sb,{align:"center"},t().createElement(Cb,{fontSize:"12px",color:"#475BB2"},xy("Installed","user-registration"))))),c(r.registration_page,"registration_page"),c(r.my_account_page,"my_account_page"))};var pE=e=>(0,Ne.jsx)(Rg.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});pE.displayName="StackItem";var hE=Object.freeze(["base","sm","md","lg","xl","2xl"]),mE=Ig(((t,n)=>{const{isInline:r,direction:o,align:i,justify:a,spacing:l="0.5rem",wrap:s,children:u,divider:c,className:d,shouldWrapChildren:f,...p}=t,h=r?"row":null!=o?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))):Ze(o)?Object.keys(o).reduce(((e,t)=>(e[t]=i(o[t]),e)),{}):null!=o?i(o):null)};var o,i}({spacing:l,direction:h})),[l,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,Ne.jsx)(pE,{children:n},o):n;if(!v)return a;const l=(0,e.cloneElement)(c,{__css:m}),s=i?null:l;return(0,Ne.jsxs)(e.Fragment,{children:[a,s]},o)}))}),[c,m,v,g,f,u]),y=Ke("chakra-stack",d);return(0,Ne.jsx)(Rg.div,{ref:n,display:"flex",alignItems:i,justifyContent:a,flexDirection:h,flexWrap:s,gap:v?void 0:l,className:y,...p,children:b})}));function vE(t={}){const{onChange:n,value:r,defaultValue:o,name:i,isDisabled:a,isFocusable:l,isNative:s,...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);null==r||r.focus()}),[]),v=(0,e.useId)(),g=i||`radio-${v}`,b=(0,e.useCallback)((e=>{const t=function(e){return e&&Ze(e)&&Ze(e.target)}(e)?e.target.value:e;f||d(t),null==n||n(String(t))}),[n,f]);return{getRootProps:(0,e.useCallback)(((e={},t=null)=>({...e,ref:Rb(t,h),role:"radiogroup"})),[]),getRadioProps:(0,e.useCallback)(((e={},t=null)=>{const n=s?"checked":"isChecked";return{...e,ref:t,name:g,[n]:null!=p?e.value===p:void 0,onChange(e){b(e)},"data-radiogroup":!0}}),[s,g,b,p]),name:g,ref:h,focus:m,setValue:d,value:p,onChange:b,isDisabled:a,isFocusable:l,htmlProps:u}}mE.displayName="Stack";var[gE,bE]=Ue({name:"RadioGroupContext",strict:!1}),yE=Ig(((t,n)=>{const{colorScheme:r,size:o,variant:i,children:a,className:l,isDisabled:s,isFocusable:u,...c}=t,{value:d,onChange:f,getRootProps:p,name:h,htmlProps:m}=vE(c),v=(0,e.useMemo)((()=>({name:h,size:o,onChange:f,colorScheme:r,value:d,variant:i,isDisabled:s,isFocusable:u})),[h,o,f,r,d,i,s,u]);return(0,Ne.jsx)(gE,{value:v,children:(0,Ne.jsx)(Rg.div,{...p(m,n),className:Ke("chakra-radio-group",l),children:a})})}));yE.displayName="RadioGroup";var xE={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};function wE(e){e.preventDefault(),e.stopPropagation()}var kE=Ig((function(e,t){const{htmlWidth:n,htmlHeight:r,alt:o,...i}=e;return(0,Ne.jsx)("img",{width:n,height:r,ref:t,alt:o,...i})}));function SE(e,t=[]){const n=Object.assign({},e);for(const e of t)e in n&&delete n[e];return n}kE.displayName="NativeImage";var EE=Ig((function(t,n){const{fallbackSrc:r,fallback:o,src:i,srcSet:a,align:l,fit:s,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:l,sizes:s,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,l&&(e.crossOrigin=l),o&&(e.srcset=o),s&&(e.sizes=s),n&&(e.loading=n),e.onload=e=>{h(),d("loaded"),null==i||i(e)},e.onerror=e=>{h(),d("failed"),null==a||a(e)},f.current=e}),[r,l,o,s,i,a,n]),h=()=>{f.current&&(f.current.onload=null,f.current.onerror=null,f.current=null)};return er((()=>{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:s,objectPosition:l,...m?h:SE(h,["onError","onLoad"])};return g?o||(0,Ne.jsx)(Rg.img,{as:kE,className:"chakra-image__placeholder",src:r,...b}):(0,Ne.jsx)(Rg.img,{as:kE,src:i,srcSet:a,crossOrigin:d,loading:u,referrerPolicy:p,className:"chakra-image",...b})}));EE.displayName="Image";var CE=Ig((function(t,n){const r=Dg("Switch",t),{spacing:o="0.5rem",children:i,...a}=Nn(t),{getIndicatorProps:l,getInputProps:s,getCheckboxProps:u,getRootProps:c,getLabelProps:d}=kx(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,Ne.jsxs)(Rg.label,{...c(),className:Ke("chakra-switch",t.className),__css:f,children:[(0,Ne.jsx)("input",{className:"chakra-switch__input",...s({},n)}),(0,Ne.jsx)(Rg.span,{...u(),className:"chakra-switch__track",__css:p,children:(0,Ne.jsx)(Rg.span,{__css:r.thumb,className:"chakra-switch__thumb",...l()})}),i&&(0,Ne.jsx)(Rg.span,{className:"chakra-switch__label",...d(),__css:h,children:i})]})}));CE.displayName="Switch";var _E=Ig(((e,t)=>(0,Ne.jsx)(mE,{align:"center",...e,direction:"row",ref:t})));_E.displayName="HStack";var OE=Ig((function(e,t){var n;const r=Lg("FormLabel",e),o=Nn(e),{className:i,children:a,requiredIndicator:l=(0,Ne.jsx)(PE,{}),optionalIndicator:s=null,...u}=o,c=nx(),d=null!=(n=null==c?void 0:c.getLabelProps(u,t))?n:{ref:t,...u};return(0,Ne.jsxs)(Rg.label,{...d,className:Ke("chakra-form__label",o.className),__css:{display:"block",textAlign:"start",...r},children:[a,(null==c?void 0:c.isRequired)?l:s]})}));OE.displayName="FormLabel";var PE=Ig((function(e,t){const n=nx(),r=ex();if(!(null==n?void 0:n.isRequired))return null;const o=Ke("chakra-form__required-indicator",e.className);return(0,Ne.jsx)(Rg.span,{...null==n?void 0:n.getRequiredIndicatorProps(e,t),__css:r.requiredIndicator,className:o})}));PE.displayName="RequiredIndicator";var TE={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 RE(e){return["html","body","#document"].includes(e.localName)?e.ownerDocument.body:Jk(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:RE(function(e){return"html"===e.localName?e:e.assignedSlot||e.parentElement||e.ownerDocument.documentElement}(e))}var AE=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),zE={arrowShadowColor:AE("--popper-arrow-shadow-color"),arrowSize:AE("--popper-arrow-size","8px"),arrowSizeHalf:AE("--popper-arrow-size-half"),arrowBg:AE("--popper-arrow-bg"),transformOrigin:AE("--popper-transform-origin"),arrowOffset:AE("--popper-arrow-offset")},IE={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"},ME={scroll:!0,resize:!0};function jE(e){let t;return t="object"==typeof e?{enabled:!0,options:{...ME,...e}}:{enabled:e,options:ME},t}var FE={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`}},LE={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{DE(e)},effect:({state:e})=>()=>{DE(e)}},DE=e=>{var t;e.elements.popper.style.setProperty(zE.transformOrigin.var,(t=e.placement,IE[t]))},NE={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{BE(e)}},BE=e=>{var t;if(!e.placement)return;const n=VE(e.placement);if((null==(t=e.elements)?void 0:t.arrow)&&n){Object.assign(e.elements.arrow.style,{[n.property]:n.value,width:zE.arrowSize.varRef,height:zE.arrowSize.varRef,zIndex:-1});const t={[zE.arrowSizeHalf.var]:`calc(${zE.arrowSize.varRef} / 2 - 1px)`,[zE.arrowOffset.var]:`calc(${zE.arrowSizeHalf.varRef} * -1)`};for(const n in t)e.elements.arrow.style.setProperty(n,t[n])}},VE=e=>e.startsWith("top")?{property:"bottom",value:zE.arrowOffset.varRef}:e.startsWith("bottom")?{property:"top",value:zE.arrowOffset.varRef}:e.startsWith("left")?{property:"right",value:zE.arrowOffset.varRef}:e.startsWith("right")?{property:"left",value:zE.arrowOffset.varRef}:void 0,$E={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{WE(e)},effect:({state:e})=>()=>{WE(e)}},WE=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:zE.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},UE={"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"}},HE={"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(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function YE(e){return e instanceof qE(e).Element||e instanceof Element}function XE(e){return e instanceof qE(e).HTMLElement||e instanceof HTMLElement}function GE(e){return"undefined"!=typeof ShadowRoot&&(e instanceof qE(e).ShadowRoot||e instanceof ShadowRoot)}var QE=Math.max,KE=Math.min,ZE=Math.round;function JE(){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 eC(){return!/^((?!chrome|android).)*safari/i.test(JE())}function tC(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&XE(e)&&(o=e.offsetWidth>0&&ZE(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&ZE(r.height)/e.offsetHeight||1);var a=(YE(e)?qE(e):window).visualViewport,l=!eC()&&n,s=(r.left+(l&&a?a.offsetLeft:0))/o,u=(r.top+(l&&a?a.offsetTop:0))/i,c=r.width/o,d=r.height/i;return{width:c,height:d,top:u,right:s+c,bottom:u+d,left:s,x:s,y:u}}function nC(e){var t=qE(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function rC(e){return e?(e.nodeName||"").toLowerCase():null}function oC(e){return((YE(e)?e.ownerDocument:e.document)||window.document).documentElement}function iC(e){return tC(oC(e)).left+nC(e).scrollLeft}function aC(e){return qE(e).getComputedStyle(e)}function lC(e){var t=aC(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function sC(e,t,n){void 0===n&&(n=!1);var r=XE(t),o=XE(t)&&function(e){var t=e.getBoundingClientRect(),n=ZE(t.width)/e.offsetWidth||1,r=ZE(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),i=oC(t),a=tC(e,o,n),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&(("body"!==rC(t)||lC(i))&&(l=function(e){return e!==qE(e)&&XE(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:nC(e);var t}(t)),XE(t)?((s=tC(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=iC(i))),{x:a.left+l.scrollLeft-s.x,y:a.top+l.scrollTop-s.y,width:a.width,height:a.height}}function uC(e){var t=tC(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 cC(e){return"html"===rC(e)?e:e.assignedSlot||e.parentNode||(GE(e)?e.host:null)||oC(e)}function dC(e){return["html","body","#document"].indexOf(rC(e))>=0?e.ownerDocument.body:XE(e)&&lC(e)?e:dC(cC(e))}function fC(e,t){var n;void 0===t&&(t=[]);var r=dC(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=qE(r),a=o?[i].concat(i.visualViewport||[],lC(r)?r:[]):r,l=t.concat(a);return o?l:l.concat(fC(cC(a)))}function pC(e){return["table","td","th"].indexOf(rC(e))>=0}function hC(e){return XE(e)&&"fixed"!==aC(e).position?e.offsetParent:null}function mC(e){for(var t=qE(e),n=hC(e);n&&pC(n)&&"static"===aC(n).position;)n=hC(n);return n&&("html"===rC(n)||"body"===rC(n)&&"static"===aC(n).position)?t:n||function(e){var t=/firefox/i.test(JE());if(/Trident/i.test(JE())&&XE(e)&&"fixed"===aC(e).position)return null;var n=cC(e);for(GE(n)&&(n=n.host);XE(n)&&["html","body"].indexOf(rC(n))<0;){var r=aC(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 vC="top",gC="bottom",bC="right",yC="left",xC="auto",wC=[vC,gC,bC,yC],kC="start",SC="end",EC="viewport",CC="popper",_C=wC.reduce((function(e,t){return e.concat([t+"-"+kC,t+"-"+SC])}),[]),OC=[].concat(wC,[xC]).reduce((function(e,t){return e.concat([t,t+"-"+kC,t+"-"+SC])}),[]),PC=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function TC(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 RC={placement:"bottom",modifiers:[],strategy:"absolute"};function AC(){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 zC(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?RC:o;return function(e,t,n){void 0===n&&(n=i);var o,a,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},RC,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],u=!1,c={state:l,setOptions:function(n){var o="function"==typeof n?n(l.options):n;d(),l.options=Object.assign({},i,l.options,o),l.scrollParents={reference:YE(e)?fC(e):e.contextElement?fC(e.contextElement):[],popper:fC(t)};var a,u,f=function(e){var t=TC(e);return PC.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((a=[].concat(r,l.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 l.orderedModifiers=f.filter((function(e){return e.enabled})),l.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:l,name:t,instance:c,options:r});s.push(i||function(){})}})),c.update()},forceUpdate:function(){if(!u){var e=l.elements,t=e.reference,n=e.popper;if(AC(t,n)){l.rects={reference:sC(t,mC(n),"fixed"===l.options.strategy),popper:uC(n)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach((function(e){return l.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<l.orderedModifiers.length;r++)if(!0!==l.reset){var o=l.orderedModifiers[r],i=o.fn,a=o.options,s=void 0===a?{}:a,d=o.name;"function"==typeof i&&(l=i({state:l,options:s,name:d,instance:c})||l)}else l.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){c.forceUpdate(),e(l)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(o())}))}))),a}),destroy:function(){d(),u=!0}};if(!AC(e,t))return c;function d(){s.forEach((function(e){return e()})),s=[]}return c.setOptions(n).then((function(e){!u&&n.onFirstUpdate&&n.onFirstUpdate(e)})),c}}var IC={passive:!0};const MC={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,l=void 0===a||a,s=qE(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach((function(e){e.addEventListener("scroll",n.update,IC)})),l&&s.addEventListener("resize",n.update,IC),function(){i&&u.forEach((function(e){e.removeEventListener("scroll",n.update,IC)})),l&&s.removeEventListener("resize",n.update,IC)}},data:{}};function jC(e){return e.split("-")[0]}function FC(e){return e.split("-")[1]}function LC(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function DC(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?jC(o):null,a=o?FC(o):null,l=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(i){case vC:t={x:l,y:n.y-r.height};break;case gC:t={x:l,y:n.y+n.height};break;case bC:t={x:n.x+n.width,y:s};break;case yC:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var u=i?LC(i):null;if(null!=u){var c="y"===u?"height":"width";switch(a){case kC:t[u]=t[u]-(n[c]/2-r[c]/2);break;case SC:t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}const NC={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=DC({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var BC={top:"auto",right:"auto",bottom:"auto",left:"auto"};function VC(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,l=e.position,s=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=yC,x=vC,w=window;if(u){var k=mC(n),S="clientHeight",E="clientWidth";k===qE(n)&&"static"!==aC(k=oC(n)).position&&"absolute"===l&&(S="scrollHeight",E="scrollWidth"),(o===vC||(o===yC||o===bC)&&i===SC)&&(x=gC,m-=(d&&k===w&&w.visualViewport?w.visualViewport.height:k[S])-r.height,m*=s?1:-1),o!==yC&&(o!==vC&&o!==gC||i!==SC)||(y=bC,p-=(d&&k===w&&w.visualViewport?w.visualViewport.width:k[E])-r.width,p*=s?1:-1)}var C,_=Object.assign({position:l},u&&BC),O=!0===c?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:ZE(n*o)/o||0,y:ZE(r*o)/o||0}}({x:p,y:m},qE(n)):{x:p,y:m};return p=O.x,m=O.y,s?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 $C={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,l=n.roundOffsets,s=void 0===l||l,u={placement:jC(t.placement),variation:FC(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,VC(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,VC(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},WC={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];XE(o)&&rC(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}),{});XE(r)&&rC(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},UC={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=OC.reduce((function(e,n){return e[n]=function(e,t,n){var r=jC(e),o=[yC,vC].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],l=i[1];return a=a||0,l=(l||0)*o,[yC,bC].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}(n,t.rects,i),e}),{}),l=a[t.placement],s=l.x,u=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}};var HC={left:"right",right:"left",bottom:"top",top:"bottom"};function qC(e){return e.replace(/left|right|bottom|top/g,(function(e){return HC[e]}))}var YC={start:"end",end:"start"};function XC(e){return e.replace(/start|end/g,(function(e){return YC[e]}))}function GC(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&GE(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function QC(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function KC(e,t,n){return t===EC?QC(function(e,t){var n=qE(e),r=oC(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;var u=eC();(u||!u&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l+iC(e),y:s}}(e,n)):YE(t)?function(e,t){var n=tC(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):QC(function(e){var t,n=oC(e),r=nC(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=QE(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=QE(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+iC(e),s=-r.scrollTop;return"rtl"===aC(o||n).direction&&(l+=QE(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:l,y:s}}(oC(e)))}function ZC(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function JC(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function e_(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,l=n.boundary,s=void 0===l?"clippingParents":l,u=n.rootBoundary,c=void 0===u?EC:u,d=n.elementContext,f=void 0===d?CC:d,p=n.altBoundary,h=void 0!==p&&p,m=n.padding,v=void 0===m?0:m,g=ZC("number"!=typeof v?v:JC(v,wC)),b=f===CC?"reference":CC,y=e.rects.popper,x=e.elements[h?b:f],w=function(e,t,n,r){var o="clippingParents"===t?function(e){var t=fC(cC(e)),n=["absolute","fixed"].indexOf(aC(e).position)>=0&&XE(e)?mC(e):e;return YE(n)?t.filter((function(e){return YE(e)&&GC(e,n)&&"body"!==rC(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],l=i.reduce((function(t,n){var o=KC(e,n,r);return t.top=QE(o.top,t.top),t.right=KE(o.right,t.right),t.bottom=KE(o.bottom,t.bottom),t.left=QE(o.left,t.left),t}),KC(e,a,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}(YE(x)?x:x.contextElement||oC(e.elements.popper),s,c,a),k=tC(e.elements.reference),S=DC({reference:k,element:y,strategy:"absolute",placement:o}),E=QC(Object.assign({},y,S)),C=f===CC?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===CC&&O){var P=O[o];Object.keys(_).forEach((function(e){var t=[bC,gC].indexOf(e)>=0?1:-1,n=[vC,gC].indexOf(e)>=0?"y":"x";_[e]+=P[n]*t}))}return _}const t_={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,l=void 0===a||a,s=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=jC(v),b=s||(g!==v&&h?function(e){if(jC(e)===xC)return[];var t=qC(e);return[XC(e),t,XC(t)]}(v):[qC(v)]),y=[v].concat(b).reduce((function(e,n){return e.concat(jC(n)===xC?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,l=n.flipVariations,s=n.allowedAutoPlacements,u=void 0===s?OC:s,c=FC(r),d=c?l?_C:_C.filter((function(e){return FC(e)===c})):wC,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]=e_(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[jC(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=jC(_),P=FC(_)===kC,T=[vC,gC].indexOf(O)>=0,R=T?"width":"height",A=e_(t,{placement:_,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),z=T?P?bC:yC:P?gC:vC;x[R]>w[R]&&(z=qC(z));var I=qC(z),M=[];if(i&&M.push(A[O]<=0),l&&M.push(A[z]<=0,A[I]<=0),M.every((function(e){return e}))){E=_,S=!1;break}k.set(_,M)}if(S)for(var j=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"!==j(F);F--);t.placement!==E&&(t.modifiersData[r]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function n_(e,t,n){return QE(e,KE(t,n))}const r_={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,l=void 0!==a&&a,s=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=e_(t,{boundary:s,rootBoundary:u,padding:d,altBoundary:c}),g=jC(t.placement),b=FC(t.placement),y=!b,x=LC(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 T,R="y"===x?vC:yC,A="y"===x?gC:bC,z="y"===x?"height":"width",I=k[x],M=I+v[R],j=I-v[A],F=p?-E[z]/2:0,L=b===kC?S[z]:E[z],D=b===kC?-E[z]:-S[z],N=t.elements.arrow,B=p&&N?uC(N):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},$=V[R],W=V[A],U=n_(0,S[z],B[z]),H=y?S[z]/2-F-U-$-_.mainAxis:L-U-$-_.mainAxis,q=y?-S[z]/2+F+U+W+_.mainAxis:D+U+W+_.mainAxis,Y=t.elements.arrow&&mC(t.elements.arrow),X=Y?"y"===x?Y.clientTop||0:Y.clientLeft||0:0,G=null!=(T=null==O?void 0:O[x])?T:0,Q=I+q-G,K=n_(p?KE(M,I+H-G-X):M,I,p?QE(j,Q):j);k[x]=K,P[x]=K-I}if(l){var Z,J="x"===x?vC:yC,ee="x"===x?gC:bC,te=k[w],ne="y"===w?"height":"width",re=te+v[J],oe=te-v[ee],ie=-1!==[vC,yC].indexOf(g),ae=null!=(Z=null==O?void 0:O[w])?Z:0,le=ie?re:te-S[ne]-E[ne]-ae+_.altAxis,se=ie?te+S[ne]+E[ne]-ae-_.altAxis:oe,ue=p&&ie?function(e,t,n){var r=n_(e,t,n);return r>n?n:r}(le,te,se):n_(p?le:re,te,p?se:oe);k[w]=ue,P[w]=ue-te}t.modifiersData[r]=P}},requiresIfExists:["offset"]},o_={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,l=jC(n.placement),s=LC(l),u=[yC,bC].indexOf(l)>=0?"height":"width";if(i&&a){var c=function(e,t){return ZC("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:JC(e,wC))}(o.padding,n),d=uC(i),f="y"===s?vC:yC,p="y"===s?gC:bC,h=n.rects.reference[u]+n.rects.reference[s]-a[s]-n.rects.popper[u],m=a[s]-n.rects.reference[s],v=mC(i),g=v?"y"===s?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=n_(y,w,x),S=s;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)))&&GC(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function i_(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 a_(e){return[vC,bC,gC,yC].some((function(t){return e[t]>=0}))}const l_={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=e_(t,{elementContext:"reference"}),l=e_(t,{altBoundary:!0}),s=i_(a,r),u=i_(l,o,i),c=a_(s),d=a_(u);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}};var s_=zC({defaultModifiers:[MC,NC,$C,WC,UC,t_,r_,o_,l_]});function u_(t={}){const{enabled:n=!0,modifiers:r,placement:o="bottom",strategy:i="absolute",arrowPadding:a=8,eventListeners:l=!0,offset:s,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"){var n,r;const o=(null==(n=UE[e])?void 0:n[t])||e;return"ltr"===t?o:null!=(r=HE[e])?r:o}(o,h),y=(0,e.useRef)((()=>{})),x=(0,e.useCallback)((()=>{var e;n&&m.current&&v.current&&(null==(e=y.current)||e.call(y),g.current=s_(m.current,v.current,{placement:b,modifiers:[$E,NE,LE,{...FE,enabled:!!p},{name:"eventListeners",...jE(l)},{name:"arrow",options:{padding:a}},{name:"offset",options:{offset:null!=s?s:[0,u]}},{name:"flip",enabled:!!c,options:{padding:8}},{name:"preventOverflow",enabled:!!f,options:{boundary:d}},...null!=r?r:[]],strategy:i}),g.current.forceUpdate(),y.current=g.current.destroy)}),[b,n,r,p,l,a,s,u,c,f,d,i]);(0,e.useEffect)((()=>()=>{var e;m.current||v.current||(null==(e=g.current)||e.destroy(),g.current=null)}),[]);const w=(0,e.useCallback)((e=>{m.current=e,x()}),[x]),k=(0,e.useCallback)(((e={},t=null)=>({...e,ref:Rb(w,t)})),[w]),S=(0,e.useCallback)((e=>{v.current=e,x()}),[x]),E=(0,e.useCallback)(((e={},t=null)=>({...e,ref:Rb(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:c_(e)}}),[]),_=(0,e.useCallback)(((e={},t=null)=>({...e,ref:t,"data-popper-arrow-inner":""})),[]);return{update(){var e;null==(e=g.current)||e.update()},forceUpdate(){var e;null==(e=g.current)||e.forceUpdate()},transformOrigin:zE.transformOrigin.varRef,referenceRef:w,popperRef:S,getPopperProps:E,getArrowProps:C,getArrowInnerProps:_,getReferenceProps:k}}function c_(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}function d_(t={}){const{onClose:n,onOpen:r,isOpen:o,id:i}=t,a=Cu(r),l=Cu(n),[s,u]=(0,e.useState)(t.defaultIsOpen||!1),c=void 0!==o?o:s,d=void 0!==o,f=(0,e.useId)(),p=null!=i?i:`disclosure-${f}`,h=(0,e.useCallback)((()=>{d||u(!1),null==l||l()}),[d,l]),m=(0,e.useCallback)((()=>{d||u(!0),null==a||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){var n;null==(n=e.onClick)||n.call(e,t),v()}}},getDisclosureProps:function(e={}){return{...e,hidden:!c,id:p}}}}function f_(t,n,r,o){const i=Cu(r);return(0,e.useEffect)((()=>{const e="function"==typeof t?t():null!=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():null!=t?t:document;null==e||e.removeEventListener(n,i,o)}}var p_=e=>{var t;return(null==(t=e.current)?void 0:t.ownerDocument)||document},h_=e=>{var t,n;return(null==(n=null==(t=e.current)?void 0:t.ownerDocument)?void 0:n.defaultView)||window};function m_(t={}){const{openDelay:n=0,closeDelay:r=0,closeOnClick:o=!0,closeOnMouseDown:i,closeOnScroll:a,closeOnPointerDown:l=i,closeOnEsc:s=!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:_}=d_({isOpen:p,defaultIsOpen:h,onOpen:u,onClose:c}),{referenceRef:O,getPopperProps:P,getArrowInnerProps:T,getArrowProps:R}=u_({enabled:E,placement:d,arrowPadding:g,modifiers:b,gutter:x,offset:w,direction:k}),A=(0,e.useId)(),z=`tooltip-${null!=f?f:A}`,I=(0,e.useRef)(null),M=(0,e.useRef)(),j=(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=p_(t);return e.addEventListener(v_,n),()=>e.removeEventListener(v_,n)}),[n,t]),()=>{const e=p_(t),n=h_(t);e.dispatchEvent(new n.CustomEvent(v_))}}(I,D),B=(0,e.useCallback)((()=>{if(!y&&!M.current){E&&N();const e=h_(I);M.current=e.setTimeout(C,n)}}),[N,y,E,C,n]),V=(0,e.useCallback)((()=>{j();const e=h_(I);F.current=e.setTimeout(D,r)}),[r,D,j]),$=(0,e.useCallback)((()=>{E&&o&&V()}),[o,V,E]),W=(0,e.useCallback)((()=>{E&&l&&V()}),[l,V,E]),U=(0,e.useCallback)((e=>{E&&"Escape"===e.key&&V()}),[E,V]);f_((()=>p_(I)),"keydown",s?U:void 0),f_((()=>{if(!a)return null;const e=I.current;if(!e)return null;const t=RE(e);return"body"===t.localName?h_(I):t}),"scroll",(()=>{E&&a&&D()}),{passive:!0,capture:!0}),(0,e.useEffect)((()=>{y&&(j(),E&&_())}),[y,E,_,j]),(0,e.useEffect)((()=>()=>{j(),L()}),[j,L]),f_((()=>I.current),"pointerleave",V);const H=(0,e.useCallback)(((e={},t=null)=>({...e,ref:Rb(I,t,O),onPointerEnter:rt(e.onPointerEnter,(e=>{"touch"!==e.pointerType&&B()})),onClick:rt(e.onClick,$),onPointerDown:rt(e.onPointerDown,W),onFocus:rt(e.onFocus,B),onBlur:rt(e.onBlur,V),"aria-describedby":E?z:void 0})),[B,V,W,E,z,$,O]),q=(0,e.useCallback)(((e={},t=null)=>P({...e,style:{...e.style,[zE.arrowSize.var]:m?`${m}px`:void 0,[zE.arrowShadowColor.var]:v}},t)),[P,m,v]),Y=(0,e.useCallback)(((e={},t=null)=>{const n={...e.style,position:"relative",transformOrigin:zE.transformOrigin.varRef};return{ref:t,...S,...e,id:z,role:"tooltip",style:n}}),[S,z]);return{isOpen:E,show:B,hide:V,getTriggerProps:H,getTooltipProps:Y,getTooltipPositionerProps:q,getArrowProps:R,getArrowInnerProps:T}}var v_="chakra-ui:close-tooltip",g_=Rg(vg.div),b_=Ig(((t,n)=>{var r,o;const i=Lg("Tooltip",t),a=Nn(t),l=Mg(),{children:s,label:u,shouldWrapChildren:c,"aria-label":d,hasArrow:f,bg:p,portalProps:h,background:m,backgroundColor:v,bgColor:g,motionProps:b,...y}=a,x=null!=(o=null!=(r=null!=m?m:v)?r:p)?o:g;if(x){i.bg=x;const e=function(e,t,n){var r,o,i;return null!=(i=null==(o=null==(r=e.__cssMap)?void 0:r[`colors.${n}`])?void 0:o.varRef)?i:n}(l,0,x);i[zE.arrowBg.var]=e}const w=m_({...y,direction:l.direction});let k;if("string"==typeof s||c)k=(0,Ne.jsx)(Rg.span,{display:"inline-block",tabIndex:0,...w.getTriggerProps(),children:s});else{const t=e.Children.only(s);k=(0,e.cloneElement)(t,w.getTriggerProps(t.props,t.ref))}const S=!!d,E=w.getTooltipProps({},n),C=S?function(e,t=[]){const n=Object.assign({},e);for(const e of t)e in n&&delete n[e];return n}(E,["role","id"]):E,_=function(e,t){const n={};for(const t of["role","id"])t in e&&(n[t]=e[t]);return n}(E);return u?(0,Ne.jsxs)(Ne.Fragment,{children:[k,(0,Ne.jsx)(cb,{children:w.isOpen&&(0,Ne.jsx)(gb,{...h,children:(0,Ne.jsx)(Rg.div,{...w.getTooltipPositionerProps(),__css:{zIndex:i.zIndex,pointerEvents:"none"},children:(0,Ne.jsxs)(g_,{variants:TE,initial:"exit",animate:"enter",exit:"exit",...b,...C,__css:i,children:[u,S&&(0,Ne.jsx)(Rg.span,{srOnly:!0,..._,children:d}),f&&(0,Ne.jsx)(Rg.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper",children:(0,Ne.jsx)(Rg.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:i.bg}})})]})})})})]}):(0,Ne.jsx)(Ne.Fragment,{children:s})}));function y_(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 x_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y_(Object(n),!0).forEach((function(t){Nw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function w_(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 k_(e,t){if(e){if("string"==typeof e)return w_(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)?w_(e,t):void 0}}function S_(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,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||k_(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 E_(e,t){if(null==e)return{};var n,r,o=vw(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}b_.displayName="Tooltip";var C_=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function __(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,Dw(r.key),r)}}function O_(e){return O_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},O_(e)}function P_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(P_=function(){return!!e})()}function T_(e){return function(e){if(Array.isArray(e))return w_(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||k_(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 R_=Math.min,A_=Math.max,z_=Math.round,I_=Math.floor,M_=e=>({x:e,y:e});function j_(e){return D_(e)?(e.nodeName||"").toLowerCase():"#document"}function F_(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function L_(e){var t;return null==(t=(D_(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function D_(e){return e instanceof Node||e instanceof F_(e).Node}function N_(e){return e instanceof Element||e instanceof F_(e).Element}function B_(e){return e instanceof HTMLElement||e instanceof F_(e).HTMLElement}function V_(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof F_(e).ShadowRoot)}function $_(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=W_(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function W_(e){return F_(e).getComputedStyle(e)}function U_(e){const t=function(e){if("html"===j_(e))return e;const t=e.assignedSlot||e.parentNode||V_(e)&&e.host||L_(e);return V_(t)?t.host:t}(e);return function(e){return["html","body","#document"].includes(j_(e))}(t)?e.ownerDocument?e.ownerDocument.body:e.body:B_(t)&&$_(t)?t:U_(t)}function H_(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=U_(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=F_(o);return i?t.concat(a,a.visualViewport||[],$_(o)?o:[],a.frameElement&&n?H_(a.frameElement):[]):t.concat(o,H_(o,[],n))}function q_(e){return N_(e)?e:e.contextElement}function Y_(e){const t=q_(e);if(!B_(t))return M_(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=function(e){const t=W_(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=B_(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,l=z_(n)!==i||z_(r)!==a;return l&&(n=i,r=a),{width:n,height:r,$:l}}(t);let a=(i?z_(n.width):n.width)/r,l=(i?z_(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const X_=M_(0);function G_(e){const t=F_(e);return"undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:X_}function Q_(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=q_(e);let a=M_(1);t&&(r?N_(r)&&(a=Y_(r)):a=Y_(e));const l=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==F_(e))&&t}(i,n,r)?G_(i):M_(0);let s=(o.left+l.x)/a.x,u=(o.top+l.y)/a.y,c=o.width/a.x,d=o.height/a.y;if(i){const e=F_(i),t=r&&N_(r)?F_(r):r;let n=e,o=n.frameElement;for(;o&&r&&t!==n;){const e=Y_(o),t=o.getBoundingClientRect(),r=W_(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,u*=e.y,c*=e.x,d*=e.y,s+=i,u+=a,n=F_(o),o=n.frameElement}}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:s,y:u})}const K_=e.useLayoutEffect;var Z_=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],J_=function(){};function eO(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function tO(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(eO(e,a)));return i.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var nO=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===Lw(e)&&null!==e?[e]:[];var t},rO=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,x_({},E_(e,Z_))},oO=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 iO(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function aO(e){return iO(e)?window.pageYOffset:e.scrollTop}function lO(e,t){iO(e)?window.scrollTo(0,t):e.scrollTop=t}function sO(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:J_,o=aO(e),i=t-o,a=0;!function t(){var l=function(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}(a+=10,o,i,n);lO(e,l),a<n?window.requestAnimationFrame(t):r(e)}()}function uO(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?lO(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&lO(e,Math.max(t.offsetTop-o,0))}function cO(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var dO=!1,fO={get passive(){return dO=!0}},pO="undefined"!=typeof window?window:{};pO.addEventListener&&pO.removeEventListener&&(pO.addEventListener("p",J_,fO),pO.removeEventListener("p",J_,!1));var hO=dO;function mO(e){return null!=e}function vO(e,t,n){return e?t:n}var gO=["children","innerProps"],bO=["children","innerProps"];var yO,xO=function(e){return"auto"===e?"bottom":e},wO=(0,e.createContext)(null),kO=function(t){var n=t.children,r=t.minMenuHeight,o=t.maxMenuHeight,i=t.menuPlacement,a=t.menuPosition,l=t.menuShouldScrollIntoView,s=t.theme,u=((0,e.useContext)(wO)||{}).setPortalPlacement,c=(0,e.useRef)(null),d=S_((0,e.useState)(o),2),f=d[0],p=d[1],h=S_((0,e.useState)(null),2),m=h[0],v=h[1],g=s.spacing.controlHeight;return K_((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,l=e.controlHeight,s=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=s.getBoundingClientRect().height,f=n.getBoundingClientRect(),p=f.bottom,h=f.height,m=f.top,v=n.offsetParent.getBoundingClientRect().top,g=a||iO(c=s)?window.innerHeight:c.clientHeight,b=aO(s),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&&sO(s,C,O),{placement:"bottom",maxHeight:t};if(!a&&E>=r||a&&k>=r)return i&&sO(s,C,O),{placement:"bottom",maxHeight:a?k-y:E-y};if("auto"===o||a){var P=t,T=a?w:S;return T>=r&&(P=Math.min(T-y-l,t)),{placement:"top",maxHeight:P}}if("bottom"===o)return i&&lO(s,C),{placement:"bottom",maxHeight:t};break;case"top":if(w>=h)return{placement:"top",maxHeight:t};if(S>=h&&!a)return i&&sO(s,_,O),{placement:"top",maxHeight:t};if(!a&&S>=r||a&&w>=r){var R=t;return(!a&&S>=r||a&&w>=r)&&(R=a?w-x:S-x),i&&sO(s,_,O),{placement:"top",maxHeight:R}}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:l&&!t,isFixedPosition:t,controlHeight:g});p(n.maxHeight),v(n.placement),null==u||u(n.placement)}}),[o,i,a,l,r,u,g]),n({ref:c,placerProps:x_(x_({},t),{},{placement:m||xO(i),maxHeight:f})})},SO=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return x_({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},EO=SO,CO=SO,_O=["size"],OO=["innerProps","isRtl","size"],PO={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},TO=function(e){var t=e.size,n=E_(e,_O);return je("svg",ie({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:PO},n))},RO=function(e){return je(TO,ie({size:20},e),je("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"}))},AO=function(e){return je(TO,ie({size:20},e),je("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"}))},zO=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return x_({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*o,":hover":{color:n?i.neutral80:i.neutral40}})},IO=zO,MO=zO,jO=De(yO||(yO=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"]))),FO=function(e){var t=e.delay,n=e.offset;return je("span",{css:Le({animation:"".concat(jO," 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"},"","")})},LO=["data"],DO=["innerRef","isDisabled","isHidden","inputClassName"],NO={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},BO={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":x_({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},NO)},VO=function(e){return x_({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},NO)},$O=function(e){var t=e.children,n=e.innerProps;return je("div",n,t)},WO={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return je("div",ie({},oO(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||je(RO,null))},Control:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,i=e.innerProps,a=e.menuIsOpen;return je("div",ie({ref:o},oO(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 je("div",ie({},oO(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||je(AO,null))},DownChevron:AO,CrossIcon:RO,Group:function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,i=e.Heading,a=e.headingProps,l=e.innerProps,s=e.label,u=e.theme,c=e.selectProps;return je("div",ie({},oO(e,"group",{group:!0}),l),je(i,ie({},a,{selectProps:c,theme:u,getStyles:r,getClassNames:o,cx:n}),s),je("div",null,t))},GroupHeading:function(e){var t=rO(e);t.data;var n=E_(t,LO);return je("div",ie({},oO(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return je("div",ie({},oO(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return je("span",ie({},t,oO(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=rO(e),o=r.innerRef,i=r.isDisabled,a=r.isHidden,l=r.inputClassName,s=E_(r,DO);return je("div",ie({},oO(e,"input",{"input-container":!0}),{"data-value":n||""}),je("input",ie({className:t({input:!0},l),ref:o,style:VO(a),disabled:i},s)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,o=void 0===r?4:r,i=E_(e,OO);return je("div",ie({},oO(x_(x_({},i),{},{innerProps:t,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),je(FO,{delay:0,offset:n}),je(FO,{delay:160,offset:!0}),je(FO,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return je("div",ie({},oO(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 je("div",ie({},oO(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,l=t.menuPlacement,s=t.menuPosition,u=(0,e.useRef)(null),c=(0,e.useRef)(null),d=S_((0,e.useState)(xO(l)),2),f=d[0],p=d[1],h=(0,e.useMemo)((function(){return{setPortalPlacement:p}}),[]),m=S_((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"===s?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,s,f,null==v?void 0:v.offset,null==v?void 0:v.rect.left,null==v?void 0:v.rect.width]);K_((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:l="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,u=q_(e),c=o||i?[...u?H_(u):[],...H_(t)]:[];c.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=u&&l?function(e,t){let n,r=null;const o=L_(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),i();const{left:u,top:c,width:d,height:f}=e.getBoundingClientRect();if(l||t(),!d||!f)return;const p={rootMargin:-I_(c)+"px "+-I_(o.clientWidth-(u+d))+"px "+-I_(o.clientHeight-(c+f))+"px "+-I_(u)+"px",threshold:A_(0,R_(1,s))||1};let h=!0;function m(e){const t=e[0].intersectionRatio;if(t!==s){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&&!s&&h.observe(u),h.observe(t));let m=s?Q_(e):null;return s&&function t(){const r=Q_(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,s&&cancelAnimationFrame(f)}}(i,u.current,b,{elementResize:"ResizeObserver"in window}))}),[i,b]);K_((function(){y()}),[y]);var x=(0,e.useCallback)((function(e){u.current=e,y()}),[y]);if(!n&&"fixed"!==s||!v)return null;var w=je("div",ie({ref:x},oO(x_(x_({},t),{},{offset:v.offset,position:s,rect:v.rect}),"menuPortal",{"menu-portal":!0}),a),o);return je(wO.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=E_(e,bO);return je("div",ie({},oO(x_(x_({},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=E_(e,gO);return je("div",ie({},oO(x_(x_({},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,l=e.selectProps,s=n.Container,u=n.Label,c=n.Remove;return je(s,{data:r,innerProps:x_(x_({},oO(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),o),selectProps:l},je(u,{data:r,innerProps:x_({},oO(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},t),je(c,{data:r,innerProps:x_(x_({},oO(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:l}))},MultiValueContainer:$O,MultiValueLabel:$O,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return je("div",ie({role:"button"},n),t||je(RO,{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 je("div",ie({},oO(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 je("div",ie({},oO(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return je("div",ie({},oO(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return je("div",ie({},oO(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 je("div",ie({},oO(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},UO=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function HO(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((r=e[n])===(o=t[n])||UO(r)&&UO(o)))return!1;var r,o;return!0}for(var qO={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"},YO=function(e){return je("span",ie({css:qO},e))},XO={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.isDisabled,o=e.tabSelectsValue;switch(e.context){case"menu":return"Use Up and Down to choose options".concat(r?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return"".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,l=e.isDisabled,s=e.isSelected,u=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(u(a,n),".");if("menu"===t){var c=l?" disabled":"",d="".concat(s?"selected":"focused").concat(c);return"option ".concat(i," ").concat(d,", ").concat(u(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},GO=function(t){var n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,i=t.focusableOptions,a=t.isFocused,l=t.selectValue,s=t.selectProps,u=t.id,c=s.ariaLiveMessages,d=s.getOptionLabel,f=s.inputValue,p=s.isMulti,h=s.isOptionDisabled,m=s.isSearchable,v=s.menuIsOpen,g=s.options,b=s.screenReaderStatus,y=s.tabSelectsValue,x=s["aria-label"],w=s["aria-live"],k=(0,e.useMemo)((function(){return x_(x_({},XO),c||{})}),[c]),S=(0,e.useMemo)((function(){var e,t="";if(n&&k.onChange){var r=n.option,o=n.options,i=n.removedValue,a=n.removedValues,s=n.value,u=i||r||(e=s,Array.isArray(e)?null:e),c=u?d(u):"",f=o||a||void 0,p=f?f.map(d):[],m=x_({isDisabled:u&&h(u,l),label:c,labels:p},n);t=k.onChange(m)}return t}),[n,k,h,l,d]),E=(0,e.useMemo)((function(){var e="",t=r||o,n=!!(r&&l&&l.includes(r));if(t&&k.onFocus){var a={focused:t,label:d(t),isDisabled:h(t,l),isSelected:n,options:i,context:t===r?"menu":"value",selectValue:l};e=k.onFocus(a)}return e}),[r,o,d,h,k,i,l]),C=(0,e.useMemo)((function(){var e="";if(v&&g.length&&k.onFilter){var t=b({count:i.length});e=k.onFilter({inputValue:f,resultsMessage:t})}return e}),[i,f,v,k,g,b]),_=(0,e.useMemo)((function(){var e="";if(k.guidance){var t=o?"value":v?"menu":"input";e=k.guidance({"aria-label":x,context:t,isDisabled:r&&h(r,l),isMulti:p,isSearchable:m,tabSelectsValue:y})}return e}),[x,r,o,p,h,m,v,k,l,y]),O="".concat(E," ").concat(C," ").concat(_),P=je(e.Fragment,null,je("span",{id:"aria-selection"},S),je("span",{id:"aria-context"},O)),T="initial-input-focus"===(null==n?void 0:n.action);return je(e.Fragment,null,je(YO,{id:u},T&&P),je(YO,{"aria-live":w,"aria-atomic":"false","aria-relevant":"additions text"},a&&!T&&P))},QO=[{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źẑżžẓẕƶȥɀⱬꝣ"}],KO=new RegExp("["+QO.map((function(e){return e.letters})).join("")+"]","g"),ZO={},JO=0;JO<QO.length;JO++)for(var eP=QO[JO],tP=0;tP<eP.letters.length;tP++)ZO[eP.letters[tP]]=eP.base;var nP=function(e){return e.replace(KO,(function(e){return ZO[e]}))},rP=function(e,t){void 0===t&&(t=HO);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}(nP),oP=function(e){return e.replace(/^\s+|\s+$/g,"")},iP=function(e){return"".concat(e.label," ").concat(e.value)},aP=["innerRef"];function lP(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=S_(e,1)[0];return!n.includes(t)}));return o.reduce((function(e,t){var n=S_(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})}(E_(e,aP),"onExited","in","enter","exit","appear");return je("input",ie({ref:t},n,{css:Le({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 sP=["boxSizing","height","overflow","paddingRight","position"],uP={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function cP(e){e.preventDefault()}function dP(e){e.stopPropagation()}function fP(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function pP(){return"ontouchstart"in window||navigator.maxTouchPoints}var hP=!("undefined"==typeof window||!window.document||!window.document.createElement),mP=0,vP={capture:!1,passive:!1},gP=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},bP={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function yP(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,l=(0,e.useRef)(!1),s=(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&&l.current&&(o&&o(e),l.current=!1),h&&s.current&&(a&&a(e),s.current=!1),h&&t>m?(r&&!l.current&&r(e),p.scrollTop=d,v=!0,l.current=!0):!h&&-t>u&&(i&&!s.current&&i(e),p.scrollTop=0,v=!0,s.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=!!hO&&{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),l=(0,e.useCallback)((function(e){if(hP){var t=document.body,n=t&&t.style;if(o&&sP.forEach((function(e){var t=n&&n[e];i.current[e]=t})),o&&mP<1){var r=parseInt(i.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,l=window.innerWidth-a+r||0;Object.keys(uP).forEach((function(e){var t=uP[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(l,"px"))}t&&pP()&&(t.addEventListener("touchmove",cP,vP),e&&(e.addEventListener("touchstart",fP,vP),e.addEventListener("touchmove",dP,vP))),mP+=1}}),[o]),s=(0,e.useCallback)((function(e){if(hP){var t=document.body,n=t&&t.style;mP=Math.max(mP-1,0),o&&mP<1&&sP.forEach((function(e){var t=i.current[e];n&&(n[e]=t)})),t&&pP()&&(t.removeEventListener("touchmove",cP,vP),e&&(e.removeEventListener("touchstart",fP,vP),e.removeEventListener("touchmove",dP,vP)))}}),[o]);return(0,e.useEffect)((function(){if(n){var e=a.current;return l(e),function(){s(e)}}}),[n,l,s]),function(e){a.current=e}}({isEnabled:r});return je(e.Fragment,null,r&&je("div",{onClick:gP,css:bP}),n((function(e){i(e),a(e)})))}var xP={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},wP=function(e){var t=e.name,n=e.onFocus;return je("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:xP,value:"",onChange:function(){}})},kP={clearIndicator:MO,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 x_({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:IO,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 x_({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 x_({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 x_(x_({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},BO),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 x_({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:CO,menu:function(e,t){var n,r=e.placement,o=e.theme,i=o.borderRadius,a=o.spacing,l=o.colors;return x_((Nw(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),Nw(n,"position","absolute"),Nw(n,"width","100%"),Nw(n,"zIndex",1),n),t?{}:{backgroundColor:l.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 x_({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 x_({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 x_({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 x_({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:EO,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.theme,a=i.spacing,l=i.colors;return x_({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?l.primary:r?l.primary25:"transparent",color:n?l.neutral20:o?l.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:o?l.primary:l.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,o=n.colors;return x_({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 x_({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 x_({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")})}},SP={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}},EP={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:cO(),captureMenuScroll:!cO(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=x_({ignoreCase:!0,ignoreAccents:!0,stringify:iP,trim:!0,matchFrom:"any"},void 0),r=n.ignoreCase,o=n.ignoreAccents,i=n.stringify,a=n.trim,l=n.matchFrom,s=a?oP(t):t,u=a?oP(i(e)):i(e);return r&&(s=s.toLowerCase(),u=u.toLowerCase()),o&&(s=rP(s),u=nP(u)),"start"===l?u.substr(0,s.length)===s:u.indexOf(s)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},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 CP(e,t,n,r){return{type:"option",data:t,isDisabled:AP(e,t,n),isSelected:zP(e,t,n),label:TP(e,t),value:RP(e,t),index:r}}function _P(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return CP(e,n,t,r)})).filter((function(t){return PP(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=CP(e,n,t,r);return PP(e,i)?i:void 0})).filter(mO)}function OP(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,T_(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function PP(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,a=t.label,l=t.value;return(!MP(e)||!i)&&IP(e,{label:a,value:l,data:o},r)}var TP=function(e,t){return e.getOptionLabel(t)},RP=function(e,t){return e.getOptionValue(t)};function AP(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function zP(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=RP(e,t);return n.some((function(t){return RP(e,t)===r}))}function IP(e,t,n){return!e.filterOption||e.filterOption(t,n)}var MP=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},jP=1,FP=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&&Fw(e,t)}(r,t);var n=function(e){var t=P_();return function(){var n,r=O_(e);if(t){var o=O_(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==Lw(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,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.instancePrefix="",t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,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,l=o.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:l}),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,l=o&&t.isOptionSelected(e,a),s=t.isOptionDisabled(e,a);if(l){var u=t.getOptionValue(e);t.setValue(a.filter((function(e){return t.getOptionValue(e)!==u})),"deselect-option",e)}else{if(s)return void t.ariaOnChange(e,{action:"select-option",option:e,name:i});o?t.setValue([].concat(T_(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=vO(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(vO(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=vO(e,o,o[0]||null);t.onChange(i,{action:"pop-value",removedValue:r})},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 tO.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return TP(t.props,e)},t.getOptionValue=function(e){return RP(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,o=kP[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.instancePrefix,"-").concat(e)},t.getComponents=function(){return e=t.props,x_(x_({},WO),e.components);var e},t.buildCategorizedOptions=function(){return _P(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return OP(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:x_({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&&iO(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){t.blockOptionHover||t.state.focusedOption===e||t.setState({focusedOption:e})},t.shouldHideSelectedOptions=function(){return MP(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,l=n.isClearable,s=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(!(s||"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():l&&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()):l&&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.instancePrefix="react-select-"+(t.props.instanceId||++jP),t.state.selectValue=nO(e.value),e.menuIsOpen&&t.state.selectValue.length){var o=t.buildFocusableOptions(),i=o.indexOf(t.state.selectValue[0]);t.state.focusedOption=o[i]}return t}return function(e,t,n){t&&__(e.prototype,t),n&&__(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&&uO(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&&(uO(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 l=i.indexOf(r[0]);l>-1&&(a=l)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption: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})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(SP):x_(x_({},SP),this.props.theme):SP}},{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,l=this.props,s=l.isMulti,u=l.isRtl,c=l.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:s,isRtl:u,options:c,selectOption:i,selectProps:l,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 AP(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return zP(this.props,e,t)}},{key:"filterOption",value:function(e,t){return IP(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,l=t.form,s=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=x_(x_(x_({"aria-autocomplete":"list","aria-expanded":s,"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"},s&&{"aria-controls":this.getElementId("listbox"),"aria-owns":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,ie({},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:l,type:"text",value:i},v)):e.createElement(lP,ie({id:m,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:J_,onFocus:this.onInputFocus,disabled:n,tabIndex:a,inputMode:"none",form:l,value:""},v))}},{key:"renderPlaceholderOrValue",value:function(){var t=this,n=this.getComponents(),r=n.MultiValue,o=n.MultiValueContainer,i=n.MultiValueLabel,a=n.MultiValueRemove,l=n.SingleValue,s=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(s,ie({},u,{key:"placeholder",isDisabled:f,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),m);if(p)return g.map((function(n,l){var s=n===b,c="".concat(t.getOptionLabel(n),"-").concat(t.getOptionValue(n));return e.createElement(r,ie({},u,{components:{Container:o,Label:i,Remove:a},isFocused:s,isDisabled:f,key:c,index:l,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(l,ie({},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 l={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return e.createElement(t,ie({},n,{innerProps:l,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,ie({},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,ie({},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,ie({},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,l=n.MenuPortal,s=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 T,R=function(n,r){var o=n.type,i=n.data,a=n.isDisabled,l=n.isSelected,s=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};return e.createElement(c,ie({},d,{innerProps:g,data:i,isDisabled:a,isSelected:l,key:v,label:s,type:o,value:u,isFocused:p,innerRef:p?t.getFocusedOptionRef:void 0}),t.formatOptionLabel(n.data,"menu"))};if(this.hasOptions())T=this.getCategorizedOptions().map((function(n){if("group"===n.type){var i=n.data,a=n.options,l=n.index,s="".concat(t.getElementId("group"),"-").concat(l),u="".concat(s,"-heading");return e.createElement(r,ie({},d,{key:s,data:i,options:a,Heading:o,headingProps:{id:u,data:n.data},label:t.formatGroupLabel(n.data)}),n.options.map((function(e){return R(e,"".concat(l,"-").concat(e.index))})))}if("option"===n.type)return R(n,"".concat(n.index))}));else if(v){var A=g({inputValue:m});if(null===A)return null;T=e.createElement(s,d,A)}else{var z=_({inputValue:m});if(null===z)return null;T=e.createElement(u,d,z)}var I={minMenuHeight:b,maxMenuHeight:y,menuPlacement:w,menuPosition:k,menuShouldScrollIntoView:C},M=e.createElement(kO,ie({},d,I),(function(n){var r=n.ref,o=n.placerProps,l=o.placement,s=o.maxHeight;return e.createElement(i,ie({},d,I,{innerRef:r,innerProps:{onMouseDown:t.onMenuMouseDown,onMouseMove:t.onMenuMouseMove,id:t.getElementId("listbox")},isLoading:v,placement:l}),e.createElement(yP,{captureEnabled:h,onTopArrive:O,onBottomArrive:P,lockEnabled:E},(function(n){return e.createElement(a,ie({},d,{innerRef:function(e){t.getMenuListRef(e),n(e)},isLoading:v,maxHeight:s,focusedOption:f}),T)})))}));return S||"fixed"===k?e.createElement(l,ie({},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,l=n.required,s=this.state.selectValue;if(l&&!this.hasValue()&&!o)return e.createElement(wP,{name:a,onFocus:this.onValueInputFocus});if(a&&!o){if(i){if(r){var u=s.map((function(e){return t.getOptionValue(e)})).join(r);return e.createElement("input",{name:a,type:"hidden",value:u})}var c=s.length>0?s.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=s[0]?this.getOptionValue(s[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,l=n.selectValue,s=this.getFocusableOptions();return e.createElement(GO,ie({},t,{id:this.getElementId("live-region"),ariaSelection:r,focusedOption:o,focusedValue:i,isFocused:a,selectValue:l,focusableOptions:s}))}},{key:"render",value:function(){var t=this.getComponents(),n=t.Control,r=t.IndicatorsContainer,o=t.SelectContainer,i=t.ValueContainer,a=this.props,l=a.className,s=a.id,u=a.isDisabled,c=a.menuIsOpen,d=this.state.isFocused,f=this.commonProps=this.getCommonProps();return e.createElement(o,ie({},f,{className:l,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:u,isFocused:d}),this.renderLiveRegion(),e.createElement(n,ie({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:u,isFocused:d,menuIsOpen:c}),e.createElement(i,ie({},f,{isDisabled:u}),this.renderPlaceholderOrValue(),this.renderInput()),e.createElement(r,ie({},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,l=t.prevWasFocused,s=e.options,u=e.value,c=e.menuIsOpen,d=e.inputValue,f=e.isMulti,p=nO(u),h={};if(n&&(u!==n.value||s!==n.options||c!==n.menuIsOpen||d!==n.inputValue)){var m=c?function(e,t){return OP(_P(e,t))}(e,p):[],v=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,p):null,g=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,m);h={selectValue:p,focusedOption:g,focusedValue:v,clearFocusValueOnUpdate:!1}}var b=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},y=i,x=a&&l;return a&&!x&&(y={value:vO(f,p,p[0]||null),options:p,action:"initial-input-focus"},x=!l),"initial-input-focus"===(null==i?void 0:i.action)&&(y=null),x_(x_(x_({},h),b),{},{prevProps:e,ariaSelection:y,prevWasFocused:x})}}]),r}(e.Component);FP.defaultProps=EP;var LP=(0,e.forwardRef)((function(t,n){var r=function(t){var n=t.defaultInputValue,r=void 0===n?"":n,o=t.defaultMenuIsOpen,i=void 0!==o&&o,a=t.defaultValue,l=void 0===a?null:a,s=t.inputValue,u=t.menuIsOpen,c=t.onChange,d=t.onInputChange,f=t.onMenuClose,p=t.onMenuOpen,h=t.value,m=E_(t,C_),v=S_((0,e.useState)(void 0!==s?s:r),2),g=v[0],b=v[1],y=S_((0,e.useState)(void 0!==u?u:i),2),x=y[0],w=y[1],k=S_((0,e.useState)(void 0!==h?h:l),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]),T=void 0!==s?s:g,R=void 0!==u?u:x,A=void 0!==h?h:S;return x_(x_({},m),{},{inputValue:T,menuIsOpen:R,onChange:C,onInputChange:_,onMenuClose:P,onMenuOpen:O,value:A})}(t);return e.createElement(FP,ie({ref:n},r))})),DP=LP;function NP(t,n){var r;const o=function(t){var n,r;const o=Ze(t)?t:{fallback:null!=t?t:"base"},i=Mg().__breakpoints.details.map((({minMaxQuery:e,breakpoint:t})=>({breakpoint:t,query:e.replace("@media screen and ","")}))),a=i.map((e=>e.breakpoint===o.fallback)),l=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 er((()=>{t&&n()}),[t]),(0,e.useContext)(or)}(),a=Array.isArray(t)?t:[t];let l=Array.isArray(o)?o:[o];l=l.filter((e=>null!=e));const[s,u]=(0,e.useState)((()=>a.map(((e,t)=>({media:e,matches:r?!!l[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]),s.map((e=>e.matches))}(i.map((e=>e.query)),{fallback:a,ssr:o.ssr});return null!=(r=null==(n=i[l.findIndex((e=>1==e))])?void 0:n.breakpoint)?r:o.fallback}(Ze(n)?n:{fallback:null!=n?n:"base"}),i=Mg();if(!o)return;const a=Array.from((null==(r=i.__breakpoints)?void 0:r.keys)||[]),l=Array.isArray(t)?Object.fromEntries(Object.entries(function(e,t=hE){const n={};return e.forEach(((e,r)=>{const o=t[r];null!=e&&(n[o]=e)})),n}(t,a)).map((([e,t])=>[e,t]))):t;return function(e,t,n=hE){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}(l,o,a)}var BP=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"];function VP(){return VP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},VP.apply(this,arguments)}var $P=function(e){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;var t=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,BP);return VP({},t)},WP=function(e){var t=function(e){return function(e){return"string"==typeof e&&["sm","md","lg"].includes(e)}(e)?e:"xs"===e?"sm":"xl"===e?"lg":"md"}(Mg().components.Input.defaultProps.size),n=null!=e?e:t;return NP("string"==typeof n?[n]:n,{fallback:"md"})||t};function UP(){return UP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},UP.apply(this,arguments)}var HP=Ig((function(e,t){const{borderLeftWidth:n,borderBottomWidth:r,borderTopWidth:o,borderRightWidth:i,borderWidth:a,borderStyle:l,borderColor:s,...u}=Lg("Divider",e),{className:c,orientation:d="horizontal",__css:f,...p}=Nn(e),h={vertical:{borderLeftWidth:n||i||a||"1px",height:"100%"},horizontal:{borderBottomWidth:r||o||a||"1px",width:"100%"}};return(0,Ne.jsx)(Rg.hr,{ref:t,"aria-orientation":d,...p,__css:{...u,border:"0",borderColor:s,borderStyle:l,...h[d],...f},className:Ke("chakra-divider",c)})}));HP.displayName="Divider";var qP=["height","h"];function YP(){return YP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},YP.apply(this,arguments)}var XP=function(e){return t().createElement(Bg,YP({role:"presentation",focusable:"false","aria-hidden":"true"},e),t().createElement("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}))},GP=function(e){return t().createElement(Bg,YP({focusable:"false","aria-hidden":!0},e),t().createElement("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"}))};var QP=["innerRef","isDisabled","isHidden","inputClassName"];function KP(){return KP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},KP.apply(this,arguments)}var ZP=Object.defineProperty,JP=(e,t,n)=>(((e,t,n)=>{t in e?ZP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);function eT(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 tT(e,t,n){let r=e+1;return n&&r>=t&&(r=0),r}function nT(e,t,n){let r=e-1;return n&&r<0&&(r=t),r}var rT="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,oT=class{constructor(){JP(this,"descendants",new Map),JP(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)}})),JP(this,"unregister",(e=>{this.descendants.delete(e);const t=eT(Array.from(this.descendants.keys()));this.assignIndex(t)})),JP(this,"destroy",(()=>{this.descendants.clear()})),JP(this,"assignIndex",(e=>{this.descendants.forEach((t=>{const n=e.indexOf(t.node);t.index=n,t.node.dataset.index=t.index.toString()}))})),JP(this,"count",(()=>this.descendants.size)),JP(this,"enabledCount",(()=>this.enabledValues().length)),JP(this,"values",(()=>Array.from(this.descendants.values()).sort(((e,t)=>e.index-t.index)))),JP(this,"enabledValues",(()=>this.values().filter((e=>!e.disabled)))),JP(this,"item",(e=>{if(0!==this.count())return this.values()[e]})),JP(this,"enabledItem",(e=>{if(0!==this.enabledCount())return this.enabledValues()[e]})),JP(this,"first",(()=>this.item(0))),JP(this,"firstEnabled",(()=>this.enabledItem(0))),JP(this,"last",(()=>this.item(this.descendants.size-1))),JP(this,"lastEnabled",(()=>{const e=this.enabledValues().length-1;return this.enabledItem(e)})),JP(this,"indexOf",(e=>{var t,n;return e&&null!=(n=null==(t=this.descendants.get(e))?void 0:t.index)?n:-1})),JP(this,"enabledIndexOf",(e=>null==e?-1:this.enabledValues().findIndex((t=>t.node.isSameNode(e))))),JP(this,"next",((e,t=!0)=>{const n=tT(e,this.count(),t);return this.item(n)})),JP(this,"nextEnabled",((e,t=!0)=>{const n=this.item(e);if(!n)return;const r=tT(this.enabledIndexOf(n.node),this.enabledCount(),t);return this.enabledItem(r)})),JP(this,"prev",((e,t=!0)=>{const n=nT(e,this.count()-1,t);return this.item(n)})),JP(this,"prevEnabled",((e,t=!0)=>{const n=this.item(e);if(!n)return;const r=nT(this.enabledIndexOf(n.node),this.enabledCount()-1,t);return this.enabledItem(r)})),JP(this,"registerNode",((e,t)=>{if(!e||this.descendants.has(e))return;const n=eT(Array.from(this.descendants.keys()).concat(e));(null==t?void 0:t.disabled)&&(t.disabled=!!t.disabled);const r={node:e,index:-1,...t};this.descendants.set(e,r),this.assignIndex(n)}))}},[iT,aT]=Ue({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function lT(e,t){var n;const r=e.target;return!(r&&!sT(r).contains(r))&&!(null==(n=t.current)?void 0:n.contains(r))}function sT(e){var t;return null!=(t=null==e?void 0:e.ownerDocument)?t:document}var[uT,cT,dT,fT]=[iT,()=>aT(),()=>function(){const t=(0,e.useRef)(new oT);return rT((()=>()=>t.current.destroy())),t.current}(),t=>function(t){const n=aT(),[r,o]=(0,e.useState)(-1),i=(0,e.useRef)(null);rT((()=>()=>{i.current&&n.unregister(i.current)}),[]),rT((()=>{if(!i.current)return;const e=Number(i.current.dataset.index);r==e||Number.isNaN(e)||o(e)}));const a=t?n.register(t):n.register;return{descendants:n,index:r,enabledIndex:n.enabledIndexOf(i.current),register:Rb(a,i)}}(t)],[pT,hT]=Ue({strict:!1,name:"MenuContext"});function mT(t={}){const{id:n,closeOnSelect:r=!0,closeOnBlur:o=!0,initialFocusRef:i,autoSelect:a=!0,isLazy:l,isOpen:s,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=dT(),x=(0,e.useCallback)((()=>{requestAnimationFrame((()=>{var e;null==(e=g.current)||e.focus({preventScroll:!1})}))}),[]),w=(0,e.useCallback)((()=>{const e=setTimeout((()=>{var e;if(i)null==(e=i.current)||e.focus();else{const e=y.firstEnabled();e&&R(e.index)}}));j.current.add(e)}),[y,i]),k=(0,e.useCallback)((()=>{const e=setTimeout((()=>{const e=y.lastEnabled();e&&R(e.index)}));j.current.add(e)}),[y]),S=(0,e.useCallback)((()=>{null==d||d(),a?w():x()}),[a,w,x,d]),{isOpen:E,onOpen:C,onClose:_,onToggle:O}=d_({isOpen:s,defaultIsOpen:u,onClose:c,onOpen:S});!function(t){const{ref:n,handler:r,enabled:o=!0}=t,i=Cu(r),a=(0,e.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;(0,e.useEffect)((()=>{if(!o)return;const e=e=>{lT(e,n)&&(a.isPointerDown=!0)},t=e=>{a.ignoreEmulatedMouseEvents?a.ignoreEmulatedMouseEvents=!1:a.isPointerDown&&r&&lT(e,n)&&(a.isPointerDown=!1,i(e))},l=e=>{a.ignoreEmulatedMouseEvents=!0,r&&a.isPointerDown&&lT(e,n)&&(a.isPointerDown=!1,i(e))},s=sT(n.current);return s.addEventListener("mousedown",e,!0),s.addEventListener("mouseup",t,!0),s.addEventListener("touchstart",e,!0),s.addEventListener("touchend",l,!0),()=>{s.removeEventListener("mousedown",e,!0),s.removeEventListener("mouseup",t,!0),s.removeEventListener("touchstart",e,!0),s.removeEventListener("touchend",l,!0)}}),[r,n,i,a,o])}({enabled:E&&o,ref:g,handler:e=>{var t;(null==(t=b.current)?void 0:t.contains(e.target))||_()}});const P=u_({...v,enabled:E||m,placement:f,direction:h}),[T,R]=(0,e.useState)(-1);_u((()=>{E||R(-1)}),[E]),function(e,t){const{shouldFocus:n,visible:r,focusRef:o}=t,i=n&&!r;_u((()=>{if(!i)return;if(function(e){const t=e.current;if(!t)return!1;const n=function(e){return eS(e).activeElement}(t);return!!n&&!t.contains(n)&&!(!((r=n)&&Jk(r)&&oS(r))||nS(r));var r}(e))return;const t=(null==o?void 0: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:E,shouldFocus:!0});const A=function(t){const{isOpen:n,ref:r}=t,[o,i]=(0,e.useState)(n),[a,l]=(0,e.useState)(!1);return(0,e.useEffect)((()=>{a||(i(n),l(!0))}),[n,a,o]),f_((()=>r.current),"animationend",(()=>{i(n)})),{present:!(!n&&!o),onComplete(){var e;const t=function(e){var t,n;return null!=(n=null==(t=eS(e))?void 0:t.defaultView)?n:window}(r.current),n=new t.CustomEvent("animationend",{bubbles:!0});null==(e=r.current)||e.dispatchEvent(n)}}}({isOpen:E,ref:g}),[z,I]=function(t,...n){const r=(0,e.useId)(),o=t||r;return(0,e.useMemo)((()=>n.map((e=>`${e}-${o}`))),[o,n])}(n,"menu-button","menu-list"),M=(0,e.useCallback)((()=>{C(),x()}),[C,x]),j=(0,e.useRef)(new Set([]));(0,e.useEffect)((()=>{const e=j.current;return()=>{e.forEach((e=>clearTimeout(e))),e.clear()}}),[]);const F=(0,e.useCallback)((()=>{C(),w()}),[w,C]),L=(0,e.useCallback)((()=>{C(),k()}),[C,k]),D=(0,e.useCallback)((()=>{var e,t;const n=function(e){var t;return null!=(t=null==e?void 0:e.ownerDocument)?t:document}(g.current),r=null==(e=g.current)?void 0:e.contains(n.activeElement);if(!E||r)return;const o=null==(t=y.item(T))?void 0:t.node;null==o||o.focus({preventScroll:!0})}),[E,T,y]),N=(0,e.useRef)(null);return{openAndFocusMenu:M,openAndFocusFirstItem:F,openAndFocusLastItem:L,onTransitionEnd:D,unstable__animationState:A,descendants:y,popper:P,buttonId:z,menuId:I,forceUpdate:P.forceUpdate,orientation:"vertical",isOpen:E,onToggle:O,onOpen:C,onClose:_,menuRef:g,buttonRef:b,focusedIndex:T,closeOnSelect:r,closeOnBlur:o,autoSelect:a,setFocusedIndex:R,isLazy:l,lazyBehavior:p,initialFocusRef:i,rafId:N}}var[vT,gT]=Ue({name:"MenuStylesContext",errorMessage:"useMenuStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Menu />\" "}),bT=t=>{const{children:n}=t,r=Dg("Menu",t),o=Nn(t),{direction:i}=Mg(),{descendants:a,...l}=mT({...o,direction:i}),s=(0,e.useMemo)((()=>l),[l]),{isOpen:u,onClose:c,forceUpdate:d}=s;return(0,Ne.jsx)(uT,{value:a,children:(0,Ne.jsx)(pT,{value:s,children:(0,Ne.jsx)(vT,{value:r,children:Je(n,{isOpen:u,onClose:c,forceUpdate:d})})})})};bT.displayName="Menu";var yT=t=>{const{className:n,children:r,...o}=t,i=gT(),a=e.Children.only(r),l=(0,e.isValidElement)(a)?(0,e.cloneElement)(a,{focusable:"false","aria-hidden":!0,className:Ke("chakra-menu__icon",a.props.className)}):null,s=Ke("chakra-menu__icon-wrapper",n);return(0,Ne.jsx)(Rg.span,{className:s,...o,__css:i.icon,children:l})};yT.displayName="MenuIcon";var xT=["data"];function wT(){return wT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wT.apply(this,arguments)}var kT=function(e){return t().createElement("svg",wT({viewBox:"0 0 14 14",width:"1em",height:"1em"},e),t().createElement("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"}))};function ST(){return ST=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ST.apply(this,arguments)}var ET=function(e){return"object"==typeof e&&null!==e&&"isFixed"in e&&"boolean"==typeof e.isFixed},CT=function(e){return t().createElement(Bg,ST({verticalAlign:"inherit",viewBox:"0 0 512 512"},e),t().createElement("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"}))};function _T(){return _T=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_T.apply(this,arguments)}function OT(){return OT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},OT.apply(this,arguments)}var PT={ClearIndicator:function(e){var n=e.children,r=e.className,o=e.cx,i=e.innerProps,a=e.selectProps,l=a.chakraStyles,s=a.size,u=YP({},Lg("CloseButton",{size:WP(s)}),{marginX:1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,cursor:"pointer"}),c=null!=l&&l.clearIndicator?l.clearIndicator(u,e):u,d={width:"1em",height:"1em"},f=null!=l&&l.crossIcon?l.crossIcon(d,e):d;return t().createElement(Hy,YP({role:"button",className:o({indicator:!0,"clear-indicator":!0},r),sx:c,"aria-label":"Clear selected options"},i),n||t().createElement(GP,{sx:f}))},Control:function(e){var n=e.className,r=e.cx,o=e.children,i=e.innerRef,a=e.innerProps,l=e.isDisabled,s=e.isFocused,u=e.menuIsOpen,c=e.selectProps,d=c.chakraStyles,f=c.size,p=c.variant,h=c.focusBorderColor,m=c.errorBorderColor,v=c.isInvalid,g=c.isReadOnly,b=Dg("Input",{size:WP(f),variant:p,focusBorderColor:h,errorBorderColor:m}).field,y=b.height,x=b.h,w=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(b,qP),k=YP({},w,{position:"relative",display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:"wrap",padding:0,overflow:"hidden",height:"auto",minH:y||x},l?{pointerEvents:"none"}:{}),S=null!=d&&d.control?d.control(k,e):k;return t().createElement(Hy,YP({ref:i,className:r({control:!0,"control--is-disabled":l,"control--is-focused":s,"control--menu-is-open":u},n),sx:S},a,{"data-focus":!!s||void 0,"data-focus-visible":!!s||void 0,"data-invalid":!!v||void 0,"data-disabled":!!l||void 0,"data-readonly":!!g||void 0}),o)},DropdownIndicator:function(e){var n=e.children,r=e.className,o=e.cx,i=e.innerProps,a=e.selectProps,l=a.chakraStyles,s=a.useBasicStyles,u=a.size,c=a.focusBorderColor,d=a.errorBorderColor,f=a.variant,p=WP(u),h=Dg("Input",{size:p,variant:f,focusBorderColor:c,errorBorderColor:d}),m={sm:"16px",md:"20px",lg:"24px"}[p],v=YP({},h.addon,{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",borderRadius:0,borderWidth:0,fontSize:m},s&&{background:"transparent",padding:0,width:6,marginRight:2,marginLeft:1,cursor:"inherit"}),g=null!=l&&l.dropdownIndicator?l.dropdownIndicator(v,e):v,b={height:"1em",width:"1em"},y=null!=l&&l.downChevron?l.downChevron(b,e):b;return t().createElement(Hy,YP({},i,{className:o({indicator:!0,"dropdown-indicator":!0},r),sx:g}),n||t().createElement(XP,{sx:y}))},Group:function(e){var n=e.children,r=e.className,o=e.cx,i=e.theme,a=e.getStyles,l=e.Heading,s=e.headingProps,u=e.label,c=e.selectProps,d=e.innerProps,f=e.getClassNames,p=c.chakraStyles,h={},m=null!=p&&p.group?p.group(h,e):h;return t().createElement(Hy,wT({},d,{className:o({group:!0},r),sx:m}),t().createElement(l,wT({},s,{selectProps:c,cx:o,theme:i,getStyles:a,getClassNames:f}),u),t().createElement(Hy,null,n))},GroupHeading:function(e){var n=e.cx,r=e.className,o=e.selectProps,i=o.chakraStyles,a=o.size,l=o.hasStickyGroupHeaders,s=$P(e),u=(s.data,function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(s,xT)),c=Dg("Menu"),d=WP(a),f=wT({},c.groupTitle,{fontSize:{sm:"xs",md:"sm",lg:"md"}[d],padding:{sm:"0.4rem 0.8rem",md:"0.5rem 1rem",lg:"0.6rem 1.2rem"}[d],margin:0,borderBottomWidth:l?"1px":0,position:l?"sticky":"static",top:-2,bg:c.list.bg,zIndex:1}),p=null!=i&&i.groupHeading?i.groupHeading(f,e):f;return t().createElement(Hy,wT({},u,{className:n({"group-heading":!0},r),sx:p}))},IndicatorSeparator:function(e){var n=e.className,r=e.cx,o=e.selectProps,i=o.chakraStyles,a=o.useBasicStyles,l=o.variant,s=YP({opacity:1},a||"outline"!==l?{display:"none"}:{}),u=null!=i&&i.indicatorSeparator?i.indicatorSeparator(s,e):s;return t().createElement(HP,{className:r({"indicator-separator":!0},n),sx:u,orientation:"vertical"})},IndicatorsContainer:function(e){var n=e.children,r=e.className,o=e.cx,i=e.innerProps,a=e.selectProps.chakraStyles,l={display:"flex",alignItems:"center",alignSelf:"stretch",flexShrink:0},s=null!=a&&a.indicatorsContainer?a.indicatorsContainer(l,e):l;return t().createElement(Hy,UP({},i,{className:o({indicators:!0},r),sx:s}),n)},Input:function(e){var n=e.className,r=e.cx,o=e.value,i=e.selectProps,a=i.chakraStyles,l=i.isReadOnly,s=$P(e),u=s.innerRef,c=s.isDisabled,d=s.isHidden,f=s.inputClassName,p=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(s,QP),h={gridArea:"1 / 2",minW:"2px",border:0,margin:0,outline:0,padding:0},m={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:c?"hidden":"visible",transform:o?"translateZ(0)":"",_after:KP({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre",padding:0},h)},v=null!=a&&a.inputContainer?a.inputContainer(m,e):m,g=KP({background:0,opacity:d?0:1,width:"100%"},h),b=null!=a&&a.input?a.input(g,e):g;return t().createElement(Hy,{className:r({"input-container":!0},n),"data-value":o||"",sx:v},t().createElement(Rg.input,KP({className:r({input:!0},f),ref:u,sx:b,disabled:c,readOnly:!!l||void 0},p)))},LoadingIndicator:function(e){var n=e.className,r=e.cx,o=e.innerProps,i=e.selectProps,a=i.chakraStyles,l=i.size,s=e.color,u=e.emptyColor,c=e.speed,d=e.thickness,f=e.spinnerSize,p={sm:"xs",md:"sm",lg:"md"}[WP(l)],h={marginRight:3},m=null!=a&&a.loadingIndicator?a.loadingIndicator(h,e):h;return t().createElement(Wg,YP({className:r({indicator:!0,"loading-indicator":!0},n),sx:m},o,{size:f||p,color:s,emptyColor:u,speed:c,thickness:d}))},LoadingMessage:function(e){var n=e.children,r=e.className,o=e.cx,i=e.innerProps,a=e.selectProps,l=a.chakraStyles,s=a.size,u=WP(s),c={color:"chakra-subtle-text",textAlign:"center",paddingY:{sm:"6px",md:"8px",lg:"10px"}[u],fontSize:u},d=null!=l&&l.loadingMessage?l.loadingMessage(c,e):c;return t().createElement(Hy,wT({},i,{className:o({"menu-notice":!0,"menu-notice--loading":!0},r),sx:d}),n)},Menu:function(e){var n,r=e.className,o=e.cx,i=e.children,a=e.innerProps,l=e.innerRef,s=e.placement,u=e.selectProps.chakraStyles,c=((n={position:"absolute"})[function(e){return e?{bottom:"top",top:"bottom"}[e]:"top"}(s)]="100%",n.marginY="8px",n.width="100%",n.zIndex=1,n),d=null!=u&&u.menu?u.menu(c,e):c;return t().createElement(bT,null,t().createElement(Hy,wT({},a,{ref:l,className:o({menu:!0},r),sx:d}),i))},MenuList:function(e){var n,r=e.className,o=e.cx,i=e.innerRef,a=e.children,l=e.maxHeight,s=e.isMulti,u=e.innerProps,c=e.selectProps,d=c.chakraStyles,f=c.size,p=c.variant,h=c.focusBorderColor,m=c.errorBorderColor,v=Dg("Menu"),g=Dg("Input",{size:WP(f),variant:p,focusBorderColor:h,errorBorderColor:m}).field,b=wT({},v.list,{minW:"100%",maxHeight:l+"px",overflowY:"auto","--input-border-radius":null==g?void 0:g["--input-border-radius"],borderRadius:(null==g?void 0:g.borderRadius)||(null==(n=v.list)?void 0:n.borderRadius),position:"relative",WebkitOverflowScrolling:"touch"}),y=null!=d&&d.menuList?d.menuList(b,e):b;return t().createElement(Hy,wT({role:"listbox"},u,{className:o({"menu-list":!0,"menu-list--is-multi":s},r),sx:y,ref:i}),a)},MultiValue:function(e){var n,r=e.children,o=e.className,i=e.components,a=e.cx,l=e.data,s=e.innerProps,u=e.isDisabled,c=e.isFocused,d=e.removeProps,f=e.selectProps,p=e.cropWithEllipsis,h=i.Container,m=i.Label,v=i.Remove,g=f.chakraStyles,b=f.colorScheme,y=f.tagVariant,x=f.size,w=WP(x),k="",S="",E=!1;"object"==typeof(n=l)&&null!==n&&"colorScheme"in n&&"string"==typeof n.colorScheme&&(k=l.colorScheme),function(e){return"object"==typeof e&&null!==e&&"variant"in e&&"string"==typeof e.variant}(l)&&(S=l.variant),ET(l)&&(E=l.isFixed);var C=Dg("Tag",{size:w,colorScheme:k||b,variant:S||y||(E?"solid":"subtle")}),_=ST({},C.container,{display:"flex",alignItems:"center",minWidth:0,margin:"0.125rem"}),O=null!=g&&g.multiValue?g.multiValue(_,e):_,P=ST({},C.label,{overflow:"hidden",textOverflow:p||void 0===p?"ellipsis":void 0,whiteSpace:"nowrap"}),T=null!=g&&g.multiValueLabel?g.multiValueLabel(P,e):P,R=ST({},C.closeButton,{display:"flex",alignItems:"center",justifyContent:"center"}),A=null!=g&&g.multiValueRemove?g.multiValueRemove(R,e):R;return t().createElement(h,{data:l,innerProps:ST({className:a({"multi-value":!0,"multi-value--is-disabled":u},o)},s),sx:O,selectProps:f},t().createElement(m,{data:l,innerProps:{className:a({"multi-value__label":!0},o)},sx:T,selectProps:f},r),t().createElement(v,{data:l,innerProps:ST({className:a({"multi-value__remove":!0},o),"aria-label":"Remove "+(r||"option")},d),sx:A,selectProps:f,isFocused:c}))},MultiValueContainer:function(e){var n=e.children,r=e.innerProps,o=e.sx;return t().createElement(Rg.span,ST({},r,{sx:o}),n)},MultiValueLabel:function(e){var n=e.children,r=e.innerProps,o=e.sx;return t().createElement(Rg.span,ST({},r,{sx:o}),n)},MultiValueRemove:function(e){var n=e.children,r=e.innerProps,o=e.isFocused,i=e.data,a=e.sx;return ET(i)&&i.isFixed?null:t().createElement(Hy,ST({},r,{role:"button",sx:a,"data-focus":!!o||void 0,"data-focus-visible":!!o||void 0}),n||t().createElement(CT,null))},NoOptionsMessage:function(e){var n=e.children,r=e.className,o=e.cx,i=e.innerProps,a=e.selectProps,l=a.chakraStyles,s=a.size,u=WP(s),c={color:"chakra-subtle-text",textAlign:"center",paddingY:{sm:"6px",md:"8px",lg:"10px"}[u],fontSize:u},d=null!=l&&l.noOptionsMessage?l.noOptionsMessage(c,e):c;return t().createElement(Hy,wT({},i,{className:o({"menu-notice":!0,"menu-notice--no-options":!0},r),sx:d}),n)},Option:function(e){var n=e.className,r=e.cx,o=e.innerRef,i=e.innerProps,a=e.children,l=e.isFocused,s=e.isDisabled,u=e.isSelected,c=e.selectProps,d=c.chakraStyles,f=c.size,p=c.isMulti,h=c.hideSelectedOptions,m=c.selectedOptionStyle,v=c.selectedOptionColorScheme,g=Dg("Menu").item,b=WP(f),y=Qe(v+".500",v+".300"),x=Qe("white","black"),w="check"===m&&(!p||!1===h),k=wT({},g,{cursor:"pointer",display:"flex",alignItems:"center",width:"100%",textAlign:"start",fontSize:b,paddingX:{sm:"0.6rem",md:"0.8rem",lg:"1rem"}[b],paddingY:{sm:"0.3rem",md:"0.4rem",lg:"0.5rem"}[b]},"color"===m&&{_selected:{bg:y,color:x,_active:{bg:y}}}),S=null!=d&&d.option?d.option(k,e):k;return t().createElement(Hy,wT({role:"option"},i,{className:r({option:!0,"option--is-disabled":s,"option--is-focused":l,"option--is-selected":u},n),sx:S,ref:o,"data-focus":!!l||void 0,"aria-disabled":!!s||void 0,"aria-selected":u}),w&&t().createElement(yT,{fontSize:"0.8em",marginEnd:"0.75rem",opacity:u?1:0},t().createElement(kT,null)),a)},Placeholder:function(e){var n=e.children,r=e.className,o=e.cx,i=e.innerProps,a=e.selectProps.chakraStyles,l={gridArea:"1 / 1 / 2 / 3",color:"chakra-placeholder-color",mx:"0.125rem",userSelect:"none"},s=null!=a&&a.placeholder?a.placeholder(l,e):l;return t().createElement(Hy,_T({},i,{className:o({placeholder:!0},r),sx:s}),n)},SelectContainer:function(e){var n=e.children,r=e.className,o=e.cx,i=e.innerProps,a=e.isDisabled,l=e.isRtl,s=e.hasValue,u=e.selectProps.chakraStyles,c=UP({position:"relative",direction:l?"rtl":void 0},a?{cursor:"not-allowed"}:{}),d=null!=u&&u.container?u.container(c,e):c;return t().createElement(Hy,UP({},i,{className:o({"--is-disabled":a,"--is-rtl":l,"--has-value":s},r),sx:d}),n)},SingleValue:function(e){var n=e.children,r=e.className,o=e.cx,i=e.isDisabled,a=e.innerProps,l=e.selectProps.chakraStyles,s={gridArea:"1 / 1 / 2 / 3",mx:"0.125rem",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},u=null!=l&&l.singleValue?l.singleValue(s,e):s;return t().createElement(Hy,OT({className:o({"single-value":!0,"single-value--is-disabled":i},r),sx:u},a),n)},ValueContainer:function(e){var n=e.children,r=e.className,o=e.cx,i=e.isMulti,a=e.hasValue,l=e.innerProps,s=e.selectProps,u=s.chakraStyles,c=s.size,d=s.variant,f=s.focusBorderColor,p=s.errorBorderColor,h=s.controlShouldRenderValue,m={display:i&&a&&h?"flex":"grid",alignItems:"center",flex:1,paddingY:"2px",paddingX:Dg("Input",{size:WP(c),variant:d,focusBorderColor:f,errorBorderColor:p}).field.px,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},v=null!=u&&u.valueContainer?u.valueContainer(m,e):m;return t().createElement(Hy,UP({},l,{className:o({"value-container":!0,"value-container--is-multi":i,"value-container--has-value":a},r),sx:v}),n)}};const TT=PT;var RT=["components","theme","size","colorScheme","isDisabled","isInvalid","isReadOnly","required","isRequired","inputId","tagVariant","selectedOptionStyle","selectedOptionColorScheme","selectedOptionColor","variant","focusBorderColor","errorBorderColor","chakraStyles","onFocus","onBlur","menuIsOpen"];function AT(){return AT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},AT.apply(this,arguments)}function zT(){return zT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zT.apply(this,arguments)}const IT=(0,e.forwardRef)((function(e,n){var r=function(e){var t,n=e.components,r=void 0===n?{}:n,o=(e.theme,e.size),i=e.colorScheme,a=void 0===i?"gray":i,l=e.isDisabled,s=e.isInvalid,u=e.isReadOnly,c=e.required,d=e.isRequired,f=e.inputId,p=e.tagVariant,h=e.selectedOptionStyle,m=void 0===h?"color":h,v=e.selectedOptionColorScheme,g=e.selectedOptionColor,b=e.variant,y=e.focusBorderColor,x=e.errorBorderColor,w=e.chakraStyles,k=void 0===w?{}:w,S=e.onFocus,E=e.onBlur,C=e.menuIsOpen,_=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,RT),O=Mg().components.Input.defaultProps.variant,P=function(e){const{isDisabled:t,isInvalid:n,isReadOnly:r,isRequired:o,...i}=ix(e);return{...i,disabled:t,readOnly:r,required:o,"aria-invalid":nt(n),"aria-required":nt(o),"aria-readonly":nt(r)}}({id:f,isDisabled:l,isInvalid:s,isRequired:d,isReadOnly:u,onFocus:S,onBlur:E}),T=null!=C?C:!P.readOnly&&void 0,R=m;["color","check"].includes(m)||(R="color");var A=v||g||"blue";return"string"!=typeof A&&(A="blue"),AT({components:AT({},TT,r),colorScheme:a,size:o,tagVariant:p,selectedOptionStyle:R,selectedOptionColorScheme:A,variant:null!=b?b:O,chakraStyles:k,focusBorderColor:y,errorBorderColor:x,onFocus:P.onFocus,onBlur:P.onBlur,isDisabled:P.disabled,isInvalid:!!P["aria-invalid"],inputId:P.id,isReadOnly:P.readOnly,required:null!=c?c:P.required,menuIsOpen:T},_,{"aria-invalid":null!=(t=_["aria-invalid"])?t:P["aria-invalid"]})}(e);return t().createElement(DP,zT({ref:n},r))}));function MT(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 jT(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=LT(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=LT(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==LT(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FT(){return FT=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},FT.apply(null,arguments)}function LT(e){return LT="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},LT(e)}function DT(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 NT=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,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return DT(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)?DT(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.")}()}(GS(),2),a=i[0].settings,l=i[1],s=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"===LT(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,l=n.identifier,s=n.color,u=n.backgroundColor,c=function(t={}){const{defaultChecked:n,isChecked:r,isFocusable:o,isDisabled:i,isReadOnly:a,isRequired:l,onChange:s,isInvalid:u,name:c,value:d,id:f,"data-radiogroup":p,"aria-describedby":h,...m}=t,v=`radio-${(0,e.useId)()}`,g=nx(),b=bE();let y=!g||b||p?v:g.id;y=null!=f?f:y;const x=null!=i?i:null==g?void 0:g.isDisabled,w=null!=a?a:null==g?void 0:g.isReadOnly,k=null!=l?l:null==g?void 0:g.isRequired,S=null!=u?u:null==g?void 0:g.isInvalid,[E,C]=(0,e.useState)(!1),[_,O]=(0,e.useState)(!1),[P,T]=(0,e.useState)(!1),[R,A]=(0,e.useState)(!1),[z,I]=(0,e.useState)(Boolean(n)),M=void 0!==r,j=M?r:z;(0,e.useEffect)((()=>wx(C)),[]);const F=(0,e.useCallback)((e=>{w||x?e.preventDefault():(M||I(e.target.checked),null==s||s(e))}),[M,x,w,s]),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":tt(R),"data-hover":tt(P),"data-disabled":tt(x),"data-invalid":tt(S),"data-checked":tt(j),"data-focus":tt(_),"data-focus-visible":tt(_&&E),"data-readonly":tt(w),"aria-hidden":!0,onMouseDown:rt(e.onMouseDown,(()=>A(!0))),onMouseUp:rt(e.onMouseUp,(()=>A(!1))),onMouseEnter:rt(e.onMouseEnter,(()=>T(!0))),onMouseLeave:rt(e.onMouseLeave,(()=>T(!1)))})),[R,P,x,S,j,_,w,E]),{onFocus:B,onBlur:V}=null!=g?g:{},$=(0,e.useCallback)(((e={},t=null)=>{const n=x&&!o;return{...e,id:y,ref:t,type:"radio",name:c,value:d,onChange:rt(e.onChange,F),onBlur:rt(V,e.onBlur,(()=>O(!1))),onFocus:rt(B,e.onFocus,(()=>O(!0))),onKeyDown:rt(e.onKeyDown,L),onKeyUp:rt(e.onKeyUp,D),checked:j,disabled:n,readOnly:w,required:k,"aria-invalid":nt(S),"aria-disabled":nt(n),"aria-required":nt(k),"data-readonly":tt(w),"aria-describedby":h,style:xE}}),[x,o,y,c,d,F,V,B,L,D,j,w,k,S,h]);return{state:{isInvalid:S,isFocused:_,isChecked:j,isActive:R,isHovered:P,isDisabled:x,isReadOnly:w,isRequired:k},getCheckboxProps:N,getRadioProps:N,getInputProps:$,getLabelProps:(e={},t=null)=>({...e,ref:t,onMouseDown:rt(e.onMouseDown,wE),"data-disabled":tt(x),"data-checked":tt(j),"data-invalid":tt(S)}),getRootProps:(e,t=null)=>({...e,ref:t,"data-disabled":tt(x),"data-checked":tt(j),"data-invalid":tt(S)}),htmlProps:m}}(i),d=c.state,f=c.getInputProps,p=c.getCheckboxProps,h=f(),m=p();return t().createElement(Hy,{as:"label",marginleft:"0px !important",marginBottom:"0px"},t().createElement("input",h),t().createElement(Hy,FT({},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:s},_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(Sb,{direction:"column",align:"center"},t().createElement(EE,{src:"".concat(o,"/").concat(l,".png")}),t().createElement(Cb,{fontSize:"12px",fontWeight:"600",color:d.isChecked&&s,mt:2},a)):t().createElement(Cb,{fontSize:"14px",fontWeight:"600",color:d.isChecked?s:"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?MT(Object(n),!0).forEach((function(t){jT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MT(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}l({type:eE,settings:o})},d=function(e){return t().createElement(Bg,FT({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(Sb,{justify:"space-between",align:"center"},t().createElement(Sb,{align:"center",flex:"0 0 40%"},t().createElement(OE,{sx:{fontWeight:"600",fontSize:"15px"}},r.title),t().createElement(b_,{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(CE,{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(IT,{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:s(),onChange:function(e){return c(r.type,r.id,e)},defaultValue:s()[s().default],variant:"outline"});case"multiselect":var e=[];return s().default.map((function(t){return e.push(s()[t])})),t().createElement(IT,{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:s(),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=vE({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,l=o.getRadioProps,f=i();return t().createElement(_E,FT({},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:l({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 BT(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 VT=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,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return BT(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)?BT(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.")}()}(GS(),1)[0].settings;return t().createElement(mE,{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(NT,{key:n,setting:e,siteURL:r,onBoardIconsURL:o}):""})))},$T=function(e){var n=e.sectionSettings;return t().createElement(mE,{direction:"column",spacing:"8",mt:5},n.settings.map((function(e,n){return t().createElement(NT,{key:n,setting:e})})))},WT=function(e){var n=e.sectionSettings,r=e.siteURL,o=e.onBoardIconsURL;return t().createElement(mE,{direction:"column",spacing:"8",mt:5},n&&n.settings.map((function(e,n){return t().createElement(NT,{key:n,setting:e,siteURL:r,onBoardIconsURL:o})})))},UT=function(e){var n=e.onBoardIconsURL;return t().createElement(Sb,{direction:"column",justifyContent:"space-between",alignItems:"center"},t().createElement(EE,{htmlWidth:"65px",htmlHeight:"65px",src:"".concat(n,"/green-tick-icon.png"),alt:"Onboard Finish"}),t().createElement(Eb,{as:"h2",fontSize:"22px",fontWeight:"600",mb:4,mt:4,color:"#222222"},xy("Congratulations, You’re all set! 🎉","user-registration")),t().createElement(Hy,{w:"100%",p:4,color:"#2D3559",mt:3,borderTop:"1px solid #DEE0E9"},t().createElement(Cb,{fontSize:"18px",fontWeight:"600",mb:4,mt:4,color:"#383838",textAlign:"center"},xy("Our Popular Addons","user-registration")),t().createElement(Sb,{justify:"space-between",wrap:"wrap",gap:"10px"},t().createElement(Sb,{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(EE,{htmlWidth:"140px",htmlHeight:"105px",src:"".concat(n,"/advanced-fields.png"),alt:"Advanced Fields",borderRadius:"5px"}),t().createElement(Sb,{direction:"column"},t().createElement(Cb,{fontSize:"15px",fontWeight:"600",mt:"6px",mb:"6px",color:"#383838"},xy("Advanced Fields","user-registration")),t().createElement(Cb,{fontSize:"12px",fontWeight:"400",noOfLines:4},xy("Offers extra fields like Section Title, Phone, Profile Picture, HTML, Time Picker, and WYSIWYG for complex forms.","user-registration")))),t().createElement(Sb,{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(EE,{htmlWidth:"140px",htmlHeight:"105px",src:"".concat(n,"/woo-extension.png"),alt:"WooCommerce",borderRadius:"5px"}),t().createElement(Sb,{direction:"column"},t().createElement(Cb,{fontSize:"15px",fontWeight:"600",mt:"6px",mb:"6px",color:"#383838"},xy("WooCommerce","user-registration")),t().createElement(Cb,{fontSize:"12px",fontWeight:"400",noOfLines:4},xy("Integrate WooCommerce plugin for user registration, enabling user account management of billing, shipping, and orders","user-registration")))),t().createElement(Sb,{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(EE,{htmlWidth:"140px",htmlHeight:"105px",src:"".concat(n,"/content-restriction.png"),alt:"Content Restriction",borderRadius:"5px",objectFit:"cover"}),t().createElement(Sb,{direction:"column"},t().createElement(Cb,{fontSize:"15px",fontWeight:"600",mt:"6px",mb:"6px",color:"#383838"},xy("Content Restriction","user-registration")),t().createElement(Cb,{fontSize:"12px",fontWeight:"400",noOfLines:4},xy("Easily restrict page or post content to logged-in users or specific user roles with this addon.","user-registration")))),t().createElement(Sb,{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(EE,{htmlWidth:"140px",htmlHeight:"105px",src:"".concat(n,"/customize-my-account.png"),alt:"Customize My Account",borderRadius:"5px"}),t().createElement(Sb,{direction:"column"},t().createElement(Cb,{fontSize:"15px",fontWeight:"600",mt:"6px",mb:"6px",color:"#383838"},xy("Customize My Account","user-registration")),t().createElement(Cb,{fontSize:"12px",fontWeight:"400",noOfLines:4},xy("Easily create, edit, delete, and sort custom tabs on the account page with custom content","user-registration"))))),t().createElement("center",null,t().createElement(Db,{href:"https://wpuserregistration.com/features/",isExternal:!0},t().createElement(zb,{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"},xy("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 HT(e){return HT="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},HT(e)}function qT(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 YT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qT(Object(n),!0).forEach((function(t){XT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function XT(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=HT(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=HT(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==HT(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GT(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,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return QT(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)?QT(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 QT(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 KT=function(){var n=GT(GS(),2),r=n[0],o=r.settings,i=r.installPage,a=n[1],l=GT((0,e.useState)(!1),2),s=l[0],u=l[1],c=GT((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.newFormURL,b=p.urRestApiNonce,y=p.onBoardIconsURL,x=p.restURL,w=GT((0,e.useState)([{key:"install_pages",label:xy("Install Pages","user-registration"),title:xy("Install Pages","user-registration"),description:xy("The following pages will be installed automatically.","user-registration"),isDone:!0,component:t().createElement(fE,null)},{key:"general_settings",label:xy("General","user-registration"),title:xy("General Settings","user-registration"),description:xy("Customize your general settings as per your preference.","user-registration"),isDone:!1,component:t().createElement($T,null)},{key:"registration_settings",label:xy("Registration","user-registration"),title:xy("Registration Settings","user-registration"),description:xy("Customize your registration settings as per your preference.","user-registration"),isDone:!1,component:t().createElement(VT,null)},{key:"my_account_settings",label:xy("My Account","user-registration"),title:xy("My Account Settings","user-registration"),description:xy("Customize your my account page settings as per your preference.","user-registration"),isDone:!1,component:t().createElement(WT,null)},{key:"final_step",label:xy("Final Step","user-registration"),isDone:!1,component:t().createElement(UT,null)}]),2),k=w[0],S=w[1],E=GT((0,e.useState)(k[0]),2),C=E[0],_=E[1];(0,e.useEffect)((function(){$y({path:x+"user-registration/v1/getting-started",headers:{"X-WP-Nonce":b}}).then((function(e){var t=k.map((function(t){return t.sectionSettings=e.options[t.key]?e.options[t.key]:{},YT({},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:eE,settings:n})}))}),[]);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])},P=function(e){var t=YT({},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}),{})),$y({path:x+"user-registration/v1/getting-started/save",method:"POST",headers:{"X-WP-Nonce":b},data:{settings:t}}).then((function(t){t.success&&(""!==e?window.location.href=e:O())}))};return t().createElement(kb,null,t().createElement(Uy,{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:y}):t().createElement(Sb,{direction:"column",justifyContent:"space-between",alignItems:"left"},C.title&&t().createElement(Eb,{as:"h2",size:"lg",fontSize:"22px",mb:4,color:"#383838",fontWeight:"600"},C.title),C.description&&t().createElement(Cb,{fontSize:"16px",as:"i",color:"#6B6B6B"},C.description),(0,e.cloneElement)(C.component,{sectionSettings:C.sectionSettings,siteURL:m,onBoardIconsURL:y}))),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(zb,{variant:"outline",colorScheme:"gray",onClick:function(){f(!0),P(v)},disabled:d,style:{backgroundColor:"#FAFAFA",color:"#6B6B6B",border:"1px solid #999999"}},xy("Edit Default Form","user-registration")):k[0].key!==C.key?t().createElement(zb,{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"}},xy("Back","user-registration")):""),t().createElement("div",{className:"user-registration-setup-wizard__footer--right"},k[k.length-1].key===C.key?t().createElement(zb,{colorScheme:"blue",backgroundColor:"#475BB2 !important",color:"#FAFAFA !important",onClick:function(){f(!0),P(g)},disabled:d},xy("Create New Form","user-registration")):t().createElement(t().Fragment,null,k[0].key!==C.key&&t().createElement(zb,{variant:"link",colorScheme:"gray",onClick:function(){var e=YT({},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:eE,settings:e}),O()},mr:10,ml:10,fontStyle:"italic",textDecoration:"underline",fontSize:"14px",fontWeight:"400",background:"none !important",color:"#6B6B6B !important",border:"none !important"},xy("Skip this step","user-registration")),k[0].key===C.key&&"installed"!==i.my_account_page.status?t().createElement(zb,{variant:"solid",backgroundColor:"#475BB2 !important",color:"#FAFAFA !important",disabled:s,onClick:function(){u(!0),$y({path:x+"user-registration/v1/getting-started/install-pages",method:"POST",headers:{"X-WP-Nonce":b},data:{install_pages:!0}}).then((function(e){if(e.success){e.default_form_id&&a({type:nE,defaultFormId:e.default_form_id}),e.is_pro&&a({type:rE,defaultFormId:e.is_pro});var t=YT({},i);t.registration_page.status="installing",t.registration_page.slug="/"+e.page_slug[0],a({type:tE,installPage:t}),new Wy((function(e,t){setTimeout(e,5e3)})).then((function(){t.registration_page.status="installed",t.my_account_page.status="installing",t.my_account_page.slug="/"+e.page_slug[1],a({type:tE,installPage:t}),new Wy((function(e,t){setTimeout(e,5e3)})).then((function(){t.my_account_page.status="installed",a({type:tE,installPage:t})}))}))}else console.log(e.message)}))}},xy("Install & Proceed","user-registration")):t().createElement(zb,{colorScheme:"blue",backgroundColor:"#475BB2 !important",color:"#FAFAFA !important",disabled:k[k.length-1].key===C.key,onClick:function(){P("")}},xy("Next","user-registration"))))),t().createElement("center",null,t().createElement(Db,null,t().createElement(zb,{variant:"link",disabled:d,onClick:function(){f(!0),"installed"===i.my_account_page.status?P("".concat(h,"admin.php?page=user-registration-dashboard")):P("".concat(h,"admin.php?page=user-registration-dashboard&end-setup-wizard=1"))},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"},xy("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"}))))))};document.getElementById("user-registration-setup-wizard")&&r.render(t().createElement(XS,{initialState:{settings:{},installPage:{registration_page:{status:"not_installed",slug:""},my_account_page:{status:"not_installed",slug:""}},defaultFormId:"",isPro:!1},reducer:function(e,t){switch(t.type){case eE:return ZS(ZS({},e),{},{settings:t.settings});case tE:return ZS(ZS({},e),{},{installPage:t.installPage});case nE:return ZS(ZS({},e),{},{defaultFormId:t.defaultFormId});case rE:return ZS(ZS({},e),{},{isPro:t.isPro});default:return e}}},t().createElement(KT,null)),document.getElementById("user-registration-setup-wizard"))})()})();